studyStudent.vue 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- ai模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div
  73. class="courseTitle"
  74. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  75. >
  76. <div
  77. style="
  78. max-width: calc(100% - 40px);
  79. width: auto;
  80. white-space: nowrap;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. word-break: break-word;
  84. display: block;
  85. "
  86. >
  87. <el-tooltip
  88. effect="light"
  89. :content="courseDetail.title"
  90. placement="top"
  91. >
  92. <div class="ctitle">
  93. {{ courseDetail.title }}
  94. </div>
  95. </el-tooltip>
  96. </div>
  97. <el-tooltip effect="light" content="收缩" placement="top">
  98. <div class="mlImg" @click="setContent2(false)">
  99. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div
  104. class="inviteBox"
  105. v-if="tcid && inviteCode"
  106. style="padding: 0 0 8px 0"
  107. >
  108. <div>
  109. <span>随机码:{{ inviteCode }}</span>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="cru_selectBox">
  114. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="
  130. navIndex == taskCount &&
  131. nav.id == navId &&
  132. stageIndex == courseType
  133. "
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img
  137. :style="{
  138. transform: nav.isOpen
  139. ? 'rotate(0deg)'
  140. : 'rotate(270deg)'
  141. }"
  142. src="../../assets/icon/newIcons/bDown2.png"
  143. alt
  144. />
  145. </div>
  146. <div
  147. class="closeTri1"
  148. v-else
  149. @click="openTask(stageIndex, navIndex, nav.id)"
  150. >
  151. <img
  152. :style="{
  153. transform: nav.isOpen
  154. ? 'rotate(90deg)'
  155. : 'rotate(0deg)'
  156. }"
  157. src="../../assets/icon/newIcons/right.png"
  158. alt
  159. />
  160. </div>
  161. </div>
  162. <div v-else class="noToolBlue"></div>
  163. <div
  164. @click="openTask(stageIndex, navIndex, nav.id)"
  165. class="navItemList"
  166. :class="{
  167. isItemList:
  168. navIndex == taskCount &&
  169. nav.id == navId &&
  170. stageIndex == courseType
  171. }"
  172. >
  173. <div>任务{{ navIndex + 1 }}:</div>
  174. <el-tooltip
  175. effect="light"
  176. :content="nav.taskName"
  177. placement="top"
  178. >
  179. <div
  180. :style="{
  181. width:
  182. IsLookOpen && !nav.isLook
  183. ? 'calc(100% - 75px)'
  184. : 'auto'
  185. }"
  186. >
  187. {{ nav.taskName }}
  188. </div>
  189. </el-tooltip>
  190. </div>
  191. <div class="lockTaskIcon">
  192. <img
  193. src="../../assets/lock.png"
  194. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  195. courseDetail.course_teacher.indexOf(userid) ==-1"
  196. alt=""
  197. />
  198. </div>
  199. </div>
  200. <div
  201. v-if="nav.tool[0].tool != undefined"
  202. class="toolChild"
  203. :class="{ toolActive: nav.isOpen }"
  204. >
  205. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  206. <div
  207. class="gjCss"
  208. :class="{
  209. isGjCss: t.isTool
  210. }"
  211. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  212. >
  213. <div>工具{{ toolIndex2 + 1 }}:</div>
  214. <div v-if="t.tool == 58">模拟驾驶</div>
  215. <div v-if="t.tool == 59">路径搜索</div>
  216. <div v-if="t.tool == 60">深度学习</div>
  217. <div v-if="t.tool == 10">倒计时</div>
  218. <div v-if="t.tool == 65">挑人</div>
  219. <div v-if="t.tool == 7">思维网格</div>
  220. <div v-if="t.tool == 1">电子白板</div>
  221. <div v-if="t.tool == 52">文档</div>
  222. <div v-if="t.tool == 3">思维导图</div>
  223. <div v-if="t.tool == 48">表格</div>
  224. <div v-if="t.tool == 49">学生分组</div>
  225. <div v-if="t.tool == 4">问卷调查</div>
  226. <div v-if="t.tool == 45">选择题</div>
  227. <div v-if="t.tool == 15">问答</div>
  228. <div v-if="t.tool == 16">作业提交</div>
  229. <div v-if="t.tool == 50">批量上传</div>
  230. <div v-if="t.tool == 41">选择匹配</div>
  231. <div v-if="t.tool == 47">排序</div>
  232. <div v-if="t.tool == 40">个人评价</div>
  233. <div v-if="t.tool == 18">训练平台</div>
  234. <div v-if="t.tool == 21">AIoT Blockly</div>
  235. <div v-if="t.tool == 23">AI Python</div>
  236. <div v-if="t.tool == 24">AI Blockly</div>
  237. <div v-if="t.tool == 32">源码编辑</div>
  238. <div v-if="t.tool == 57">CocoPi</div>
  239. <div v-if="t.tool == 63">海龟编程</div>
  240. <div v-if="t.tool == 28">翻译</div>
  241. <div v-if="t.tool == 31">数字画板</div>
  242. <div v-if="t.tool == 39">GeoGebra</div>
  243. <div v-if="t.tool == 66">公式编辑</div>
  244. <div v-if="t.tool == 67">分子结构</div>
  245. <div v-if="t.tool == 68">时间轴</div>
  246. <div v-if="t.tool == 69">英语写作</div>
  247. <div v-if="t.tool == 70">英语口语</div>
  248. <div v-if="t.tool == 25">目标管理</div>
  249. <div v-if="t.tool == 26">课程设计</div>
  250. <div v-if="t.tool == 62">交互视频</div>
  251. <div v-if="t.tool == 71">AI智能体</div>
  252. <div v-if="t.tool == 72">应用中心</div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div
  262. class="body_student"
  263. :style="{
  264. width: mlDialog
  265. ? 'calc(100% - ' +
  266. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  267. ' - 20% - 40px)'
  268. : 'calc(100% - ' +
  269. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  270. ' - 10px)',
  271. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  272. }"
  273. >
  274. <div
  275. class="new_topFixed"
  276. :style="{
  277. width: mlDialog
  278. ? 'calc(100% - ' +
  279. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  280. ' - 20% - 40px)'
  281. : 'calc(100% - ' +
  282. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  283. ' - 10px)',
  284. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  285. }"
  286. ></div>
  287. <div
  288. class="new_top"
  289. :style="{
  290. width: mlDialog
  291. ? 'calc(100% - ' +
  292. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  293. ' - 20% - 47px)'
  294. : 'calc(100% - ' +
  295. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  296. ' - 18px)',
  297. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  298. }"
  299. >
  300. <div
  301. class="courseIndex"
  302. :style="{
  303. width:
  304. (orgArray.includes(org) || oidArray.includes(oid)) &&
  305. !['2'].includes(tType)
  306. ? '100%'
  307. : 'calc(100% - 745px)'
  308. }"
  309. >
  310. <div>任务{{ taskCount + 1 }}</div>
  311. <el-tooltip
  312. effect="light"
  313. :content="
  314. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  315. "
  316. placement="top"
  317. >
  318. <div>
  319. {{
  320. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  321. .task
  322. }}
  323. </div>
  324. </el-tooltip>
  325. </div>
  326. <div
  327. class="btnAll"
  328. v-show="
  329. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  330. ['2'].includes(tType)
  331. "
  332. >
  333. <div class="btnLeft">
  334. <el-tooltip effect="light" content="刷新" placement="top">
  335. <div class="reBtnIcon" @click="refreshCourse">
  336. <span>刷新</span>
  337. </div>
  338. </el-tooltip>
  339. <el-tooltip effect="light" content="评论" placement="top">
  340. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  341. <span>评论</span>
  342. </div>
  343. </el-tooltip>
  344. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  345. <el-tooltip effect="light" content="录制" placement="top">
  346. <div class="vedioIcon" @click="startRecording">
  347. <span>录制</span>
  348. </div>
  349. </el-tooltip>
  350. </div>
  351. <div v-else-if="tType == 1 || tType == 4">
  352. <el-tooltip effect="light" content="下载" placement="top">
  353. <div class="vedioIcon1" @click="stopRecording">
  354. <span>下载</span>
  355. </div>
  356. </el-tooltip>
  357. </div>
  358. </div>
  359. <div class="btnRight">
  360. <div
  361. class="last"
  362. @click="nextOrpreSteps(0)"
  363. v-if="!(IsFollow && tType == 2)"
  364. @mouseover="isHovered = true"
  365. @mouseout="isHovered = false"
  366. >
  367. <div class="lastImg">
  368. <img
  369. :src="
  370. isHovered
  371. ? require('../../assets/icon/newIcons/whiteLast.png')
  372. : require('../../assets/icon/newIcons/last.png')
  373. "
  374. alt=""
  375. />
  376. </div>
  377. <div class="lastText">上一步</div>
  378. </div>
  379. <div
  380. class="last"
  381. @click="nextOrpreSteps(1)"
  382. v-if="!(IsFollow && tType == 2)"
  383. @mouseover="isHovered1 = true"
  384. @mouseout="isHovered1 = false"
  385. >
  386. <div class="lastText">下一步</div>
  387. <div class="lastImg">
  388. <img
  389. :src="
  390. isHovered1
  391. ? require('../../assets/icon/newIcons/whiteNext.png')
  392. : require('../../assets/icon/newIcons/next.png')
  393. "
  394. alt=""
  395. />
  396. </div>
  397. </div>
  398. <div
  399. class="last"
  400. @click="juriVisible = true"
  401. v-if="tType == 1"
  402. @mouseover="isHovered2 = true"
  403. @mouseout="isHovered2 = false"
  404. >
  405. <div class="lastImg">
  406. <img
  407. :src="
  408. isHovered2
  409. ? require('../../assets/icon/newIcons/whiteLock.png')
  410. : require('../../assets/icon/newIcons/lock.png')
  411. "
  412. alt=""
  413. />
  414. </div>
  415. <div class="lastText">权限</div>
  416. </div>
  417. <div
  418. class="returnBtn1 returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. <div class="lastImg">
  439. <img src="../../assets/icon/newIcon/return.png" alt="" />
  440. </div>
  441. <div class="lastText" style="color: #000">返回</div>
  442. </div>
  443. </div>
  444. <!-- <div
  445. class="returnBtn lockIcon"
  446. @click="juriVisible = true"
  447. v-if="tType == 1"
  448. >
  449. 权限
  450. </div>
  451. <div
  452. class="returnBtn vedioIcon"
  453. @click="startRecording"
  454. v-if="!videoStart && (tType == 1 || tType == 4)"
  455. >
  456. 录制
  457. </div>
  458. <div
  459. class="returnBtn"
  460. @click="stopRecording"
  461. v-else-if="tType == 1 || tType == 4"
  462. style="background: #ee5255"
  463. >
  464. 下载
  465. </div>
  466. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  467. 评论
  468. </div>
  469. <div
  470. class="returnBtn"
  471. @click="nextOrpreSteps(0)"
  472. v-if="!(IsFollow && tType == 2)"
  473. >
  474. 上一步
  475. </div>
  476. <div
  477. class="returnBtn"
  478. @click="nextOrpreSteps(1)"
  479. v-if="!(IsFollow && tType == 2)"
  480. >
  481. 下一步
  482. </div>
  483. <div class="returnBtn" @click="refreshCourse">刷新</div>
  484. <div
  485. class="returnBtn returnIcon"
  486. @click.stop="
  487. goTo(
  488. '/courseDetail?userid=' +
  489. userid +
  490. '&oid=' +
  491. oid +
  492. '&org=' +
  493. org +
  494. '&cid=' +
  495. classId +
  496. '&courseId=' +
  497. id +
  498. '&tType=' +
  499. tType +
  500. '&screenType=' +
  501. screenType
  502. )
  503. "
  504. >
  505. 返回
  506. </div> -->
  507. </div>
  508. </div>
  509. <div
  510. class="isNoMessage"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .chapterData.length == 0 &&
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .toolChoose[0].tool.length == 0 &&
  516. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  517. .taskDetail == '' &&
  518. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  519. .eList &&
  520. !(
  521. courseDetail.userid == userid ||
  522. (courseDetail.course_teacher &&
  523. courseDetail.course_teacher.indexOf(userid) != -1)
  524. )
  525. "
  526. >
  527. <img src="../../assets/icon/isNoMessage.png" alt />
  528. </div>
  529. <div class="study_top" :class="{ pzClass: pzDialog }">
  530. <div
  531. class="vedioBox"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != '' ||
  535. vChapterData[taskCount].length > 0 ||
  536. fileC[taskCount].length > 0
  537. "
  538. style="border-radius: 0 0 20px 20px"
  539. >
  540. <div
  541. class="taskBox"
  542. v-if="
  543. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  544. .taskDetail != ''
  545. "
  546. >
  547. <div
  548. style="
  549. display: flex;
  550. flex-wrap: nowrap;
  551. flex-direction: column;
  552. position: relative;
  553. "
  554. >
  555. <div
  556. style="
  557. padding: 15px 0;
  558. line-height: 29px;
  559. font-size: 18px;
  560. color: #0e1e33;
  561. "
  562. class="cont"
  563. v-if="
  564. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  565. .taskDetail != ''
  566. "
  567. v-html="
  568. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  569. .taskDetail
  570. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  571. taskCount
  572. ].taskDetail
  573. : '暂无描述'
  574. "
  575. ></div>
  576. </div>
  577. </div>
  578. <div
  579. class="student_head"
  580. v-if="
  581. vChapterData[taskCount].length > 0 ||
  582. fileC[taskCount].length > 0
  583. "
  584. >
  585. <div
  586. class="vedioTaskBox"
  587. v-loading="downLoading || showType == 7"
  588. >
  589. <div
  590. :class="
  591. contentDialog == false
  592. ? 'box_course isContentCss'
  593. : 'box_course'
  594. "
  595. v-if="
  596. vChapterData.length > 0 &&
  597. vChapterData[taskCount] &&
  598. showType !== ''
  599. "
  600. >
  601. <div class="wheel" style="height: auto" v-if="showType === 0">
  602. <div
  603. class="workd_media"
  604. style="height: 650px; width: calc(100% - 50px)"
  605. >
  606. <video-player
  607. class="video-player vjs-custom-skin"
  608. :class="contentDialog == false ? 'isAllWidth' : ''"
  609. :playsinline="true"
  610. :options="playerO[taskCount]"
  611. @play="onPlayerPlay($event)"
  612. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  613. ></video-player>
  614. </div>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-if="showType == 1"
  619. style="
  620. box-shadow: 0 0 6px 1px #f2f2f2;
  621. width: 95%;
  622. margin: 0 auto;
  623. background: #f1f1f1;
  624. "
  625. >
  626. <div class="title">查看文档</div>
  627. <el-form class="textBox">
  628. <el-form-item class="textTitle">
  629. <div style="font-size: 22px">
  630. {{ text.name }}
  631. </div>
  632. </el-form-item>
  633. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  634. <div v-html="text.url" class="textContent cont"></div>
  635. </el-form>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="
  640. pptImgUrl1.indexOf(
  641. 'https://view.officeapps.live.com/op/view.aspx?src='
  642. ) != -1 && showType == 2
  643. "
  644. style="width: 95%; margin: 0 auto"
  645. >
  646. <iframe
  647. style="width: 100%; height: 100%; border: none"
  648. :src="pptImgUrl1"
  649. ></iframe>
  650. </div>
  651. <div
  652. class="wheel"
  653. v-else-if="showType == 2"
  654. style="width: 95%; margin: 0 auto"
  655. >
  656. <iframe
  657. style="width: 100%; height: 100%; border: none"
  658. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  659. :src="pptImgUrl1"
  660. ></iframe>
  661. <iframe
  662. style="width: 100%; height: 100%; border: none"
  663. security="restricted"
  664. v-else
  665. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  666. :src="pptImgUrl1"
  667. ></iframe>
  668. </div>
  669. <div
  670. class="wheel"
  671. v-if="showType == 3"
  672. style="width: 95%; margin: 0 auto"
  673. >
  674. <pdf
  675. :pdfUrl="pptImgUrl1"
  676. style="width: 100%; height: 100%; overflow: auto"
  677. ></pdf>
  678. </div>
  679. <div
  680. class="wheel"
  681. v-if="showType == 4"
  682. style="width: 95%; margin: 0 auto"
  683. >
  684. <el-image
  685. :src="pptImgUrl1"
  686. fit="contain"
  687. style="width: 100%; height: 100%; cursor: pointer"
  688. @click="previewImg(pptImgUrl1)"
  689. ></el-image>
  690. </div>
  691. </div>
  692. <div
  693. class="pButton"
  694. style="position: absolute; right: 20px; top: 0; z-index: 998"
  695. v-if="!contentDialog"
  696. @click="setContent(true)"
  697. >
  698. <!-- 批 -->
  699. <img
  700. src="../../assets/icon/newIcons/isLeft.png"
  701. style="width: 45px"
  702. alt=""
  703. />
  704. </div>
  705. <div
  706. v-if="contentDialog == true"
  707. :style="{
  708. width:
  709. (vChapterData[taskCount].length > 0 ||
  710. fileC[taskCount].length > 0) &&
  711. showType === ''
  712. ? 'calc(100%)'
  713. : '300px',
  714. margin:
  715. (vChapterData[taskCount].length > 0 ||
  716. fileC[taskCount].length > 0) &&
  717. showType === ''
  718. ? '0 15px'
  719. : '0 15px 0 0'
  720. }"
  721. >
  722. <div
  723. class="vedioList"
  724. v-if="
  725. vChapterData[taskCount].length > 0 ||
  726. fileC[taskCount].length > 0
  727. "
  728. style="height: 650px"
  729. >
  730. <div class="navCorOpenBox">
  731. <div class="navTitile">内容列表:</div>
  732. <div class="navCorOpen" @click="setContent(false)">
  733. <img
  734. src="../../assets/icon/newIcons/isRight.png"
  735. alt=""
  736. />
  737. </div>
  738. </div>
  739. <div class="navBox">
  740. <div
  741. v-show="
  742. vChapterData[taskCount].length > 0 ||
  743. fileC[taskCount].length > 0
  744. "
  745. style="padding: 10px 0 25px 0"
  746. >
  747. <div
  748. class="vedioTimeBox"
  749. v-for="(vitem, vindex) in vChapterData[taskCount]"
  750. :key="vindex + '1'"
  751. >
  752. <div class="navListItem" v-if="vitem.type == 2">
  753. <div
  754. @click="lookVedio(vitem.url, vindex)"
  755. class="navText"
  756. :class="isClickNav == vindex ? 'isClickNav' : ''"
  757. >
  758. <span v-if="vitem.text">{{ vitem.text }}-</span
  759. >{{ vitem.name }}
  760. </div>
  761. <div class="downIcon" @click="downloadFile2(vitem)">
  762. <img
  763. src="../../assets/icon/newIcon/down.png"
  764. alt
  765. />
  766. </div>
  767. </div>
  768. <div class="navListItem" v-if="vitem.type == 6">
  769. <div
  770. @click="lookText(taskCount, vindex)"
  771. class="navText"
  772. :class="isClickNav == vindex ? 'isClickNav' : ''"
  773. >
  774. {{ vitem.name }}.doc
  775. </div>
  776. <div
  777. class="downIcon"
  778. @click="checkFileFull1(vitem.type, vitem)"
  779. >
  780. <img
  781. src="../../assets/icon/newIcon/allScreen.png"
  782. alt
  783. />
  784. </div>
  785. </div>
  786. <div
  787. class="navListItem"
  788. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  789. >
  790. <div
  791. @click="doUrl(vitem.url, vindex)"
  792. class="navText"
  793. :class="isClickNav == vindex ? 'isClickNav' : ''"
  794. >
  795. {{ vitem.title ? vitem.title : vitem.url }}
  796. </div>
  797. <div
  798. class="downIcon"
  799. @click="checkFileFull1(vitem.type, vitem)"
  800. >
  801. <img
  802. src="../../assets/icon/newIcon/allScreen.png"
  803. alt
  804. />
  805. </div>
  806. </div>
  807. <div class="navListItem" v-if="vitem.type == 3">
  808. <div
  809. @click="downFile(vitem, vindex)"
  810. class="navText"
  811. :class="isClickNav == vindex ? 'isClickNav' : ''"
  812. >
  813. <span v-if="vitem.text">{{ vitem.text }}-</span
  814. >{{ vitem.name }}
  815. </div>
  816. <div
  817. class="downIcon"
  818. @click="checkFileFull1(vitem.type, vitem)"
  819. >
  820. <img
  821. src="../../assets/icon/newIcon/allScreen.png"
  822. alt
  823. />
  824. </div>
  825. <div class="downIcon" @click="downloadFile2(vitem)">
  826. <img
  827. src="../../assets/icon/newIcon/down.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. <div class="navListItem" v-if="vitem.type == 12">
  833. <div class="navText" @click="downloadFile2(vitem)">
  834. <span v-if="vitem.text">{{ vitem.text }}-</span
  835. >{{ vitem.name }}
  836. </div>
  837. <div
  838. class="downIcon"
  839. @click="checkFileFull1(vitem.type, vitem)"
  840. >
  841. <img
  842. src="../../assets/icon/newIcon/allScreen.png"
  843. alt
  844. />
  845. </div>
  846. <div class="downIcon" @click="downloadFile2(vitem)">
  847. <img
  848. src="../../assets/icon/newIcon/down.png"
  849. alt
  850. />
  851. </div>
  852. </div>
  853. <div class="navListItem" v-if="vitem.type == 13">
  854. <div
  855. class="navText"
  856. @click="checkPhoto(vitem, vindex)"
  857. :class="isClickNav == vindex ? 'isClickNav' : ''"
  858. >
  859. {{ vitem.name }}
  860. </div>
  861. <div class="downIcon" @click="downloadFile2(vitem)">
  862. <img
  863. src="../../assets/icon/newIcon/down.png"
  864. alt
  865. />
  866. </div>
  867. </div>
  868. </div>
  869. <div
  870. class="fileC_box"
  871. v-if="fileC[taskCount].length > 0"
  872. >
  873. <div class="fileC_title">以下文件不支持预览</div>
  874. <div
  875. class="vedioTimeBox"
  876. v-for="(vitem, vindex) in fileC[taskCount]"
  877. :key="vindex + '1'"
  878. >
  879. <div class="navListItem" v-if="vitem.type == 12">
  880. <div class="navText" style="color: #acb4bf">
  881. <span v-if="vitem.text">{{ vitem.text }}-</span
  882. >{{ vitem.name }}
  883. </div>
  884. <div
  885. class="downIcon"
  886. @click="downloadFile2(vitem)"
  887. >
  888. <img
  889. src="../../assets/icon/newIcon/down.png"
  890. alt
  891. />
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. <div style="width: calc(100% - 315px)">
  902. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  903. <!-- <el-button
  904. type="primary"
  905. class="newButton"
  906. @click="checkFileFull(showType, pptImgUrl1)"
  907. >全屏查看</el-button
  908. >
  909. <el-button
  910. type="primary"
  911. class="newButton"
  912. @click="downloadFile(pptImgUrl1)"
  913. v-if="showType != 2"
  914. >文件下载</el-button
  915. > -->
  916. <el-button
  917. class="newButton"
  918. v-if="
  919. showType == 2 &&
  920. pptImgUrl1.indexOf(
  921. 'https://view.officeapps.live.com/op/view.aspx?src='
  922. ) == -1
  923. "
  924. type="primary"
  925. @click="openLine(pptImgUrl1)"
  926. >打开链接
  927. </el-button>
  928. </div>
  929. <!-- <div
  930. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  931. v-if="showType == 1"
  932. >
  933. <el-button
  934. type="primary"
  935. class="newButton"
  936. @click="checkFileFull(showType, text)"
  937. >全屏查看</el-button
  938. >
  939. </div> -->
  940. </div>
  941. </div>
  942. </div>
  943. <div class="student_body" v-resize="resize">
  944. <div
  945. class="vedioBox"
  946. :style="{
  947. borderRadius:
  948. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  949. .taskDetail == '' &&
  950. vChapterData[taskCount].length == 0 &&
  951. fileC[taskCount].length == 0
  952. ? '0 0 20px 20px'
  953. : '20px'
  954. }"
  955. v-if="
  956. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  957. .toolChoose[0].tool &&
  958. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  959. .toolChoose[0].tool.length > 0
  960. "
  961. >
  962. <div
  963. class="toolHeng2"
  964. style="position: relative"
  965. v-if="
  966. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  967. .toolChoose[0].tool &&
  968. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  969. .toolChoose[0].tool.length &&
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool.length > 0
  972. "
  973. >
  974. <div class="workNav">工作区</div>
  975. <div
  976. class="filebox"
  977. style="flex-wrap: nowrap"
  978. v-for="(tool, toolIndex) in chapInfoList[courseType]
  979. .chapterInfo[0].taskJson[taskCount].toolChoose"
  980. :key="toolIndex"
  981. >
  982. <div class="bzBox">
  983. <div class="yCss"></div>
  984. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  985. 工具{{ toolIndex + 1 }}
  986. </div>
  987. <div
  988. v-if="timeWorkList[toolIndex].length > 0"
  989. style="margin: 0 0 0 10px"
  990. >
  991. {{
  992. timeWorkList[toolIndex][0].time
  993. ? "时间:" + timeWorkList[toolIndex][0].time
  994. : ""
  995. }}
  996. </div>
  997. </div>
  998. <div class="toolBox">
  999. <div>
  1000. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1001. :key="indexTool"-->
  1002. <!-- <div class="iframeBox">
  1003. <div
  1004. class="addPoint isBorder"
  1005. v-for="(tooC, toolCIndex) in tool.tool"
  1006. :key="toolCIndex"
  1007. >
  1008. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1009. <div
  1010. class="iframeName"
  1011. >
  1012. 电子白板
  1013. </div>
  1014. <iframe
  1015. src="https://iwb.cocorobo.cn/"
  1016. ref="whiteBoard"
  1017. ></iframe>
  1018. </div>
  1019. </div>
  1020. </div>-->
  1021. <div class="noiframeBox">
  1022. <div
  1023. class="addPoint"
  1024. v-for="(tooC, toolCIndex) in tool.tool"
  1025. :key="toolCIndex"
  1026. >
  1027. <div v-if="tooC == 1">
  1028. <img
  1029. src="../../assets/icon/secondToolList/whiteBoard.png"
  1030. alt
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. />
  1033. <div style="margin: 5px 0">电子白板</div>
  1034. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1035. style="position: absolute;right: 33px;top: -30px;">
  1036. 分析
  1037. </div>
  1038. </div>
  1039. <div v-if="tooC == 3">
  1040. <img
  1041. src="../../assets/icon/secondToolList/mindMapping.png"
  1042. alt
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. />
  1045. <div style="margin: 5px 0">思维导图</div>
  1046. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1047. style="position: absolute;right: 33px;top: -30px;">
  1048. 分析
  1049. </div>
  1050. </div>
  1051. <div v-if="tooC == 6">
  1052. <img
  1053. src="../../assets/icon/secondToolList/doc.png"
  1054. alt
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. />
  1057. <div style="margin: 5px 0">协同文档</div>
  1058. </div>
  1059. <div v-if="tooC == 7">
  1060. <img
  1061. src="../../assets/icon/secondToolList/mindNetwork.png"
  1062. alt
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. />
  1065. <div style="margin: 5px 0">思维网格</div>
  1066. <!-- && worksStudent[toolIndex].length>0 -->
  1067. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1068. style="position: absolute;right: 33px;top: -30px;">
  1069. 分析
  1070. </div>
  1071. </div>
  1072. <div v-if="tooC == 8">
  1073. <img
  1074. src="../../assets/icon/secondToolList/library.png"
  1075. alt
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. />
  1078. <div style="margin: 5px 0">素材库</div>
  1079. </div>
  1080. <div v-if="tooC == 17">
  1081. <img
  1082. src="../../assets/icon/secondToolList/library.png"
  1083. alt
  1084. @click="addTools(tooC, toolIndex, taskCount)"
  1085. />
  1086. <div style="margin: 5px 0">学习资料</div>
  1087. </div>
  1088. <div v-if="tooC == 2">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/secondToolList/note.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">便签</div>
  1095. </div>
  1096. <div v-if="tooC == 4">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/thirdToolList/ask.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">问卷调查</div>
  1103. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1104. style="position: absolute;right: 153px;top: -30px;">
  1105. 分析
  1106. </div>
  1107. <div
  1108. class="upload_toolBtn"
  1109. v-if="tType === '1'"
  1110. @click="
  1111. openStatisticalAnalysis(
  1112. tooC,
  1113. toolIndex,
  1114. taskCount,
  1115. 45
  1116. )
  1117. "
  1118. style="position: absolute;right: 33px;top: -30px;"
  1119. >
  1120. 统计分析
  1121. </div>
  1122. </div>
  1123. <div v-if="tooC == 45">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../../assets/icon/thirdToolList/choose.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">选择题</div>
  1130. <div
  1131. class="upload_toolBtn"
  1132. @click="
  1133. openChoseWorksDetailDialog(
  1134. tooC,
  1135. toolIndex,
  1136. taskCount,
  1137. 45
  1138. )
  1139. "
  1140. style="position: absolute;right: 33px;top: -30px;"
  1141. >
  1142. 分析
  1143. </div>
  1144. </div>
  1145. <!-- <div v-if="tooC == 5">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/score.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">量规评分</div>
  1152. </div> -->
  1153. <div v-if="tooC == 10">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../../assets/icon/thirdToolList/time.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">倒计时</div>
  1160. </div>
  1161. <div v-if="tooC == 15">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../../assets/icon/thirdToolList/answer.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">问答</div>
  1168. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1169. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1170. 分析
  1171. </div>
  1172. </div>
  1173. <div v-if="tooC == 26">
  1174. <img
  1175. @click="addTools(tooC, toolIndex, taskCount)"
  1176. src="../../assets/icon/thirdToolList/courseDesign.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">课程设计</div>
  1180. </div>
  1181. <div v-if="tooC == 18">
  1182. <img
  1183. @click="addTools(tooC, toolIndex, taskCount)"
  1184. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1185. alt
  1186. />
  1187. <div style="margin: 5px 0">训练服务器</div>
  1188. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1189. style="position: absolute;right: 33px;top: -30px;">
  1190. 分析
  1191. </div>
  1192. </div>
  1193. <div v-if="tooC == 16">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../../assets/icon/thirdToolList/work.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">作业提交</div>
  1200. </div>
  1201. <div v-if="tooC == 50">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../../assets/icon/thirdToolList/plwork.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">批量上传</div>
  1208. </div>
  1209. <div v-if="tooC == 21">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../../assets/icon/fourthToolList/program.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">AIoT Blockly</div>
  1216. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1217. style="position: absolute;right: 33px;top: -30px;">
  1218. 分析
  1219. </div>
  1220. </div>
  1221. <!-- <div v-if="tooC == 22">
  1222. <img
  1223. @click="addTools(tooC, toolIndex, taskCount)"
  1224. src="../../assets/icon/fourthToolList/program.png"
  1225. alt
  1226. />
  1227. <div style="margin: 5px 0">AI体验</div>
  1228. </div> -->
  1229. <div v-if="tooC == 23">
  1230. <img
  1231. @click="addTools(tooC, toolIndex, taskCount)"
  1232. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1233. alt
  1234. />
  1235. <div style="margin: 5px 0">AI Python</div>
  1236. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1237. style="position: absolute;right: 33px;top: -30px;">
  1238. 分析
  1239. </div>
  1240. </div>
  1241. <div v-if="tooC == 24">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../../assets/icon/fourthToolList/AIprogram.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">AI Blockly</div>
  1248. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1249. style="position: absolute;right: 33px;top: -30px;">
  1250. 分析
  1251. </div>
  1252. </div>
  1253. <div v-if="tooC == 25">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/thirdToolList/evalua.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">目标管理</div>
  1260. </div>
  1261. <div v-if="tooC == 31">
  1262. <img
  1263. @click="addTools(tooC, toolIndex, taskCount)"
  1264. src="../../assets/icon/secondToolList/networkPanel.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">数学画板</div>
  1268. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1269. style="position: absolute;right: 33px;top: -30px;">
  1270. 分析
  1271. </div>
  1272. </div>
  1273. <div v-if="tooC == 28">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../../assets/icon/secondToolList/translation.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">翻译</div>
  1280. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1281. style="position: absolute;right: 33px;top: -30px;">
  1282. 分析
  1283. </div>
  1284. </div>
  1285. <div v-if="tooC == 37">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/secondToolList/mohe.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">魔盒识字</div>
  1292. </div>
  1293. <div v-if="tooC == 38">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../../assets/icon/secondToolList/24game.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">24点</div>
  1300. </div>
  1301. <div v-if="tooC == 39">
  1302. <img
  1303. @click="addTools(tooC, toolIndex, taskCount)"
  1304. src="../../assets/icon/secondToolList/GeoGebra.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">GeoGebra</div>
  1308. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1309. style="position: absolute;right: 33px;top: -30px;">
  1310. 分析
  1311. </div>
  1312. </div>
  1313. <div v-if="tooC == 32">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../../assets/icon/thirdToolList/code.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">源码编辑</div>
  1320. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1321. style="position: absolute;right: 153px;top: -42px;">
  1322. 分析
  1323. </div>
  1324. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1325. style="position: absolute;left: 110px;bottom: 30px;">
  1326. 上传文件
  1327. <input type="file" accept="*" style="display: none"
  1328. @change="beforeUpload1($event, 7, toolIndex)" />
  1329. </div> -->
  1330. </div>
  1331. <div v-if="tooC == 40">
  1332. <img
  1333. @click="addTools(tooC, toolIndex, taskCount)"
  1334. src="../../assets/icon/secondToolList/eval.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">个人评价</div>
  1338. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1339. style="position: absolute;right: 33px;top: -30px;">
  1340. 分析
  1341. </div>
  1342. </div>
  1343. <div v-if="tooC == 41">
  1344. <img
  1345. @click="addTools(tooC, toolIndex, taskCount)"
  1346. src="../../assets/icon/thirdToolList/select.png"
  1347. alt
  1348. />
  1349. <div style="margin: 5px 0">选择匹配</div>
  1350. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1351. style="position: absolute;right: 33px;top: -30px;">
  1352. 分析
  1353. </div>
  1354. </div>
  1355. <div v-if="tooC == 44">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/thirdToolList/hanClass.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">汉字宫</div>
  1362. </div>
  1363. <div v-if="tooC == 47">
  1364. <img
  1365. @click="addTools(tooC, toolIndex, taskCount)"
  1366. src="../../assets/icon/fourthToolList/conSentences.png"
  1367. alt
  1368. />
  1369. <div style="margin: 5px 0">排序</div>
  1370. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1371. style="position: absolute;right: 33px;top: -30px;">
  1372. 分析
  1373. </div>
  1374. </div>
  1375. <div v-if="tooC == 48">
  1376. <img
  1377. @click="addTools(tooC, toolIndex, taskCount)"
  1378. src="../../assets/icon/fourthToolList/table.png"
  1379. alt
  1380. />
  1381. <div style="margin: 5px 0">表格</div>
  1382. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1383. style="position: absolute;right: 33px;top: -30px;">
  1384. 分析
  1385. </div>
  1386. </div>
  1387. <div v-if="tooC == 52">
  1388. <img
  1389. @click="addTools(tooC, toolIndex, taskCount)"
  1390. src="../../assets/icon/fourthToolList/text.png"
  1391. alt
  1392. />
  1393. <div style="margin: 5px 0">文档</div>
  1394. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1395. style="position: absolute;right: 33px;top: -30px;">
  1396. 分析
  1397. </div>
  1398. </div>
  1399. <div v-if="tooC == 49">
  1400. <img
  1401. @click="addTools(tooC, toolIndex, taskCount)"
  1402. src="../../assets/icon/fourthToolList/group.png"
  1403. alt
  1404. />
  1405. <div style="margin: 5px 0">学生分组</div>
  1406. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1407. style="position: absolute;right: 33px;top: -30px;">
  1408. 分析
  1409. </div>
  1410. </div>
  1411. <div v-if="tooC == 57">
  1412. <img
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. src="../../assets/icon/fourthToolList/cocopi.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">CocoPi</div>
  1418. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1419. style="position: absolute;right: 33px;top: -30px;">
  1420. 分析
  1421. </div>
  1422. </div>
  1423. <div v-if="tooC == 58">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/car.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">模拟驾驶</div>
  1430. </div>
  1431. <div v-if="tooC == 59">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/lineSearch.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">路径搜索</div>
  1438. </div>
  1439. <div v-if="tooC == 60">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/fourthToolList/deepLearning.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">深度学习</div>
  1446. </div>
  1447. <div v-if="tooC == 61">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/fourthToolList/allHistory.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">全历史</div>
  1454. </div>
  1455. <div v-if="tooC == 62">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../../assets/icon/fourthToolList/interVideo.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div v-if="tooC == 63">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../../assets/icon/fourthToolList/Wood.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">海龟编程</div>
  1470. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 71">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/fourthToolList/chatgpt.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">AI智能体</div>
  1482. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1483. style="position: absolute;right: 33px;top: -30px;">
  1484. 分析
  1485. </div>
  1486. </div>
  1487. <div v-if="tooC == 72">
  1488. <img
  1489. style="height: 85px;object-fit: cover;"
  1490. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1491. @click="addTools(tooC, toolIndex, taskCount)"
  1492. :src="tool.appJson.json.icon"
  1493. alt
  1494. />
  1495. <img
  1496. v-else
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/firstToolList/appStore.png"
  1499. alt
  1500. />
  1501. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1502. <!-- content to trigger tooltip here -->
  1503. <div class="Ovh">
  1504. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1505. </div>
  1506. </el-tooltip>
  1507. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1508. style="position: absolute;right: 33px;top: -30px;">
  1509. 分析
  1510. </div>
  1511. </div>
  1512. <div v-if="tooC == 65">
  1513. <img
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. src="../../assets/icon/firstToolList/pickPeople.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">挑人</div>
  1519. </div>
  1520. <div v-if="tooC == 66">
  1521. <img
  1522. @click="addTools(tooC, toolIndex, taskCount)"
  1523. src="../../assets/icon/secondToolList/formulaEdi.png"
  1524. alt
  1525. />
  1526. <div style="margin: 5px 0">公式编辑</div>
  1527. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1528. style="position: absolute;right: 33px;top: -30px;">
  1529. 分析
  1530. </div>
  1531. </div>
  1532. <div v-if="tooC == 67">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/secondToolList/molStr.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">分子结构</div>
  1539. </div>
  1540. <div v-if="tooC == 68">
  1541. <img
  1542. @click="addTools(tooC, toolIndex, taskCount)"
  1543. src="../../assets/icon/secondToolList/timeAxis.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">时间轴</div>
  1547. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1548. style="position: absolute;right: 33px;top: -30px;">
  1549. 分析
  1550. </div> -->
  1551. </div>
  1552. <div v-if="tooC == 69">
  1553. <img
  1554. @click="addTools(tooC, toolIndex, taskCount)"
  1555. src="../../assets/icon/secondToolList/english.png"
  1556. alt
  1557. />
  1558. <div style="margin: 5px 0">英语写作</div>
  1559. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1560. style="position: absolute;right: 33px;top: -30px;">
  1561. 分析
  1562. </div>
  1563. </div>
  1564. <div v-if="tooC == 70">
  1565. <img
  1566. @click="addTools(tooC, toolIndex, taskCount)"
  1567. src="../../assets/icon/thirdToolList/englishVoice.png"
  1568. alt
  1569. />
  1570. <div style="margin: 5px 0">英语口语</div>
  1571. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1572. style="position: absolute;right: 33px;top: -30px;">
  1573. 分析
  1574. </div>
  1575. </div>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div
  1580. class="tooldetail"
  1581. v-if="tool.toolDetail != ''"
  1582. :class="{
  1583. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1584. }"
  1585. >
  1586. <!-- <div class="toolTitle">工具描述</div> -->
  1587. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1588. <div
  1589. style="height:100%;"
  1590. v-html="contentConvent(tool.toolDetail)"
  1591. v-if="toolDetailIndex != toolIndex"
  1592. ></div>
  1593. <div v-else @click.stop="" style="height:100%;">
  1594. <textarea
  1595. @change="
  1596. () => {
  1597. $forceUpdate();
  1598. }
  1599. "
  1600. class="checkTextArea"
  1601. rows="3"
  1602. v-autoHeight="70"
  1603. type="text"
  1604. placeholder="请输入任务描述"
  1605. v-model="updateToolDetailInner"
  1606. ></textarea>
  1607. </div>
  1608. </div>
  1609. <el-button
  1610. type="primary"
  1611. v-if="tool.tool[0] == 32"
  1612. style="position: absolute; right: 30px; top: -45px"
  1613. @click="addImg($event)"
  1614. >上传作业<input
  1615. type="file"
  1616. accept="*"
  1617. style="display: none"
  1618. @change="beforeUpload1($event, 7, toolIndex)"
  1619. /></el-button>
  1620. <el-button
  1621. type="primary"
  1622. v-if="tool.tool[0] == 15"
  1623. style="position: absolute; right: 30px; top: -45px"
  1624. @click="openWordCloud(toolIndex)"
  1625. >生成词云</el-button
  1626. >
  1627. <el-button
  1628. type="primary"
  1629. v-if="
  1630. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1631. "
  1632. style="position: absolute; right: 30px; top: -45px"
  1633. @click="uploadWorks(toolIndex)"
  1634. >导出作业</el-button
  1635. >
  1636. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1637. position: absolute;
  1638. right: 30px;
  1639. transform: translateY(-130%);
  1640. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1641. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1642. </div>
  1643. <div
  1644. v-if="
  1645. tType &&
  1646. tType == 2 &&
  1647. !sIsOpen &&
  1648. tool.tool.indexOf(16) != -1
  1649. "
  1650. class="worksBox"
  1651. >
  1652. <div
  1653. class="zuoyeYulan"
  1654. v-if="workStudent[toolIndex].length > 0"
  1655. >
  1656. <span class="worksTitle">作业预览</span>
  1657. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1658. </div>
  1659. <div
  1660. class="worksDetailBox"
  1661. v-if="workStudent[toolIndex].length > 0"
  1662. >
  1663. <div
  1664. class="works"
  1665. style="
  1666. width: 200px;
  1667. height: 140px;
  1668. margin: 10px 10px 10px 0;
  1669. box-shadow: 0 0 6px 1px #dfdada;
  1670. "
  1671. v-for="(w, wIndex) in workStudent[toolIndex]"
  1672. :key="wIndex"
  1673. >
  1674. <div class="workImg" v-if="w.type == 0">
  1675. <img
  1676. :src="w.works"
  1677. @click="previewImg(w.works, w)"
  1678. alt
  1679. />
  1680. <div
  1681. class="answerScore"
  1682. v-if="w.score"
  1683. @click.stop="openScore(w)"
  1684. :class="{
  1685. rightW:
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. }"
  1688. >
  1689. {{ JSON.parse(w.score).wScore }}分
  1690. </div>
  1691. <div
  1692. class="answerScore"
  1693. @click.stop="openScore(w)"
  1694. v-else-if="courseDetail.userid == userid"
  1695. :class="{
  1696. rightW:
  1697. w.userid == userid || tType == 1 || tType == 4
  1698. }"
  1699. >
  1700. 评分
  1701. </div>
  1702. <div
  1703. class="stuLookScore"
  1704. v-if="
  1705. w.userid == userid ||
  1706. (tType == 1 &&
  1707. courseDetail.state == 5 &&
  1708. ((chapInfoList[courseType].chapterInfo[0]
  1709. .taskJson[taskCount].eList &&
  1710. chapInfoList[courseType].chapterInfo[0]
  1711. .taskJson[taskCount].eList.length) ||
  1712. (tool.eList && tool.eList.length)))
  1713. "
  1714. >
  1715. <el-popover
  1716. placement="top"
  1717. width="318"
  1718. trigger="hover"
  1719. >
  1720. <markScore
  1721. :loading="AIloading[toolIndex][wIndex].loading"
  1722. :markScoreVisible="markScoreVisible"
  1723. :ref="`markSco${toolIndex}${wIndex}`"
  1724. @updateLoading="updateLoading"
  1725. @updateDocSco="updateDocSco"
  1726. @refreshOther="refreshOther"
  1727. @markScoreDig="markScoreDig"
  1728. :tool="tool"
  1729. :wIndex="wIndex"
  1730. :scoCon="w"
  1731. :toolIndex="toolIndex"
  1732. :key="refreshKey"
  1733. :stage="courseType"
  1734. :task="taskCount"
  1735. :scoTit="
  1736. chapInfoList[courseType].chapterInfo[0]
  1737. .taskJson[taskCount].eList
  1738. "
  1739. >
  1740. </markScore>
  1741. <div
  1742. @click="
  1743. markScoreDig2(
  1744. w.sName,
  1745. worksStudent,
  1746. w.userid,
  1747. toolIndex,
  1748. chapInfoList[courseType].chapterInfo[0]
  1749. .taskJson[taskCount].eList,
  1750. AIloading[toolIndex][wIndex].loading,
  1751. tool
  1752. )
  1753. "
  1754. slot="reference"
  1755. >
  1756. <span v-if="AIloading[toolIndex][wIndex].sco">
  1757. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1758. </span>
  1759. <span v-else>
  1760. 评分
  1761. </span>
  1762. </div>
  1763. </el-popover>
  1764. </div>
  1765. <img
  1766. class="deleteImg"
  1767. src="../../assets/deleteworks.png"
  1768. v-if="
  1769. w.userid == userid || tType == 1 || tType == 4
  1770. "
  1771. @click.stop="deleteWorks(w.wid)"
  1772. alt
  1773. />
  1774. </div>
  1775. <div class="workImg" v-if="w.type == 1">
  1776. <img :src="word" @click="openFile(w.works)" alt />
  1777. <div
  1778. class="answerScore"
  1779. v-if="w.score"
  1780. @click.stop="openScore(w)"
  1781. :class="{
  1782. rightW:
  1783. w.userid == userid || tType == 1 || tType == 4
  1784. }"
  1785. >
  1786. {{ JSON.parse(w.score).wScore }}分
  1787. </div>
  1788. <div
  1789. class="answerScore"
  1790. @click.stop="openScore(w)"
  1791. v-else-if="courseDetail.userid == userid"
  1792. :class="{
  1793. rightW:
  1794. w.userid == userid || tType == 1 || tType == 4
  1795. }"
  1796. >
  1797. 评分
  1798. </div>
  1799. <div
  1800. class="stuLookScore"
  1801. v-if="
  1802. w.userid == userid ||
  1803. (tType == 1 &&
  1804. courseDetail.state == 5 &&
  1805. ((chapInfoList[courseType].chapterInfo[0]
  1806. .taskJson[taskCount].eList &&
  1807. chapInfoList[courseType].chapterInfo[0]
  1808. .taskJson[taskCount].eList.length) ||
  1809. (tool.eList && tool.eList.length)))
  1810. "
  1811. >
  1812. <el-popover
  1813. placement="top"
  1814. width="318"
  1815. trigger="hover"
  1816. >
  1817. <markScore
  1818. :loading="AIloading[toolIndex][wIndex].loading"
  1819. :markScoreVisible="markScoreVisible"
  1820. :ref="`markSco${toolIndex}${wIndex}`"
  1821. @updateLoading="updateLoading"
  1822. @updateDocSco="updateDocSco"
  1823. @refreshOther="refreshOther"
  1824. @markScoreDig="markScoreDig"
  1825. :tool="tool"
  1826. :wIndex="wIndex"
  1827. :scoCon="w"
  1828. :toolIndex="toolIndex"
  1829. :key="refreshKey"
  1830. :stage="courseType"
  1831. :task="taskCount"
  1832. :scoTit="
  1833. chapInfoList[courseType].chapterInfo[0]
  1834. .taskJson[taskCount].eList
  1835. "
  1836. >
  1837. </markScore>
  1838. <div
  1839. @click="
  1840. markScoreDig2(
  1841. w.sName,
  1842. worksStudent,
  1843. w.userid,
  1844. toolIndex,
  1845. chapInfoList[courseType].chapterInfo[0]
  1846. .taskJson[taskCount].eList,
  1847. AIloading[toolIndex][wIndex].loading,
  1848. tool
  1849. )
  1850. "
  1851. slot="reference"
  1852. >
  1853. <span v-if="AIloading[toolIndex][wIndex].sco">
  1854. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1855. </span>
  1856. <span v-else>
  1857. 评分
  1858. </span>
  1859. </div>
  1860. </el-popover>
  1861. </div>
  1862. <img
  1863. class="deleteImg"
  1864. src="../../assets/deleteworks.png"
  1865. v-if="
  1866. w.userid == userid || tType == 1 || tType == 4
  1867. "
  1868. @click.stop="deleteWorks(w.wid)"
  1869. alt
  1870. />
  1871. </div>
  1872. <div class="workImg" v-if="w.type == 3">
  1873. <img
  1874. style="cursor: pointer"
  1875. :src="video"
  1876. @click="openVideo(w)"
  1877. alt
  1878. />
  1879. <div
  1880. class="answerScore"
  1881. v-if="w.score"
  1882. @click.stop="openScore(w)"
  1883. :class="{
  1884. rightW:
  1885. w.userid == userid || tType == 1 || tType == 4
  1886. }"
  1887. >
  1888. {{ JSON.parse(w.score).wScore }}分
  1889. </div>
  1890. <div
  1891. class="answerScore"
  1892. @click.stop="openScore(w)"
  1893. v-else-if="courseDetail.userid == userid"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid || tType == 1 || tType == 4
  1897. }"
  1898. >
  1899. 评分
  1900. </div>
  1901. <div
  1902. class="stuLookScore"
  1903. v-if="
  1904. w.userid == userid ||
  1905. (tType == 1 &&
  1906. courseDetail.state == 5 &&
  1907. ((chapInfoList[courseType].chapterInfo[0]
  1908. .taskJson[taskCount].eList &&
  1909. chapInfoList[courseType].chapterInfo[0]
  1910. .taskJson[taskCount].eList.length) ||
  1911. (tool.eList && tool.eList.length)))
  1912. "
  1913. >
  1914. <el-popover
  1915. placement="top"
  1916. width="318"
  1917. trigger="hover"
  1918. >
  1919. <markScore
  1920. :loading="AIloading[toolIndex][wIndex].loading"
  1921. :markScoreVisible="markScoreVisible"
  1922. :ref="`markSco${toolIndex}${wIndex}`"
  1923. @updateLoading="updateLoading"
  1924. @updateDocSco="updateDocSco"
  1925. @refreshOther="refreshOther"
  1926. @markScoreDig="markScoreDig"
  1927. :tool="tool"
  1928. :wIndex="wIndex"
  1929. :scoCon="w"
  1930. :toolIndex="toolIndex"
  1931. :key="refreshKey"
  1932. :stage="courseType"
  1933. :task="taskCount"
  1934. :scoTit="
  1935. chapInfoList[courseType].chapterInfo[0]
  1936. .taskJson[taskCount].eList
  1937. "
  1938. >
  1939. </markScore>
  1940. <div
  1941. @click="
  1942. markScoreDig2(
  1943. w.sName,
  1944. worksStudent,
  1945. w.userid,
  1946. toolIndex,
  1947. chapInfoList[courseType].chapterInfo[0]
  1948. .taskJson[taskCount].eList,
  1949. AIloading[toolIndex][wIndex].loading,
  1950. tool
  1951. )
  1952. "
  1953. slot="reference"
  1954. >
  1955. <span v-if="AIloading[toolIndex][wIndex].sco">
  1956. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1957. </span>
  1958. <span v-else>
  1959. 评分
  1960. </span>
  1961. </div>
  1962. </el-popover>
  1963. </div>
  1964. <img
  1965. class="deleteImg"
  1966. src="../../assets/deleteworks.png"
  1967. v-if="
  1968. w.userid == userid || tType == 1 || tType == 4
  1969. "
  1970. @click.stop="deleteWorks(w.wid)"
  1971. alt
  1972. />
  1973. </div>
  1974. <div class="workImg" v-if="w.type == 12">
  1975. <img
  1976. style="cursor: pointer"
  1977. :src="word2"
  1978. @click="downloadFile(w.works)"
  1979. alt
  1980. />
  1981. <div
  1982. class="answerScore"
  1983. v-if="w.score"
  1984. @click.stop="openScore(w)"
  1985. :class="{
  1986. rightW:
  1987. w.userid == userid || tType == 1 || tType == 4
  1988. }"
  1989. >
  1990. {{ JSON.parse(w.score).wScore }}分
  1991. </div>
  1992. <div
  1993. class="answerScore"
  1994. @click.stop="openScore(w)"
  1995. v-else-if="courseDetail.userid == userid"
  1996. :class="{
  1997. rightW:
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. }"
  2000. >
  2001. 评分
  2002. </div>
  2003. <div
  2004. class="stuLookScore"
  2005. v-if="
  2006. w.userid == userid ||
  2007. (tType == 1 &&
  2008. courseDetail.state == 5 &&
  2009. ((chapInfoList[courseType].chapterInfo[0]
  2010. .taskJson[taskCount].eList &&
  2011. chapInfoList[courseType].chapterInfo[0]
  2012. .taskJson[taskCount].eList.length) ||
  2013. (tool.eList && tool.eList.length)))
  2014. "
  2015. >
  2016. <el-popover
  2017. placement="top"
  2018. width="318"
  2019. trigger="hover"
  2020. >
  2021. <markScore
  2022. :loading="AIloading[toolIndex][wIndex].loading"
  2023. :markScoreVisible="markScoreVisible"
  2024. :ref="`markSco${toolIndex}${wIndex}`"
  2025. @updateLoading="updateLoading"
  2026. @updateDocSco="updateDocSco"
  2027. @refreshOther="refreshOther"
  2028. @markScoreDig="markScoreDig"
  2029. :tool="tool"
  2030. :wIndex="wIndex"
  2031. :scoCon="w"
  2032. :toolIndex="toolIndex"
  2033. :key="refreshKey"
  2034. :stage="courseType"
  2035. :task="taskCount"
  2036. :scoTit="
  2037. chapInfoList[courseType].chapterInfo[0]
  2038. .taskJson[taskCount].eList
  2039. "
  2040. >
  2041. </markScore>
  2042. <div
  2043. @click="
  2044. markScoreDig2(
  2045. w.sName,
  2046. worksStudent,
  2047. w.userid,
  2048. toolIndex,
  2049. chapInfoList[courseType].chapterInfo[0]
  2050. .taskJson[taskCount].eList,
  2051. AIloading[toolIndex][wIndex].loading,
  2052. tool
  2053. )
  2054. "
  2055. slot="reference"
  2056. >
  2057. <span v-if="AIloading[toolIndex][wIndex].sco">
  2058. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2059. </span>
  2060. <span v-else>
  2061. 评分
  2062. </span>
  2063. </div>
  2064. </el-popover>
  2065. </div>
  2066. <img
  2067. class="deleteImg"
  2068. src="../../assets/deleteworks.png"
  2069. v-if="
  2070. w.userid == userid || tType == 1 || tType == 4
  2071. "
  2072. @click.stop="deleteWorks(w.wid)"
  2073. alt
  2074. />
  2075. </div>
  2076. <div class="worksName">
  2077. <div>{{ w.sName }}</div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. </div>
  2082. <div
  2083. v-if="
  2084. tType &&
  2085. tType == 2 &&
  2086. !sIsOpen &&
  2087. tool.tool.indexOf(32) != -1
  2088. "
  2089. class="worksBox"
  2090. >
  2091. <div
  2092. class="zuoyeYulan"
  2093. v-if="workStudent[toolIndex].length > 0"
  2094. >
  2095. <span class="worksTitle">作业预览</span>
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="works"
  2103. style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. box-shadow: 0 0 6px 1px #dfdada;
  2108. "
  2109. v-for="(w, wIndex) in workStudent[toolIndex]"
  2110. :key="wIndex"
  2111. >
  2112. <div class="workImg">
  2113. <img
  2114. :src="word2"
  2115. @click="downloadFile(w.works)"
  2116. alt
  2117. />
  2118. <div
  2119. class="answerScore"
  2120. v-if="w.score"
  2121. @click.stop="openScore(w)"
  2122. :class="{
  2123. rightW:
  2124. w.userid == userid || tType == 1 || tType == 4
  2125. }"
  2126. >
  2127. {{ JSON.parse(w.score).wScore }}分
  2128. </div>
  2129. <div
  2130. class="answerScore"
  2131. @click.stop="openScore(w)"
  2132. v-else-if="courseDetail.userid == userid"
  2133. :class="{
  2134. rightW:
  2135. w.userid == userid || tType == 1 || tType == 4
  2136. }"
  2137. >
  2138. 评分
  2139. </div>
  2140. <img
  2141. class="deleteImg"
  2142. src="../../assets/deleteworks.png"
  2143. v-if="
  2144. w.userid == userid || tType == 1 || tType == 4
  2145. "
  2146. @click.stop="deleteWorks(w.wid)"
  2147. alt
  2148. />
  2149. </div>
  2150. <div class="worksName">
  2151. <div>{{ w.sName }}</div>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(57) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. </div>
  2171. <div
  2172. class="worksDetailBox"
  2173. v-if="workStudent[toolIndex].length > 0"
  2174. >
  2175. <div
  2176. class="works"
  2177. style="
  2178. width: 200px;
  2179. height: 140px;
  2180. margin: 10px 10px 10px 0;
  2181. box-shadow: 0 0 6px 1px #dfdada;
  2182. "
  2183. v-for="(w, wIndex) in workStudent[toolIndex]"
  2184. :key="wIndex"
  2185. >
  2186. <div class="workImg">
  2187. <img
  2188. :src="word2"
  2189. @click="downloadFile(w.works)"
  2190. v-if="w.type == 12"
  2191. alt
  2192. />
  2193. <img
  2194. :src="word2"
  2195. @click="
  2196. openCocoPi(57, toolIndex, w.userid, w.sName)
  2197. "
  2198. v-else-if="w.type == 15"
  2199. alt
  2200. />
  2201. <div
  2202. class="answerScore"
  2203. v-if="w.score"
  2204. @click.stop="openScore(w)"
  2205. :class="{
  2206. rightW:
  2207. w.userid == userid || tType == 1 || tType == 4
  2208. }"
  2209. >
  2210. {{ JSON.parse(w.score).wScore }}分
  2211. </div>
  2212. <div
  2213. class="answerScore"
  2214. @click.stop="openScore(w)"
  2215. v-else-if="courseDetail.userid == userid"
  2216. :class="{
  2217. rightW:
  2218. w.userid == userid || tType == 1 || tType == 4
  2219. }"
  2220. >
  2221. 评分
  2222. </div>
  2223. <img
  2224. class="deleteImg"
  2225. src="../../assets/deleteworks.png"
  2226. v-if="
  2227. w.userid == userid || tType == 1 || tType == 4
  2228. "
  2229. @click.stop="deleteWorks(w.wid)"
  2230. alt
  2231. />
  2232. </div>
  2233. <div class="worksName">
  2234. <div>{{ w.sName }}</div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. <div
  2240. v-if="
  2241. tType &&
  2242. tType == 2 &&
  2243. !sIsOpen &&
  2244. tool.tool.indexOf(4) != -1
  2245. "
  2246. class="worksBox"
  2247. >
  2248. <div
  2249. class="zuoyeYulan"
  2250. v-if="workStudent[toolIndex].length > 0"
  2251. >
  2252. <span class="worksTitle">作业预览</span>
  2253. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2254. </div>
  2255. <div
  2256. class="worksDetailBox"
  2257. v-if="workStudent[toolIndex].length > 0"
  2258. >
  2259. <div
  2260. class="isWorksName2"
  2261. v-for="(w, wIndex) in workStudent[toolIndex]"
  2262. :key="wIndex"
  2263. @click="
  2264. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2265. "
  2266. >
  2267. {{ w.sName }}
  2268. <img
  2269. class="deleteImg deleteImg2"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="w.userid == userid || tType == 1 || tType == 4"
  2272. @click.stop="deleteWorks(w.wid)"
  2273. alt
  2274. />
  2275. </div>
  2276. <!-- <div
  2277. class="works"
  2278. style="
  2279. width: 200px;
  2280. height: 140px;
  2281. border-radius: 10px;
  2282. box-shadow: 0 0 6px 1px #dfdada;
  2283. overflow: hidden;
  2284. "
  2285. v-for="(w, wIndex) in workStudent[toolIndex]"
  2286. :key="wIndex"
  2287. >
  2288. <div class="workImg">
  2289. <img
  2290. src="../../assets/icon/works/noImg.png"
  2291. @click="
  2292. openTools(
  2293. 4,
  2294. toolIndex,
  2295. taskCount,
  2296. w.works,
  2297. w.sName
  2298. )
  2299. "
  2300. alt
  2301. />
  2302. </div>
  2303. <div class="worksName">
  2304. <div>{{ w.sName }}</div>
  2305. <div>{{ w.time }}</div>
  2306. </div>
  2307. </div> -->
  2308. </div>
  2309. </div>
  2310. <div
  2311. v-if="
  2312. tType &&
  2313. ((tType == 2 && sIsOpen == true) ||
  2314. tType == 1 ||
  2315. tType == 4) &&
  2316. tool.tool.indexOf(62) != -1
  2317. "
  2318. class="worksBox"
  2319. >
  2320. <div
  2321. class="zuoyeYulan"
  2322. v-if="
  2323. worksStudent.length &&
  2324. worksStudent[toolIndex].length > 0
  2325. "
  2326. >
  2327. <div class="worksTop">
  2328. <div>作业预览</div>
  2329. <div
  2330. class="corOpen"
  2331. @click="contract(toolIndex)"
  2332. v-if="
  2333. isCloseList[toolIndex].isCloseBoolean &&
  2334. isCloseList[toolIndex].isClose == 0
  2335. "
  2336. >
  2337. 折叠
  2338. </div>
  2339. <div
  2340. class="corOpen"
  2341. @click="contract(toolIndex)"
  2342. v-if="isCloseList[toolIndex].isClose == 1"
  2343. >
  2344. 展开
  2345. </div>
  2346. </div>
  2347. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2348. </div>
  2349. <div>
  2350. <div
  2351. :id="'tool-' + toolIndex"
  2352. :style="{
  2353. height:
  2354. isCloseList[toolIndex].isClose == 1
  2355. ? retrnToolHeight('tool-' + toolIndex)
  2356. : 'auto',
  2357. overflow:
  2358. isCloseList[toolIndex].isClose == 1
  2359. ? 'hidden'
  2360. : 'unset'
  2361. }"
  2362. class="worksDetailBox"
  2363. v-if="
  2364. worksStudent.length &&
  2365. worksStudent[toolIndex].length > 0
  2366. "
  2367. >
  2368. <div
  2369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2370. :key="wIndex"
  2371. class="isWorksName2"
  2372. @click="
  2373. openTools(
  2374. 62,
  2375. toolIndex,
  2376. taskCount,
  2377. w.works,
  2378. w.sName
  2379. )
  2380. "
  2381. >
  2382. {{ w.sName }}
  2383. <img
  2384. class="deleteImg deleteImg2"
  2385. src="../../assets/deleteworks.png"
  2386. v-if="
  2387. w.userid == userid || tType == 1 || tType == 4
  2388. "
  2389. @click.stop="deleteWorks(w.wid)"
  2390. alt
  2391. />
  2392. </div>
  2393. </div>
  2394. </div>
  2395. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2396. 未提交
  2397. </div>
  2398. <div
  2399. class="noWorksS"
  2400. v-if="noWorksS && noWorksS[toolIndex].length"
  2401. >
  2402. <div
  2403. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2404. :key="sIndex"
  2405. class="noWorksName"
  2406. >
  2407. <el-tooltip
  2408. effect="dark"
  2409. :content="s.student"
  2410. placement="top"
  2411. >
  2412. <span>{{ s.student }}</span>
  2413. </el-tooltip>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. <div
  2418. v-if="
  2419. tType &&
  2420. tType == 2 &&
  2421. !sIsOpen &&
  2422. tool.tool.indexOf(62) != -1
  2423. "
  2424. class="worksBox"
  2425. >
  2426. <div
  2427. class="zuoyeYulan"
  2428. v-if="workStudent[toolIndex].length > 0"
  2429. >
  2430. <span class="worksTitle">作业预览</span>
  2431. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2432. </div>
  2433. <div
  2434. class="worksDetailBox"
  2435. v-if="workStudent[toolIndex].length > 0"
  2436. >
  2437. <div
  2438. class="isWorksName2"
  2439. v-for="(w, wIndex) in workStudent[toolIndex]"
  2440. :key="wIndex"
  2441. @click="
  2442. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2443. "
  2444. >
  2445. {{ w.sName }}
  2446. <img
  2447. class="deleteImg deleteImg2"
  2448. src="../../assets/deleteworks.png"
  2449. v-if="w.userid == userid || tType == 1 || tType == 4"
  2450. @click.stop="deleteWorks(w.wid)"
  2451. alt
  2452. />
  2453. </div>
  2454. </div>
  2455. </div>
  2456. <div
  2457. v-if="
  2458. tType &&
  2459. tType == 2 &&
  2460. !sIsOpen &&
  2461. tool.tool.indexOf(45) != -1
  2462. "
  2463. class="worksBox"
  2464. >
  2465. <div
  2466. class="zuoyeYulan"
  2467. v-if="workStudent[toolIndex].length > 0"
  2468. >
  2469. <span class="worksTitle">作业预览</span>
  2470. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2471. </div>
  2472. <div
  2473. class="worksDetailBox"
  2474. v-if="workStudent[toolIndex].length > 0"
  2475. >
  2476. <div
  2477. class="isWorksName2"
  2478. v-for="(w, wIndex) in workStudent[toolIndex]"
  2479. :key="wIndex"
  2480. @click="
  2481. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2482. "
  2483. >
  2484. {{ w.sName }}
  2485. <img
  2486. class="deleteImg deleteImg2"
  2487. src="../../assets/deleteworks.png"
  2488. v-if="w.userid == userid || tType == 1 || tType == 4"
  2489. @click.stop="deleteWorks(w.wid)"
  2490. alt
  2491. />
  2492. </div>
  2493. </div>
  2494. </div>
  2495. <div
  2496. v-if="
  2497. tType &&
  2498. tType == 2 &&
  2499. !sIsOpen &&
  2500. tool.tool.indexOf(69) != -1
  2501. "
  2502. class="worksBox"
  2503. >
  2504. <div
  2505. class="zuoyeYulan"
  2506. v-if="workStudent[toolIndex].length > 0"
  2507. >
  2508. <span class="worksTitle">作业预览</span>
  2509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2510. </div>
  2511. <div
  2512. class="worksDetailBox"
  2513. v-if="workStudent[toolIndex].length > 0"
  2514. >
  2515. <div
  2516. class="isWorksName2"
  2517. v-for="(w, wIndex) in workStudent[toolIndex]"
  2518. :key="wIndex"
  2519. @click="
  2520. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2521. "
  2522. >
  2523. {{ w.sName }}
  2524. <img
  2525. class="deleteImg deleteImg2"
  2526. src="../../assets/deleteworks.png"
  2527. v-if="w.userid == userid || tType == 1 || tType == 4"
  2528. @click.stop="deleteWorks(w.wid)"
  2529. alt
  2530. />
  2531. </div>
  2532. </div>
  2533. </div>
  2534. <div
  2535. v-if="
  2536. tType &&
  2537. tType == 2 &&
  2538. !sIsOpen &&
  2539. tool.tool.indexOf(15) != -1
  2540. "
  2541. class="worksBox"
  2542. >
  2543. <div
  2544. class="zuoyeYulan"
  2545. v-if="workStudent[toolIndex].length > 0"
  2546. >
  2547. <span class="worksTitle">作业预览</span>
  2548. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2549. </div>
  2550. <div
  2551. class="worksDetailBox"
  2552. v-if="workStudent[toolIndex].length > 0"
  2553. >
  2554. <div
  2555. class="works"
  2556. v-for="(w, wIndex) in workStudent[toolIndex]"
  2557. :key="wIndex"
  2558. >
  2559. <div class="workImg">
  2560. <!-- <img
  2561. src="../../assets/icon/works/noImg.png"
  2562. @click="openTools(15, toolIndex, taskCount, w.works)"
  2563. alt=""
  2564. />-->
  2565. <div class="answerBg">
  2566. <!-- <div>{{ w.sName }}</div> -->
  2567. <el-tooltip
  2568. class="item"
  2569. effect="light"
  2570. :content="JSON.parse(w.works)[0].answer"
  2571. placement="top"
  2572. >
  2573. <div class="answerContent">
  2574. {{ JSON.parse(w.works)[0].answer }}
  2575. </div>
  2576. </el-tooltip>
  2577. <div
  2578. class="answerScore"
  2579. v-if="w.score"
  2580. @click.stop="openScore(w)"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4
  2584. }"
  2585. >
  2586. {{ JSON.parse(w.score).wScore }}分
  2587. </div>
  2588. <div
  2589. class="answerScore"
  2590. @click.stop="openScore(w)"
  2591. v-else-if="courseDetail.userid == userid"
  2592. :class="{
  2593. rightW:
  2594. w.userid == userid || tType == 1 || tType == 4
  2595. }"
  2596. >
  2597. 评分
  2598. </div>
  2599. <img
  2600. class="deleteImg"
  2601. src="../../assets/deleteworks.png"
  2602. v-if="
  2603. w.userid == userid || tType == 1 || tType == 4
  2604. "
  2605. @click.stop="deleteWorks(w.wid)"
  2606. alt
  2607. />
  2608. </div>
  2609. <div class="comment">
  2610. <div class="worksName">
  2611. <div>{{ w.sName }}</div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. <div
  2619. v-if="
  2620. tType &&
  2621. tType == 2 &&
  2622. !sIsOpen &&
  2623. tool.tool.indexOf(1) != -1
  2624. "
  2625. class="worksBox"
  2626. >
  2627. <div
  2628. class="zuoyeYulan"
  2629. v-if="workStudent[toolIndex].length > 0"
  2630. >
  2631. <span class="worksTitle">作业预览</span>
  2632. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2633. </div>
  2634. <div
  2635. class="worksDetailBox"
  2636. v-if="workStudent[toolIndex].length > 0"
  2637. >
  2638. <div
  2639. class="works"
  2640. style="
  2641. width: 200px;
  2642. height: 140px;
  2643. margin: 10px 10px 10px 0;
  2644. box-shadow: 0 0 6px 1px #dfdada;
  2645. "
  2646. v-for="(w, wIndex) in workStudent[toolIndex]"
  2647. :key="wIndex"
  2648. >
  2649. <div class="workImg">
  2650. <img
  2651. :src="w.works"
  2652. @click="previewImg(w.works, w)"
  2653. alt
  2654. />
  2655. <div
  2656. class="answerScore"
  2657. v-if="w.score"
  2658. @click.stop="openScore(w)"
  2659. :class="{
  2660. rightW:
  2661. w.userid == userid || tType == 1 || tType == 4
  2662. }"
  2663. >
  2664. {{ JSON.parse(w.score).wScore }}分
  2665. </div>
  2666. <div
  2667. class="answerScore"
  2668. @click.stop="openScore(w)"
  2669. v-else-if="courseDetail.userid == userid"
  2670. :class="{
  2671. rightW:
  2672. w.userid == userid || tType == 1 || tType == 4
  2673. }"
  2674. >
  2675. 评分
  2676. </div>
  2677. <div
  2678. class="stuLookScore"
  2679. v-if="
  2680. w.userid == userid ||
  2681. (tType == 1 &&
  2682. courseDetail.state == 5 &&
  2683. ((chapInfoList[courseType].chapterInfo[0]
  2684. .taskJson[taskCount].eList &&
  2685. chapInfoList[courseType].chapterInfo[0]
  2686. .taskJson[taskCount].eList.length) ||
  2687. (tool.eList && tool.eList.length)))
  2688. "
  2689. >
  2690. <el-popover
  2691. placement="top"
  2692. width="318"
  2693. trigger="hover"
  2694. >
  2695. <markScore
  2696. :loading="AIloading[toolIndex][wIndex].loading"
  2697. :markScoreVisible="markScoreVisible"
  2698. :ref="`markSco${toolIndex}${wIndex}`"
  2699. @updateLoading="updateLoading"
  2700. @updateDocSco="updateDocSco"
  2701. @refreshOther="refreshOther"
  2702. @markScoreDig="markScoreDig"
  2703. :tool="tool"
  2704. :wIndex="wIndex"
  2705. :scoCon="w"
  2706. :toolIndex="toolIndex"
  2707. :key="refreshKey"
  2708. :stage="courseType"
  2709. :task="taskCount"
  2710. :scoTit="
  2711. chapInfoList[courseType].chapterInfo[0]
  2712. .taskJson[taskCount].eList
  2713. "
  2714. >
  2715. </markScore>
  2716. <div
  2717. @click="
  2718. markScoreDig2(
  2719. w.sName,
  2720. worksStudent,
  2721. w.userid,
  2722. toolIndex,
  2723. chapInfoList[courseType].chapterInfo[0]
  2724. .taskJson[taskCount].eList,
  2725. AIloading[toolIndex][wIndex].loading,
  2726. tool
  2727. )
  2728. "
  2729. slot="reference"
  2730. >
  2731. <span v-if="AIloading[toolIndex][wIndex].sco">
  2732. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2733. </span>
  2734. <span v-else>
  2735. 评分
  2736. </span>
  2737. </div>
  2738. </el-popover>
  2739. </div>
  2740. <img
  2741. class="deleteImg"
  2742. src="../../assets/deleteworks.png"
  2743. v-if="
  2744. w.userid == userid || tType == 1 || tType == 4
  2745. "
  2746. @click.stop="deleteWorks(w.wid)"
  2747. alt
  2748. />
  2749. </div>
  2750. <div class="worksName">
  2751. <div>{{ w.sName }}</div>
  2752. </div>
  2753. </div>
  2754. </div>
  2755. </div>
  2756. <div
  2757. v-if="
  2758. tType &&
  2759. tType == 2 &&
  2760. !sIsOpen &&
  2761. tool.tool.indexOf(3) != -1
  2762. "
  2763. class="worksBox"
  2764. >
  2765. <div
  2766. class="zuoyeYulan"
  2767. v-if="workStudent[toolIndex].length > 0"
  2768. >
  2769. <span class="worksTitle">作业预览</span>
  2770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2771. </div>
  2772. <div
  2773. class="worksDetailBox"
  2774. v-if="workStudent[toolIndex].length > 0"
  2775. >
  2776. <div
  2777. class="works"
  2778. style="
  2779. width: 200px;
  2780. height: 140px;
  2781. margin: 10px 10px 10px 0;
  2782. box-shadow: 0 0 6px 1px #dfdada;
  2783. "
  2784. v-for="(w, wIndex) in workStudent[toolIndex]"
  2785. :key="wIndex"
  2786. >
  2787. <div class="workImg">
  2788. <img
  2789. :src="w.works"
  2790. @click="previewImg(w.works, w)"
  2791. alt
  2792. />
  2793. <div
  2794. class="answerScore"
  2795. v-if="w.score"
  2796. @click.stop="openScore(w)"
  2797. :class="{
  2798. rightW:
  2799. w.userid == userid || tType == 1 || tType == 4
  2800. }"
  2801. >
  2802. {{ JSON.parse(w.score).wScore }}分
  2803. </div>
  2804. <div
  2805. class="answerScore"
  2806. @click.stop="openScore(w)"
  2807. v-else-if="courseDetail.userid == userid"
  2808. :class="{
  2809. rightW:
  2810. w.userid == userid || tType == 1 || tType == 4
  2811. }"
  2812. >
  2813. 评分
  2814. </div>
  2815. <div
  2816. class="stuLookScore"
  2817. v-if="
  2818. w.userid == userid ||
  2819. (tType == 1 &&
  2820. courseDetail.state == 5 &&
  2821. ((chapInfoList[courseType].chapterInfo[0]
  2822. .taskJson[taskCount].eList &&
  2823. chapInfoList[courseType].chapterInfo[0]
  2824. .taskJson[taskCount].eList.length) ||
  2825. (tool.eList && tool.eList.length)))
  2826. "
  2827. >
  2828. <el-popover
  2829. placement="top"
  2830. width="318"
  2831. trigger="hover"
  2832. >
  2833. <markScore
  2834. :loading="AIloading[toolIndex][wIndex].loading"
  2835. :markScoreVisible="markScoreVisible"
  2836. :ref="`markSco${toolIndex}${wIndex}`"
  2837. @updateLoading="updateLoading"
  2838. @updateDocSco="updateDocSco"
  2839. @refreshOther="refreshOther"
  2840. @markScoreDig="markScoreDig"
  2841. :tool="tool"
  2842. :wIndex="wIndex"
  2843. :scoCon="w"
  2844. :toolIndex="toolIndex"
  2845. :key="refreshKey"
  2846. :stage="courseType"
  2847. :task="taskCount"
  2848. :scoTit="
  2849. chapInfoList[courseType].chapterInfo[0]
  2850. .taskJson[taskCount].eList
  2851. "
  2852. >
  2853. </markScore>
  2854. <div
  2855. @click="
  2856. markScoreDig2(
  2857. w.sName,
  2858. worksStudent,
  2859. w.userid,
  2860. toolIndex,
  2861. chapInfoList[courseType].chapterInfo[0]
  2862. .taskJson[taskCount].eList,
  2863. AIloading[toolIndex][wIndex].loading,
  2864. tool
  2865. )
  2866. "
  2867. slot="reference"
  2868. >
  2869. <span v-if="AIloading[toolIndex][wIndex].sco">
  2870. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2871. </span>
  2872. <span v-else>
  2873. 评分
  2874. </span>
  2875. </div>
  2876. </el-popover>
  2877. </div>
  2878. <img
  2879. class="deleteImg"
  2880. src="../../assets/deleteworks.png"
  2881. v-if="
  2882. w.userid == userid || tType == 1 || tType == 4
  2883. "
  2884. @click.stop="deleteWorks(w.wid)"
  2885. alt
  2886. />
  2887. </div>
  2888. <div class="worksName">
  2889. <div>{{ w.sName }}</div>
  2890. </div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. <div
  2895. v-if="
  2896. tType &&
  2897. tType == 2 &&
  2898. !sIsOpen &&
  2899. tool.tool.indexOf(6) != -1
  2900. "
  2901. class="worksBox"
  2902. >
  2903. <div
  2904. class="zuoyeYulan"
  2905. v-if="workStudent[toolIndex].length > 0"
  2906. >
  2907. <span class="worksTitle">作业预览</span>
  2908. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2909. </div>
  2910. <div
  2911. class="worksDetailBox"
  2912. v-if="workStudent[toolIndex].length > 0"
  2913. >
  2914. <div
  2915. class="works"
  2916. style="
  2917. width: 200px;
  2918. height: 140px;
  2919. margin: 10px 10px 10px 0;
  2920. box-shadow: 0 0 6px 1px #dfdada;
  2921. "
  2922. v-for="(w, wIndex) in workStudent[toolIndex]"
  2923. :key="wIndex"
  2924. >
  2925. <div class="workImg">
  2926. <img
  2927. :src="w.works"
  2928. @click="previewImg(w.works, w)"
  2929. alt
  2930. />
  2931. <div
  2932. class="answerScore"
  2933. v-if="w.score"
  2934. @click.stop="openScore(w)"
  2935. :class="{
  2936. rightW:
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. }"
  2939. >
  2940. {{ JSON.parse(w.score).wScore }}分
  2941. </div>
  2942. <div
  2943. class="answerScore"
  2944. @click.stop="openScore(w)"
  2945. v-else-if="courseDetail.userid == userid"
  2946. :class="{
  2947. rightW:
  2948. w.userid == userid || tType == 1 || tType == 4
  2949. }"
  2950. >
  2951. 评分
  2952. </div>
  2953. <img
  2954. class="deleteImg"
  2955. src="../../assets/deleteworks.png"
  2956. v-if="
  2957. w.userid == userid || tType == 1 || tType == 4
  2958. "
  2959. @click.stop="deleteWorks(w.wid)"
  2960. alt
  2961. />
  2962. </div>
  2963. <div class="worksName">
  2964. <div>{{ w.sName }}</div>
  2965. </div>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. <div
  2970. v-if="
  2971. tType &&
  2972. tType == 2 &&
  2973. !sIsOpen &&
  2974. tool.tool.indexOf(7) != -1
  2975. "
  2976. class="worksBox"
  2977. >
  2978. <div
  2979. class="zuoyeYulan"
  2980. v-if="workStudent[toolIndex].length > 0"
  2981. >
  2982. <span class="worksTitle">作业预览</span>
  2983. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2984. </div>
  2985. <div
  2986. class="worksDetailBox"
  2987. v-if="workStudent[toolIndex].length > 0"
  2988. >
  2989. <div
  2990. class="works"
  2991. style="
  2992. width: 200px;
  2993. height: 140px;
  2994. margin: 10px 10px 10px 0;
  2995. box-shadow: 0 0 6px 1px #dfdada;
  2996. "
  2997. v-for="(w, wIndex) in workStudent[toolIndex]"
  2998. :key="wIndex"
  2999. >
  3000. <div class="workImg">
  3001. <img
  3002. :src="w.works"
  3003. @click="previewImg(w.works, w)"
  3004. alt
  3005. />
  3006. <div
  3007. class="answerScore"
  3008. v-if="w.score"
  3009. @click.stop="openScore(w)"
  3010. :class="{
  3011. rightW:
  3012. w.userid == userid || tType == 1 || tType == 4
  3013. }"
  3014. >
  3015. {{ JSON.parse(w.score).wScore }}分
  3016. </div>
  3017. <div
  3018. class="answerScore"
  3019. @click.stop="openScore(w)"
  3020. v-else-if="courseDetail.userid == userid"
  3021. :class="{
  3022. rightW:
  3023. w.userid == userid || tType == 1 || tType == 4
  3024. }"
  3025. >
  3026. 评分
  3027. </div>
  3028. <div
  3029. class="stuLookScore"
  3030. v-if="
  3031. w.userid == userid ||
  3032. (tType == 1 &&
  3033. courseDetail.state == 5 &&
  3034. ((chapInfoList[courseType].chapterInfo[0]
  3035. .taskJson[taskCount].eList &&
  3036. chapInfoList[courseType].chapterInfo[0]
  3037. .taskJson[taskCount].eList.length) ||
  3038. (tool.eList && tool.eList.length)))
  3039. "
  3040. >
  3041. <el-popover
  3042. placement="top"
  3043. width="318"
  3044. trigger="hover"
  3045. >
  3046. <markScore
  3047. :loading="AIloading[toolIndex][wIndex].loading"
  3048. :markScoreVisible="markScoreVisible"
  3049. :ref="`markSco${toolIndex}${wIndex}`"
  3050. @updateLoading="updateLoading"
  3051. @updateDocSco="updateDocSco"
  3052. @refreshOther="refreshOther"
  3053. @markScoreDig="markScoreDig"
  3054. :tool="tool"
  3055. :wIndex="wIndex"
  3056. :scoCon="w"
  3057. :toolIndex="toolIndex"
  3058. :key="refreshKey"
  3059. :stage="courseType"
  3060. :task="taskCount"
  3061. :scoTit="
  3062. chapInfoList[courseType].chapterInfo[0]
  3063. .taskJson[taskCount].eList
  3064. "
  3065. >
  3066. </markScore>
  3067. <div
  3068. @click="
  3069. markScoreDig2(
  3070. w.sName,
  3071. worksStudent,
  3072. w.userid,
  3073. toolIndex,
  3074. chapInfoList[courseType].chapterInfo[0]
  3075. .taskJson[taskCount].eList,
  3076. AIloading[toolIndex][wIndex].loading,
  3077. tool
  3078. )
  3079. "
  3080. slot="reference"
  3081. >
  3082. <span v-if="AIloading[toolIndex][wIndex].sco">
  3083. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3084. </span>
  3085. <span v-else>
  3086. 评分
  3087. </span>
  3088. </div>
  3089. </el-popover>
  3090. </div>
  3091. <img
  3092. class="deleteImg"
  3093. src="../../assets/deleteworks.png"
  3094. v-if="
  3095. w.userid == userid || tType == 1 || tType == 4
  3096. "
  3097. @click.stop="deleteWorks(w.wid)"
  3098. alt
  3099. />
  3100. </div>
  3101. <div class="worksName">
  3102. <div>{{ w.sName }}</div>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. <div
  3108. v-if="
  3109. tType &&
  3110. tType == 2 &&
  3111. !sIsOpen &&
  3112. tool.tool.indexOf(26) != -1
  3113. "
  3114. class="worksBox"
  3115. >
  3116. <div
  3117. class="zuoyeYulan"
  3118. v-if="workStudent[toolIndex].length > 0"
  3119. >
  3120. <span class="worksTitle">作业预览</span>
  3121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3122. </div>
  3123. <div
  3124. class="worksDetailBox"
  3125. v-if="workStudent[toolIndex].length > 0"
  3126. >
  3127. <div
  3128. class="works"
  3129. style="
  3130. width: 200px;
  3131. height: 140px;
  3132. margin: 10px 10px 10px 0;
  3133. box-shadow: 0 0 6px 1px #dfdada;
  3134. "
  3135. v-for="(w, wIndex) in workStudent[toolIndex]"
  3136. :key="wIndex"
  3137. >
  3138. <div class="workImg">
  3139. <img
  3140. :src="w.works"
  3141. @click="previewImg(w.works, w)"
  3142. alt
  3143. />
  3144. <img
  3145. class="deleteImg"
  3146. src="../../assets/deleteworks.png"
  3147. v-if="
  3148. w.userid == userid || tType == 1 || tType == 4
  3149. "
  3150. @click.stop="deleteWorks(w.wid)"
  3151. alt
  3152. />
  3153. </div>
  3154. <div class="worksName">
  3155. <div>{{ w.sName }}</div>
  3156. </div>
  3157. </div>
  3158. </div>
  3159. </div>
  3160. <div
  3161. v-if="
  3162. tType &&
  3163. ((tType == 2 && sIsOpen == true) ||
  3164. tType == 1 ||
  3165. tType == 4) &&
  3166. tool.tool.indexOf(16) != -1
  3167. "
  3168. class="worksBox"
  3169. >
  3170. <div
  3171. class="zuoyeYulan"
  3172. style="display: flex;justify-content: space-between;align-items: center;"
  3173. v-if="
  3174. (worksStudent.length &&
  3175. worksStudent[toolIndex].length > 0) ||
  3176. (courseGroup.group && courseGroup.group.length)
  3177. "
  3178. >
  3179. <div class="worksTop">
  3180. <div>作业预览</div>
  3181. <div
  3182. class="corOpen"
  3183. @click="contract(toolIndex)"
  3184. v-if="
  3185. isCloseList[toolIndex].isCloseBoolean &&
  3186. isCloseList[toolIndex].isClose == 0
  3187. "
  3188. >
  3189. 折叠
  3190. </div>
  3191. <div
  3192. class="corOpen"
  3193. @click="contract(toolIndex)"
  3194. v-if="isCloseList[toolIndex].isClose == 1"
  3195. >
  3196. 展开
  3197. </div>
  3198. </div>
  3199. <div
  3200. style="display: flex;"
  3201. v-if="
  3202. (courseDetail.userid == userid ||
  3203. (courseDetail.course_teacher &&
  3204. courseDetail.course_teacher.indexOf(userid) !=
  3205. -1)) &&
  3206. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3207. taskCount
  3208. ].eList &&
  3209. chapInfoList[courseType].chapterInfo[0].taskJson[
  3210. taskCount
  3211. ].eList.length) ||
  3212. (tool.eList && tool.eList.length)) &&
  3213. courseDetail.state == 5
  3214. "
  3215. >
  3216. <!-- <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"> -->
  3217. <div
  3218. style="margin-right:10px"
  3219. class="ScoreBtn"
  3220. @click="
  3221. resetLoopEva(
  3222. worksStudent[toolIndex],
  3223. chapInfoList[courseType].chapterInfo[0].taskJson[
  3224. taskCount
  3225. ].eList,
  3226. courseType,
  3227. taskCount,
  3228. toolIndex,
  3229. tool.toolDetail,
  3230. worksStudent
  3231. )
  3232. "
  3233. >
  3234. 一键重置
  3235. </div>
  3236. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3237. <img
  3238. src="../../assets/icon/newIcons/rootImg.png"
  3239. alt=""
  3240. />
  3241. AI评分
  3242. </div>
  3243. <div
  3244. class="ScoreBtn"
  3245. v-else-if="!loopLoading[toolIndex].loading"
  3246. @click="
  3247. loopEva(
  3248. worksStudent[toolIndex],
  3249. chapInfoList[courseType].chapterInfo[0].taskJson[
  3250. taskCount
  3251. ].eList,
  3252. courseType,
  3253. taskCount,
  3254. toolIndex,
  3255. tool.toolDetail,
  3256. chapInfoList[courseType].chapterInfo[0].taskJson[
  3257. taskCount
  3258. ].taskDetail,
  3259. tool
  3260. )
  3261. "
  3262. >
  3263. <img
  3264. src="../../assets/icon/newIcons/rootImg.png"
  3265. alt=""
  3266. />
  3267. AI评分
  3268. </div>
  3269. <div class="ScoreBtn" v-else>
  3270. <img
  3271. src="../../assets/icon/newIcons/rootImg.png"
  3272. alt=""
  3273. />
  3274. 正在评分
  3275. </div>
  3276. </div>
  3277. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3278. </div>
  3279. <div
  3280. class="group_workBox"
  3281. v-for="(g, gindex) in courseGroup.group"
  3282. :key="gindex"
  3283. >
  3284. <div class="group_box">
  3285. <div class="group_title">
  3286. <el-tooltip
  3287. class="item"
  3288. effect="light"
  3289. :content="g.name"
  3290. placement="top"
  3291. >
  3292. <div class="group_name">{{ g.name }}</div>
  3293. </el-tooltip>
  3294. </div>
  3295. <div
  3296. class="group_work"
  3297. v-if="
  3298. g.works &&
  3299. g.works.length &&
  3300. g.works[toolIndex].length
  3301. "
  3302. >
  3303. <div
  3304. class="works"
  3305. style="
  3306. width: 200px;
  3307. height: 140px;
  3308. margin: 10px 10px 10px 0;
  3309. border-radius: 15px;
  3310. box-shadow: 0 0 6px 1px #dfdada;
  3311. "
  3312. v-for="(w, wIndex) in g.works[toolIndex]"
  3313. :key="wIndex"
  3314. :class="w.type == 1 ? 'isTypeOne' : ''"
  3315. >
  3316. <div class="workImg" v-if="w.type == 0">
  3317. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3318. <img
  3319. :src="w.works"
  3320. @click="previewImg(w.works, w)"
  3321. alt
  3322. />
  3323. <div
  3324. class="answerScore"
  3325. v-if="w.score"
  3326. @click.stop="openScore(w)"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid
  3333. }"
  3334. >
  3335. {{ JSON.parse(w.score).wScore }}分
  3336. </div>
  3337. <div
  3338. class="answerScore"
  3339. @click.stop="openScore(w)"
  3340. v-else-if="courseDetail.userid == userid"
  3341. :class="{
  3342. rightW:
  3343. w.userid == userid ||
  3344. tType == 1 ||
  3345. tType == 4 ||
  3346. w.ateacher == userid
  3347. }"
  3348. >
  3349. 评分
  3350. </div>
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="workImg" v-if="w.type == 1">
  3362. <img :src="word" @click="openFile(w.works)" alt />
  3363. <!-- @click="openFile(w.works)" -->
  3364. <div
  3365. class="answerScore"
  3366. v-if="w.score"
  3367. @click.stop="openScore(w)"
  3368. :class="{
  3369. rightW:
  3370. w.userid == userid ||
  3371. tType == 1 ||
  3372. tType == 4 ||
  3373. w.ateacher == userid
  3374. }"
  3375. >
  3376. {{ JSON.parse(w.score).wScore }}分
  3377. </div>
  3378. <div
  3379. class="answerScore"
  3380. @click.stop="openScore(w)"
  3381. v-else-if="courseDetail.userid == userid"
  3382. :class="{
  3383. rightW:
  3384. w.userid == userid ||
  3385. tType == 1 ||
  3386. tType == 4 ||
  3387. w.ateacher == userid
  3388. }"
  3389. >
  3390. 评分
  3391. </div>
  3392. <img
  3393. class="deleteImg"
  3394. src="../../assets/deleteworks.png"
  3395. v-if="
  3396. w.userid == userid || tType == 1 || tType == 4
  3397. "
  3398. @click.stop="deleteWorks(w.wid)"
  3399. alt
  3400. />
  3401. </div>
  3402. <div class="workImg" v-if="w.type == 3">
  3403. <img
  3404. style="cursor: pointer"
  3405. :src="video"
  3406. @click="openVideo(w)"
  3407. alt
  3408. />
  3409. <!-- @click="openVideo(w.works)" -->
  3410. <div
  3411. class="answerScore"
  3412. v-if="w.score"
  3413. @click.stop="openScore(w)"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid
  3420. }"
  3421. >
  3422. {{ JSON.parse(w.score).wScore }}分
  3423. </div>
  3424. <div
  3425. class="answerScore"
  3426. @click.stop="openScore(w)"
  3427. v-else-if="courseDetail.userid == userid"
  3428. :class="{
  3429. rightW:
  3430. w.userid == userid ||
  3431. tType == 1 ||
  3432. tType == 4 ||
  3433. w.ateacher == userid
  3434. }"
  3435. >
  3436. 评分
  3437. </div>
  3438. <img
  3439. class="deleteImg"
  3440. src="../../assets/deleteworks.png"
  3441. v-if="
  3442. w.userid == userid || tType == 1 || tType == 4
  3443. "
  3444. @click.stop="deleteWorks(w.wid)"
  3445. alt
  3446. />
  3447. </div>
  3448. <div class="workImg" v-if="w.type == 12">
  3449. <img
  3450. style="cursor: pointer"
  3451. :src="word2"
  3452. @click="downloadFile(w.works)"
  3453. alt
  3454. />
  3455. <!-- @click="openVideo(w.works)" -->
  3456. <div
  3457. class="answerScore"
  3458. v-if="w.score"
  3459. @click.stop="openScore(w)"
  3460. :class="{
  3461. rightW:
  3462. w.userid == userid ||
  3463. tType == 1 ||
  3464. tType == 4 ||
  3465. w.ateacher == userid
  3466. }"
  3467. >
  3468. {{ JSON.parse(w.score).wScore }}分
  3469. </div>
  3470. <div
  3471. class="answerScore"
  3472. @click.stop="openScore(w)"
  3473. v-else-if="courseDetail.userid == userid"
  3474. :class="{
  3475. rightW:
  3476. w.userid == userid ||
  3477. tType == 1 ||
  3478. tType == 4 ||
  3479. w.ateacher == userid
  3480. }"
  3481. >
  3482. 评分
  3483. </div>
  3484. <img
  3485. class="deleteImg"
  3486. src="../../assets/deleteworks.png"
  3487. v-if="
  3488. w.userid == userid || tType == 1 || tType == 4
  3489. "
  3490. @click.stop="deleteWorks(w.wid)"
  3491. alt
  3492. />
  3493. </div>
  3494. <div class="comment" style="min-width: 200px">
  3495. <div class="worksName">
  3496. <div>{{ w.sName }}</div>
  3497. </div>
  3498. <div class="commentList">
  3499. <div class="commentList">
  3500. <div
  3501. class="commentImg"
  3502. @click="
  3503. isLikes(
  3504. w.wid,
  3505. userid,
  3506. 1,
  3507. null,
  3508. w.isLikes,
  3509. w.sName
  3510. )
  3511. "
  3512. >
  3513. <img
  3514. :src="w.isLikes == true ? likes : noLikes"
  3515. alt=""
  3516. />
  3517. </div>
  3518. <div>{{ w.likesCount }}</div>
  3519. </div>
  3520. <div
  3521. class="commentList"
  3522. style="margin-right: 15px"
  3523. >
  3524. <div
  3525. class="commentImg"
  3526. @click="
  3527. commentOther(
  3528. w,
  3529. toolIndex,
  3530. wIndex,
  3531. null,
  3532. g.id
  3533. )
  3534. "
  3535. >
  3536. <img
  3537. src="../../assets/icon/comment/comment.png"
  3538. alt=""
  3539. />
  3540. </div>
  3541. <div>{{ w.commentCount }}</div>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. <div class="group_work" v-else>暂无提交作业</div>
  3548. </div>
  3549. </div>
  3550. <div
  3551. :id="'tool-' + toolIndex"
  3552. :style="{
  3553. height:
  3554. isCloseList[toolIndex].isClose == 1
  3555. ? retrnToolHeight('tool-' + toolIndex)
  3556. : 'auto',
  3557. overflow:
  3558. isCloseList[toolIndex].isClose == 1
  3559. ? 'hidden'
  3560. : 'unset'
  3561. }"
  3562. class="worksDetailBox"
  3563. v-if="
  3564. worksStudent.length &&
  3565. worksStudent[toolIndex].length > 0
  3566. "
  3567. >
  3568. <div
  3569. class="works"
  3570. style="
  3571. width: 200px;
  3572. height: 140px;
  3573. margin: 10px 10px 10px 0;
  3574. border-radius: 15px;
  3575. box-shadow: 0 0 6px 1px #dfdada;
  3576. "
  3577. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3578. :key="wIndex"
  3579. :class="w.type == 1 ? 'isTypeOne' : ''"
  3580. >
  3581. <div class="workImg" v-if="w.type == 0">
  3582. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3583. <img
  3584. :src="w.works"
  3585. @click="previewImg(w.works, w)"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}分
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="
  3606. courseDetail.userid == userid &&
  3607. courseDetail.state != 5 &&
  3608. chapInfoList[courseType].chapterInfo[0]
  3609. .taskJson[taskCount].eList &&
  3610. chapInfoList[courseType].chapterInfo[0]
  3611. .taskJson[taskCount].eList.length
  3612. "
  3613. :class="{
  3614. rightW:
  3615. w.userid == userid ||
  3616. tType == 1 ||
  3617. tType == 4 ||
  3618. w.ateacher == userid
  3619. }"
  3620. >
  3621. 评分
  3622. </div>
  3623. <!-- <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"> -->
  3624. <div
  3625. v-else-if="
  3626. (courseDetail.userid == userid ||
  3627. (courseDetail.course_teacher &&
  3628. courseDetail.course_teacher.indexOf(userid) !=
  3629. -1) ||
  3630. (w.userid == userid && sIsOpen)) &&
  3631. courseDetail.state == 5 &&
  3632. ((chapInfoList[courseType].chapterInfo[0]
  3633. .taskJson[taskCount].eList &&
  3634. chapInfoList[courseType].chapterInfo[0]
  3635. .taskJson[taskCount].eList.length) ||
  3636. (tool.eList && tool.eList.length))
  3637. "
  3638. >
  3639. <el-popover
  3640. placement="top"
  3641. width="318"
  3642. :disabled="AIloading[toolIndex][wIndex].loading"
  3643. trigger="hover"
  3644. >
  3645. <markScore
  3646. :loading="AIloading[toolIndex][wIndex].loading"
  3647. :markScoreVisible="markScoreVisible"
  3648. :ref="`markSco${toolIndex}${wIndex}`"
  3649. @updateLoading="updateLoading"
  3650. @updateDocSco="updateDocSco"
  3651. @refreshOther="refreshOther"
  3652. @markScoreDig="markScoreDig"
  3653. :tool="tool"
  3654. :wIndex="wIndex"
  3655. :scoCon="w"
  3656. :toolIndex="toolIndex"
  3657. :key="refreshKey"
  3658. :stage="courseType"
  3659. :task="taskCount"
  3660. :scoTit="
  3661. chapInfoList[courseType].chapterInfo[0]
  3662. .taskJson[taskCount].eList
  3663. "
  3664. >
  3665. </markScore>
  3666. <div
  3667. class="answerScore"
  3668. @click="
  3669. markScoreDig2(
  3670. w.sName,
  3671. worksStudent,
  3672. w.userid,
  3673. toolIndex,
  3674. chapInfoList[courseType].chapterInfo[0]
  3675. .taskJson[taskCount].eList,
  3676. AIloading[toolIndex][wIndex].loading,
  3677. tool
  3678. )
  3679. "
  3680. slot="reference"
  3681. :class="{
  3682. rightW:
  3683. w.userid == userid ||
  3684. tType == 1 ||
  3685. tType == 4 ||
  3686. w.ateacher == userid
  3687. }"
  3688. >
  3689. <span v-if="AIloading[toolIndex][wIndex].sco">
  3690. {{
  3691. AIloading[toolIndex][wIndex].loading
  3692. ? "评分中"
  3693. : AIloading[toolIndex][wIndex].sco + "分"
  3694. }}
  3695. </span>
  3696. <span v-else>
  3697. {{
  3698. AIloading[toolIndex][wIndex].loading
  3699. ? "评分中"
  3700. : "评分"
  3701. }}
  3702. </span>
  3703. </div>
  3704. </el-popover>
  3705. </div>
  3706. <img
  3707. class="deleteImg"
  3708. src="../../assets/deleteworks.png"
  3709. v-if="
  3710. w.userid == userid || tType == 1 || tType == 4
  3711. "
  3712. @click.stop="deleteWorks(w.wid)"
  3713. alt
  3714. />
  3715. </div>
  3716. <div class="workImg" v-if="w.type == 1">
  3717. <img :src="word" @click="openFile(w.works)" alt />
  3718. <!-- @click="openFile(w.works)" -->
  3719. <div
  3720. class="answerScore"
  3721. v-if="w.score"
  3722. @click.stop="openScore(w)"
  3723. :class="{
  3724. rightW:
  3725. w.userid == userid ||
  3726. tType == 1 ||
  3727. tType == 4 ||
  3728. w.ateacher == userid
  3729. }"
  3730. >
  3731. {{ JSON.parse(w.score).wScore }}分
  3732. </div>
  3733. <div
  3734. class="answerScore"
  3735. @click.stop="openScore(w)"
  3736. v-else-if="
  3737. courseDetail.userid == userid &&
  3738. courseDetail.state != 5 &&
  3739. chapInfoList[courseType].chapterInfo[0]
  3740. .taskJson[taskCount].eList &&
  3741. chapInfoList[courseType].chapterInfo[0]
  3742. .taskJson[taskCount].eList.length
  3743. "
  3744. :class="{
  3745. rightW:
  3746. w.userid == userid ||
  3747. tType == 1 ||
  3748. tType == 4 ||
  3749. w.ateacher == userid
  3750. }"
  3751. >
  3752. 评分
  3753. </div>
  3754. <!-- <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"> -->
  3755. <div
  3756. v-else-if="
  3757. (courseDetail.userid == userid ||
  3758. (courseDetail.course_teacher &&
  3759. courseDetail.course_teacher.indexOf(userid) !=
  3760. -1) ||
  3761. (w.userid == userid && sIsOpen)) &&
  3762. courseDetail.state == 5 &&
  3763. ((chapInfoList[courseType].chapterInfo[0]
  3764. .taskJson[taskCount].eList &&
  3765. chapInfoList[courseType].chapterInfo[0]
  3766. .taskJson[taskCount].eList.length) ||
  3767. (tool.eList && tool.eList.length))
  3768. "
  3769. >
  3770. <el-popover
  3771. placement="top"
  3772. width="318"
  3773. :disabled="AIloading[toolIndex][wIndex].loading"
  3774. trigger="hover"
  3775. >
  3776. <markScore
  3777. :loading="AIloading[toolIndex][wIndex].loading"
  3778. :markScoreVisible="markScoreVisible"
  3779. :ref="`markSco${toolIndex}${wIndex}`"
  3780. @updateLoading="updateLoading"
  3781. @updateDocSco="updateDocSco"
  3782. @refreshOther="refreshOther"
  3783. @markScoreDig="markScoreDig"
  3784. :tool="tool"
  3785. :wIndex="wIndex"
  3786. :scoCon="w"
  3787. :toolIndex="toolIndex"
  3788. :key="refreshKey"
  3789. :stage="courseType"
  3790. :task="taskCount"
  3791. :scoTit="
  3792. chapInfoList[courseType].chapterInfo[0]
  3793. .taskJson[taskCount].eList
  3794. "
  3795. >
  3796. </markScore>
  3797. <div
  3798. class="answerScore"
  3799. @click="
  3800. markScoreDig2(
  3801. w.sName,
  3802. worksStudent,
  3803. w.userid,
  3804. toolIndex,
  3805. chapInfoList[courseType].chapterInfo[0]
  3806. .taskJson[taskCount].eList,
  3807. AIloading[toolIndex][wIndex].loading,
  3808. tool
  3809. )
  3810. "
  3811. slot="reference"
  3812. :class="{
  3813. rightW:
  3814. w.userid == userid ||
  3815. tType == 1 ||
  3816. tType == 4 ||
  3817. w.ateacher == userid
  3818. }"
  3819. >
  3820. <span v-if="AIloading[toolIndex][wIndex].sco">
  3821. {{
  3822. AIloading[toolIndex][wIndex].loading
  3823. ? "评分中"
  3824. : AIloading[toolIndex][wIndex].sco + "分"
  3825. }}
  3826. </span>
  3827. <span v-else>
  3828. {{
  3829. AIloading[toolIndex][wIndex].loading
  3830. ? "评分中"
  3831. : "评分"
  3832. }}
  3833. </span>
  3834. </div>
  3835. </el-popover>
  3836. </div>
  3837. <img
  3838. class="deleteImg"
  3839. src="../../assets/deleteworks.png"
  3840. v-if="
  3841. w.userid == userid || tType == 1 || tType == 4
  3842. "
  3843. @click.stop="deleteWorks(w.wid)"
  3844. alt
  3845. />
  3846. </div>
  3847. <div class="workImg" v-if="w.type == 3">
  3848. <img
  3849. style="cursor: pointer"
  3850. :src="video"
  3851. @click="openVideo(w)"
  3852. alt
  3853. />
  3854. <!-- @click="openVideo(w.works)" -->
  3855. <div
  3856. class="answerScore"
  3857. v-if="w.score"
  3858. @click.stop="openScore(w)"
  3859. :class="{
  3860. rightW:
  3861. w.userid == userid ||
  3862. tType == 1 ||
  3863. tType == 4 ||
  3864. w.ateacher == userid
  3865. }"
  3866. >
  3867. {{ JSON.parse(w.score).wScore }}分
  3868. </div>
  3869. <div
  3870. class="answerScore"
  3871. @click.stop="openScore(w)"
  3872. v-else-if="
  3873. courseDetail.userid == userid &&
  3874. courseDetail.state != 5 &&
  3875. chapInfoList[courseType].chapterInfo[0]
  3876. .taskJson[taskCount].eList &&
  3877. chapInfoList[courseType].chapterInfo[0]
  3878. .taskJson[taskCount].eList.length
  3879. "
  3880. :class="{
  3881. rightW:
  3882. w.userid == userid ||
  3883. tType == 1 ||
  3884. tType == 4 ||
  3885. w.ateacher == userid
  3886. }"
  3887. >
  3888. 评分
  3889. </div>
  3890. <!-- <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"> -->
  3891. <div
  3892. v-else-if="
  3893. (courseDetail.userid == userid ||
  3894. (courseDetail.course_teacher &&
  3895. courseDetail.course_teacher.indexOf(userid) !=
  3896. -1) ||
  3897. (w.userid == userid && sIsOpen)) &&
  3898. courseDetail.state == 5 &&
  3899. ((chapInfoList[courseType].chapterInfo[0]
  3900. .taskJson[taskCount].eList &&
  3901. chapInfoList[courseType].chapterInfo[0]
  3902. .taskJson[taskCount].eList.length) ||
  3903. (tool.eList && tool.eList.length))
  3904. "
  3905. >
  3906. <el-popover
  3907. placement="top"
  3908. width="318"
  3909. :disabled="AIloading[toolIndex][wIndex].loading"
  3910. trigger="hover"
  3911. >
  3912. <markScore
  3913. :loading="AIloading[toolIndex][wIndex].loading"
  3914. :markScoreVisible="markScoreVisible"
  3915. :ref="`markSco${toolIndex}${wIndex}`"
  3916. @updateLoading="updateLoading"
  3917. @updateDocSco="updateDocSco"
  3918. @refreshOther="refreshOther"
  3919. @markScoreDig="markScoreDig"
  3920. :tool="tool"
  3921. :wIndex="wIndex"
  3922. :scoCon="w"
  3923. :toolIndex="toolIndex"
  3924. :key="refreshKey"
  3925. :stage="courseType"
  3926. :task="taskCount"
  3927. :scoTit="
  3928. chapInfoList[courseType].chapterInfo[0]
  3929. .taskJson[taskCount].eList
  3930. "
  3931. >
  3932. </markScore>
  3933. <div
  3934. class="answerScore"
  3935. @click="
  3936. markScoreDig2(
  3937. w.sName,
  3938. worksStudent,
  3939. w.userid,
  3940. toolIndex,
  3941. chapInfoList[courseType].chapterInfo[0]
  3942. .taskJson[taskCount].eList,
  3943. AIloading[toolIndex][wIndex].loading,
  3944. tool
  3945. )
  3946. "
  3947. slot="reference"
  3948. :class="{
  3949. rightW:
  3950. w.userid == userid ||
  3951. tType == 1 ||
  3952. tType == 4 ||
  3953. w.ateacher == userid
  3954. }"
  3955. >
  3956. <span v-if="AIloading[toolIndex][wIndex].sco">
  3957. {{
  3958. AIloading[toolIndex][wIndex].loading
  3959. ? "评分中"
  3960. : AIloading[toolIndex][wIndex].sco + "分"
  3961. }}
  3962. </span>
  3963. <span v-else>
  3964. {{
  3965. AIloading[toolIndex][wIndex].loading
  3966. ? "评分中"
  3967. : "评分"
  3968. }}
  3969. </span>
  3970. </div>
  3971. </el-popover>
  3972. </div>
  3973. <img
  3974. class="deleteImg"
  3975. src="../../assets/deleteworks.png"
  3976. v-if="
  3977. w.userid == userid || tType == 1 || tType == 4
  3978. "
  3979. @click.stop="deleteWorks(w.wid)"
  3980. alt
  3981. />
  3982. </div>
  3983. <div class="workImg" v-if="w.type == 12">
  3984. <img
  3985. style="cursor: pointer"
  3986. :src="word2"
  3987. @click="downloadFile(w.works)"
  3988. alt
  3989. />
  3990. <!-- @click="openVideo(w.works)" -->
  3991. <div
  3992. class="answerScore"
  3993. v-if="w.score"
  3994. @click.stop="openScore(w)"
  3995. :class="{
  3996. rightW:
  3997. w.userid == userid ||
  3998. tType == 1 ||
  3999. tType == 4 ||
  4000. w.ateacher == userid
  4001. }"
  4002. >
  4003. {{ JSON.parse(w.score).wScore }}分
  4004. </div>
  4005. <div
  4006. class="answerScore"
  4007. @click.stop="openScore(w)"
  4008. v-else-if="
  4009. courseDetail.userid == userid &&
  4010. courseDetail.state != 5 &&
  4011. chapInfoList[courseType].chapterInfo[0]
  4012. .taskJson[taskCount].eList &&
  4013. chapInfoList[courseType].chapterInfo[0]
  4014. .taskJson[taskCount].eList.length
  4015. "
  4016. :class="{
  4017. rightW:
  4018. w.userid == userid ||
  4019. tType == 1 ||
  4020. tType == 4 ||
  4021. w.ateacher == userid
  4022. }"
  4023. >
  4024. 评分
  4025. </div>
  4026. <!-- <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"> -->
  4027. <div
  4028. v-else-if="
  4029. (courseDetail.userid == userid ||
  4030. (courseDetail.course_teacher &&
  4031. courseDetail.course_teacher.indexOf(userid) !=
  4032. -1) ||
  4033. (w.userid == userid && sIsOpen)) &&
  4034. courseDetail.state == 5 &&
  4035. ((chapInfoList[courseType].chapterInfo[0]
  4036. .taskJson[taskCount].eList &&
  4037. chapInfoList[courseType].chapterInfo[0]
  4038. .taskJson[taskCount].eList.length) ||
  4039. (tool.eList && tool.eList.length))
  4040. "
  4041. >
  4042. <el-popover
  4043. placement="top"
  4044. width="318"
  4045. :disabled="AIloading[toolIndex][wIndex].loading"
  4046. trigger="hover"
  4047. >
  4048. <markScore
  4049. :loading="AIloading[toolIndex][wIndex].loading"
  4050. :markScoreVisible="markScoreVisible"
  4051. :ref="`markSco${toolIndex}${wIndex}`"
  4052. @updateLoading="updateLoading"
  4053. @updateDocSco="updateDocSco"
  4054. @refreshOther="refreshOther"
  4055. @markScoreDig="markScoreDig"
  4056. :tool="tool"
  4057. :wIndex="wIndex"
  4058. :scoCon="w"
  4059. :toolIndex="toolIndex"
  4060. :key="refreshKey"
  4061. :stage="courseType"
  4062. :task="taskCount"
  4063. :scoTit="
  4064. chapInfoList[courseType].chapterInfo[0]
  4065. .taskJson[taskCount].eList
  4066. "
  4067. >
  4068. </markScore>
  4069. <div
  4070. class="answerScore"
  4071. @click="
  4072. markScoreDig2(
  4073. w.sName,
  4074. worksStudent,
  4075. w.userid,
  4076. toolIndex,
  4077. chapInfoList[courseType].chapterInfo[0]
  4078. .taskJson[taskCount].eList,
  4079. AIloading[toolIndex][wIndex].loading,
  4080. tool
  4081. )
  4082. "
  4083. slot="reference"
  4084. :class="{
  4085. rightW:
  4086. w.userid == userid ||
  4087. tType == 1 ||
  4088. tType == 4 ||
  4089. w.ateacher == userid
  4090. }"
  4091. >
  4092. <span v-if="AIloading[toolIndex][wIndex].sco">
  4093. {{
  4094. AIloading[toolIndex][wIndex].loading
  4095. ? "评分中"
  4096. : AIloading[toolIndex][wIndex].sco + "分"
  4097. }}
  4098. </span>
  4099. <span v-else>
  4100. {{
  4101. AIloading[toolIndex][wIndex].loading
  4102. ? "评分中"
  4103. : "评分"
  4104. }}
  4105. </span>
  4106. </div>
  4107. </el-popover>
  4108. </div>
  4109. <img
  4110. class="deleteImg"
  4111. src="../../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. <div class="comment" style="min-width: 200px">
  4120. <div class="worksName">
  4121. <div>{{ w.sName }}</div>
  4122. </div>
  4123. <div class="commentList">
  4124. <div class="commentList">
  4125. <div
  4126. class="commentImg"
  4127. @click="
  4128. isLikes(
  4129. w.wid,
  4130. userid,
  4131. 1,
  4132. null,
  4133. w.isLikes,
  4134. w.sName
  4135. )
  4136. "
  4137. >
  4138. <img
  4139. :src="w.isLikes == true ? likes : noLikes"
  4140. alt=""
  4141. />
  4142. </div>
  4143. <div>{{ w.likesCount }}</div>
  4144. </div>
  4145. <div class="commentList" style="margin-right: 15px">
  4146. <div
  4147. class="commentImg"
  4148. @click="commentOther(w, toolIndex, wIndex)"
  4149. >
  4150. <img
  4151. src="../../assets/icon/comment/comment.png"
  4152. alt=""
  4153. />
  4154. </div>
  4155. <div>{{ w.commentCount }}</div>
  4156. </div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4162. 未提交
  4163. </div>
  4164. <div
  4165. class="noWorksS"
  4166. v-if="noWorksS && noWorksS[toolIndex].length"
  4167. >
  4168. <div
  4169. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4170. :key="sIndex"
  4171. class="noWorksName"
  4172. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4173. >
  4174. <el-tooltip
  4175. effect="dark"
  4176. :content="s.student"
  4177. placement="top"
  4178. >
  4179. <span>{{ s.student }}</span>
  4180. </el-tooltip>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. <div
  4185. v-if="
  4186. tType &&
  4187. ((tType == 2 && sIsOpen == true) ||
  4188. tType == 1 ||
  4189. tType == 4) &&
  4190. tool.tool.indexOf(70) != -1
  4191. "
  4192. class="worksBox"
  4193. >
  4194. <div
  4195. class="zuoyeYulan"
  4196. v-if="
  4197. worksStudent.length &&
  4198. worksStudent[toolIndex].length > 0
  4199. "
  4200. >
  4201. <div class="worksTop">
  4202. <div>作业预览</div>
  4203. <div
  4204. class="corOpen"
  4205. @click="contract(toolIndex)"
  4206. v-if="
  4207. isCloseList[toolIndex].isCloseBoolean &&
  4208. isCloseList[toolIndex].isClose == 0
  4209. "
  4210. >
  4211. 折叠
  4212. </div>
  4213. <div
  4214. class="corOpen"
  4215. @click="contract(toolIndex)"
  4216. v-if="isCloseList[toolIndex].isClose == 1"
  4217. >
  4218. 展开
  4219. </div>
  4220. </div>
  4221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4222. </div>
  4223. <div
  4224. :id="'tool-' + toolIndex"
  4225. :style="{
  4226. height:
  4227. isCloseList[toolIndex].isClose == 1
  4228. ? retrnToolHeight('tool-' + toolIndex)
  4229. : 'auto',
  4230. overflow:
  4231. isCloseList[toolIndex].isClose == 1
  4232. ? 'hidden'
  4233. : 'unset'
  4234. }"
  4235. class="worksDetailBox"
  4236. v-if="
  4237. worksStudent.length &&
  4238. worksStudent[toolIndex].length > 0
  4239. "
  4240. >
  4241. <div
  4242. class="works"
  4243. style="
  4244. width: 200px;
  4245. height: 140px;
  4246. margin: 10px 10px 10px 0;
  4247. border-radius: 15px;
  4248. box-shadow: 0 0 6px 1px #dfdada;
  4249. "
  4250. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4251. :key="wIndex"
  4252. :class="w.type == 1 ? 'isTypeOne' : ''"
  4253. >
  4254. <div
  4255. class="workImg"
  4256. @click.stop="openScore(w, toolIndex)"
  4257. >
  4258. <img :src="word" alt />
  4259. <img
  4260. class="deleteImg"
  4261. src="../../assets/deleteworks.png"
  4262. v-if="
  4263. w.userid == userid || tType == 1 || tType == 4
  4264. "
  4265. @click.stop="deleteWorks(w.wid)"
  4266. alt
  4267. />
  4268. </div>
  4269. <div class="comment" style="min-width: 200px">
  4270. <div class="worksName">
  4271. <div>{{ w.sName }}</div>
  4272. </div>
  4273. </div>
  4274. </div>
  4275. </div>
  4276. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4277. 未提交
  4278. </div>
  4279. <div
  4280. class="noWorksS"
  4281. v-if="noWorksS && noWorksS[toolIndex].length"
  4282. >
  4283. <div
  4284. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4285. :key="sIndex"
  4286. class="noWorksName"
  4287. >
  4288. <el-tooltip
  4289. effect="dark"
  4290. :content="s.student"
  4291. placement="top"
  4292. >
  4293. <span>{{ s.student }}</span>
  4294. </el-tooltip>
  4295. </div>
  4296. </div>
  4297. </div>
  4298. <div
  4299. v-if="
  4300. tType &&
  4301. tType == 2 &&
  4302. !sIsOpen &&
  4303. tool.tool.indexOf(70) != -1
  4304. "
  4305. class="worksBox"
  4306. >
  4307. <div
  4308. class="zuoyeYulan"
  4309. v-if="workStudent[toolIndex].length > 0"
  4310. >
  4311. <span class="worksTitle">作业预览</span>
  4312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4313. </div>
  4314. <div
  4315. class="worksDetailBox"
  4316. v-if="workStudent[toolIndex].length > 0"
  4317. >
  4318. <div
  4319. class="works"
  4320. style="
  4321. width: 200px;
  4322. height: 140px;
  4323. margin: 10px 10px 10px 0;
  4324. box-shadow: 0 0 6px 1px #dfdada;
  4325. "
  4326. v-for="(w, wIndex) in workStudent[toolIndex]"
  4327. :key="wIndex"
  4328. >
  4329. <div
  4330. class="workImg"
  4331. @click.stop="openScore(w, toolIndex)"
  4332. >
  4333. <img :src="word" alt />
  4334. <img
  4335. class="deleteImg"
  4336. src="../../assets/deleteworks.png"
  4337. v-if="
  4338. w.userid == userid || tType == 1 || tType == 4
  4339. "
  4340. @click.stop="deleteWorks(w.wid)"
  4341. alt
  4342. />
  4343. </div>
  4344. <div class="worksName">
  4345. <div>{{ w.sName }}</div>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. <div
  4351. v-if="
  4352. tType &&
  4353. ((tType == 2 && sIsOpen == true) ||
  4354. tType == 1 ||
  4355. tType == 4) &&
  4356. tool.tool.indexOf(32) != -1
  4357. "
  4358. class="worksBox"
  4359. >
  4360. <div
  4361. class="zuoyeYulan"
  4362. v-if="
  4363. worksStudent.length &&
  4364. worksStudent[toolIndex].length > 0
  4365. "
  4366. >
  4367. <div class="worksTop">
  4368. <div>作业预览</div>
  4369. <div
  4370. class="corOpen"
  4371. @click="contract(toolIndex)"
  4372. v-if="
  4373. isCloseList[toolIndex].isCloseBoolean &&
  4374. isCloseList[toolIndex].isClose == 0
  4375. "
  4376. >
  4377. 折叠
  4378. </div>
  4379. <div
  4380. class="corOpen"
  4381. @click="contract(toolIndex)"
  4382. v-if="isCloseList[toolIndex].isClose == 1"
  4383. >
  4384. 展开
  4385. </div>
  4386. </div>
  4387. </div>
  4388. <div
  4389. :id="'tool-' + toolIndex"
  4390. :style="{
  4391. height:
  4392. isCloseList[toolIndex].isClose == 1
  4393. ? retrnToolHeight('tool-' + toolIndex)
  4394. : 'auto',
  4395. overflow:
  4396. isCloseList[toolIndex].isClose == 1
  4397. ? 'hidden'
  4398. : 'unset'
  4399. }"
  4400. class="worksDetailBox"
  4401. v-if="
  4402. worksStudent.length &&
  4403. worksStudent[toolIndex].length > 0
  4404. "
  4405. >
  4406. <div
  4407. class="works"
  4408. style="
  4409. width: 200px;
  4410. height: 140px;
  4411. margin: 10px 10px 10px 0;
  4412. border-radius: 15px;
  4413. box-shadow: 0 0 6px 1px #dfdada;
  4414. "
  4415. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4416. :key="wIndex"
  4417. :class="w.type == 1 ? 'isTypeOne' : ''"
  4418. >
  4419. <div class="workImg">
  4420. <img
  4421. :src="word2"
  4422. @click="downloadFile(w.works)"
  4423. alt
  4424. />
  4425. <div
  4426. class="answerScore"
  4427. v-if="w.score"
  4428. @click.stop="openScore(w)"
  4429. :class="{
  4430. rightW:
  4431. w.userid == userid ||
  4432. tType == 1 ||
  4433. tType == 4 ||
  4434. w.ateacher == userid
  4435. }"
  4436. >
  4437. {{ JSON.parse(w.score).wScore }}分
  4438. </div>
  4439. <div
  4440. class="answerScore"
  4441. @click.stop="openScore(w)"
  4442. v-else-if="courseDetail.userid == userid"
  4443. :class="{
  4444. rightW:
  4445. w.userid == userid ||
  4446. tType == 1 ||
  4447. tType == 4 ||
  4448. w.ateacher == userid
  4449. }"
  4450. >
  4451. 评分
  4452. </div>
  4453. <img
  4454. class="deleteImg"
  4455. src="../../assets/deleteworks.png"
  4456. v-if="
  4457. w.userid == userid || tType == 1 || tType == 4
  4458. "
  4459. @click.stop="deleteWorks(w.wid)"
  4460. alt
  4461. />
  4462. </div>
  4463. <div class="comment" style="min-width: 200px">
  4464. <div class="worksName">
  4465. <div>{{ w.sName }}</div>
  4466. </div>
  4467. <div class="commentList">
  4468. <div class="commentList">
  4469. <div
  4470. class="commentImg"
  4471. @click="
  4472. isLikes(
  4473. w.wid,
  4474. userid,
  4475. 1,
  4476. null,
  4477. w.isLikes,
  4478. w.sName
  4479. )
  4480. "
  4481. >
  4482. <img
  4483. :src="w.isLikes == true ? likes : noLikes"
  4484. alt=""
  4485. />
  4486. </div>
  4487. <div>{{ w.likesCount }}</div>
  4488. </div>
  4489. <div class="commentList" style="margin-right: 15px">
  4490. <div
  4491. class="commentImg"
  4492. @click="commentOther(w, toolIndex, wIndex)"
  4493. >
  4494. <img
  4495. src="../../assets/icon/comment/comment.png"
  4496. alt=""
  4497. />
  4498. </div>
  4499. <div>{{ w.commentCount }}</div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. </div>
  4505. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4506. 未提交
  4507. </div>
  4508. <div
  4509. class="noWorksS"
  4510. v-if="noWorksS && noWorksS[toolIndex].length"
  4511. >
  4512. <div
  4513. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4514. :key="sIndex"
  4515. class="noWorksName"
  4516. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4517. >
  4518. <el-tooltip
  4519. effect="dark"
  4520. :content="s.student"
  4521. placement="top"
  4522. >
  4523. <span>{{ s.student }}</span>
  4524. </el-tooltip>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. <div
  4529. v-if="
  4530. tType &&
  4531. ((tType == 2 && sIsOpen == true) ||
  4532. tType == 1 ||
  4533. tType == 4) &&
  4534. tool.tool.indexOf(57) != -1
  4535. "
  4536. class="worksBox"
  4537. >
  4538. <div
  4539. class="zuoyeYulan"
  4540. v-if="
  4541. worksStudent.length &&
  4542. worksStudent[toolIndex].length > 0
  4543. "
  4544. >
  4545. <div class="worksTop">
  4546. <div>作业预览</div>
  4547. <div
  4548. class="corOpen"
  4549. @click="contract(toolIndex)"
  4550. v-if="
  4551. isCloseList[toolIndex].isCloseBoolean &&
  4552. isCloseList[toolIndex].isClose == 0
  4553. "
  4554. >
  4555. 折叠
  4556. </div>
  4557. <div
  4558. class="corOpen"
  4559. @click="contract(toolIndex)"
  4560. v-if="isCloseList[toolIndex].isClose == 1"
  4561. >
  4562. 展开
  4563. </div>
  4564. </div>
  4565. </div>
  4566. <div
  4567. :id="'tool-' + toolIndex"
  4568. :style="{
  4569. height:
  4570. isCloseList[toolIndex].isClose == 1
  4571. ? retrnToolHeight('tool-' + toolIndex)
  4572. : 'auto',
  4573. overflow:
  4574. isCloseList[toolIndex].isClose == 1
  4575. ? 'hidden'
  4576. : 'unset'
  4577. }"
  4578. class="worksDetailBox"
  4579. v-if="
  4580. worksStudent.length &&
  4581. worksStudent[toolIndex].length > 0
  4582. "
  4583. >
  4584. <div
  4585. class="works"
  4586. style="
  4587. width: 200px;
  4588. height: 140px;
  4589. margin: 10px 10px 10px 0;
  4590. border-radius: 15px;
  4591. box-shadow: 0 0 6px 1px #dfdada;
  4592. "
  4593. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4594. :key="wIndex"
  4595. :class="w.type == 1 ? 'isTypeOne' : ''"
  4596. >
  4597. <div class="workImg">
  4598. <img
  4599. :src="word2"
  4600. @click="downloadFile(w.works)"
  4601. v-if="w.type == 12"
  4602. alt
  4603. />
  4604. <img
  4605. :src="word2"
  4606. @click="
  4607. openCocoPi(57, toolIndex, w.userid, w.sName)
  4608. "
  4609. v-else-if="w.type == 15"
  4610. alt
  4611. />
  4612. <div
  4613. class="answerScore"
  4614. v-if="w.score"
  4615. @click.stop="openScore(w)"
  4616. :class="{
  4617. rightW:
  4618. w.userid == userid ||
  4619. tType == 1 ||
  4620. tType == 4 ||
  4621. w.ateacher == userid
  4622. }"
  4623. >
  4624. {{ JSON.parse(w.score).wScore }}分
  4625. </div>
  4626. <div
  4627. class="answerScore"
  4628. @click.stop="openScore(w)"
  4629. v-else-if="
  4630. courseDetail.userid == userid &&
  4631. courseDetail.state != 5 &&
  4632. chapInfoList[courseType].chapterInfo[0]
  4633. .taskJson[taskCount].eList &&
  4634. chapInfoList[courseType].chapterInfo[0]
  4635. .taskJson[taskCount].eList.length
  4636. "
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid ||
  4640. tType == 1 ||
  4641. tType == 4 ||
  4642. w.ateacher == userid
  4643. }"
  4644. >
  4645. 评分
  4646. </div>
  4647. <!-- <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"> -->
  4648. <div
  4649. v-else-if="
  4650. (courseDetail.userid == userid ||
  4651. (courseDetail.course_teacher &&
  4652. courseDetail.course_teacher.indexOf(userid) !=
  4653. -1) ||
  4654. (w.userid == userid && sIsOpen)) &&
  4655. courseDetail.state == 5 &&
  4656. ((chapInfoList[courseType].chapterInfo[0]
  4657. .taskJson[taskCount].eList &&
  4658. chapInfoList[courseType].chapterInfo[0]
  4659. .taskJson[taskCount].eList.length) ||
  4660. (tool.eList && tool.eList.length))
  4661. "
  4662. >
  4663. <el-popover
  4664. placement="top"
  4665. width="318"
  4666. :disabled="AIloading[toolIndex][wIndex].loading"
  4667. trigger="hover"
  4668. >
  4669. <markScore
  4670. :loading="AIloading[toolIndex][wIndex].loading"
  4671. :markScoreVisible="markScoreVisible"
  4672. :ref="`markSco${toolIndex}${wIndex}`"
  4673. @updateLoading="updateLoading"
  4674. @updateDocSco="updateDocSco"
  4675. @refreshOther="refreshOther"
  4676. @markScoreDig="markScoreDig"
  4677. :tool="tool"
  4678. :wIndex="wIndex"
  4679. :scoCon="w"
  4680. :toolIndex="toolIndex"
  4681. :key="refreshKey"
  4682. :stage="courseType"
  4683. :task="taskCount"
  4684. :scoTit="
  4685. chapInfoList[courseType].chapterInfo[0]
  4686. .taskJson[taskCount].eList
  4687. "
  4688. >
  4689. </markScore>
  4690. <div
  4691. class="answerScore"
  4692. @click="
  4693. markScoreDig2(
  4694. w.sName,
  4695. worksStudent,
  4696. w.userid,
  4697. toolIndex,
  4698. chapInfoList[courseType].chapterInfo[0]
  4699. .taskJson[taskCount].eList,
  4700. AIloading[toolIndex][wIndex].loading,
  4701. tool
  4702. )
  4703. "
  4704. slot="reference"
  4705. :class="{
  4706. rightW:
  4707. w.userid == userid ||
  4708. tType == 1 ||
  4709. tType == 4 ||
  4710. w.ateacher == userid
  4711. }"
  4712. >
  4713. <span v-if="AIloading[toolIndex][wIndex].sco">
  4714. {{
  4715. AIloading[toolIndex][wIndex].loading
  4716. ? "评分中"
  4717. : AIloading[toolIndex][wIndex].sco + "分"
  4718. }}
  4719. </span>
  4720. <span v-else>
  4721. {{
  4722. AIloading[toolIndex][wIndex].loading
  4723. ? "评分中"
  4724. : "评分"
  4725. }}
  4726. </span>
  4727. </div>
  4728. </el-popover>
  4729. </div>
  4730. <img
  4731. class="deleteImg"
  4732. src="../../assets/deleteworks.png"
  4733. v-if="
  4734. w.userid == userid || tType == 1 || tType == 4
  4735. "
  4736. @click.stop="deleteWorks(w.wid)"
  4737. alt
  4738. />
  4739. </div>
  4740. <div class="comment" style="min-width: 200px">
  4741. <div class="worksName">
  4742. <div>{{ w.sName }}</div>
  4743. </div>
  4744. <div class="commentList">
  4745. <div class="commentList">
  4746. <div
  4747. class="commentImg"
  4748. @click="
  4749. isLikes(
  4750. w.wid,
  4751. userid,
  4752. 1,
  4753. null,
  4754. w.isLikes,
  4755. w.sName
  4756. )
  4757. "
  4758. >
  4759. <img
  4760. :src="w.isLikes == true ? likes : noLikes"
  4761. alt=""
  4762. />
  4763. </div>
  4764. <div>{{ w.likesCount }}</div>
  4765. </div>
  4766. <div class="commentList" style="margin-right: 15px">
  4767. <div
  4768. class="commentImg"
  4769. @click="commentOther(w, toolIndex, wIndex)"
  4770. >
  4771. <img
  4772. src="../../assets/icon/comment/comment.png"
  4773. alt=""
  4774. />
  4775. </div>
  4776. <div>{{ w.commentCount }}</div>
  4777. </div>
  4778. </div>
  4779. </div>
  4780. </div>
  4781. </div>
  4782. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4783. 未提交
  4784. </div>
  4785. <div
  4786. class="noWorksS"
  4787. v-if="noWorksS && noWorksS[toolIndex].length"
  4788. >
  4789. <div
  4790. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4791. :key="sIndex"
  4792. class="noWorksName"
  4793. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4794. >
  4795. <el-tooltip
  4796. effect="dark"
  4797. :content="s.student"
  4798. placement="top"
  4799. >
  4800. <span>{{ s.student }}</span>
  4801. </el-tooltip>
  4802. </div>
  4803. </div>
  4804. </div>
  4805. <div
  4806. v-if="
  4807. tType &&
  4808. ((tType == 2 && sIsOpen == true) ||
  4809. tType == 1 ||
  4810. tType == 4) &&
  4811. tool.tool.indexOf(72) != -1
  4812. "
  4813. class="worksBox"
  4814. >
  4815. <div
  4816. class="zuoyeYulan"
  4817. style="display: flex;justify-content: space-between;align-items: center;"
  4818. v-if="
  4819. worksStudent.length &&
  4820. worksStudent[toolIndex].length > 0
  4821. "
  4822. >
  4823. <div class="worksTop">
  4824. <div>作业预览</div>
  4825. <div
  4826. class="corOpen"
  4827. @click="contract(toolIndex)"
  4828. v-if="
  4829. isCloseList[toolIndex].isCloseBoolean &&
  4830. isCloseList[toolIndex].isClose == 0
  4831. "
  4832. >
  4833. 折叠
  4834. </div>
  4835. <div
  4836. class="corOpen"
  4837. @click="contract(toolIndex)"
  4838. v-if="isCloseList[toolIndex].isClose == 1"
  4839. >
  4840. 展开
  4841. </div>
  4842. </div>
  4843. <div
  4844. style="display: flex;"
  4845. v-if="
  4846. (courseDetail.userid == userid ||
  4847. (courseDetail.course_teacher &&
  4848. courseDetail.course_teacher.indexOf(userid) !=
  4849. -1)) &&
  4850. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4851. taskCount
  4852. ].eList &&
  4853. chapInfoList[courseType].chapterInfo[0].taskJson[
  4854. taskCount
  4855. ].eList.length) ||
  4856. (tool.eList && tool.eList.length)) &&
  4857. courseDetail.state == 5
  4858. "
  4859. >
  4860. <!-- <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"> -->
  4861. <div
  4862. @click="
  4863. resetLoopEva(
  4864. worksStudent[toolIndex],
  4865. chapInfoList[courseType].chapterInfo[0].taskJson[
  4866. taskCount
  4867. ].eList,
  4868. courseType,
  4869. taskCount,
  4870. toolIndex,
  4871. tool.toolDetail,
  4872. tool
  4873. )
  4874. "
  4875. style="margin-right:10px"
  4876. class="ScoreBtn"
  4877. >
  4878. 一键重置
  4879. </div>
  4880. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4881. <img
  4882. src="../../assets/icon/newIcons/rootImg.png"
  4883. alt=""
  4884. />
  4885. AI评分
  4886. </div>
  4887. <div
  4888. class="ScoreBtn"
  4889. v-else-if="!loopLoading[toolIndex].loading"
  4890. @click="
  4891. loopEva(
  4892. worksStudent[toolIndex],
  4893. chapInfoList[courseType].chapterInfo[0].taskJson[
  4894. taskCount
  4895. ].eList,
  4896. courseType,
  4897. taskCount,
  4898. toolIndex,
  4899. tool.toolDetail,
  4900. chapInfoList[courseType].chapterInfo[0].taskJson[
  4901. taskCount
  4902. ].taskDetail,
  4903. tool
  4904. )
  4905. "
  4906. >
  4907. <img
  4908. src="../../assets/icon/newIcons/rootImg.png"
  4909. alt=""
  4910. />
  4911. AI评分
  4912. </div>
  4913. <div class="ScoreBtn" v-else>
  4914. <img
  4915. src="../../assets/icon/newIcons/rootImg.png"
  4916. alt=""
  4917. />
  4918. 正在评分
  4919. </div>
  4920. </div>
  4921. </div>
  4922. <div
  4923. :id="'tool-' + toolIndex"
  4924. :style="{
  4925. height:
  4926. isCloseList[toolIndex].isClose == 1
  4927. ? retrnToolHeight('tool-' + toolIndex)
  4928. : 'auto',
  4929. overflow:
  4930. isCloseList[toolIndex].isClose == 1
  4931. ? 'hidden'
  4932. : 'unset'
  4933. }"
  4934. class="worksDetailBox"
  4935. v-if="
  4936. worksStudent.length &&
  4937. worksStudent[toolIndex].length > 0
  4938. "
  4939. >
  4940. <div
  4941. class="works"
  4942. style="
  4943. width: 200px;
  4944. height: 140px;
  4945. margin: 10px 10px 10px 0;
  4946. border-radius: 15px;
  4947. box-shadow: 0 0 6px 1px #dfdada;
  4948. "
  4949. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4950. :key="wIndex"
  4951. :class="w.type == 1 ? 'isTypeOne' : ''"
  4952. >
  4953. <div class="workImg">
  4954. <!-- <img
  4955. :src="word2"
  4956. @click="downloadFile(w.works)"
  4957. v-if="w.type == 12"
  4958. alt
  4959. /> -->
  4960. <img
  4961. :src="word2"
  4962. @click="
  4963. openCocoFlow(w)
  4964. "
  4965. alt
  4966. />
  4967. <div
  4968. class="answerScore"
  4969. v-if="w.score"
  4970. @click.stop="openScore(w)"
  4971. :class="{
  4972. rightW:
  4973. w.userid == userid ||
  4974. tType == 1 ||
  4975. tType == 4 ||
  4976. w.ateacher == userid
  4977. }"
  4978. >
  4979. {{ JSON.parse(w.score).wScore }}分
  4980. </div>
  4981. <div
  4982. class="answerScore"
  4983. @click.stop="openScore(w)"
  4984. v-else-if="
  4985. courseDetail.userid == userid &&
  4986. courseDetail.state != 5 &&
  4987. chapInfoList[courseType].chapterInfo[0]
  4988. .taskJson[taskCount].eList &&
  4989. chapInfoList[courseType].chapterInfo[0]
  4990. .taskJson[taskCount].eList.length
  4991. "
  4992. :class="{
  4993. rightW:
  4994. w.userid == userid ||
  4995. tType == 1 ||
  4996. tType == 4 ||
  4997. w.ateacher == userid
  4998. }"
  4999. >
  5000. 评分
  5001. </div>
  5002. <div
  5003. v-else-if="
  5004. (courseDetail.userid == userid ||
  5005. (courseDetail.course_teacher &&
  5006. courseDetail.course_teacher.indexOf(userid) !=
  5007. -1) ||
  5008. (w.userid == userid && sIsOpen)) &&
  5009. courseDetail.state == 5 &&
  5010. ((chapInfoList[courseType].chapterInfo[0]
  5011. .taskJson[taskCount].eList &&
  5012. chapInfoList[courseType].chapterInfo[0]
  5013. .taskJson[taskCount].eList.length) ||
  5014. (tool.eList && tool.eList.length))
  5015. "
  5016. >
  5017. <!-- <div
  5018. class="answerScore"
  5019. @click="markScoreDig(w.userid,toolIndex)"
  5020. :class="{
  5021. rightW:
  5022. w.userid == userid ||
  5023. tType == 1 ||
  5024. tType == 4 ||
  5025. w.ateacher == userid,
  5026. }"
  5027. >
  5028. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5029. </div> -->
  5030. <!-- @show="handleShow(toolIndex,wIndex)"
  5031. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5032. <el-popover
  5033. placement="top"
  5034. width="318"
  5035. :disabled="AIloading[toolIndex][wIndex].loading"
  5036. trigger="hover"
  5037. >
  5038. <markScore
  5039. :loading="AIloading[toolIndex][wIndex].loading"
  5040. :markScoreVisible="markScoreVisible"
  5041. :ref="`markSco${toolIndex}${wIndex}`"
  5042. @updateLoading="updateLoading"
  5043. @updateDocSco="updateDocSco"
  5044. @refreshOther="refreshOther"
  5045. @markScoreDig="markScoreDig"
  5046. :tool="tool"
  5047. :wIndex="wIndex"
  5048. :scoCon="w"
  5049. :toolIndex="toolIndex"
  5050. :key="refreshKey"
  5051. :stage="courseType"
  5052. :task="taskCount"
  5053. :scoTit="
  5054. chapInfoList[courseType].chapterInfo[0]
  5055. .taskJson[taskCount].eList
  5056. "
  5057. >
  5058. </markScore>
  5059. <div
  5060. class="answerScore"
  5061. @click="
  5062. markScoreDig2(
  5063. w.sName,
  5064. worksStudent,
  5065. w.userid,
  5066. toolIndex,
  5067. chapInfoList[courseType].chapterInfo[0]
  5068. .taskJson[taskCount].eList,
  5069. AIloading[toolIndex][wIndex].loading,
  5070. tool
  5071. )
  5072. "
  5073. slot="reference"
  5074. :class="{
  5075. rightW:
  5076. w.userid == userid ||
  5077. tType == 1 ||
  5078. tType == 4 ||
  5079. w.ateacher == userid
  5080. }"
  5081. >
  5082. <span v-if="AIloading[toolIndex][wIndex].sco">
  5083. {{
  5084. AIloading[toolIndex][wIndex].loading
  5085. ? "评分中"
  5086. : AIloading[toolIndex][wIndex].sco + "分"
  5087. }}
  5088. </span>
  5089. <span v-else>
  5090. {{
  5091. AIloading[toolIndex][wIndex].loading
  5092. ? "评分中"
  5093. : "评分"
  5094. }}
  5095. </span>
  5096. </div>
  5097. </el-popover>
  5098. </div>
  5099. <img
  5100. class="deleteImg"
  5101. src="../../assets/deleteworks.png"
  5102. v-if="
  5103. w.userid == userid || tType == 1 || tType == 4
  5104. "
  5105. @click.stop="deleteWorks(w.wid)"
  5106. alt
  5107. />
  5108. </div>
  5109. <div class="comment" style="min-width: 200px">
  5110. <div class="worksName">
  5111. <div>{{ w.sName }}</div>
  5112. </div>
  5113. <div class="commentList">
  5114. <div class="commentList">
  5115. <div
  5116. class="commentImg"
  5117. @click="
  5118. isLikes(
  5119. w.wid,
  5120. userid,
  5121. 1,
  5122. null,
  5123. w.isLikes,
  5124. w.sName
  5125. )
  5126. "
  5127. >
  5128. <img
  5129. :src="w.isLikes == true ? likes : noLikes"
  5130. alt=""
  5131. />
  5132. </div>
  5133. <div>{{ w.likesCount }}</div>
  5134. </div>
  5135. <div class="commentList" style="margin-right: 15px">
  5136. <div
  5137. class="commentImg"
  5138. @click="commentOther(w, toolIndex, wIndex)"
  5139. >
  5140. <img
  5141. src="../../assets/icon/comment/comment.png"
  5142. alt=""
  5143. />
  5144. </div>
  5145. <div>{{ w.commentCount }}</div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. </div>
  5151. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5152. 未提交
  5153. </div>
  5154. <div
  5155. class="noWorksS"
  5156. v-if="noWorksS && noWorksS[toolIndex].length"
  5157. >
  5158. <div
  5159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5160. :key="sIndex"
  5161. class="noWorksName"
  5162. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5163. >
  5164. <el-tooltip
  5165. effect="dark"
  5166. :content="s.student"
  5167. placement="top"
  5168. >
  5169. <span>{{ s.student }}</span>
  5170. </el-tooltip>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div
  5175. v-if="
  5176. tType &&
  5177. tType == 2 &&
  5178. !sIsOpen &&
  5179. tool.tool.indexOf(72) != -1
  5180. "
  5181. class="worksBox"
  5182. >
  5183. <div
  5184. class="zuoyeYulan"
  5185. v-if="workStudent[toolIndex].length > 0"
  5186. >
  5187. <span class="worksTitle">作业预览</span>
  5188. </div>
  5189. <div
  5190. class="worksDetailBox"
  5191. v-if="workStudent[toolIndex].length > 0"
  5192. >
  5193. <div
  5194. class="works"
  5195. style="
  5196. width: 200px;
  5197. height: 140px;
  5198. margin: 10px 10px 10px 0;
  5199. box-shadow: 0 0 6px 1px #dfdada;
  5200. "
  5201. v-for="(w, wIndex) in workStudent[toolIndex]"
  5202. :key="wIndex"
  5203. >
  5204. <div class="workImg">
  5205. <!-- <img
  5206. :src="word2"
  5207. @click="downloadFile(w.works)"
  5208. v-if="w.type == 12"
  5209. alt
  5210. /> -->
  5211. <img
  5212. :src="word2"
  5213. @click="
  5214. openCocoFlow(w)
  5215. "
  5216. alt
  5217. />
  5218. <div
  5219. class="answerScore"
  5220. v-if="w.score"
  5221. @click.stop="openScore(w)"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid || tType == 1 || tType == 4
  5225. }"
  5226. >
  5227. {{ JSON.parse(w.score).wScore }}分
  5228. </div>
  5229. <div
  5230. class="answerScore"
  5231. @click.stop="openScore(w)"
  5232. v-else-if="courseDetail.userid == userid"
  5233. :class="{
  5234. rightW:
  5235. w.userid == userid || tType == 1 || tType == 4
  5236. }"
  5237. >
  5238. 评分
  5239. </div>
  5240. <div
  5241. class="stuLookScore"
  5242. v-if="
  5243. w.userid == userid ||
  5244. (tType == 1 &&
  5245. courseDetail.state == 5 &&
  5246. ((chapInfoList[courseType].chapterInfo[0]
  5247. .taskJson[taskCount].eList &&
  5248. chapInfoList[courseType].chapterInfo[0]
  5249. .taskJson[taskCount].eList.length) ||
  5250. (tool.eList && tool.eList.length)))
  5251. "
  5252. >
  5253. <el-popover
  5254. placement="top"
  5255. width="318"
  5256. trigger="hover"
  5257. >
  5258. <markScore
  5259. :loading="AIloading[toolIndex][wIndex].loading"
  5260. :markScoreVisible="markScoreVisible"
  5261. :ref="`markSco${toolIndex}${wIndex}`"
  5262. @updateLoading="updateLoading"
  5263. @updateDocSco="updateDocSco"
  5264. @refreshOther="refreshOther"
  5265. @markScoreDig="markScoreDig"
  5266. :tool="tool"
  5267. :wIndex="wIndex"
  5268. :scoCon="w"
  5269. :toolIndex="toolIndex"
  5270. :key="refreshKey"
  5271. :stage="courseType"
  5272. :task="taskCount"
  5273. :scoTit="
  5274. chapInfoList[courseType].chapterInfo[0]
  5275. .taskJson[taskCount].eList
  5276. "
  5277. >
  5278. </markScore>
  5279. <div
  5280. @click="
  5281. markScoreDig2(
  5282. w.sName,
  5283. worksStudent,
  5284. w.userid,
  5285. toolIndex,
  5286. chapInfoList[courseType].chapterInfo[0]
  5287. .taskJson[taskCount].eList,
  5288. AIloading[toolIndex][wIndex].loading,
  5289. tool
  5290. )
  5291. "
  5292. slot="reference"
  5293. >
  5294. <span v-if="AIloading[toolIndex][wIndex].sco">
  5295. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5296. </span>
  5297. <span v-else>
  5298. 评分
  5299. </span>
  5300. </div>
  5301. </el-popover>
  5302. </div>
  5303. <img
  5304. class="deleteImg"
  5305. src="../../assets/deleteworks.png"
  5306. v-if="
  5307. w.userid == userid || tType == 1 || tType == 4
  5308. "
  5309. @click.stop="deleteWorks(w.wid)"
  5310. alt
  5311. />
  5312. </div>
  5313. <div class="worksName">
  5314. <div>{{ w.sName }}</div>
  5315. </div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5320. <div
  5321. style="display: flex;justify-content: space-between;align-items: center;"
  5322. >
  5323. <div
  5324. class="zuoyeYulan"
  5325. v-if="
  5326. worksStudent.length &&
  5327. worksStudent[toolIndex].length > 0
  5328. "
  5329. >
  5330. <span class="worksTitle">作业预览</span>
  5331. <div
  5332. class="corOpen"
  5333. @click="contract(toolIndex)"
  5334. v-if="
  5335. isCloseList[toolIndex].isCloseBoolean &&
  5336. isCloseList[toolIndex].isClose == 0
  5337. "
  5338. >
  5339. 折叠
  5340. </div>
  5341. <div
  5342. class="corOpen"
  5343. @click="contract(toolIndex)"
  5344. v-if="isCloseList[toolIndex].isClose == 1"
  5345. >
  5346. 展开
  5347. </div>
  5348. </div>
  5349. <div
  5350. style="display: flex;"
  5351. v-if="
  5352. (courseDetail.userid == userid ||
  5353. (courseDetail.course_teacher &&
  5354. courseDetail.course_teacher.indexOf(userid) !=
  5355. -1)) &&
  5356. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5357. taskCount
  5358. ].eList &&
  5359. chapInfoList[courseType].chapterInfo[0].taskJson[
  5360. taskCount
  5361. ].eList.length) ||
  5362. (tool.eList && tool.eList.length)) &&
  5363. courseDetail.state == 5
  5364. "
  5365. >
  5366. <!-- <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 "> -->
  5367. <div
  5368. style="margin-right:10px"
  5369. class="ScoreBtn"
  5370. @click="
  5371. resetLoopEva(
  5372. worksStudent[toolIndex],
  5373. chapInfoList[courseType].chapterInfo[0].taskJson[
  5374. taskCount
  5375. ].eList,
  5376. courseType,
  5377. taskCount,
  5378. toolIndex,
  5379. tool.toolDetail,
  5380. worksStudent
  5381. )
  5382. "
  5383. >
  5384. 一键重置
  5385. </div>
  5386. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5387. <img
  5388. src="../../assets/icon/newIcons/rootImg.png"
  5389. alt=""
  5390. />
  5391. AI评分
  5392. </div>
  5393. <div
  5394. class="ScoreBtn"
  5395. v-else-if="!loopLoading[toolIndex].loading"
  5396. @click="
  5397. loopEva(
  5398. worksStudent[toolIndex],
  5399. chapInfoList[courseType].chapterInfo[0].taskJson[
  5400. taskCount
  5401. ].eList,
  5402. courseType,
  5403. taskCount,
  5404. toolIndex,
  5405. tool.toolDetail,
  5406. chapInfoList[courseType].chapterInfo[0].taskJson[
  5407. taskCount
  5408. ].taskDetail,
  5409. tool
  5410. )
  5411. "
  5412. >
  5413. <img
  5414. src="../../assets/icon/newIcons/rootImg.png"
  5415. alt=""
  5416. />
  5417. AI评分
  5418. </div>
  5419. <div class="ScoreBtn" v-else>
  5420. <img
  5421. src="../../assets/icon/newIcons/rootImg.png"
  5422. alt=""
  5423. />
  5424. 正在评分
  5425. </div>
  5426. </div>
  5427. </div>
  5428. <div
  5429. :id="'tool-' + toolIndex"
  5430. :style="{
  5431. height:
  5432. isCloseList[toolIndex].isClose == 1
  5433. ? retrnToolHeight('tool-' + toolIndex)
  5434. : 'auto',
  5435. overflow:
  5436. isCloseList[toolIndex].isClose == 1
  5437. ? 'hidden'
  5438. : 'unset'
  5439. }"
  5440. class="worksDetailBox"
  5441. v-if="
  5442. worksStudent.length &&
  5443. worksStudent[toolIndex].length > 0
  5444. "
  5445. >
  5446. <div
  5447. class="works"
  5448. style="
  5449. width: 200px;
  5450. height: 140px;
  5451. margin: 10px 10px 10px 0;
  5452. border-radius: 15px;
  5453. box-shadow: 0 0 6px 1px #dfdada;
  5454. "
  5455. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5456. :key="wIndex"
  5457. :class="w.type == 1 ? 'isTypeOne' : ''"
  5458. >
  5459. <div class="workImg" v-if="w.type == 0">
  5460. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5461. <img
  5462. :src="w.works"
  5463. @click="previewImg(w.works, w)"
  5464. alt
  5465. />
  5466. <div
  5467. class="answerScore"
  5468. v-if="w.score"
  5469. @click.stop="openScore(w)"
  5470. :class="{
  5471. rightW:
  5472. w.userid == userid ||
  5473. tType == 1 ||
  5474. tType == 4 ||
  5475. w.ateacher == userid
  5476. }"
  5477. >
  5478. {{ JSON.parse(w.score).wScore }}分
  5479. </div>
  5480. <div
  5481. class="answerScore"
  5482. @click.stop="openScore(w)"
  5483. v-else-if="
  5484. courseDetail.userid == userid &&
  5485. courseDetail.state != 5 &&
  5486. chapInfoList[courseType].chapterInfo[0]
  5487. .taskJson[taskCount].eList &&
  5488. chapInfoList[courseType].chapterInfo[0]
  5489. .taskJson[taskCount].eList.length
  5490. "
  5491. :class="{
  5492. rightW:
  5493. w.userid == userid ||
  5494. tType == 1 ||
  5495. tType == 4 ||
  5496. w.ateacher == userid
  5497. }"
  5498. >
  5499. 评分
  5500. </div>
  5501. <!-- <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"> -->
  5502. <div
  5503. v-else-if="
  5504. (courseDetail.userid == userid ||
  5505. (courseDetail.course_teacher &&
  5506. courseDetail.course_teacher.indexOf(userid) !=
  5507. -1) ||
  5508. (w.userid == userid && sIsOpen)) &&
  5509. courseDetail.state == 5 &&
  5510. ((chapInfoList[courseType].chapterInfo[0]
  5511. .taskJson[taskCount].eList &&
  5512. chapInfoList[courseType].chapterInfo[0]
  5513. .taskJson[taskCount].eList.length) ||
  5514. (tool.eList && tool.eList.length))
  5515. "
  5516. >
  5517. <el-popover
  5518. placement="top"
  5519. width="318"
  5520. :disabled="AIloading[toolIndex][wIndex].loading"
  5521. trigger="hover"
  5522. >
  5523. <markScore
  5524. :loading="AIloading[toolIndex][wIndex].loading"
  5525. :markScoreVisible="markScoreVisible"
  5526. :ref="`markSco${toolIndex}${wIndex}`"
  5527. @updateLoading="updateLoading"
  5528. @updateDocSco="updateDocSco"
  5529. @refreshOther="refreshOther"
  5530. @markScoreDig="markScoreDig"
  5531. :tool="tool"
  5532. :wIndex="wIndex"
  5533. :scoCon="w"
  5534. :toolIndex="toolIndex"
  5535. :key="refreshKey"
  5536. :stage="courseType"
  5537. :task="taskCount"
  5538. :scoTit="
  5539. chapInfoList[courseType].chapterInfo[0]
  5540. .taskJson[taskCount].eList
  5541. "
  5542. >
  5543. </markScore>
  5544. <div
  5545. class="answerScore"
  5546. @click="
  5547. markScoreDig2(
  5548. w.sName,
  5549. worksStudent,
  5550. w.userid,
  5551. toolIndex,
  5552. chapInfoList[courseType].chapterInfo[0]
  5553. .taskJson[taskCount].eList,
  5554. AIloading[toolIndex][wIndex].loading,
  5555. tool
  5556. )
  5557. "
  5558. slot="reference"
  5559. :class="{
  5560. rightW:
  5561. w.userid == userid ||
  5562. tType == 1 ||
  5563. tType == 4 ||
  5564. w.ateacher == userid
  5565. }"
  5566. >
  5567. <span v-if="AIloading[toolIndex][wIndex].sco">
  5568. {{
  5569. AIloading[toolIndex][wIndex].loading
  5570. ? "评分中"
  5571. : AIloading[toolIndex][wIndex].sco + "分"
  5572. }}
  5573. </span>
  5574. <span v-else>
  5575. {{
  5576. AIloading[toolIndex][wIndex].loading
  5577. ? "评分中"
  5578. : "评分"
  5579. }}
  5580. </span>
  5581. </div>
  5582. </el-popover>
  5583. </div>
  5584. <img
  5585. class="deleteImg"
  5586. src="../../assets/deleteworks.png"
  5587. v-if="
  5588. w.userid == userid || tType == 1 || tType == 4
  5589. "
  5590. @click.stop="deleteWorks(w.wid)"
  5591. alt
  5592. />
  5593. </div>
  5594. <div
  5595. class="workImg"
  5596. style="cursor: pointer"
  5597. v-if="w.type == 1"
  5598. >
  5599. <img :src="word" @click="openFile(w.works)" alt />
  5600. <!-- @click="openFile(w.works)" -->
  5601. <div
  5602. class="answerScore"
  5603. v-if="w.score"
  5604. @click.stop="openScore(w)"
  5605. :class="{
  5606. rightW:
  5607. w.userid == userid ||
  5608. tType == 1 ||
  5609. tType == 4 ||
  5610. w.ateacher == userid
  5611. }"
  5612. >
  5613. {{ JSON.parse(w.score).wScore }}分
  5614. </div>
  5615. <div
  5616. class="answerScore"
  5617. @click.stop="openScore(w)"
  5618. v-else-if="
  5619. courseDetail.userid == userid &&
  5620. courseDetail.state != 5 &&
  5621. chapInfoList[courseType].chapterInfo[0]
  5622. .taskJson[taskCount].eList &&
  5623. chapInfoList[courseType].chapterInfo[0]
  5624. .taskJson[taskCount].eList.length
  5625. "
  5626. :class="{
  5627. rightW:
  5628. w.userid == userid ||
  5629. tType == 1 ||
  5630. tType == 4 ||
  5631. w.ateacher == userid
  5632. }"
  5633. >
  5634. 评分
  5635. </div>
  5636. <!-- <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"> -->
  5637. <div
  5638. v-else-if="
  5639. (courseDetail.userid == userid ||
  5640. (courseDetail.course_teacher &&
  5641. courseDetail.course_teacher.indexOf(userid) !=
  5642. -1) ||
  5643. (w.userid == userid && sIsOpen)) &&
  5644. courseDetail.state == 5 &&
  5645. ((chapInfoList[courseType].chapterInfo[0]
  5646. .taskJson[taskCount].eList &&
  5647. chapInfoList[courseType].chapterInfo[0]
  5648. .taskJson[taskCount].eList.length) ||
  5649. (tool.eList && tool.eList.length))
  5650. "
  5651. >
  5652. <el-popover
  5653. placement="top"
  5654. width="318"
  5655. :disabled="AIloading[toolIndex][wIndex].loading"
  5656. trigger="hover"
  5657. >
  5658. <markScore
  5659. :loading="AIloading[toolIndex][wIndex].loading"
  5660. :markScoreVisible="markScoreVisible"
  5661. :ref="`markSco${toolIndex}${wIndex}`"
  5662. @updateLoading="updateLoading"
  5663. @updateDocSco="updateDocSco"
  5664. @refreshOther="refreshOther"
  5665. @markScoreDig="markScoreDig"
  5666. :tool="tool"
  5667. :wIndex="wIndex"
  5668. :scoCon="w"
  5669. :toolIndex="toolIndex"
  5670. :key="refreshKey"
  5671. :stage="courseType"
  5672. :task="taskCount"
  5673. :scoTit="
  5674. chapInfoList[courseType].chapterInfo[0]
  5675. .taskJson[taskCount].eList
  5676. "
  5677. >
  5678. </markScore>
  5679. <div
  5680. class="answerScore"
  5681. @click="
  5682. markScoreDig2(
  5683. w.sName,
  5684. worksStudent,
  5685. w.userid,
  5686. toolIndex,
  5687. chapInfoList[courseType].chapterInfo[0]
  5688. .taskJson[taskCount].eList,
  5689. AIloading[toolIndex][wIndex].loading,
  5690. tool
  5691. )
  5692. "
  5693. slot="reference"
  5694. :class="{
  5695. rightW:
  5696. w.userid == userid ||
  5697. tType == 1 ||
  5698. tType == 4 ||
  5699. w.ateacher == userid
  5700. }"
  5701. >
  5702. <span v-if="AIloading[toolIndex][wIndex].sco">
  5703. {{
  5704. AIloading[toolIndex][wIndex].loading
  5705. ? "评分中"
  5706. : AIloading[toolIndex][wIndex].sco + "分"
  5707. }}
  5708. </span>
  5709. <span v-else>
  5710. {{
  5711. AIloading[toolIndex][wIndex].loading
  5712. ? "评分中"
  5713. : "评分"
  5714. }}
  5715. </span>
  5716. </div>
  5717. </el-popover>
  5718. </div>
  5719. <img
  5720. class="deleteImg"
  5721. src="../../assets/deleteworks.png"
  5722. v-if="
  5723. w.userid == userid || tType == 1 || tType == 4
  5724. "
  5725. @click.stop="deleteWorks(w.wid)"
  5726. alt
  5727. />
  5728. </div>
  5729. <div class="workImg" v-if="w.type == 3">
  5730. <img
  5731. style="cursor: pointer"
  5732. :src="video"
  5733. @click="openVideo(w)"
  5734. alt
  5735. />
  5736. <!-- @click="openVideo(w.works)" -->
  5737. <div
  5738. class="answerScore"
  5739. v-if="w.score"
  5740. @click.stop="openScore(w)"
  5741. :class="{
  5742. rightW:
  5743. w.userid == userid ||
  5744. tType == 1 ||
  5745. tType == 4 ||
  5746. w.ateacher == userid
  5747. }"
  5748. >
  5749. {{ JSON.parse(w.score).wScore }}分
  5750. </div>
  5751. <div
  5752. class="answerScore"
  5753. @click.stop="openScore(w)"
  5754. v-else-if="
  5755. courseDetail.userid == userid &&
  5756. courseDetail.state != 5 &&
  5757. chapInfoList[courseType].chapterInfo[0]
  5758. .taskJson[taskCount].eList &&
  5759. chapInfoList[courseType].chapterInfo[0]
  5760. .taskJson[taskCount].eList.length
  5761. "
  5762. :class="{
  5763. rightW:
  5764. w.userid == userid ||
  5765. tType == 1 ||
  5766. tType == 4 ||
  5767. w.ateacher == userid
  5768. }"
  5769. >
  5770. 评分
  5771. </div>
  5772. <!-- <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"> -->
  5773. <div
  5774. v-else-if="
  5775. (courseDetail.userid == userid ||
  5776. (courseDetail.course_teacher &&
  5777. courseDetail.course_teacher.indexOf(userid) !=
  5778. -1) ||
  5779. (w.userid == userid && sIsOpen)) &&
  5780. courseDetail.state == 5 &&
  5781. ((chapInfoList[courseType].chapterInfo[0]
  5782. .taskJson[taskCount].eList &&
  5783. chapInfoList[courseType].chapterInfo[0]
  5784. .taskJson[taskCount].eList.length) ||
  5785. (tool.eList && tool.eList.length))
  5786. "
  5787. >
  5788. <el-popover
  5789. placement="top"
  5790. width="318"
  5791. :disabled="AIloading[toolIndex][wIndex].loading"
  5792. trigger="hover"
  5793. >
  5794. <markScore
  5795. :loading="AIloading[toolIndex][wIndex].loading"
  5796. :markScoreVisible="markScoreVisible"
  5797. :ref="`markSco${toolIndex}${wIndex}`"
  5798. @updateLoading="updateLoading"
  5799. @updateDocSco="updateDocSco"
  5800. @refreshOther="refreshOther"
  5801. @markScoreDig="markScoreDig"
  5802. :tool="tool"
  5803. :wIndex="wIndex"
  5804. :scoCon="w"
  5805. :toolIndex="toolIndex"
  5806. :key="refreshKey"
  5807. :stage="courseType"
  5808. :task="taskCount"
  5809. :scoTit="
  5810. chapInfoList[courseType].chapterInfo[0]
  5811. .taskJson[taskCount].eList
  5812. "
  5813. >
  5814. </markScore>
  5815. <div
  5816. class="answerScore"
  5817. @click="
  5818. markScoreDig2(
  5819. w.sName,
  5820. worksStudent,
  5821. w.userid,
  5822. toolIndex,
  5823. chapInfoList[courseType].chapterInfo[0]
  5824. .taskJson[taskCount].eList,
  5825. AIloading[toolIndex][wIndex].loading,
  5826. tool
  5827. )
  5828. "
  5829. slot="reference"
  5830. :class="{
  5831. rightW:
  5832. w.userid == userid ||
  5833. tType == 1 ||
  5834. tType == 4 ||
  5835. w.ateacher == userid
  5836. }"
  5837. >
  5838. <span v-if="AIloading[toolIndex][wIndex].sco">
  5839. {{
  5840. AIloading[toolIndex][wIndex].loading
  5841. ? "评分中"
  5842. : AIloading[toolIndex][wIndex].sco + "分"
  5843. }}
  5844. </span>
  5845. <span v-else>
  5846. {{
  5847. AIloading[toolIndex][wIndex].loading
  5848. ? "评分中"
  5849. : "评分"
  5850. }}
  5851. </span>
  5852. </div>
  5853. </el-popover>
  5854. </div>
  5855. <img
  5856. class="deleteImg"
  5857. src="../../assets/deleteworks.png"
  5858. v-if="
  5859. w.userid == userid || tType == 1 || tType == 4
  5860. "
  5861. @click.stop="deleteWorks(w.wid)"
  5862. alt
  5863. />
  5864. </div>
  5865. <div class="comment" style="min-width: 200px">
  5866. <div class="worksName">
  5867. <div
  5868. style="cursor: pointer"
  5869. @click="
  5870. openSname(w.sName, w.wid, toolIndex, w.userid)
  5871. "
  5872. >
  5873. {{ w.sName }}
  5874. </div>
  5875. </div>
  5876. <div class="commentList">
  5877. <div class="commentList">
  5878. <div
  5879. class="commentImg"
  5880. @click="
  5881. isLikes(
  5882. w.wid,
  5883. userid,
  5884. 1,
  5885. null,
  5886. w.isLikes,
  5887. w.sName
  5888. )
  5889. "
  5890. >
  5891. <img
  5892. :src="w.isLikes == true ? likes : noLikes"
  5893. alt=""
  5894. />
  5895. </div>
  5896. <div>{{ w.likesCount }}</div>
  5897. </div>
  5898. <div class="commentList" style="margin-right: 15px">
  5899. <div
  5900. class="commentImg"
  5901. @click="commentOther(w, toolIndex, wIndex)"
  5902. >
  5903. <img
  5904. src="../../assets/icon/comment/comment.png"
  5905. alt=""
  5906. />
  5907. </div>
  5908. <div>{{ w.commentCount }}</div>
  5909. </div>
  5910. </div>
  5911. </div>
  5912. </div>
  5913. </div>
  5914. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5915. 未提交
  5916. </div>
  5917. <div
  5918. class="noWorksS"
  5919. v-if="noWorksS && noWorksS[toolIndex].length"
  5920. >
  5921. <div
  5922. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5923. :key="sIndex"
  5924. class="noWorksName"
  5925. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5926. >
  5927. <el-tooltip
  5928. effect="dark"
  5929. :content="s.student"
  5930. placement="top"
  5931. >
  5932. <span>{{ s.student }}</span>
  5933. </el-tooltip>
  5934. </div>
  5935. </div>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(4) != -1 &&
  5944. (tool.askJson[0].answer ||
  5945. tool.askJson[0].answer === 0) &&
  5946. checkJson[toolIndex].length
  5947. "
  5948. class="xuan_right_box"
  5949. >
  5950. <div
  5951. class="tool_right_box"
  5952. v-for="(item, index) in tool.askJson"
  5953. :key="index"
  5954. >
  5955. <div style="width: calc(100% - 30px);">
  5956. <el-tooltip
  5957. effect="light"
  5958. :content="index + 1 + '、' + item.askstitle"
  5959. placement="top"
  5960. popper-class="text_tooltip"
  5961. >
  5962. <div
  5963. style="
  5964. width: calc(100% - 130px);
  5965. display: block;
  5966. white-space: nowrap;
  5967. overflow: hidden;
  5968. text-overflow: ellipsis;
  5969. word-break: break-word;
  5970. cursor: pointer;
  5971. "
  5972. >
  5973. {{ index + 1 + "、" + item.askstitle }}
  5974. </div>
  5975. </el-tooltip>
  5976. </div>
  5977. <div class="right_box_xuan">
  5978. <span>正确率</span>
  5979. <span>{{
  5980. (checkJson[toolIndex][index].right
  5981. ? checkJson[toolIndex][index].right
  5982. : 0) + "%"
  5983. }}</span>
  5984. </div>
  5985. </div>
  5986. </div>
  5987. <div
  5988. class="xuan_right_box"
  5989. style="background: unset; padding: 0 10px"
  5990. v-if="
  5991. tType &&
  5992. ((tType == 2 && sIsOpen == true) ||
  5993. tType == 1 ||
  5994. tType == 4) &&
  5995. tool.tool.indexOf(4) != -1
  5996. "
  5997. >
  5998. <AskStatic
  5999. v-if="
  6000. worksStudent.length &&
  6001. worksStudent[toolIndex].length > 0
  6002. "
  6003. :askJSON="tool"
  6004. :checkJson="checkJson[toolIndex]"
  6005. ></AskStatic>
  6006. </div>
  6007. <div
  6008. v-if="
  6009. tType &&
  6010. ((tType == 2 && sIsOpen == true) ||
  6011. tType == 1 ||
  6012. tType == 4) &&
  6013. tool.tool.indexOf(4) != -1
  6014. "
  6015. class="worksBox"
  6016. >
  6017. <div
  6018. class="zuoyeYulan"
  6019. v-if="
  6020. worksStudent.length &&
  6021. worksStudent[toolIndex].length > 0
  6022. "
  6023. >
  6024. <div class="worksTop">
  6025. <div>作业预览</div>
  6026. <div
  6027. class="corOpen"
  6028. @click="contract(toolIndex)"
  6029. v-if="
  6030. isCloseList[toolIndex].isCloseBoolean &&
  6031. isCloseList[toolIndex].isClose == 0
  6032. "
  6033. >
  6034. 折叠
  6035. </div>
  6036. <div
  6037. class="corOpen"
  6038. @click="contract(toolIndex)"
  6039. v-if="isCloseList[toolIndex].isClose == 1"
  6040. >
  6041. 展开
  6042. </div>
  6043. </div>
  6044. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6045. </div>
  6046. <div>
  6047. <div
  6048. :id="'tool-' + toolIndex"
  6049. :style="{
  6050. height:
  6051. isCloseList[toolIndex].isClose == 1
  6052. ? retrnToolHeight('tool-' + toolIndex)
  6053. : 'auto',
  6054. overflow:
  6055. isCloseList[toolIndex].isClose == 1
  6056. ? 'hidden'
  6057. : 'unset'
  6058. }"
  6059. class="worksDetailBox"
  6060. v-if="
  6061. worksStudent.length &&
  6062. worksStudent[toolIndex].length > 0
  6063. "
  6064. >
  6065. <div
  6066. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6067. :key="wIndex"
  6068. class="isWorksName2"
  6069. @click="
  6070. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6071. "
  6072. >
  6073. {{ w.sName }}
  6074. <img
  6075. class="deleteImg deleteImg2"
  6076. src="../../assets/deleteworks.png"
  6077. v-if="
  6078. w.userid == userid || tType == 1 || tType == 4
  6079. "
  6080. @click.stop="deleteWorks(w.wid)"
  6081. alt
  6082. />
  6083. </div>
  6084. <!-- <div class="works" style="
  6085. width: 200px;
  6086. height: 140px;
  6087. border-radius: 10px;
  6088. box-shadow: 0 0 6px 1px #dfdada;
  6089. overflow: hidden;
  6090. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6091. <div class="workImg">
  6092. <img src="../../assets/icon/works/noImg.png" @click="
  6093. openTools(
  6094. 4,
  6095. toolIndex,
  6096. taskCount,
  6097. w.works,
  6098. w.sName
  6099. )
  6100. " alt />
  6101. </div>
  6102. <div class="worksName">
  6103. <div>{{ w.sName }}</div>
  6104. <div>{{ w.time }}</div>
  6105. </div>
  6106. </div> -->
  6107. </div>
  6108. </div>
  6109. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6110. 未提交
  6111. </div>
  6112. <div
  6113. class="noWorksS"
  6114. v-if="noWorksS && noWorksS[toolIndex].length"
  6115. >
  6116. <div
  6117. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6118. :key="sIndex"
  6119. class="noWorksName"
  6120. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6121. >
  6122. <el-tooltip
  6123. effect="dark"
  6124. :content="s.student"
  6125. placement="top"
  6126. >
  6127. <span>{{ s.student }}</span>
  6128. </el-tooltip>
  6129. </div>
  6130. </div>
  6131. </div>
  6132. <div
  6133. v-if="
  6134. tType &&
  6135. ((tType == 2 && sIsOpen == true) ||
  6136. tType == 1 ||
  6137. tType == 4) &&
  6138. tool.tool.indexOf(45) != -1 &&
  6139. (tool.testJson.testJson[0].answer ||
  6140. tool.testJson.testJson[0].answer === 0) &&
  6141. checkJson[toolIndex].length
  6142. "
  6143. class="xuan_right_box"
  6144. >
  6145. <div
  6146. class="tool_right_box"
  6147. v-for="(item, index) in tool.testJson.testJson"
  6148. :key="index"
  6149. >
  6150. <div class="right_box_xuan" style="margin-right: 10px">
  6151. <span>正确率</span>
  6152. <span>{{
  6153. (checkJson[toolIndex][index].right
  6154. ? checkJson[toolIndex][index].right
  6155. : 0) + "%"
  6156. }}</span>
  6157. </div>
  6158. <div style="width: calc(100% - 30px);">
  6159. <el-tooltip
  6160. effect="light"
  6161. :content="index + 1 + '、' + item.teststitle"
  6162. placement="top"
  6163. popper-class="text_tooltip"
  6164. >
  6165. <div
  6166. style="
  6167. width: calc(100% - 130px);
  6168. display: block;
  6169. white-space: nowrap;
  6170. overflow: hidden;
  6171. text-overflow: ellipsis;
  6172. word-break: break-word;
  6173. cursor: pointer;
  6174. "
  6175. >
  6176. {{ index + 1 + "、" + item.teststitle }}
  6177. </div>
  6178. </el-tooltip>
  6179. </div>
  6180. </div>
  6181. </div>
  6182. <div
  6183. class="xuan_right_box"
  6184. style="background: unset; padding: 0 10px; width: 91.5%"
  6185. v-if="
  6186. tType &&
  6187. ((tType == 2 && sIsOpen == true) ||
  6188. tType == 1 ||
  6189. tType == 4) &&
  6190. tool.tool.indexOf(45) != -1
  6191. "
  6192. >
  6193. <AskStatic2
  6194. v-if="
  6195. worksStudent.length &&
  6196. worksStudent[toolIndex].length > 0
  6197. "
  6198. :askJSON="tool"
  6199. :checkJson="checkJson[toolIndex]"
  6200. ></AskStatic2>
  6201. </div>
  6202. <div
  6203. v-if="
  6204. tType &&
  6205. ((tType == 2 && sIsOpen == true) ||
  6206. tType == 1 ||
  6207. tType == 4) &&
  6208. tool.tool.indexOf(45) != -1
  6209. "
  6210. class="worksBox"
  6211. >
  6212. <div
  6213. class="zuoyeYulan"
  6214. v-if="
  6215. worksStudent.length &&
  6216. worksStudent[toolIndex].length > 0
  6217. "
  6218. >
  6219. <div class="worksTop">
  6220. <div>作业预览</div>
  6221. <div
  6222. class="corOpen"
  6223. @click="contract(toolIndex)"
  6224. v-if="
  6225. isCloseList[toolIndex].isCloseBoolean &&
  6226. isCloseList[toolIndex].isClose == 0
  6227. "
  6228. >
  6229. 折叠
  6230. </div>
  6231. <div
  6232. class="corOpen"
  6233. @click="contract(toolIndex)"
  6234. v-if="isCloseList[toolIndex].isClose == 1"
  6235. >
  6236. 展开
  6237. </div>
  6238. </div>
  6239. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6240. </div>
  6241. <div>
  6242. <div
  6243. :id="'tool-' + toolIndex"
  6244. :style="{
  6245. height:
  6246. isCloseList[toolIndex].isClose == 1
  6247. ? retrnToolHeight('tool-' + toolIndex)
  6248. : 'auto',
  6249. overflow:
  6250. isCloseList[toolIndex].isClose == 1
  6251. ? 'hidden'
  6252. : 'unset'
  6253. }"
  6254. class="worksDetailBox"
  6255. v-if="
  6256. worksStudent.length &&
  6257. worksStudent[toolIndex].length > 0
  6258. "
  6259. >
  6260. <div
  6261. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6262. :key="wIndex"
  6263. class="isWorksName2"
  6264. @click="
  6265. openTools(
  6266. 45,
  6267. toolIndex,
  6268. taskCount,
  6269. w.works,
  6270. w.sName
  6271. )
  6272. "
  6273. >
  6274. {{ w.sName }}
  6275. <img
  6276. class="deleteImg deleteImg2"
  6277. src="../../assets/deleteworks.png"
  6278. v-if="
  6279. w.userid == userid || tType == 1 || tType == 4
  6280. "
  6281. @click.stop="deleteWorks(w.wid)"
  6282. alt
  6283. />
  6284. </div>
  6285. </div>
  6286. </div>
  6287. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6288. 未提交
  6289. </div>
  6290. <div
  6291. class="noWorksS"
  6292. v-if="noWorksS && noWorksS[toolIndex].length"
  6293. >
  6294. <div
  6295. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6296. :key="sIndex"
  6297. class="noWorksName"
  6298. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6299. >
  6300. <el-tooltip
  6301. effect="dark"
  6302. :content="s.student"
  6303. placement="top"
  6304. >
  6305. <span>{{ s.student }}</span>
  6306. </el-tooltip>
  6307. </div>
  6308. </div>
  6309. </div>
  6310. <div
  6311. v-if="
  6312. tType &&
  6313. ((tType == 2 && sIsOpen == true) ||
  6314. tType == 1 ||
  6315. tType == 4) &&
  6316. tool.tool.indexOf(69) != -1
  6317. "
  6318. class="worksBox"
  6319. >
  6320. <div
  6321. class="zuoyeYulan"
  6322. v-if="
  6323. worksStudent.length &&
  6324. worksStudent[toolIndex].length > 0
  6325. "
  6326. >
  6327. <div class="worksTop">
  6328. <div>作业预览</div>
  6329. <div
  6330. class="corOpen"
  6331. @click="contract(toolIndex)"
  6332. v-if="
  6333. isCloseList[toolIndex].isCloseBoolean &&
  6334. isCloseList[toolIndex].isClose == 0
  6335. "
  6336. >
  6337. 折叠
  6338. </div>
  6339. <div
  6340. class="corOpen"
  6341. @click="contract(toolIndex)"
  6342. v-if="isCloseList[toolIndex].isClose == 1"
  6343. >
  6344. 展开
  6345. </div>
  6346. </div>
  6347. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6348. </div>
  6349. <div>
  6350. <div
  6351. :id="'tool-' + toolIndex"
  6352. :style="{
  6353. height:
  6354. isCloseList[toolIndex].isClose == 1
  6355. ? retrnToolHeight('tool-' + toolIndex)
  6356. : 'auto',
  6357. overflow:
  6358. isCloseList[toolIndex].isClose == 1
  6359. ? 'hidden'
  6360. : 'unset'
  6361. }"
  6362. class="worksDetailBox"
  6363. v-if="
  6364. worksStudent.length &&
  6365. worksStudent[toolIndex].length > 0
  6366. "
  6367. >
  6368. <div
  6369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6370. :key="wIndex"
  6371. class="isWorksName2"
  6372. style="width: 160px;height: 65px;line-height: 65px;"
  6373. @click="
  6374. openTools(
  6375. 69,
  6376. toolIndex,
  6377. taskCount,
  6378. w.works,
  6379. w.sName,
  6380. w.wid
  6381. )
  6382. "
  6383. >
  6384. {{ w.sName }}
  6385. <img
  6386. class="deleteImg1"
  6387. src="../../assets/evaEnglish.png"
  6388. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6389. alt
  6390. v-if="
  6391. (courseDetail &&
  6392. (courseDetail.userid == userid ||
  6393. (courseDetail.course_teacher &&
  6394. courseDetail.course_teacher.indexOf(
  6395. userid
  6396. ) != -1))) ||
  6397. w.aiCode || w.teacherCode
  6398. "
  6399. />
  6400. <img
  6401. class="deleteImg deleteImg2"
  6402. src="../../assets/deleteworks.png"
  6403. v-if="
  6404. w.userid == userid || tType == 1 || tType == 4
  6405. "
  6406. @click.stop="deleteWorks(w.wid)"
  6407. alt
  6408. />
  6409. </div>
  6410. </div>
  6411. </div>
  6412. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6413. 未提交
  6414. </div>
  6415. <div
  6416. class="noWorksS"
  6417. v-if="noWorksS && noWorksS[toolIndex].length"
  6418. >
  6419. <div
  6420. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6421. :key="sIndex"
  6422. class="noWorksName"
  6423. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6424. >
  6425. <el-tooltip
  6426. effect="dark"
  6427. :content="s.student"
  6428. placement="top"
  6429. >
  6430. <span>{{ s.student }}</span>
  6431. </el-tooltip>
  6432. </div>
  6433. </div>
  6434. </div>
  6435. <div
  6436. v-if="
  6437. tType &&
  6438. ((tType == 2 && sIsOpen == true) ||
  6439. tType == 1 ||
  6440. tType == 4) &&
  6441. tool.tool.indexOf(15) != -1
  6442. "
  6443. class="worksBox"
  6444. >
  6445. <div
  6446. class="zuoyeYulan"
  6447. v-if="
  6448. (worksStudent.length &&
  6449. worksStudent[toolIndex].length > 0) ||
  6450. (courseGroup.group && courseGroup.group.length)
  6451. "
  6452. >
  6453. <div class="worksTop">
  6454. <div>作业预览</div>
  6455. <div
  6456. class="corOpen"
  6457. @click="contract(toolIndex)"
  6458. v-if="
  6459. isCloseList[toolIndex].isCloseBoolean &&
  6460. isCloseList[toolIndex].isClose == 0
  6461. "
  6462. >
  6463. 折叠
  6464. </div>
  6465. <div
  6466. class="corOpen"
  6467. @click="contract(toolIndex)"
  6468. v-if="isCloseList[toolIndex].isClose == 1"
  6469. >
  6470. 展开
  6471. </div>
  6472. </div>
  6473. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6474. </div>
  6475. <div
  6476. class="group_workBox"
  6477. v-for="(g, gindex) in courseGroup.group"
  6478. :key="gindex"
  6479. >
  6480. <div class="group_box">
  6481. <div class="group_title">
  6482. <el-tooltip
  6483. class="item"
  6484. effect="light"
  6485. :content="g.name"
  6486. placement="top"
  6487. >
  6488. <div class="group_name">{{ g.name }}</div>
  6489. </el-tooltip>
  6490. </div>
  6491. <div
  6492. class="group_work"
  6493. v-if="
  6494. g.works &&
  6495. g.works.length &&
  6496. g.works[toolIndex].length
  6497. "
  6498. >
  6499. <div
  6500. class="works"
  6501. v-for="(w, wIndex) in g.works[toolIndex]"
  6502. :key="wIndex"
  6503. >
  6504. <div
  6505. class="workImg"
  6506. style="
  6507. border-radius: 15px;
  6508. box-shadow: 0px 0px 5px 5px #eee;
  6509. "
  6510. >
  6511. <div
  6512. class="answerBg"
  6513. style="border-radius: 15px 15px 0 0"
  6514. @click="
  6515. commentOther(w, toolIndex, wIndex, null, g.id)
  6516. "
  6517. >
  6518. <div class="answerContent">
  6519. {{ JSON.parse(w.works)[0].answer }}
  6520. </div>
  6521. <div
  6522. class="answerScore"
  6523. v-if="w.score"
  6524. @click.stop="openScore(w)"
  6525. :class="{
  6526. rightW:
  6527. w.userid == userid ||
  6528. tType == 1 ||
  6529. tType == 4
  6530. }"
  6531. >
  6532. {{ JSON.parse(w.score).wScore }}分
  6533. </div>
  6534. <div
  6535. class="answerScore"
  6536. @click.stop="openScore(w)"
  6537. v-else-if="
  6538. courseDetail.userid == userid &&
  6539. courseDetail.state != 5 &&
  6540. chapInfoList[courseType].chapterInfo[0]
  6541. .taskJson[taskCount].eList &&
  6542. chapInfoList[courseType].chapterInfo[0]
  6543. .taskJson[taskCount].eList.length
  6544. "
  6545. :class="{
  6546. rightW:
  6547. w.userid == userid ||
  6548. tType == 1 ||
  6549. tType == 4
  6550. }"
  6551. >
  6552. 评分
  6553. </div>
  6554. <!-- <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"> -->
  6555. <div
  6556. v-else-if="
  6557. (courseDetail.userid == userid ||
  6558. (courseDetail.course_teacher &&
  6559. courseDetail.course_teacher.indexOf(
  6560. userid
  6561. ) != -1) ||
  6562. (w.userid == userid && sIsOpen)) &&
  6563. courseDetail.state == 5 &&
  6564. ((chapInfoList[courseType].chapterInfo[0]
  6565. .taskJson[taskCount].eList &&
  6566. chapInfoList[courseType].chapterInfo[0]
  6567. .taskJson[taskCount].eList.length) ||
  6568. (tool.eList && tool.eList.length))
  6569. "
  6570. >
  6571. <el-popover
  6572. placement="top"
  6573. width="318"
  6574. :disabled="
  6575. AIloading[toolIndex][wIndex].loading
  6576. "
  6577. trigger="hover"
  6578. >
  6579. <markScore
  6580. :loading="
  6581. AIloading[toolIndex][wIndex].loading
  6582. "
  6583. :markScoreVisible="markScoreVisible"
  6584. :ref="`markSco${toolIndex}${wIndex}`"
  6585. @updateLoading="updateLoading"
  6586. @updateDocSco="updateDocSco"
  6587. @refreshOther="refreshOther"
  6588. @markScoreDig="markScoreDig"
  6589. :tool="tool"
  6590. :wIndex="wIndex"
  6591. :scoCon="w"
  6592. :toolIndex="toolIndex"
  6593. :key="refreshKey"
  6594. :stage="courseType"
  6595. :task="taskCount"
  6596. :scoTit="
  6597. chapInfoList[courseType].chapterInfo[0]
  6598. .taskJson[taskCount].eList
  6599. "
  6600. >
  6601. </markScore>
  6602. <div
  6603. class="answerScore"
  6604. @click.stop="
  6605. markScoreDig2(
  6606. w.sName,
  6607. worksStudent,
  6608. w.userid,
  6609. toolIndex,
  6610. chapInfoList[courseType]
  6611. .chapterInfo[0].taskJson[taskCount]
  6612. .eList,
  6613. AIloading[toolIndex][wIndex].loading,
  6614. tool
  6615. )
  6616. "
  6617. slot="reference"
  6618. :class="{
  6619. rightW:
  6620. w.userid == userid ||
  6621. tType == 1 ||
  6622. tType == 4 ||
  6623. w.ateacher == userid
  6624. }"
  6625. >
  6626. <span
  6627. v-if="AIloading[toolIndex][wIndex].sco"
  6628. >
  6629. {{
  6630. AIloading[toolIndex][wIndex].loading
  6631. ? "评分中"
  6632. : AIloading[toolIndex][wIndex].sco +
  6633. "分"
  6634. }}
  6635. </span>
  6636. <span v-else>
  6637. {{
  6638. AIloading[toolIndex][wIndex].loading
  6639. ? "评分中"
  6640. : "评分"
  6641. }}
  6642. </span>
  6643. </div>
  6644. </el-popover>
  6645. </div>
  6646. <img
  6647. class="deleteImg"
  6648. src="../../assets/deleteworks.png"
  6649. v-if="
  6650. w.userid == userid ||
  6651. tType == 1 ||
  6652. tType == 4
  6653. "
  6654. @click.stop="deleteWorks(w.wid)"
  6655. alt
  6656. />
  6657. </div>
  6658. <div class="comment">
  6659. <div class="worksName">
  6660. <div>{{ w.sName }}</div>
  6661. </div>
  6662. <div class="commentList">
  6663. <div
  6664. class="commentImg"
  6665. @click="
  6666. isLikes(
  6667. w.wid,
  6668. userid,
  6669. 1,
  6670. null,
  6671. w.isLikes,
  6672. w.sName
  6673. )
  6674. "
  6675. >
  6676. <img
  6677. :src="w.isLikes == true ? likes : noLikes"
  6678. alt=""
  6679. />
  6680. </div>
  6681. <div>{{ w.likesCount }}</div>
  6682. </div>
  6683. <div
  6684. class="commentList"
  6685. style="margin-right: 15px"
  6686. >
  6687. <div
  6688. class="commentImg"
  6689. @click="
  6690. commentOther(
  6691. w,
  6692. toolIndex,
  6693. wIndex,
  6694. null,
  6695. g.id
  6696. )
  6697. "
  6698. >
  6699. <img
  6700. src="../../assets/icon/comment/comment.png"
  6701. alt=""
  6702. />
  6703. </div>
  6704. <div>{{ w.commentCount }}</div>
  6705. </div>
  6706. </div>
  6707. </div>
  6708. </div>
  6709. </div>
  6710. <div class="group_work" v-else>暂无提交作业</div>
  6711. </div>
  6712. </div>
  6713. <div
  6714. :id="'tool-' + toolIndex"
  6715. :style="{
  6716. height:
  6717. isCloseList[toolIndex].isClose == 1
  6718. ? retrnToolHeight('tool-' + toolIndex)
  6719. : 'auto',
  6720. overflow:
  6721. isCloseList[toolIndex].isClose == 1
  6722. ? 'hidden'
  6723. : 'unset'
  6724. }"
  6725. class="worksDetailBox"
  6726. v-if="
  6727. worksStudent.length &&
  6728. worksStudent[toolIndex].length > 0
  6729. "
  6730. >
  6731. <div
  6732. class="works"
  6733. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6734. :key="wIndex"
  6735. >
  6736. <div
  6737. class="workImg"
  6738. style="
  6739. border-radius: 15px;
  6740. box-shadow: 0px 0px 5px 5px #eee;
  6741. "
  6742. >
  6743. <!-- <img
  6744. src="../../assets/icon/works/noImg.png"
  6745. @click="openTools(15, toolIndex, taskCount, w.works)"
  6746. alt=""
  6747. />-->
  6748. <div
  6749. class="answerBg"
  6750. style="border-radius: 15px 15px 0 0"
  6751. @click="commentOther(w, toolIndex, wIndex)"
  6752. >
  6753. <!-- <div>{{ w.sName }}</div> -->
  6754. <div class="answerContent">
  6755. {{ JSON.parse(w.works)[0].answer }}
  6756. </div>
  6757. <div
  6758. class="answerScore"
  6759. v-if="w.score"
  6760. @click.stop="openScore(w)"
  6761. :class="{
  6762. rightW:
  6763. w.userid == userid || tType == 1 || tType == 4
  6764. }"
  6765. >
  6766. {{ JSON.parse(w.score).wScore }}分
  6767. </div>
  6768. <div
  6769. class="answerScore"
  6770. @click.stop="openScore(w)"
  6771. v-else-if="
  6772. courseDetail.userid == userid &&
  6773. courseDetail.state != 5 &&
  6774. chapInfoList[courseType].chapterInfo[0]
  6775. .taskJson[taskCount].eList &&
  6776. chapInfoList[courseType].chapterInfo[0]
  6777. .taskJson[taskCount].eList.length
  6778. "
  6779. :class="{
  6780. rightW:
  6781. w.userid == userid || tType == 1 || tType == 4
  6782. }"
  6783. >
  6784. 评分
  6785. </div>
  6786. <!-- <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"> -->
  6787. <div
  6788. v-else-if="
  6789. (courseDetail.userid == userid ||
  6790. (courseDetail.course_teacher &&
  6791. courseDetail.course_teacher.indexOf(
  6792. userid
  6793. ) != -1) ||
  6794. (w.userid == userid && sIsOpen)) &&
  6795. courseDetail.state == 5 &&
  6796. ((chapInfoList[courseType].chapterInfo[0]
  6797. .taskJson[taskCount].eList &&
  6798. chapInfoList[courseType].chapterInfo[0]
  6799. .taskJson[taskCount].eList.length) ||
  6800. (tool.eList && tool.eList.length))
  6801. "
  6802. >
  6803. <el-popover
  6804. placement="top"
  6805. width="318"
  6806. :disabled="AIloading[toolIndex][wIndex].loading"
  6807. trigger="hover"
  6808. >
  6809. <markScore
  6810. :loading="
  6811. AIloading[toolIndex][wIndex].loading
  6812. "
  6813. :markScoreVisible="markScoreVisible"
  6814. :ref="`markSco${toolIndex}${wIndex}`"
  6815. @updateLoading="updateLoading"
  6816. @updateDocSco="updateDocSco"
  6817. @refreshOther="refreshOther"
  6818. @markScoreDig="markScoreDig"
  6819. :tool="tool"
  6820. :wIndex="wIndex"
  6821. :scoCon="w"
  6822. :toolIndex="toolIndex"
  6823. :key="refreshKey"
  6824. :stage="courseType"
  6825. :task="taskCount"
  6826. :scoTit="
  6827. chapInfoList[courseType].chapterInfo[0]
  6828. .taskJson[taskCount].eList
  6829. "
  6830. >
  6831. </markScore>
  6832. <div
  6833. class="answerScore"
  6834. @click.stop="
  6835. markScoreDig2(
  6836. w.sName,
  6837. worksStudent,
  6838. w.userid,
  6839. toolIndex,
  6840. chapInfoList[courseType].chapterInfo[0]
  6841. .taskJson[taskCount].eList,
  6842. AIloading[toolIndex][wIndex].loading,
  6843. tool
  6844. )
  6845. "
  6846. slot="reference"
  6847. :class="{
  6848. rightW:
  6849. w.userid == userid ||
  6850. tType == 1 ||
  6851. tType == 4 ||
  6852. w.ateacher == userid
  6853. }"
  6854. >
  6855. <span v-if="AIloading[toolIndex][wIndex].sco">
  6856. {{
  6857. AIloading[toolIndex][wIndex].loading
  6858. ? "评分中"
  6859. : AIloading[toolIndex][wIndex].sco +
  6860. "分"
  6861. }}
  6862. </span>
  6863. <span v-else>
  6864. {{
  6865. AIloading[toolIndex][wIndex].loading
  6866. ? "评分中"
  6867. : "评分"
  6868. }}
  6869. </span>
  6870. </div>
  6871. </el-popover>
  6872. </div>
  6873. <img
  6874. class="deleteImg"
  6875. src="../../assets/deleteworks.png"
  6876. v-if="
  6877. w.userid == userid || tType == 1 || tType == 4
  6878. "
  6879. @click.stop="deleteWorks(w.wid)"
  6880. alt
  6881. />
  6882. </div>
  6883. <div class="comment">
  6884. <div class="worksName">
  6885. <div>{{ w.sName }}</div>
  6886. </div>
  6887. <div class="commentList">
  6888. <div
  6889. class="commentImg"
  6890. @click="
  6891. isLikes(
  6892. w.wid,
  6893. userid,
  6894. 1,
  6895. null,
  6896. w.isLikes,
  6897. w.sName
  6898. )
  6899. "
  6900. >
  6901. <img
  6902. :src="w.isLikes == true ? likes : noLikes"
  6903. alt=""
  6904. />
  6905. </div>
  6906. <div>{{ w.likesCount }}</div>
  6907. </div>
  6908. <div class="commentList" style="margin-right: 15px">
  6909. <div
  6910. class="commentImg"
  6911. @click="commentOther(w, toolIndex, wIndex)"
  6912. >
  6913. <img
  6914. src="../../assets/icon/comment/comment.png"
  6915. alt=""
  6916. />
  6917. </div>
  6918. <div>{{ w.commentCount }}</div>
  6919. </div>
  6920. </div>
  6921. </div>
  6922. </div>
  6923. </div>
  6924. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6925. 未提交
  6926. </div>
  6927. <div
  6928. class="noWorksS"
  6929. v-if="noWorksS && noWorksS[toolIndex].length"
  6930. >
  6931. <div
  6932. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6933. :key="sIndex"
  6934. class="noWorksName"
  6935. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6936. >
  6937. <el-tooltip
  6938. effect="dark"
  6939. :content="s.student"
  6940. placement="top"
  6941. >
  6942. <span>{{ s.student }}</span>
  6943. </el-tooltip>
  6944. </div>
  6945. </div>
  6946. </div>
  6947. <div
  6948. v-if="
  6949. tType &&
  6950. ((tType == 2 && sIsOpen == true) ||
  6951. tType == 1 ||
  6952. tType == 4) &&
  6953. tool.tool.indexOf(1) != -1
  6954. "
  6955. class="worksBox"
  6956. >
  6957. <div
  6958. class="zuoyeYulan"
  6959. style="display: flex;justify-content: space-between;align-items: center;"
  6960. v-if="
  6961. (worksStudent.length &&
  6962. worksStudent[toolIndex].length > 0) ||
  6963. (courseGroup.group && courseGroup.group.length)
  6964. "
  6965. >
  6966. <div class="worksTop">
  6967. <div>作业预览</div>
  6968. <div
  6969. class="corOpen"
  6970. @click="contract(toolIndex)"
  6971. v-if="
  6972. isCloseList[toolIndex].isCloseBoolean &&
  6973. isCloseList[toolIndex].isClose == 0
  6974. "
  6975. >
  6976. 折叠
  6977. </div>
  6978. <div
  6979. class="corOpen"
  6980. @click="contract(toolIndex)"
  6981. v-if="isCloseList[toolIndex].isClose == 1"
  6982. >
  6983. 展开
  6984. </div>
  6985. </div>
  6986. <div
  6987. style="display: flex;"
  6988. v-if="
  6989. (courseDetail.userid == userid ||
  6990. (courseDetail.course_teacher &&
  6991. courseDetail.course_teacher.indexOf(userid) !=
  6992. -1)) &&
  6993. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6994. taskCount
  6995. ].eList &&
  6996. chapInfoList[courseType].chapterInfo[0].taskJson[
  6997. taskCount
  6998. ].eList.length) ||
  6999. (tool.eList && tool.eList.length)) &&
  7000. courseDetail.state == 5
  7001. "
  7002. >
  7003. <div
  7004. style="margin-right:10px"
  7005. class="ScoreBtn"
  7006. @click="
  7007. resetLoopEva(
  7008. worksStudent[toolIndex],
  7009. chapInfoList[courseType].chapterInfo[0].taskJson[
  7010. taskCount
  7011. ].eList,
  7012. courseType,
  7013. taskCount,
  7014. toolIndex,
  7015. tool.toolDetail,
  7016. worksStudent
  7017. )
  7018. "
  7019. >
  7020. 一键重置
  7021. </div>
  7022. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7023. <img
  7024. src="../../assets/icon/newIcons/rootImg.png"
  7025. alt=""
  7026. />
  7027. AI评分
  7028. </div>
  7029. <div
  7030. class="ScoreBtn"
  7031. v-else-if="!loopLoading[toolIndex].loading"
  7032. @click="
  7033. loopEva(
  7034. worksStudent[toolIndex],
  7035. chapInfoList[courseType].chapterInfo[0].taskJson[
  7036. taskCount
  7037. ].eList,
  7038. courseType,
  7039. taskCount,
  7040. toolIndex,
  7041. tool.toolDetail,
  7042. chapInfoList[courseType].chapterInfo[0].taskJson[
  7043. taskCount
  7044. ].taskDetail,
  7045. tool
  7046. )
  7047. "
  7048. >
  7049. <img
  7050. src="../../assets/icon/newIcons/rootImg.png"
  7051. alt=""
  7052. />
  7053. AI评分
  7054. </div>
  7055. <div class="ScoreBtn" v-else>
  7056. <img
  7057. src="../../assets/icon/newIcons/rootImg.png"
  7058. alt=""
  7059. />
  7060. 正在评分
  7061. </div>
  7062. </div>
  7063. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7064. </div>
  7065. <div
  7066. class="group_workBox"
  7067. v-for="(g, gindex) in courseGroup.group"
  7068. :key="gindex"
  7069. >
  7070. <div class="group_box">
  7071. <div class="group_title">
  7072. <el-tooltip
  7073. class="item"
  7074. effect="light"
  7075. :content="g.name"
  7076. placement="top"
  7077. >
  7078. <div class="group_name">{{ g.name }}</div>
  7079. </el-tooltip>
  7080. </div>
  7081. <div
  7082. class="group_work"
  7083. v-if="
  7084. g.works &&
  7085. g.works.length &&
  7086. g.works[toolIndex].length
  7087. "
  7088. >
  7089. <div
  7090. class="works"
  7091. style="
  7092. width: 200px;
  7093. height: 140px;
  7094. margin: 10px 10px 10px 0;
  7095. border-radius: 15px;
  7096. box-shadow: 0 0 6px 1px #dfdada;
  7097. "
  7098. v-for="(w, wIndex) in g.works[toolIndex]"
  7099. :key="wIndex"
  7100. :class="w.type == 1 ? 'isTypeOne' : ''"
  7101. >
  7102. <div class="workImg">
  7103. <img
  7104. :src="w.works"
  7105. @click="previewImg(w.works, w)"
  7106. alt
  7107. />
  7108. <div
  7109. class="answerScore"
  7110. v-if="w.score"
  7111. @click.stop="openScore(w)"
  7112. :class="{
  7113. rightW:
  7114. w.userid == userid ||
  7115. tType == 1 ||
  7116. tType == 4
  7117. }"
  7118. >
  7119. {{ JSON.parse(w.score).wScore }}分
  7120. </div>
  7121. <div
  7122. class="answerScore"
  7123. @click.stop="openScore(w)"
  7124. v-else-if="courseDetail.userid == userid"
  7125. :class="{
  7126. rightW:
  7127. w.userid == userid ||
  7128. tType == 1 ||
  7129. tType == 4
  7130. }"
  7131. >
  7132. 评分
  7133. </div>
  7134. <img
  7135. class="deleteImg"
  7136. src="../../assets/deleteworks.png"
  7137. v-if="
  7138. w.userid == userid || tType == 1 || tType == 4
  7139. "
  7140. @click.stop="deleteWorks(w.wid)"
  7141. alt
  7142. />
  7143. </div>
  7144. <div class="comment" style="min-width: 200px">
  7145. <div class="worksName">
  7146. <div>{{ w.sName }}</div>
  7147. </div>
  7148. <div class="commentList">
  7149. <div class="commentList">
  7150. <div
  7151. class="commentImg"
  7152. @click="
  7153. isLikes(
  7154. w.wid,
  7155. userid,
  7156. 1,
  7157. null,
  7158. w.isLikes,
  7159. w.sName
  7160. )
  7161. "
  7162. >
  7163. <img
  7164. :src="w.isLikes == true ? likes : noLikes"
  7165. alt=""
  7166. />
  7167. </div>
  7168. <div>{{ w.likesCount }}</div>
  7169. </div>
  7170. <div
  7171. class="commentList"
  7172. style="margin-right: 15px"
  7173. >
  7174. <div
  7175. class="commentImg"
  7176. @click="
  7177. commentOther(
  7178. w,
  7179. toolIndex,
  7180. wIndex,
  7181. null,
  7182. g.id
  7183. )
  7184. "
  7185. >
  7186. <img
  7187. src="../../assets/icon/comment/comment.png"
  7188. alt=""
  7189. />
  7190. </div>
  7191. <div>{{ w.commentCount }}</div>
  7192. </div>
  7193. </div>
  7194. </div>
  7195. </div>
  7196. </div>
  7197. <div class="group_work" v-else>暂无提交作业</div>
  7198. </div>
  7199. </div>
  7200. <div
  7201. :id="'tool-' + toolIndex"
  7202. :style="{
  7203. height:
  7204. isCloseList[toolIndex].isClose == 1
  7205. ? retrnToolHeight('tool-' + toolIndex)
  7206. : 'auto',
  7207. overflow:
  7208. isCloseList[toolIndex].isClose == 1
  7209. ? 'hidden'
  7210. : 'unset'
  7211. }"
  7212. class="worksDetailBox"
  7213. v-if="
  7214. worksStudent.length &&
  7215. worksStudent[toolIndex].length > 0
  7216. "
  7217. >
  7218. <div
  7219. class="works"
  7220. style="
  7221. width: 200px;
  7222. height: 140px;
  7223. margin: 10px 10px 10px 0;
  7224. border-radius: 15px;
  7225. box-shadow: 0 0 6px 1px #dfdada;
  7226. "
  7227. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7228. :key="wIndex"
  7229. >
  7230. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7231. <div class="workImg">
  7232. <img
  7233. :src="w.works"
  7234. @click="previewImg(w.works, w)"
  7235. alt
  7236. />
  7237. <div
  7238. class="answerScore"
  7239. v-if="w.score"
  7240. @click.stop="openScore(w)"
  7241. :class="{
  7242. rightW:
  7243. w.userid == userid || tType == 1 || tType == 4
  7244. }"
  7245. >
  7246. {{ JSON.parse(w.score).wScore }}分
  7247. </div>
  7248. <div
  7249. class="answerScore"
  7250. @click.stop="openScore(w)"
  7251. v-else-if="
  7252. courseDetail.userid == userid &&
  7253. courseDetail.state != 5 &&
  7254. chapInfoList[courseType].chapterInfo[0]
  7255. .taskJson[taskCount].eList &&
  7256. chapInfoList[courseType].chapterInfo[0]
  7257. .taskJson[taskCount].eList.length
  7258. "
  7259. :class="{
  7260. rightW:
  7261. w.userid == userid || tType == 1 || tType == 4
  7262. }"
  7263. >
  7264. 评分
  7265. </div>
  7266. <div
  7267. v-else-if="
  7268. (courseDetail.userid == userid ||
  7269. (courseDetail.course_teacher &&
  7270. courseDetail.course_teacher.indexOf(userid) !=
  7271. -1) ||
  7272. (courseDetail.course_teacher &&
  7273. courseDetail.course_teacher.indexOf(userid) !=
  7274. -1) ||
  7275. (courseDetail.course_teacher &&
  7276. courseDetail.course_teacher.indexOf(userid) !=
  7277. -1) ||
  7278. (w.userid == userid && sIsOpen)) &&
  7279. courseDetail.state == 5 &&
  7280. ((chapInfoList[courseType].chapterInfo[0]
  7281. .taskJson[taskCount].eList &&
  7282. chapInfoList[courseType].chapterInfo[0]
  7283. .taskJson[taskCount].eList.length) ||
  7284. (tool.eList && tool.eList.length))
  7285. "
  7286. >
  7287. <el-popover
  7288. placement="top"
  7289. width="318"
  7290. :disabled="AIloading[toolIndex][wIndex].loading"
  7291. trigger="hover"
  7292. >
  7293. <markScore
  7294. :loading="AIloading[toolIndex][wIndex].loading"
  7295. :markScoreVisible="markScoreVisible"
  7296. :ref="`markSco${toolIndex}${wIndex}`"
  7297. @updateLoading="updateLoading"
  7298. @updateDocSco="updateDocSco"
  7299. @refreshOther="refreshOther"
  7300. @markScoreDig="markScoreDig"
  7301. :tool="tool"
  7302. :wIndex="wIndex"
  7303. :scoCon="w"
  7304. :toolIndex="toolIndex"
  7305. :key="refreshKey"
  7306. :stage="courseType"
  7307. :task="taskCount"
  7308. :scoTit="
  7309. chapInfoList[courseType].chapterInfo[0]
  7310. .taskJson[taskCount].eList
  7311. "
  7312. >
  7313. </markScore>
  7314. <div
  7315. class="answerScore"
  7316. @click="
  7317. markScoreDig2(
  7318. w.sName,
  7319. worksStudent,
  7320. w.userid,
  7321. toolIndex,
  7322. chapInfoList[courseType].chapterInfo[0]
  7323. .taskJson[taskCount].eList,
  7324. AIloading[toolIndex][wIndex].loading,
  7325. tool
  7326. )
  7327. "
  7328. slot="reference"
  7329. :class="{
  7330. rightW:
  7331. w.userid == userid ||
  7332. tType == 1 ||
  7333. tType == 4 ||
  7334. w.ateacher == userid
  7335. }"
  7336. >
  7337. <span v-if="AIloading[toolIndex][wIndex].sco">
  7338. {{
  7339. AIloading[toolIndex][wIndex].loading
  7340. ? "评分中"
  7341. : AIloading[toolIndex][wIndex].sco + "分"
  7342. }}
  7343. </span>
  7344. <span v-else>
  7345. {{
  7346. AIloading[toolIndex][wIndex].loading
  7347. ? "评分中"
  7348. : "评分"
  7349. }}
  7350. </span>
  7351. </div>
  7352. </el-popover>
  7353. </div>
  7354. <img
  7355. class="deleteImg"
  7356. src="../../assets/deleteworks.png"
  7357. v-if="
  7358. w.userid == userid || tType == 1 || tType == 4
  7359. "
  7360. @click.stop="deleteWorks(w.wid)"
  7361. alt
  7362. />
  7363. </div>
  7364. <div class="comment" style="min-width: 200px">
  7365. <div class="worksName">
  7366. <div>{{ w.sName }}</div>
  7367. </div>
  7368. <div class="commentList">
  7369. <div class="commentList">
  7370. <div
  7371. class="commentImg"
  7372. @click="
  7373. isLikes(
  7374. w.wid,
  7375. userid,
  7376. 1,
  7377. null,
  7378. w.isLikes,
  7379. w.sName
  7380. )
  7381. "
  7382. >
  7383. <img
  7384. :src="w.isLikes == true ? likes : noLikes"
  7385. alt=""
  7386. />
  7387. </div>
  7388. <div>{{ w.likesCount }}</div>
  7389. </div>
  7390. <div class="commentList" style="margin-right: 15px">
  7391. <div
  7392. class="commentImg"
  7393. @click="commentOther(w, toolIndex, wIndex)"
  7394. >
  7395. <img
  7396. src="../../assets/icon/comment/comment.png"
  7397. alt=""
  7398. />
  7399. </div>
  7400. <div>{{ w.commentCount }}</div>
  7401. </div>
  7402. </div>
  7403. </div>
  7404. </div>
  7405. </div>
  7406. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7407. 未提交
  7408. </div>
  7409. <div
  7410. class="noWorksS"
  7411. v-if="noWorksS && noWorksS[toolIndex].length"
  7412. >
  7413. <div
  7414. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7415. :key="sIndex"
  7416. class="noWorksName"
  7417. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7418. >
  7419. <el-tooltip
  7420. effect="dark"
  7421. :content="s.student"
  7422. placement="top"
  7423. >
  7424. <span>{{ s.student }}</span>
  7425. </el-tooltip>
  7426. </div>
  7427. </div>
  7428. </div>
  7429. <div
  7430. v-if="
  7431. tType &&
  7432. ((tType == 2 && sIsOpen == true) ||
  7433. tType == 1 ||
  7434. tType == 4) &&
  7435. tool.tool.indexOf(3) != -1
  7436. "
  7437. class="worksBox"
  7438. >
  7439. <div
  7440. class="zuoyeYulan"
  7441. style="display: flex;justify-content: space-between;align-items: center;"
  7442. v-if="
  7443. (worksStudent.length &&
  7444. worksStudent[toolIndex].length > 0) ||
  7445. (courseGroup.group && courseGroup.group.length)
  7446. "
  7447. >
  7448. <div class="worksTop">
  7449. <div>作业预览</div>
  7450. <div
  7451. class="corOpen"
  7452. @click="contract(toolIndex)"
  7453. v-if="
  7454. isCloseList[toolIndex].isCloseBoolean &&
  7455. isCloseList[toolIndex].isClose == 0
  7456. "
  7457. >
  7458. 折叠
  7459. </div>
  7460. <div
  7461. class="corOpen"
  7462. @click="contract(toolIndex)"
  7463. v-if="isCloseList[toolIndex].isClose == 1"
  7464. >
  7465. 展开
  7466. </div>
  7467. </div>
  7468. <div
  7469. style="display: flex;"
  7470. v-if="
  7471. (courseDetail.userid == userid ||
  7472. (courseDetail.course_teacher &&
  7473. courseDetail.course_teacher.indexOf(userid) !=
  7474. -1)) &&
  7475. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7476. taskCount
  7477. ].eList &&
  7478. chapInfoList[courseType].chapterInfo[0].taskJson[
  7479. taskCount
  7480. ].eList.length) ||
  7481. (tool.eList && tool.eList.length)) &&
  7482. courseDetail.state == 5
  7483. "
  7484. >
  7485. <div
  7486. style="margin-right:10px"
  7487. class="ScoreBtn"
  7488. @click="
  7489. resetLoopEva(
  7490. worksStudent[toolIndex],
  7491. chapInfoList[courseType].chapterInfo[0].taskJson[
  7492. taskCount
  7493. ].eList,
  7494. courseType,
  7495. taskCount,
  7496. toolIndex,
  7497. tool.toolDetail,
  7498. worksStudent
  7499. )
  7500. "
  7501. >
  7502. 一键重置
  7503. </div>
  7504. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7505. <img
  7506. src="../../assets/icon/newIcons/rootImg.png"
  7507. alt=""
  7508. />
  7509. AI评分
  7510. </div>
  7511. <div
  7512. class="ScoreBtn"
  7513. v-else-if="!loopLoading[toolIndex].loading"
  7514. @click="
  7515. loopEva(
  7516. worksStudent[toolIndex],
  7517. chapInfoList[courseType].chapterInfo[0].taskJson[
  7518. taskCount
  7519. ].eList,
  7520. courseType,
  7521. taskCount,
  7522. toolIndex,
  7523. tool.toolDetail,
  7524. chapInfoList[courseType].chapterInfo[0].taskJson[
  7525. taskCount
  7526. ].taskDetail,
  7527. tool
  7528. )
  7529. "
  7530. >
  7531. <img
  7532. src="../../assets/icon/newIcons/rootImg.png"
  7533. alt=""
  7534. />
  7535. AI评分
  7536. </div>
  7537. <div class="ScoreBtn" v-else>
  7538. <img
  7539. src="../../assets/icon/newIcons/rootImg.png"
  7540. alt=""
  7541. />
  7542. 正在评分
  7543. </div>
  7544. </div>
  7545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7546. </div>
  7547. <div
  7548. class="group_workBox"
  7549. v-for="(g, gindex) in courseGroup.group"
  7550. :key="gindex"
  7551. >
  7552. <div class="group_box">
  7553. <div class="group_title">
  7554. <el-tooltip
  7555. class="item"
  7556. effect="light"
  7557. :content="g.name"
  7558. placement="top"
  7559. >
  7560. <div class="group_name">{{ g.name }}</div>
  7561. </el-tooltip>
  7562. </div>
  7563. <div
  7564. class="group_work"
  7565. v-if="
  7566. g.works &&
  7567. g.works.length &&
  7568. g.works[toolIndex].length
  7569. "
  7570. >
  7571. <div
  7572. class="works"
  7573. style="
  7574. width: 200px;
  7575. height: 140px;
  7576. margin: 10px 10px 10px 0;
  7577. border-radius: 15px;
  7578. box-shadow: 0 0 6px 1px #dfdada;
  7579. "
  7580. v-for="(w, wIndex) in g.works[toolIndex]"
  7581. :key="wIndex"
  7582. :class="w.type == 1 ? 'isTypeOne' : ''"
  7583. >
  7584. <div class="workImg">
  7585. <img
  7586. :src="w.works"
  7587. @click="previewImg(w.works, w)"
  7588. alt
  7589. />
  7590. <div
  7591. class="answerScore"
  7592. v-if="w.score"
  7593. @click.stop="openScore(w)"
  7594. :class="{
  7595. rightW:
  7596. w.userid == userid ||
  7597. tType == 1 ||
  7598. tType == 4
  7599. }"
  7600. >
  7601. {{ JSON.parse(w.score).wScore }}分
  7602. </div>
  7603. <div
  7604. class="answerScore"
  7605. @click.stop="openScore(w)"
  7606. v-else-if="courseDetail.userid == userid"
  7607. :class="{
  7608. rightW:
  7609. w.userid == userid ||
  7610. tType == 1 ||
  7611. tType == 4
  7612. }"
  7613. >
  7614. 评分
  7615. </div>
  7616. <img
  7617. class="deleteImg"
  7618. src="../../assets/deleteworks.png"
  7619. v-if="
  7620. w.userid == userid || tType == 1 || tType == 4
  7621. "
  7622. @click.stop="deleteWorks(w.wid)"
  7623. alt
  7624. />
  7625. </div>
  7626. <div class="comment" style="min-width: 200px">
  7627. <div class="worksName">
  7628. <div>{{ w.sName }}</div>
  7629. </div>
  7630. <div class="commentList">
  7631. <div class="commentList">
  7632. <div
  7633. class="commentImg"
  7634. @click="
  7635. isLikes(
  7636. w.wid,
  7637. userid,
  7638. 1,
  7639. null,
  7640. w.isLikes,
  7641. w.sName
  7642. )
  7643. "
  7644. >
  7645. <img
  7646. :src="w.isLikes == true ? likes : noLikes"
  7647. alt=""
  7648. />
  7649. </div>
  7650. <div>{{ w.likesCount }}</div>
  7651. </div>
  7652. <div
  7653. class="commentList"
  7654. style="margin-right: 15px"
  7655. >
  7656. <div
  7657. class="commentImg"
  7658. @click="
  7659. commentOther(
  7660. w,
  7661. toolIndex,
  7662. wIndex,
  7663. null,
  7664. g.id
  7665. )
  7666. "
  7667. >
  7668. <img
  7669. src="../../assets/icon/comment/comment.png"
  7670. alt=""
  7671. />
  7672. </div>
  7673. <div>{{ w.commentCount }}</div>
  7674. </div>
  7675. </div>
  7676. </div>
  7677. </div>
  7678. </div>
  7679. <div class="group_work" v-else>暂无提交作业</div>
  7680. </div>
  7681. </div>
  7682. <div
  7683. :id="'tool-' + toolIndex"
  7684. :style="{
  7685. height:
  7686. isCloseList[toolIndex].isClose == 1
  7687. ? retrnToolHeight('tool-' + toolIndex)
  7688. : 'auto',
  7689. overflow:
  7690. isCloseList[toolIndex].isClose == 1
  7691. ? 'hidden'
  7692. : 'unset'
  7693. }"
  7694. class="worksDetailBox"
  7695. v-if="
  7696. worksStudent.length &&
  7697. worksStudent[toolIndex].length > 0
  7698. "
  7699. >
  7700. <div
  7701. class="works"
  7702. style="
  7703. width: 200px;
  7704. height: 140px;
  7705. margin: 10px 10px 10px 0;
  7706. border-radius: 15px;
  7707. box-shadow: 0 0 6px 1px #dfdada;
  7708. "
  7709. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7710. :key="wIndex"
  7711. >
  7712. <!-- @click="previewImg(w.works)" -->
  7713. <div class="workImg">
  7714. <img
  7715. :src="w.works"
  7716. @click="previewImg(w.works, w)"
  7717. alt
  7718. />
  7719. <div
  7720. class="answerScore"
  7721. v-if="w.score"
  7722. @click.stop="openScore(w)"
  7723. :class="{
  7724. rightW:
  7725. w.userid == userid || tType == 1 || tType == 4
  7726. }"
  7727. >
  7728. {{ JSON.parse(w.score).wScore }}分
  7729. </div>
  7730. <div
  7731. class="answerScore"
  7732. @click.stop="openScore(w)"
  7733. v-else-if="
  7734. courseDetail.userid == userid &&
  7735. courseDetail.state != 5 &&
  7736. chapInfoList[courseType].chapterInfo[0]
  7737. .taskJson[taskCount].eList &&
  7738. chapInfoList[courseType].chapterInfo[0]
  7739. .taskJson[taskCount].eList.length
  7740. "
  7741. :class="{
  7742. rightW:
  7743. w.userid == userid || tType == 1 || tType == 4
  7744. }"
  7745. >
  7746. 评分
  7747. </div>
  7748. <!-- <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"> -->
  7749. <div
  7750. v-else-if="
  7751. (courseDetail.userid == userid ||
  7752. (courseDetail.course_teacher &&
  7753. courseDetail.course_teacher.indexOf(userid) !=
  7754. -1) ||
  7755. (w.userid == userid && sIsOpen)) &&
  7756. courseDetail.state == 5 &&
  7757. ((chapInfoList[courseType].chapterInfo[0]
  7758. .taskJson[taskCount].eList &&
  7759. chapInfoList[courseType].chapterInfo[0]
  7760. .taskJson[taskCount].eList.length) ||
  7761. (tool.eList && tool.eList.length))
  7762. "
  7763. >
  7764. <el-popover
  7765. placement="top"
  7766. width="318"
  7767. :disabled="AIloading[toolIndex][wIndex].loading"
  7768. trigger="hover"
  7769. >
  7770. <markScore
  7771. :loading="AIloading[toolIndex][wIndex].loading"
  7772. :markScoreVisible="markScoreVisible"
  7773. :ref="`markSco${toolIndex}${wIndex}`"
  7774. @updateLoading="updateLoading"
  7775. @updateDocSco="updateDocSco"
  7776. @refreshOther="refreshOther"
  7777. @markScoreDig="markScoreDig"
  7778. :tool="tool"
  7779. :wIndex="wIndex"
  7780. :scoCon="w"
  7781. :toolIndex="toolIndex"
  7782. :key="refreshKey"
  7783. :stage="courseType"
  7784. :task="taskCount"
  7785. :scoTit="
  7786. chapInfoList[courseType].chapterInfo[0]
  7787. .taskJson[taskCount].eList
  7788. "
  7789. >
  7790. </markScore>
  7791. <div
  7792. class="answerScore"
  7793. @click="
  7794. markScoreDig2(
  7795. w.sName,
  7796. worksStudent,
  7797. w.userid,
  7798. toolIndex,
  7799. chapInfoList[courseType].chapterInfo[0]
  7800. .taskJson[taskCount].eList,
  7801. AIloading[toolIndex][wIndex].loading,
  7802. tool
  7803. )
  7804. "
  7805. slot="reference"
  7806. :class="{
  7807. rightW:
  7808. w.userid == userid ||
  7809. tType == 1 ||
  7810. tType == 4 ||
  7811. w.ateacher == userid
  7812. }"
  7813. >
  7814. <span v-if="AIloading[toolIndex][wIndex].sco">
  7815. {{
  7816. AIloading[toolIndex][wIndex].loading
  7817. ? "评分中"
  7818. : AIloading[toolIndex][wIndex].sco + "分"
  7819. }}
  7820. </span>
  7821. <span v-else>
  7822. {{
  7823. AIloading[toolIndex][wIndex].loading
  7824. ? "评分中"
  7825. : "评分"
  7826. }}
  7827. </span>
  7828. </div>
  7829. </el-popover>
  7830. </div>
  7831. <img
  7832. class="deleteImg"
  7833. src="../../assets/deleteworks.png"
  7834. v-if="
  7835. w.userid == userid || tType == 1 || tType == 4
  7836. "
  7837. @click.stop="deleteWorks(w.wid)"
  7838. alt
  7839. />
  7840. </div>
  7841. <div class="comment" style="min-width: 200px">
  7842. <div class="worksName">
  7843. <div>{{ w.sName }}</div>
  7844. </div>
  7845. <div class="commentList">
  7846. <div class="commentList">
  7847. <div
  7848. class="commentImg"
  7849. @click="
  7850. isLikes(
  7851. w.wid,
  7852. userid,
  7853. 1,
  7854. null,
  7855. w.isLikes,
  7856. w.sName
  7857. )
  7858. "
  7859. >
  7860. <img
  7861. :src="w.isLikes == true ? likes : noLikes"
  7862. alt=""
  7863. />
  7864. </div>
  7865. <div>{{ w.likesCount }}</div>
  7866. </div>
  7867. <div class="commentList" style="margin-right: 15px">
  7868. <div
  7869. class="commentImg"
  7870. @click="commentOther(w, toolIndex, wIndex)"
  7871. >
  7872. <img
  7873. src="../../assets/icon/comment/comment.png"
  7874. alt=""
  7875. />
  7876. </div>
  7877. <div>{{ w.commentCount }}</div>
  7878. </div>
  7879. </div>
  7880. </div>
  7881. </div>
  7882. </div>
  7883. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7884. 未提交
  7885. </div>
  7886. <div
  7887. class="noWorksS"
  7888. v-if="noWorksS && noWorksS[toolIndex].length"
  7889. >
  7890. <div
  7891. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7892. :key="sIndex"
  7893. class="noWorksName"
  7894. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7895. >
  7896. <el-tooltip
  7897. effect="dark"
  7898. :content="s.student"
  7899. placement="top"
  7900. >
  7901. <span>{{ s.student }}</span>
  7902. </el-tooltip>
  7903. </div>
  7904. </div>
  7905. </div>
  7906. <div
  7907. v-if="
  7908. tType &&
  7909. ((tType == 2 && sIsOpen == true) ||
  7910. tType == 1 ||
  7911. tType == 4) &&
  7912. tool.tool.indexOf(6) != -1
  7913. "
  7914. class="worksBox"
  7915. >
  7916. <div
  7917. class="zuoyeYulan"
  7918. v-if="
  7919. (worksStudent.length &&
  7920. worksStudent[toolIndex].length > 0) ||
  7921. (courseGroup.group && courseGroup.group.length)
  7922. "
  7923. >
  7924. <div class="worksTop">
  7925. <div>作业预览</div>
  7926. <div
  7927. class="corOpen"
  7928. @click="contract(toolIndex)"
  7929. v-if="
  7930. isCloseList[toolIndex].isCloseBoolean &&
  7931. isCloseList[toolIndex].isClose == 0
  7932. "
  7933. >
  7934. 折叠
  7935. </div>
  7936. <div
  7937. class="corOpen"
  7938. @click="contract(toolIndex)"
  7939. v-if="isCloseList[toolIndex].isClose == 1"
  7940. >
  7941. 展开
  7942. </div>
  7943. </div>
  7944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7945. </div>
  7946. <div
  7947. class="group_workBox"
  7948. v-for="(g, gindex) in courseGroup.group"
  7949. :key="gindex"
  7950. >
  7951. <div class="group_box">
  7952. <div class="group_title">
  7953. <el-tooltip
  7954. class="item"
  7955. effect="light"
  7956. :content="g.name"
  7957. placement="top"
  7958. >
  7959. <div class="group_name">{{ g.name }}</div>
  7960. </el-tooltip>
  7961. </div>
  7962. <div
  7963. class="group_work"
  7964. v-if="
  7965. g.works &&
  7966. g.works.length &&
  7967. g.works[toolIndex].length
  7968. "
  7969. >
  7970. <div
  7971. class="works"
  7972. style="
  7973. width: 200px;
  7974. height: 140px;
  7975. margin: 10px 10px 10px 0;
  7976. border-radius: 15px;
  7977. box-shadow: 0 0 6px 1px #dfdada;
  7978. "
  7979. v-for="(w, wIndex) in g.works[toolIndex]"
  7980. :key="wIndex"
  7981. :class="w.type == 1 ? 'isTypeOne' : ''"
  7982. >
  7983. <div class="workImg">
  7984. <img
  7985. :src="w.works"
  7986. @click="previewImg(w.works, w)"
  7987. alt
  7988. />
  7989. <div
  7990. class="answerScore"
  7991. v-if="w.score"
  7992. @click.stop="openScore(w)"
  7993. :class="{
  7994. rightW:
  7995. w.userid == userid ||
  7996. tType == 1 ||
  7997. tType == 4
  7998. }"
  7999. >
  8000. {{ JSON.parse(w.score).wScore }}分
  8001. </div>
  8002. <div
  8003. class="answerScore"
  8004. @click.stop="openScore(w)"
  8005. v-else-if="courseDetail.userid == userid"
  8006. :class="{
  8007. rightW:
  8008. w.userid == userid ||
  8009. tType == 1 ||
  8010. tType == 4
  8011. }"
  8012. >
  8013. 评分
  8014. </div>
  8015. <img
  8016. class="deleteImg"
  8017. src="../../assets/deleteworks.png"
  8018. v-if="
  8019. w.userid == userid || tType == 1 || tType == 4
  8020. "
  8021. @click.stop="deleteWorks(w.wid)"
  8022. alt
  8023. />
  8024. </div>
  8025. <div class="comment" style="min-width: 200px">
  8026. <div class="worksName">
  8027. <div>{{ w.sName }}</div>
  8028. </div>
  8029. <div class="commentList">
  8030. <div class="commentList">
  8031. <div
  8032. class="commentImg"
  8033. @click="
  8034. isLikes(
  8035. w.wid,
  8036. userid,
  8037. 1,
  8038. null,
  8039. w.isLikes,
  8040. w.sName
  8041. )
  8042. "
  8043. >
  8044. <img
  8045. :src="w.isLikes == true ? likes : noLikes"
  8046. alt=""
  8047. />
  8048. </div>
  8049. <div>{{ w.likesCount }}</div>
  8050. </div>
  8051. <div
  8052. class="commentList"
  8053. style="margin-right: 15px"
  8054. >
  8055. <div
  8056. class="commentImg"
  8057. @click="
  8058. commentOther(
  8059. w,
  8060. toolIndex,
  8061. wIndex,
  8062. null,
  8063. g.id
  8064. )
  8065. "
  8066. >
  8067. <img
  8068. src="../../assets/icon/comment/comment.png"
  8069. alt=""
  8070. />
  8071. </div>
  8072. <div>{{ w.commentCount }}</div>
  8073. </div>
  8074. </div>
  8075. </div>
  8076. </div>
  8077. </div>
  8078. <div class="group_work" v-else>暂无提交作业</div>
  8079. </div>
  8080. </div>
  8081. <div
  8082. :id="'tool-' + toolIndex"
  8083. :style="{
  8084. height:
  8085. isCloseList[toolIndex].isClose == 1
  8086. ? retrnToolHeight('tool-' + toolIndex)
  8087. : 'auto',
  8088. overflow:
  8089. isCloseList[toolIndex].isClose == 1
  8090. ? 'hidden'
  8091. : 'unset'
  8092. }"
  8093. class="worksDetailBox"
  8094. v-if="
  8095. worksStudent.length &&
  8096. worksStudent[toolIndex].length > 0
  8097. "
  8098. >
  8099. <div
  8100. class="works"
  8101. style="
  8102. width: 200px;
  8103. height: 140px;
  8104. margin: 10px 10px 10px 0;
  8105. border-radius: 15px;
  8106. box-shadow: 0 0 6px 1px #dfdada;
  8107. "
  8108. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8109. :key="wIndex"
  8110. >
  8111. <!-- @click="previewImg(w.works)" -->
  8112. <div class="workImg">
  8113. <img
  8114. :src="w.works"
  8115. @click="previewImg(w.works, w)"
  8116. alt
  8117. />
  8118. <div
  8119. class="answerScore"
  8120. v-if="w.score"
  8121. @click.stop="openScore(w)"
  8122. :class="{
  8123. rightW:
  8124. w.userid == userid || tType == 1 || tType == 4
  8125. }"
  8126. >
  8127. {{ JSON.parse(w.score).wScore }}分
  8128. </div>
  8129. <div
  8130. class="answerScore"
  8131. @click.stop="openScore(w)"
  8132. v-else-if="courseDetail.userid == userid"
  8133. :class="{
  8134. rightW:
  8135. w.userid == userid || tType == 1 || tType == 4
  8136. }"
  8137. >
  8138. 评分
  8139. </div>
  8140. <img
  8141. class="deleteImg"
  8142. src="../../assets/deleteworks.png"
  8143. v-if="
  8144. w.userid == userid || tType == 1 || tType == 4
  8145. "
  8146. @click.stop="deleteWorks(w.wid)"
  8147. alt
  8148. />
  8149. </div>
  8150. <div class="comment" style="min-width: 200px">
  8151. <div class="worksName">
  8152. <div>{{ w.sName }}</div>
  8153. </div>
  8154. <div class="commentList">
  8155. <div class="commentList">
  8156. <div
  8157. class="commentImg"
  8158. @click="
  8159. isLikes(
  8160. w.wid,
  8161. userid,
  8162. 1,
  8163. null,
  8164. w.isLikes,
  8165. w.sName
  8166. )
  8167. "
  8168. >
  8169. <img
  8170. :src="w.isLikes == true ? likes : noLikes"
  8171. alt=""
  8172. />
  8173. </div>
  8174. <div>{{ w.likesCount }}</div>
  8175. </div>
  8176. <div class="commentList" style="margin-right: 15px">
  8177. <div
  8178. class="commentImg"
  8179. @click="commentOther(w, toolIndex, wIndex)"
  8180. >
  8181. <img
  8182. src="../../assets/icon/comment/comment.png"
  8183. alt=""
  8184. />
  8185. </div>
  8186. <div>{{ w.commentCount }}</div>
  8187. </div>
  8188. </div>
  8189. </div>
  8190. </div>
  8191. </div>
  8192. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8193. 未提交
  8194. </div>
  8195. <div
  8196. class="noWorksS"
  8197. v-if="noWorksS && noWorksS[toolIndex].length"
  8198. >
  8199. <div
  8200. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8201. :key="sIndex"
  8202. class="noWorksName"
  8203. >
  8204. <el-tooltip
  8205. effect="dark"
  8206. :content="s.student"
  8207. placement="top"
  8208. >
  8209. <span>{{ s.student }}</span>
  8210. </el-tooltip>
  8211. </div>
  8212. </div>
  8213. </div>
  8214. <div
  8215. v-if="
  8216. tType &&
  8217. ((tType == 2 && sIsOpen == true) ||
  8218. tType == 1 ||
  8219. tType == 4) &&
  8220. tool.tool.indexOf(7) != -1
  8221. "
  8222. class="worksBox"
  8223. >
  8224. <div
  8225. class="zuoyeYulan"
  8226. style="display: flex;justify-content: space-between;align-items: center;"
  8227. v-if="
  8228. (worksStudent.length &&
  8229. worksStudent[toolIndex].length > 0) ||
  8230. (courseGroup.group && courseGroup.group.length)
  8231. "
  8232. >
  8233. <div class="worksTop">
  8234. <div>作业预览</div>
  8235. <div
  8236. class="corOpen"
  8237. @click="contract(toolIndex)"
  8238. v-if="
  8239. isCloseList[toolIndex].isCloseBoolean &&
  8240. isCloseList[toolIndex].isClose == 0
  8241. "
  8242. >
  8243. 折叠
  8244. </div>
  8245. <div
  8246. class="corOpen"
  8247. @click="contract(toolIndex)"
  8248. v-if="isCloseList[toolIndex].isClose == 1"
  8249. >
  8250. 展开
  8251. </div>
  8252. </div>
  8253. <div
  8254. style="display: flex;"
  8255. v-if="
  8256. (courseDetail.userid == userid ||
  8257. (courseDetail.course_teacher &&
  8258. courseDetail.course_teacher.indexOf(userid) !=
  8259. -1)) &&
  8260. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8261. taskCount
  8262. ].eList &&
  8263. chapInfoList[courseType].chapterInfo[0].taskJson[
  8264. taskCount
  8265. ].eList.length) ||
  8266. (tool.eList && tool.eList.length)) &&
  8267. courseDetail.state == 5
  8268. "
  8269. >
  8270. <div
  8271. style="margin-right:10px"
  8272. class="ScoreBtn"
  8273. @click="
  8274. resetLoopEva(
  8275. worksStudent[toolIndex],
  8276. chapInfoList[courseType].chapterInfo[0].taskJson[
  8277. taskCount
  8278. ].eList,
  8279. courseType,
  8280. taskCount,
  8281. toolIndex,
  8282. tool.toolDetail,
  8283. worksStudent
  8284. )
  8285. "
  8286. >
  8287. 一键重置
  8288. </div>
  8289. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8290. <img
  8291. src="../../assets/icon/newIcons/rootImg.png"
  8292. alt=""
  8293. />
  8294. AI评分
  8295. </div>
  8296. <div
  8297. class="ScoreBtn"
  8298. v-else-if="!loopLoading[toolIndex].loading"
  8299. @click="
  8300. loopEva(
  8301. worksStudent[toolIndex],
  8302. chapInfoList[courseType].chapterInfo[0].taskJson[
  8303. taskCount
  8304. ].eList,
  8305. courseType,
  8306. taskCount,
  8307. toolIndex,
  8308. tool.toolDetail,
  8309. chapInfoList[courseType].chapterInfo[0].taskJson[
  8310. taskCount
  8311. ].taskDetail,
  8312. tool
  8313. )
  8314. "
  8315. >
  8316. <img
  8317. src="../../assets/icon/newIcons/rootImg.png"
  8318. alt=""
  8319. />
  8320. AI评分
  8321. </div>
  8322. <div class="ScoreBtn" v-else>
  8323. <img
  8324. src="../../assets/icon/newIcons/rootImg.png"
  8325. alt=""
  8326. />
  8327. 正在评分
  8328. </div>
  8329. </div>
  8330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8331. </div>
  8332. <div
  8333. class="group_workBox"
  8334. v-for="(g, gindex) in courseGroup.group"
  8335. :key="gindex"
  8336. >
  8337. <div class="group_box">
  8338. <div class="group_title">
  8339. <el-tooltip
  8340. class="item"
  8341. effect="light"
  8342. :content="g.name"
  8343. placement="top"
  8344. >
  8345. <div class="group_name">{{ g.name }}</div>
  8346. </el-tooltip>
  8347. </div>
  8348. <div
  8349. class="group_work"
  8350. v-if="
  8351. g.works &&
  8352. g.works.length &&
  8353. g.works[toolIndex].length
  8354. "
  8355. >
  8356. <div
  8357. class="works"
  8358. style="
  8359. width: 200px;
  8360. height: 140px;
  8361. margin: 10px 10px 10px 0;
  8362. border-radius: 15px;
  8363. box-shadow: 0 0 6px 1px #dfdada;
  8364. "
  8365. v-for="(w, wIndex) in g.works[toolIndex]"
  8366. :key="wIndex"
  8367. :class="w.type == 1 ? 'isTypeOne' : ''"
  8368. >
  8369. <div class="workImg">
  8370. <img
  8371. :src="w.works"
  8372. @click="previewImg(w.works, w)"
  8373. alt
  8374. />
  8375. <div
  8376. class="answerScore"
  8377. v-if="w.score"
  8378. @click.stop="openScore(w)"
  8379. :class="{
  8380. rightW:
  8381. w.userid == userid ||
  8382. tType == 1 ||
  8383. tType == 4
  8384. }"
  8385. >
  8386. {{ JSON.parse(w.score).wScore }}分
  8387. </div>
  8388. <div
  8389. class="answerScore"
  8390. @click.stop="openScore(w)"
  8391. v-else-if="courseDetail.userid == userid"
  8392. :class="{
  8393. rightW:
  8394. w.userid == userid ||
  8395. tType == 1 ||
  8396. tType == 4
  8397. }"
  8398. >
  8399. 评分
  8400. </div>
  8401. <img
  8402. class="deleteImg"
  8403. src="../../assets/deleteworks.png"
  8404. v-if="
  8405. w.userid == userid || tType == 1 || tType == 4
  8406. "
  8407. @click.stop="deleteWorks(w.wid)"
  8408. alt
  8409. />
  8410. </div>
  8411. <div class="comment" style="min-width: 200px">
  8412. <div class="worksName">
  8413. <div>{{ w.sName }}</div>
  8414. </div>
  8415. <div class="commentList">
  8416. <div class="commentList">
  8417. <div
  8418. class="commentImg"
  8419. @click="
  8420. isLikes(
  8421. w.wid,
  8422. userid,
  8423. 1,
  8424. null,
  8425. w.isLikes,
  8426. w.sName
  8427. )
  8428. "
  8429. >
  8430. <img
  8431. :src="w.isLikes == true ? likes : noLikes"
  8432. alt=""
  8433. />
  8434. </div>
  8435. <div>{{ w.likesCount }}</div>
  8436. </div>
  8437. <div
  8438. class="commentList"
  8439. style="margin-right: 15px"
  8440. >
  8441. <div
  8442. class="commentImg"
  8443. @click="
  8444. commentOther(
  8445. w,
  8446. toolIndex,
  8447. wIndex,
  8448. null,
  8449. g.id
  8450. )
  8451. "
  8452. >
  8453. <img
  8454. src="../../assets/icon/comment/comment.png"
  8455. alt=""
  8456. />
  8457. </div>
  8458. <div>{{ w.commentCount }}</div>
  8459. </div>
  8460. </div>
  8461. </div>
  8462. </div>
  8463. </div>
  8464. <div class="group_work" v-else>暂无提交作业</div>
  8465. </div>
  8466. </div>
  8467. <div
  8468. :id="'tool-' + toolIndex"
  8469. :style="{
  8470. height:
  8471. isCloseList[toolIndex].isClose == 1
  8472. ? retrnToolHeight('tool-' + toolIndex)
  8473. : 'auto',
  8474. overflow:
  8475. isCloseList[toolIndex].isClose == 1
  8476. ? 'hidden'
  8477. : 'unset'
  8478. }"
  8479. class="worksDetailBox"
  8480. v-if="
  8481. worksStudent.length &&
  8482. worksStudent[toolIndex].length > 0
  8483. "
  8484. >
  8485. <div
  8486. class="works"
  8487. style="
  8488. width: 200px;
  8489. height: 140px;
  8490. margin: 10px 10px 10px 0;
  8491. border-radius: 15px;
  8492. box-shadow: 0 0 6px 1px #dfdada;
  8493. "
  8494. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8495. :key="wIndex"
  8496. >
  8497. <!-- @click="previewImg(w.works)" -->
  8498. <div class="workImg">
  8499. <img
  8500. :src="w.works"
  8501. @click="previewImg(w.works, w)"
  8502. alt
  8503. />
  8504. <div
  8505. class="answerScore"
  8506. v-if="w.score"
  8507. @click.stop="openScore(w)"
  8508. :class="{
  8509. rightW:
  8510. w.userid == userid || tType == 1 || tType == 4
  8511. }"
  8512. >
  8513. {{ JSON.parse(w.score).wScore }}分
  8514. </div>
  8515. <div
  8516. class="answerScore"
  8517. @click.stop="openScore(w)"
  8518. v-else-if="
  8519. courseDetail.userid == userid &&
  8520. courseDetail.state != 5 &&
  8521. chapInfoList[courseType].chapterInfo[0]
  8522. .taskJson[taskCount].eList &&
  8523. chapInfoList[courseType].chapterInfo[0]
  8524. .taskJson[taskCount].eList.length
  8525. "
  8526. :class="{
  8527. rightW:
  8528. w.userid == userid || tType == 1 || tType == 4
  8529. }"
  8530. >
  8531. 评分
  8532. </div>
  8533. <!-- <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"> -->
  8534. <div
  8535. v-else-if="
  8536. (courseDetail.userid == userid ||
  8537. (courseDetail.course_teacher &&
  8538. courseDetail.course_teacher.indexOf(userid) !=
  8539. -1) ||
  8540. (w.userid == userid && sIsOpen)) &&
  8541. courseDetail.state == 5 &&
  8542. ((chapInfoList[courseType].chapterInfo[0]
  8543. .taskJson[taskCount].eList &&
  8544. chapInfoList[courseType].chapterInfo[0]
  8545. .taskJson[taskCount].eList.length) ||
  8546. (tool.eList && tool.eList.length))
  8547. "
  8548. >
  8549. <el-popover
  8550. placement="top"
  8551. width="318"
  8552. :disabled="AIloading[toolIndex][wIndex].loading"
  8553. trigger="hover"
  8554. >
  8555. <markScore
  8556. :loading="AIloading[toolIndex][wIndex].loading"
  8557. :markScoreVisible="markScoreVisible"
  8558. :ref="`markSco${toolIndex}${wIndex}`"
  8559. @updateLoading="updateLoading"
  8560. @updateDocSco="updateDocSco"
  8561. @refreshOther="refreshOther"
  8562. @markScoreDig="markScoreDig"
  8563. :tool="tool"
  8564. :wIndex="wIndex"
  8565. :scoCon="w"
  8566. :toolIndex="toolIndex"
  8567. :key="refreshKey"
  8568. :stage="courseType"
  8569. :task="taskCount"
  8570. :scoTit="
  8571. chapInfoList[courseType].chapterInfo[0]
  8572. .taskJson[taskCount].eList
  8573. "
  8574. >
  8575. </markScore>
  8576. <div
  8577. class="answerScore"
  8578. @click="
  8579. markScoreDig2(
  8580. w.sName,
  8581. worksStudent,
  8582. w.userid,
  8583. toolIndex,
  8584. chapInfoList[courseType].chapterInfo[0]
  8585. .taskJson[taskCount].eList,
  8586. AIloading[toolIndex][wIndex].loading,
  8587. tool
  8588. )
  8589. "
  8590. slot="reference"
  8591. :class="{
  8592. rightW:
  8593. w.userid == userid ||
  8594. tType == 1 ||
  8595. tType == 4 ||
  8596. w.ateacher == userid
  8597. }"
  8598. >
  8599. <span v-if="AIloading[toolIndex][wIndex].sco">
  8600. {{
  8601. AIloading[toolIndex][wIndex].loading
  8602. ? "评分中"
  8603. : AIloading[toolIndex][wIndex].sco + "分"
  8604. }}
  8605. </span>
  8606. <span v-else>
  8607. {{
  8608. AIloading[toolIndex][wIndex].loading
  8609. ? "评分中"
  8610. : "评分"
  8611. }}
  8612. </span>
  8613. </div>
  8614. </el-popover>
  8615. </div>
  8616. <img
  8617. class="deleteImg"
  8618. src="../../assets/deleteworks.png"
  8619. v-if="
  8620. w.userid == userid || tType == 1 || tType == 4
  8621. "
  8622. @click.stop="deleteWorks(w.wid)"
  8623. alt
  8624. />
  8625. </div>
  8626. <div class="comment" style="min-width: 200px">
  8627. <div class="worksName">
  8628. <div>{{ w.sName }}</div>
  8629. </div>
  8630. <div class="commentList">
  8631. <div class="commentList">
  8632. <div
  8633. class="commentImg"
  8634. @click="
  8635. isLikes(
  8636. w.wid,
  8637. userid,
  8638. 1,
  8639. null,
  8640. w.isLikes,
  8641. w.sName
  8642. )
  8643. "
  8644. >
  8645. <img
  8646. :src="w.isLikes == true ? likes : noLikes"
  8647. alt=""
  8648. />
  8649. </div>
  8650. <div>{{ w.likesCount }}</div>
  8651. </div>
  8652. <div class="commentList" style="margin-right: 15px">
  8653. <div
  8654. class="commentImg"
  8655. @click="commentOther(w, toolIndex, wIndex)"
  8656. >
  8657. <img
  8658. src="../../assets/icon/comment/comment.png"
  8659. alt=""
  8660. />
  8661. </div>
  8662. <div>{{ w.commentCount }}</div>
  8663. </div>
  8664. </div>
  8665. </div>
  8666. </div>
  8667. </div>
  8668. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8669. 未提交
  8670. </div>
  8671. <div
  8672. class="noWorksS"
  8673. v-if="noWorksS && noWorksS[toolIndex].length"
  8674. >
  8675. <div
  8676. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8677. :key="sIndex"
  8678. class="noWorksName"
  8679. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8680. >
  8681. <el-tooltip
  8682. effect="dark"
  8683. :content="s.student"
  8684. placement="top"
  8685. >
  8686. <span>{{ s.student }}</span>
  8687. </el-tooltip>
  8688. </div>
  8689. </div>
  8690. </div>
  8691. <div
  8692. v-if="
  8693. tType &&
  8694. ((tType == 2 && sIsOpen == true) ||
  8695. tType == 1 ||
  8696. tType == 4) &&
  8697. tool.tool.indexOf(26) != -1
  8698. "
  8699. class="worksBox"
  8700. >
  8701. <div
  8702. class="zuoyeYulan"
  8703. v-if="
  8704. worksStudent.length &&
  8705. worksStudent[toolIndex].length > 0
  8706. "
  8707. >
  8708. <div class="worksTop">
  8709. <div>作业预览</div>
  8710. <div
  8711. class="corOpen"
  8712. @click="contract(toolIndex)"
  8713. v-if="
  8714. isCloseList[toolIndex].isCloseBoolean &&
  8715. isCloseList[toolIndex].isClose == 0
  8716. "
  8717. >
  8718. 折叠
  8719. </div>
  8720. <div
  8721. class="corOpen"
  8722. @click="contract(toolIndex)"
  8723. v-if="isCloseList[toolIndex].isClose == 1"
  8724. >
  8725. 展开
  8726. </div>
  8727. </div>
  8728. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8729. </div>
  8730. <div
  8731. :id="'tool-' + toolIndex"
  8732. :style="{
  8733. height:
  8734. isCloseList[toolIndex].isClose == 1
  8735. ? retrnToolHeight('tool-' + toolIndex)
  8736. : 'auto',
  8737. overflow:
  8738. isCloseList[toolIndex].isClose == 1
  8739. ? 'hidden'
  8740. : 'unset'
  8741. }"
  8742. class="worksDetailBox"
  8743. v-if="
  8744. worksStudent.length &&
  8745. worksStudent[toolIndex].length > 0
  8746. "
  8747. >
  8748. <div
  8749. class="works"
  8750. style="width: 240px; height: 140px; overflow: hidden"
  8751. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8752. :key="wIndex"
  8753. :class="w.type == 1 ? 'isTypeOne' : ''"
  8754. >
  8755. <div class="workImg" v-if="w.type == 0">
  8756. <img
  8757. :src="w.works"
  8758. @click="previewImg(w.works, w)"
  8759. alt
  8760. />
  8761. <img
  8762. class="deleteImg"
  8763. src="../../assets/deleteworks.png"
  8764. v-if="
  8765. w.userid == userid || tType == 1 || tType == 4
  8766. "
  8767. @click.stop="deleteWorks(w.wid)"
  8768. alt
  8769. />
  8770. </div>
  8771. <div class="workImg" v-if="w.type == 1">
  8772. <img :src="word" @click="openFile(w.works)" alt />
  8773. <img
  8774. class="deleteImg"
  8775. src="../../assets/deleteworks.png"
  8776. v-if="
  8777. w.userid == userid || tType == 1 || tType == 4
  8778. "
  8779. @click.stop="deleteWorks(w.wid)"
  8780. alt
  8781. />
  8782. </div>
  8783. <div class="worksName">
  8784. <div>{{ w.sName }}</div>
  8785. </div>
  8786. </div>
  8787. </div>
  8788. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8789. 未提交
  8790. </div>
  8791. <div
  8792. class="noWorksS"
  8793. v-if="noWorksS && noWorksS[toolIndex].length"
  8794. >
  8795. <div
  8796. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8797. :key="sIndex"
  8798. class="noWorksName"
  8799. >
  8800. <el-tooltip
  8801. effect="dark"
  8802. :content="s.student"
  8803. placement="top"
  8804. >
  8805. <span>{{ s.student }}</span>
  8806. </el-tooltip>
  8807. </div>
  8808. </div>
  8809. </div>
  8810. <div
  8811. v-if="
  8812. tType &&
  8813. ((tType == 2 && sIsOpen == true) ||
  8814. tType == 1 ||
  8815. tType == 4) &&
  8816. tool.tool.indexOf(40) != -1
  8817. "
  8818. class="worksBox"
  8819. >
  8820. <div
  8821. class="zuoyeYulan"
  8822. v-if="
  8823. worksStudent.length &&
  8824. worksStudent[toolIndex].length > 0
  8825. "
  8826. >
  8827. <div class="worksTop">
  8828. <div>作业预览</div>
  8829. <div
  8830. class="corOpen"
  8831. @click="contract(toolIndex)"
  8832. v-if="
  8833. isCloseList[toolIndex].isCloseBoolean &&
  8834. isCloseList[toolIndex].isClose == 0
  8835. "
  8836. >
  8837. 折叠
  8838. </div>
  8839. <div
  8840. class="corOpen"
  8841. @click="contract(toolIndex)"
  8842. v-if="isCloseList[toolIndex].isClose == 1"
  8843. >
  8844. 展开
  8845. </div>
  8846. </div>
  8847. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8848. </div>
  8849. <div
  8850. :id="'tool-' + toolIndex"
  8851. :style="{
  8852. height:
  8853. isCloseList[toolIndex].isClose == 1
  8854. ? retrnToolHeight('tool-' + toolIndex)
  8855. : 'auto',
  8856. overflow:
  8857. isCloseList[toolIndex].isClose == 1
  8858. ? 'hidden'
  8859. : 'unset'
  8860. }"
  8861. class="worksDetailBox"
  8862. v-if="
  8863. worksStudent.length &&
  8864. worksStudent[toolIndex].length > 0
  8865. "
  8866. >
  8867. <div
  8868. class="works"
  8869. style="
  8870. width: 200px;
  8871. height: 140px;
  8872. margin: 10px 10px 10px 0;
  8873. border-radius: 15px;
  8874. box-shadow: 0 0 6px 1px #dfdada;
  8875. "
  8876. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8877. :key="wIndex"
  8878. :class="w.type == 1 ? 'isTypeOne' : ''"
  8879. >
  8880. <div class="workImg">
  8881. <img
  8882. src="../../assets/icon/works/noImg.png"
  8883. @click="openPj(w.works, toolIndex)"
  8884. alt
  8885. />
  8886. <img
  8887. class="deleteImg"
  8888. src="../../assets/deleteworks.png"
  8889. v-if="
  8890. w.userid == userid || tType == 1 || tType == 4
  8891. "
  8892. @click.stop="deleteWorks(w.wid)"
  8893. alt
  8894. />
  8895. </div>
  8896. <div class="comment" style="min-width: 200px">
  8897. <div class="worksName">
  8898. <div>{{ w.sName }}</div>
  8899. </div>
  8900. <div class="commentList">
  8901. <div class="commentList">
  8902. <div
  8903. class="commentImg"
  8904. @click="
  8905. isLikes(
  8906. w.wid,
  8907. userid,
  8908. 1,
  8909. null,
  8910. w.isLikes,
  8911. w.sName
  8912. )
  8913. "
  8914. >
  8915. <img
  8916. :src="w.isLikes == true ? likes : noLikes"
  8917. alt=""
  8918. />
  8919. </div>
  8920. <div>{{ w.likesCount }}</div>
  8921. </div>
  8922. <div class="commentList" style="margin-right: 15px">
  8923. <div
  8924. class="commentImg"
  8925. @click="commentOther(w, toolIndex, wIndex)"
  8926. >
  8927. <img
  8928. src="../../assets/icon/comment/comment.png"
  8929. alt=""
  8930. />
  8931. </div>
  8932. <div>{{ w.commentCount }}</div>
  8933. </div>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8939. 未提交
  8940. </div>
  8941. <div
  8942. class="noWorksS"
  8943. v-if="noWorksS && noWorksS[toolIndex].length"
  8944. >
  8945. <div
  8946. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8947. :key="sIndex"
  8948. class="noWorksName"
  8949. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8950. >
  8951. <el-tooltip
  8952. effect="dark"
  8953. :content="s.student"
  8954. placement="top"
  8955. >
  8956. <span>{{ s.student }}</span>
  8957. </el-tooltip>
  8958. </div>
  8959. </div>
  8960. </div>
  8961. <div
  8962. v-if="
  8963. tType &&
  8964. tType == 2 &&
  8965. !sIsOpen &&
  8966. tool.tool.indexOf(40) != -1
  8967. "
  8968. class="worksBox"
  8969. >
  8970. <div
  8971. class="zuoyeYulan"
  8972. v-if="workStudent[toolIndex].length > 0"
  8973. >
  8974. <span class="worksTitle">作业预览</span>
  8975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8976. </div>
  8977. <div
  8978. class="worksDetailBox"
  8979. v-if="workStudent[toolIndex].length > 0"
  8980. >
  8981. <div
  8982. class="works"
  8983. style="
  8984. width: 200px;
  8985. height: 140px;
  8986. margin: 10px 10px 10px 0;
  8987. "
  8988. v-for="(w, wIndex) in workStudent[toolIndex]"
  8989. :key="wIndex"
  8990. >
  8991. <div class="workImg">
  8992. <img
  8993. src="../../assets/icon/works/noImg.png"
  8994. @click="openPj(w.works, toolIndex)"
  8995. alt
  8996. />
  8997. <img
  8998. class="deleteImg"
  8999. src="../../assets/deleteworks.png"
  9000. v-if="
  9001. w.userid == userid || tType == 1 || tType == 4
  9002. "
  9003. @click.stop="deleteWorks(w.wid)"
  9004. alt
  9005. />
  9006. </div>
  9007. <div class="worksName">
  9008. <div>{{ w.sName }}</div>
  9009. </div>
  9010. </div>
  9011. </div>
  9012. </div>
  9013. <div
  9014. v-if="
  9015. tType &&
  9016. ((tType == 2 && sIsOpen == true) ||
  9017. tType == 1 ||
  9018. tType == 4) &&
  9019. tool.tool.indexOf(41) != -1
  9020. "
  9021. >
  9022. <AnswerData2
  9023. v-if="
  9024. worksStudent.length &&
  9025. worksStudent[toolIndex].length > 0
  9026. "
  9027. :problemJson="tool.selectJson.answer"
  9028. :people="worksStudent[toolIndex]"
  9029. ></AnswerData2>
  9030. </div>
  9031. <div
  9032. v-if="
  9033. tType &&
  9034. ((tType == 2 && sIsOpen == true) ||
  9035. tType == 1 ||
  9036. tType == 4) &&
  9037. tool.tool.indexOf(41) != -1
  9038. "
  9039. class="worksBox"
  9040. >
  9041. <div
  9042. class="zuoyeYulan"
  9043. v-if="
  9044. worksStudent.length &&
  9045. worksStudent[toolIndex].length > 0
  9046. "
  9047. >
  9048. <div class="worksTop">
  9049. <div>作业预览</div>
  9050. <div
  9051. class="corOpen"
  9052. @click="contract(toolIndex)"
  9053. v-if="
  9054. isCloseList[toolIndex].isCloseBoolean &&
  9055. isCloseList[toolIndex].isClose == 0
  9056. "
  9057. >
  9058. 折叠
  9059. </div>
  9060. <div
  9061. class="corOpen"
  9062. @click="contract(toolIndex)"
  9063. v-if="isCloseList[toolIndex].isClose == 1"
  9064. >
  9065. 展开
  9066. </div>
  9067. </div>
  9068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9069. </div>
  9070. <div
  9071. :id="'tool-' + toolIndex"
  9072. :style="{
  9073. height:
  9074. isCloseList[toolIndex].isClose == 1
  9075. ? retrnToolHeight('tool-' + toolIndex)
  9076. : 'auto',
  9077. overflow:
  9078. isCloseList[toolIndex].isClose == 1
  9079. ? 'hidden'
  9080. : 'unset'
  9081. }"
  9082. class="worksDetailBox"
  9083. v-if="
  9084. worksStudent.length &&
  9085. worksStudent[toolIndex].length > 0
  9086. "
  9087. >
  9088. <div
  9089. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9090. :key="wIndex"
  9091. class="isWorksName2"
  9092. @click="openXz(w, toolIndex)"
  9093. >
  9094. {{ w.sName }}
  9095. <img
  9096. class="deleteImg deleteImg2"
  9097. src="../../assets/deleteworks.png"
  9098. v-if="w.userid == userid || tType == 1 || tType == 4"
  9099. @click.stop="deleteWorks(w.wid)"
  9100. alt
  9101. />
  9102. </div>
  9103. <!-- <div
  9104. class="works"
  9105. style="
  9106. width: 200px;
  9107. height: 140px;
  9108. margin: 10px 10px 10px 0;
  9109. border-radius: 15px;
  9110. box-shadow: 0 0 6px 1px #dfdada;
  9111. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9112. :class="w.type == 5 ? 'isTypeOne' : ''">
  9113. <div class="workImg">
  9114. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9115. </div>
  9116. <div class="worksName">
  9117. <div>{{ w.sName }}</div>
  9118. </div>
  9119. </div> -->
  9120. </div>
  9121. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9122. 未提交
  9123. </div>
  9124. <div
  9125. class="noWorksS"
  9126. v-if="noWorksS && noWorksS[toolIndex].length"
  9127. >
  9128. <div
  9129. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9130. :key="sIndex"
  9131. class="noWorksName"
  9132. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9133. >
  9134. <el-tooltip
  9135. effect="dark"
  9136. :content="s.student"
  9137. placement="top"
  9138. >
  9139. <span>{{ s.student }}</span>
  9140. </el-tooltip>
  9141. </div>
  9142. </div>
  9143. </div>
  9144. <div
  9145. v-if="
  9146. tType &&
  9147. tType == 2 &&
  9148. !sIsOpen &&
  9149. tool.tool.indexOf(41) != -1
  9150. "
  9151. class="worksBox"
  9152. >
  9153. <div
  9154. class="zuoyeYulan"
  9155. v-if="workStudent[toolIndex].length > 0"
  9156. >
  9157. <span class="worksTitle">作业预览</span>
  9158. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9159. </div>
  9160. <div
  9161. class="worksDetailBox"
  9162. v-if="workStudent[toolIndex].length > 0"
  9163. >
  9164. <div
  9165. class="works"
  9166. style="
  9167. width: 200px;
  9168. height: 140px;
  9169. margin: 10px 10px 10px 0;
  9170. "
  9171. v-for="(w, wIndex) in workStudent[toolIndex]"
  9172. :key="wIndex"
  9173. >
  9174. <div class="workImg">
  9175. <img
  9176. src="../../assets/icon/works/noImg.png"
  9177. @click="openXz(w, toolIndex)"
  9178. alt
  9179. />
  9180. <img
  9181. class="deleteImg"
  9182. src="../../assets/deleteworks.png"
  9183. v-if="
  9184. w.userid == userid || tType == 1 || tType == 4
  9185. "
  9186. @click.stop="deleteWorks(w.wid)"
  9187. alt
  9188. />
  9189. </div>
  9190. <div class="worksName">
  9191. <div>{{ w.sName }}</div>
  9192. </div>
  9193. </div>
  9194. </div>
  9195. </div>
  9196. <div v-if="false" class="xuan_right_box">
  9197. <div
  9198. class="tool_right_box"
  9199. v-for="(item, index) in tool.sentenceList"
  9200. :key="index"
  9201. >
  9202. <div>
  9203. <span
  9204. style="word-break: break-all; white-space: normal"
  9205. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9206. >
  9207. </div>
  9208. <div class="right_box_xuan">
  9209. <span>正确率</span>
  9210. <span>{{
  9211. (checkJson[toolIndex][index].right
  9212. ? checkJson[toolIndex][index].right
  9213. : 0) + "%"
  9214. }}</span>
  9215. </div>
  9216. <div class="right_box_xuan">
  9217. <span>答对人数</span>
  9218. <span>{{
  9219. checkJson[toolIndex][index].rightPerson.length
  9220. }}</span>
  9221. </div>
  9222. </div>
  9223. </div>
  9224. <div
  9225. v-if="
  9226. tType &&
  9227. ((tType == 2 && sIsOpen == true) ||
  9228. tType == 1 ||
  9229. tType == 4) &&
  9230. tool.tool.indexOf(47) != -1
  9231. "
  9232. >
  9233. <AnswerData
  9234. v-if="
  9235. checkJson[toolIndex].length &&
  9236. (tool.sentenceList || tool.sentenceList.length > 0)
  9237. "
  9238. :people="checkJson[toolIndex]"
  9239. ></AnswerData>
  9240. </div>
  9241. <div
  9242. v-if="
  9243. tType &&
  9244. tType == 2 &&
  9245. !sIsOpen &&
  9246. tool.tool.indexOf(47) != -1
  9247. "
  9248. class="worksBox"
  9249. >
  9250. <div
  9251. class="zuoyeYulan"
  9252. v-if="workStudent[toolIndex].length > 0"
  9253. >
  9254. <span class="worksTitle">作业预览</span>
  9255. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9256. </div>
  9257. <div
  9258. class="worksDetailBox"
  9259. v-if="workStudent[toolIndex].length > 0"
  9260. >
  9261. <div
  9262. class="works"
  9263. style="
  9264. width: 200px;
  9265. height: 140px;
  9266. margin: 10px 10px 10px 0;
  9267. "
  9268. v-for="(w, wIndex) in workStudent[toolIndex]"
  9269. :key="wIndex"
  9270. >
  9271. <!-- @click="openXz(w, toolIndex)" -->
  9272. <div class="workImg" @click="openSen(w, toolIndex)">
  9273. <img src="../../assets/icon/works/noImg.png" alt />
  9274. <img
  9275. class="deleteImg"
  9276. src="../../assets/deleteworks.png"
  9277. v-if="
  9278. w.userid == userid || tType == 1 || tType == 4
  9279. "
  9280. @click.stop="deleteWorks(w.wid)"
  9281. alt
  9282. />
  9283. </div>
  9284. <div class="worksName">
  9285. <div>
  9286. {{ w.sName }}
  9287. </div>
  9288. </div>
  9289. </div>
  9290. </div>
  9291. </div>
  9292. <div
  9293. v-if="
  9294. tType &&
  9295. ((tType == 2 && sIsOpen == true) ||
  9296. tType == 1 ||
  9297. tType == 4) &&
  9298. tool.tool.indexOf(47) != -1
  9299. "
  9300. class="worksBox"
  9301. >
  9302. <div
  9303. class="zuoyeYulan"
  9304. v-if="
  9305. worksStudent.length &&
  9306. worksStudent[toolIndex].length > 0
  9307. "
  9308. >
  9309. <div class="worksTop">
  9310. <div>作业预览</div>
  9311. <div
  9312. class="corOpen"
  9313. @click="contract(toolIndex)"
  9314. v-if="
  9315. isCloseList[toolIndex].isCloseBoolean &&
  9316. isCloseList[toolIndex].isClose == 0
  9317. "
  9318. >
  9319. 折叠
  9320. </div>
  9321. <div
  9322. class="corOpen"
  9323. @click="contract(toolIndex)"
  9324. v-if="isCloseList[toolIndex].isClose == 1"
  9325. >
  9326. 展开
  9327. </div>
  9328. </div>
  9329. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9330. </div>
  9331. <div
  9332. :id="'tool-' + toolIndex"
  9333. :style="{
  9334. height:
  9335. isCloseList[toolIndex].isClose == 1
  9336. ? retrnToolHeight('tool-' + toolIndex)
  9337. : 'auto',
  9338. overflow:
  9339. isCloseList[toolIndex].isClose == 1
  9340. ? 'hidden'
  9341. : 'unset'
  9342. }"
  9343. class="worksDetailBox"
  9344. v-if="
  9345. worksStudent.length &&
  9346. worksStudent[toolIndex].length > 0
  9347. "
  9348. >
  9349. <!-- @click="openXz(w, toolIndex)" -->
  9350. <div
  9351. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9352. :key="wIndex"
  9353. class="isWorksName2"
  9354. @click="openSen(w, toolIndex)"
  9355. >
  9356. {{ w.sName }}
  9357. <img
  9358. class="deleteImg deleteImg2"
  9359. src="../../assets/deleteworks.png"
  9360. v-if="w.userid == userid || tType == 1 || tType == 4"
  9361. @click.stop="deleteWorks(w.wid)"
  9362. alt
  9363. />
  9364. </div>
  9365. </div>
  9366. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9367. 未提交
  9368. </div>
  9369. <div
  9370. class="noWorksS"
  9371. v-if="noWorksS && noWorksS[toolIndex].length"
  9372. >
  9373. <div
  9374. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9375. :key="sIndex"
  9376. class="noWorksName"
  9377. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9378. >
  9379. <el-tooltip
  9380. effect="dark"
  9381. :content="s.student"
  9382. placement="top"
  9383. >
  9384. <span>{{ s.student }}</span>
  9385. </el-tooltip>
  9386. </div>
  9387. </div>
  9388. </div>
  9389. <div
  9390. v-if="
  9391. tType &&
  9392. ((tType == 2 && sIsOpen == true) ||
  9393. tType == 1 ||
  9394. tType == 4) &&
  9395. tool.tool.indexOf(48) != -1
  9396. "
  9397. class="worksBox"
  9398. >
  9399. <div
  9400. class="zuoyeYulan"
  9401. style="display: flex;justify-content: space-between;align-items: center;"
  9402. v-if="
  9403. worksStudent.length &&
  9404. worksStudent[toolIndex].length > 0
  9405. "
  9406. >
  9407. <div class="worksTop">
  9408. <div>作业预览</div>
  9409. <div
  9410. class="corOpen"
  9411. @click="contract(toolIndex)"
  9412. v-if="
  9413. isCloseList[toolIndex].isCloseBoolean &&
  9414. isCloseList[toolIndex].isClose == 0
  9415. "
  9416. >
  9417. 折叠
  9418. </div>
  9419. <div
  9420. class="corOpen"
  9421. @click="contract(toolIndex)"
  9422. v-if="isCloseList[toolIndex].isClose == 1"
  9423. >
  9424. 展开
  9425. </div>
  9426. </div>
  9427. <div
  9428. style="display: flex;"
  9429. v-if="
  9430. (courseDetail.userid == userid ||
  9431. (courseDetail.course_teacher &&
  9432. courseDetail.course_teacher.indexOf(userid) !=
  9433. -1)) &&
  9434. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9435. taskCount
  9436. ].eList &&
  9437. chapInfoList[courseType].chapterInfo[0].taskJson[
  9438. taskCount
  9439. ].eList.length) ||
  9440. (tool.eList && tool.eList.length)) &&
  9441. courseDetail.state == 5
  9442. "
  9443. >
  9444. <div
  9445. style="margin-right:10px"
  9446. class="ScoreBtn"
  9447. @click="
  9448. resetLoopEva(
  9449. worksStudent[toolIndex],
  9450. chapInfoList[courseType].chapterInfo[0].taskJson[
  9451. taskCount
  9452. ].eList,
  9453. courseType,
  9454. taskCount,
  9455. toolIndex,
  9456. tool.toolDetail,
  9457. worksStudent
  9458. )
  9459. "
  9460. >
  9461. 一键重置
  9462. </div>
  9463. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9464. <img
  9465. src="../../assets/icon/newIcons/rootImg.png"
  9466. alt=""
  9467. />
  9468. AI评分
  9469. </div>
  9470. <div
  9471. class="ScoreBtn"
  9472. v-else-if="!loopLoading[toolIndex].loading"
  9473. @click="
  9474. loopEva(
  9475. worksStudent[toolIndex],
  9476. chapInfoList[courseType].chapterInfo[0].taskJson[
  9477. taskCount
  9478. ].eList,
  9479. courseType,
  9480. taskCount,
  9481. toolIndex,
  9482. tool.toolDetail,
  9483. chapInfoList[courseType].chapterInfo[0].taskJson[
  9484. taskCount
  9485. ].taskDetail,
  9486. tool
  9487. )
  9488. "
  9489. >
  9490. <img
  9491. src="../../assets/icon/newIcons/rootImg.png"
  9492. alt=""
  9493. />
  9494. AI评分
  9495. </div>
  9496. <div class="ScoreBtn" v-else>
  9497. <img
  9498. src="../../assets/icon/newIcons/rootImg.png"
  9499. alt=""
  9500. />
  9501. 正在评分
  9502. </div>
  9503. </div>
  9504. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9505. </div>
  9506. <div
  9507. :id="'tool-' + toolIndex"
  9508. :style="{
  9509. height:
  9510. isCloseList[toolIndex].isClose == 1
  9511. ? retrnToolHeight('tool-' + toolIndex)
  9512. : 'auto',
  9513. overflow:
  9514. isCloseList[toolIndex].isClose == 1
  9515. ? 'hidden'
  9516. : 'unset'
  9517. }"
  9518. class="worksDetailBox"
  9519. v-if="
  9520. worksStudent.length &&
  9521. worksStudent[toolIndex].length > 0
  9522. "
  9523. >
  9524. <div
  9525. class="works"
  9526. style="
  9527. width: 200px;
  9528. height: 140px;
  9529. margin: 10px 10px 10px 0;
  9530. border-radius: 15px;
  9531. box-shadow: 0 0 6px 1px #dfdada;
  9532. "
  9533. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9534. :key="wIndex"
  9535. :class="w.type == 1 ? 'isTypeOne' : ''"
  9536. >
  9537. <div class="workImg">
  9538. <img :src="word" @click="openTable(w)" alt />
  9539. <!-- @click="openFile(w.works)" -->
  9540. <div
  9541. class="answerScore"
  9542. v-if="w.score"
  9543. @click.stop="openScore(w)"
  9544. :class="{
  9545. rightW:
  9546. w.userid == userid ||
  9547. tType == 1 ||
  9548. tType == 4 ||
  9549. w.ateacher == userid
  9550. }"
  9551. >
  9552. {{ JSON.parse(w.score).wScore }}分
  9553. </div>
  9554. <div
  9555. class="answerScore"
  9556. @click.stop="openScore(w)"
  9557. v-else-if="
  9558. courseDetail.userid == userid &&
  9559. courseDetail.state != 5 &&
  9560. chapInfoList[courseType].chapterInfo[0]
  9561. .taskJson[taskCount].eList &&
  9562. chapInfoList[courseType].chapterInfo[0]
  9563. .taskJson[taskCount].eList.length
  9564. "
  9565. :class="{
  9566. rightW:
  9567. w.userid == userid ||
  9568. tType == 1 ||
  9569. tType == 4 ||
  9570. w.ateacher == userid
  9571. }"
  9572. >
  9573. 评分
  9574. </div>
  9575. <!-- <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"> -->
  9576. <div
  9577. v-else-if="
  9578. (courseDetail.userid == userid ||
  9579. (courseDetail.course_teacher &&
  9580. courseDetail.course_teacher.indexOf(userid) !=
  9581. -1) ||
  9582. (w.userid == userid && sIsOpen)) &&
  9583. courseDetail.state == 5 &&
  9584. ((chapInfoList[courseType].chapterInfo[0]
  9585. .taskJson[taskCount].eList &&
  9586. chapInfoList[courseType].chapterInfo[0]
  9587. .taskJson[taskCount].eList.length) ||
  9588. (tool.eList && tool.eList.length))
  9589. "
  9590. >
  9591. <el-popover
  9592. placement="top"
  9593. width="318"
  9594. :disabled="AIloading[toolIndex][wIndex].loading"
  9595. trigger="hover"
  9596. >
  9597. <markScore
  9598. :loading="AIloading[toolIndex][wIndex].loading"
  9599. :markScoreVisible="markScoreVisible"
  9600. :ref="`markSco${toolIndex}${wIndex}`"
  9601. @updateLoading="updateLoading"
  9602. @updateDocSco="updateDocSco"
  9603. @refreshOther="refreshOther"
  9604. @markScoreDig="markScoreDig"
  9605. :tool="tool"
  9606. :wIndex="wIndex"
  9607. :scoCon="w"
  9608. :toolIndex="toolIndex"
  9609. :key="refreshKey"
  9610. :stage="courseType"
  9611. :task="taskCount"
  9612. :scoTit="
  9613. chapInfoList[courseType].chapterInfo[0]
  9614. .taskJson[taskCount].eList
  9615. "
  9616. >
  9617. </markScore>
  9618. <div
  9619. class="answerScore"
  9620. @click="
  9621. markScoreDig2(
  9622. w.sName,
  9623. worksStudent,
  9624. w.userid,
  9625. toolIndex,
  9626. chapInfoList[courseType].chapterInfo[0]
  9627. .taskJson[taskCount].eList,
  9628. AIloading[toolIndex][wIndex].loading,
  9629. tool
  9630. )
  9631. "
  9632. slot="reference"
  9633. :class="{
  9634. rightW:
  9635. w.userid == userid ||
  9636. tType == 1 ||
  9637. tType == 4 ||
  9638. w.ateacher == userid
  9639. }"
  9640. >
  9641. <span v-if="AIloading[toolIndex][wIndex].sco">
  9642. {{
  9643. AIloading[toolIndex][wIndex].loading
  9644. ? "评分中"
  9645. : AIloading[toolIndex][wIndex].sco + "分"
  9646. }}
  9647. </span>
  9648. <span v-else>
  9649. {{
  9650. AIloading[toolIndex][wIndex].loading
  9651. ? "评分中"
  9652. : "评分"
  9653. }}
  9654. </span>
  9655. </div>
  9656. </el-popover>
  9657. </div>
  9658. <img
  9659. class="deleteImg"
  9660. src="../../assets/deleteworks.png"
  9661. v-if="
  9662. w.userid == userid || tType == 1 || tType == 4
  9663. "
  9664. @click.stop="deleteWorks(w.wid)"
  9665. alt
  9666. />
  9667. </div>
  9668. <div class="comment" style="min-width: 200px">
  9669. <div class="worksName">
  9670. <div>{{ w.sName }}</div>
  9671. </div>
  9672. <div class="commentList">
  9673. <div class="commentList">
  9674. <div
  9675. class="commentImg"
  9676. @click="
  9677. isLikes(
  9678. w.wid,
  9679. userid,
  9680. 1,
  9681. null,
  9682. w.isLikes,
  9683. w.sName
  9684. )
  9685. "
  9686. >
  9687. <img
  9688. :src="w.isLikes == true ? likes : noLikes"
  9689. alt=""
  9690. />
  9691. </div>
  9692. <div>{{ w.likesCount }}</div>
  9693. </div>
  9694. <div class="commentList" style="margin-right: 15px">
  9695. <div
  9696. class="commentImg"
  9697. @click="commentOther(w, toolIndex, wIndex)"
  9698. >
  9699. <img
  9700. src="../../assets/icon/comment/comment.png"
  9701. alt=""
  9702. />
  9703. </div>
  9704. <div>{{ w.commentCount }}</div>
  9705. </div>
  9706. </div>
  9707. </div>
  9708. </div>
  9709. </div>
  9710. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9711. 未提交
  9712. </div>
  9713. <div
  9714. class="noWorksS"
  9715. v-if="noWorksS && noWorksS[toolIndex].length"
  9716. >
  9717. <div
  9718. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9719. :key="sIndex"
  9720. class="noWorksName"
  9721. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9722. >
  9723. <el-tooltip
  9724. effect="dark"
  9725. :content="s.student"
  9726. placement="top"
  9727. >
  9728. <span>{{ s.student }}</span>
  9729. </el-tooltip>
  9730. </div>
  9731. </div>
  9732. </div>
  9733. <div
  9734. v-if="
  9735. tType &&
  9736. tType == 2 &&
  9737. !sIsOpen &&
  9738. tool.tool.indexOf(48) != -1
  9739. "
  9740. class="worksBox"
  9741. >
  9742. <div
  9743. class="zuoyeYulan"
  9744. v-if="workStudent[toolIndex].length > 0"
  9745. >
  9746. <span class="worksTitle">作业预览</span>
  9747. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9748. </div>
  9749. <div
  9750. class="worksDetailBox"
  9751. v-if="workStudent[toolIndex].length > 0"
  9752. >
  9753. <div
  9754. class="works"
  9755. style="
  9756. width: 200px;
  9757. height: 140px;
  9758. margin: 10px 10px 10px 0;
  9759. box-shadow: 0 0 6px 1px #dfdada;
  9760. "
  9761. v-for="(w, wIndex) in workStudent[toolIndex]"
  9762. :key="wIndex"
  9763. >
  9764. <div class="workImg">
  9765. <img :src="word" @click="openTable(w)" alt />
  9766. <div
  9767. class="answerScore"
  9768. v-if="w.score"
  9769. @click.stop="openScore(w)"
  9770. :class="{
  9771. rightW:
  9772. w.userid == userid || tType == 1 || tType == 4
  9773. }"
  9774. >
  9775. {{ JSON.parse(w.score).wScore }}分
  9776. </div>
  9777. <div
  9778. class="answerScore"
  9779. @click.stop="openScore(w)"
  9780. v-else-if="courseDetail.userid == userid"
  9781. :class="{
  9782. rightW:
  9783. w.userid == userid || tType == 1 || tType == 4
  9784. }"
  9785. >
  9786. 评分
  9787. </div>
  9788. <div
  9789. class="stuLookScore"
  9790. v-if="
  9791. w.userid == userid ||
  9792. (tType == 1 &&
  9793. courseDetail.state == 5 &&
  9794. ((chapInfoList[courseType].chapterInfo[0]
  9795. .taskJson[taskCount].eList &&
  9796. chapInfoList[courseType].chapterInfo[0]
  9797. .taskJson[taskCount].eList.length) ||
  9798. (tool.eList && tool.eList.length)))
  9799. "
  9800. >
  9801. <el-popover
  9802. placement="top"
  9803. width="318"
  9804. trigger="hover"
  9805. >
  9806. <markScore
  9807. :loading="AIloading[toolIndex][wIndex].loading"
  9808. :markScoreVisible="markScoreVisible"
  9809. :ref="`markSco${toolIndex}${wIndex}`"
  9810. @updateLoading="updateLoading"
  9811. @updateDocSco="updateDocSco"
  9812. @refreshOther="refreshOther"
  9813. @markScoreDig="markScoreDig"
  9814. :tool="tool"
  9815. :wIndex="wIndex"
  9816. :scoCon="w"
  9817. :toolIndex="toolIndex"
  9818. :key="refreshKey"
  9819. :stage="courseType"
  9820. :task="taskCount"
  9821. :scoTit="
  9822. chapInfoList[courseType].chapterInfo[0]
  9823. .taskJson[taskCount].eList
  9824. "
  9825. >
  9826. </markScore>
  9827. <div
  9828. @click="
  9829. markScoreDig2(
  9830. w.sName,
  9831. worksStudent,
  9832. w.userid,
  9833. toolIndex,
  9834. chapInfoList[courseType].chapterInfo[0]
  9835. .taskJson[taskCount].eList,
  9836. AIloading[toolIndex][wIndex].loading,
  9837. tool
  9838. )
  9839. "
  9840. slot="reference"
  9841. >
  9842. <span v-if="AIloading[toolIndex][wIndex].sco">
  9843. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9844. </span>
  9845. <span v-else>
  9846. 评分
  9847. </span>
  9848. </div>
  9849. </el-popover>
  9850. </div>
  9851. <img
  9852. class="deleteImg"
  9853. src="../../assets/deleteworks.png"
  9854. v-if="
  9855. w.userid == userid || tType == 1 || tType == 4
  9856. "
  9857. @click.stop="deleteWorks(w.wid)"
  9858. alt
  9859. />
  9860. </div>
  9861. <div class="worksName">
  9862. <div>{{ w.sName }}</div>
  9863. </div>
  9864. </div>
  9865. </div>
  9866. </div>
  9867. <div
  9868. v-if="
  9869. tType &&
  9870. ((tType == 2 && sIsOpen == true) ||
  9871. tType == 1 ||
  9872. tType == 4) &&
  9873. tool.tool.indexOf(52) != -1
  9874. "
  9875. class="worksBox"
  9876. >
  9877. <div
  9878. class="zuoyeYulan"
  9879. style="display: flex;justify-content: space-between;align-items: center;"
  9880. v-if="
  9881. worksStudent.length &&
  9882. worksStudent[toolIndex].length > 0
  9883. "
  9884. >
  9885. <div class="worksTop">
  9886. <div>作业预览</div>
  9887. <div
  9888. class="corOpen"
  9889. @click="contract(toolIndex)"
  9890. v-if="
  9891. isCloseList[toolIndex].isCloseBoolean &&
  9892. isCloseList[toolIndex].isClose == 0
  9893. "
  9894. >
  9895. 折叠
  9896. </div>
  9897. <div
  9898. class="corOpen"
  9899. @click="contract(toolIndex)"
  9900. v-if="isCloseList[toolIndex].isClose == 1"
  9901. >
  9902. 展开
  9903. </div>
  9904. </div>
  9905. <div
  9906. style="display: flex;"
  9907. v-if="
  9908. (courseDetail.userid == userid ||
  9909. (courseDetail.course_teacher &&
  9910. courseDetail.course_teacher.indexOf(userid) !=
  9911. -1)) &&
  9912. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9913. taskCount
  9914. ].eList &&
  9915. chapInfoList[courseType].chapterInfo[0].taskJson[
  9916. taskCount
  9917. ].eList.length) ||
  9918. (tool.eList && tool.eList.length)) &&
  9919. courseDetail.state == 5
  9920. "
  9921. >
  9922. <!-- <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"> -->
  9923. <div
  9924. @click="
  9925. resetLoopEva(
  9926. worksStudent[toolIndex],
  9927. chapInfoList[courseType].chapterInfo[0].taskJson[
  9928. taskCount
  9929. ].eList,
  9930. courseType,
  9931. taskCount,
  9932. toolIndex,
  9933. tool.toolDetail,
  9934. tool
  9935. )
  9936. "
  9937. style="margin-right:10px"
  9938. class="ScoreBtn"
  9939. >
  9940. 一键重置
  9941. </div>
  9942. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9943. <img
  9944. src="../../assets/icon/newIcons/rootImg.png"
  9945. alt=""
  9946. />
  9947. AI评分
  9948. </div>
  9949. <div
  9950. class="ScoreBtn"
  9951. v-else-if="!loopLoading[toolIndex].loading"
  9952. @click="
  9953. loopEva(
  9954. worksStudent[toolIndex],
  9955. chapInfoList[courseType].chapterInfo[0].taskJson[
  9956. taskCount
  9957. ].eList,
  9958. courseType,
  9959. taskCount,
  9960. toolIndex,
  9961. tool.toolDetail,
  9962. chapInfoList[courseType].chapterInfo[0].taskJson[
  9963. taskCount
  9964. ].taskDetail,
  9965. tool
  9966. )
  9967. "
  9968. >
  9969. <img
  9970. src="../../assets/icon/newIcons/rootImg.png"
  9971. alt=""
  9972. />
  9973. AI评分
  9974. </div>
  9975. <div class="ScoreBtn" v-else>
  9976. <img
  9977. src="../../assets/icon/newIcons/rootImg.png"
  9978. alt=""
  9979. />
  9980. 正在评分
  9981. </div>
  9982. </div>
  9983. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9984. </div>
  9985. <div
  9986. :id="'tool-' + toolIndex"
  9987. :style="{
  9988. height:
  9989. isCloseList[toolIndex].isClose == 1
  9990. ? retrnToolHeight('tool-' + toolIndex)
  9991. : 'auto',
  9992. overflow:
  9993. isCloseList[toolIndex].isClose == 1
  9994. ? 'hidden'
  9995. : 'unset'
  9996. }"
  9997. class="worksDetailBox"
  9998. v-if="
  9999. worksStudent.length &&
  10000. worksStudent[toolIndex].length > 0
  10001. "
  10002. >
  10003. <div
  10004. class="works"
  10005. style="
  10006. width: 200px;
  10007. height: 140px;
  10008. margin: 10px 10px 10px 0;
  10009. border-radius: 15px;
  10010. box-shadow: 0 0 6px 1px #dfdada;
  10011. "
  10012. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10013. :key="wIndex"
  10014. :class="w.type == 1 ? 'isTypeOne' : ''"
  10015. >
  10016. <div class="workImg">
  10017. <img :src="word" @click="openWord(w)" alt />
  10018. <!-- @click="openFile(w.works)" -->
  10019. <div
  10020. class="answerScore"
  10021. v-if="w.score"
  10022. @click.stop="openScore(w)"
  10023. :class="{
  10024. rightW:
  10025. w.userid == userid ||
  10026. tType == 1 ||
  10027. tType == 4 ||
  10028. w.ateacher == userid
  10029. }"
  10030. >
  10031. {{ JSON.parse(w.score).wScore }}分
  10032. </div>
  10033. <div
  10034. class="answerScore"
  10035. @click.stop="openScore(w)"
  10036. v-else-if="
  10037. courseDetail.userid == userid &&
  10038. courseDetail.state != 5 &&
  10039. chapInfoList[courseType].chapterInfo[0]
  10040. .taskJson[taskCount].eList &&
  10041. chapInfoList[courseType].chapterInfo[0]
  10042. .taskJson[taskCount].eList.length
  10043. "
  10044. :class="{
  10045. rightW:
  10046. w.userid == userid ||
  10047. tType == 1 ||
  10048. tType == 4 ||
  10049. w.ateacher == userid
  10050. }"
  10051. >
  10052. 评分
  10053. </div>
  10054. <!-- <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"> -->
  10055. <div
  10056. v-else-if="
  10057. (courseDetail.userid == userid ||
  10058. (courseDetail.course_teacher &&
  10059. courseDetail.course_teacher.indexOf(userid) !=
  10060. -1) ||
  10061. (w.userid == userid && sIsOpen)) &&
  10062. courseDetail.state == 5 &&
  10063. ((chapInfoList[courseType].chapterInfo[0]
  10064. .taskJson[taskCount].eList &&
  10065. chapInfoList[courseType].chapterInfo[0]
  10066. .taskJson[taskCount].eList.length) ||
  10067. (tool.eList && tool.eList.length))
  10068. "
  10069. >
  10070. <!-- <div
  10071. class="answerScore"
  10072. @click="markScoreDig(w.userid,toolIndex)"
  10073. :class="{
  10074. rightW:
  10075. w.userid == userid ||
  10076. tType == 1 ||
  10077. tType == 4 ||
  10078. w.ateacher == userid,
  10079. }"
  10080. >
  10081. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10082. </div> -->
  10083. <!-- @show="handleShow(toolIndex,wIndex)"
  10084. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10085. <el-popover
  10086. placement="top"
  10087. width="318"
  10088. :disabled="AIloading[toolIndex][wIndex].loading"
  10089. trigger="hover"
  10090. >
  10091. <markScore
  10092. :loading="AIloading[toolIndex][wIndex].loading"
  10093. :markScoreVisible="markScoreVisible"
  10094. :ref="`markSco${toolIndex}${wIndex}`"
  10095. @updateLoading="updateLoading"
  10096. @updateDocSco="updateDocSco"
  10097. @refreshOther="refreshOther"
  10098. @markScoreDig="markScoreDig"
  10099. :tool="tool"
  10100. :wIndex="wIndex"
  10101. :scoCon="w"
  10102. :toolIndex="toolIndex"
  10103. :key="refreshKey"
  10104. :stage="courseType"
  10105. :task="taskCount"
  10106. :scoTit="
  10107. chapInfoList[courseType].chapterInfo[0]
  10108. .taskJson[taskCount].eList
  10109. "
  10110. >
  10111. </markScore>
  10112. <div
  10113. class="answerScore"
  10114. @click="
  10115. markScoreDig2(
  10116. w.sName,
  10117. worksStudent,
  10118. w.userid,
  10119. toolIndex,
  10120. chapInfoList[courseType].chapterInfo[0]
  10121. .taskJson[taskCount].eList,
  10122. AIloading[toolIndex][wIndex].loading,
  10123. tool
  10124. )
  10125. "
  10126. slot="reference"
  10127. :class="{
  10128. rightW:
  10129. w.userid == userid ||
  10130. tType == 1 ||
  10131. tType == 4 ||
  10132. w.ateacher == userid
  10133. }"
  10134. >
  10135. <span v-if="AIloading[toolIndex][wIndex].sco">
  10136. {{
  10137. AIloading[toolIndex][wIndex].loading
  10138. ? "评分中"
  10139. : AIloading[toolIndex][wIndex].sco + "分"
  10140. }}
  10141. </span>
  10142. <span v-else>
  10143. {{
  10144. AIloading[toolIndex][wIndex].loading
  10145. ? "评分中"
  10146. : "评分"
  10147. }}
  10148. </span>
  10149. </div>
  10150. </el-popover>
  10151. </div>
  10152. <img
  10153. class="deleteImg"
  10154. src="../../assets/deleteworks.png"
  10155. v-if="
  10156. w.userid == userid || tType == 1 || tType == 4
  10157. "
  10158. @click.stop="deleteWorks(w.wid)"
  10159. alt
  10160. />
  10161. </div>
  10162. <div class="comment" style="min-width: 200px">
  10163. <div class="worksName">
  10164. <div>{{ w.sName }}</div>
  10165. </div>
  10166. <div class="commentList">
  10167. <div class="commentList">
  10168. <div
  10169. class="commentImg"
  10170. @click="
  10171. isLikes(
  10172. w.wid,
  10173. userid,
  10174. 1,
  10175. null,
  10176. w.isLikes,
  10177. w.sName
  10178. )
  10179. "
  10180. >
  10181. <img
  10182. :src="w.isLikes == true ? likes : noLikes"
  10183. alt=""
  10184. />
  10185. </div>
  10186. <div>{{ w.likesCount }}</div>
  10187. </div>
  10188. <div class="commentList" style="margin-right: 15px">
  10189. <div
  10190. class="commentImg"
  10191. @click="commentOther(w, toolIndex, wIndex)"
  10192. >
  10193. <img
  10194. src="../../assets/icon/comment/comment.png"
  10195. alt=""
  10196. />
  10197. </div>
  10198. <div>{{ w.commentCount }}</div>
  10199. </div>
  10200. </div>
  10201. </div>
  10202. </div>
  10203. </div>
  10204. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10205. 未提交
  10206. </div>
  10207. <div
  10208. class="noWorksS"
  10209. v-if="noWorksS && noWorksS[toolIndex].length"
  10210. >
  10211. <div
  10212. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10213. :key="sIndex"
  10214. class="noWorksName"
  10215. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10216. >
  10217. <el-tooltip
  10218. effect="dark"
  10219. :content="s.student"
  10220. placement="top"
  10221. >
  10222. <span>{{ s.student }}</span>
  10223. </el-tooltip>
  10224. </div>
  10225. </div>
  10226. </div>
  10227. <div
  10228. v-if="
  10229. tType &&
  10230. tType == 2 &&
  10231. !sIsOpen &&
  10232. tool.tool.indexOf(52) != -1
  10233. "
  10234. class="worksBox"
  10235. >
  10236. <div
  10237. class="zuoyeYulan"
  10238. v-if="workStudent[toolIndex].length > 0"
  10239. >
  10240. <span class="worksTitle">作业预览</span>
  10241. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10242. </div>
  10243. <div
  10244. class="worksDetailBox"
  10245. v-if="workStudent[toolIndex].length > 0"
  10246. >
  10247. <div
  10248. class="works"
  10249. style="
  10250. width: 200px;
  10251. height: 140px;
  10252. margin: 10px 10px 10px 0;
  10253. box-shadow: 0 0 6px 1px #dfdada;
  10254. "
  10255. v-for="(w, wIndex) in workStudent[toolIndex]"
  10256. :key="wIndex"
  10257. >
  10258. <div class="workImg">
  10259. <img :src="word" @click="openWord(w)" alt />
  10260. <div
  10261. class="answerScore"
  10262. v-if="w.score"
  10263. @click.stop="openScore(w)"
  10264. :class="{
  10265. rightW:
  10266. w.userid == userid || tType == 1 || tType == 4
  10267. }"
  10268. >
  10269. {{ JSON.parse(w.score).wScore }}分
  10270. </div>
  10271. <div
  10272. class="answerScore"
  10273. @click.stop="openScore(w)"
  10274. v-else-if="courseDetail.userid == userid"
  10275. :class="{
  10276. rightW:
  10277. w.userid == userid || tType == 1 || tType == 4
  10278. }"
  10279. >
  10280. 评分
  10281. </div>
  10282. <div
  10283. class="stuLookScore"
  10284. v-if="
  10285. w.userid == userid ||
  10286. (tType == 1 &&
  10287. courseDetail.state == 5 &&
  10288. ((chapInfoList[courseType].chapterInfo[0]
  10289. .taskJson[taskCount].eList &&
  10290. chapInfoList[courseType].chapterInfo[0]
  10291. .taskJson[taskCount].eList.length) ||
  10292. (tool.eList && tool.eList.length)))
  10293. "
  10294. >
  10295. <el-popover
  10296. placement="top"
  10297. width="318"
  10298. trigger="hover"
  10299. >
  10300. <markScore
  10301. :loading="AIloading[toolIndex][wIndex].loading"
  10302. :markScoreVisible="markScoreVisible"
  10303. :ref="`markSco${toolIndex}${wIndex}`"
  10304. @updateLoading="updateLoading"
  10305. @updateDocSco="updateDocSco"
  10306. @refreshOther="refreshOther"
  10307. @markScoreDig="markScoreDig"
  10308. :tool="tool"
  10309. :wIndex="wIndex"
  10310. :scoCon="w"
  10311. :toolIndex="toolIndex"
  10312. :key="refreshKey"
  10313. :stage="courseType"
  10314. :task="taskCount"
  10315. :scoTit="
  10316. chapInfoList[courseType].chapterInfo[0]
  10317. .taskJson[taskCount].eList
  10318. "
  10319. >
  10320. </markScore>
  10321. <div
  10322. @click="
  10323. markScoreDig2(
  10324. w.sName,
  10325. worksStudent,
  10326. w.userid,
  10327. toolIndex,
  10328. chapInfoList[courseType].chapterInfo[0]
  10329. .taskJson[taskCount].eList,
  10330. AIloading[toolIndex][wIndex].loading,
  10331. tool
  10332. )
  10333. "
  10334. slot="reference"
  10335. >
  10336. <span v-if="AIloading[toolIndex][wIndex].sco">
  10337. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10338. </span>
  10339. <span v-else>
  10340. 评分
  10341. </span>
  10342. </div>
  10343. </el-popover>
  10344. </div>
  10345. <img
  10346. class="deleteImg"
  10347. src="../../assets/deleteworks.png"
  10348. v-if="
  10349. w.userid == userid || tType == 1 || tType == 4
  10350. "
  10351. @click.stop="deleteWorks(w.wid)"
  10352. alt
  10353. />
  10354. </div>
  10355. <div class="worksName">
  10356. <div>{{ w.sName }}</div>
  10357. </div>
  10358. </div>
  10359. </div>
  10360. </div>
  10361. <div
  10362. v-if="tool.tool.indexOf(49) != -1"
  10363. class="xuan_right_box"
  10364. style="margin: 0 15px 0 25px; width: 93%"
  10365. >
  10366. <div
  10367. v-if="courseDetail.userid == userid"
  10368. style="
  10369. display: flex;
  10370. justify-content: flex-end;
  10371. margin-right: 10px;
  10372. "
  10373. >
  10374. <el-button
  10375. type="primary"
  10376. size="small"
  10377. @click="addTools(49, toolIndex, taskCount)"
  10378. >分组设置</el-button
  10379. >
  10380. </div>
  10381. <div
  10382. v-if="groupStudentUid[toolIndex]"
  10383. class="group_staic_box"
  10384. >
  10385. <div
  10386. v-for="(gp, gd) in tool.groupJson.group"
  10387. :key="gd"
  10388. class="group_staic"
  10389. >
  10390. <span> {{ gp.name }}</span>
  10391. <span>
  10392. 目前人数{{
  10393. groupStudentUid[toolIndex][gd].length
  10394. }}人</span
  10395. >
  10396. </div>
  10397. </div>
  10398. </div>
  10399. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10400. <div
  10401. class="zuoyeYulan"
  10402. v-if="
  10403. worksStudent.length &&
  10404. worksStudent[toolIndex].length > 0
  10405. "
  10406. >
  10407. <span class="worksTitle">作业预览</span>
  10408. </div>
  10409. <div>
  10410. <div
  10411. class="group_workBox"
  10412. v-for="(g, gindex) in tool.groupJson.group"
  10413. :key="gindex"
  10414. >
  10415. <div
  10416. class="group_box"
  10417. v-if="
  10418. groupStudentUid[toolIndex] &&
  10419. worksStudent[toolIndex] &&
  10420. (worksStudent[toolIndex][gindex].length ||
  10421. groupStudentUid[toolIndex][gindex].indexOf(
  10422. userid
  10423. ) != -1)
  10424. "
  10425. >
  10426. <div class="group_title">
  10427. <el-tooltip
  10428. class="item"
  10429. effect="light"
  10430. :content="g.name"
  10431. placement="top"
  10432. >
  10433. <div class="group_name">{{ g.name }}</div>
  10434. </el-tooltip>
  10435. <el-button
  10436. type="primary"
  10437. v-if="
  10438. groupStudentUid[toolIndex][gindex].indexOf(
  10439. userid
  10440. ) != -1
  10441. "
  10442. @click="groupUpload(toolIndex, taskCount, gindex)"
  10443. >上传作业</el-button
  10444. >
  10445. </div>
  10446. <div class="group_work">
  10447. <div
  10448. class="works"
  10449. style="
  10450. width: 200px;
  10451. height: 140px;
  10452. margin: 10px 10px 10px 0;
  10453. border-radius: 15px;
  10454. box-shadow: 0 0 6px 1px #dfdada;
  10455. "
  10456. v-for="(w, wIndex) in worksStudent[toolIndex][
  10457. gindex
  10458. ]"
  10459. :key="wIndex"
  10460. :class="w.type == 1 ? 'isTypeOne' : ''"
  10461. >
  10462. <div class="workImg" v-if="w.type == 0">
  10463. <img
  10464. :src="w.works"
  10465. @click="previewImg(w.works, w)"
  10466. alt
  10467. />
  10468. <div
  10469. class="answerScore"
  10470. v-if="w.score"
  10471. @click.stop="openScore(w)"
  10472. :class="{
  10473. rightW:
  10474. w.userid == userid ||
  10475. tType == 1 ||
  10476. tType == 4 ||
  10477. w.ateacher == userid
  10478. }"
  10479. >
  10480. {{ JSON.parse(w.score).wScore }}分
  10481. </div>
  10482. <div
  10483. class="answerScore"
  10484. @click.stop="openScore(w)"
  10485. v-else-if="courseDetail.userid == userid"
  10486. :class="{
  10487. rightW:
  10488. w.userid == userid ||
  10489. tType == 1 ||
  10490. tType == 4 ||
  10491. w.ateacher == userid
  10492. }"
  10493. >
  10494. 评分
  10495. </div>
  10496. <img
  10497. class="deleteImg"
  10498. src="../../assets/deleteworks.png"
  10499. v-if="
  10500. w.userid == userid ||
  10501. tType == 1 ||
  10502. tType == 4
  10503. "
  10504. @click.stop="deleteWorks(w.wid)"
  10505. alt
  10506. />
  10507. </div>
  10508. <div class="workImg" v-if="w.type == 1">
  10509. <img
  10510. :src="word"
  10511. @click="openFile(w.works)"
  10512. alt
  10513. />
  10514. <!-- @click="openFile(w.works)" -->
  10515. <div
  10516. class="answerScore"
  10517. v-if="w.score"
  10518. @click.stop="openScore(w)"
  10519. :class="{
  10520. rightW:
  10521. w.userid == userid ||
  10522. tType == 1 ||
  10523. tType == 4 ||
  10524. w.ateacher == userid
  10525. }"
  10526. >
  10527. {{ JSON.parse(w.score).wScore }}分
  10528. </div>
  10529. <div
  10530. class="answerScore"
  10531. @click.stop="openScore(w)"
  10532. v-else-if="courseDetail.userid == userid"
  10533. :class="{
  10534. rightW:
  10535. w.userid == userid ||
  10536. tType == 1 ||
  10537. tType == 4 ||
  10538. w.ateacher == userid
  10539. }"
  10540. >
  10541. 评分
  10542. </div>
  10543. <img
  10544. class="deleteImg"
  10545. src="../../assets/deleteworks.png"
  10546. v-if="
  10547. w.userid == userid ||
  10548. tType == 1 ||
  10549. tType == 4
  10550. "
  10551. @click.stop="deleteWorks(w.wid)"
  10552. alt
  10553. />
  10554. </div>
  10555. <div class="workImg" v-if="w.type == 3">
  10556. <img
  10557. style="cursor: pointer"
  10558. :src="video"
  10559. @click="openVideo(w)"
  10560. alt
  10561. />
  10562. <!-- @click="openVideo(w.works)" -->
  10563. <div
  10564. class="answerScore"
  10565. v-if="w.score"
  10566. @click.stop="openScore(w)"
  10567. :class="{
  10568. rightW:
  10569. w.userid == userid ||
  10570. tType == 1 ||
  10571. tType == 4 ||
  10572. w.ateacher == userid
  10573. }"
  10574. >
  10575. {{ JSON.parse(w.score).wScore }}分
  10576. </div>
  10577. <div
  10578. class="answerScore"
  10579. @click.stop="openScore(w)"
  10580. v-else-if="courseDetail.userid == userid"
  10581. :class="{
  10582. rightW:
  10583. w.userid == userid ||
  10584. tType == 1 ||
  10585. tType == 4 ||
  10586. w.ateacher == userid
  10587. }"
  10588. >
  10589. 评分
  10590. </div>
  10591. <img
  10592. class="deleteImg"
  10593. src="../../assets/deleteworks.png"
  10594. v-if="
  10595. w.userid == userid ||
  10596. tType == 1 ||
  10597. tType == 4
  10598. "
  10599. @click.stop="deleteWorks(w.wid)"
  10600. alt
  10601. />
  10602. </div>
  10603. <div class="workImg" v-if="w.type == 12">
  10604. <img
  10605. style="cursor: pointer"
  10606. :src="word2"
  10607. @click="downloadFile(w.works)"
  10608. alt
  10609. />
  10610. <!-- @click="openVideo(w.works)" -->
  10611. <div
  10612. class="answerScore"
  10613. v-if="w.score"
  10614. @click.stop="openScore(w)"
  10615. :class="{
  10616. rightW:
  10617. w.userid == userid ||
  10618. tType == 1 ||
  10619. tType == 4 ||
  10620. w.ateacher == userid
  10621. }"
  10622. >
  10623. {{ JSON.parse(w.score).wScore }}分
  10624. </div>
  10625. <div
  10626. class="answerScore"
  10627. @click.stop="openScore(w)"
  10628. v-else-if="courseDetail.userid == userid"
  10629. :class="{
  10630. rightW:
  10631. w.userid == userid ||
  10632. tType == 1 ||
  10633. tType == 4 ||
  10634. w.ateacher == userid
  10635. }"
  10636. >
  10637. 评分
  10638. </div>
  10639. <img
  10640. class="deleteImg"
  10641. src="../../assets/deleteworks.png"
  10642. v-if="
  10643. w.userid == userid ||
  10644. tType == 1 ||
  10645. tType == 4
  10646. "
  10647. @click.stop="deleteWorks(w.wid)"
  10648. alt
  10649. />
  10650. </div>
  10651. <div class="comment" style="min-width: 200px">
  10652. <div class="worksName">
  10653. <div>{{ w.sName }}</div>
  10654. </div>
  10655. <div class="commentList">
  10656. <div class="commentList">
  10657. <div
  10658. class="commentImg"
  10659. @click="
  10660. isLikes(
  10661. w.wid,
  10662. userid,
  10663. 1,
  10664. null,
  10665. w.isLikes,
  10666. w.sName
  10667. )
  10668. "
  10669. >
  10670. <img
  10671. :src="
  10672. w.isLikes == true ? likes : noLikes
  10673. "
  10674. alt=""
  10675. />
  10676. </div>
  10677. <div>{{ w.likesCount }}</div>
  10678. </div>
  10679. <div
  10680. class="commentList"
  10681. style="margin-right: 15px"
  10682. >
  10683. <div
  10684. class="commentImg"
  10685. @click="
  10686. commentOther(
  10687. w,
  10688. toolIndex,
  10689. wIndex,
  10690. gindex
  10691. )
  10692. "
  10693. >
  10694. <img
  10695. src="../../assets/icon/comment/comment.png"
  10696. alt=""
  10697. />
  10698. </div>
  10699. <div>{{ w.commentCount }}</div>
  10700. </div>
  10701. </div>
  10702. </div>
  10703. </div>
  10704. </div>
  10705. </div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. <div
  10710. style="width:92%;margin: 0 0 0 40px;"
  10711. v-if="
  10712. courseDetail.state == 5 && tool.eList && tool.eList.length
  10713. "
  10714. >
  10715. <evaTable :eList="tool.eList"></evaTable>
  10716. </div>
  10717. </div>
  10718. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10719. 上传文件
  10720. <input
  10721. type="file"
  10722. accept="image/png, image/gif, image/jpeg"
  10723. style="display: none"
  10724. @change="beforeUpload1($event, 2, index)"
  10725. />
  10726. </div>-->
  10727. </div>
  10728. </div>
  10729. <!-- <div
  10730. class="vedioBox"
  10731. style="margin-top: 10px"
  10732. v-if="
  10733. courseDetail.userid == userid ||
  10734. (courseDetail.course_teacher &&
  10735. courseDetail.course_teacher.indexOf(userid) != -1)
  10736. "
  10737. :style="{
  10738. borderRadius:
  10739. !(
  10740. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10741. .toolChoose[0].tool &&
  10742. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10743. .toolChoose[0].tool.length > 0
  10744. ) &&
  10745. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10746. .taskDetail == '' &&
  10747. vChapterData[taskCount].length == 0 &&
  10748. fileC[taskCount].length == 0
  10749. ? '0 0 20px 20px'
  10750. : '20px',
  10751. }"
  10752. >
  10753. <div
  10754. class="queTop"
  10755. @click="isClose = !isClose"
  10756. style="
  10757. padding: 15px 0 15px 37px;
  10758. justify-content: space-between;
  10759. "
  10760. >
  10761. <div class="queTopTitle">新增工具</div>
  10762. <div class="queTopRight">
  10763. <div class="queTopClose" v-if="isClose == 0">
  10764. 展开
  10765. <div class="closeImg">
  10766. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10767. </div>
  10768. </div>
  10769. <div class="queTopClose" v-if="isClose == 1">
  10770. 折叠
  10771. <div class="openImg">
  10772. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10773. </div>
  10774. </div>
  10775. <el-button
  10776. style="margin: 0 30px 0 auto"
  10777. type="primary"
  10778. size="small"
  10779. v-if="isClose == 1 && checktoolArray.length > 0"
  10780. @click.stop="addToolChoose"
  10781. >确定</el-button
  10782. >
  10783. </div>
  10784. </div>
  10785. <div
  10786. class="tool_work_box"
  10787. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10788. >
  10789. <div class="tool_box">
  10790. <div class="tool_type_box">
  10791. <div class="chooseWho">
  10792. <div
  10793. :class="toolType == 0 ? 'isChooseActive' : ''"
  10794. @click="(toolType = 0), $forceUpdate()"
  10795. >
  10796. 互动类
  10797. </div>
  10798. <div
  10799. :class="toolType == 1 ? 'isChooseActive' : ''"
  10800. @click="(toolType = 1), $forceUpdate()"
  10801. >
  10802. 思维类
  10803. </div>
  10804. <div
  10805. :class="toolType == 2 ? 'isChooseActive' : ''"
  10806. @click="(toolType = 2), $forceUpdate()"
  10807. >
  10808. 测评类
  10809. </div>
  10810. <div
  10811. :class="toolType == 3 ? 'isChooseActive' : ''"
  10812. @click="(toolType = 3), $forceUpdate()"
  10813. >
  10814. 编程类
  10815. </div>
  10816. <div
  10817. :class="toolType == 5 ? 'isChooseActive' : ''"
  10818. @click="(toolType = 5), $forceUpdate()"
  10819. >
  10820. 学科类
  10821. </div>
  10822. </div>
  10823. </div>
  10824. <div>
  10825. <div class="toolSort" v-if="toolType == 0">
  10826. <div class="tool">
  10827. <div class="whiteBIcon" @click="addTools2(10)">
  10828. <img
  10829. src="../../assets/icon/thirdToolList/time.png"
  10830. alt
  10831. />
  10832. <div style="margin: 5px 0">倒计时</div>
  10833. </div>
  10834. <div class="check" @click="addTools2(10)">
  10835. <img
  10836. src="../../assets/icon/checkNo.png"
  10837. alt
  10838. v-if="checktoolArray.indexOf(10) == -1"
  10839. />
  10840. <div class="checkDiv" v-else>
  10841. <img src="../../assets/icon/checkedIs.png" alt /><span
  10842. >已选择</span
  10843. >
  10844. </div>
  10845. </div>
  10846. </div>
  10847. <div class="tool">
  10848. <div class="whiteBIcon" @click="addTools2(65)">
  10849. <img
  10850. src="../../assets/icon/firstToolList/pickPeople.png"
  10851. alt
  10852. />
  10853. <div style="margin: 5px 0">挑人</div>
  10854. </div>
  10855. <div class="check" @click="addTools2(65)">
  10856. <img
  10857. src="../../assets/icon/checkNo.png"
  10858. alt
  10859. v-if="checktoolArray.indexOf(65) == -1"
  10860. />
  10861. <div class="checkDiv" v-else>
  10862. <img src="../../assets/icon/checkedIs.png" alt /><span
  10863. >已选择</span
  10864. >
  10865. </div>
  10866. </div>
  10867. </div>
  10868. </div>
  10869. <div class="toolSort" v-if="toolType == 1">
  10870. <div class="tool">
  10871. <div class="whiteBIcon" @click="addTools2(7)">
  10872. <img
  10873. src="../../assets/icon/secondToolList/mindNetwork.png"
  10874. alt
  10875. />
  10876. <div style="margin: 5px 0">思维网格</div>
  10877. </div>
  10878. <div class="check" @click="addTools2(7)">
  10879. <img
  10880. src="../../assets/icon/checkNo.png"
  10881. alt
  10882. v-if="checktoolArray.indexOf(7) == -1"
  10883. />
  10884. <div class="checkDiv" v-else>
  10885. <img src="../../assets/icon/checkedIs.png" alt /><span
  10886. >已选择</span
  10887. >
  10888. </div>
  10889. </div>
  10890. </div>
  10891. <div class="tool">
  10892. <div class="whiteBIcon" @click="addTools2(1)">
  10893. <img
  10894. src="../../assets/icon/secondToolList/whiteBoard.png"
  10895. alt
  10896. />
  10897. <div style="margin: 5px 0">电子白板</div>
  10898. </div>
  10899. <div class="check" @click="addTools2(1)">
  10900. <img
  10901. src="../../assets/icon/checkNo.png"
  10902. alt
  10903. v-if="checktoolArray.indexOf(1) == -1"
  10904. />
  10905. <div class="checkDiv" v-else>
  10906. <img src="../../assets/icon/checkedIs.png" alt /><span
  10907. >已选择</span
  10908. >
  10909. </div>
  10910. </div>
  10911. </div>
  10912. <div class="tool">
  10913. <div class="whiteBIcon" @click="addTools2(52)">
  10914. <img
  10915. src="../../assets/icon/fourthToolList/text.png"
  10916. alt
  10917. />
  10918. <div style="margin: 5px 0">文档</div>
  10919. </div>
  10920. <div class="check" @click="addTools2(52)">
  10921. <img
  10922. src="../../assets/icon/checkNo.png"
  10923. alt
  10924. v-if="checktoolArray.indexOf(52) == -1"
  10925. />
  10926. <div class="checkDiv" v-else>
  10927. <img src="../../assets/icon/checkedIs.png" alt /><span
  10928. >已选择</span
  10929. >
  10930. </div>
  10931. </div>
  10932. </div>
  10933. <div class="tool">
  10934. <div class="whiteBIcon" @click="addTools2(3)">
  10935. <img
  10936. src="../../assets/icon/secondToolList/mindMapping.png"
  10937. alt
  10938. />
  10939. <div style="margin: 5px 0">思维导图</div>
  10940. </div>
  10941. <div class="check" @click="addTools2(3)">
  10942. <img
  10943. src="../../assets/icon/checkNo.png"
  10944. alt
  10945. v-if="checktoolArray.indexOf(3) == -1"
  10946. />
  10947. <div class="checkDiv" v-else>
  10948. <img src="../../assets/icon/checkedIs.png" alt /><span
  10949. >已选择</span
  10950. >
  10951. </div>
  10952. </div>
  10953. </div>
  10954. <div class="tool">
  10955. <div class="whiteBIcon" @click="addTools2(48)">
  10956. <img
  10957. src="../../assets/icon/fourthToolList/table.png"
  10958. alt
  10959. />
  10960. <div style="margin: 5px 0">表格</div>
  10961. </div>
  10962. <div class="check" @click="addTools2(48)">
  10963. <img
  10964. src="../../assets/icon/checkNo.png"
  10965. alt
  10966. v-if="checktoolArray.indexOf(48) == -1"
  10967. />
  10968. <div class="checkDiv" v-else>
  10969. <img src="../../assets/icon/checkedIs.png" alt /><span
  10970. >已选择</span
  10971. >
  10972. </div>
  10973. </div>
  10974. </div>
  10975. </div>
  10976. <div class="toolSort" v-if="toolType == 6">
  10977. <div v-show="tooC == 49">
  10978. <img
  10979. @click="addTools(tooC, toolIndex, taskCount)"
  10980. src="../../assets/icon/fourthToolList/group.png"
  10981. alt
  10982. />
  10983. <div style="margin: 5px 0">学生分组</div>
  10984. </div>
  10985. </div>
  10986. <div class="toolSort" v-if="toolType == 2">
  10987. <div class="tool">
  10988. <div class="whiteBIcon" @click="addTools2(16)">
  10989. <img
  10990. src="../../assets/icon/thirdToolList/work.png"
  10991. alt
  10992. />
  10993. <div style="margin: 5px 0">作业提交</div>
  10994. </div>
  10995. <div class="check" @click="addTools2(16)">
  10996. <img
  10997. src="../../assets/icon/checkNo.png"
  10998. alt
  10999. v-if="checktoolArray.indexOf(16) == -1"
  11000. />
  11001. <div class="checkDiv" v-else>
  11002. <img src="../../assets/icon/checkedIs.png" alt /><span
  11003. >已选择</span
  11004. >
  11005. </div>
  11006. </div>
  11007. </div>
  11008. <div class="tool">
  11009. <div class="whiteBIcon" @click="addTools2(50)">
  11010. <img
  11011. src="../../assets/icon/thirdToolList/plwork.png"
  11012. alt
  11013. />
  11014. <div style="margin: 5px 0">批量上传</div>
  11015. </div>
  11016. <div class="check" @click="addTools2(50)">
  11017. <img
  11018. src="../../assets/icon/checkNo.png"
  11019. alt
  11020. v-if="checktoolArray.indexOf(50) == -1"
  11021. />
  11022. <div class="checkDiv" v-else>
  11023. <img src="../../assets/icon/checkedIs.png" alt /><span
  11024. >已选择</span
  11025. >
  11026. </div>
  11027. </div>
  11028. </div>
  11029. </div>
  11030. <div class="toolSort" v-if="toolType == 3">
  11031. <div class="tool">
  11032. <div class="whiteBIcon" @click="addTools2(18)">
  11033. <img
  11034. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11035. alt
  11036. />
  11037. <div style="margin: 5px 0">训练平台</div>
  11038. </div>
  11039. <div class="check" @click="addTools2(18)">
  11040. <img
  11041. src="../../assets/icon/checkNo.png"
  11042. alt
  11043. v-if="checktoolArray.indexOf(18) == -1"
  11044. />
  11045. <div class="checkDiv" v-else>
  11046. <img src="../../assets/icon/checkedIs.png" alt /><span
  11047. >已选择</span
  11048. >
  11049. </div>
  11050. </div>
  11051. </div>
  11052. <div class="tool">
  11053. <div class="whiteBIcon" @click="addTools2(21)">
  11054. <img
  11055. src="../../assets/icon/fourthToolList/program.png"
  11056. alt
  11057. />
  11058. <div style="margin: 5px 0">AIoT Blockly</div>
  11059. </div>
  11060. <div class="check" @click="addTools2(21)">
  11061. <img
  11062. src="../../assets/icon/checkNo.png"
  11063. alt
  11064. v-if="checktoolArray.indexOf(21) == -1"
  11065. />
  11066. <div class="checkDiv" v-else>
  11067. <img src="../../assets/icon/checkedIs.png" alt /><span
  11068. >已选择</span
  11069. >
  11070. </div>
  11071. </div>
  11072. </div>
  11073. <div class="tool">
  11074. <div class="whiteBIcon" @click="addTools2(23)">
  11075. <img
  11076. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11077. alt
  11078. />
  11079. <div style="margin: 5px 0">AI Python</div>
  11080. </div>
  11081. <div class="check" @click="addTools2(23)">
  11082. <img
  11083. src="../../assets/icon/checkNo.png"
  11084. alt
  11085. v-if="checktoolArray.indexOf(23) == -1"
  11086. />
  11087. <div class="checkDiv" v-else>
  11088. <img src="../../assets/icon/checkedIs.png" alt /><span
  11089. >已选择</span
  11090. >
  11091. </div>
  11092. </div>
  11093. </div>
  11094. <div class="tool">
  11095. <div class="whiteBIcon" @click="addTools2(24)">
  11096. <img
  11097. src="../../assets/icon/fourthToolList/AIprogram.png"
  11098. alt
  11099. />
  11100. <div style="margin: 5px 0">AI Blockly</div>
  11101. </div>
  11102. <div class="check" @click="addTools2(24)">
  11103. <img
  11104. src="../../assets/icon/checkNo.png"
  11105. alt
  11106. v-if="checktoolArray.indexOf(24) == -1"
  11107. />
  11108. <div class="checkDiv" v-else>
  11109. <img src="../../assets/icon/checkedIs.png" alt /><span
  11110. >已选择</span
  11111. >
  11112. </div>
  11113. </div>
  11114. </div>
  11115. <div class="tool">
  11116. <div class="whiteBIcon" @click="addTools2(32)">
  11117. <img
  11118. src="../../assets/icon/thirdToolList/code.png"
  11119. alt
  11120. />
  11121. <div style="margin: 5px 0">源码编辑</div>
  11122. </div>
  11123. <div class="check" @click="addTools2(32)">
  11124. <img
  11125. src="../../assets/icon/checkNo.png"
  11126. alt
  11127. v-if="checktoolArray.indexOf(32) == -1"
  11128. />
  11129. <div class="checkDiv" v-else>
  11130. <img src="../../assets/icon/checkedIs.png" alt /><span
  11131. >已选择</span
  11132. >
  11133. </div>
  11134. </div>
  11135. </div>
  11136. <div class="tool">
  11137. <div class="whiteBIcon" @click="addTools2(57)">
  11138. <img
  11139. src="../../assets/icon/fourthToolList/cocopi.png"
  11140. alt
  11141. />
  11142. <div style="margin: 5px 0">CocoPi</div>
  11143. </div>
  11144. <div class="check" @click="addTools2(57)">
  11145. <img
  11146. src="../../assets/icon/checkNo.png"
  11147. alt
  11148. v-if="checktoolArray.indexOf(57) == -1"
  11149. />
  11150. <div class="checkDiv" v-else>
  11151. <img src="../../assets/icon/checkedIs.png" alt /><span
  11152. >已选择</span
  11153. >
  11154. </div>
  11155. </div>
  11156. </div>
  11157. <div class="tool">
  11158. <div class="whiteBIcon" @click="addTools2(63)">
  11159. <img
  11160. src="../../assets/icon/fourthToolList/Wood.png"
  11161. alt
  11162. />
  11163. <div style="margin: 5px 0">海龟编程</div>
  11164. </div>
  11165. <div class="check" @click="addTools2(63)">
  11166. <img
  11167. src="../../assets/icon/checkNo.png"
  11168. alt
  11169. v-if="checktoolArray.indexOf(63) == -1"
  11170. />
  11171. <div class="checkDiv" v-else>
  11172. <img src="../../assets/icon/checkedIs.png" alt /><span
  11173. >已选择</span
  11174. >
  11175. </div>
  11176. </div>
  11177. </div>
  11178. </div>
  11179. <div class="toolSort" v-if="toolType == 5">
  11180. <div class="tool">
  11181. <div class="whiteBIcon" @click="addTools2(28)">
  11182. <img
  11183. src="../../assets/icon/secondToolList/translation.png"
  11184. alt
  11185. />
  11186. <div style="margin: 5px 0">翻译</div>
  11187. </div>
  11188. <div class="check" @click="addTools2(28)">
  11189. <img
  11190. src="../../assets/icon/checkNo.png"
  11191. alt
  11192. v-if="checktoolArray.indexOf(28) == -1"
  11193. />
  11194. <div class="checkDiv" v-else>
  11195. <img src="../../assets/icon/checkedIs.png" alt /><span
  11196. >已选择</span
  11197. >
  11198. </div>
  11199. </div>
  11200. </div>
  11201. <div class="tool">
  11202. <div class="whiteBIcon" @click="addTools2(31)">
  11203. <img
  11204. src="../../assets/icon/secondToolList/networkPanel.png"
  11205. alt
  11206. />
  11207. <div style="margin: 5px 0">数字画板</div>
  11208. </div>
  11209. <div class="check" @click="addTools2(31)">
  11210. <img
  11211. src="../../assets/icon/checkNo.png"
  11212. alt
  11213. v-if="checktoolArray.indexOf(31) == -1"
  11214. />
  11215. <div class="checkDiv" v-else>
  11216. <img src="../../assets/icon/checkedIs.png" alt /><span
  11217. >已选择</span
  11218. >
  11219. </div>
  11220. </div>
  11221. </div>
  11222. <div class="tool">
  11223. <div class="whiteBIcon" @click="addTools2(39)">
  11224. <img
  11225. src="../../assets/icon/secondToolList/GeoGebra.png"
  11226. alt
  11227. />
  11228. <div style="margin: 5px 0">GeoGebra</div>
  11229. </div>
  11230. <div class="check" @click="addTools2(39)">
  11231. <img
  11232. src="../../assets/icon/checkNo.png"
  11233. alt
  11234. v-if="checktoolArray.indexOf(39) == -1"
  11235. />
  11236. <div class="checkDiv" v-else>
  11237. <img src="../../assets/icon/checkedIs.png" alt /><span
  11238. >已选择</span
  11239. >
  11240. </div>
  11241. </div>
  11242. </div>
  11243. <div class="tool">
  11244. <div class="whiteBIcon" @click="addTools2(66)">
  11245. <img
  11246. src="../../assets/icon/secondToolList/formulaEdi.png"
  11247. alt
  11248. />
  11249. <div style="margin: 5px 0">公式编辑</div>
  11250. </div>
  11251. <div class="check" @click="addTools2(66)">
  11252. <img
  11253. src="../../assets/icon/checkNo.png"
  11254. alt
  11255. v-if="checktoolArray.indexOf(66) == -1"
  11256. />
  11257. <div class="checkDiv" v-else>
  11258. <img src="../../assets/icon/checkedIs.png" alt /><span
  11259. >已选择</span
  11260. >
  11261. </div>
  11262. </div>
  11263. </div>
  11264. <div class="tool">
  11265. <div class="whiteBIcon" @click="addTools2(67)">
  11266. <img
  11267. src="../../assets/icon/secondToolList/molStr.png"
  11268. alt
  11269. />
  11270. <div style="margin: 5px 0">分子结构</div>
  11271. </div>
  11272. <div class="check" @click="addTools2(67)">
  11273. <img
  11274. src="../../assets/icon/checkNo.png"
  11275. alt
  11276. v-if="checktoolArray.indexOf(67) == -1"
  11277. />
  11278. <div class="checkDiv" v-else>
  11279. <img src="../../assets/icon/checkedIs.png" alt /><span
  11280. >已选择</span
  11281. >
  11282. </div>
  11283. </div>
  11284. </div>
  11285. <div class="tool">
  11286. <div class="whiteBIcon" @click="addTools2(68)">
  11287. <img
  11288. src="../../assets/icon/secondToolList/timeAxis.png"
  11289. alt
  11290. />
  11291. <div style="margin: 5px 0">时间轴</div>
  11292. </div>
  11293. <div class="check" @click="addTools2(68)">
  11294. <img
  11295. src="../../assets/icon/checkNo.png"
  11296. alt
  11297. v-if="checktoolArray.indexOf(68) == -1"
  11298. />
  11299. <div class="checkDiv" v-else>
  11300. <img src="../../assets/icon/checkedIs.png" alt /><span
  11301. >已选择</span
  11302. >
  11303. </div>
  11304. </div>
  11305. </div>
  11306. </div>
  11307. <div class="toolSort" v-if="toolType == 7">
  11308. <div class="tool">
  11309. <div class="whiteBIcon" @click="addTools2(40)">
  11310. <img
  11311. src="../../assets/icon/secondToolList/eval.png"
  11312. alt
  11313. />
  11314. <div style="margin: 5px 0">个人评价</div>
  11315. </div>
  11316. <div class="check" @click="addTools2(40)">
  11317. <img
  11318. src="../../assets/icon/checkNo.png"
  11319. alt
  11320. v-if="checktoolArray.indexOf(40) == -1"
  11321. />
  11322. <div class="checkDiv" v-else>
  11323. <img src="../../assets/icon/checkedIs.png" alt /><span
  11324. >已选择</span
  11325. >
  11326. </div>
  11327. </div>
  11328. </div>
  11329. </div>
  11330. <div class="toolSort" v-if="toolType == 4">
  11331. <div class="tool">
  11332. <div class="whiteBIcon" @click="addTools2(26)">
  11333. <img
  11334. src="../../assets/icon/thirdToolList/courseDesign.png"
  11335. alt
  11336. />
  11337. <div style="margin: 5px 0">课程设计</div>
  11338. </div>
  11339. <div class="check" @click="addTools2(26)">
  11340. <img
  11341. src="../../assets/icon/checkNo.png"
  11342. alt
  11343. v-if="checktoolArray.indexOf(26) == -1"
  11344. />
  11345. <div class="checkDiv" v-else>
  11346. <img src="../../assets/icon/checkedIs.png" alt /><span
  11347. >已选择</span
  11348. >
  11349. </div>
  11350. </div>
  11351. </div>
  11352. <div class="tool">
  11353. <div class="whiteBIcon" @click="addTools2(25)">
  11354. <img
  11355. src="../../assets/icon/thirdToolList/evalua.png"
  11356. alt
  11357. />
  11358. <div style="margin: 5px 0">目标管理</div>
  11359. </div>
  11360. <div class="check" @click="addTools2(25)">
  11361. <img
  11362. src="../../assets/icon/checkNo.png"
  11363. alt
  11364. v-if="checktoolArray.indexOf(25) == -1"
  11365. />
  11366. <div class="checkDiv" v-else>
  11367. <img src="../../assets/icon/checkedIs.png" alt /><span
  11368. >已选择</span
  11369. >
  11370. </div>
  11371. </div>
  11372. </div>
  11373. </div>
  11374. </div>
  11375. </div>
  11376. </div>
  11377. </div> -->
  11378. <div
  11379. class="vedioBox"
  11380. style="margin-top: 10px; border-radius: 20px"
  11381. v-if="
  11382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11383. .eList &&
  11384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11385. .eList.length &&
  11386. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11387. .eList.length > 0 &&
  11388. tType != 2
  11389. "
  11390. >
  11391. <div
  11392. class="queTop"
  11393. style="
  11394. font-size: 20px;
  11395. padding: 15px 0 15px 37px;
  11396. font-weight: bold;
  11397. "
  11398. >
  11399. <!-- <div class="question" style="width: 30px">
  11400. <img src="../assets/icon/toolIcon.png" alt />
  11401. </div>
  11402. <div class="queTitle">
  11403. <div>工具</div>
  11404. </div>-->
  11405. 评一评
  11406. </div>
  11407. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11408. <div
  11409. class="elist_input"
  11410. :style="{
  11411. marginLeft: '20px',
  11412. width: evalua
  11413. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  11414. taskCount
  11415. ].isEvaFold2
  11416. ? '45%'
  11417. : 'calc(100% - 180px)'
  11418. : 'calc(100% - 20px)'
  11419. }"
  11420. >
  11421. <el-table
  11422. :data="
  11423. chapInfoList[courseType].chapterInfo[0].taskJson[
  11424. taskCount
  11425. ].eList
  11426. "
  11427. :header-cell-style="{ background: '#F0F4FA' }"
  11428. :row-class-name="tableRowClassName"
  11429. border
  11430. stripe
  11431. style="width: 100%"
  11432. >
  11433. <el-table-column
  11434. :width="courseDetail.state == 5 ? '230' : '150'"
  11435. label="目标"
  11436. align="center"
  11437. >
  11438. <template slot-scope="scope">
  11439. <div
  11440. style="display:flex;justify-content: center;align-items: center;"
  11441. >
  11442. <img
  11443. class="blueRootCss"
  11444. v-if="
  11445. scope.row.isai == 1 ||
  11446. (!scope.row.isai && courseDetail.state == 5)
  11447. "
  11448. src="../../assets/icon/newIcons/blueRoot.png"
  11449. alt=""
  11450. />
  11451. <div v-if="courseDetail.state == 5">
  11452. {{ scope.row.target ? scope.row.target : "-" }}
  11453. </div>
  11454. <div v-else>
  11455. {{
  11456. scope.row.target
  11457. ? scope.row.target[scope.row.target.length - 1]
  11458. : "-"
  11459. }}
  11460. </div>
  11461. </div>
  11462. </template></el-table-column
  11463. >
  11464. <el-table-column
  11465. label="评价维度"
  11466. align="center"
  11467. v-if="courseDetail.state != 5"
  11468. >
  11469. <template slot-scope="scope"
  11470. ><div>{{ scope.row.value }}</div></template
  11471. >
  11472. </el-table-column>
  11473. <el-table-column
  11474. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  11475. align="center"
  11476. >
  11477. <template slot-scope="scope"
  11478. ><div>
  11479. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11480. </div></template
  11481. >
  11482. </el-table-column>
  11483. <el-table-column
  11484. label="细则"
  11485. align="center"
  11486. v-if="courseDetail.state == 5"
  11487. >
  11488. <template slot-scope="scope"
  11489. ><div
  11490. style="display:flex;justify-content: space-around;margin:auto"
  11491. v-if="scope.row.rule"
  11492. >
  11493. <el-popover
  11494. placement="top"
  11495. width="350"
  11496. trigger="hover"
  11497. >
  11498. <div
  11499. v-html="scope.row.rule"
  11500. style="white-space:pre-wrap"
  11501. ></div>
  11502. <div
  11503. slot="reference"
  11504. style="color:#4383FF;cursor: pointer;"
  11505. >
  11506. 查看
  11507. </div>
  11508. </el-popover>
  11509. </div>
  11510. <div v-else>-</div>
  11511. </template>
  11512. </el-table-column>
  11513. </el-table>
  11514. <!-- <div
  11515. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11516. .chapterInfo[0].taskJson[taskCount].eList"
  11517. :key="eIndex"
  11518. class="elist_input_box"
  11519. >
  11520. <div style="width: 95%">
  11521. <div
  11522. style="
  11523. display: flex;
  11524. flex-direction: row;
  11525. flex-wrap: nowrap;
  11526. align-items: center;
  11527. "
  11528. >
  11529. <div style="max-width: calc(100% - 285px)">
  11530. <span>{{ eItem.value }}</span>
  11531. </div>
  11532. <div
  11533. style="
  11534. padding-left: 25px;
  11535. display: flex;
  11536. flex-direction: row;
  11537. align-items: center;
  11538. "
  11539. >
  11540. <el-rate
  11541. v-model="eItem.score"
  11542. :colors="colors"
  11543. disabled
  11544. ></el-rate>
  11545. </div>
  11546. </div>
  11547. <div class="elist_inptu_text" style="padding-left: 10px">
  11548. <span v-if="eItem.detail != ''">{{
  11549. eItem.detail
  11550. }}</span>
  11551. <span v-else style="color: #b2b1b3; font-size: 14px"
  11552. >暂无描述...</span
  11553. >
  11554. </div>
  11555. </div>
  11556. </div> -->
  11557. </div>
  11558. <div
  11559. v-if="evalua"
  11560. style="
  11561. border: 1px solid #e5e5e5;
  11562. max-width: 650px;
  11563. width: 100%;
  11564. margin-top: 20px;
  11565. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11566. "
  11567. :style="{
  11568. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11569. taskCount
  11570. ].isEvaFold2
  11571. ? '100%'
  11572. : '116px'
  11573. }"
  11574. >
  11575. <div class="e_add_top">
  11576. <div class="e_add_title" style="width: 100%">
  11577. <!-- <span>目标管理名称</span> -->
  11578. <span
  11579. v-if="
  11580. chapInfoList[courseType].chapterInfo[0].taskJson[
  11581. taskCount
  11582. ].isEvaFold2
  11583. "
  11584. >{{ eTitle }}</span
  11585. >
  11586. <img
  11587. v-if="
  11588. chapInfoList[courseType].chapterInfo[0].taskJson[
  11589. taskCount
  11590. ].isEvaFold2
  11591. "
  11592. src="../../assets/line.png"
  11593. class="cru_line"
  11594. style="
  11595. width: 125px;
  11596. height: 20px;
  11597. bottom: -10px;
  11598. left: 5px;
  11599. "
  11600. />
  11601. <!-- <el-input
  11602. v-model="eTitle"
  11603. placeholder="请输入名称"
  11604. @change="setMindData"
  11605. ></el-input>-->
  11606. <div
  11607. v-show="
  11608. chapInfoList[courseType].chapterInfo[0].taskJson[
  11609. taskCount
  11610. ].isEvaFold2
  11611. "
  11612. class="show_taskD show"
  11613. style="margin:0 0 0 auto"
  11614. @click="foldEva()"
  11615. >
  11616. <img
  11617. src="../../assets/icon/newIcon/icon-slide.png"
  11618. />收起目标
  11619. </div>
  11620. <div
  11621. v-show="
  11622. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11623. taskCount
  11624. ].isEvaFold2
  11625. "
  11626. style="margin:0 0 0 auto"
  11627. class="show_taskD"
  11628. @click="foldEva()"
  11629. >
  11630. <img
  11631. src="../../assets/icon/newIcon/icon-slide.png"
  11632. />展开目标
  11633. </div>
  11634. </div>
  11635. </div>
  11636. <div
  11637. class="e_add_content"
  11638. v-if="
  11639. chapInfoList[courseType].chapterInfo[0].taskJson[
  11640. taskCount
  11641. ].isEvaFold2
  11642. "
  11643. >
  11644. <div class="e_add_list_pbox">
  11645. <div class="e_add_list_pbox_title">
  11646. <!-- <span class="type_title">切换模式</span> -->
  11647. <div class="type_content">
  11648. <span
  11649. :class="{ active: typeMode == 1 }"
  11650. @click="typeMode = 1"
  11651. >目标树</span
  11652. >
  11653. <span
  11654. :class="{ active: typeMode == 2 }"
  11655. @click="typeMode = 2"
  11656. >目标罗盘</span
  11657. >
  11658. <!-- <span
  11659. :class="{ active: typeMode == 3 }"
  11660. @click="typeMode = 3"
  11661. >目标看板</span
  11662. > -->
  11663. </div>
  11664. </div>
  11665. <div
  11666. class="e_add_list_pbox_content"
  11667. style="min-height: 200px;"
  11668. >
  11669. <Mind
  11670. :showBar="false"
  11671. :mindData="data"
  11672. style="width: 100%"
  11673. v-show="typeMode == 1"
  11674. ></Mind>
  11675. <Sunburst
  11676. :Josn="eJson"
  11677. :num="eJSONNum"
  11678. style="width: 100%"
  11679. v-if="typeMode == 2"
  11680. ></Sunburst>
  11681. <SeeBoard
  11682. :Josn="eJson"
  11683. :num="eJSONNum"
  11684. :ename="eTitle"
  11685. style="width: 100%"
  11686. v-if="typeMode == 3"
  11687. >
  11688. </SeeBoard>
  11689. </div>
  11690. </div>
  11691. </div>
  11692. </div>
  11693. </div>
  11694. </div>
  11695. <!-- <div
  11696. class="project_box"
  11697. style="margin-top: 15px; padding-bottom: 30px"
  11698. >
  11699. <div
  11700. style="
  11701. display: flex;
  11702. flex-wrap: nowrap;
  11703. flex-direction: column;
  11704. position: relative;
  11705. "
  11706. >
  11707. <div class="queTop">
  11708. <div class="question">
  11709. <img src="../../assets/icon/homeWork.png" alt="" />
  11710. </div>
  11711. <div class="queTitle">
  11712. <div>作业提交<span>(提交图文视频等)</span></div>
  11713. <div>:任务:{{ task.task }}</div>
  11714. </div>
  11715. </div>
  11716. <div class="ediBottom">
  11717. <div
  11718. class="addEditor"
  11719. style="margin-top: 23px"
  11720. @click="openAddWork"
  11721. v-if="!isNoHomeWork"
  11722. >
  11723. 选择文件
  11724. </div>
  11725. <div
  11726. class="addEditor"
  11727. style="margin-top: 23px"
  11728. @click="openAddWork"
  11729. v-else
  11730. >
  11731. 已提交
  11732. </div>
  11733. </div>
  11734. </div>
  11735. </div>-->
  11736. </div>
  11737. </div>
  11738. <el-dialog
  11739. title="作业提交"
  11740. :visible.sync="dialogVisible"
  11741. :append-to-body="true"
  11742. width="500px"
  11743. :before-close="handleClose"
  11744. class="dialog_change"
  11745. >
  11746. <div class="marginT">
  11747. <div>上传文件</div>
  11748. <div
  11749. class="chapter_add"
  11750. @click="addImg($event)"
  11751. v-if="studyJuri[0].cover.length == 0"
  11752. >
  11753. <div class="up_photo">
  11754. <img src="../../assets/icon/uploadImg.png" alt />
  11755. </div>
  11756. <!-- <input
  11757. type="file"
  11758. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11759. style="display: none"
  11760. @change="beforeUpload1($event, 1)"
  11761. /> -->
  11762. <input
  11763. v-if="isAndroid"
  11764. type="file"
  11765. accept="image/*"
  11766. capture="camera"
  11767. style="display: none"
  11768. @change="beforeUpload1($event, 1)"
  11769. />
  11770. <input
  11771. v-else
  11772. type="file"
  11773. accept="*"
  11774. style="display: none"
  11775. @change="beforeUpload1($event, 1)"
  11776. />
  11777. <!-- <input
  11778. type="file"
  11779. accept="image/*"
  11780. capture="camera"
  11781. style="display: none"
  11782. @change="beforeUpload1($event, 1)"
  11783. /> -->
  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. )
  11868. "
  11869. ></classRoomHelper>
  11870. <div
  11871. class="pButton"
  11872. @click="(pzDialog = true), selectPz()"
  11873. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11874. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11875. >
  11876. <!-- 批 -->
  11877. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11878. </div>
  11879. <div
  11880. v-if="pzDialog == true"
  11881. class="newDialogCss"
  11882. :style="`right:${commentRight}`"
  11883. >
  11884. <div class="pzTop2">
  11885. <!-- <div>评论</div>
  11886. <div @click="pzDialog = false">
  11887. <img src="../../assets/close1.png" alt="" />
  11888. </div> -->
  11889. <div class="checkbox">
  11890. <!-- <div class="check" style="font-size: 25px; position: unset">
  11891. 评论
  11892. </div> -->
  11893. <div class="cb-tabList">
  11894. <div
  11895. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11896. @click="commentTagShow = 0"
  11897. >
  11898. 评论
  11899. </div>
  11900. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11901. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11902. <div
  11903. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11904. @click="commentTagShow = 2"
  11905. >
  11906. 总评
  11907. </div>
  11908. </div>
  11909. <el-select
  11910. v-model="pzStype"
  11911. @change="selectPz"
  11912. class="selectBox"
  11913. v-show="commentTagShow == 0"
  11914. >
  11915. <el-option label="时间降序" :value="1"></el-option>
  11916. <el-option label="时间升序" :value="2"></el-option>
  11917. <el-option label="我的评课" :value="3"></el-option>
  11918. </el-select>
  11919. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11920. </div>
  11921. </div>
  11922. <div
  11923. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11924. v-if="commentTagShow == 0"
  11925. >
  11926. <div class="pzListBox" v-if="pzList && pzList.length">
  11927. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11928. <div class="pzNavTop">
  11929. <div>评</div>
  11930. <div>
  11931. {{
  11932. pz.username && pz.username.length > 5
  11933. ? pz.username.substring(0, 5) + "..."
  11934. : pz.username
  11935. }}的评论
  11936. </div>
  11937. <div
  11938. class="pzDelete"
  11939. v-if="pz.userid == userid"
  11940. @click="deletePz(pz.id)"
  11941. >
  11942. 删除
  11943. </div>
  11944. </div>
  11945. <div
  11946. @click="checkImg(getImgList(pz.content))"
  11947. class="pzContent cont"
  11948. v-html="pz.content"
  11949. v-if="pz.type == '1'"
  11950. ></div>
  11951. <div class="pzContent" v-if="pz.type == '2'">
  11952. <audio :src="pz.content" controls="controls" ref="audio">
  11953. Your browser does not support the audio element.
  11954. </audio>
  11955. </div>
  11956. <div class="pzContent" v-if="pz.type == '3'">
  11957. <img
  11958. :src="pz.content"
  11959. style="width: 90%; margin: 0 auto; display: block"
  11960. @click="previewImg(pz.content)"
  11961. />
  11962. </div>
  11963. <div class="timeAndReply">
  11964. <div class="time">
  11965. {{ pz.time }}
  11966. </div>
  11967. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11968. </div>
  11969. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11970. <div
  11971. v-for="(h, hIndex) in pz.hfList"
  11972. :key="hIndex"
  11973. class="hfItem"
  11974. >
  11975. <div class="whoReplyWho">
  11976. <div class="hfName">{{ h.username }}</div>
  11977. <div class="hfImg">
  11978. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11979. </div>
  11980. <div class="hfName">{{ pz.username }}</div>
  11981. </div>
  11982. <div class="hfContent" v-html="h.content"></div>
  11983. <div class="hfBottom">
  11984. <div class="hfTime">{{ h.time }}</div>
  11985. <div
  11986. class="deleteHfItem"
  11987. @click="deleteReply(h.id)"
  11988. v-if="userid == h.userid"
  11989. >
  11990. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11991. </div>
  11992. </div>
  11993. </div>
  11994. </div>
  11995. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11996. <div class="replyInput">
  11997. <el-input v-model="reply[pzIndex]"></el-input>
  11998. </div>
  11999. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  12000. </div> -->
  12001. </div>
  12002. </div>
  12003. <div class="noPz" v-else>
  12004. <img src="../../assets/icon/noPz.png" alt="" />
  12005. </div>
  12006. <div class="addPzButton">
  12007. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  12008. 添加评论
  12009. </div>
  12010. <!-- <div class="img1">
  12011. <div @click="(addPzDialog = true), (pzType = 2)">
  12012. <img src="../../assets/audio.png" /><span>音频</span>
  12013. </div>
  12014. </div> -->
  12015. </div>
  12016. </div>
  12017. <div class="scoreList" v-if="commentTagShow == 1">
  12018. <scoreItem
  12019. v-for="item in scoreList.datalist"
  12020. @refresh="getScoreList"
  12021. :data="item"
  12022. :isScore="
  12023. scoreList.isScoreList.filter(
  12024. i => i.userid == item.userid && i.courseid == item.courseId
  12025. )
  12026. "
  12027. :key="item.courseId"
  12028. />
  12029. </div>
  12030. <div
  12031. class="scoreList"
  12032. v-if="commentTagShow == 2"
  12033. style="position: relative"
  12034. >
  12035. <scoreZong
  12036. :courseid="id"
  12037. :userid="userid"
  12038. @insertMemorandum="insertMemorandum"
  12039. ></scoreZong>
  12040. </div>
  12041. </div>
  12042. <div
  12043. v-if="toolDialogVisible == true"
  12044. class="toolMask"
  12045. @click="toolDialogVisible = false"
  12046. ></div>
  12047. <div v-if="toolDialogVisible == true" class="addToolCss">
  12048. <div class="toolTop">
  12049. <div style="font-weight: bold">新增工具</div>
  12050. <div @click="toolDialogVisible = false">
  12051. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  12052. </div>
  12053. </div>
  12054. <div class="tool_box">
  12055. <div class="tool_type_box">
  12056. <div class="chooseWho">
  12057. <div
  12058. :class="toolType == 0 ? 'isChooseActive' : ''"
  12059. @click="(toolType = 0), $forceUpdate()"
  12060. >
  12061. 互动类
  12062. </div>
  12063. <div
  12064. :class="toolType == 1 ? 'isChooseActive' : ''"
  12065. @click="(toolType = 1), $forceUpdate()"
  12066. >
  12067. 思维类
  12068. </div>
  12069. <div
  12070. :class="toolType == 2 ? 'isChooseActive' : ''"
  12071. @click="(toolType = 2), $forceUpdate()"
  12072. >
  12073. 测评类
  12074. </div>
  12075. <div
  12076. :class="toolType == 3 ? 'isChooseActive' : ''"
  12077. @click="(toolType = 3), $forceUpdate()"
  12078. >
  12079. 编程类
  12080. </div>
  12081. <div
  12082. :class="toolType == 5 ? 'isChooseActive' : ''"
  12083. @click="(toolType = 5), $forceUpdate()"
  12084. >
  12085. 学科类
  12086. </div>
  12087. </div>
  12088. </div>
  12089. <div>
  12090. <div class="toolSort" v-if="toolType == 0">
  12091. <div
  12092. class="tool"
  12093. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  12094. @click="addTools2(10)"
  12095. >
  12096. <div class="whiteBIcon">
  12097. <img src="../../assets/icon/thirdToolList/time.png" alt />
  12098. <div style="margin: 5px 0">倒计时</div>
  12099. </div>
  12100. <div class="check">
  12101. <div
  12102. v-if="checktoolArray.indexOf(10) == -1"
  12103. class="noChoose"
  12104. ></div>
  12105. <div v-else class="isChoose"></div>
  12106. </div>
  12107. </div>
  12108. <div
  12109. class="tool"
  12110. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  12111. @click="addTools2(65)"
  12112. >
  12113. <div class="whiteBIcon">
  12114. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  12115. <div style="margin: 5px 0">挑人</div>
  12116. </div>
  12117. <div class="check">
  12118. <div
  12119. v-if="checktoolArray.indexOf(65) == -1"
  12120. class="noChoose"
  12121. ></div>
  12122. <div v-else class="isChoose"></div>
  12123. </div>
  12124. </div>
  12125. </div>
  12126. <div class="toolSort" v-if="toolType == 1">
  12127. <div
  12128. class="tool"
  12129. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  12130. @click="addTools2(7)"
  12131. >
  12132. <div class="whiteBIcon">
  12133. <img
  12134. src="../../assets/icon/secondToolList/mindNetwork.png"
  12135. alt
  12136. />
  12137. <div style="margin: 5px 0">思维网格</div>
  12138. </div>
  12139. <div class="check">
  12140. <div
  12141. v-if="checktoolArray.indexOf(7) == -1"
  12142. class="noChoose"
  12143. ></div>
  12144. <div v-else class="isChoose"></div>
  12145. </div>
  12146. </div>
  12147. <div
  12148. class="tool"
  12149. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  12150. @click="addTools2(1)"
  12151. >
  12152. <div class="whiteBIcon">
  12153. <img
  12154. src="../../assets/icon/secondToolList/whiteBoard.png"
  12155. alt
  12156. />
  12157. <div style="margin: 5px 0">电子白板</div>
  12158. </div>
  12159. <div class="check">
  12160. <div
  12161. v-if="checktoolArray.indexOf(1) == -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(52) != -1 }"
  12170. @click="addTools2(52)"
  12171. >
  12172. <div class="whiteBIcon">
  12173. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12174. <div style="margin: 5px 0">文档</div>
  12175. </div>
  12176. <div class="check">
  12177. <div
  12178. v-if="checktoolArray.indexOf(52) == -1"
  12179. class="noChoose"
  12180. ></div>
  12181. <div v-else class="isChoose"></div>
  12182. </div>
  12183. </div>
  12184. <div
  12185. class="tool"
  12186. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12187. @click="addTools2(3)"
  12188. >
  12189. <div class="whiteBIcon">
  12190. <img
  12191. src="../../assets/icon/secondToolList/mindMapping.png"
  12192. alt
  12193. />
  12194. <div style="margin: 5px 0">思维导图</div>
  12195. </div>
  12196. <div class="check">
  12197. <div
  12198. v-if="checktoolArray.indexOf(3) == -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(48) != -1 }"
  12207. @click="addTools2(48)"
  12208. >
  12209. <div class="whiteBIcon">
  12210. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12211. <div style="margin: 5px 0">表格</div>
  12212. </div>
  12213. <div class="check">
  12214. <div
  12215. v-if="checktoolArray.indexOf(48) == -1"
  12216. class="noChoose"
  12217. ></div>
  12218. <div v-else class="isChoose"></div>
  12219. </div>
  12220. </div>
  12221. </div>
  12222. <div class="toolSort" v-if="toolType == 6">
  12223. <div v-show="tooC == 49">
  12224. <img
  12225. @click="addTools(tooC, toolIndex, taskCount)"
  12226. src="../../assets/icon/fourthToolList/group.png"
  12227. alt
  12228. />
  12229. <div style="margin: 5px 0">学生分组</div>
  12230. </div>
  12231. </div>
  12232. <div class="toolSort" v-if="toolType == 2">
  12233. <div
  12234. class="tool"
  12235. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12236. @click="addTools2(16)"
  12237. >
  12238. <div class="whiteBIcon">
  12239. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12240. <div style="margin: 5px 0">作业提交</div>
  12241. </div>
  12242. <div class="check">
  12243. <div
  12244. v-if="checktoolArray.indexOf(16) == -1"
  12245. class="noChoose"
  12246. ></div>
  12247. <div v-else class="isChoose"></div>
  12248. </div>
  12249. </div>
  12250. <div
  12251. class="tool"
  12252. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12253. @click="addTools2(50)"
  12254. >
  12255. <div class="whiteBIcon">
  12256. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12257. <div style="margin: 5px 0">批量上传</div>
  12258. </div>
  12259. <div class="check">
  12260. <div
  12261. v-if="checktoolArray.indexOf(50) == -1"
  12262. class="noChoose"
  12263. ></div>
  12264. <div v-else class="isChoose"></div>
  12265. </div>
  12266. </div>
  12267. </div>
  12268. <div class="toolSort" v-if="toolType == 3">
  12269. <div
  12270. class="tool"
  12271. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12272. @click="addTools2(18)"
  12273. >
  12274. <div class="whiteBIcon">
  12275. <img
  12276. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12277. alt
  12278. />
  12279. <div style="margin: 5px 0">训练平台</div>
  12280. </div>
  12281. <div class="check">
  12282. <div
  12283. v-if="checktoolArray.indexOf(18) == -1"
  12284. class="noChoose"
  12285. ></div>
  12286. <div v-else class="isChoose"></div>
  12287. </div>
  12288. </div>
  12289. <div
  12290. class="tool"
  12291. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12292. @click="addTools2(21)"
  12293. >
  12294. <div class="whiteBIcon">
  12295. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12296. <div style="margin: 5px 0">AIoT Blockly</div>
  12297. </div>
  12298. <div class="check">
  12299. <div
  12300. v-if="checktoolArray.indexOf(21) == -1"
  12301. class="noChoose"
  12302. ></div>
  12303. <div v-else class="isChoose"></div>
  12304. </div>
  12305. </div>
  12306. <div
  12307. class="tool"
  12308. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12309. @click="addTools2(23)"
  12310. >
  12311. <div class="whiteBIcon">
  12312. <img
  12313. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12314. alt
  12315. />
  12316. <div style="margin: 5px 0">AI Python</div>
  12317. </div>
  12318. <div class="check">
  12319. <div
  12320. v-if="checktoolArray.indexOf(23) == -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(24) != -1 }"
  12329. @click="addTools2(24)"
  12330. >
  12331. <div class="whiteBIcon">
  12332. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12333. <div style="margin: 5px 0">AI Blockly</div>
  12334. </div>
  12335. <div class="check">
  12336. <div
  12337. v-if="checktoolArray.indexOf(24) == -1"
  12338. class="noChoose"
  12339. ></div>
  12340. <div v-else class="isChoose"></div>
  12341. </div>
  12342. </div>
  12343. <div
  12344. class="tool"
  12345. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12346. @click="addTools2(32)"
  12347. >
  12348. <div class="whiteBIcon">
  12349. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12350. <div style="margin: 5px 0">源码编辑</div>
  12351. </div>
  12352. <div class="check">
  12353. <div
  12354. v-if="checktoolArray.indexOf(32) == -1"
  12355. class="noChoose"
  12356. ></div>
  12357. <div v-else class="isChoose"></div>
  12358. </div>
  12359. </div>
  12360. <div
  12361. class="tool"
  12362. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12363. @click="addTools2(57)"
  12364. >
  12365. <div class="whiteBIcon">
  12366. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12367. <div style="margin: 5px 0">CocoPi</div>
  12368. </div>
  12369. <div class="check">
  12370. <div
  12371. v-if="checktoolArray.indexOf(57) == -1"
  12372. class="noChoose"
  12373. ></div>
  12374. <div v-else class="isChoose"></div>
  12375. </div>
  12376. </div>
  12377. <div
  12378. class="tool"
  12379. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12380. @click="addTools2(63)"
  12381. >
  12382. <div class="whiteBIcon">
  12383. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12384. <div style="margin: 5px 0">海龟编程</div>
  12385. </div>
  12386. <div class="check">
  12387. <div
  12388. v-if="checktoolArray.indexOf(63) == -1"
  12389. class="noChoose"
  12390. ></div>
  12391. <div v-else class="isChoose"></div>
  12392. </div>
  12393. </div>
  12394. <div
  12395. class="tool"
  12396. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12397. @click="addTools2(71)"
  12398. >
  12399. <div class="whiteBIcon">
  12400. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12401. <div style="margin: 5px 0">AI智能体</div>
  12402. </div>
  12403. <div class="check">
  12404. <div
  12405. v-if="checktoolArray.indexOf(71) == -1"
  12406. class="noChoose"
  12407. ></div>
  12408. <div v-else class="isChoose"></div>
  12409. </div>
  12410. </div>
  12411. </div>
  12412. <div class="toolSort" v-if="toolType == 7">
  12413. <div
  12414. class="tool"
  12415. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12416. @click="addTools2(40)"
  12417. >
  12418. <div class="whiteBIcon">
  12419. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12420. <div style="margin: 5px 0">个人评价</div>
  12421. </div>
  12422. <div class="check">
  12423. <div
  12424. v-if="checktoolArray.indexOf(40) == -1"
  12425. class="noChoose"
  12426. ></div>
  12427. <div v-else class="isChoose"></div>
  12428. </div>
  12429. </div>
  12430. </div>
  12431. <div class="toolSort" v-if="toolType == 5">
  12432. <div
  12433. class="tool"
  12434. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12435. @click="addTools2(28)"
  12436. >
  12437. <div class="whiteBIcon">
  12438. <img
  12439. src="../../assets/icon/secondToolList/translation.png"
  12440. alt
  12441. />
  12442. <div style="margin: 5px 0">翻译</div>
  12443. </div>
  12444. <div class="check">
  12445. <div
  12446. v-if="checktoolArray.indexOf(28) == -1"
  12447. class="noChoose"
  12448. ></div>
  12449. <div v-else class="isChoose"></div>
  12450. </div>
  12451. </div>
  12452. <div
  12453. class="tool"
  12454. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12455. @click="addTools2(31)"
  12456. >
  12457. <div class="whiteBIcon">
  12458. <img
  12459. src="../../assets/icon/secondToolList/networkPanel.png"
  12460. alt
  12461. />
  12462. <div style="margin: 5px 0">数字画板</div>
  12463. </div>
  12464. <div class="check">
  12465. <div
  12466. v-if="checktoolArray.indexOf(31) == -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(39) != -1 }"
  12475. @click="addTools2(39)"
  12476. >
  12477. <div class="whiteBIcon">
  12478. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12479. <div style="margin: 5px 0">GeoGebra</div>
  12480. </div>
  12481. <div class="check">
  12482. <div
  12483. v-if="checktoolArray.indexOf(39) == -1"
  12484. class="noChoose"
  12485. ></div>
  12486. <div v-else class="isChoose"></div>
  12487. </div>
  12488. </div>
  12489. <div
  12490. class="tool"
  12491. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12492. @click="addTools2(66)"
  12493. >
  12494. <div class="whiteBIcon">
  12495. <img
  12496. src="../../assets/icon/secondToolList/formulaEdi.png"
  12497. alt
  12498. />
  12499. <div style="margin: 5px 0">公式编辑</div>
  12500. </div>
  12501. <div class="check">
  12502. <div
  12503. v-if="checktoolArray.indexOf(66) == -1"
  12504. class="noChoose"
  12505. ></div>
  12506. <div v-else class="isChoose"></div>
  12507. </div>
  12508. </div>
  12509. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12510. <div class="whiteBIcon" @click="addTools2(67)">
  12511. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12512. <div style="margin: 5px 0">分子结构</div>
  12513. </div>
  12514. <div class="check" @click="addTools2(67)">
  12515. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12516. <div v-else class="isChoose"></div>
  12517. </div>
  12518. </div> -->
  12519. <div
  12520. class="tool"
  12521. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12522. @click="addTools2(68)"
  12523. >
  12524. <div class="whiteBIcon">
  12525. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12526. <div style="margin: 5px 0">时间轴</div>
  12527. </div>
  12528. <div class="check">
  12529. <div
  12530. v-if="checktoolArray.indexOf(68) == -1"
  12531. class="noChoose"
  12532. ></div>
  12533. <div v-else class="isChoose"></div>
  12534. </div>
  12535. </div>
  12536. <!-- <div
  12537. class="tool"
  12538. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12539. @click="addTools2(69)"
  12540. >
  12541. <div class="whiteBIcon">
  12542. <img src="../../assets/icon/secondToolList/english.png" alt />
  12543. <div style="margin: 5px 0">英语写作</div>
  12544. </div>
  12545. <div class="check">
  12546. <div
  12547. v-if="checktoolArray.indexOf(69) == -1"
  12548. class="noChoose"
  12549. ></div>
  12550. <div v-else class="isChoose"></div>
  12551. </div>
  12552. </div> -->
  12553. </div>
  12554. <div class="toolSort" v-if="toolType == 4">
  12555. <div
  12556. class="tool"
  12557. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12558. @click="addTools2(26)"
  12559. >
  12560. <div class="whiteBIcon">
  12561. <img
  12562. src="../../assets/icon/thirdToolList/courseDesign.png"
  12563. alt
  12564. />
  12565. <div style="margin: 5px 0">课程设计</div>
  12566. </div>
  12567. <div class="check">
  12568. <div
  12569. v-if="checktoolArray.indexOf(26) == -1"
  12570. class="noChoose"
  12571. ></div>
  12572. <div v-else class="isChoose"></div>
  12573. </div>
  12574. </div>
  12575. <div
  12576. class="tool"
  12577. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12578. @click="addTools2(25)"
  12579. >
  12580. <div class="whiteBIcon">
  12581. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12582. <div style="margin: 5px 0">目标管理</div>
  12583. </div>
  12584. <div class="check">
  12585. <div
  12586. v-if="checktoolArray.indexOf(25) == -1"
  12587. class="noChoose"
  12588. ></div>
  12589. <div v-else class="isChoose"></div>
  12590. </div>
  12591. </div>
  12592. </div>
  12593. </div>
  12594. </div>
  12595. <span
  12596. slot="footer"
  12597. class="dialog-footer"
  12598. style="display: block; text-align: center; padding: 0 0 10px 0"
  12599. >
  12600. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12601. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12602. </span>
  12603. </div>
  12604. <div
  12605. v-if="replyDialogVisible == true"
  12606. class="addDialogCss"
  12607. v-el-drag-dialog
  12608. >
  12609. <div class="pzTop">
  12610. <div class="teacherPz">
  12611. <div class="teacherPzImg">
  12612. <img src="../../assets/icon/teacherPz.png" alt="" />
  12613. </div>
  12614. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12615. </div>
  12616. <div @click="replyDialogVisible = false">
  12617. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12618. </div>
  12619. </div>
  12620. <div class="addPzBox">
  12621. <!-- <div class="addPzCheck">
  12622. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12623. >文本</span
  12624. >
  12625. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12626. >音频</span
  12627. >
  12628. </div> -->
  12629. <div style="height: calc(100% - 50px)">
  12630. <editor-bar
  12631. class="binfo_input pzConText"
  12632. style="width: 100% !important; margin: 0 auto"
  12633. placeholder="请输入回复描述"
  12634. v-model="reply"
  12635. @change="change"
  12636. ></editor-bar>
  12637. </div>
  12638. <div class="addTextCss" @click="addHf">确定</div>
  12639. </div>
  12640. </div>
  12641. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12642. <div class="pzTop">
  12643. <div class="teacherPz">
  12644. <div class="teacherPzImg">
  12645. <img src="../../assets/icon/teacherPz.png" alt="" />
  12646. </div>
  12647. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12648. </div>
  12649. <div @click="addPzDialog = false">
  12650. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12651. </div>
  12652. </div>
  12653. <div class="addPzBox">
  12654. <div class="addPzCheck">
  12655. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12656. >文本</span
  12657. >
  12658. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12659. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12660. >音频</span
  12661. >
  12662. </div>
  12663. <div style="height: calc(100% - 95px)">
  12664. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12665. v-if="pzType == 1"></textarea> -->
  12666. <editor-bar
  12667. class="binfo_input pzConText"
  12668. style="width: 100% !important"
  12669. placeholder="请输入任务描述"
  12670. v-model="pzConText"
  12671. @change="change"
  12672. v-if="pzType == 1"
  12673. ></editor-bar>
  12674. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12675. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12676. <div @click="addImg($event)">
  12677. <el-button type="primary">上传图片</el-button>
  12678. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12679. @change="beforeUpload1($event, 4)" />
  12680. </div>
  12681. </div> -->
  12682. </div>
  12683. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12684. 确定
  12685. </div>
  12686. </div>
  12687. </div>
  12688. <div v-if="proVisible" class="mask">
  12689. <div class="progressBox">
  12690. <!-- <div id="closePro" class="closeCss">
  12691. <img src="../../assets/icon/close.png" alt />
  12692. </div> -->
  12693. <div class="lbox">
  12694. <img src="../../assets/loading.gif" />上传中,请稍后
  12695. </div>
  12696. <div style="margin-bottom: 10px">
  12697. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12698. </div>
  12699. <el-progress
  12700. :text-inside="true"
  12701. :stroke-width="20"
  12702. :percentage="progress"
  12703. style="width: 80%"
  12704. ></el-progress>
  12705. </div>
  12706. </div>
  12707. <div v-if="proVisible2" class="mask">
  12708. <div class="progressBox">
  12709. <div class="lbox">
  12710. <img src="../../assets/loading.gif" />上传中,请稍后
  12711. </div>
  12712. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12713. </div>
  12714. </div>
  12715. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12716. <img width="100%" :src="dialogImageUrl" alt />
  12717. </el-dialog>
  12718. <el-dialog
  12719. :title="noteName != '' ? noteName : '查看问卷'"
  12720. :visible.sync="dialogVisible5"
  12721. :append-to-body="true"
  12722. width="1000px"
  12723. :before-close="handleClose"
  12724. class="dialog_diy dialog_diy3"
  12725. >
  12726. <div>
  12727. <div
  12728. class="a_add_title"
  12729. style="
  12730. display: flex;
  12731. flex-direction: row;
  12732. align-items: center;
  12733. justify-content: center;
  12734. "
  12735. >
  12736. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12737. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12738. </div>
  12739. <div class="a_addBox">
  12740. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12741. 题目内容
  12742. </div>
  12743. <div
  12744. class="a_add_box"
  12745. v-for="(item1, index1) in askJson.askCount"
  12746. :key="index1"
  12747. >
  12748. <div class="a_add_head">
  12749. <div style="display: flex">
  12750. <span class="askIndex"> {{ index1 + 1 }}</span>
  12751. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12752. </div>
  12753. <img
  12754. v-if="askJson.askJson[index1].img"
  12755. :src="askJson.askJson[index1].img"
  12756. style="height: 300px; margin-top: 10px; max-width: 100%"
  12757. />
  12758. </div>
  12759. <div class="a_add_body">
  12760. <div class="a_add_input">
  12761. <el-radio-group
  12762. v-model="radio[index1]"
  12763. v-if="
  12764. askJson.askJson[index1].type == '1' ||
  12765. !askJson.askJson[index1].type
  12766. "
  12767. >
  12768. <el-radio
  12769. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12770. .checkList"
  12771. :key="checkIndex"
  12772. :label="checkIndex"
  12773. :disabled="isAnswer"
  12774. class="redioStyle"
  12775. ><span v-html="item2"></span
  12776. ></el-radio>
  12777. </el-radio-group>
  12778. <el-checkbox-group
  12779. v-model="radio[index1]"
  12780. v-if="askJson.askJson[index1].type == '2'"
  12781. >
  12782. <el-checkbox
  12783. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12784. .checkList"
  12785. :key="checkIndex1"
  12786. :label="checkIndex1"
  12787. :disabled="isAnswer"
  12788. class="redioStyle"
  12789. ><span v-html="item2"></span>
  12790. </el-checkbox>
  12791. </el-checkbox-group>
  12792. </div>
  12793. </div>
  12794. </div>
  12795. </div>
  12796. </div>
  12797. <span slot="footer" class="dialog-footer">
  12798. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12799. >取 消</el-button
  12800. >
  12801. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12802. >确 定</el-button
  12803. >
  12804. </span>
  12805. </el-dialog>
  12806. <el-dialog
  12807. :title="noteName != '' ? noteName : '查看问卷'"
  12808. :visible.sync="dialogVisible5Teacher"
  12809. :append-to-body="true"
  12810. width="1000px"
  12811. :before-close="handleClose"
  12812. class="dialog_diy dialog_diy3"
  12813. >
  12814. <div>
  12815. <div class="w_name">
  12816. 学生姓名:<span>{{ sStudent.student }}</span>
  12817. </div>
  12818. <div
  12819. class="a_add_title"
  12820. style="
  12821. display: flex;
  12822. flex-direction: row;
  12823. align-items: center;
  12824. justify-content: center;
  12825. "
  12826. >
  12827. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12828. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12829. </div>
  12830. <div class="a_addBox">
  12831. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12832. 题目内容
  12833. </div>
  12834. <div
  12835. class="a_add_box"
  12836. v-for="(item1, index1) in askJson.askCount"
  12837. :key="index1"
  12838. >
  12839. <div class="a_add_head">
  12840. <div style="display: flex">
  12841. <span class="askIndex">{{ index1 + 1 }}</span>
  12842. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12843. </div>
  12844. <img
  12845. v-if="askJson.askJson[index1].img"
  12846. :src="askJson.askJson[index1].img"
  12847. style="height: 300px; margin-top: 10px; max-width: 100%"
  12848. />
  12849. </div>
  12850. <div class="a_add_body">
  12851. <div class="a_add_input">
  12852. <el-radio-group
  12853. v-model="radio[index1]"
  12854. v-if="
  12855. askJson.askJson[index1].type == '1' ||
  12856. !askJson.askJson[index1].type
  12857. "
  12858. >
  12859. <el-radio
  12860. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12861. .checkList"
  12862. :key="checkIndex"
  12863. :label="checkIndex"
  12864. :disabled="isAnswer"
  12865. class="redioStyle"
  12866. ><span v-html="item2"></span
  12867. ></el-radio>
  12868. </el-radio-group>
  12869. <el-checkbox-group
  12870. v-model="radio[index1]"
  12871. v-if="askJson.askJson[index1].type == '2'"
  12872. >
  12873. <el-checkbox
  12874. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12875. .checkList"
  12876. :key="checkIndex1"
  12877. :label="checkIndex1"
  12878. :disabled="isAnswer"
  12879. class="redioStyle"
  12880. ><span v-html="item2"></span>
  12881. </el-checkbox>
  12882. </el-checkbox-group>
  12883. </div>
  12884. </div>
  12885. </div>
  12886. </div>
  12887. </div>
  12888. <span slot="footer" class="dialog-footer">
  12889. <el-button
  12890. @click="dialogVisible5Teacher = false"
  12891. v-show="noteName == ''"
  12892. >取 消</el-button
  12893. >
  12894. <el-button
  12895. type="primary"
  12896. @click="addStudentAskTeacher"
  12897. v-show="noteName == ''"
  12898. >确 定</el-button
  12899. >
  12900. </span>
  12901. </el-dialog>
  12902. <el-dialog
  12903. :title="noteName != '' ? noteName : '查看选择题'"
  12904. :visible.sync="dialogVisibleChoice"
  12905. :append-to-body="true"
  12906. width="1000px"
  12907. :before-close="handleClose"
  12908. class="dialog_diy dialog_diy3"
  12909. >
  12910. <div>
  12911. <!-- <div class="a_add_title" style="
  12912. display: flex;
  12913. flex-direction: row;
  12914. align-items: center;
  12915. justify-content: center;
  12916. ">
  12917. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12918. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12919. </div> -->
  12920. <div class="a_addBox">
  12921. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12922. 题目内容
  12923. </div>
  12924. <div
  12925. class="a_add_box"
  12926. v-for="(item1, index1) in testJson.testCount"
  12927. :key="index1"
  12928. >
  12929. <div class="a_add_head">
  12930. <div style="display: flex">
  12931. <span class="askIndex">{{ index1 + 1 }}</span>
  12932. <div
  12933. v-if="testJson.testJson[index1].type == '1'"
  12934. style="margin-right: 5px; min-width: 70px"
  12935. >
  12936. (单选题)
  12937. </div>
  12938. <div
  12939. v-if="testJson.testJson[index1].type == '2'"
  12940. style="margin-right: 5px; min-width: 70px"
  12941. >
  12942. (多选题)
  12943. </div>
  12944. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12945. </div>
  12946. <img
  12947. v-if="testJson.testJson[index1].img"
  12948. :src="testJson.testJson[index1].img"
  12949. style="height: 300px; margin-top: 10px; max-width: 100%"
  12950. />
  12951. </div>
  12952. <div
  12953. class="timuImgBox"
  12954. v-if="
  12955. testJson.testJson[index1].timuList &&
  12956. testJson.testJson[index1].timuList.length
  12957. "
  12958. >
  12959. <div
  12960. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12961. :key="tIndex"
  12962. class="timuImg"
  12963. @click.stop="previewImg(timg.src)"
  12964. >
  12965. <img :src="timg.src" alt="" />
  12966. </div>
  12967. </div>
  12968. <div class="a_add_body">
  12969. <div class="a_add_input">
  12970. <el-radio-group
  12971. v-model="radio[index1]"
  12972. v-if="testJson.testJson[index1].type == '1'"
  12973. >
  12974. <div class="radioBox">
  12975. <el-radio
  12976. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12977. .checkList"
  12978. :key="checkIndex"
  12979. :label="checkIndex"
  12980. :disabled="isAnswer"
  12981. class="redioStyle"
  12982. >
  12983. <div
  12984. style="margin-right: 10px"
  12985. v-if="item2 && item2.imgType && item2.imgType == 1"
  12986. >
  12987. <div class="inImg" @click.stop="previewImg(item2.src)">
  12988. <img :src="item2.src" alt="" />
  12989. </div>
  12990. </div>
  12991. <span v-else v-html="item2"></span>
  12992. </el-radio>
  12993. </div>
  12994. </el-radio-group>
  12995. <el-checkbox-group
  12996. v-model="radio[index1]"
  12997. v-if="testJson.testJson[index1].type == '2'"
  12998. >
  12999. <div class="radioBox">
  13000. <el-checkbox
  13001. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13002. .checkList"
  13003. :key="checkIndex"
  13004. :label="checkIndex"
  13005. :disabled="isAnswer"
  13006. class="redioStyle"
  13007. >
  13008. <div
  13009. style="margin-right: 10px"
  13010. v-if="item2 && item2.imgType && item2.imgType == 1"
  13011. >
  13012. <div class="inImg" @click.stop="previewImg(item2.src)">
  13013. <img :src="item2.src" alt="" />
  13014. </div>
  13015. </div>
  13016. <span v-else v-html="item2"></span>
  13017. </el-checkbox>
  13018. </div>
  13019. </el-checkbox-group>
  13020. </div>
  13021. </div>
  13022. </div>
  13023. </div>
  13024. </div>
  13025. <span slot="footer" class="dialog-footer">
  13026. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  13027. >取 消</el-button
  13028. >
  13029. <el-button
  13030. type="primary"
  13031. @click="addStudentTest"
  13032. v-show="noteName == ''"
  13033. >确 定</el-button
  13034. >
  13035. </span>
  13036. </el-dialog>
  13037. <el-dialog
  13038. :title="noteName != '' ? noteName : '查看选择题'"
  13039. :visible.sync="dialogVisibleChoiceTeacher"
  13040. :append-to-body="true"
  13041. width="1000px"
  13042. :before-close="handleClose"
  13043. class="dialog_diy dialog_diy3"
  13044. >
  13045. <div>
  13046. <div class="w_name">
  13047. 学生姓名:<span>{{ sStudent.student }}</span>
  13048. </div>
  13049. <div class="a_addBox">
  13050. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  13051. 题目内容
  13052. </div>
  13053. <div
  13054. class="a_add_box"
  13055. v-for="(item1, index1) in testJson.testCount"
  13056. :key="index1"
  13057. >
  13058. <div class="a_add_head">
  13059. <div style="display: flex">
  13060. <span class="askIndex">{{ index1 + 1 }}</span>
  13061. <div
  13062. v-if="testJson.testJson[index1].type == '1'"
  13063. style="margin-right: 5px; min-width: 70px"
  13064. >
  13065. (单选题)
  13066. </div>
  13067. <div
  13068. v-if="testJson.testJson[index1].type == '2'"
  13069. style="margin-right: 5px; min-width: 70px"
  13070. >
  13071. (多选题)
  13072. </div>
  13073. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  13074. </div>
  13075. <img
  13076. v-if="testJson.testJson[index1].img"
  13077. :src="testJson.testJson[index1].img"
  13078. style="height: 300px; margin-top: 10px; max-width: 100%"
  13079. />
  13080. </div>
  13081. <div
  13082. class="timuImgBox"
  13083. v-if="
  13084. testJson.testJson[index1].timuList &&
  13085. testJson.testJson[index1].timuList.length
  13086. "
  13087. >
  13088. <div
  13089. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  13090. :key="tIndex"
  13091. class="timuImg"
  13092. @click.stop="previewImg(timg.src)"
  13093. >
  13094. <img :src="timg.src" alt="" />
  13095. </div>
  13096. </div>
  13097. <div class="a_add_body">
  13098. <div class="a_add_input">
  13099. <el-radio-group
  13100. v-model="radio[index1]"
  13101. v-if="testJson.testJson[index1].type == '1'"
  13102. >
  13103. <div class="radioBox">
  13104. <el-radio
  13105. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13106. .checkList"
  13107. :key="checkIndex"
  13108. :label="checkIndex"
  13109. :disabled="isAnswer"
  13110. class="redioStyle"
  13111. >
  13112. <div
  13113. style="margin-right: 10px"
  13114. v-if="item2 && item2.imgType && item2.imgType == 1"
  13115. >
  13116. <div class="inImg" @click.stop="previewImg(item2.src)">
  13117. <img :src="item2.src" alt="" />
  13118. </div>
  13119. </div>
  13120. <span v-else v-html="item2"></span>
  13121. </el-radio>
  13122. </div>
  13123. </el-radio-group>
  13124. <el-checkbox-group
  13125. v-model="radio[index1]"
  13126. v-if="testJson.testJson[index1].type == '2'"
  13127. >
  13128. <div class="radioBox">
  13129. <el-checkbox
  13130. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13131. .checkList"
  13132. :key="checkIndex"
  13133. :label="checkIndex"
  13134. :disabled="isAnswer"
  13135. class="redioStyle"
  13136. >
  13137. <div
  13138. style="margin-right: 10px"
  13139. v-if="item2 && item2.imgType && item2.imgType == 1"
  13140. >
  13141. <div class="inImg" @click.stop="previewImg(item2.src)">
  13142. <img :src="item2.src" alt="" />
  13143. </div>
  13144. </div>
  13145. <span v-else v-html="item2"></span>
  13146. </el-checkbox>
  13147. </div>
  13148. </el-checkbox-group>
  13149. </div>
  13150. </div>
  13151. </div>
  13152. </div>
  13153. </div>
  13154. <span slot="footer" class="dialog-footer">
  13155. <el-button
  13156. @click="dialogVisibleChoiceTeacher = false"
  13157. v-show="noteName == ''"
  13158. >取 消</el-button
  13159. >
  13160. <el-button
  13161. type="primary"
  13162. @click="addStudentTestTeacher"
  13163. v-show="noteName == ''"
  13164. >确 定</el-button
  13165. >
  13166. </span>
  13167. </el-dialog>
  13168. <el-dialog
  13169. title="查看富文本"
  13170. :visible.sync="dialogVisible1"
  13171. :append-to-body="true"
  13172. width="500px"
  13173. :before-close="handleClose"
  13174. class="dialog_diy textCss"
  13175. >
  13176. <el-form style="font-size: 20px">
  13177. <el-form-item label="文本标题" class="textTitle">
  13178. <div style="font-size: 20px">{{ text.name }}</div>
  13179. </el-form-item>
  13180. <div>富文本内容</div>
  13181. <div
  13182. v-html="text.url"
  13183. style="font-size: 18px; padding: 40px 0 0 0"
  13184. ></div>
  13185. </el-form>
  13186. <span slot="footer" class="dialog-footer">
  13187. <el-button type="primary" @click="dialogVisible1 = false"
  13188. >确定</el-button
  13189. >
  13190. </span>
  13191. </el-dialog>
  13192. <el-dialog
  13193. title="文件预览"
  13194. :visible.sync="dialogVisible3"
  13195. width="50%"
  13196. :before-close="handleClose"
  13197. class="dialog_diy"
  13198. :class="{ fullStyle: full }"
  13199. >
  13200. <div slot="title" class="header-title">
  13201. <div style="color: #fff">文件预览</div>
  13202. <div style="position: absolute; top: 19px; right: 50px">
  13203. <img
  13204. src="../../assets/full.png"
  13205. style="height: 16px; cursor: pointer"
  13206. alt=""
  13207. @click="fullTools"
  13208. />
  13209. </div>
  13210. </div>
  13211. <pdf
  13212. v-if="showPDF"
  13213. :pdfUrl="pptImgUrl"
  13214. style="width: 100%; height: 520px; overflow: auto"
  13215. :class="{ fullStyle: full }"
  13216. ></pdf>
  13217. <iframe
  13218. v-else
  13219. :src="pptImgUrl"
  13220. frameborder="0"
  13221. width="100%"
  13222. height="600"
  13223. :class="{ fullStyle: full }"
  13224. ></iframe>
  13225. </el-dialog>
  13226. <el-dialog
  13227. title="文件预览"
  13228. :visible.sync="dialogVisible6"
  13229. width="50%"
  13230. :before-close="handleClose"
  13231. class="dialog_diy"
  13232. >
  13233. <iframe
  13234. :src="pptImgUrl1"
  13235. frameborder="0"
  13236. width="100%"
  13237. height="600"
  13238. ></iframe>
  13239. </el-dialog>
  13240. <el-dialog
  13241. title="提示"
  13242. :visible.sync="dialogVisible4"
  13243. :append-to-body="true"
  13244. width="800px"
  13245. :before-close="handleClose"
  13246. class="dialog_diy notice"
  13247. >
  13248. <div>此功能暂未开放!</div>
  13249. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13250. </el-dialog>
  13251. <el-dialog
  13252. title="问答"
  13253. :visible.sync="answerDialogVisible"
  13254. :append-to-body="true"
  13255. width="800px"
  13256. :before-close="handleClose"
  13257. class="dialog_diy"
  13258. >
  13259. <div>
  13260. <div
  13261. style="
  13262. display: flex;
  13263. flex-wrap: nowrap;
  13264. flex-direction: column;
  13265. position: relative;
  13266. "
  13267. >
  13268. <div class="queTop" style="padding: 20px 0 20px 0">
  13269. <div class="question">
  13270. <img src="../../assets/icon/question.png" alt />
  13271. </div>
  13272. <div class="queTitle">
  13273. <div style="width: 90px; min-width: 90px">提问:</div>
  13274. <div>{{ answerQ }}</div>
  13275. </div>
  13276. </div>
  13277. <div class="ediBottom">
  13278. <textarea
  13279. rows="6"
  13280. class="binfo_input"
  13281. cols
  13282. style="width: 95%; height: 120px"
  13283. v-model="questionAnswer"
  13284. ></textarea>
  13285. </div>
  13286. </div>
  13287. </div>
  13288. <div slot="footer">
  13289. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13290. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13291. </div>
  13292. </el-dialog>
  13293. <el-dialog
  13294. title="问答"
  13295. :visible.sync="answerDialogVisibleTeacher"
  13296. :append-to-body="true"
  13297. width="800px"
  13298. :before-close="handleClose"
  13299. class="dialog_diy"
  13300. >
  13301. <div>
  13302. <div class="w_name">
  13303. 学生姓名:<span>{{ sStudent.student }}</span>
  13304. </div>
  13305. <div
  13306. style="
  13307. display: flex;
  13308. flex-wrap: nowrap;
  13309. flex-direction: column;
  13310. position: relative;
  13311. "
  13312. >
  13313. <div class="queTop" style="padding: 20px 0 20px 0">
  13314. <div class="question">
  13315. <img src="../../assets/icon/question.png" alt />
  13316. </div>
  13317. <div class="queTitle">
  13318. <div style="width: 90px; min-width: 90px">提问:</div>
  13319. <div>{{ answerQ }}</div>
  13320. </div>
  13321. </div>
  13322. <div class="ediBottom">
  13323. <textarea
  13324. rows="6"
  13325. class="binfo_input"
  13326. cols
  13327. style="width: 95%; height: 120px"
  13328. v-model="questionAnswer"
  13329. ></textarea>
  13330. </div>
  13331. </div>
  13332. </div>
  13333. <div slot="footer">
  13334. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13335. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13336. </div>
  13337. </el-dialog>
  13338. <el-dialog
  13339. title="倒计时"
  13340. :visible.sync="timeDialogVisible"
  13341. :append-to-body="true"
  13342. width="800px"
  13343. :before-close="handleClose"
  13344. class="dialog_diy"
  13345. >
  13346. <div>
  13347. <div style="margin-bottom: 20px; color: #999">
  13348. 提示:点击“+”或“-”修改倒计时时长。
  13349. </div>
  13350. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13351. </div>
  13352. <div slot="footer">
  13353. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13354. </div>
  13355. </el-dialog>
  13356. <el-dialog
  13357. title="权限设置"
  13358. :visible.sync="juriVisible"
  13359. :append-to-body="true"
  13360. width="400px"
  13361. :before-close="handleClose"
  13362. class="dialog_diy"
  13363. >
  13364. <div>
  13365. <div class="open_box">
  13366. <div class="switch_box">
  13367. <span>允许学生查看所有作业</span>
  13368. <el-switch
  13369. v-model="sIsOpen"
  13370. active-text=""
  13371. class="switchCss"
  13372. @change="updateSLook"
  13373. ></el-switch>
  13374. </div>
  13375. <div
  13376. class="switch_box"
  13377. v-if="
  13378. (courseDetail.userid == userid ||
  13379. (courseDetail.course_teacher &&
  13380. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13381. "
  13382. >
  13383. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13384. <span>禁止学生查看阶段</span>
  13385. <el-switch
  13386. v-model="IsLookOpen"
  13387. active-text=""
  13388. class="switchCss"
  13389. @change="updateLookOpen"
  13390. ></el-switch>
  13391. </div>
  13392. <div class="switch_box" v-if="courseDetail.userid == userid">
  13393. <span>开启跟随模式</span>
  13394. <el-switch
  13395. v-model="IsFollow"
  13396. active-text=""
  13397. class="switchCss"
  13398. @change="updateFollow"
  13399. ></el-switch>
  13400. </div>
  13401. </div>
  13402. </div>
  13403. <div slot="footer">
  13404. <el-button
  13405. style="background: #409efe; color: #fff"
  13406. @click="juriVisible = false"
  13407. >关 闭</el-button
  13408. >
  13409. </div>
  13410. </el-dialog>
  13411. <el-dialog
  13412. title="查看视频"
  13413. :visible.sync="videoVisible"
  13414. :append-to-body="true"
  13415. width="1000px"
  13416. :before-close="handleClose"
  13417. class="dialog_diy1"
  13418. >
  13419. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13420. <video-player
  13421. class="video-player vjs-custom-skin"
  13422. :playsinline="true"
  13423. :options="videoDetail"
  13424. @play="onPlayerPlay($event)"
  13425. style="width: 100%; height: 100%"
  13426. ></video-player>
  13427. </div>
  13428. <div slot="footer">
  13429. <el-button
  13430. style="background: #409efe; color: #fff"
  13431. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13432. >
  13433. 关 闭</el-button
  13434. >
  13435. </div>
  13436. </el-dialog>
  13437. <el-dialog
  13438. title="查看详情"
  13439. :visible.sync="commentDialogVisible"
  13440. :append-to-body="true"
  13441. width="800px"
  13442. :before-close="handleClose"
  13443. class="dialog_diy"
  13444. >
  13445. <div class="commentTop">
  13446. <div class="studentDetail">
  13447. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13448. <div class="nameAndTime">
  13449. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13450. <div>{{ commentDetail.time }}</div>
  13451. </div>
  13452. <div
  13453. class="returnBtn"
  13454. style="margin-left: auto; width: 80px"
  13455. v-if="
  13456. commentDetail.works &&
  13457. commentDetail.type == 0 &&
  13458. (tType == 1 || tType == 4)
  13459. "
  13460. @click="
  13461. showPicturePaint(
  13462. commentDetail.img ? commentDetail.img : commentDetail.works
  13463. )
  13464. "
  13465. >
  13466. 教师批注
  13467. </div>
  13468. </div>
  13469. <div
  13470. class="worksAnswer"
  13471. v-if="commentDetail.works && commentDetail.type == 2"
  13472. >
  13473. {{ JSON.parse(commentDetail.works)[0].answer }}
  13474. </div>
  13475. <div
  13476. class="worksAnswer"
  13477. v-if="commentDetail.works && commentDetail.type == 1"
  13478. >
  13479. <img
  13480. src="../../assets/teacherWork.png"
  13481. v-if="commentDetail.ateacher"
  13482. class="w_teachert"
  13483. />
  13484. <pdf
  13485. v-if="showPDF"
  13486. :pdfUrl="pptImgUrl"
  13487. style="width: 100%; height: 520px; overflow: auto"
  13488. :class="{ fullStyle: full }"
  13489. ></pdf>
  13490. <iframe
  13491. v-else
  13492. :src="pptImgUrl"
  13493. frameborder="0"
  13494. width="100%"
  13495. height="600"
  13496. :class="{ fullStyle: full }"
  13497. ></iframe>
  13498. </div>
  13499. <div
  13500. class="worksAnswer"
  13501. v-if="commentDetail.works && commentDetail.type == 0"
  13502. >
  13503. <img
  13504. src="../../assets/teacherWork.png"
  13505. v-if="commentDetail.ateacher"
  13506. class="w_teachert"
  13507. style="right: 105px"
  13508. />
  13509. <img
  13510. :src="commentDetail.works"
  13511. alt=""
  13512. @click="previewImg(commentDetail.works)"
  13513. />
  13514. </div>
  13515. <div
  13516. class="worksAnswer"
  13517. v-if="commentDetail.works && commentDetail.type == 3"
  13518. >
  13519. <img
  13520. src="../../assets/teacherWork.png"
  13521. v-if="commentDetail.ateacher"
  13522. class="w_teachert"
  13523. />
  13524. <video-player
  13525. class="video-player vjs-custom-skin"
  13526. :playsinline="true"
  13527. :options="videoDetail"
  13528. @play="onPlayerPlay($event)"
  13529. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13530. ></video-player>
  13531. </div>
  13532. <div
  13533. class="worksAnswer"
  13534. v-if="commentDetail.works && commentDetail.type == 10"
  13535. >
  13536. <div class="cont" v-html="commentDetail.works.text"></div>
  13537. </div>
  13538. <div v-if="commentDetail.works && commentDetail.type == 12">
  13539. <!-- class="worksAnswer codeFileBox" -->
  13540. <!-- @click="downloadFile(commentDetail.works)" -->
  13541. <!-- <img src="../../assets/icon/codeFile.png" />
  13542. <div>点击下载文件</div> -->
  13543. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  13544. </div>
  13545. <div
  13546. class="worksAnswer codeFileBox"
  13547. v-if="commentDetail.works && commentDetail.type == 15"
  13548. @click="
  13549. openCocoPi(
  13550. 57,
  13551. commentIndexJson.toolIndex,
  13552. commentDetail.userid,
  13553. commentDetail.sName
  13554. )
  13555. "
  13556. >
  13557. <img src="../../assets/icon/codeFile.png" />
  13558. <div>点击打开CocoPi</div>
  13559. </div>
  13560. <div
  13561. class="worksAnswer"
  13562. v-if="commentDetail.works && commentDetail.type == 13"
  13563. >
  13564. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13565. </div>
  13566. <div
  13567. class="worksAnswer"
  13568. v-if="commentDetail.works && commentDetail.type == 4"
  13569. >
  13570. <div class="evalCss">
  13571. <div class="nav">请选择星星进行评分</div>
  13572. <div class="middleBox" v-if="eScore.eStar">
  13573. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13574. <div class="nameAndrate">
  13575. <div>{{ e.value }}</div>
  13576. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13577. </div>
  13578. <div v-if="e.detail">{{ e.detail }}</div>
  13579. </div>
  13580. <div class="bz">
  13581. <textarea
  13582. disabled
  13583. rows="4"
  13584. class="pj"
  13585. style="
  13586. padding: 10px 5px;
  13587. width: 70%;
  13588. background: #f7f6f9;
  13589. font-size: 14px;
  13590. text-indent: 10px;
  13591. color: #000;
  13592. "
  13593. cols
  13594. v-model="eScore.eBzText"
  13595. placeholder="请输入评价内容..."
  13596. ></textarea>
  13597. </div>
  13598. </div>
  13599. </div>
  13600. </div>
  13601. <div class="comment">
  13602. <div class="commentList">
  13603. <div class="commentImg">
  13604. <img
  13605. @click="
  13606. isLikes(
  13607. commentDetail.wid,
  13608. userid,
  13609. 1,
  13610. null,
  13611. commentDetail.isLikes,
  13612. commentDetail.sName
  13613. )
  13614. "
  13615. :src="commentDetail.isLikes == true ? likes : noLikes"
  13616. alt=""
  13617. />
  13618. </div>
  13619. <div>{{ commentDetail.likesCount }}</div>
  13620. </div>
  13621. <div class="commentList">
  13622. <div class="commentImg">
  13623. <img src="../../assets/icon/comment/comment.png" alt="" />
  13624. </div>
  13625. <div>{{ commentDetail.commentCount }}</div>
  13626. </div>
  13627. </div>
  13628. <div class="drawPBox" v-if="commentDetail.img">
  13629. <span>教师批注</span>
  13630. <img
  13631. :src="commentDetail.img"
  13632. alt=""
  13633. @click="previewImg(commentDetail.img)"
  13634. />
  13635. <span
  13636. class="deleteImg"
  13637. v-if="tType == 1 || tType == 4"
  13638. @click.stop="deletePicturePaint(commentDetail.wid)"
  13639. style="
  13640. font-size: 14px;
  13641. width: auto !important;
  13642. color: #b4b4b4;
  13643. top: unset;
  13644. bottom: 0;
  13645. border: none;
  13646. padding: 0;
  13647. height: auto !important;
  13648. margin: 0;
  13649. "
  13650. >删除</span
  13651. >
  13652. </div>
  13653. </div>
  13654. <div class="commentBox">
  13655. <div class="pl">评论:</div>
  13656. <div style="max-height: 200px; overflow: auto">
  13657. <div
  13658. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13659. style="padding: 10px 0 0 0"
  13660. >
  13661. <div
  13662. class="studentDetail"
  13663. style="padding-top: 10px"
  13664. v-for="(co, coIndex) in commentDetail.commentJson"
  13665. :key="coIndex"
  13666. >
  13667. <div class="tx" style="min-width: 50px">
  13668. <img src="../../assets/avatar.png" alt="" />
  13669. </div>
  13670. <div class="plPerson">
  13671. <div class="plName">
  13672. <div>{{ co.commentPeople }}</div>
  13673. <div style="margin-left: 5px">
  13674. {{ co.commentTime }}
  13675. </div>
  13676. <div
  13677. class="deleteComment"
  13678. v-if="userid == co.userid"
  13679. @click="deleteComment(co.wid)"
  13680. >
  13681. 删除
  13682. </div>
  13683. </div>
  13684. <div class="plContent">{{ co.commentText }}</div>
  13685. </div>
  13686. </div>
  13687. </div>
  13688. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13689. </div>
  13690. </div>
  13691. <div style="margin-top: 10px">
  13692. <div class="displayBox">
  13693. <div
  13694. style="
  13695. color: #556db4;
  13696. font-size: 14px;
  13697. font-weight: bold;
  13698. padding-bottom: 10px;
  13699. "
  13700. >
  13701. 评价
  13702. </div>
  13703. <div class="easy_comment" v-if="false">
  13704. <div
  13705. v-for="(p, pIndex) in PlTextList"
  13706. :key="pIndex"
  13707. @click="fastText(p, 1)"
  13708. >
  13709. {{ p }}
  13710. </div>
  13711. </div>
  13712. </div>
  13713. <div>
  13714. <textarea
  13715. rows="3"
  13716. class="pj"
  13717. style="padding: 10px 5px"
  13718. cols
  13719. v-model="commentText"
  13720. placeholder="请输入评论"
  13721. ></textarea>
  13722. </div>
  13723. </div>
  13724. <div slot="footer">
  13725. <el-button
  13726. @click="
  13727. (commentDialogVisible = false),
  13728. (commentIndexJson = {}),
  13729. videoDetail.sources && videoDetail.sources[0]
  13730. ? (videoDetail.sources[0].src = '')
  13731. : ''
  13732. "
  13733. >取 消</el-button
  13734. >
  13735. <el-button
  13736. type="primary"
  13737. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13738. >确 定</el-button
  13739. >
  13740. </div>
  13741. </el-dialog>
  13742. <el-dialog
  13743. :visible.sync="fullDialogVisible"
  13744. :append-to-body="true"
  13745. width="100%"
  13746. :before-close="handleClose"
  13747. :show-close="false"
  13748. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13749. >
  13750. <div slot="title" class="header-title">
  13751. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13752. <div v-else style="color: #fff">查看文档</div>
  13753. <div
  13754. @click="
  13755. () => {
  13756. (fullDialogVisible = false),
  13757. changeSplitScreenBehavior({ code: 99 });
  13758. }
  13759. "
  13760. style="
  13761. cursor: pointer;
  13762. position: absolute;
  13763. top: 20px;
  13764. right: 20px;
  13765. color: #fff;
  13766. "
  13767. >
  13768. 退出全屏
  13769. </div>
  13770. </div>
  13771. <div style="height: 100%;position: relative;">
  13772. <el-button
  13773. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13774. size="medium"
  13775. type="primary"
  13776. @click="
  13777. () => {
  13778. (fullDialogVisible = false),
  13779. changeSplitScreenBehavior({ code: 99 });
  13780. }
  13781. "
  13782. style="
  13783. cursor: pointer;
  13784. position: absolute;
  13785. top: 10px;
  13786. right: 20px;
  13787. color: #fff;
  13788. "
  13789. >
  13790. 退出全屏
  13791. </el-button>
  13792. <div
  13793. class="wheel"
  13794. v-if="
  13795. (fulltype == 2 || fulltype == 4) &&
  13796. fullUrl.indexOf(
  13797. 'https://view.officeapps.live.com/op/view.aspx?src='
  13798. ) != -1
  13799. "
  13800. style="width: 100%;height:100%; margin: 0 auto"
  13801. >
  13802. <iframe
  13803. style="width: 100%; height: 100%; border: none"
  13804. :src="fullUrl"
  13805. ></iframe>
  13806. </div>
  13807. <iframe
  13808. style="width: 100%; height: 100%; border: none"
  13809. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  13810. :src="fullUrl"
  13811. ></iframe>
  13812. <iframe
  13813. style="width: 100%; height: 100%; border: none"
  13814. security="restricted"
  13815. v-else-if="(fulltype == 2 || fulltype == 4)"
  13816. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13817. :src="fullUrl"
  13818. ></iframe>
  13819. <pdf
  13820. v-else-if="fulltype == 3"
  13821. :pdfUrl="fullUrl"
  13822. style="width: 100%; height: 100%; overflow: auto"
  13823. ></pdf>
  13824. <div
  13825. class="wheel"
  13826. v-if="fulltype == 1"
  13827. style="
  13828. box-shadow: 0 0 6px 1px #f2f2f2;
  13829. height:100%;
  13830. width: 100%;
  13831. background: #f1f1f1;
  13832. "
  13833. >
  13834. <div class="title" style="width: 100%; box-sizing: border-box">
  13835. 查看文档
  13836. </div>
  13837. <el-form class="textBox" style="height: 90%">
  13838. <el-form-item class="textTitle">
  13839. <div style="font-size: 22px">
  13840. {{ fullUrl.name }}
  13841. </div>
  13842. </el-form-item>
  13843. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13844. <div
  13845. v-html="fullUrl.url"
  13846. class="textContent"
  13847. style="height: auto"
  13848. ></div>
  13849. </el-form>
  13850. </div>
  13851. </div>
  13852. <!-- <div slot="footer">
  13853. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13854. </div> -->
  13855. </el-dialog>
  13856. <el-dialog
  13857. title="个人评价"
  13858. :visible.sync="studentEvalDialogVisible"
  13859. :append-to-body="true"
  13860. width="800px"
  13861. :before-close="handleClose"
  13862. class="dialog_diy"
  13863. >
  13864. <div class="evalCss">
  13865. <div class="nav">请选择星星进行评分</div>
  13866. <div class="middleBox" v-if="eScore.eStar">
  13867. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13868. <div class="nameAndrate">
  13869. <div>{{ e.value }}</div>
  13870. <el-rate
  13871. v-model="eScore.eStar[eIndex]"
  13872. :disabled="isStar"
  13873. ></el-rate>
  13874. </div>
  13875. <div v-if="e.detail">{{ e.detail }}</div>
  13876. </div>
  13877. <div class="easy_comment" v-if="false">
  13878. <div
  13879. v-for="(p, pIndex) in PlTextList"
  13880. :key="pIndex"
  13881. @click="fastText(p, 2)"
  13882. >
  13883. {{ p }}
  13884. </div>
  13885. </div>
  13886. <div class="bz">
  13887. <textarea
  13888. :disabled="isStar"
  13889. rows="4"
  13890. class="pj"
  13891. style="
  13892. padding: 10px 5px;
  13893. width: 70%;
  13894. background: #f7f6f9;
  13895. font-size: 14px;
  13896. text-indent: 10px;
  13897. "
  13898. cols
  13899. v-model="eScore.eBzText"
  13900. placeholder="请输入评价内容..."
  13901. ></textarea>
  13902. </div>
  13903. </div>
  13904. </div>
  13905. <div slot="footer">
  13906. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13907. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13908. >确 定</el-button
  13909. >
  13910. </div>
  13911. </el-dialog>
  13912. <el-dialog
  13913. title="个人评价"
  13914. :visible.sync="studentEvalDialogVisibleTeacher"
  13915. :append-to-body="true"
  13916. width="800px"
  13917. :before-close="handleClose"
  13918. class="dialog_diy"
  13919. >
  13920. <div class="w_name">
  13921. 学生姓名:<span>{{ sStudent.student }}</span>
  13922. </div>
  13923. <div class="evalCss">
  13924. <div class="nav">请选择星星进行评分</div>
  13925. <div class="middleBox" v-if="eScore.eStar">
  13926. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13927. <div class="nameAndrate">
  13928. <div>{{ e.value }}</div>
  13929. <el-rate
  13930. v-model="eScore.eStar[eIndex]"
  13931. :disabled="isStar"
  13932. ></el-rate>
  13933. </div>
  13934. <div v-if="e.detail">{{ e.detail }}</div>
  13935. </div>
  13936. <div class="easy_comment" v-if="false">
  13937. <div
  13938. v-for="(p, pIndex) in PlTextList"
  13939. :key="pIndex"
  13940. @click="fastText(p, 2)"
  13941. >
  13942. {{ p }}
  13943. </div>
  13944. </div>
  13945. <div class="bz">
  13946. <textarea
  13947. :disabled="isStar"
  13948. rows="4"
  13949. class="pj"
  13950. style="
  13951. padding: 10px 5px;
  13952. width: 70%;
  13953. background: #f7f6f9;
  13954. font-size: 14px;
  13955. text-indent: 10px;
  13956. "
  13957. cols
  13958. v-model="eScore.eBzText"
  13959. placeholder="请输入评价内容..."
  13960. ></textarea>
  13961. </div>
  13962. </div>
  13963. </div>
  13964. <div slot="footer">
  13965. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13966. >取 消</el-button
  13967. >
  13968. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13969. >确 定</el-button
  13970. >
  13971. </div>
  13972. </el-dialog>
  13973. <el-dialog
  13974. title="选择匹配"
  13975. :visible.sync="dialogVisibleSelect"
  13976. :append-to-body="true"
  13977. width="90%"
  13978. :before-close="handleClose"
  13979. class="dialog_diy dialog_diy3"
  13980. >
  13981. <div v-if="selectJson">
  13982. <div class="select_box2">
  13983. <div class="select_box2_title">
  13984. <div>选择匹配</div>
  13985. <div>请选择对应的答案进行答题!</div>
  13986. </div>
  13987. <div class="select_box2_box">
  13988. <div class="select_box2_img">
  13989. <img
  13990. :src="selectJson.url"
  13991. @click="previewImg(selectJson.url)"
  13992. alt=""
  13993. />
  13994. </div>
  13995. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13996. <div style="padding-top: 15px">
  13997. <div class="select_answer_title" v-if="isSelect">
  13998. {{ selectAnswer.stu }}
  13999. </div>
  14000. <div class="select_answer_title" v-else>
  14001. 根据题目选择对应答案
  14002. </div>
  14003. <div
  14004. class="select_box2_answer_box"
  14005. v-for="(item2, checkIndex) in selectJson.select"
  14006. :key="checkIndex"
  14007. >
  14008. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14009. <el-select
  14010. :disabled="isSelect"
  14011. v-model="selectAnswer.answer[checkIndex]"
  14012. placeholder="请选择正确答案"
  14013. >
  14014. <el-option
  14015. v-for="(e, eIndex) in selectJson.select"
  14016. :key="eIndex"
  14017. :label="e"
  14018. :value="eIndex"
  14019. >
  14020. </el-option>
  14021. </el-select>
  14022. </div>
  14023. </div>
  14024. <div
  14025. class="rightAnswerCss"
  14026. v-if="isSelect && (tType == 1 || tType == 4)"
  14027. >
  14028. <div
  14029. v-for="(a, aIndex) in selectJson.answer"
  14030. :key="aIndex"
  14031. class="rightAnswer"
  14032. >
  14033. <div
  14034. v-if="selectAnswer.answer[aIndex] === a"
  14035. style="color: #767de1"
  14036. >
  14037. 回答正确
  14038. </div>
  14039. <div v-else>回答错误</div>
  14040. <div
  14041. style="margin-left: 10px"
  14042. v-if="selectAnswer.answer[aIndex] !== a"
  14043. >
  14044. 正确答案:
  14045. </div>
  14046. <div
  14047. :class="
  14048. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14049. "
  14050. >
  14051. {{ selectJson.select[a] }}
  14052. </div>
  14053. </div>
  14054. </div>
  14055. </div>
  14056. <div class="upAnswerCss">
  14057. <el-button
  14058. type="primary"
  14059. @click="addSelectAnswer"
  14060. v-if="!isSelect"
  14061. >提交答案</el-button
  14062. >
  14063. </div>
  14064. </div>
  14065. </div>
  14066. </div>
  14067. </el-dialog>
  14068. <el-dialog
  14069. title="选择匹配"
  14070. :visible.sync="dialogVisibleSelectTeacher"
  14071. :append-to-body="true"
  14072. width="90%"
  14073. :before-close="handleClose"
  14074. class="dialog_diy dialog_diy3"
  14075. >
  14076. <div v-if="selectJson">
  14077. <div class="w_name">
  14078. 学生姓名:<span>{{ sStudent.student }}</span>
  14079. </div>
  14080. <div class="select_box2">
  14081. <div class="select_box2_title">
  14082. <div>选择匹配</div>
  14083. <div>请选择对应的答案进行答题!</div>
  14084. </div>
  14085. <div class="select_box2_box">
  14086. <div class="select_box2_img">
  14087. <img
  14088. :src="selectJson.url"
  14089. @click="previewImg(selectJson.url)"
  14090. alt=""
  14091. />
  14092. </div>
  14093. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14094. <div style="padding-top: 15px">
  14095. <div class="select_answer_title" v-if="isSelect">
  14096. {{ selectAnswer.stu }}
  14097. </div>
  14098. <div class="select_answer_title" v-else>
  14099. 根据题目选择对应答案
  14100. </div>
  14101. <div
  14102. class="select_box2_answer_box"
  14103. v-for="(item2, checkIndex) in selectJson.select"
  14104. :key="checkIndex"
  14105. >
  14106. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14107. <el-select
  14108. :disabled="isSelect"
  14109. v-model="selectAnswer.answer[checkIndex]"
  14110. placeholder="请选择正确答案"
  14111. >
  14112. <el-option
  14113. v-for="(e, eIndex) in selectJson.select"
  14114. :key="eIndex"
  14115. :label="e"
  14116. :value="eIndex"
  14117. >
  14118. </el-option>
  14119. </el-select>
  14120. </div>
  14121. </div>
  14122. <div
  14123. class="rightAnswerCss"
  14124. v-if="isSelect && (tType == 1 || tType == 4)"
  14125. >
  14126. <div
  14127. v-for="(a, aIndex) in selectJson.answer"
  14128. :key="aIndex"
  14129. class="rightAnswer"
  14130. >
  14131. <div
  14132. v-if="selectAnswer.answer[aIndex] === a"
  14133. style="color: #767de1"
  14134. >
  14135. 回答正确
  14136. </div>
  14137. <div v-else>回答错误</div>
  14138. <div
  14139. style="margin-left: 10px"
  14140. v-if="selectAnswer.answer[aIndex] !== a"
  14141. >
  14142. 正确答案:
  14143. </div>
  14144. <div
  14145. :class="
  14146. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14147. "
  14148. >
  14149. {{ selectJson.select[a] }}
  14150. </div>
  14151. </div>
  14152. </div>
  14153. </div>
  14154. <div class="upAnswerCss">
  14155. <el-button
  14156. type="primary"
  14157. @click="addSelectAnswerTeacher"
  14158. v-if="!isSelect"
  14159. >提交答案</el-button
  14160. >
  14161. </div>
  14162. </div>
  14163. </div>
  14164. </div>
  14165. </el-dialog>
  14166. <el-dialog
  14167. title="教师评分"
  14168. :visible.sync="dialogVisibleScore"
  14169. :append-to-body="true"
  14170. width="800px"
  14171. :before-close="handleClose"
  14172. class="dialog_diy"
  14173. >
  14174. <div>
  14175. <div class="studentDetail">
  14176. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14177. <div class="nameAndTime">
  14178. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14179. <div>{{ commentDetail.time }}</div>
  14180. </div>
  14181. </div>
  14182. <div
  14183. class="worksAnswer"
  14184. v-if="commentDetail.works && commentDetail.type == 2"
  14185. >
  14186. {{ JSON.parse(commentDetail.works)[0].answer }}
  14187. </div>
  14188. <div
  14189. class="worksAnswer"
  14190. v-if="commentDetail.works && commentDetail.type == 1"
  14191. >
  14192. <pdf
  14193. v-if="showPDF"
  14194. :pdfUrl="pptImgUrl"
  14195. style="width: 100%; height: 520px; overflow: auto"
  14196. :class="{ fullStyle: full }"
  14197. ></pdf>
  14198. <iframe
  14199. v-else
  14200. :src="pptImgUrl"
  14201. frameborder="0"
  14202. width="100%"
  14203. height="600"
  14204. :class="{ fullStyle: full }"
  14205. ></iframe>
  14206. </div>
  14207. <div
  14208. class="worksAnswer"
  14209. v-if="commentDetail.works && commentDetail.type == 0"
  14210. >
  14211. <img
  14212. :src="commentDetail.works"
  14213. alt=""
  14214. @click="previewImg(commentDetail.works)"
  14215. />
  14216. </div>
  14217. <div
  14218. class="worksAnswer"
  14219. v-if="commentDetail.works && commentDetail.type == 3"
  14220. >
  14221. <video-player
  14222. class="video-player vjs-custom-skin"
  14223. :playsinline="true"
  14224. :options="videoDetail"
  14225. @play="onPlayerPlay($event)"
  14226. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14227. ></video-player>
  14228. </div>
  14229. <div
  14230. class="worksAnswer codeFileBox"
  14231. v-if="commentDetail.works && commentDetail.type == 12"
  14232. @click="downloadFile(commentDetail.works)"
  14233. >
  14234. <img src="../../assets/icon/codeFile.png" />
  14235. <div>点击下载文件</div>
  14236. </div>
  14237. <div
  14238. class="worksAnswer codeFileBox"
  14239. v-if="commentDetail.works && commentDetail.type == 15"
  14240. @click="
  14241. openCocoPi(
  14242. 57,
  14243. commentIndexJson.toolIndex,
  14244. commentDetail.userid,
  14245. commentDetail.sName
  14246. )
  14247. "
  14248. >
  14249. <img src="../../assets/icon/codeFile.png" />
  14250. <div>点击打开CocoPi</div>
  14251. </div>
  14252. <div
  14253. class="worksAnswer"
  14254. v-if="commentDetail.works && commentDetail.type == 13"
  14255. >
  14256. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14257. </div>
  14258. <div class="scoreBox">
  14259. <span class="t">请输入分数</span>
  14260. <el-input-number
  14261. :disabled="courseDetail.userid != userid"
  14262. v-model="wScore"
  14263. :controls="false"
  14264. :min="0"
  14265. :max="100"
  14266. ></el-input-number>
  14267. </div>
  14268. <div class="scoreDetailBox">
  14269. <span class="t">评分评论</span>
  14270. <el-input
  14271. type="textarea"
  14272. :rows="5"
  14273. :disabled="courseDetail.userid != userid"
  14274. resize="none"
  14275. v-model="scoreDetail"
  14276. placeholder="请输入对学生的评价"
  14277. >
  14278. </el-input>
  14279. </div>
  14280. </div>
  14281. <span slot="footer" class="dialog-footer">
  14282. <el-button
  14283. @click="
  14284. (dialogVisibleScore = false),
  14285. (commentIndexJson = {}),
  14286. videoDetail.sources && videoDetail.sources[0]
  14287. ? (videoDetail.sources[0].src = '')
  14288. : ''
  14289. "
  14290. >取 消</el-button
  14291. >
  14292. <el-button
  14293. type="primary"
  14294. v-if="courseDetail.userid == userid"
  14295. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  14296. >确 定
  14297. </el-button>
  14298. </span>
  14299. </el-dialog>
  14300. <el-dialog
  14301. title="排序"
  14302. :visible.sync="dialogVisibleSentence"
  14303. :append-to-body="true"
  14304. width="1000px"
  14305. :before-close="handleClose"
  14306. class="dialog_diy dialog_diy3"
  14307. >
  14308. <div>
  14309. <div class="sentenBox">
  14310. <div
  14311. v-for="(st, stIndex) in sentenceList"
  14312. :key="stIndex"
  14313. style="padding-bottom: 20px"
  14314. >
  14315. <div
  14316. style="padding: 15px 0 10px 20px"
  14317. class="sentenceTitle"
  14318. :index="stIndex + 1"
  14319. >
  14320. 题目{{ stIndex + 1 }}:请选择正确顺序
  14321. </div>
  14322. <div class="cardList" v-if="st.chooseSenList">
  14323. <div class="cardBox">
  14324. <div
  14325. v-for="(r, rIndex) in st.chooseSenList"
  14326. :key="rIndex"
  14327. @click="returnCard(r, stIndex, rIndex)"
  14328. >
  14329. <el-tooltip
  14330. class="item"
  14331. effect="light"
  14332. :content="r"
  14333. placement="top"
  14334. v-if="r != '' && r != undefined"
  14335. >
  14336. <div
  14337. :class="{
  14338. isCard: r,
  14339. isChooseCard: r == '' || r == undefined
  14340. }"
  14341. >
  14342. <div>{{ r }}</div>
  14343. </div>
  14344. </el-tooltip>
  14345. <div
  14346. :class="{
  14347. isCard: r,
  14348. isChooseCard: r == '' || r == undefined
  14349. }"
  14350. v-else
  14351. >
  14352. <div>{{ r }}</div>
  14353. </div>
  14354. </div>
  14355. </div>
  14356. </div>
  14357. <div class="cardList" v-if="st.addChangeSen">
  14358. <div class="cardBox">
  14359. <div
  14360. v-for="(s, sIndex) in st.addChangeSen"
  14361. :key="sIndex"
  14362. @click="setRightAnswer(s, stIndex, sIndex)"
  14363. >
  14364. <el-tooltip
  14365. class="item"
  14366. effect="light"
  14367. :content="s"
  14368. placement="top"
  14369. v-if="s != '' && s != undefined"
  14370. >
  14371. <div
  14372. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14373. >
  14374. <div>{{ s }}</div>
  14375. </div>
  14376. </el-tooltip>
  14377. <div
  14378. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14379. v-else
  14380. >
  14381. <div>{{ s }}</div>
  14382. </div>
  14383. </div>
  14384. </div>
  14385. </div>
  14386. </div>
  14387. </div>
  14388. </div>
  14389. <span slot="footer" class="dialog-footer">
  14390. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14391. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14392. </span>
  14393. </el-dialog>
  14394. <el-dialog
  14395. title="排序"
  14396. :visible.sync="dialogVisibleSentenceTeacher"
  14397. :append-to-body="true"
  14398. width="1000px"
  14399. :before-close="handleClose"
  14400. class="dialog_diy dialog_diy3"
  14401. >
  14402. <div>
  14403. <div class="w_name">
  14404. 学生姓名:<span>{{ sStudent.student }}</span>
  14405. </div>
  14406. <div class="sentenBox">
  14407. <div
  14408. v-for="(st, stIndex) in sentenceList"
  14409. :key="stIndex"
  14410. style="padding-bottom: 20px"
  14411. >
  14412. <div
  14413. style="padding: 15px 0 10px 20px"
  14414. class="sentenceTitle"
  14415. :index="stIndex + 1"
  14416. >
  14417. 题目{{ stIndex + 1 }}:请选择正确顺序
  14418. </div>
  14419. <div class="cardList" v-if="st.chooseSenList">
  14420. <div class="cardBox">
  14421. <div
  14422. v-for="(r, rIndex) in st.chooseSenList"
  14423. :key="rIndex"
  14424. @click="returnCard(r, stIndex, rIndex)"
  14425. >
  14426. <el-tooltip
  14427. class="item"
  14428. effect="light"
  14429. :content="r"
  14430. placement="top"
  14431. v-if="r != '' && r != undefined"
  14432. >
  14433. <div
  14434. :class="{
  14435. isCard: r,
  14436. isChooseCard: r == '' || r == undefined
  14437. }"
  14438. >
  14439. <div>{{ r }}</div>
  14440. </div>
  14441. </el-tooltip>
  14442. <div
  14443. :class="{
  14444. isCard: r,
  14445. isChooseCard: r == '' || r == undefined
  14446. }"
  14447. v-else
  14448. >
  14449. <div>{{ r }}</div>
  14450. </div>
  14451. </div>
  14452. </div>
  14453. </div>
  14454. <div class="cardList" v-if="st.addChangeSen">
  14455. <div class="cardBox">
  14456. <div
  14457. v-for="(s, sIndex) in st.addChangeSen"
  14458. :key="sIndex"
  14459. @click="setRightAnswer(s, stIndex, sIndex)"
  14460. >
  14461. <el-tooltip
  14462. class="item"
  14463. effect="light"
  14464. :content="s"
  14465. placement="top"
  14466. v-if="s != '' && s != undefined"
  14467. >
  14468. <div
  14469. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14470. >
  14471. <div>{{ s }}</div>
  14472. </div>
  14473. </el-tooltip>
  14474. <div
  14475. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14476. v-else
  14477. >
  14478. <div>{{ s }}</div>
  14479. </div>
  14480. </div>
  14481. </div>
  14482. </div>
  14483. </div>
  14484. </div>
  14485. </div>
  14486. <span slot="footer" class="dialog-footer">
  14487. <el-button @click="dialogVisibleSentenceTeacher = false"
  14488. >取 消</el-button
  14489. >
  14490. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14491. </span>
  14492. </el-dialog>
  14493. <el-dialog
  14494. title="排序"
  14495. :visible.sync="dialogVisibleSentence1"
  14496. :append-to-body="true"
  14497. width="1000px"
  14498. :before-close="handleClose"
  14499. class="dialog_diy dialog_diy3"
  14500. >
  14501. <div>
  14502. <div class="sentenBox">
  14503. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14504. {{ sentenceList1.stuName }}的作业
  14505. </div>
  14506. <div
  14507. v-for="(st, stIndex) in sentenceList1"
  14508. :key="stIndex"
  14509. style="padding-bottom: 20px"
  14510. >
  14511. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14512. 第{{ stIndex + 1 }}题
  14513. </div>
  14514. <div class="isWrong">
  14515. <div class="cardList1" v-if="st.chooseSenList">
  14516. <div class="cardBox">
  14517. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14518. <el-tooltip
  14519. class="item"
  14520. effect="light"
  14521. :content="s"
  14522. placement="top"
  14523. >
  14524. <div class="isCard">
  14525. <div>{{ s }}</div>
  14526. </div>
  14527. </el-tooltip>
  14528. </div>
  14529. </div>
  14530. <div class="cardAnswerBox">
  14531. 组成句子:{{ st.chooseSenList.join(" ") }}
  14532. </div>
  14533. </div>
  14534. <div v-if="tType == 2" class="isTj">
  14535. <div class="isTjImg">
  14536. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14537. </div>
  14538. <div>已提交</div>
  14539. </div>
  14540. <div
  14541. class="answerRight isTj"
  14542. v-if="
  14543. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14544. (tType == 1 || tType == 4)
  14545. "
  14546. >
  14547. <div class="isTjImg">
  14548. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14549. </div>
  14550. <div>回答正确</div>
  14551. </div>
  14552. <div
  14553. class="answerRight isTj"
  14554. v-if="
  14555. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14556. (tType == 1 || tType == 4)
  14557. "
  14558. >
  14559. <div class="isTjImg">
  14560. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14561. </div>
  14562. <div>回答错误</div>
  14563. </div>
  14564. </div>
  14565. <div
  14566. v-if="
  14567. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14568. (tType == 1 || tType == 4)
  14569. "
  14570. >
  14571. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14572. <div
  14573. class="cardList"
  14574. v-if="st.rightAnswer"
  14575. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14576. >
  14577. <div class="cardBox">
  14578. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14579. <el-tooltip
  14580. class="item"
  14581. effect="light"
  14582. :content="r"
  14583. placement="top"
  14584. >
  14585. <div class="isCard1">
  14586. <div>{{ r }}</div>
  14587. </div>
  14588. </el-tooltip>
  14589. </div>
  14590. </div>
  14591. <div class="cardAnswerBox">
  14592. 组成句子:{{ st.rightAnswer.join(" ") }}
  14593. </div>
  14594. </div>
  14595. </div>
  14596. </div>
  14597. </div>
  14598. </div>
  14599. <span slot="footer" class="dialog-footer">
  14600. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14601. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14602. >确 定</el-button
  14603. >
  14604. </span>
  14605. </el-dialog>
  14606. <el-dialog
  14607. title="教师提交作业"
  14608. :visible.sync="dialogVisibleWorks"
  14609. :append-to-body="true"
  14610. width="500px"
  14611. :before-close="handleClose"
  14612. class="dialog_change"
  14613. >
  14614. <div class="marginT">
  14615. <div class="w_name">
  14616. 学生姓名:<span>{{ sStudent.student }}</span>
  14617. </div>
  14618. <div>上传文件</div>
  14619. <div
  14620. class="chapter_add"
  14621. @click="addImg($event)"
  14622. v-if="studyJuri[0].cover.length == 0"
  14623. >
  14624. <div class="up_photo">
  14625. <img src="../../assets/uploadImg2.png" alt />
  14626. </div>
  14627. <!-- <input
  14628. type="file"
  14629. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14630. style="display: none"
  14631. @change="beforeUpload1($event, 1)"
  14632. /> -->
  14633. <input
  14634. type="file"
  14635. accept="*"
  14636. style="display: none"
  14637. @change="beforeUpload1($event, 1)"
  14638. />
  14639. </div>
  14640. <!-- capture="camera" -->
  14641. <div
  14642. class="chapter_add"
  14643. style="
  14644. display: flex;
  14645. width: 100%;
  14646. flex-direction: row;
  14647. flex-wrap: wrap;
  14648. justify-content: flex-start;
  14649. padding: 15px 0;
  14650. "
  14651. v-if="studyJuri[0].cover.length > 0"
  14652. >
  14653. <div class="upCover">
  14654. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14655. <img :src="word" alt v-else-if="fileType == 1" />
  14656. <img :src="video" alt v-else-if="fileType == 2" />
  14657. <img :src="word2" alt v-else-if="fileType == 3" />
  14658. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14659. <div class="deleteWord" @click="clean(1)">
  14660. <img src="../../assets/icon/deleteWorks.png" alt />
  14661. </div>
  14662. </div>
  14663. </div>
  14664. </div>
  14665. <div
  14666. class="upload_send"
  14667. @click="addCourseWorksTeacher(taskCount)"
  14668. v-if="!proVisible"
  14669. >
  14670. 提交
  14671. </div>
  14672. </el-dialog>
  14673. <ImgDraw
  14674. :drawShow="drawShow"
  14675. @closeDraw="closeDraw"
  14676. @addImgDraw="addImgDraw"
  14677. :bg="bg"
  14678. ></ImgDraw>
  14679. <el-dialog
  14680. title="表格"
  14681. :visible.sync="dialogVisibleTable"
  14682. :append-to-body="true"
  14683. width="95%"
  14684. :before-close="handleClose"
  14685. class="dialog_diy"
  14686. >
  14687. <el-form>
  14688. <div
  14689. style="
  14690. display: flex;
  14691. align-items: center;
  14692. justify-content: space-between;
  14693. "
  14694. >
  14695. <span>表格内容</span>
  14696. <el-button type="primary" size="small" @click="returnTableText"
  14697. >还原模板</el-button
  14698. >
  14699. </div>
  14700. <Table
  14701. v-model="tableJson.text"
  14702. @change="change"
  14703. v-if="dialogVisibleTable"
  14704. ></Table>
  14705. </el-form>
  14706. <span slot="footer" class="dialog-footer">
  14707. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14708. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14709. </span>
  14710. </el-dialog>
  14711. <el-dialog
  14712. title="表格"
  14713. :visible.sync="dialogVisibleTableTeacher"
  14714. :append-to-body="true"
  14715. width="95%"
  14716. :before-close="handleClose"
  14717. class="dialog_diy"
  14718. >
  14719. <el-form>
  14720. <div class="w_name">
  14721. 学生姓名:<span>{{ sStudent.student }}</span>
  14722. </div>
  14723. <div>表格内容</div>
  14724. <Table
  14725. v-model="tableJson.text"
  14726. @change="change"
  14727. v-if="dialogVisibleTableTeacher"
  14728. ></Table>
  14729. </el-form>
  14730. <span slot="footer" class="dialog-footer">
  14731. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14732. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14733. </span>
  14734. </el-dialog>
  14735. <el-dialog
  14736. title="文档"
  14737. :visible.sync="dialogVisibleWord"
  14738. :append-to-body="true"
  14739. width="95%"
  14740. :before-close="handleClose"
  14741. class="dialog_diy"
  14742. >
  14743. <el-form>
  14744. <div
  14745. style="
  14746. display: flex;
  14747. align-items: center;
  14748. justify-content: space-between;
  14749. "
  14750. >
  14751. <span>文档内容</span>
  14752. <el-button type="primary" size="small" @click="returnWordText"
  14753. >还原模板</el-button
  14754. >
  14755. </div>
  14756. <editor-bar
  14757. v-model="wordJson.text"
  14758. v-if="dialogVisibleWord"
  14759. ></editor-bar>
  14760. </el-form>
  14761. <span slot="footer" class="dialog-footer">
  14762. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14763. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14764. </span>
  14765. </el-dialog>
  14766. <el-dialog
  14767. title="文档"
  14768. :visible.sync="dialogVisibleWordTeacher"
  14769. :append-to-body="true"
  14770. width="95%"
  14771. :before-close="handleClose"
  14772. class="dialog_diy"
  14773. >
  14774. <el-form>
  14775. <div class="w_name">
  14776. 学生姓名:<span>{{ sStudent.student }}</span>
  14777. </div>
  14778. <div>文档内容</div>
  14779. <editor-bar
  14780. v-model="wordJson.text"
  14781. v-if="dialogVisibleWordTeacher"
  14782. ></editor-bar>
  14783. </el-form>
  14784. <span slot="footer" class="dialog-footer">
  14785. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14786. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14787. </span>
  14788. </el-dialog>
  14789. <el-dialog
  14790. title="表格"
  14791. :visible.sync="dialogVisibleTable2"
  14792. :append-to-body="true"
  14793. width="95%"
  14794. :before-close="handleClose"
  14795. class="dialog_diy"
  14796. >
  14797. <el-form>
  14798. <div class="cont" v-html="tableJson.text"></div>
  14799. </el-form>
  14800. <span slot="footer" class="dialog-footer">
  14801. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14802. </span>
  14803. </el-dialog>
  14804. <el-dialog
  14805. title="文档"
  14806. :visible.sync="dialogVisibleTable3"
  14807. :append-to-body="true"
  14808. width="95%"
  14809. :before-close="handleClose"
  14810. class="dialog_diy"
  14811. >
  14812. <el-form>
  14813. <div class="cont" v-html="tableJson.text"></div>
  14814. </el-form>
  14815. <span slot="footer" class="dialog-footer">
  14816. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14817. </span>
  14818. </el-dialog>
  14819. <el-dialog
  14820. title="分组设置"
  14821. :visible.sync="dialogVisibleGroup"
  14822. :append-to-body="true"
  14823. width="95%"
  14824. :before-close="handleClose"
  14825. class="dialog_diy"
  14826. >
  14827. <div v-if="dialogVisibleGroup">
  14828. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14829. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14830. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14831. </div>
  14832. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14833. @click="lockChair">
  14834. 锁定位置
  14835. </div>
  14836. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14837. 解锁位置
  14838. </div> -->
  14839. <div class="group_switch">
  14840. <span>开放选座</span>
  14841. <el-switch
  14842. v-model="islock"
  14843. active-text=""
  14844. class="switchCss"
  14845. @change="lockChair"
  14846. ></el-switch>
  14847. </div>
  14848. <div
  14849. type="primary"
  14850. @click="updateGroup"
  14851. class="returnBtn"
  14852. style="background-color: #225bc7"
  14853. >
  14854. 分组设置
  14855. </div>
  14856. </div>
  14857. <div>
  14858. <div
  14859. class="g_d_box"
  14860. v-if="groupJson.group && groupStudent[toolindex]"
  14861. >
  14862. <div
  14863. class="g_d_group"
  14864. v-for="(g, gindex) in groupJson.group"
  14865. :key="gindex"
  14866. >
  14867. <div class="g_d_group_chair">
  14868. <div v-if="groupJson.number > 1">
  14869. <span
  14870. :class="{
  14871. isChair:
  14872. groupStudent[toolindex][gindex] &&
  14873. groupStudent[toolindex][gindex][0],
  14874. updateChair:
  14875. courseDetail.userid == userid &&
  14876. groupStudent[toolindex][gindex] &&
  14877. groupStudent[toolindex][gindex][0] &&
  14878. groupJson.islock == 2
  14879. }"
  14880. ><span
  14881. class="updateChairBtn"
  14882. @click="
  14883. updateGroupChair(
  14884. groupStudent[toolindex][gindex] &&
  14885. groupStudent[toolindex][gindex][0]
  14886. )
  14887. "
  14888. >修改</span
  14889. ></span
  14890. ><span>{{
  14891. groupStudent[toolindex][gindex] &&
  14892. groupStudent[toolindex][gindex][0]
  14893. ? groupStudent[toolindex][gindex] &&
  14894. groupStudent[toolindex][gindex][0].name
  14895. : "空位置"
  14896. }}</span>
  14897. </div>
  14898. <div v-if="groupJson.number > 4">
  14899. <span
  14900. :class="{
  14901. isChair:
  14902. groupStudent[toolindex][gindex] &&
  14903. groupStudent[toolindex][gindex][4],
  14904. updateChair:
  14905. courseDetail.userid == userid &&
  14906. groupStudent[toolindex][gindex] &&
  14907. groupStudent[toolindex][gindex][4] &&
  14908. groupJson.islock == 2
  14909. }"
  14910. ><span
  14911. class="updateChairBtn"
  14912. @click="
  14913. updateGroupChair(
  14914. groupStudent[toolindex][gindex] &&
  14915. groupStudent[toolindex][gindex][4]
  14916. )
  14917. "
  14918. >修改</span
  14919. ></span
  14920. ><span>{{
  14921. groupStudent[toolindex][gindex] &&
  14922. groupStudent[toolindex][gindex][4]
  14923. ? groupStudent[toolindex][gindex] &&
  14924. groupStudent[toolindex][gindex][4].name
  14925. : "空位置"
  14926. }}</span>
  14927. </div>
  14928. <div v-if="groupJson.number > 8">
  14929. <span
  14930. :class="{
  14931. isChair:
  14932. groupStudent[toolindex][gindex] &&
  14933. groupStudent[toolindex][gindex][8],
  14934. updateChair:
  14935. courseDetail.userid == userid &&
  14936. groupStudent[toolindex][gindex] &&
  14937. groupStudent[toolindex][gindex][8] &&
  14938. groupJson.islock == 2
  14939. }"
  14940. ><span
  14941. class="updateChairBtn"
  14942. @click="
  14943. updateGroupChair(
  14944. groupStudent[toolindex][gindex] &&
  14945. groupStudent[toolindex][gindex][8]
  14946. )
  14947. "
  14948. >修改</span
  14949. ></span
  14950. ><span>{{
  14951. groupStudent[toolindex][gindex] &&
  14952. groupStudent[toolindex][gindex][8]
  14953. ? groupStudent[toolindex][gindex] &&
  14954. groupStudent[toolindex][gindex][8].name
  14955. : "空位置"
  14956. }}</span>
  14957. </div>
  14958. </div>
  14959. <div class="g_d_group_tableBox">
  14960. <div class="g_d_group_chair2">
  14961. <div v-if="groupJson.number > 2">
  14962. <span
  14963. :class="{
  14964. isChair:
  14965. groupStudent[toolindex][gindex] &&
  14966. groupStudent[toolindex][gindex][2],
  14967. updateChair:
  14968. courseDetail.userid == userid &&
  14969. groupStudent[toolindex][gindex] &&
  14970. groupStudent[toolindex][gindex][2] &&
  14971. groupJson.islock == 2
  14972. }"
  14973. ><span
  14974. class="updateChairBtn"
  14975. @click="
  14976. updateGroupChair(
  14977. groupStudent[toolindex][gindex] &&
  14978. groupStudent[toolindex][gindex][2]
  14979. )
  14980. "
  14981. >修改</span
  14982. ></span
  14983. ><span>{{
  14984. groupStudent[toolindex][gindex] &&
  14985. groupStudent[toolindex][gindex][2]
  14986. ? groupStudent[toolindex][gindex] &&
  14987. groupStudent[toolindex][gindex][2].name
  14988. : "空位置"
  14989. }}</span>
  14990. </div>
  14991. <div v-if="groupJson.number > 6">
  14992. <span
  14993. :class="{
  14994. isChair:
  14995. groupStudent[toolindex][gindex] &&
  14996. groupStudent[toolindex][gindex][6],
  14997. updateChair:
  14998. courseDetail.userid == userid &&
  14999. groupStudent[toolindex][gindex] &&
  15000. groupStudent[toolindex][gindex][6] &&
  15001. groupJson.islock == 2
  15002. }"
  15003. ><span
  15004. class="updateChairBtn"
  15005. @click="
  15006. updateGroupChair(
  15007. groupStudent[toolindex][gindex] &&
  15008. groupStudent[toolindex][gindex][6]
  15009. )
  15010. "
  15011. >修改</span
  15012. ></span
  15013. ><span>{{
  15014. groupStudent[toolindex][gindex] &&
  15015. groupStudent[toolindex][gindex][6]
  15016. ? groupStudent[toolindex][gindex] &&
  15017. groupStudent[toolindex][gindex][6].name
  15018. : "空位置"
  15019. }}</span>
  15020. </div>
  15021. </div>
  15022. <div class="g_d_group_table">
  15023. <div>
  15024. {{ g.name }}
  15025. </div>
  15026. <div>
  15027. <div
  15028. v-if="
  15029. courseDetail.userid == userid && groupJson.islock == 2
  15030. "
  15031. @click="deleteGroupChair(gindex)"
  15032. >
  15033. 移除组员
  15034. </div>
  15035. <div
  15036. @click="selectGroup(gindex)"
  15037. v-else-if="
  15038. groupStudentUid[toolindex] &&
  15039. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  15040. -1
  15041. "
  15042. >
  15043. 加入分组
  15044. </div>
  15045. <div
  15046. @click="
  15047. exitGroup(
  15048. groupStudent[toolindex][gindex] &&
  15049. groupStudent[toolindex][gindex][
  15050. groupStudentUid[toolindex][gindex].indexOf(userid)
  15051. ].id
  15052. )
  15053. "
  15054. v-else-if="
  15055. groupStudentUid[toolindex] &&
  15056. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  15057. -1
  15058. "
  15059. >
  15060. 退出分组
  15061. </div>
  15062. </div>
  15063. </div>
  15064. <div class="g_d_group_chair2">
  15065. <div v-if="groupJson.number > 3">
  15066. <span
  15067. :class="{
  15068. isChair:
  15069. groupStudent[toolindex][gindex] &&
  15070. groupStudent[toolindex][gindex][3],
  15071. updateChair:
  15072. courseDetail.userid == userid &&
  15073. groupStudent[toolindex][gindex] &&
  15074. groupStudent[toolindex][gindex][3] &&
  15075. groupJson.islock == 2
  15076. }"
  15077. ><span
  15078. class="updateChairBtn"
  15079. @click="
  15080. updateGroupChair(
  15081. groupStudent[toolindex][gindex] &&
  15082. groupStudent[toolindex][gindex][3]
  15083. )
  15084. "
  15085. >修改</span
  15086. ></span
  15087. ><span>{{
  15088. groupStudent[toolindex][gindex] &&
  15089. groupStudent[toolindex][gindex][3]
  15090. ? groupStudent[toolindex][gindex] &&
  15091. groupStudent[toolindex][gindex][3].name
  15092. : "空位置"
  15093. }}</span>
  15094. </div>
  15095. <div v-if="groupJson.number > 7">
  15096. <span
  15097. :class="{
  15098. isChair:
  15099. groupStudent[toolindex][gindex] &&
  15100. groupStudent[toolindex][gindex][7],
  15101. updateChair:
  15102. courseDetail.userid == userid &&
  15103. groupStudent[toolindex][gindex] &&
  15104. groupStudent[toolindex][gindex][7] &&
  15105. groupJson.islock == 2
  15106. }"
  15107. ><span
  15108. class="updateChairBtn"
  15109. @click="
  15110. updateGroupChair(
  15111. groupStudent[toolindex][gindex] &&
  15112. groupStudent[toolindex][gindex][7]
  15113. )
  15114. "
  15115. >修改</span
  15116. ></span
  15117. ><span>{{
  15118. groupStudent[toolindex][gindex] &&
  15119. groupStudent[toolindex][gindex][7]
  15120. ? groupStudent[toolindex][gindex] &&
  15121. groupStudent[toolindex][gindex][7].name
  15122. : "空位置"
  15123. }}</span>
  15124. </div>
  15125. </div>
  15126. </div>
  15127. <div class="g_d_group_chair">
  15128. <div v-if="groupJson.number > 1">
  15129. <span
  15130. :class="{
  15131. isChair:
  15132. groupStudent[toolindex][gindex] &&
  15133. groupStudent[toolindex][gindex][1],
  15134. updateChair:
  15135. courseDetail.userid == userid &&
  15136. groupStudent[toolindex][gindex] &&
  15137. groupStudent[toolindex][gindex][1] &&
  15138. groupJson.islock == 2
  15139. }"
  15140. ><span
  15141. class="updateChairBtn"
  15142. @click="
  15143. updateGroupChair(
  15144. groupStudent[toolindex][gindex] &&
  15145. groupStudent[toolindex][gindex][1]
  15146. )
  15147. "
  15148. >修改</span
  15149. ></span
  15150. ><span>{{
  15151. groupStudent[toolindex][gindex] &&
  15152. groupStudent[toolindex][gindex][1]
  15153. ? groupStudent[toolindex][gindex] &&
  15154. groupStudent[toolindex][gindex][1].name
  15155. : "空位置"
  15156. }}</span>
  15157. </div>
  15158. <div v-if="groupJson.number > 5">
  15159. <span
  15160. :class="{
  15161. isChair:
  15162. groupStudent[toolindex][gindex] &&
  15163. groupStudent[toolindex][gindex][5],
  15164. updateChair:
  15165. courseDetail.userid == userid &&
  15166. groupStudent[toolindex][gindex] &&
  15167. groupStudent[toolindex][gindex][5] &&
  15168. groupJson.islock == 2
  15169. }"
  15170. ><span
  15171. class="updateChairBtn"
  15172. @click="
  15173. updateGroupChair(
  15174. groupStudent[toolindex][gindex] &&
  15175. groupStudent[toolindex][gindex][5]
  15176. )
  15177. "
  15178. >修改</span
  15179. ></span
  15180. ><span>{{
  15181. groupStudent[toolindex][gindex] &&
  15182. groupStudent[toolindex][gindex][5]
  15183. ? groupStudent[toolindex][gindex] &&
  15184. groupStudent[toolindex][gindex][5].name
  15185. : "空位置"
  15186. }}</span>
  15187. </div>
  15188. <div v-if="groupJson.number > 9">
  15189. <span
  15190. :class="{
  15191. isChair:
  15192. groupStudent[toolindex][gindex] &&
  15193. groupStudent[toolindex][gindex][9],
  15194. updateChair:
  15195. courseDetail.userid == userid &&
  15196. groupStudent[toolindex][gindex] &&
  15197. groupStudent[toolindex][gindex][9] &&
  15198. groupJson.islock == 2
  15199. }"
  15200. ><span
  15201. class="updateChairBtn"
  15202. @click="
  15203. updateGroupChair(
  15204. groupStudent[toolindex][gindex] &&
  15205. groupStudent[toolindex][gindex][9]
  15206. )
  15207. "
  15208. >修改</span
  15209. ></span
  15210. ><span>{{
  15211. groupStudent[toolindex][gindex] &&
  15212. groupStudent[toolindex][gindex][9]
  15213. ? groupStudent[toolindex][gindex] &&
  15214. groupStudent[toolindex][gindex][9].name
  15215. : "空位置"
  15216. }}</span>
  15217. </div>
  15218. </div>
  15219. </div>
  15220. </div>
  15221. </div>
  15222. </div>
  15223. <span slot="footer" class="dialog-footer">
  15224. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15225. </span>
  15226. </el-dialog>
  15227. <el-dialog
  15228. title="分组设置"
  15229. :visible.sync="dialogVisibleGroup2"
  15230. :append-to-body="true"
  15231. width="650px"
  15232. :before-close="handleClose"
  15233. class="dialog_diy"
  15234. >
  15235. <div class="groupBox">
  15236. <div v-if="groupJson2.group" class="groupContent">
  15237. <div class="groupTitle">请设置小组数量及名称</div>
  15238. <div
  15239. v-for="(item, index) in groupJson2.group"
  15240. :key="index"
  15241. class="groupName"
  15242. >
  15243. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15244. <el-input
  15245. v-model="item.name"
  15246. placeholder="请输入名称..."
  15247. style="width: 250px"
  15248. ></el-input>
  15249. <!-- <div class="groupBtn">
  15250. <el-button type="primary" size="small" @click="addGroup(index)">
  15251. 添加</el-button>
  15252. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15253. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15254. </div> -->
  15255. </div>
  15256. </div>
  15257. <div class="groupContent">
  15258. <div class="groupTitle">请设置每组人数</div>
  15259. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15260. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15261. <el-input
  15262. v-model="groupJson2.number"
  15263. style="width: 150px"
  15264. placeholder="请输入2-10的数字"
  15265. @change="numberPan"
  15266. ></el-input>
  15267. </div>
  15268. </div>
  15269. <span slot="footer" class="dialog-footer">
  15270. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15271. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15272. </span>
  15273. </el-dialog>
  15274. <el-dialog
  15275. title="作业提交"
  15276. :visible.sync="dialogVisibleGroupWork"
  15277. :append-to-body="true"
  15278. width="500px"
  15279. :before-close="handleClose"
  15280. class="dialog_change"
  15281. >
  15282. <div class="marginT">
  15283. <div>上传文件</div>
  15284. <div
  15285. class="chapter_add"
  15286. @click="addImg($event)"
  15287. v-if="studyJuri[0].cover.length == 0"
  15288. >
  15289. <div class="up_photo">
  15290. <img src="../../assets/icon/uploadImg.png" alt />
  15291. </div>
  15292. <!-- <input
  15293. type="file"
  15294. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15295. style="display: none"
  15296. @change="beforeUpload1($event, 1)"
  15297. /> -->
  15298. <input
  15299. type="file"
  15300. accept="*"
  15301. style="display: none"
  15302. @change="beforeUpload1($event, 1)"
  15303. />
  15304. </div>
  15305. <!-- capture="camera" -->
  15306. <div
  15307. class="chapter_add"
  15308. style="
  15309. display: flex;
  15310. width: 100%;
  15311. flex-direction: row;
  15312. flex-wrap: wrap;
  15313. justify-content: flex-start;
  15314. padding: 15px 0;
  15315. "
  15316. v-if="studyJuri[0].cover.length > 0"
  15317. >
  15318. <div class="upCover">
  15319. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15320. <img :src="word" alt v-else-if="fileType == 1" />
  15321. <img :src="video" alt v-else-if="fileType == 2" />
  15322. <img :src="word2" alt v-else-if="fileType == 3" />
  15323. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15324. <div class="deleteWord" @click="clean(1)">
  15325. <img src="../../assets/icon/deleteWorks.png" alt />
  15326. </div>
  15327. </div>
  15328. </div>
  15329. </div>
  15330. <div
  15331. class="upload_send"
  15332. @click="addCourseWorks2(taskCount)"
  15333. v-if="!proVisible"
  15334. >
  15335. 提交
  15336. </div>
  15337. </el-dialog>
  15338. <el-dialog
  15339. title="修改分组"
  15340. :visible.sync="dialogVisibleUpdateGroup"
  15341. :append-to-body="true"
  15342. width="350px"
  15343. :before-close="handleClose"
  15344. class="dialog_diy"
  15345. >
  15346. <div>
  15347. <h2>
  15348. {{ this.updateGroupUser.name }}
  15349. </h2>
  15350. <div style="color: rgb(171 171 171); margin-top: 10px">
  15351. 请选择要进入的分组
  15352. </div>
  15353. <el-radio-group v-model="checkChair">
  15354. <el-radio
  15355. style="display: block; margin-top: 20px"
  15356. v-for="(item, index) in updateGroupArray"
  15357. :label="item.label"
  15358. :key="index"
  15359. >{{ item.name }}</el-radio
  15360. >
  15361. </el-radio-group>
  15362. </div>
  15363. <span slot="footer" class="dialog-footer">
  15364. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15365. <el-button type="primary" @click="updateChair">确定</el-button>
  15366. </span>
  15367. </el-dialog>
  15368. <el-dialog
  15369. title="移除组员"
  15370. :visible.sync="dialogVisibleDeleteGroup"
  15371. :append-to-body="true"
  15372. width="350px"
  15373. :before-close="handleClose"
  15374. class="dialog_diy"
  15375. >
  15376. <div>
  15377. <h2>
  15378. {{ this.deleteGroupArray.name }}
  15379. </h2>
  15380. <div style="color: rgb(171 171 171); margin-top: 10px">
  15381. 请选择要删除的组员
  15382. </div>
  15383. <el-checkbox-group v-model="checkDeleteGroup">
  15384. <el-checkbox
  15385. style="display: flex; margin-top: 20px"
  15386. v-for="(item, index) in deleteGroupUser"
  15387. :label="item.userid"
  15388. :key="index"
  15389. >{{ item.name }}</el-checkbox
  15390. >
  15391. </el-checkbox-group>
  15392. </div>
  15393. <span slot="footer" class="dialog-footer">
  15394. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15395. <el-button type="primary" @click="deleteChair">确定</el-button>
  15396. </span>
  15397. </el-dialog>
  15398. <el-dialog
  15399. title="批量上传"
  15400. :visible.sync="dialogVisiblePl"
  15401. :append-to-body="true"
  15402. width="700px"
  15403. :before-close="handleClose"
  15404. class="dialog_change"
  15405. >
  15406. <div class="marginT">
  15407. <div class="plworkBox">
  15408. <div
  15409. class="chapter_add"
  15410. style="
  15411. display: flex;
  15412. width: 150px;
  15413. flex-direction: row;
  15414. flex-wrap: wrap;
  15415. justify-content: flex-start;
  15416. margin: 0 10px 10px 0;
  15417. "
  15418. v-for="(item, index) in plworkFile"
  15419. :key="index"
  15420. >
  15421. <div class="upCover2">
  15422. <img
  15423. :src="item.url"
  15424. alt
  15425. v-if="item.fileType == 1"
  15426. @click="previewImg(item.url)"
  15427. />
  15428. <img :src="word" alt v-else-if="item.fileType == 4" />
  15429. <img :src="video" alt v-else />
  15430. <!-- <span class="picName">{{ item.name }}</span> -->
  15431. <!-- <el-input
  15432. v-model="item.username"
  15433. placeholder="请输入学生名字"
  15434. style="margin-top: 10px"
  15435. ></el-input> -->
  15436. <div
  15437. class="pl_select_box"
  15438. @click="
  15439. getUpdateMore(true, checkUpload(), item.username, index)
  15440. "
  15441. >
  15442. {{ getSName(item.username) }}
  15443. </div>
  15444. <!-- <el-select
  15445. style="margin-top: 10px"
  15446. v-model="item.username"
  15447. filterable
  15448. allow-create
  15449. placeholder="请选择学生"
  15450. >
  15451. <el-option
  15452. v-for="item1 in checkUpload()"
  15453. :key="item1.userid"
  15454. :label="item1.name ? item1.name : item1.username"
  15455. :value="item1.userid"
  15456. >
  15457. </el-option>
  15458. </el-select> -->
  15459. <div class="deleteWord" @click="clean2(index)">
  15460. <img src="../../assets/icon/deleteWorks.png" alt />
  15461. </div>
  15462. </div>
  15463. </div>
  15464. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15465. <div class="up_photo2">
  15466. <img src="../../assets/icon/plwork.png" alt />
  15467. <span>点击上传文件</span>
  15468. </div>
  15469. <input
  15470. type="file"
  15471. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15472. multiple="multiple"
  15473. style="display: none"
  15474. @change="beforeUpload3($event, 6)"
  15475. />
  15476. </div>
  15477. </div>
  15478. </div>
  15479. <!-- capture="camera" -->
  15480. <div
  15481. class="upload_send"
  15482. @click="addCourseWorksPl(taskCount)"
  15483. v-if="!proVisible2"
  15484. >
  15485. 提交
  15486. </div>
  15487. </el-dialog>
  15488. <el-dialog
  15489. title="修改名称"
  15490. :visible.sync="dialogVisibleSname"
  15491. width="500px"
  15492. :before-close="handleClose"
  15493. class="dialog_diy"
  15494. center
  15495. >
  15496. <div
  15497. style="
  15498. text-align: center;
  15499. display: flex;
  15500. align-items: center;
  15501. justify-content: center;
  15502. "
  15503. >
  15504. <span class="tian1">名称</span>
  15505. <div
  15506. class="pl_select_box"
  15507. style="margin-left: 10px; width: 200px"
  15508. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15509. >
  15510. {{ getSName(worksSName) }}
  15511. </div>
  15512. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15513. placeholder="请选择学生">
  15514. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15515. :value="item.userid">
  15516. </el-option>
  15517. </el-select> -->
  15518. <!-- <el-input
  15519. v-model="worksSName"
  15520. style="width: 250px; margin: 15px 0px"
  15521. ></el-input> -->
  15522. </div>
  15523. <span slot="footer" class="dialog-footer">
  15524. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15525. <el-button type="primary" @click="updateName">确 定</el-button>
  15526. </span>
  15527. </el-dialog>
  15528. <el-dialog
  15529. title="英语写作"
  15530. :visible.sync="engDialogVisible"
  15531. :append-to-body="true"
  15532. width="800px"
  15533. :before-close="handleClose"
  15534. class="dialog_diy"
  15535. >
  15536. <onlineWrite
  15537. v-if="engDialogVisible"
  15538. :englishList="englishList"
  15539. :myAnswerList1="myAnswerList1"
  15540. ref="engJson"
  15541. ></onlineWrite>
  15542. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15543. <el-button @click="engDialogVisible = false">取 消</el-button>
  15544. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15545. </span>
  15546. </el-dialog>
  15547. <el-dialog
  15548. title="英语写作"
  15549. :visible.sync="engUpdateDialogVisible"
  15550. :append-to-body="true"
  15551. width="800px"
  15552. :before-close="handleClose"
  15553. class="dialog_diy fullStyle"
  15554. >
  15555. <div class="engUpBox">
  15556. <div class="engUpTop">
  15557. <div class="engTitle">
  15558. <div>作文题目:</div>
  15559. <div>{{ englishList1.engTitle }}</div>
  15560. </div>
  15561. <div class="engText">
  15562. <div>作文内容:</div>
  15563. <div
  15564. class="cont"
  15565. v-html="englishList1.englishText"
  15566. style="white-space: pre-line;"
  15567. @click="checkImg(getImgList(englishList1.englishText))"
  15568. ></div>
  15569. </div>
  15570. </div>
  15571. <div
  15572. class="correctBox"
  15573. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15574. >
  15575. <div class="oldBox">
  15576. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15577. <div class="oldText">
  15578. <div class="detailBox">
  15579. <div class="oldDetail">
  15580. <div>标题:</div>
  15581. <div>{{ oldEnglishJson.engTitle }}</div>
  15582. </div>
  15583. <div class="oldDetail1">
  15584. <div>正文:</div>
  15585. <div
  15586. v-html="oldEnglishJson.engText"
  15587. style="white-space: pre-line;"
  15588. ></div>
  15589. </div>
  15590. <div
  15591. class="oldDetail"
  15592. v-if="
  15593. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15594. "
  15595. >
  15596. <div>图片:</div>
  15597. <div class="oldImg">
  15598. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15599. </div>
  15600. </div>
  15601. </div>
  15602. </div>
  15603. </div>
  15604. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15605. <div class="oldMes" style="background: #aacaff;">
  15606. {{ userMes[0].username }}
  15607. </div>
  15608. <div class="oldText">
  15609. <div class="detailBox" style="position: relative;">
  15610. <div class="oldDetail">
  15611. <div>标题:</div>
  15612. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15613. <div v-else v-html="newEnglishList.engTitle"></div>
  15614. </div>
  15615. <div class="oldDetail">
  15616. <div>正文:</div>
  15617. <el-input
  15618. v-if="greyType"
  15619. type="textarea"
  15620. :rows="10"
  15621. resize="none"
  15622. v-model="newEnglishList.engText"
  15623. @input="gx"
  15624. />
  15625. <correctText
  15626. :newText="newEnglishList.engText"
  15627. :oldData="oldEnglishJson.engText"
  15628. />
  15629. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15630. </div>
  15631. <div style="position: absolute;bottom: -25px;">
  15632. 注:红色划线字为删除,绿色背景白色字为新添加.
  15633. </div>
  15634. <el-button
  15635. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15636. class="correctCss"
  15637. :style="{ right: greyType == false ? '0' : '80px' }"
  15638. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15639. >
  15640. <el-button
  15641. @click="aiCorrect(newEnglishList.engText, 1)"
  15642. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15643. v-if="!greyType"
  15644. >AI批注</el-button
  15645. >
  15646. <el-button
  15647. @click="addCorrect"
  15648. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15649. v-if="greyType"
  15650. >确定</el-button
  15651. >
  15652. </div>
  15653. </div>
  15654. </div>
  15655. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15656. <div
  15657. class="oldMes"
  15658. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15659. v-if="newEnglishList1.length > 0"
  15660. >
  15661. <div
  15662. v-if="isNoUserid"
  15663. class="allName"
  15664. :style="{
  15665. minWidth: `calc(100% / ${engListLength})`,
  15666. background: newEngIndex == -1 ? '#aacaff' : ''
  15667. }"
  15668. @click="setEngText(-1)"
  15669. style="background: #aacaff;"
  15670. >
  15671. {{ userMes[0].username }}
  15672. </div>
  15673. <div
  15674. v-for="(item, index) in newEnglishList1"
  15675. :key="index"
  15676. class="allName"
  15677. :style="{
  15678. minWidth: `calc(100% / ${engListLength})`,
  15679. background: index == newEngIndex ? '#aacaff' : ''
  15680. }"
  15681. @click="setEngText(index)"
  15682. >
  15683. {{ item.username }}
  15684. </div>
  15685. </div>
  15686. <div class="oldMes" style="background: #aacaff;" v-else>
  15687. {{ userMes[0].username }}
  15688. </div>
  15689. <div
  15690. class="oldText"
  15691. v-if="
  15692. newEngIndex == -1 &&
  15693. isNoUserid == true &&
  15694. newEnglishList1.length
  15695. "
  15696. >
  15697. <div class="detailBox" style="position: relative;">
  15698. <div class="oldDetail">
  15699. <div>标题:</div>
  15700. <el-input
  15701. v-if="greyType"
  15702. v-model="oldEnglishJson1.engTitle"
  15703. />
  15704. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15705. </div>
  15706. <div class="oldDetail">
  15707. <div>正文:</div>
  15708. <el-input
  15709. v-if="greyType"
  15710. type="textarea"
  15711. :rows="10"
  15712. resize="none"
  15713. v-model="oldEnglishJson1.engText"
  15714. @input="gx"
  15715. />
  15716. <correctText
  15717. v-else
  15718. :newText="oldEnglishJson1.engText"
  15719. :oldData="oldEnglishJson.engText"
  15720. />
  15721. </div>
  15722. <div style="position: absolute;bottom: -25px;">
  15723. 注:红色划线字为删除,绿色背景白色字为新添加.
  15724. </div>
  15725. <el-button
  15726. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15727. class="correctCss"
  15728. :style="{ right: greyType == false ? '0' : '80px' }"
  15729. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15730. >
  15731. <el-button
  15732. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15733. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15734. v-if="!greyType"
  15735. >AI批注</el-button
  15736. >
  15737. <el-button
  15738. @click="addCorrect"
  15739. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15740. v-if="greyType"
  15741. >确定</el-button
  15742. >
  15743. </div>
  15744. </div>
  15745. <div class="oldText" v-else-if="newEngIndex == -1">
  15746. <div class="detailBox" style="position: relative;">
  15747. <div class="oldDetail">
  15748. <div>标题:</div>
  15749. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15750. <div v-else v-html="newEnglishList.engTitle"></div>
  15751. </div>
  15752. <div class="oldDetail">
  15753. <div>正文:</div>
  15754. <el-input
  15755. v-if="greyType"
  15756. type="textarea"
  15757. :rows="10"
  15758. resize="none"
  15759. v-model="newEnglishList.engText"
  15760. @input="gx"
  15761. />
  15762. <correctText
  15763. v-else
  15764. :newText="newEnglishList.engText"
  15765. :oldData="oldEnglishJson.engText"
  15766. />
  15767. </div>
  15768. <div style="position: absolute;bottom: -25px;">
  15769. 注:红色划线字为删除,绿色背景白色字为新添加.
  15770. </div>
  15771. <el-button
  15772. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15773. class="correctCss"
  15774. :style="{ right: greyType == false ? '0' : '80px' }"
  15775. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15776. >
  15777. <el-button
  15778. @click="aiCorrect(newEnglishList.engText, 3)"
  15779. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15780. v-if="!greyType"
  15781. >AI批注</el-button
  15782. >
  15783. <el-button
  15784. @click="addCorrect"
  15785. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15786. v-if="greyType"
  15787. >确定</el-button
  15788. >
  15789. </div>
  15790. </div>
  15791. <div
  15792. class="oldText"
  15793. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15794. >
  15795. <div class="detailBox" style="position: relative;">
  15796. <div class="oldDetail">
  15797. <div>标题:</div>
  15798. <div
  15799. v-if="
  15800. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15801. "
  15802. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15803. ></div>
  15804. <div v-else>
  15805. <el-input
  15806. v-if="greyType"
  15807. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15808. />
  15809. <div
  15810. v-else
  15811. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15812. ></div>
  15813. </div>
  15814. </div>
  15815. <div class="oldDetail">
  15816. <div>正文:</div>
  15817. <correctText
  15818. v-if="
  15819. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15820. "
  15821. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15822. :oldData="oldEnglishJson.engText"
  15823. />
  15824. <div v-else>
  15825. <el-input
  15826. v-if="greyType"
  15827. type="textarea"
  15828. :rows="10"
  15829. resize="none"
  15830. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15831. @input="gx"
  15832. />
  15833. <correctText
  15834. v-else
  15835. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15836. :oldData="oldEnglishJson.engText"
  15837. />
  15838. </div>
  15839. </div>
  15840. <div style="position: absolute;bottom: -25px;">
  15841. 注:红色划线字为删除,绿色背景白色字为新添加.
  15842. </div>
  15843. <el-button
  15844. @click="
  15845. isUpdateCorrect(
  15846. newEnglishList1[newEngIndex].cWork.engText,
  15847. 4
  15848. )
  15849. "
  15850. class="correctCss"
  15851. :style="{ right: greyType == false ? '0' : '80px' }"
  15852. v-if="
  15853. !greyType &&
  15854. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15855. "
  15856. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15857. >
  15858. <el-button
  15859. @click="
  15860. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15861. "
  15862. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15863. v-if="
  15864. !greyType &&
  15865. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15866. "
  15867. >AI批注</el-button
  15868. >
  15869. <el-button
  15870. @click="addCorrect"
  15871. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15872. v-if="greyType"
  15873. >确定</el-button
  15874. >
  15875. </div>
  15876. </div>
  15877. </div>
  15878. </div>
  15879. </div>
  15880. <span slot="footer" class="dialog-footer">
  15881. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15882. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15883. </span>
  15884. </el-dialog>
  15885. <englishEva
  15886. :evaEngJson="evaEngJson"
  15887. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15888. :uid="userid"
  15889. :tType="tType"
  15890. :courseDetail="courseDetail"
  15891. ></englishEva>
  15892. <interVideo
  15893. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15894. :videoJson="videoJson"
  15895. :userid="userid"
  15896. :id="id"
  15897. :courseType="courseType"
  15898. :taskCount="taskCount"
  15899. :toolindex="toolindex"
  15900. :videoType="videoType"
  15901. ></interVideo>
  15902. <UpdateMore
  15903. :dialogVisibleMember.sync="dialogVisibleMember"
  15904. :cList="uploadStudentJuri"
  15905. :userid="userid"
  15906. :searchTN="worksSName2"
  15907. @setPlname="setPlname"
  15908. ></UpdateMore>
  15909. <!-- <wordCloud
  15910. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15911. :data="wordCloudData"
  15912. ></wordCloud> -->
  15913. <el-dialog
  15914. title="词云"
  15915. :visible.sync="dialogVisibleWordCloud"
  15916. width="30%"
  15917. class="dialog_diy"
  15918. :before-close="handleClose">
  15919. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15920. </el-dialog>
  15921. <el-dialog
  15922. title="挑人"
  15923. :visible.sync="dialogVisiblePickPeople"
  15924. width="650px"
  15925. :before-close="handleClose"
  15926. class="dialog_diy"
  15927. center
  15928. >
  15929. <div class="pick_box">
  15930. <div
  15931. class="noWorksName"
  15932. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15933. v-for="(item, index) in uploadStudentJuri"
  15934. :key="index"
  15935. @click="pickStudent(item)"
  15936. >
  15937. {{ item.name }}
  15938. </div>
  15939. </div>
  15940. </el-dialog>
  15941. <EnglishVoice
  15942. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15943. :englishVoiceJson="englishVoiceJson"
  15944. :userid="userid"
  15945. :id="id"
  15946. :courseType="courseType"
  15947. :taskCount="taskCount"
  15948. :toolindex="toolindex"
  15949. @selectSWorks="selectSWorks"
  15950. @selectStudent="selectStudent"
  15951. :englishVoiceJsonWork="englishVoiceJsonWork"
  15952. ></EnglishVoice>
  15953. <checkEnglishVoice
  15954. :englishVoiceJson="englishVoiceJson"
  15955. :userid="userid"
  15956. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15957. :commentDetail="commentDetail"
  15958. :courseDetail="courseDetail"
  15959. :wScore="wScore"
  15960. :scoreDetail="scoreDetail"
  15961. @selectSWorks="selectSWorks"
  15962. @selectStudent="selectStudent"
  15963. ></checkEnglishVoice>
  15964. <el-dialog
  15965. title="教师评分"
  15966. :visible.sync="markScoreVisible"
  15967. :append-to-body="true"
  15968. width="1000px"
  15969. :fullscreen="markfullscreen"
  15970. :before-close="markScorehandleClose"
  15971. class="markScore_diy"
  15972. >
  15973. <div slot="title">
  15974. <div class="markScore_diyTit">
  15975. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15976. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15977. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15978. </div>
  15979. </div>
  15980. </div>
  15981. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15982. <!-- @updateDocSco="updateDocSco" -->
  15983. <markDialog
  15984. :key="markScoreVisible.toString()"
  15985. :uid="markScoreUid"
  15986. :toolIndex="markScoretoolIndex"
  15987. :stage="courseType"
  15988. :task="taskCount"
  15989. :taskDetail="
  15990. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15991. "
  15992. :tool="toolListS"
  15993. :languageSetting="languageSetting"
  15994. :scoTit="markScoreTit"
  15995. :tType="tType"
  15996. :sIsOpen="sIsOpen"
  15997. :markScoreworksStudent="markScoreworksStudent"
  15998. :markScoreVisible="markScoreVisible"
  15999. ></markDialog>
  16000. </el-dialog>
  16001. <!-- 查看Txt,md等文件 -->
  16002. <el-dialog
  16003. title="文件预览"
  16004. :visible.sync="dialogVisibleTxt"
  16005. width="50%"
  16006. :before-close="handleCloseTxt"
  16007. class="dialog_diy"
  16008. :class="{ fullStyle: full }"
  16009. >
  16010. <div slot="title" class="header-title">
  16011. <div style="color: #fff">文件预览</div>
  16012. <div style="position: absolute; top: 19px; right: 50px">
  16013. <img
  16014. src="../../assets/full.png"
  16015. style="height: 16px; cursor: pointer"
  16016. alt=""
  16017. @click="fullTools"
  16018. />
  16019. </div>
  16020. </div>
  16021. <div>{{ TxtMd }}</div>
  16022. </el-dialog>
  16023. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  16024. <choseWorksDetailDialog
  16025. ref="choseWorksDetailDialogRef"
  16026. :worksStudentData="worksStudent"
  16027. :noWorksSData="noWorksS"
  16028. :chapInfoListData="chapInfoList"
  16029. :courseType="courseType"
  16030. :taskCount="taskCount"
  16031. :tType="tType"
  16032. :sIsOpen="sIsOpen"
  16033. :courseDetail="courseDetail"
  16034. :groupStudent2="groupStudent"
  16035. :groupStudentUid2="groupStudentUid"
  16036. :oid="oid"
  16037. :org="org"
  16038. @getCourseDetail="getCourseDetail"
  16039. @selectSLook="selectSLook"
  16040. @selectSWorks="selectSWorks"
  16041. @selectStudent="selectStudent"
  16042. @deleteWorks="deleteWorks"
  16043. @openTools="openTools"
  16044. @openWord="openWord"
  16045. @openScore="openScore"
  16046. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  16047. />
  16048. <el-dialog
  16049. :visible.sync="confirmOpenDig"
  16050. width="500px"
  16051. :modal="false"
  16052. class="confirmOpenDigCss dialog_diyCopy"
  16053. :before-close="handleClose">
  16054. <div style="display: flex;align-items: center;">
  16055. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  16056. <span>“{{ courseDetail.title }}”开课啦</span>
  16057. </div>
  16058. <div style="margin: 20px 0 35px;">
  16059. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  16060. <div>要认真听讲哦~</div>
  16061. </div>
  16062. <div style="text-align: center;">
  16063. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  16064. </div>
  16065. </el-dialog>
  16066. <appStoreC ref="appStoreC"
  16067. :sStudent="sStudent"
  16068. :courseType="courseType"
  16069. :taskCount="taskCount"
  16070. :toolindex="toolindex"
  16071. @selectSWorks="selectSWorks"
  16072. @selectStudent="selectStudent"
  16073. ></appStoreC>
  16074. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  16075. </div>
  16076. </template>
  16077. <script>
  16078. import "../../common/aws-sdk-2.235.1.min.js";
  16079. // import pdf from "../components/pdf3";
  16080. import pdf from "../components/vpdf";
  16081. import AskStatic from "../components/askStatic";
  16082. import AskStatic2 from "../components/askStatic2";
  16083. import AnswerData2 from "../components/answerData2";
  16084. import AnswerData from "../components/answerData";
  16085. import EditorBar from "../tools/wangEnduit.vue";
  16086. import Table from "../tools/table.vue";
  16087. import Time from "../tools/time.vue";
  16088. import Mind from "../tools/jsmind.vue";
  16089. import Sunburst from "../tools/sunburst";
  16090. import SeeBoard from "../tools/seeBoard";
  16091. import * as imageConversion from "image-conversion";
  16092. import Audio from "../components/audio.vue";
  16093. import ImgDraw from "../tools/imgDraw/imgDraw";
  16094. import { Empty } from "element-ui";
  16095. import RecordRTC from "recordrtc";
  16096. import interVideo from "../interVideo/index.vue";
  16097. import UpdateMore from "../updateMore/updateMore.vue";
  16098. import wordCloud from "../wordCloud/index.vue";
  16099. import axios from "axios";
  16100. import JSZip from "jszip";
  16101. import FileSaver from "file-saver";
  16102. import onlineWrite from "./commpont/onlineWrite";
  16103. import englishEva from "../components/englishEva";
  16104. import * as Diff from "diff";
  16105. import EnglishVoice from "../EnglishVoice2/index.vue";
  16106. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  16107. import correctText from "../components/correctText.vue";
  16108. import scoreItem from "../scoreList/scoreItem.vue";
  16109. import scoreZong from "../scoreZong/index.vue";
  16110. import classRoomHelper from "../classRoomHelper/index.vue";
  16111. import markScore from "./commpont/markScore";
  16112. import markDialog from "./commpont/markDialog";
  16113. import evaTable from "./commpont/evaTable";
  16114. import { v4 as uuidv4 } from "uuid";
  16115. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  16116. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  16117. import appStoreC from "../components/appStoreC.vue";
  16118. import cocoFlowDia from "../components/cocoFlowDia.vue";
  16119. import choseWordCloud from '../components/choseWordCloud.vue'
  16120. import { myMixin } from "@/mixins/mixin.js"
  16121. import { tools as toolsList } from "@/common/tools2.js";
  16122. var OpenCC = require("opencc-js");
  16123. let converter = OpenCC.Converter({
  16124. from: "hk",
  16125. to: "cn"
  16126. });
  16127. const getFile = url => {
  16128. return new Promise((resolve, reject) => {
  16129. var credentials = {
  16130. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16131. secretAccessKey: "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"
  16132. }; //秘钥形式的登录上传
  16133. window.AWS.config.update(credentials);
  16134. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16135. let url2 = url;
  16136. let _url2 = "";
  16137. if (
  16138. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16139. ) {
  16140. _url2 = url2.split(
  16141. "https://view.officeapps.live.com/op/view.aspx?src="
  16142. )[1];
  16143. } else {
  16144. _url2 = url2;
  16145. }
  16146. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  16147. let name = decodeURIComponent(
  16148. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16149. );
  16150. var params = {
  16151. Bucket: "ccrb",
  16152. Key: name
  16153. };
  16154. s3.getObject(params, function(err, data) {
  16155. if (err) {
  16156. console.log(err, err.stack);
  16157. resolve({ data: 1 });
  16158. } else {
  16159. resolve({ data: data.Body });
  16160. console.log(data);
  16161. } // sxuccessful response
  16162. });
  16163. // axios({
  16164. // method: "get",
  16165. // url,
  16166. // responseType: "blob",
  16167. // })
  16168. // .then((data) => {
  16169. // resolve({ data: data.data });
  16170. // })
  16171. // .catch((error) => {
  16172. // resolve({ data: 1 });
  16173. // // reject(error.toString());
  16174. // });
  16175. });
  16176. };
  16177. export default {
  16178. mixins: [ myMixin ],
  16179. components: {
  16180. choseWordCloud,
  16181. EditorBar,
  16182. Time,
  16183. pdf,
  16184. AskStatic,
  16185. AskStatic2,
  16186. Mind,
  16187. Sunburst,
  16188. SeeBoard,
  16189. AnswerData2,
  16190. AnswerData,
  16191. Audio,
  16192. ImgDraw,
  16193. Table,
  16194. interVideo,
  16195. UpdateMore,
  16196. wordCloud,
  16197. onlineWrite,
  16198. englishEva,
  16199. EnglishVoice,
  16200. checkEnglishVoice,
  16201. correctText,
  16202. scoreItem,
  16203. classRoomHelper,
  16204. scoreZong,
  16205. markScore,
  16206. markDialog,
  16207. evaTable,
  16208. statisticalAnalysis,
  16209. choseWorksDetailDialog,
  16210. appStoreC,
  16211. cocoFlowDia
  16212. },
  16213. data() {
  16214. return {
  16215. wordCloudKey: 0,
  16216. bg: null,
  16217. drawShow: false,
  16218. dialogVisible: false,
  16219. dialogVisiblePl: false,
  16220. commentDialogVisible: false,
  16221. dialogVisibleMember: false,
  16222. dialogVisibleWordCloud: false,
  16223. videoVisible: false,
  16224. isStar: false,
  16225. studentEvalDialogVisible: false,
  16226. studentEvalDialogVisibleTeacher: false,
  16227. dialogVisibleSelect: false,
  16228. dialogVisibleSelectTeacher: false,
  16229. dialogVisibleScore: false,
  16230. dialogVisibleENScore: false,
  16231. dialogVisibleSentence: false,
  16232. dialogVisibleSentenceTeacher: false,
  16233. dialogVisibleSentence1: false,
  16234. dialogVisibleWorks: false,
  16235. dialogVisibleTable: false,
  16236. dialogVisibleTableTeacher: false,
  16237. dialogVisibleWord: false,
  16238. dialogVisibleWordTeacher: false,
  16239. dialogVisibleTable2: false,
  16240. dialogVisibleTable3: false,
  16241. dialogVisibleGroupWork: false,
  16242. dialogVisibleUpdateGroup: false,
  16243. dialogVisibleDeleteGroup: false,
  16244. dialogVisibleSname: false,
  16245. dialogVisibleVideo: false,
  16246. dialogVisiblePickPeople: false,
  16247. engDialogVisible: false,
  16248. engUpdateDialogVisible: false,
  16249. engEvaDialogVisible: false,
  16250. evaEngJson: {
  16251. teacherJson: {},
  16252. studentJson: {},
  16253. message: {}
  16254. },
  16255. isNoUserid: false,
  16256. engListLength: 0,
  16257. engWid: "",
  16258. newEnglishList: {
  16259. engTitle: "",
  16260. engText: ""
  16261. },
  16262. toolsList: toolsList,
  16263. newEnglishList1: [],
  16264. oldEnglishJson: {},
  16265. oldEnglishJson1: {},
  16266. englishList1: {},
  16267. englishList: {},
  16268. myAnswerList1: {},
  16269. topHeight: 0,
  16270. newEngIndex: -1,
  16271. englishToolIndex: 0,
  16272. userMes: {},
  16273. englishToolIndex: 0,
  16274. worksSName: "",
  16275. classJuri: [],
  16276. uploadStudentJuri: [],
  16277. uploadCid: "",
  16278. snameWid: "",
  16279. sStudent: {},
  16280. sTool: "",
  16281. bzText: "",
  16282. commentDetail: [],
  16283. selectAnswer: [],
  16284. videoDetail: {},
  16285. selectJson: {},
  16286. englishList: {},
  16287. topHeight: 0,
  16288. eScore: { eBzText: "", eStar: [] },
  16289. id: this.$route.query.courseId,
  16290. userid: this.$route.query.userid,
  16291. classId: this.$route.query.cid,
  16292. // courseTypeLine: this.$route.query.type,
  16293. oid: this.$route.query.oid,
  16294. org: this.$route.query.org,
  16295. tType: this.$route.query.tType,
  16296. courseType: this.$route.query.type,
  16297. screenType: this.$route.query.screenType,
  16298. tcid2: this.$route.query.tcid,
  16299. tcid: "",
  16300. pptImgUrl: "",
  16301. pptImgUrl1: "",
  16302. commentText: "",
  16303. full: false,
  16304. sIsOpen: false, //允许学生查看所有作业
  16305. IsLookOpen: false, //禁止学生查看所有阶段
  16306. IsFollow: false, //开启跟随模式
  16307. pzDialog: false,
  16308. contentDialog: false,
  16309. mlDialog: false,
  16310. type: 1,
  16311. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  16312. sentenceList1: [],
  16313. tableJson: [],
  16314. tableJsonO: [],
  16315. wordJson: [],
  16316. wordJsonO: [],
  16317. vedio: [],
  16318. text: [],
  16319. textList: [],
  16320. line: [],
  16321. lineList: [],
  16322. chapTools: [],
  16323. chapToolList: [],
  16324. file: [],
  16325. fileC: [],
  16326. vedioTime: [],
  16327. upToolImg: "",
  16328. preTime: 0,
  16329. rateList: {
  16330. ca: 0
  16331. },
  16332. rateParams: [],
  16333. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  16334. studyJuri: [
  16335. {
  16336. content: "",
  16337. cover: [],
  16338. upVedio: [],
  16339. upFile: []
  16340. }
  16341. ],
  16342. isClose: 0,
  16343. plworkFile: [],
  16344. mr: require("../../assets/vedioPic.png"),
  16345. word: require("../../assets/icon/isWord.png"),
  16346. word2: require("../../assets/icon/word2.png"),
  16347. video: require("../../assets/icon/isVideo.png"),
  16348. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16349. likes: require("../../assets/icon/comment/likes.png"),
  16350. scoreImg: require("../../assets/score.png"),
  16351. courseDetail: {},
  16352. reply: "",
  16353. isSelect: false,
  16354. chapInfo: [],
  16355. chapInfoList: [],
  16356. taskCount: 0,
  16357. imgList: [],
  16358. noImgList: [],
  16359. pzList: [],
  16360. timeWorkList: [],
  16361. PlTextList: [
  16362. "Excellent!",
  16363. "nice!",
  16364. "很有创意!",
  16365. "还不错哦~",
  16366. "继续努力哦~"
  16367. ],
  16368. isClickNav: "",
  16369. navId: "",
  16370. playerOptions: {
  16371. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16372. autoplay: false, //如果true,浏览器准备好时开始回放。
  16373. muted: false, // 默认情况下将会消除任何音频。
  16374. loop: false, // 导致视频一结束就重新开始。
  16375. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16376. language: "zh-CN",
  16377. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16378. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16379. sources: [
  16380. {
  16381. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16382. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16383. }
  16384. ],
  16385. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16386. // poster: dataRes.imgUrl, //你的封面地址
  16387. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16388. controlBar: {
  16389. timeDivider: true, //当前时间和持续时间的分隔符
  16390. durationDisplay: true, //显示持续时间
  16391. remainingTimeDisplay: false, //是否显示剩余时间功能
  16392. fullscreenToggle: true //全屏按钮
  16393. }
  16394. },
  16395. playerOptions1: {
  16396. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16397. autoplay: false, //如果true,浏览器准备好时开始回放。
  16398. muted: false, // 默认情况下将会消除任何音频。
  16399. loop: false, // 导致视频一结束就重新开始。
  16400. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16401. language: "zh-CN",
  16402. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16403. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16404. sources: [
  16405. {
  16406. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16407. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16408. }
  16409. ],
  16410. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16411. // poster: dataRes.imgUrl, //你的封面地址
  16412. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16413. controlBar: {
  16414. timeDivider: true, //当前时间和持续时间的分隔符
  16415. durationDisplay: true, //显示持续时间
  16416. remainingTimeDisplay: false, //是否显示剩余时间功能
  16417. fullscreenToggle: true //全屏按钮
  16418. }
  16419. },
  16420. playerO: {},
  16421. noneBtnImg: false,
  16422. proVisible: false,
  16423. proVisible2: false,
  16424. progress: 0,
  16425. isFinishSize: 0,
  16426. isAllSize: 0,
  16427. questionAnswer: "",
  16428. answerQ: "", //问答标题
  16429. rateJson: [],
  16430. wbCount: 0,
  16431. wordCount: 0,
  16432. mindCount: 0,
  16433. askCount: 0,
  16434. noteCount: 0,
  16435. mindNetWorkCount: 0,
  16436. libraryCount: 0,
  16437. workCount: 0,
  16438. timeCount: 0,
  16439. answerCount: 0,
  16440. trainCount: 0,
  16441. evalCount: 0,
  16442. dialogImageUrl: "",
  16443. pictureDialog: false,
  16444. toolTypeList: [],
  16445. dialogVisible1: false,
  16446. dialogVisible2: false,
  16447. dialogVisible3: false,
  16448. dialogVisible6: false,
  16449. dialogVisible4: false,
  16450. isNoHomeWork: false,
  16451. dialogVisible5: false,
  16452. dialogVisible5Teacher: false,
  16453. dialogVisibleChoice: false,
  16454. dialogVisibleChoiceTeacher: false,
  16455. answerDialogVisible: false,
  16456. answerDialogVisibleTeacher: false,
  16457. juriVisible: false,
  16458. timeDialogVisible: false,
  16459. replyDialogVisible: false,
  16460. toolDialogVisible: false,
  16461. replyIndex: 0,
  16462. replyPid: "",
  16463. radio: [],
  16464. isAsk: false,
  16465. askJson: {
  16466. askCount: 1,
  16467. askTitle: "",
  16468. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16469. },
  16470. testJson: {},
  16471. videoType: 0,
  16472. checkJson: [],
  16473. askList: [],
  16474. answerList: [],
  16475. navList: [],
  16476. addPzDialog: false,
  16477. pzConText: "",
  16478. worksStudent: [],
  16479. isCloseList: [],
  16480. workStudent: [],
  16481. groupStudent: [],
  16482. groupStudentUid: [],
  16483. noWorksS: [],
  16484. isWorksS: [],
  16485. noWorksStudent: [],
  16486. toolindex: 0,
  16487. toolDetailIndex: null,
  16488. groupIndex: 0,
  16489. workTypeB: false,
  16490. workTypeC: false,
  16491. isAnswer: false,
  16492. isHovered: false,
  16493. isHovered1: false,
  16494. isHovered2: false,
  16495. commentTagShow: 0,
  16496. timer: null,
  16497. timer2: null,
  16498. opertimer: null,
  16499. showType: 0,
  16500. fileType: 0,
  16501. showPDF: false,
  16502. noteName: "",
  16503. evaJuri: [],
  16504. evalua: "",
  16505. eTitle: "",
  16506. eName: "",
  16507. eJson: {},
  16508. fid: "", //一级
  16509. sid: "", //二级
  16510. tid: "", //二级
  16511. typeMode: 1,
  16512. eJSONNum: 0,
  16513. Etype: 1,
  16514. data: {
  16515. meta: {
  16516. name: "example",
  16517. author: "dd@163.com",
  16518. version: "0.2"
  16519. },
  16520. format: "node_array",
  16521. data: [{ id: "root", isroot: true, topic: "" }]
  16522. },
  16523. fullDialogVisible: false,
  16524. fulltype: "",
  16525. fullUrl: "",
  16526. commentIndexJson: {},
  16527. Stbodywidth: 0,
  16528. ispzType: 0,
  16529. pzType: 1,
  16530. wScore: 0,
  16531. scoreDetail: "",
  16532. videoStart: false,
  16533. recorder: null,
  16534. groupJson: {},
  16535. islock: false,
  16536. groupJson2: {},
  16537. dialogVisibleGroup: false,
  16538. dialogVisibleGroup2: false,
  16539. updateGroupArray: [],
  16540. updateGroupUser: {},
  16541. deleteGroupUser: [],
  16542. deleteGroupArray: {},
  16543. checkChair: "",
  16544. checkDeleteGroup: [],
  16545. inviteCode: "",
  16546. courseGroupStudent: [],
  16547. courseGroupStudentUid: [],
  16548. courseGroup: {},
  16549. isGroup: false,
  16550. toolIndex: null,
  16551. tool: {},
  16552. isWorkTool: [
  16553. 16,
  16554. 32,
  16555. 57,
  16556. 4,
  16557. 45,
  16558. 15,
  16559. 1,
  16560. 3,
  16561. 6,
  16562. 7,
  16563. 26,
  16564. 41,
  16565. 47,
  16566. 48,
  16567. 52,
  16568. 50,
  16569. 40
  16570. ], //, 40
  16571. videoJson: {},
  16572. toolType: 0,
  16573. checktoolArray: [],
  16574. vChapterData: [],
  16575. isUpdateToolDetail: false,
  16576. isUpdateToolDetail1: false,
  16577. updateToolDetailInner: "",
  16578. checkboxList: [],
  16579. plIndex: "",
  16580. worksSName2: "",
  16581. worksSid: "",
  16582. wordCloudData: [],
  16583. isPickStudent: [],
  16584. pzStype: 1,
  16585. downLoading: false,
  16586. greyType: false,
  16587. correctWord: [],
  16588. EnglishVoiceDialog: false,
  16589. englishVoiceJson: {},
  16590. englishVoiceJsonWork: [],
  16591. scoreList: {
  16592. listdata: [],
  16593. isScoreList: []
  16594. },
  16595. classRoomHelperWidth: "85px",
  16596. orgArray: [],
  16597. oidArray: [],
  16598. refreshKey: 0,
  16599. AIloading: [],
  16600. worksStudentCopy: [],
  16601. loopLoading: [],
  16602. markScoreVisible: false,
  16603. markScoretoolIndex: 0,
  16604. markScoreUid: "",
  16605. markScoreTit: {},
  16606. markfullscreen: false,
  16607. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16608. markScoreworksStudent: [],
  16609. finalMarkList: -1,
  16610. isaiNum: 0,
  16611. dialogVisibleTxt: false,
  16612. TxtMd: "",
  16613. languageSetting: 0, //0中文 1繁体 2英文
  16614. toolListS: [],
  16615. commentDetailCopy: "",
  16616. splitScreenData: {
  16617. isOpen: false,
  16618. userId: "",
  16619. uid: "",
  16620. myUid: "",
  16621. loading: false,
  16622. behavior: null
  16623. },
  16624. confirmOpenDig:false,
  16625. confirmOpenDigData:''
  16626. };
  16627. },
  16628. methods: {
  16629. getAIJ() {
  16630. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16631. let oid = res.data[0];
  16632. let org = res.data[1];
  16633. let oidArray = [];
  16634. let orgArray = [];
  16635. oid.forEach(i => oidArray.push(i.oid));
  16636. org.forEach(i => orgArray.push(i.oid));
  16637. this.orgArray = orgArray;
  16638. this.oidArray = oidArray;
  16639. });
  16640. },
  16641. //查看应用中心作业
  16642. openCocoFlow(w){
  16643. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16644. },
  16645. // 评分弹框全屏
  16646. markFullScreenBtn() {
  16647. this.markfullscreen = !this.markfullscreen;
  16648. },
  16649. insertMemorandum(_html) {
  16650. //保存行为操作
  16651. //variable
  16652. //btn
  16653. let params = [
  16654. {
  16655. uid: this.userid,
  16656. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16657. content: _html
  16658. }
  16659. ];
  16660. console.log(params);
  16661. this.ajax
  16662. .post(
  16663. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16664. params
  16665. )
  16666. .then(res => {
  16667. if (res.data == 1) {
  16668. console.log("保存操作成功");
  16669. } else {
  16670. console.log("保存操作失败");
  16671. }
  16672. })
  16673. .catch(e => {
  16674. console.log("保存操作失败");
  16675. console.log(e);
  16676. });
  16677. },
  16678. // 获取文档id
  16679. createFileid(url) {
  16680. let _this = this;
  16681. return new Promise((resolve, reject) => {
  16682. try {
  16683. _this.ajax
  16684. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16685. url: url
  16686. })
  16687. .then(res => {
  16688. let _data = res.data.FunctionResponse;
  16689. if (_data.result && _data.result.id) {
  16690. resolve(_data.result.id);
  16691. } else {
  16692. resolve(1);
  16693. }
  16694. })
  16695. .catch(function(error) {
  16696. resolve(1);
  16697. });
  16698. } catch (e) {
  16699. resolve(1);
  16700. }
  16701. });
  16702. },
  16703. // 一键重置
  16704. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16705. let jude = false;
  16706. this.AIloading.forEach((e, index) => {
  16707. if (index == toolIndex) {
  16708. e.forEach(k => {
  16709. if (k.loading == true) jude = true;
  16710. });
  16711. }
  16712. });
  16713. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16714. this.$confirm("确认一键重置?")
  16715. .then(_ => {
  16716. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16717. })
  16718. .catch(_ => {});
  16719. },
  16720. // 一键重置
  16721. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16722. for (let index = 0; index < con.length; index++) {
  16723. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16724. }
  16725. this.$message.success("重置完成");
  16726. // this.refreshAssembly();
  16727. this.worksStudent.forEach((e, index) => {
  16728. if (toolIndex == index) {
  16729. console.log("6666");
  16730. e.forEach((i, inx) => {
  16731. let mk = `markSco${index}${inx}`;
  16732. this.$refs[mk][0].getData();
  16733. });
  16734. }
  16735. });
  16736. },
  16737. // 一键重置
  16738. allEmptySco(uid, stage, task, toolIndex) {
  16739. let params = [
  16740. {
  16741. cid: this.id,
  16742. uid: uid,
  16743. s: stage,
  16744. t: task,
  16745. tool: toolIndex ? toolIndex : ""
  16746. }
  16747. ];
  16748. return new Promise(resolve => {
  16749. this.ajax
  16750. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16751. .then(res => {
  16752. resolve(1);
  16753. })
  16754. .catch(err => {
  16755. console.error(err);
  16756. });
  16757. }).catch(error => {
  16758. console.log(error);
  16759. });
  16760. },
  16761. // AI评分循环打分
  16762. async loopEva(
  16763. con,
  16764. tit,
  16765. stage,
  16766. task,
  16767. toolIndex,
  16768. toolDetail,
  16769. taskDetail,
  16770. toolList
  16771. ) {
  16772. let jude = false;
  16773. this.AIloading.forEach((e, index) => {
  16774. if (index == toolIndex) {
  16775. e.forEach(k => {
  16776. if (k.loading == true) jude = true;
  16777. });
  16778. }
  16779. });
  16780. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16781. this.AIloading.forEach((e, index) => {
  16782. if (index == toolIndex) {
  16783. e.forEach(k => {
  16784. k.loading = true;
  16785. });
  16786. }
  16787. });
  16788. this.loopLoading[toolIndex].loading = true;
  16789. let laws = "";
  16790. let std = "";
  16791. let text = "";
  16792. if (toolList && toolList.eList && toolList.eList.length) {
  16793. for (let i = 0; i < toolList.eList.length; i++) {
  16794. if (toolList.eList[i].isai == 1) {
  16795. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16796. }
  16797. }
  16798. for (let i = 0; i < toolList.eList.length; i++) {
  16799. if (toolList.eList[i].isai == 1) {
  16800. let a = toolList.eList[i].detail;
  16801. if (isNaN(parseFloat(a)) && a) {
  16802. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16803. } else {
  16804. var result = a;
  16805. }
  16806. std += `纬度${i}:“${result}”, \n`;
  16807. }
  16808. }
  16809. for (let i = 0; i < toolList.eList.length; i++) {
  16810. if (toolList.eList[i].isai == 1) {
  16811. let a = toolList.eList[i].detail;
  16812. if (isNaN(parseFloat(a)) && a) {
  16813. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16814. } else {
  16815. var result = a;
  16816. }
  16817. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16818. }
  16819. }
  16820. } else {
  16821. let titRule = 0;
  16822. let titRule2 = 0;
  16823. tit.forEach((e, index) => {
  16824. if (!e.isai) {
  16825. e.isai = 1;
  16826. }
  16827. });
  16828. tit.forEach((e, index) => {
  16829. if (e.isai == 1) {
  16830. titRule2++;
  16831. if (e.rule) {
  16832. titRule++;
  16833. }
  16834. }
  16835. });
  16836. if (titRule != titRule2) {
  16837. this.AIloading.forEach((e, index) => {
  16838. if (index == toolIndex) {
  16839. e.forEach(k => {
  16840. k.loading = false;
  16841. });
  16842. }
  16843. });
  16844. this.loopLoading[toolIndex].loading = false;
  16845. this.$message.info("细则努力生成中,请稍候……");
  16846. return;
  16847. }
  16848. for (let i = 0; i < tit.length; i++) {
  16849. if (tit[i].isai == 1) {
  16850. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16851. }
  16852. }
  16853. for (let i = 0; i < tit.length; i++) {
  16854. if (tit[i].isai == 1) {
  16855. let a = tit[i].detail;
  16856. if (isNaN(parseFloat(a)) && a) {
  16857. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16858. } else {
  16859. var result = a;
  16860. }
  16861. std += `纬度${i}:“${result}”, \n`;
  16862. }
  16863. }
  16864. for (let i = 0; i < tit.length; i++) {
  16865. if (tit[i].isai == 1) {
  16866. let a = tit[i].detail;
  16867. if (isNaN(parseFloat(a)) && a) {
  16868. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16869. } else {
  16870. var result = a;
  16871. }
  16872. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16873. }
  16874. }
  16875. }
  16876. let forAllList = [];
  16877. // console.log('con',con)
  16878. for (let i = 0; i < con.length; i++) {
  16879. let _fileid = "";
  16880. let wok = con[i].works;
  16881. // console.log('con',con);
  16882. // console.log('con[i].type',con[i].type);
  16883. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16884. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16885. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16886. _fileid = await this.createFileid(con[i].works);
  16887. } else {
  16888. this.AIloading[toolIndex][i].loading = false;
  16889. continue;
  16890. }
  16891. }
  16892. // console.log('con[i].type',con[i])
  16893. // console.log('con[i].type',con[i].type)
  16894. if (_fileid == 1 || con[i].type == 3) {
  16895. this.AIloading[toolIndex][i].loading = false;
  16896. continue;
  16897. }
  16898. let msg = `NOTICE
  16899. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16900. Language: ${this.getLang()}
  16901. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16902. Instruction: Based on the context, follow "Format example", write content.
  16903. #目标#
  16904. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16905. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16906. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16907. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16908. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16909. #评分资料#
  16910. 评价标准:${std}
  16911. 评价细则:${laws}
  16912. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16913. 任务描述:${taskDetail}
  16914. 工具描述:${toolDetail}
  16915. #输出要求#
  16916. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16917. “评语”控制在150字左右。
  16918. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16919. #输出格式#
  16920. [${text}{'comment':'评语(150个汉字左右)'}]
  16921. `;
  16922. let mk = `markSco${toolIndex}${i}`;
  16923. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16924. msg,
  16925. con[i].userid,
  16926. stage,
  16927. task,
  16928. _fileid,
  16929. con[i].type
  16930. );
  16931. forAllList.push(mkAwit);
  16932. }
  16933. Promise.all(forAllList)
  16934. .then(values => {
  16935. console.log("values", values);
  16936. this.$message({
  16937. message: "评价成功",
  16938. type: "success"
  16939. });
  16940. // this.refreshKey++
  16941. // this.worksStudent.forEach((e,index)=>{
  16942. // if(toolIndex == index){
  16943. // e.forEach((i,inx)=>{
  16944. // let mk = `markSco${index}${inx}`
  16945. // this.$refs[mk][0].getData()
  16946. // })
  16947. // }
  16948. // })
  16949. this.AIloading[toolIndex].forEach(e => {
  16950. e.loading = false;
  16951. });
  16952. this.loopLoading[toolIndex].loading = false;
  16953. })
  16954. .catch(reason => {
  16955. console.error("reasonreasonreasonreasonreason", reason);
  16956. // 输出“失败原因”
  16957. });
  16958. },
  16959. // 获取评价细则
  16960. againEva(i, k) {
  16961. let msg = `NOTICE
  16962. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16963. Language: ${this.getLang()}
  16964. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16965. Instruction: Based on the context, follow "Format example", write content.
  16966. #Context
  16967. ##要求
  16968. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16969. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16970. ##制定标准资料
  16971. 评价维度:${
  16972. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16973. }
  16974. 维度描述:${
  16975. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16976. }
  16977. # Format example
  16978. ==
  16979. 0 星,作业内容与作业要求无关;
  16980. 1 星,没有识别问题和需求;
  16981. 2 星,问题或需求没有被清晰理解或准确识别;
  16982. 3 星,问题或需求的一部分被识别;
  16983. 4 星,问题或需求的大部分被识别;
  16984. 5 星,问题或需求都被识别。
  16985. ==
  16986. `;
  16987. let params = {
  16988. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16989. message: [
  16990. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16991. ],
  16992. session_name: uuidv4(),
  16993. userId: this.userid,
  16994. file_ids: [],
  16995. model: "gpt-4o-2024-11-20"
  16996. };
  16997. // console.log('params',params);
  16998. this.ajax
  16999. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  17000. .then(response => {
  17001. let data = response.data.FunctionResponse;
  17002. // console.log("data", data);
  17003. if (data.message) {
  17004. let content = data.message;
  17005. var regex = new RegExp("==([^=]+)==");
  17006. let match = content.match(regex);
  17007. if (match) {
  17008. content = match[1].trim().replaceAll(" ", "");
  17009. // 获取匹配到的内容并去除两端空格
  17010. // console.log('contentInsideDoubleEquals', content);
  17011. if (
  17012. content.indexOf("0星") == -1 ||
  17013. content.indexOf("2星") == -1 ||
  17014. content.indexOf("3星") == -1 ||
  17015. content.indexOf("4星") == -1 ||
  17016. content.indexOf("5星") == -1
  17017. ) {
  17018. console.log("未有星级。");
  17019. this.againEva(i, k);
  17020. return;
  17021. }
  17022. // return
  17023. } else {
  17024. console.log("未找到匹配的内容。");
  17025. this.againEva(i, k);
  17026. return;
  17027. }
  17028. let elist = JSON.parse(
  17029. JSON.stringify(
  17030. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  17031. )
  17032. );
  17033. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  17034. elist.rule = JSON.parse(
  17035. JSON.stringify(content.replaceAll("#", ""))
  17036. );
  17037. this.$set(
  17038. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  17039. k,
  17040. elist
  17041. );
  17042. this.$forceUpdate();
  17043. let params2 = [
  17044. {
  17045. cid: this.id,
  17046. chapters: JSON.stringify(this.chapInfoList),
  17047. uid: this.userid,
  17048. unitIndex: this.courseType
  17049. }
  17050. ];
  17051. this.ajax
  17052. .post(this.$store.state.api + "updateWorkNew4", params2)
  17053. .then(res => {
  17054. this.getCourseDetail(2);
  17055. this.$forceUpdate();
  17056. })
  17057. .catch(err => {
  17058. this.$message.error("网络不佳");
  17059. console.error(err);
  17060. });
  17061. // 进行进一步处理或解析outputContent
  17062. // } else {
  17063. // console.log("No match found for # Output section.");
  17064. // }
  17065. }
  17066. })
  17067. .catch(error => {
  17068. console.log(error);
  17069. });
  17070. },
  17071. // 关闭评分弹框
  17072. markScorehandleClose(done) {
  17073. // this.refreshKey++
  17074. this.worksStudent.forEach((e, index) => {
  17075. if (this.markScoretoolIndex == index) {
  17076. e.forEach((i, inx) => {
  17077. let mk = `markSco${index}${inx}`;
  17078. if (this.$refs[mk] && this.$refs[mk][0]) {
  17079. this.$refs[mk][0].getData();
  17080. }
  17081. });
  17082. }
  17083. });
  17084. done();
  17085. },
  17086. // 关闭txtMd预览弹框
  17087. handleCloseTxt(done) {
  17088. this.TxtMd = "";
  17089. done();
  17090. },
  17091. // Txt,Md作业查看
  17092. lookTxt(val) {
  17093. this.dialogVisibleTxt = true;
  17094. this.TxtMd = "";
  17095. getFile(val).then(res => {
  17096. this.TxtMd = res.data;
  17097. });
  17098. },
  17099. // 组件刷新
  17100. refreshAssembly(val) {
  17101. this.refreshKey++;
  17102. // console.log(this.refreshKey)
  17103. },
  17104. updateLoading(payload) {
  17105. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  17106. },
  17107. handleShow(toolIndex, val) {
  17108. let mk = `markSco${toolIndex}${val}`;
  17109. // console.log(mk);
  17110. this.$refs[mk][0].getData();
  17111. },
  17112. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  17113. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  17114. // console.log('this.AIloading',this.AIloading)
  17115. let jude = false;
  17116. this.AIloading.forEach((e, index) => {
  17117. if (index == tidx) {
  17118. e.forEach(k => {
  17119. if (k.loading == true) jude = true;
  17120. });
  17121. }
  17122. });
  17123. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17124. if (val) return;
  17125. // console.log(uname,worksStudent,uid,tidx,titlist)
  17126. this.markScoreTit = titlist;
  17127. this.markScoreUid = uid;
  17128. this.toolListS = toolList;
  17129. this.markScoretoolIndex = tidx;
  17130. this.markScoreworksStudent = worksStudent;
  17131. this.markfullscreen = false;
  17132. this.markScoreVisible = true;
  17133. if (this.tType == 1) {
  17134. this.insertMemorandum(
  17135. `查看<span class="variable">${uname}</span>的作业`
  17136. );
  17137. }
  17138. },
  17139. // 点击markScore显示评分框
  17140. markScoreDig(data) {
  17141. // console.log('data',data)
  17142. let jude = false;
  17143. this.AIloading.forEach((e, index) => {
  17144. if (index == data.val2) {
  17145. e.forEach(k => {
  17146. if (k.loading == true) jude = true;
  17147. });
  17148. }
  17149. });
  17150. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17151. this.markScoreTit = data.tit;
  17152. this.markScoreUid = data.val;
  17153. this.markScoretoolIndex = data.val2;
  17154. this.markfullscreen = false;
  17155. this.markScoreVisible = true;
  17156. this.insertMemorandum(
  17157. `查看<span class="variable">${data.uname}</span>的作业`
  17158. );
  17159. },
  17160. // 刷新其他组件分数
  17161. refreshOther(v) {
  17162. // console.log('v',v)
  17163. this.AIloading[v.tid].forEach((e, i) => {
  17164. if (i == v.wid) {
  17165. e.loading = false;
  17166. }
  17167. });
  17168. // this.worksStudent.forEach((e,index)=>{
  17169. // if(toolIndex != index){
  17170. // e.forEach((i,inx)=>{
  17171. // let mk = `markSco${index}${inx}`
  17172. // this.$refs[mk][0].getData()
  17173. // })
  17174. // }
  17175. // })
  17176. },
  17177. updateDocSco(payload) {
  17178. // console.log('payload',payload)
  17179. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  17180. },
  17181. gx() {
  17182. this.$forceUpdate();
  17183. },
  17184. isUpdateCorrect(t, p) {
  17185. if (this.greyType == false) {
  17186. this.isUpdateText = t;
  17187. this.greyType = true;
  17188. } else {
  17189. if (p == 1) {
  17190. this.newEnglishList.engText = this.isUpdateText;
  17191. } else if (p == 2) {
  17192. this.oldEnglishJson1.engText = this.isUpdateText;
  17193. } else if (p == 3) {
  17194. this.newEnglishList.engText = this.isUpdateText;
  17195. } else {
  17196. this.newEnglishList1[
  17197. this.newEngIndex
  17198. ].cWork.engText = this.isUpdateText;
  17199. }
  17200. this.greyType = false;
  17201. }
  17202. },
  17203. aiCorrect(t, p) {
  17204. let aiText = "";
  17205. const loading = this.$loading.service({
  17206. background: "rgba(255, 255, 255)",
  17207. target: document.querySelectorAll(".loadingText")[0]
  17208. });
  17209. let param = {
  17210. model: "gpt-3.5-turbo",
  17211. temperature: 0,
  17212. max_tokens: 2048,
  17213. top_p: 1,
  17214. frequency_penalty: 0,
  17215. presence_penalty: 0,
  17216. messages: [
  17217. {
  17218. role: "user",
  17219. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  17220. }
  17221. ],
  17222. uid: this.userid,
  17223. stream: false
  17224. };
  17225. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17226. res => {
  17227. if (
  17228. res.data.FunctionResponse &&
  17229. res.data.FunctionResponse.result &&
  17230. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17231. ) {
  17232. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17233. return;
  17234. }
  17235. aiText = res.data.FunctionResponse.choices[0].message.content;
  17236. aiText = aiText.replace(/%/g, "%25");
  17237. // let w = "";
  17238. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17239. // for(var k = 0;k<a.length;k++){
  17240. // //diffWordsWithSpace
  17241. // if(a.length > 1){
  17242. // if(a[k].added == true){
  17243. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17244. // }else if(a[k].removed == true){
  17245. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17246. // }else{
  17247. // w += '<span>' + a[k].value + '</span>';
  17248. // }
  17249. // }else{
  17250. // if(p == 1){
  17251. // w = this.newEnglishList.engText;
  17252. // }else if(p == 2){
  17253. // w = this.oldEnglishJson1.engText;
  17254. // }else if(p == 3){
  17255. // w = this.newEnglishList.engText;
  17256. // }else{
  17257. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17258. // }
  17259. // }
  17260. // }
  17261. if (p == 1) {
  17262. this.newEnglishList.engText = aiText;
  17263. } else if (p == 2) {
  17264. this.oldEnglishJson1.engText = aiText;
  17265. } else if (p == 3) {
  17266. this.newEnglishList.engText = aiText;
  17267. } else {
  17268. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17269. }
  17270. loading.close();
  17271. },
  17272. err => {
  17273. console.log(err);
  17274. loading.close();
  17275. }
  17276. );
  17277. },
  17278. addToolChoose() {
  17279. if (!this.checktoolArray.length) {
  17280. this.$message.error("请选择要添加的任务");
  17281. return;
  17282. }
  17283. if (
  17284. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17285. this.taskCount
  17286. ].toolChoose[0].tool.length
  17287. ) {
  17288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17289. this.taskCount
  17290. ].toolChoose[0].tool = this.checktoolArray;
  17291. } else {
  17292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17293. this.taskCount
  17294. ].toolChoose.push({
  17295. tool: this.checktoolArray,
  17296. toolDetail: "",
  17297. toolType: 0,
  17298. askCount: 1,
  17299. askTitle: "",
  17300. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  17301. });
  17302. }
  17303. let params = [
  17304. {
  17305. cid: this.id,
  17306. chapters: JSON.stringify(this.chapInfoList),
  17307. uid: this.userid,
  17308. unitIndex: this.courseType
  17309. }
  17310. ];
  17311. this.ajax
  17312. .post(this.$store.state.api + "updateWorkNew4", params)
  17313. .then(res => {
  17314. this.$message({
  17315. message: "添加成功",
  17316. type: "success"
  17317. });
  17318. this.checktoolArray = [];
  17319. this.getCourseDetail(2);
  17320. this.checkBz(
  17321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17322. this.taskCount
  17323. ].toolChoose.length - 1
  17324. );
  17325. this.toolDialogVisible = false;
  17326. this.refreshCourse();
  17327. this.$forceUpdate();
  17328. })
  17329. .catch(err => {
  17330. console.error(err);
  17331. });
  17332. },
  17333. checkBz(index) {
  17334. this.isUpdateToolDetail = false;
  17335. this.$forceUpdate();
  17336. setTimeout(() => {
  17337. document.scrollingElement.scrollTop =
  17338. document.querySelectorAll(".filebox")[index].offsetTop +
  17339. document.querySelector(".student_body").offsetTop;
  17340. }, 500);
  17341. },
  17342. updateToolDetail(i, type) {
  17343. if (
  17344. !this.isUpdateToolDetail1 &&
  17345. type == 2 &&
  17346. (this.courseDetail.userid == this.userid ||
  17347. (this.courseDetail.course_teacher &&
  17348. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  17349. ) {
  17350. this.toolDetailIndex = i;
  17351. this.isUpdateToolDetail1 = true;
  17352. setTimeout(() => {
  17353. this.updateToolDetailInner = JSON.parse(
  17354. JSON.stringify(
  17355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17356. this.taskCount
  17357. ].toolChoose[i].toolDetail
  17358. )
  17359. );
  17360. document.querySelector(".checkTextArea").focus();
  17361. }, 0);
  17362. } else if (this.isUpdateToolDetail1 && type != 2) {
  17363. // this.toolDetailIndex = i;
  17364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17365. this.taskCount
  17366. ].toolChoose[i].toolDetail = JSON.parse(
  17367. JSON.stringify(this.updateToolDetailInner)
  17368. );
  17369. let params = [
  17370. {
  17371. cid: this.id,
  17372. chapters: JSON.stringify(this.chapInfoList),
  17373. uid: this.userid,
  17374. unitIndex: this.courseType
  17375. }
  17376. ];
  17377. this.ajax
  17378. .post(this.$store.state.api + "updateWorkNew4", params)
  17379. .then(res => {
  17380. this.isUpdateToolDetail1 = false;
  17381. this.$message({
  17382. message: "修改成功",
  17383. type: "success"
  17384. });
  17385. this.toolDetailIndex = null;
  17386. this.updateToolDetailInner = "";
  17387. this.getCourseDetail(2);
  17388. this.$forceUpdate();
  17389. })
  17390. .catch(err => {
  17391. console.error(err);
  17392. });
  17393. } else if (this.isUpdateToolDetail1 && type == 2) {
  17394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17395. this.taskCount
  17396. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17397. JSON.stringify(this.updateToolDetailInner)
  17398. );
  17399. let params = [
  17400. {
  17401. cid: this.id,
  17402. chapters: JSON.stringify(this.chapInfoList),
  17403. uid: this.userid,
  17404. unitIndex: this.courseType
  17405. }
  17406. ];
  17407. this.ajax
  17408. .post(this.$store.state.api + "updateWorkNew4", params)
  17409. .then(res => {
  17410. this.$message({
  17411. message: "修改成功",
  17412. type: "success"
  17413. });
  17414. this.toolDetailIndex = i;
  17415. this.isUpdateToolDetail1 = true;
  17416. setTimeout(() => {
  17417. this.updateToolDetailInner = JSON.parse(
  17418. JSON.stringify(
  17419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17420. this.taskCount
  17421. ].toolChoose[i].toolDetail
  17422. )
  17423. );
  17424. document.querySelector(".checkTextArea").focus();
  17425. }, 0);
  17426. this.getCourseDetail(2);
  17427. this.$forceUpdate();
  17428. })
  17429. .catch(err => {
  17430. console.error(err);
  17431. });
  17432. }
  17433. },
  17434. jumpGj(i, j, k, l) {
  17435. this.refreshAssembly();
  17436. for (var z = 0; z < this.navList.length; z++) {
  17437. for (var q = 0; q < this.navList[z].task.length; q++) {
  17438. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17439. this.navList[z].task[q].tool[w].isTool = false;
  17440. }
  17441. }
  17442. }
  17443. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  17444. .isTool;
  17445. var a = document.scrollingElement;
  17446. let target = document.querySelector(`#gj${k}`);
  17447. if (target) {
  17448. // target.scrollIntoView(true);
  17449. // setTimeout(() => {
  17450. // a.scrollTop = a.scrollTop - 150;
  17451. // }, 0);
  17452. target.scrollIntoView();
  17453. setTimeout(()=>{
  17454. let scrollBody = document.querySelector('.body_student').parentElement
  17455. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17456. }, 0);
  17457. }
  17458. this.navId = "";
  17459. let flag = this.courseType == i;
  17460. let flag2 = this.taskCount == j;
  17461. if (l) {
  17462. this.courseType = i;
  17463. // this.navId = l;
  17464. this.taskCount = j;
  17465. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17466. this.selectPz();
  17467. this.getHomeWork();
  17468. this.getCourseDetail(2);
  17469. if (flag) {
  17470. if (flag2) {
  17471. this.insertMemorandum(
  17472. `选择<span class="variable">工具${k + 1}:${
  17473. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17474. }</span>`
  17475. );
  17476. } else {
  17477. this.insertMemorandum(
  17478. `选择<span class="variable">任务${j + 1}${
  17479. this.navList[i].task[j].taskName
  17480. ? ":" + this.navList[i].task[j].taskName
  17481. : ""
  17482. }</span>→<span class="variable">工具${k + 1}:${
  17483. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17484. }</span>`
  17485. );
  17486. }
  17487. } else {
  17488. this.insertMemorandum(
  17489. `选择<span class="variable">阶段${i + 1}${
  17490. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  17491. }</span>→<span class="variable">任务${j + 1}${
  17492. this.navList[i].task[j].taskName
  17493. ? ":" + this.navList[i].task[j].taskName
  17494. : ""
  17495. }</span>→<span class="variable">工具${k + 1}:${
  17496. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17497. }</span>`
  17498. );
  17499. }
  17500. }
  17501. },
  17502. addTools2(i) {
  17503. if (i == 4) {
  17504. // this.openTools2(4);
  17505. this.$message.error("暂未开放");
  17506. return;
  17507. }
  17508. if (i == 45) {
  17509. // this.openTools2(45);
  17510. this.$message.error("暂未开放");
  17511. return;
  17512. }
  17513. if (i == 47) {
  17514. // this.openTools2(47);
  17515. this.$message.error("暂未开放");
  17516. return;
  17517. }
  17518. if (i == 49) {
  17519. // this.openTools2(49);
  17520. this.$message.error("暂未开放");
  17521. return;
  17522. }
  17523. if (i == 62) {
  17524. // this.openTools(itemTaskIndex, 62, toolIndex);
  17525. this.$message.error("暂未开放");
  17526. return;
  17527. }
  17528. if (i == 15) {
  17529. // this.openTools(itemTaskIndex, 15, toolIndex);
  17530. this.$message.error("暂未开放");
  17531. return;
  17532. }
  17533. if (i == 40) {
  17534. // this.openTools(itemTaskIndex, 40, toolIndex);
  17535. this.$message.error("暂未开放");
  17536. return;
  17537. }
  17538. if (i == 41) {
  17539. // this.openTools(itemTaskIndex, 41, toolIndex);
  17540. this.$message.error("暂未开放");
  17541. return;
  17542. }
  17543. if (i == 42) {
  17544. // this.openTools(itemTaskIndex, 42, toolIndex);
  17545. this.$message.error("暂未开放");
  17546. return;
  17547. }
  17548. if (this.checktoolArray.length > 0) {
  17549. if (this.checktoolArray.indexOf(i) != -1) {
  17550. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17551. } else {
  17552. this.checktoolArray = [];
  17553. this.checktoolArray.push(i);
  17554. }
  17555. } else {
  17556. this.checktoolArray.push(i);
  17557. }
  17558. this.$forceUpdate();
  17559. },
  17560. jump() {
  17561. window.topU.postMessage({ tools: "43" }, "*");
  17562. },
  17563. getUpdateMore(f, checkboxList, searchTN, index) {
  17564. this.dialogVisibleMember = f;
  17565. this.checkboxList = checkboxList;
  17566. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17567. this.plIndex = index;
  17568. },
  17569. setPlname(a) {
  17570. if (this.plworkFile.length) {
  17571. this.plworkFile[this.plIndex].username = a;
  17572. } else {
  17573. this.worksSName = a;
  17574. }
  17575. this.dialogVisibleMember = false;
  17576. },
  17577. previewImg(url, w) {
  17578. this.$hevueImgPreview(url);
  17579. if (w) {
  17580. this.insertMemorandum(
  17581. `查看<span class="variable">${w.sName}</span>的作业`
  17582. );
  17583. }
  17584. },
  17585. checkImg(list) {
  17586. if (!list.length) {
  17587. return;
  17588. }
  17589. this.$hevueImgPreview({
  17590. multiple: true, // 开启多图预览模式
  17591. imgList: list // 需要预览的多图数组
  17592. });
  17593. },
  17594. change(val) {
  17595. console.log(val);
  17596. },
  17597. goTo(path) {
  17598. this.$router.push(path);
  17599. },
  17600. handlePictureCardPreview(url) {
  17601. this.dialogImageUrl = url;
  17602. this.pictureDialog = true;
  17603. },
  17604. clean(type) {
  17605. if (type == 1) {
  17606. this.studyJuri[0].cover.splice(0, 1);
  17607. } else if (type == 2) {
  17608. this.studyJuri[0].upVedio.splice(0, 1);
  17609. } else {
  17610. this.studyJuri[0].upFile.splice(0, 1);
  17611. }
  17612. },
  17613. clean2(index) {
  17614. this.plworkFile.splice(index, 1);
  17615. },
  17616. handleClose(done) {
  17617. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17618. this.videoDetail.sources[0].src = "";
  17619. }
  17620. this.commentIndexJson = {};
  17621. done();
  17622. },
  17623. fullTools() {
  17624. this.full = !this.full;
  17625. },
  17626. imgChange(file, fileList, type) {
  17627. if (type == 1) {
  17628. var _tmp = this.studyJuri[0].cover;
  17629. } else if (type == 2) {
  17630. var _tmp = this.studyJuri[0].upVedio;
  17631. } else {
  17632. var _tmp = this.studyJuri[0].upFile;
  17633. }
  17634. this.noneBtnImg = _tmp.length >= 1;
  17635. },
  17636. setContent(bool) {
  17637. this.contentDialog = bool;
  17638. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17639. document.querySelector(".workd_media").style.height = "650px";
  17640. } else if (document.querySelector(".workd_media")) {
  17641. document.querySelector(".workd_media").style.height = "auto";
  17642. }
  17643. },
  17644. setContent2(bool) {
  17645. this.mlDialog = bool;
  17646. if (
  17647. bool &&
  17648. this.contentDialog &&
  17649. document.querySelector(".workd_media")
  17650. ) {
  17651. document.querySelector(".workd_media").style.height = "650px";
  17652. } else if (document.querySelector(".workd_media")) {
  17653. document.querySelector(".workd_media").style.height = "auto";
  17654. }
  17655. },
  17656. openToolAll() {
  17657. this.toolDialogVisible = true;
  17658. },
  17659. addImg(e) {
  17660. var el = e.currentTarget;
  17661. // this.$message.success('触发上传')
  17662. el.getElementsByTagName("input")[0].click();
  17663. e.target.value = "";
  17664. },
  17665. addSelectAnswer() {
  17666. let params = [
  17667. {
  17668. uid: this.userid,
  17669. cid: this.id,
  17670. stage: this.courseType,
  17671. task: this.taskCount,
  17672. tool: this.toolindex,
  17673. content: this.selectAnswer.answer,
  17674. type: 7
  17675. }
  17676. ];
  17677. this.ajax
  17678. .post(this.$store.state.api + "addCourseWorks", params)
  17679. .then(res => {
  17680. this.$message({
  17681. message: "提交成功",
  17682. type: "success"
  17683. });
  17684. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17685. this.dialogVisibleSelect = false;
  17686. // this.selectAnswer = {};
  17687. this.selectSWorks();
  17688. this.selectStudent();
  17689. })
  17690. .catch(err => {
  17691. this.$message.error("提交失败");
  17692. console.error(err);
  17693. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17694. });
  17695. },
  17696. addSelectAnswerTeacher() {
  17697. let params = [
  17698. {
  17699. uid: this.sStudent.userid,
  17700. cid: this.id,
  17701. stage: this.courseType,
  17702. task: this.taskCount,
  17703. tool: this.toolindex,
  17704. content: this.selectAnswer.answer,
  17705. type: 7
  17706. }
  17707. ];
  17708. this.ajax
  17709. .post(this.$store.state.api + "addCourseWorks", params)
  17710. .then(res => {
  17711. this.$message({
  17712. message: "提交成功",
  17713. type: "success"
  17714. });
  17715. this.dialogVisibleSelectTeacher = false;
  17716. // this.selectAnswer = {};
  17717. this.selectSWorks();
  17718. this.selectStudent();
  17719. })
  17720. .catch(err => {
  17721. this.$message.error("提交失败");
  17722. console.error(err);
  17723. });
  17724. },
  17725. addSenWorks() {
  17726. for (var i = 0; i < this.sentenceList.length; i++) {
  17727. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17728. if (
  17729. this.sentenceList[i].chooseSenList[j] == undefined ||
  17730. this.sentenceList[i].chooseSenList[j] == ""
  17731. ) {
  17732. this.$message.error("请将答案填写完整!");
  17733. return;
  17734. }
  17735. }
  17736. }
  17737. let params = [
  17738. {
  17739. uid: this.userid,
  17740. cid: this.id,
  17741. stage: this.courseType,
  17742. task: this.taskCount,
  17743. tool: this.toolindex,
  17744. content: JSON.stringify(this.sentenceList),
  17745. type: 9
  17746. }
  17747. ];
  17748. this.ajax
  17749. .post(this.$store.state.api + "addCourseWorks", params)
  17750. .then(res => {
  17751. this.$message({
  17752. message: "提交成功",
  17753. type: "success"
  17754. });
  17755. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17756. this.dialogVisibleSentence = false;
  17757. // this.selectAnswer = {};
  17758. this.selectSWorks();
  17759. this.selectStudent();
  17760. })
  17761. .catch(err => {
  17762. this.$message.error("提交失败");
  17763. console.error(err);
  17764. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17765. });
  17766. },
  17767. addSenWorksTeacher() {
  17768. for (var i = 0; i < this.sentenceList.length; i++) {
  17769. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17770. if (
  17771. this.sentenceList[i].chooseSenList[j] == undefined ||
  17772. this.sentenceList[i].chooseSenList[j] == ""
  17773. ) {
  17774. this.$message.error("请将答案填写完整!");
  17775. return;
  17776. }
  17777. }
  17778. }
  17779. let params = [
  17780. {
  17781. uid: this.sStudent.userid,
  17782. cid: this.id,
  17783. stage: this.courseType,
  17784. task: this.taskCount,
  17785. tool: this.toolindex,
  17786. content: JSON.stringify(this.sentenceList),
  17787. type: 9
  17788. }
  17789. ];
  17790. this.ajax
  17791. .post(this.$store.state.api + "addCourseWorks", params)
  17792. .then(res => {
  17793. this.$message({
  17794. message: "提交成功",
  17795. type: "success"
  17796. });
  17797. this.dialogVisibleSentenceTeacher = false;
  17798. // this.selectAnswer = {};
  17799. this.selectSWorks();
  17800. this.selectStudent();
  17801. })
  17802. .catch(err => {
  17803. this.$message.error("提交失败");
  17804. console.error(err);
  17805. });
  17806. },
  17807. returnTableText() {
  17808. this.$confirm("确定还原此模板吗?", "提示", {
  17809. confirmButtonText: "确定",
  17810. cancelButtonText: "取消",
  17811. type: "warning"
  17812. })
  17813. .then(() => {
  17814. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17815. })
  17816. .catch(() => {});
  17817. },
  17818. addTableWorks() {
  17819. let params = [
  17820. {
  17821. uid: this.userid,
  17822. cid: this.id,
  17823. stage: this.courseType,
  17824. task: this.taskCount,
  17825. tool: this.toolindex,
  17826. content: JSON.stringify(this.tableJson),
  17827. type: 10
  17828. }
  17829. ];
  17830. this.ajax
  17831. .post(this.$store.state.api + "addCourseWorks", params)
  17832. .then(res => {
  17833. this.$message({
  17834. message: "提交成功",
  17835. type: "success"
  17836. });
  17837. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17838. this.dialogVisibleTable = false;
  17839. // this.selectAnswer = {};
  17840. this.selectSWorks();
  17841. this.selectStudent();
  17842. })
  17843. .catch(err => {
  17844. this.$message.error("提交失败");
  17845. console.error(err);
  17846. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17847. });
  17848. },
  17849. tableRowClassName({ row, rowIndex }) {
  17850. if ((rowIndex + 1) % 2 === 0) {
  17851. return "even_row";
  17852. } else {
  17853. return "";
  17854. }
  17855. },
  17856. addTableWorksTeacher() {
  17857. let params = [
  17858. {
  17859. uid: this.sStudent.userid,
  17860. cid: this.id,
  17861. stage: this.courseType,
  17862. task: this.taskCount,
  17863. tool: this.toolindex,
  17864. content: JSON.stringify(this.tableJson),
  17865. type: 10
  17866. }
  17867. ];
  17868. this.ajax
  17869. .post(this.$store.state.api + "addCourseWorks", params)
  17870. .then(res => {
  17871. this.$message({
  17872. message: "提交成功",
  17873. type: "success"
  17874. });
  17875. this.dialogVisibleTableTeacher = false;
  17876. // this.selectAnswer = {};
  17877. this.selectSWorks();
  17878. this.selectStudent();
  17879. })
  17880. .catch(err => {
  17881. this.$message.error("提交失败");
  17882. console.error(err);
  17883. });
  17884. },
  17885. returnWordText() {
  17886. this.$confirm("确定还原此模板吗?", "提示", {
  17887. confirmButtonText: "确定",
  17888. cancelButtonText: "取消",
  17889. type: "warning"
  17890. })
  17891. .then(() => {
  17892. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17893. })
  17894. .catch(() => {});
  17895. },
  17896. addWordWorks() {
  17897. let params = [
  17898. {
  17899. uid: this.userid,
  17900. cid: this.id,
  17901. stage: this.courseType,
  17902. task: this.taskCount,
  17903. tool: this.toolindex,
  17904. content: JSON.stringify(this.wordJson),
  17905. type: 13,
  17906. atool: 52
  17907. }
  17908. ];
  17909. this.ajax
  17910. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17911. .then(res => {
  17912. this.$message({
  17913. message: "提交成功",
  17914. type: "success"
  17915. });
  17916. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17917. this.dialogVisibleWord = false;
  17918. // this.selectAnswer = {};
  17919. this.selectSWorks();
  17920. this.selectStudent();
  17921. })
  17922. .catch(err => {
  17923. this.$message.error("提交失败");
  17924. console.error(err);
  17925. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17926. });
  17927. },
  17928. addWordWorksTeacher() {
  17929. let params = [
  17930. {
  17931. uid: this.sStudent.userid,
  17932. cid: this.id,
  17933. stage: this.courseType,
  17934. task: this.taskCount,
  17935. tool: this.toolindex,
  17936. content: JSON.stringify(this.wordJson),
  17937. type: 13,
  17938. atool: 52
  17939. }
  17940. ];
  17941. this.ajax
  17942. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17943. .then(res => {
  17944. this.$message({
  17945. message: "提交成功",
  17946. type: "success"
  17947. });
  17948. this.dialogVisibleWordTeacher = false;
  17949. // this.selectAnswer = {};
  17950. this.selectSWorks();
  17951. this.selectStudent();
  17952. })
  17953. .catch(err => {
  17954. this.$message.error("提交失败");
  17955. console.error(err);
  17956. });
  17957. },
  17958. addCourseWorksCopy(i) {
  17959. let arr = this.workStudent[this.toolindex].filter(e => {
  17960. return (e.userid = this.userid);
  17961. });
  17962. if (arr.length > 0) {
  17963. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17964. confirmButtonText: "确定",
  17965. cancelButtonText: "取消",
  17966. type: "warning"
  17967. })
  17968. .then(() => {
  17969. this.addCourseWorks(i);
  17970. })
  17971. .catch(() => {});
  17972. } else {
  17973. this.addCourseWorks(i);
  17974. }
  17975. },
  17976. addCourseWorks(i) {
  17977. var typesql;
  17978. if (this.fileType === 0) {
  17979. typesql = 1;
  17980. } else if (this.fileType === 1) {
  17981. typesql = 4;
  17982. } else if (this.fileType === 2) {
  17983. typesql = 5;
  17984. } else if (this.fileType === 3) {
  17985. typesql = 12;
  17986. }
  17987. if (!this.studyJuri[0].cover[0].url) {
  17988. this.$message.error("请上传文件");
  17989. return;
  17990. }
  17991. let params = [
  17992. {
  17993. uid: this.userid,
  17994. cid: this.id,
  17995. stage: this.courseType,
  17996. task: i,
  17997. tool: this.toolindex,
  17998. content: this.studyJuri[0].cover[0].url,
  17999. type: typesql
  18000. }
  18001. ];
  18002. this.ajax
  18003. .post(this.$store.state.api + "addCourseWorksR1", params)
  18004. .then(res => {
  18005. this.$message({
  18006. message: "提交成功",
  18007. type: "success"
  18008. });
  18009. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  18010. this.studyJuri[0].cover = [];
  18011. this.dialogVisible = false;
  18012. this.getCourseDetail(2);
  18013. })
  18014. .catch(err => {
  18015. this.$message.error("提交失败");
  18016. console.error(err);
  18017. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  18018. });
  18019. },
  18020. addCourseWorksPl(i) {
  18021. let _files = this.plworkFile;
  18022. var c = 1;
  18023. for (var k = 0; k < _files.length; k++) {
  18024. if (!_files[k].username) {
  18025. c = 2;
  18026. }
  18027. }
  18028. if (c == 2) {
  18029. this.$message.error("请填写学生姓名");
  18030. return;
  18031. }
  18032. let params = [
  18033. {
  18034. ateacher: this.userid,
  18035. cid: this.id,
  18036. stage: this.courseType,
  18037. task: i,
  18038. tool: this.toolindex,
  18039. content: JSON.stringify(_files)
  18040. }
  18041. ];
  18042. this.ajax
  18043. .post(this.$store.state.api + "addCourseWorksPl", params)
  18044. .then(res => {
  18045. this.$message({
  18046. message: "提交成功",
  18047. type: "success"
  18048. });
  18049. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  18050. this.plworkFile = [];
  18051. this.dialogVisiblePl = false;
  18052. this.getCourseDetail(2);
  18053. })
  18054. .catch(err => {
  18055. this.$message.error("提交失败");
  18056. console.error(err);
  18057. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  18058. });
  18059. },
  18060. addCourseWorks2(i) {
  18061. var typesql;
  18062. if (this.fileType === 0) {
  18063. typesql = 0;
  18064. } else if (this.fileType === 1) {
  18065. typesql = 1;
  18066. } else if (this.fileType === 2) {
  18067. typesql = 3;
  18068. } else if (this.fileType === 3) {
  18069. typesql = 12;
  18070. }
  18071. if (!this.studyJuri[0].cover[0].url) {
  18072. this.$message.error("请上传文件");
  18073. return;
  18074. }
  18075. let params = [
  18076. {
  18077. uid: this.userid,
  18078. cid: this.id,
  18079. stage: this.courseType,
  18080. task: i,
  18081. tool: this.toolindex,
  18082. content: JSON.stringify({
  18083. type: typesql,
  18084. groupIndex: this.groupIndex,
  18085. url: this.studyJuri[0].cover[0].url
  18086. }),
  18087. type: 11,
  18088. atool: 49,
  18089. text: ""
  18090. }
  18091. ];
  18092. this.ajax
  18093. .post(this.$store.state.api + "addCourseWorks5", params)
  18094. .then(res => {
  18095. this.$message({
  18096. message: "提交成功",
  18097. type: "success"
  18098. });
  18099. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18100. type: typesql,
  18101. groupIndex: this.groupIndex,
  18102. url: this.studyJuri[0].cover[0].url,
  18103. }),type: "course_tool_sub" }, "success")
  18104. this.studyJuri[0].cover = [];
  18105. this.dialogVisibleGroupWork = false;
  18106. this.getCourseDetail(2);
  18107. })
  18108. .catch(err => {
  18109. this.$message.error("提交失败");
  18110. console.error(err);
  18111. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18112. type: typesql,
  18113. groupIndex: this.groupIndex,
  18114. url: this.studyJuri[0].cover[0].url,
  18115. }),type: "course_tool_sub" }, err)
  18116. });
  18117. },
  18118. addEnglishWork() {
  18119. this.myAnList = this.$refs["engJson"].myAnswerList;
  18120. if (
  18121. !this.myAnList.engTitle ||
  18122. !this.myAnList.engText ||
  18123. this.myAnList.engTitle == "" ||
  18124. this.myAnList.engText == ""
  18125. ) {
  18126. this.$message.error("请输入作文标题和正文!");
  18127. return;
  18128. }
  18129. let params = [
  18130. {
  18131. uid: this.userid,
  18132. cid: this.id,
  18133. stage: this.courseType,
  18134. task: this.taskCount,
  18135. tool: this.englishToolIndex,
  18136. content: JSON.stringify(this.myAnList),
  18137. type: 16,
  18138. atool: 69,
  18139. text: ""
  18140. }
  18141. ];
  18142. this.ajax
  18143. .post(this.$store.state.api + "addCourseWorks5", params)
  18144. .then(res => {
  18145. this.$message({
  18146. message: "提交成功",
  18147. type: "success"
  18148. });
  18149. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18150. data: JSON.stringify(this.myAnList),
  18151. type: "course_tool_sub" }, "success")
  18152. this.myAnList = {};
  18153. this.englishList = {};
  18154. this.englishToolIndex = 0;
  18155. this.engDialogVisible = false;
  18156. this.selectSWorks();
  18157. this.selectStudent();
  18158. })
  18159. .catch(err => {
  18160. this.$message.error("提交失败");
  18161. console.error(err);
  18162. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18163. data: JSON.stringify(this.myAnList),
  18164. type: "course_tool_sub" }, err)
  18165. });
  18166. },
  18167. addCourseWorksGong(i, data, tool) {
  18168. let params = [
  18169. {
  18170. uid: this.userid,
  18171. cid: this.id,
  18172. stage: this.courseType,
  18173. task: this.taskCount,
  18174. tool: i,
  18175. content: data,
  18176. type: 12,
  18177. atool: tool,
  18178. text: ""
  18179. }
  18180. ];
  18181. this.ajax
  18182. .post(this.$store.state.api + "addCourseWorks5", params)
  18183. .then(res => {
  18184. this.$message({
  18185. message: "提交成功",
  18186. type: "success"
  18187. });
  18188. this.studyJuri[0].cover = [];
  18189. this.selectSWorks();
  18190. this.selectStudent();
  18191. })
  18192. .catch(err => {
  18193. this.$message.error("提交失败");
  18194. console.error(err);
  18195. });
  18196. },
  18197. addCourseWorksGongTeacher(i, data, tool) {
  18198. let params = [
  18199. {
  18200. uid: this.sStudent.userid,
  18201. cid: this.id,
  18202. stage: this.courseType,
  18203. task: this.taskCount,
  18204. tool: i,
  18205. content: data,
  18206. type: 12,
  18207. atool: tool,
  18208. text: ""
  18209. }
  18210. ];
  18211. this.ajax
  18212. .post(this.$store.state.api + "addCourseWorks5", params)
  18213. .then(res => {
  18214. this.$message({
  18215. message: "提交成功",
  18216. type: "success"
  18217. });
  18218. this.studyJuri[0].cover = [];
  18219. this.dialogVisibleWorks = false;
  18220. this.selectSWorks();
  18221. this.selectStudent();
  18222. })
  18223. .catch(err => {
  18224. this.$message.error("提交失败");
  18225. console.error(err);
  18226. });
  18227. },
  18228. addCourseWorksGongPl(i, data, tool, type) {
  18229. let params = [
  18230. {
  18231. uid: this.sStudent.userid,
  18232. cid: this.id,
  18233. stage: this.courseType,
  18234. task: this.taskCount,
  18235. tool: i,
  18236. content: data,
  18237. type: type,
  18238. atool: tool,
  18239. text: ""
  18240. }
  18241. ];
  18242. this.ajax
  18243. .post(this.$store.state.api + "addCourseWorks5", params)
  18244. .then(res => {
  18245. this.$message({
  18246. message: "提交成功",
  18247. type: "success"
  18248. });
  18249. this.studyJuri[0].cover = [];
  18250. this.dialogVisibleWorks = false;
  18251. this.selectSWorks();
  18252. this.selectStudent();
  18253. })
  18254. .catch(err => {
  18255. this.$message.error("提交失败");
  18256. console.error(err);
  18257. });
  18258. },
  18259. addCourseWorksTeacher(i) {
  18260. var typesql;
  18261. if (this.sTool == 32) {
  18262. this.addCourseWorksGongTeacher(
  18263. this.toolindex,
  18264. this.studyJuri[0].cover[0].url,
  18265. this.sTool
  18266. );
  18267. return;
  18268. }
  18269. if (this.fileType === 0) {
  18270. typesql = 1;
  18271. } else if (this.fileType === 1) {
  18272. typesql = 4;
  18273. } else if (this.fileType === 2) {
  18274. typesql = 5;
  18275. } else if (this.fileType === 3) {
  18276. typesql = 12;
  18277. }
  18278. if (this.sTool == 50) {
  18279. this.addCourseWorksGongPl(
  18280. this.toolindex,
  18281. this.studyJuri[0].cover[0].url,
  18282. this.sTool,
  18283. typesql
  18284. );
  18285. return;
  18286. }
  18287. if (!this.studyJuri[0].cover[0].url) {
  18288. this.$message.error("请上传文件");
  18289. return;
  18290. }
  18291. let params = [
  18292. {
  18293. uid: this.sStudent.userid,
  18294. cid: this.id,
  18295. stage: this.courseType,
  18296. task: i,
  18297. tool: this.toolindex,
  18298. content: this.studyJuri[0].cover[0].url,
  18299. type: typesql,
  18300. ateacher: this.userid
  18301. }
  18302. ];
  18303. this.ajax
  18304. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18305. .then(res => {
  18306. this.$message({
  18307. message: "提交成功",
  18308. type: "success"
  18309. });
  18310. this.studyJuri[0].cover = [];
  18311. this.dialogVisibleWorks = false;
  18312. this.getCourseDetail(2);
  18313. })
  18314. .catch(err => {
  18315. this.$message.error("提交失败");
  18316. console.error(err);
  18317. });
  18318. },
  18319. selectUploadStudent(type) {
  18320. const loading = this.$loading.service({
  18321. background: "rgba(255, 255, 255, 0.7)",
  18322. target: document.body
  18323. });
  18324. let params = {
  18325. cid: this.uploadCid,
  18326. oid: this.oid,
  18327. cn: ""
  18328. };
  18329. this.ajax
  18330. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18331. .then(res => {
  18332. loading.close();
  18333. var studentK = [];
  18334. if (this.isWorksS[this.toolindex].length > 0) {
  18335. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18336. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18337. }
  18338. studentK = studentK.join(",");
  18339. }
  18340. this.uploadStudentJuri = res.data[0].filter(el => {
  18341. return studentK.indexOf(el.userid) == -1;
  18342. });
  18343. if (this.worksSName && this.worksSid) {
  18344. this.uploadStudentJuri.push({
  18345. userid: this.worksSid,
  18346. name: this.worksSName
  18347. });
  18348. }
  18349. if (type == 1) {
  18350. this.plworkFile = [];
  18351. this.dialogVisibleSname = true;
  18352. } else if (type == 2) {
  18353. this.dialogVisiblePl = true;
  18354. }
  18355. })
  18356. .catch(err => {
  18357. loading.close();
  18358. console.error(err);
  18359. });
  18360. },
  18361. selectPickStudent() {
  18362. const loading = this.$loading.service({
  18363. background: "rgba(255, 255, 255, 0.7)",
  18364. target: document.body
  18365. });
  18366. let params = {
  18367. cid: this.uploadCid,
  18368. oid: this.oid,
  18369. cn: ""
  18370. };
  18371. this.ajax
  18372. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18373. .then(res => {
  18374. loading.close();
  18375. this.uploadStudentJuri = res.data[0];
  18376. this.dialogVisiblePickPeople = true;
  18377. })
  18378. .catch(err => {
  18379. loading.close();
  18380. console.error(err);
  18381. });
  18382. },
  18383. arrayToArray(arrayo, arrayt) {
  18384. let array1 = arrayo;
  18385. let array2 = arrayt;
  18386. let commonElements = [];
  18387. for (let i = 0; i < array1.length; i++) {
  18388. for (let j = 0; j < array2.length; j++) {
  18389. if (array1[i] === array2[j]) {
  18390. commonElements.push(array1[i]);
  18391. }
  18392. }
  18393. }
  18394. return commonElements;
  18395. },
  18396. selectWorksStudent() {
  18397. let params = {
  18398. oid: this.oid,
  18399. cid: this.courseDetail.juri
  18400. };
  18401. this.ajax
  18402. .get(this.$store.state.api + "selectWorksStudent", params)
  18403. .then(res => {
  18404. var a = res.data[0];
  18405. for (var i = 0; i < this.isWorksS.length; i++) {
  18406. this.noWorksS[i] = [];
  18407. var studentK = [];
  18408. if (this.isWorksS[i].length > 0) {
  18409. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18410. studentK.push(this.isWorksS[i][z].uid);
  18411. }
  18412. studentK = studentK.join(",");
  18413. for (var j = 0; j < a.length; j++) {
  18414. if (studentK.indexOf(a[j].userid) == -1) {
  18415. if (this.tcid) {
  18416. // a[j].classid.indexOf(this.tcid) != -1
  18417. if (
  18418. this.arrayToArray(
  18419. a[j].classid.split(","),
  18420. this.tcid.split(",")
  18421. ).length
  18422. ) {
  18423. this.noWorksS[i].push({
  18424. student: a[j].name,
  18425. userid: a[j].userid
  18426. });
  18427. }
  18428. } else {
  18429. this.noWorksS[i].push({
  18430. student: a[j].name,
  18431. userid: a[j].userid
  18432. });
  18433. }
  18434. }
  18435. }
  18436. } else {
  18437. for (var k = 0; k < a.length; k++) {
  18438. if (this.tcid) {
  18439. if (
  18440. this.arrayToArray(
  18441. a[k].classid.split(","),
  18442. this.tcid.split(",")
  18443. ).length
  18444. ) {
  18445. this.noWorksS[i].push({
  18446. student: a[k].name,
  18447. userid: a[k].userid
  18448. });
  18449. }
  18450. } else {
  18451. this.noWorksS[i].push({
  18452. student: a[k].name,
  18453. userid: a[k].userid
  18454. });
  18455. }
  18456. }
  18457. }
  18458. }
  18459. this.$forceUpdate();
  18460. if (
  18461. Object.keys(this.commentDetail).length &&
  18462. Object.keys(this.commentIndexJson).length &&
  18463. !this.dialogVisibleScore &&
  18464. !this.dialogVisibleENScore
  18465. ) {
  18466. let a = 1;
  18467. let c = this.commentIndexJson;
  18468. if (
  18469. this.commentIndexJson.gindex ||
  18470. this.commentIndexJson.gindex === 0
  18471. ) {
  18472. for (
  18473. var i = 0;
  18474. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18475. i++
  18476. ) {
  18477. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18478. groupA: for (var k = 0; k < _el.length; k++) {
  18479. let el = _el[k];
  18480. if (el.wid == this.commentDetail.wid) {
  18481. a = 2;
  18482. this.commentOther(
  18483. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18484. this.commentIndexJson.toolIndex,
  18485. k,
  18486. this.commentIndexJson.gindex
  18487. );
  18488. break groupA;
  18489. }
  18490. }
  18491. }
  18492. if (a === 1) {
  18493. this.commentDetail = [];
  18494. this.commentIndexJson = {};
  18495. this.commentDialogVisible = false;
  18496. this.$message("此作业已被删除");
  18497. }
  18498. } else {
  18499. if (this.isGroup && this.commentIndexJson.gid) {
  18500. groupA: for (
  18501. var i = 0;
  18502. i < this.courseGroup.group.length;
  18503. i++
  18504. ) {
  18505. let _group = this.courseGroup.group[i];
  18506. if (_group.id == this.commentIndexJson.gid) {
  18507. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18508. for (var k = 0; k < _el2.length; k++) {
  18509. let el2 = _el2[k];
  18510. if (el2.wid == this.commentDetail.wid) {
  18511. a = 2;
  18512. this.commentOther(
  18513. _el2[k],
  18514. this.commentIndexJson.toolIndex,
  18515. k,
  18516. null,
  18517. this.commentIndexJson.gid
  18518. );
  18519. break groupA;
  18520. }
  18521. }
  18522. }
  18523. }
  18524. }
  18525. if (a == 1) {
  18526. for (
  18527. var i = 0;
  18528. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18529. i++
  18530. ) {
  18531. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  18532. i
  18533. ];
  18534. if (el.wid == this.commentDetail.wid) {
  18535. a = 2;
  18536. this.commentOther(
  18537. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18538. this.commentIndexJson.toolIndex,
  18539. i
  18540. );
  18541. break;
  18542. }
  18543. }
  18544. }
  18545. if (a === 1) {
  18546. this.commentDetail = [];
  18547. this.commentIndexJson = {};
  18548. this.commentDialogVisible = false;
  18549. this.$message("此作业已被删除");
  18550. }
  18551. }
  18552. }
  18553. })
  18554. .catch(err => {
  18555. console.error(err);
  18556. });
  18557. },
  18558. selectStudent() {
  18559. //学生查看自己作业
  18560. let params = {
  18561. uid: this.userid,
  18562. cid: this.id,
  18563. s: this.courseType,
  18564. t: this.taskCount
  18565. };
  18566. this.ajax
  18567. .get(this.$store.state.api + "selectStudentWorks", params)
  18568. .then(res => {
  18569. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18570. this.taskCount
  18571. ].toolChoose;
  18572. var b = res.data[0];
  18573. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18574. var y = [
  18575. "AVI",
  18576. "NAVI",
  18577. "MPEG",
  18578. "ASF",
  18579. "MOV",
  18580. "WMV",
  18581. "3GP",
  18582. "RM",
  18583. "RMVB",
  18584. "FLV",
  18585. "F4V",
  18586. "H.264",
  18587. "H.265",
  18588. "REAL VIDEO",
  18589. "MKV",
  18590. "WebM",
  18591. "HDDVD",
  18592. "MP4",
  18593. "MPG",
  18594. "M4V",
  18595. "MGV",
  18596. "OGV",
  18597. "QTM",
  18598. "STR",
  18599. "AMC",
  18600. "DVX",
  18601. "EVO",
  18602. "DAT",
  18603. "OGG",
  18604. "OGM"
  18605. ];
  18606. for (var i = 0; i < a.length; i++) {
  18607. this.workStudent[i] = [];
  18608. for (var j = 0; j < b.length; j++) {
  18609. if (i == b[j].tool) {
  18610. if (
  18611. (b[j].type == 1 ||
  18612. b[j].type == 4 ||
  18613. b[j].type == 5 ||
  18614. b[j].type == 6 ||
  18615. b[j].type == 12 ||
  18616. b[j].type == 7) &&
  18617. a[i].tool[0] != 15 &&
  18618. a[i].tool[0] != 4 &&
  18619. a[i].tool[0] != 45 &&
  18620. a[i].tool[0] != 50 &&
  18621. a[i].tool[0] != 32 &&
  18622. a[i].tool[0] != 57 &&
  18623. a[i].tool[0] != 52 &&
  18624. a[i].tool[0] != 69
  18625. ) {
  18626. if (
  18627. c.indexOf(
  18628. b[j].content
  18629. .split(".")
  18630. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18631. ) != -1 &&
  18632. a[i].tool[0] == 16 &&
  18633. b[j].atool != 50
  18634. ) {
  18635. this.workStudent[i].push({
  18636. works: b[j].content,
  18637. sName: b[j].name,
  18638. score: b[j].score,
  18639. img: b[j].img,
  18640. type: 1,
  18641. time: b[j].time,
  18642. userid: b[j].userid,
  18643. wid: b[j].id
  18644. });
  18645. } else if (
  18646. y.indexOf(
  18647. b[j].content
  18648. .split(".")
  18649. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18650. ) != -1 &&
  18651. a[i].tool[0] == 16 &&
  18652. b[j].atool != 50
  18653. ) {
  18654. this.workStudent[i].push({
  18655. userid: b[j].userid,
  18656. wid: b[j].id,
  18657. works: b[j].content,
  18658. sName: b[j].name,
  18659. score: b[j].score,
  18660. img: b[j].img,
  18661. type: 3,
  18662. time: b[j].time
  18663. });
  18664. } else if (b[j].type == 6 && b[j].atool != 50) {
  18665. this.workStudent[i].push({
  18666. userid: b[j].userid,
  18667. wid: b[j].id,
  18668. works: b[j].content,
  18669. sName: b[j].name,
  18670. score: b[j].score,
  18671. img: b[j].img,
  18672. type: 4,
  18673. time: b[j].time
  18674. });
  18675. } else if (b[j].type == 7 && b[j].atool != 50) {
  18676. this.workStudent[i].push({
  18677. userid: b[j].userid,
  18678. wid: b[j].id,
  18679. works: b[j].content,
  18680. sName: b[j].name,
  18681. score: b[j].score,
  18682. img: b[j].img,
  18683. type: 5,
  18684. time: b[j].time
  18685. });
  18686. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18687. this.workStudent[i].push({
  18688. works: b[j].content,
  18689. sName: b[j].name,
  18690. score: b[j].score,
  18691. img: b[j].img,
  18692. type: 12,
  18693. time: b[j].time,
  18694. userid: b[j].userid,
  18695. wid: b[j].id
  18696. });
  18697. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18698. this.workStudent[i].push({
  18699. works: b[j].content,
  18700. sName: b[j].name,
  18701. score: b[j].score,
  18702. img: b[j].img,
  18703. type: 0,
  18704. time: b[j].time,
  18705. userid: b[j].userid,
  18706. wid: b[j].id
  18707. });
  18708. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18709. this.workStudent[i].push({
  18710. works: b[j].content,
  18711. sName: b[j].name,
  18712. score: b[j].score,
  18713. img: b[j].img,
  18714. type: 0,
  18715. time: b[j].time,
  18716. userid: b[j].userid,
  18717. wid: b[j].id
  18718. });
  18719. }
  18720. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18721. this.workStudent[i].push({
  18722. works: b[j].content,
  18723. sName: b[j].name,
  18724. score: b[j].score,
  18725. img: b[j].img,
  18726. type: 2,
  18727. time: b[j].time,
  18728. userid: b[j].userid,
  18729. wid: b[j].id
  18730. });
  18731. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18732. this.workStudent[i].push({
  18733. works: b[j].content,
  18734. sName: b[j].name,
  18735. score: b[j].score,
  18736. img: b[j].img,
  18737. type: 20,
  18738. time: b[j].time,
  18739. userid: b[j].userid,
  18740. wid: b[j].id
  18741. });
  18742. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18743. //问卷
  18744. this.workStudent[i].push({
  18745. works: b[j].content,
  18746. sName: b[j].name,
  18747. score: b[j].score,
  18748. img: b[j].img,
  18749. type: 2,
  18750. time: b[j].time,
  18751. userid: b[j].userid,
  18752. wid: b[j].id
  18753. });
  18754. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18755. //选择题
  18756. this.workStudent[i].push({
  18757. works: b[j].content,
  18758. sName: b[j].name,
  18759. score: b[j].score,
  18760. img: b[j].img,
  18761. type: 8,
  18762. time: b[j].time,
  18763. userid: b[j].userid,
  18764. wid: b[j].id
  18765. });
  18766. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18767. //选择题
  18768. this.workStudent[i].push({
  18769. works: b[j].content,
  18770. sName: b[j].name,
  18771. score: b[j].score,
  18772. img: b[j].img,
  18773. type: 9,
  18774. time: b[j].time,
  18775. userid: b[j].userid,
  18776. wid: b[j].id
  18777. });
  18778. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18779. //选择题
  18780. this.workStudent[i].push({
  18781. works: b[j].content,
  18782. sName: b[j].name,
  18783. score: b[j].score,
  18784. img: b[j].img,
  18785. type: 10,
  18786. time: b[j].time,
  18787. userid: b[j].userid,
  18788. wid: b[j].id
  18789. });
  18790. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18791. //选择题
  18792. this.workStudent[i].push({
  18793. works: b[j].content,
  18794. sName: b[j].name,
  18795. score: b[j].score,
  18796. img: b[j].img,
  18797. type: 13,
  18798. time: b[j].time,
  18799. userid: b[j].userid,
  18800. wid: b[j].id
  18801. });
  18802. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18803. //选择题
  18804. this.workStudent[i].push({
  18805. works: b[j].content,
  18806. sName: b[j].name,
  18807. score: b[j].score,
  18808. img: b[j].img,
  18809. type: 12,
  18810. time: b[j].time,
  18811. userid: b[j].userid,
  18812. wid: b[j].id
  18813. });
  18814. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18815. //选择题
  18816. this.workStudent[i].push({
  18817. works: b[j].content,
  18818. sName: b[j].name,
  18819. score: b[j].score,
  18820. img: b[j].img,
  18821. type: 12,
  18822. time: b[j].time,
  18823. userid: b[j].userid,
  18824. wid: b[j].id
  18825. });
  18826. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18827. //选择题
  18828. this.workStudent[i].push({
  18829. works: b[j].content,
  18830. sName: b[j].name,
  18831. score: b[j].score,
  18832. img: b[j].img,
  18833. type: 15,
  18834. time: b[j].time,
  18835. userid: b[j].userid,
  18836. wid: b[j].id
  18837. });
  18838. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18839. //英语写作
  18840. this.workStudent[i].push({
  18841. works: b[j].content,
  18842. sName: b[j].name,
  18843. score: b[j].score,
  18844. img: b[j].img,
  18845. type: 16,
  18846. time: b[j].time,
  18847. userid: b[j].userid,
  18848. wid: b[j].id,
  18849. aiCode: b[j].aiCode,
  18850. teacherCode: b[j].teacherCode
  18851. });
  18852. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18853. //英语写作
  18854. this.workStudent[i].push({
  18855. works: b[j].content,
  18856. sName: b[j].name,
  18857. score: b[j].score,
  18858. img: b[j].img,
  18859. type: 17,
  18860. time: b[j].time,
  18861. userid: b[j].userid,
  18862. wid: b[j].id
  18863. });
  18864. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18865. //英语口语
  18866. this.workStudent[i].push({
  18867. works: b[j].content,
  18868. sName: b[j].name,
  18869. score: b[j].score,
  18870. img: b[j].img,
  18871. type: 14,
  18872. time: b[j].time,
  18873. userid: b[j].userid,
  18874. wid: b[j].id
  18875. });
  18876. }
  18877. }
  18878. }
  18879. }
  18880. })
  18881. .catch(err => {
  18882. console.error(err);
  18883. });
  18884. },
  18885. openVideo(w) {
  18886. this.videoDetail = {};
  18887. this.playerOptions1.sources[0].src = w.works;
  18888. this.videoDetail = this.playerOptions1;
  18889. this.videoVisible = true;
  18890. },
  18891. isLikes(wid, uid, t, c, isLikes, sName) {
  18892. if (isLikes == false) {
  18893. let params = [
  18894. {
  18895. wid: wid,
  18896. lid: uid,
  18897. t: t,
  18898. c: c
  18899. }
  18900. ];
  18901. this.ajax
  18902. .post(this.$store.state.api + "insertComment", params)
  18903. .then(res => {
  18904. this.$message({
  18905. message: "点赞成功",
  18906. type: "success"
  18907. });
  18908. this.selectSWorks();
  18909. this.selectStudent();
  18910. if(this.tType!=2){
  18911. this.insertMemorandum(
  18912. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18913. );
  18914. }
  18915. })
  18916. .catch(err => {
  18917. this.$message.error("点赞失败");
  18918. console.error(err);
  18919. });
  18920. } else {
  18921. let params = {
  18922. wid: wid,
  18923. lid: uid,
  18924. type: t
  18925. };
  18926. this.ajax
  18927. .get(this.$store.state.api + "deleteComment", params)
  18928. .then(res => {
  18929. this.$message({
  18930. message: "取消点赞成功",
  18931. type: "success"
  18932. });
  18933. this.selectSWorks();
  18934. this.selectStudent();
  18935. })
  18936. .catch(err => {
  18937. console.error(err);
  18938. });
  18939. }
  18940. },
  18941. deleteComment(wid) {
  18942. this.$confirm("确定删除此评论吗?", "提示", {
  18943. confirmButtonText: "确定",
  18944. cancelButtonText: "取消",
  18945. type: "warning"
  18946. })
  18947. .then(() => {
  18948. let params = {
  18949. id: wid
  18950. };
  18951. this.ajax
  18952. .get(this.$store.state.api + "deleteComment2", params)
  18953. .then(res => {
  18954. this.$message({
  18955. message: "删除评论成功",
  18956. type: "success"
  18957. });
  18958. this.selectSWorks();
  18959. this.selectStudent();
  18960. })
  18961. .catch(err => {
  18962. console.error(err);
  18963. });
  18964. })
  18965. .catch(() => {});
  18966. },
  18967. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18968. this.commentIndexJson = {
  18969. toolIndex: toolIndex,
  18970. wIndex: wIndex,
  18971. gindex: gindex,
  18972. gid: gid
  18973. };
  18974. this.commentDialogVisible = true;
  18975. // console.log('wwwwww',w)
  18976. // if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18977. // return;
  18978. this.commentDetailCopy = w.works;
  18979. this.commentDetail = [];
  18980. this.commentDetail = w;
  18981. if (w.works && w.type == 1) {
  18982. // this.pptImgUrl = "";
  18983. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18984. if (
  18985. a.indexOf(
  18986. w.works
  18987. .split(".")
  18988. [w.works.split(".").length - 1].toLocaleUpperCase()
  18989. ) != -1
  18990. ) {
  18991. let _uuurl = await this.checkLink(w.works);
  18992. this.pptImgUrl =
  18993. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18994. encodeURIComponent(_uuurl);
  18995. this.showPDF = false;
  18996. } else if (
  18997. w.works
  18998. .split(".")
  18999. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19000. ) {
  19001. this.pptImgUrl = w.works;
  19002. this.showPDF = true;
  19003. }
  19004. } else if (w.works && w.type == 3) {
  19005. this.videoDetail = {};
  19006. this.playerOptions1.sources[0].src = w.works;
  19007. this.videoDetail = this.playerOptions1;
  19008. // this.videoVisible = true;
  19009. } else if (w.works && w.type == 4) {
  19010. this.eScore = JSON.parse(w.works);
  19011. this.rateJson = this.chapInfoList[
  19012. this.courseType
  19013. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19014. toolIndex
  19015. ].rateJson;
  19016. } else if (w.works && w.type == 10) {
  19017. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19018. } else if (w.works && w.type == 12) {
  19019. getFile(this.commentDetail.works).then(res => {
  19020. this.commentDetail.works = res.data;
  19021. });
  19022. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19023. } else if (w.works && w.type == 13) {
  19024. this.wordJson = this.chapInfoList[
  19025. this.courseType
  19026. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19027. toolIndex
  19028. ].wordJson;
  19029. }
  19030. this.$forceUpdate();
  19031. },
  19032. async openScore(w, index) {
  19033. this.wScore = 0;
  19034. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  19035. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  19036. this.commentDetail = [];
  19037. if (w.type == 17) {
  19038. this.dialogVisibleENScore = true;
  19039. } else {
  19040. this.dialogVisibleScore = true;
  19041. }
  19042. this.commentDetail = w;
  19043. if (w.works && w.type == 1) {
  19044. this.pptImgUrl = "";
  19045. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19046. if (
  19047. a.indexOf(
  19048. w.works
  19049. .split(".")
  19050. [w.works.split(".").length - 1].toLocaleUpperCase()
  19051. ) != -1
  19052. ) {
  19053. let _uuurl = await this.checkLink(w.works);
  19054. this.pptImgUrl =
  19055. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19056. encodeURIComponent(_uuurl);
  19057. this.showPDF = false;
  19058. } else if (
  19059. w.works
  19060. .split(".")
  19061. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19062. ) {
  19063. this.pptImgUrl = w.works;
  19064. this.showPDF = true;
  19065. }
  19066. } else if (w.works && w.type == 3) {
  19067. this.videoDetail = {};
  19068. this.playerOptions1.sources[0].src = w.works;
  19069. this.videoDetail = this.playerOptions1;
  19070. } else if (w.type == 17) {
  19071. let englishVoiceJson = {};
  19072. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19073. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  19074. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19075. this.taskCount
  19076. ].toolChoose[index].englishVoiceJson
  19077. : {};
  19078. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19079. }
  19080. this.insertMemorandum(
  19081. `查看<span class="variable">${w.sName}</span>的作业`
  19082. );
  19083. },
  19084. addComment(wid, uid, t, detail) {
  19085. if (this.commentText == "") {
  19086. this.$message.error("请输入评论");
  19087. return;
  19088. }
  19089. let params2 = [
  19090. {
  19091. wid: wid,
  19092. lid: uid,
  19093. t: t
  19094. }
  19095. ];
  19096. this.ajax
  19097. .post(this.$store.state.api + "getComment", params2)
  19098. .then(res => {
  19099. if (res.data[0].length > 0) {
  19100. this.$message.error("一个作业只能评论一条");
  19101. } else {
  19102. let params = [
  19103. {
  19104. wid: wid,
  19105. lid: uid,
  19106. t: t,
  19107. c: this.commentText
  19108. }
  19109. ];
  19110. this.ajax
  19111. .post(this.$store.state.api + "insertComment", params)
  19112. .then(res => {
  19113. this.$message({
  19114. message: "评论成功",
  19115. type: "success"
  19116. });
  19117. this.commentText = "";
  19118. this.selectSWorks();
  19119. this.selectStudent();
  19120. if(this.tType!=2){
  19121. this.insertMemorandum(
  19122. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  19123. );
  19124. }
  19125. })
  19126. .catch(err => {
  19127. this.$message.error("评论失败");
  19128. console.error(err);
  19129. });
  19130. }
  19131. })
  19132. .catch(err => {
  19133. // this.$message.error("评论失败");
  19134. console.error(err);
  19135. });
  19136. },
  19137. scoreWork(wid, sName) {
  19138. if (this.wScore == 0) {
  19139. this.$message.error("请评分");
  19140. return;
  19141. }
  19142. let params = [
  19143. {
  19144. wid: wid,
  19145. score: JSON.stringify({
  19146. wScore: this.wScore,
  19147. detail: this.scoreDetail
  19148. })
  19149. }
  19150. ];
  19151. this.ajax
  19152. .post(this.$store.state.api + "scoreWork", params)
  19153. .then(res => {
  19154. this.$message({
  19155. message: "评分成功",
  19156. type: "success"
  19157. });
  19158. this.wScore = 0;
  19159. this.scoreDetail = "";
  19160. this.dialogVisibleScore = false;
  19161. this.selectSWorks();
  19162. this.selectStudent();
  19163. if(this.tType!=2){
  19164. this.insertMemorandum(
  19165. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  19166. );
  19167. }
  19168. })
  19169. .catch(err => {
  19170. this.$message.error("评分失败");
  19171. console.error(err);
  19172. });
  19173. },
  19174. openXz(w, i) {
  19175. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19176. .taskJson[this.taskCount].toolChoose[i].selectJson
  19177. ? JSON.parse(
  19178. JSON.stringify(
  19179. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19180. this.taskCount
  19181. ].toolChoose[i].selectJson
  19182. )
  19183. )
  19184. : { url: "", select: [], answer: [] };
  19185. var a = w.works.split(",");
  19186. for (var k = 0; k < a.length; k++) {
  19187. a[k] = parseInt(a[k]);
  19188. }
  19189. this.selectAnswer = { answer: a, stu: w.sName };
  19190. this.isSelect = true;
  19191. this.dialogVisibleSelect = true;
  19192. this.insertMemorandum(
  19193. `查看<span class="variable">${w.sName}</span>的作业`
  19194. );
  19195. },
  19196. openSen(w, i) {
  19197. this.sentenceList1 = JSON.parse(w.works);
  19198. this.sentenceList1.stuName = w.sName;
  19199. this.dialogVisibleSentence1 = true;
  19200. },
  19201. openPj(w, toolindex) {
  19202. this.isStar = true;
  19203. this.eScore = JSON.parse(w);
  19204. this.rateJson = this.chapInfoList[
  19205. this.courseType
  19206. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  19207. this.studentEvalDialogVisible = true;
  19208. },
  19209. openEnglishEva(id, i) {
  19210. let params = {
  19211. wid: id
  19212. };
  19213. this.ajax
  19214. .get(this.$store.state.api + "selectEngWork", params)
  19215. .then(res => {
  19216. this.evaEngJson.message = res.data[0][0];
  19217. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19218. this.evaEngJson.teacherJson = this.chapInfoList[
  19219. this.courseType
  19220. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  19221. this.engEvaDialogVisible = true;
  19222. })
  19223. .catch(err => {
  19224. console.error(err);
  19225. });
  19226. },
  19227. deleteWorks(id) {
  19228. this.$confirm("确定删除此作业吗?", "提示", {
  19229. confirmButtonText: "确定",
  19230. cancelButtonText: "取消",
  19231. type: "warning"
  19232. })
  19233. .then(() => {
  19234. let params = [
  19235. {
  19236. id: id
  19237. }
  19238. ];
  19239. this.ajax
  19240. .post(this.$store.state.api + "deleteCourseWork", params)
  19241. .then(res => {
  19242. this.$message({
  19243. message: "删除成功",
  19244. type: "success"
  19245. });
  19246. this.selectStudent();
  19247. this.selectSWorks();
  19248. this.selectSLook();
  19249. })
  19250. .catch(err => {
  19251. this.$message.error("网络异常");
  19252. console.error(err);
  19253. });
  19254. })
  19255. .catch(() => {});
  19256. },
  19257. // deleteWorksTwo(w,stage,task) {
  19258. // // let mk = `markSco${toolIndex}${wIndex}`
  19259. // // console.log(this.$refs[mk][0].homeworkVal)
  19260. // // let wid = this.$refs[mk][0].homeworkVal.id
  19261. // // console.log('wid',wid);
  19262. // this.$confirm("确定删除此作业吗?", "提示", {
  19263. // confirmButtonText: "确定",
  19264. // cancelButtonText: "取消",
  19265. // type: "warning",
  19266. // })
  19267. // .then(() => {
  19268. // let params = [
  19269. // {
  19270. // id: w.wid,
  19271. // cid: this.id,
  19272. // uid:w.userid,
  19273. // s:stage,
  19274. // t:task
  19275. // },
  19276. // ];
  19277. // // return console.log(params)
  19278. // this.ajax
  19279. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  19280. // .then((res) => {
  19281. // this.$message({
  19282. // message: "删除成功",
  19283. // type: "success",
  19284. // });
  19285. // this.selectStudent();
  19286. // this.selectSWorks();
  19287. // this.selectSLook();
  19288. // })
  19289. // .catch((err) => {
  19290. // this.$message.error("网络异常");
  19291. // console.error(err);
  19292. // });
  19293. // })
  19294. // .catch(() => {});
  19295. // },
  19296. noIsAi() {
  19297. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19298. },
  19299. getLang() {
  19300. let lang = "";
  19301. if (this.languageSetting == 0) {
  19302. lang = "Chinese.";
  19303. } else if (this.languageSetting == 1) {
  19304. lang = "Traditional Chinese.";
  19305. } else if (this.languageSetting == 2) {
  19306. lang = "English.";
  19307. }
  19308. return lang;
  19309. },
  19310. selectSWorks(gindex) {
  19311. //教师查看全部作业
  19312. let params = {
  19313. cid: this.id,
  19314. s: this.courseType,
  19315. t: this.taskCount
  19316. };
  19317. this.ajax
  19318. .get(this.$store.state.api + "selectSWorks", params)
  19319. .then(res => {
  19320. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19321. this.taskCount
  19322. ].toolChoose;
  19323. var b = res.data[0];
  19324. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19325. var y = [
  19326. "AVI",
  19327. "NAVI",
  19328. "MPEG",
  19329. "ASF",
  19330. "MOV",
  19331. "WMV",
  19332. "3GP",
  19333. "RM",
  19334. "RMVB",
  19335. "FLV",
  19336. "F4V",
  19337. "H.264",
  19338. "H.265",
  19339. "REAL VIDEO",
  19340. "MKV",
  19341. "WebM",
  19342. "HDDVD",
  19343. "MP4",
  19344. "MPG",
  19345. "M4V",
  19346. "MGV",
  19347. "OGV",
  19348. "QTM",
  19349. "STR",
  19350. "AMC",
  19351. "DVX",
  19352. "EVO",
  19353. "DAT",
  19354. "OGG",
  19355. "OGM"
  19356. ];
  19357. var d = res.data[1];
  19358. var e = res.data[2];
  19359. var f = res.data[3];
  19360. let _worksStudent = [];
  19361. var _worksStudent2 = [];
  19362. for (var i = 0; i < a.length; i++) {
  19363. _worksStudent[i] = [];
  19364. _worksStudent2[i] = [];
  19365. if (
  19366. !this.isCloseList[i] ||
  19367. this.isCloseList[i].isClose == undefined
  19368. ) {
  19369. this.isCloseList[i] = { isClose: 0 };
  19370. }
  19371. this.groupStudent[i] = [];
  19372. this.groupStudentUid[i] = [];
  19373. if (this.isGroup) {
  19374. for (
  19375. var groupI = 0;
  19376. groupI < this.courseGroup.group.length;
  19377. groupI++
  19378. ) {
  19379. this.courseGroup.group[groupI].works[i] = [];
  19380. }
  19381. }
  19382. this.isWorksS[i] = [];
  19383. this.checkJson[i] = [];
  19384. if (a[i].tool[0] == 49) {
  19385. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19386. this.groupStudent[i][gA] = [];
  19387. this.groupStudentUid[i][gA] = [];
  19388. _worksStudent[i][gA] = [];
  19389. _worksStudent2[i][gA] = [];
  19390. this.isCloseList[i][gA] = [];
  19391. for (var g = 0; g < f.length; g++) {
  19392. if (
  19393. f[g].ttype == 2 &&
  19394. this.tcid &&
  19395. this.arrayToArray(
  19396. f[g].classid ? f[g].classid.split(",") : [],
  19397. this.tcid.split(",")
  19398. ).length == 0
  19399. ) {
  19400. continue;
  19401. }
  19402. let _classId = this.arrayToArray(
  19403. this.courseDetail.juri
  19404. ? this.courseDetail.juri.split(",")
  19405. : [],
  19406. this.classId ? this.classId.split(",") : []
  19407. );
  19408. if (
  19409. gA == f[g].group &&
  19410. f[g].tool == i &&
  19411. (this.arrayToArray(
  19412. f[g].classid ? f[g].classid.split(",") : [],
  19413. this.tcid.split(",")
  19414. ).length !== 0 ||
  19415. this.arrayToArray(
  19416. f[g].classid ? f[g].classid.split(",") : [],
  19417. _classId
  19418. ).length !== 0 ||
  19419. (!this.tcid && this.tType == "1") ||
  19420. this.courseDetail.juri === "" ||
  19421. f[g].ttype == 1)
  19422. ) {
  19423. this.groupStudent[i][gA].push(f[g]);
  19424. this.groupStudentUid[i][gA].push(f[g].userid);
  19425. }
  19426. }
  19427. }
  19428. this.$forceUpdate();
  19429. }
  19430. for (var j = 0; j < b.length; j++) {
  19431. if (
  19432. b[j].ttype == 2 &&
  19433. this.tcid &&
  19434. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19435. .length == 0
  19436. ) {
  19437. continue;
  19438. }
  19439. var likesCount = 0;
  19440. var commentCount = 0;
  19441. var isLikes = false;
  19442. var commentJson = [];
  19443. var likeJson = [];
  19444. var data = b[j];
  19445. if (i == b[j].tool) {
  19446. if (data.type == 2 && a[i].tool[0] == 4) {
  19447. // if(JSON.parse(data.content)[0].anwer){
  19448. var checkL =
  19449. JSON.parse(data.content)[0].anwer instanceof Array
  19450. ? JSON.parse(data.content)[0].anwer
  19451. : JSON.parse(data.content)[0].anwer.split(",");
  19452. for (var z = 0; z < checkL.length; z++) {
  19453. if (!this.checkJson[i][z]) {
  19454. this.checkJson[i].push({
  19455. checkCount: [],
  19456. checkPerson: [],
  19457. rightPerson: []
  19458. });
  19459. }
  19460. if (!this.checkJson[i][z].checkCount.length) {
  19461. this.checkJson[i][z].checkCount = [];
  19462. let _askItemCount = JSON.parse(data.content)[0].askJson
  19463. .askJson[z].askItem;
  19464. for (var aic = 0; aic < _askItemCount; aic++) {
  19465. this.checkJson[i][z].checkCount.push(0);
  19466. }
  19467. }
  19468. if (checkL[z] instanceof Array) {
  19469. if (
  19470. JSON.parse(data.content)[0]
  19471. .anwer.sort()
  19472. .join(",") == checkL[z].sort().join(",")
  19473. ) {
  19474. this.checkJson[i][z].rightPerson.push(data.name);
  19475. }
  19476. for (var q = 0; q < checkL[z].length; q++) {
  19477. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19478. ? this.checkJson[i][z].checkPerson[
  19479. parseInt(checkL[z][q])
  19480. ].push(data.name)
  19481. : (this.checkJson[i][z].checkPerson[
  19482. parseInt(checkL[z][q])
  19483. ] = [data.name]);
  19484. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19485. ? this.checkJson[i][z].checkCount[
  19486. parseInt(checkL[z][q])
  19487. ]++
  19488. : (this.checkJson[i][z].checkCount[
  19489. parseInt(checkL[z][q])
  19490. ] = 1);
  19491. }
  19492. } else {
  19493. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19494. this.checkJson[i][z].rightPerson.push(data.name);
  19495. }
  19496. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19497. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19498. ? this.checkJson[i][z].checkPerson[
  19499. parseInt(checkL[z])
  19500. ].push(data.name)
  19501. : (this.checkJson[i][z].checkPerson[
  19502. parseInt(checkL[z])
  19503. ] = [data.name]);
  19504. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19505. ? this.checkJson[i][z].checkCount[
  19506. parseInt(checkL[z])
  19507. ]++
  19508. : (this.checkJson[i][z].checkCount[
  19509. parseInt(checkL[z])
  19510. ] = 1);
  19511. }
  19512. }
  19513. }
  19514. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19515. var checkL = JSON.parse(data.content)[0].anwer;
  19516. for (var z = 0; z < checkL.length; z++) {
  19517. if (!this.checkJson[i][z]) {
  19518. this.checkJson[i].push({
  19519. checkCount: [],
  19520. checkPerson: [],
  19521. rightPerson: []
  19522. });
  19523. }
  19524. if (!this.checkJson[i][z].checkCount.length) {
  19525. this.checkJson[i][z].checkCount = [];
  19526. let _askItemCount = JSON.parse(data.content)[0].testJson
  19527. .testJson[z].testItem;
  19528. for (var aic = 0; aic < _askItemCount; aic++) {
  19529. this.checkJson[i][z].checkCount.push(0);
  19530. }
  19531. }
  19532. if (checkL[z] instanceof Array) {
  19533. if (
  19534. JSON.parse(data.content)[0]
  19535. .testJson.testJson[z].answer.sort()
  19536. .join(",") == checkL[z].sort().join(",")
  19537. ) {
  19538. this.checkJson[i][z].rightPerson.push(data.name);
  19539. }
  19540. for (var q = 0; q < checkL[z].length; q++) {
  19541. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19542. ? this.checkJson[i][z].checkPerson[
  19543. parseInt(checkL[z][q])
  19544. ].push(data.name)
  19545. : (this.checkJson[i][z].checkPerson[
  19546. parseInt(checkL[z][q])
  19547. ] = [data.name]);
  19548. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19549. ? this.checkJson[i][z].checkCount[
  19550. parseInt(checkL[z][q])
  19551. ]++
  19552. : (this.checkJson[i][z].checkCount[
  19553. parseInt(checkL[z][q])
  19554. ] = 1);
  19555. }
  19556. } else {
  19557. if (
  19558. JSON.parse(data.content)[0].testJson.testJson[z]
  19559. .answer == checkL[z]
  19560. ) {
  19561. this.checkJson[i][z].rightPerson.push(data.name);
  19562. }
  19563. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19564. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19565. ? this.checkJson[i][z].checkPerson[
  19566. parseInt(checkL[z])
  19567. ].push(data.name)
  19568. : (this.checkJson[i][z].checkPerson[
  19569. parseInt(checkL[z])
  19570. ] = [data.name]);
  19571. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19572. ? this.checkJson[i][z].checkCount[
  19573. parseInt(checkL[z])
  19574. ]++
  19575. : (this.checkJson[i][z].checkCount[
  19576. parseInt(checkL[z])
  19577. ] = 1);
  19578. }
  19579. }
  19580. }
  19581. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19582. var checkL = JSON.parse(data.content);
  19583. for (var z = 0; z < checkL.length; z++) {
  19584. if (!this.checkJson[i][z]) {
  19585. this.checkJson[i].push({
  19586. checkCount: [],
  19587. checkPerson: [],
  19588. rightPerson: []
  19589. });
  19590. }
  19591. this.checkJson[i][z].checkPerson.push(data.name);
  19592. if (
  19593. checkL[z].chooseSenList.toString() ==
  19594. checkL[z].rightAnswer.toString()
  19595. ) {
  19596. this.checkJson[i][z].rightPerson.push(data.name);
  19597. }
  19598. }
  19599. }
  19600. for (var k = 0; k < d.length; k++) {
  19601. //点赞
  19602. if (d[k].workId == b[j].id) {
  19603. likesCount++;
  19604. likeJson.push(d[k]);
  19605. if (d[k].likesId == this.userid) {
  19606. isLikes = true;
  19607. }
  19608. }
  19609. }
  19610. for (var l = 0; l < e.length; l++) {
  19611. //评论
  19612. if (e[l].workId == b[j].id) {
  19613. if (e[l].comment != "") {
  19614. commentCount++;
  19615. commentJson.push({
  19616. commentText: e[l].comment,
  19617. commentTime: e[l].commentTime,
  19618. commentPeople: e[l].commentPeople,
  19619. userid: e[l].userid,
  19620. wid: e[l].id
  19621. });
  19622. }
  19623. }
  19624. }
  19625. if (
  19626. (b[j].type == 1 ||
  19627. b[j].type == 4 ||
  19628. b[j].type == 5 ||
  19629. b[j].type == 6 ||
  19630. b[j].type == 12 ||
  19631. b[j].type == 7) &&
  19632. a[i].tool[0] != 15 &&
  19633. a[i].tool[0] != 4 &&
  19634. a[i].tool[0] != 45 &&
  19635. a[i].tool[0] != 50 &&
  19636. a[i].tool[0] != 32 &&
  19637. a[i].tool[0] != 57 &&
  19638. a[i].tool[0] != 52
  19639. ) {
  19640. if (
  19641. c.indexOf(
  19642. b[j].content
  19643. .split(".")
  19644. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19645. ) != -1 &&
  19646. a[i].tool[0] == 16 &&
  19647. b[j].atool != 50
  19648. ) {
  19649. let _works = {
  19650. userid: b[j].userid,
  19651. ateacher: b[j].ateacher,
  19652. wid: b[j].id,
  19653. works: b[j].content,
  19654. sName: b[j].name,
  19655. type: 1,
  19656. ttype: b[j].ttype,
  19657. time: b[j].time,
  19658. score: b[j].score,
  19659. img: b[j].img,
  19660. likesCount: likesCount,
  19661. commentCount: commentCount,
  19662. isLikes: isLikes,
  19663. commentJson: commentJson,
  19664. likeJson: likeJson
  19665. };
  19666. if (this.isGroup) {
  19667. let isGw = 1;
  19668. for (
  19669. var groupI = 0;
  19670. groupI < this.courseGroup.group.length;
  19671. groupI++
  19672. ) {
  19673. let gid = this.courseGroup.group[groupI].id;
  19674. if (
  19675. this.courseGroupStudentUid[gid].indexOf(
  19676. b[j].userid
  19677. ) != -1
  19678. ) {
  19679. isGw = 2;
  19680. this.courseGroup.group[groupI].works[i].push(_works);
  19681. break;
  19682. }
  19683. }
  19684. if (isGw == 1) {
  19685. _worksStudent[i].push(_works);
  19686. }
  19687. } else {
  19688. _worksStudent[i].push(_works);
  19689. }
  19690. _worksStudent2[i].push(_works);
  19691. this.isWorksS[i].push({
  19692. uid: b[j].userid,
  19693. sName: b[j].name
  19694. });
  19695. } else if (
  19696. y.indexOf(
  19697. b[j].content
  19698. .split(".")
  19699. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19700. ) != -1 &&
  19701. a[i].tool[0] == 16 &&
  19702. b[j].atool != 50
  19703. ) {
  19704. let _works = {
  19705. userid: b[j].userid,
  19706. ateacher: b[j].ateacher,
  19707. wid: b[j].id,
  19708. works: b[j].content,
  19709. sName: b[j].name,
  19710. type: 3,
  19711. ttype: b[j].ttype,
  19712. time: b[j].time,
  19713. score: b[j].score,
  19714. img: b[j].img,
  19715. likesCount: likesCount,
  19716. commentCount: commentCount,
  19717. isLikes: isLikes,
  19718. commentJson: commentJson,
  19719. likeJson: likeJson
  19720. };
  19721. if (this.isGroup) {
  19722. let isGw = 1;
  19723. for (
  19724. var groupI = 0;
  19725. groupI < this.courseGroup.group.length;
  19726. groupI++
  19727. ) {
  19728. let gid = this.courseGroup.group[groupI].id;
  19729. if (
  19730. this.courseGroupStudentUid[gid].indexOf(
  19731. b[j].userid
  19732. ) != -1
  19733. ) {
  19734. isGw = 2;
  19735. this.courseGroup.group[groupI].works[i].push(_works);
  19736. break;
  19737. }
  19738. }
  19739. if (isGw == 1) {
  19740. _worksStudent[i].push(_works);
  19741. }
  19742. } else {
  19743. _worksStudent[i].push(_works);
  19744. }
  19745. _worksStudent2[i].push(_works);
  19746. this.isWorksS[i].push({
  19747. uid: b[j].userid,
  19748. sName: b[j].name
  19749. });
  19750. } else if (b[j].type == 6 && b[j].atool != 50) {
  19751. let _works = {
  19752. userid: b[j].userid,
  19753. ateacher: b[j].ateacher,
  19754. wid: b[j].id,
  19755. works: b[j].content,
  19756. sName: b[j].name,
  19757. type: 4,
  19758. ttype: b[j].ttype,
  19759. time: b[j].time,
  19760. score: b[j].score,
  19761. img: b[j].img,
  19762. likesCount: likesCount,
  19763. commentCount: commentCount,
  19764. isLikes: isLikes,
  19765. commentJson: commentJson,
  19766. likeJson: likeJson
  19767. };
  19768. _worksStudent[i].push(_works);
  19769. _worksStudent2[i].push(_works);
  19770. this.isWorksS[i].push({
  19771. uid: b[j].userid,
  19772. sName: b[j].name
  19773. });
  19774. } else if (b[j].type == 7 && b[j].atool != 50) {
  19775. let _work = {
  19776. userid: b[j].userid,
  19777. ateacher: b[j].ateacher,
  19778. wid: b[j].id,
  19779. works: b[j].content,
  19780. sName: b[j].name,
  19781. type: 5,
  19782. ttype: b[j].ttype,
  19783. time: b[j].time,
  19784. score: b[j].score,
  19785. img: b[j].img,
  19786. likesCount: likesCount,
  19787. commentCount: commentCount,
  19788. isLikes: isLikes,
  19789. commentJson: commentJson,
  19790. likeJson: likeJson
  19791. };
  19792. _worksStudent[i].push(_work);
  19793. _worksStudent2[i].push(_work);
  19794. this.isWorksS[i].push({
  19795. uid: b[j].userid,
  19796. sName: b[j].name
  19797. });
  19798. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19799. let _works = {
  19800. userid: b[j].userid,
  19801. ateacher: b[j].ateacher,
  19802. wid: b[j].id,
  19803. works: b[j].content,
  19804. sName: b[j].name,
  19805. type: 12,
  19806. ttype: b[j].ttype,
  19807. time: b[j].time,
  19808. score: b[j].score,
  19809. img: b[j].img,
  19810. likesCount: likesCount,
  19811. commentCount: commentCount,
  19812. isLikes: isLikes,
  19813. commentJson: commentJson,
  19814. likeJson: likeJson
  19815. };
  19816. if (this.isGroup) {
  19817. let isGw = 1;
  19818. for (
  19819. var groupI = 0;
  19820. groupI < this.courseGroup.group.length;
  19821. groupI++
  19822. ) {
  19823. let gid = this.courseGroup.group[groupI].id;
  19824. if (
  19825. this.courseGroupStudentUid[gid].indexOf(
  19826. b[j].userid
  19827. ) != -1
  19828. ) {
  19829. isGw = 2;
  19830. this.courseGroup.group[groupI].works[i].push(_works);
  19831. break;
  19832. }
  19833. }
  19834. if (isGw == 1) {
  19835. _worksStudent[i].push(_works);
  19836. }
  19837. } else {
  19838. _worksStudent[i].push(_works);
  19839. }
  19840. _worksStudent2[i].push(_works);
  19841. this.isWorksS[i].push({
  19842. uid: b[j].userid,
  19843. sName: b[j].name
  19844. });
  19845. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19846. let _works = {
  19847. userid: b[j].userid,
  19848. ateacher: b[j].ateacher,
  19849. wid: b[j].id,
  19850. works: b[j].content,
  19851. sName: b[j].name,
  19852. type: 0,
  19853. ttype: b[j].ttype,
  19854. time: b[j].time,
  19855. score: b[j].score,
  19856. img: b[j].img,
  19857. likesCount: likesCount,
  19858. commentCount: commentCount,
  19859. isLikes: isLikes,
  19860. commentJson: commentJson,
  19861. likeJson: likeJson
  19862. };
  19863. if (this.isGroup) {
  19864. let isGw = 1;
  19865. for (
  19866. var groupI = 0;
  19867. groupI < this.courseGroup.group.length;
  19868. groupI++
  19869. ) {
  19870. let gid = this.courseGroup.group[groupI].id;
  19871. if (
  19872. this.courseGroupStudentUid[gid].indexOf(
  19873. b[j].userid
  19874. ) != -1
  19875. ) {
  19876. isGw = 2;
  19877. this.courseGroup.group[groupI].works[i].push(_works);
  19878. break;
  19879. }
  19880. }
  19881. if (isGw == 1) {
  19882. _worksStudent[i].push(_works);
  19883. }
  19884. } else {
  19885. _worksStudent[i].push(_works);
  19886. }
  19887. _worksStudent2[i].push(_works);
  19888. this.isWorksS[i].push({
  19889. uid: b[j].userid,
  19890. sName: b[j].name
  19891. });
  19892. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19893. let _works = {
  19894. userid: b[j].userid,
  19895. ateacher: b[j].ateacher,
  19896. wid: b[j].id,
  19897. works: b[j].content,
  19898. sName: b[j].name,
  19899. type: 0,
  19900. ttype: b[j].ttype,
  19901. time: b[j].time,
  19902. score: b[j].score,
  19903. img: b[j].img,
  19904. likesCount: likesCount,
  19905. commentCount: commentCount,
  19906. isLikes: isLikes,
  19907. commentJson: commentJson,
  19908. likeJson: likeJson
  19909. };
  19910. if (this.isGroup) {
  19911. let isGw = 1;
  19912. for (
  19913. var groupI = 0;
  19914. groupI < this.courseGroup.group.length;
  19915. groupI++
  19916. ) {
  19917. let gid = this.courseGroup.group[groupI].id;
  19918. if (
  19919. this.courseGroupStudentUid[gid].indexOf(
  19920. b[j].userid
  19921. ) != -1
  19922. ) {
  19923. isGw = 2;
  19924. this.courseGroup.group[groupI].works[i].push(_works);
  19925. break;
  19926. }
  19927. }
  19928. if (isGw == 1) {
  19929. _worksStudent[i].push(_works);
  19930. }
  19931. } else {
  19932. _worksStudent[i].push(_works);
  19933. }
  19934. _worksStudent2[i].push(_works);
  19935. this.isWorksS[i].push({
  19936. uid: b[j].userid,
  19937. sName: b[j].name
  19938. });
  19939. }
  19940. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19941. let _works = {
  19942. userid: b[j].userid,
  19943. ateacher: b[j].ateacher,
  19944. wid: b[j].id,
  19945. works: b[j].content,
  19946. sName: b[j].name,
  19947. type: 2,
  19948. ttype: b[j].ttype,
  19949. time: b[j].time,
  19950. score: b[j].score,
  19951. img: b[j].img,
  19952. likesCount: likesCount,
  19953. commentCount: commentCount,
  19954. isLikes: isLikes,
  19955. commentJson: commentJson,
  19956. likeJson: likeJson
  19957. };
  19958. if (this.isGroup) {
  19959. let isGw = 1;
  19960. for (
  19961. var groupI = 0;
  19962. groupI < this.courseGroup.group.length;
  19963. groupI++
  19964. ) {
  19965. let gid = this.courseGroup.group[groupI].id;
  19966. if (
  19967. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19968. -1
  19969. ) {
  19970. isGw = 2;
  19971. this.courseGroup.group[groupI].works[i].push(_works);
  19972. break;
  19973. }
  19974. }
  19975. if (isGw == 1) {
  19976. _worksStudent[i].push(_works);
  19977. }
  19978. } else {
  19979. _worksStudent[i].push(_works);
  19980. }
  19981. _worksStudent2[i].push(_works);
  19982. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19983. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19984. let _works = {
  19985. userid: b[j].userid,
  19986. ateacher: b[j].ateacher,
  19987. wid: b[j].id,
  19988. works: b[j].content,
  19989. sName: b[j].name,
  19990. type: 20,
  19991. ttype: b[j].ttype,
  19992. time: b[j].time,
  19993. score: b[j].score,
  19994. img: b[j].img,
  19995. likesCount: likesCount,
  19996. commentCount: commentCount,
  19997. isLikes: isLikes,
  19998. commentJson: commentJson,
  19999. likeJson: likeJson
  20000. };
  20001. if (this.isGroup) {
  20002. let isGw = 1;
  20003. for (
  20004. var groupI = 0;
  20005. groupI < this.courseGroup.group.length;
  20006. groupI++
  20007. ) {
  20008. let gid = this.courseGroup.group[groupI].id;
  20009. if (
  20010. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20011. -1
  20012. ) {
  20013. isGw = 2;
  20014. this.courseGroup.group[groupI].works[i].push(_works);
  20015. break;
  20016. }
  20017. }
  20018. if (isGw == 1) {
  20019. _worksStudent[i].push(_works);
  20020. }
  20021. } else {
  20022. _worksStudent[i].push(_works);
  20023. }
  20024. _worksStudent2[i].push(_works);
  20025. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20026. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  20027. //问卷
  20028. let _work = {
  20029. userid: b[j].userid,
  20030. ateacher: b[j].ateacher,
  20031. wid: b[j].id,
  20032. works: b[j].content,
  20033. sName: b[j].name,
  20034. type: 2,
  20035. ttype: b[j].ttype,
  20036. time: b[j].time,
  20037. score: b[j].score,
  20038. img: b[j].img,
  20039. likesCount: likesCount,
  20040. commentCount: commentCount,
  20041. isLikes: isLikes,
  20042. commentJson: commentJson,
  20043. likeJson: likeJson
  20044. };
  20045. _worksStudent[i].push(_work);
  20046. _worksStudent2[i].push(_work);
  20047. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20048. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  20049. //选择题
  20050. let _work = {
  20051. userid: b[j].userid,
  20052. ateacher: b[j].ateacher,
  20053. wid: b[j].id,
  20054. works: b[j].content,
  20055. sName: b[j].name,
  20056. type: 8,
  20057. ttype: b[j].ttype,
  20058. time: b[j].time,
  20059. score: b[j].score,
  20060. img: b[j].img,
  20061. likesCount: likesCount,
  20062. commentCount: commentCount,
  20063. isLikes: isLikes,
  20064. commentJson: commentJson,
  20065. likeJson: likeJson
  20066. };
  20067. _worksStudent[i].push(_work);
  20068. _worksStudent2[i].push(_work);
  20069. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20070. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  20071. //选择题
  20072. let _work = {
  20073. userid: b[j].userid,
  20074. ateacher: b[j].ateacher,
  20075. wid: b[j].id,
  20076. works: b[j].content,
  20077. sName: b[j].name,
  20078. type: 9,
  20079. ttype: b[j].ttype,
  20080. time: b[j].time,
  20081. score: b[j].score,
  20082. img: b[j].img,
  20083. likesCount: likesCount,
  20084. commentCount: commentCount,
  20085. isLikes: isLikes,
  20086. commentJson: commentJson,
  20087. likeJson: likeJson
  20088. };
  20089. _worksStudent[i].push(_work);
  20090. _worksStudent2[i].push(_work);
  20091. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20092. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  20093. //选择题
  20094. let _work = {
  20095. userid: b[j].userid,
  20096. ateacher: b[j].ateacher,
  20097. wid: b[j].id,
  20098. works: b[j].content,
  20099. sName: b[j].name,
  20100. type: 10,
  20101. ttype: b[j].ttype,
  20102. time: b[j].time,
  20103. score: b[j].score,
  20104. img: b[j].img,
  20105. likesCount: likesCount,
  20106. commentCount: commentCount,
  20107. isLikes: isLikes,
  20108. commentJson: commentJson,
  20109. likeJson: likeJson
  20110. };
  20111. _worksStudent[i].push(_work);
  20112. _worksStudent2[i].push(_work);
  20113. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20114. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  20115. //选择题
  20116. let _work = {
  20117. userid: b[j].userid,
  20118. ateacher: b[j].ateacher,
  20119. wid: b[j].id,
  20120. works: b[j].content,
  20121. sName: b[j].name,
  20122. type: 13,
  20123. ttype: b[j].ttype,
  20124. time: b[j].time,
  20125. score: b[j].score,
  20126. img: b[j].img,
  20127. likesCount: likesCount,
  20128. commentCount: commentCount,
  20129. isLikes: isLikes,
  20130. commentJson: commentJson,
  20131. likeJson: likeJson
  20132. };
  20133. _worksStudent[i].push(_work);
  20134. _worksStudent2[i].push(_work);
  20135. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20136. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  20137. //选择题
  20138. let _work = {
  20139. userid: b[j].userid,
  20140. ateacher: b[j].ateacher,
  20141. wid: b[j].id,
  20142. works: b[j].content,
  20143. sName: b[j].name,
  20144. type: 16,
  20145. ttype: b[j].ttype,
  20146. time: b[j].time,
  20147. score: b[j].score,
  20148. img: b[j].img,
  20149. likesCount: likesCount,
  20150. commentCount: commentCount,
  20151. isLikes: isLikes,
  20152. commentJson: commentJson,
  20153. aiCode: b[j].aiCode,
  20154. teacherCode: b[j].teacherCode,
  20155. likeJson: likeJson
  20156. };
  20157. _worksStudent[i].push(_work);
  20158. _worksStudent2[i].push(_work);
  20159. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20160. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  20161. //选择题
  20162. let _work = {
  20163. userid: b[j].userid,
  20164. ateacher: b[j].ateacher,
  20165. wid: b[j].id,
  20166. works: b[j].content,
  20167. sName: b[j].name,
  20168. type: 17,
  20169. ttype: b[j].ttype,
  20170. time: b[j].time,
  20171. score: b[j].score,
  20172. img: b[j].img,
  20173. likesCount: likesCount,
  20174. commentCount: commentCount,
  20175. isLikes: isLikes,
  20176. commentJson: commentJson,
  20177. likeJson: likeJson
  20178. };
  20179. _worksStudent[i].push(_work);
  20180. _worksStudent2[i].push(_work);
  20181. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20182. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  20183. //交互视频
  20184. let _work = {
  20185. userid: b[j].userid,
  20186. ateacher: b[j].ateacher,
  20187. wid: b[j].id,
  20188. works: b[j].content,
  20189. sName: b[j].name,
  20190. type: 14,
  20191. ttype: b[j].ttype,
  20192. time: b[j].time,
  20193. score: b[j].score,
  20194. img: b[j].img,
  20195. likesCount: likesCount,
  20196. commentCount: commentCount,
  20197. isLikes: isLikes,
  20198. commentJson: commentJson,
  20199. likeJson: likeJson
  20200. };
  20201. _worksStudent[i].push(_work);
  20202. _worksStudent2[i].push(_work);
  20203. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20204. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  20205. let _gindex = JSON.parse(b[j].content);
  20206. if (
  20207. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  20208. b[j].userid
  20209. ) != -1
  20210. ) {
  20211. let _work = {
  20212. userid: b[j].userid,
  20213. ateacher: b[j].ateacher,
  20214. wid: b[j].id,
  20215. works: _gindex.url,
  20216. sName: b[j].name,
  20217. type: _gindex.type,
  20218. ttype: b[j].ttype,
  20219. time: b[j].time,
  20220. score: b[j].score,
  20221. img: b[j].img,
  20222. likesCount: likesCount,
  20223. commentCount: commentCount,
  20224. isLikes: isLikes,
  20225. commentJson: commentJson,
  20226. likeJson: likeJson
  20227. };
  20228. _worksStudent[i][_gindex.groupIndex].push(_work);
  20229. _worksStudent2[i][_gindex.groupIndex].push(_work);
  20230. }
  20231. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20232. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  20233. let _work = {
  20234. userid: b[j].userid,
  20235. ateacher: b[j].ateacher,
  20236. wid: b[j].id,
  20237. works: b[j].content,
  20238. sName: b[j].name ? b[j].name : b[j].userid,
  20239. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  20240. ttype: b[j].ttype,
  20241. time: b[j].time,
  20242. score: b[j].score,
  20243. img: b[j].img,
  20244. likesCount: likesCount,
  20245. commentCount: commentCount,
  20246. isLikes: isLikes,
  20247. commentJson: commentJson,
  20248. likeJson: likeJson
  20249. };
  20250. _worksStudent[i].push(_work);
  20251. _worksStudent2[i].push(_work);
  20252. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20253. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20254. let _work = {
  20255. userid: b[j].userid,
  20256. ateacher: b[j].ateacher,
  20257. wid: b[j].id,
  20258. works: b[j].content,
  20259. sName: b[j].name ? b[j].name : b[j].userid,
  20260. type: 12,
  20261. ttype: b[j].ttype,
  20262. time: b[j].time,
  20263. score: b[j].score,
  20264. img: b[j].img,
  20265. likesCount: likesCount,
  20266. commentCount: commentCount,
  20267. isLikes: isLikes,
  20268. commentJson: commentJson,
  20269. likeJson: likeJson
  20270. };
  20271. _worksStudent[i].push(_work);
  20272. _worksStudent2[i].push(_work);
  20273. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20274. } else if (
  20275. a[i].tool[0] == 57 &&
  20276. b[j].atool == 57 &&
  20277. b[j].type == 12
  20278. ) {
  20279. let _work = {
  20280. userid: b[j].userid,
  20281. ateacher: b[j].ateacher,
  20282. wid: b[j].id,
  20283. works: b[j].content,
  20284. sName: b[j].name ? b[j].name : b[j].userid,
  20285. type: 12,
  20286. ttype: b[j].ttype,
  20287. time: b[j].time,
  20288. score: b[j].score,
  20289. img: b[j].img,
  20290. likesCount: likesCount,
  20291. commentCount: commentCount,
  20292. isLikes: isLikes,
  20293. commentJson: commentJson,
  20294. likeJson: likeJson
  20295. };
  20296. _worksStudent[i].push(_work);
  20297. _worksStudent2[i].push(_work);
  20298. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20299. } else if (
  20300. a[i].tool[0] == 57 &&
  20301. b[j].atool == 57 &&
  20302. b[j].type == 15
  20303. ) {
  20304. let _work = {
  20305. userid: b[j].userid,
  20306. ateacher: b[j].ateacher,
  20307. wid: b[j].id,
  20308. works: b[j].content,
  20309. sName: b[j].name ? b[j].name : b[j].userid,
  20310. type: 15,
  20311. ttype: b[j].ttype,
  20312. time: b[j].time,
  20313. score: b[j].score,
  20314. img: b[j].img,
  20315. likesCount: likesCount,
  20316. commentCount: commentCount,
  20317. isLikes: isLikes,
  20318. commentJson: commentJson,
  20319. likeJson: likeJson
  20320. };
  20321. _worksStudent[i].push(_work);
  20322. _worksStudent2[i].push(_work);
  20323. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20324. }
  20325. }
  20326. }
  20327. if (_worksStudent[i] && _worksStudent[i].length) {
  20328. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20329. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20330. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20331. var scoreA = parseFloat(jscoreA);
  20332. var scoreB = parseFloat(jscoreB);
  20333. if (scoreA == scoreB) {
  20334. return b.likesCount - a.likesCount;
  20335. }
  20336. return scoreB - scoreA;
  20337. });
  20338. if (this.isGroup) {
  20339. for (
  20340. var groupI = 0;
  20341. groupI < this.courseGroup.group.length;
  20342. groupI++
  20343. ) {
  20344. this.courseGroup.group[groupI].works[
  20345. i
  20346. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20347. a,
  20348. b
  20349. ) {
  20350. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20351. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20352. var scoreA = parseFloat(jscoreA);
  20353. var scoreB = parseFloat(jscoreB);
  20354. if (scoreA == scoreB) {
  20355. return b.likesCount - a.likesCount;
  20356. }
  20357. return scoreB - scoreA;
  20358. });
  20359. }
  20360. }
  20361. }
  20362. }
  20363. this.timeWorkList = _worksStudent2;
  20364. for (var i = 0; i < a.length; i++) {
  20365. for (var j = 0; j < b.length; j++) {
  20366. var data = b[j];
  20367. if (i == b[j].tool) {
  20368. if (data.type == 2 || data.type == 8) {
  20369. for (var z = 0; z < this.checkJson[i].length; z++) {
  20370. this.checkJson[i][z].checkPerent = [];
  20371. this.checkJson[i][z].right = Math.round(
  20372. (this.checkJson[i][z].rightPerson.length /
  20373. parseInt(_worksStudent[i].length)) *
  20374. 100
  20375. );
  20376. let aaaa = this.checkJson[i][z];
  20377. for (
  20378. var k = 0;
  20379. k < this.checkJson[i][z].checkCount.length;
  20380. k++
  20381. ) {
  20382. this.checkJson[i][z].checkPerent.push(
  20383. Math.round(
  20384. (this.checkJson[i][z].checkCount[k] /
  20385. parseInt(_worksStudent[i].length)) *
  20386. 100
  20387. )
  20388. );
  20389. }
  20390. }
  20391. } else if (data.type == 9) {
  20392. for (var z = 0; z < this.checkJson[i].length; z++) {
  20393. this.checkJson[i][z].checkPerent = [];
  20394. this.checkJson[i][z].right = Math.round(
  20395. (this.checkJson[i][z].rightPerson.length /
  20396. this.checkJson[i][z].checkPerson.length) *
  20397. 100
  20398. );
  20399. }
  20400. }
  20401. }
  20402. }
  20403. }
  20404. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20405. this.joinGroup(gindex);
  20406. }
  20407. this.worksStudent = _worksStudent;
  20408. if (
  20409. JSON.stringify(this.worksStudentCopy) !=
  20410. JSON.stringify(this.worksStudent)
  20411. ) {
  20412. console.log("88888999999");
  20413. this.worksStudentCopy = this.worksStudent;
  20414. this.AIloading = [];
  20415. this.loopLoading = [];
  20416. this.worksStudent.forEach((e, index) => {
  20417. this.loopLoading.push({ loading: false });
  20418. this.AIloading.push([]);
  20419. e.forEach(k => {
  20420. this.AIloading[index].push({ loading: false, sco: 0 });
  20421. });
  20422. });
  20423. this.refreshAssembly();
  20424. }
  20425. this.selectWorksStudent();
  20426. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20427. this.$nextTick(() => {
  20428. setTimeout(() => {
  20429. setTimeout(() => {
  20430. this.panToolHeight("tool-" + ci);
  20431. }, 500);
  20432. }, 0);
  20433. });
  20434. }
  20435. })
  20436. .catch(err => {
  20437. console.error(err);
  20438. });
  20439. },
  20440. pngToWhiteBg(file) {
  20441. const _file = file;
  20442. let read = new FileReader();
  20443. read.readAsDataURL(file); // 文件转base64
  20444. return new Promise((resolve, reject) => {
  20445. read.onload = e => {
  20446. let img = new Image();
  20447. img.src = e.target.result;
  20448. img.onload = async () => {
  20449. // 生成canvas
  20450. let canvas = document.createElement("canvas");
  20451. let context = canvas.getContext("2d");
  20452. // 绘制图片到canvas上
  20453. canvas.width = img.width;
  20454. canvas.height = img.height;
  20455. // 在canvas绘制前填充白色背景
  20456. context.fillStyle = "#fff";
  20457. context.fillRect(0, 0, canvas.width, canvas.height);
  20458. context.drawImage(img, 0, 0);
  20459. let base64 = canvas.toDataURL(file["type"], 1);
  20460. let newFile = this.dataUrlToFile(base64, _file);
  20461. resolve(newFile);
  20462. };
  20463. };
  20464. });
  20465. },
  20466. dataUrlToFile(dataurl, file) {
  20467. let arr = dataurl.split(","),
  20468. mime = arr[0].match(/:(.*?);/)[1],
  20469. bstr = atob(arr[1]),
  20470. n = bstr.length,
  20471. u8arr = new Uint8Array(n);
  20472. while (n--) {
  20473. u8arr[n] = bstr.charCodeAt(n);
  20474. }
  20475. // return new Blob([u8arr], { type: mime });
  20476. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20477. type: mime
  20478. });
  20479. },
  20480. async beforeUpload1(event, type, i) {
  20481. // this.$message.success('进入上传')
  20482. var file = "";
  20483. if (type == 5) {
  20484. file = event;
  20485. } else {
  20486. file = event.target.files[0];
  20487. }
  20488. var credentials = {
  20489. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20490. secretAccessKey: "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"
  20491. }; //秘钥形式的登录上传
  20492. window.AWS.config.update(credentials);
  20493. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20494. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20495. var _this = this;
  20496. _this.progress = 0;
  20497. _this.proVisible = true;
  20498. _this.isFinishSize = 0;
  20499. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20500. var b = [
  20501. "DOC",
  20502. "DOCX",
  20503. "DOCM",
  20504. "DOTM",
  20505. "DOTX",
  20506. "PPTX",
  20507. "PPSX",
  20508. "PPT",
  20509. "PPS",
  20510. "PPTM",
  20511. "POTM",
  20512. "PPAM",
  20513. "POTX",
  20514. "PPSM"
  20515. ];
  20516. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20517. var photoA = [
  20518. "BMP",
  20519. "GIF",
  20520. "PNG",
  20521. "JPEG",
  20522. "JPEG",
  20523. "JPG",
  20524. "TIF",
  20525. "PCX",
  20526. "TGA",
  20527. "EXIF",
  20528. "FPX",
  20529. "SVG",
  20530. "APNG"
  20531. ];
  20532. // if (
  20533. // b.indexOf(
  20534. // file.name
  20535. // .split(".")
  20536. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20537. // ) != -1
  20538. // ) {
  20539. // if (file.size / 1024 / 1024 > 10) {
  20540. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20541. // return;
  20542. // }
  20543. // } else if (
  20544. // excelA.indexOf(
  20545. // file.name
  20546. // .split(".")
  20547. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20548. // ) != "-1"
  20549. // ) {
  20550. // if (file.size / 1024 / 1024 > 5) {
  20551. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20552. // return;
  20553. // }
  20554. // }
  20555. if (
  20556. photoA.indexOf(
  20557. file.name
  20558. .split(".")
  20559. [file.name.split(".").length - 1].toLocaleUpperCase()
  20560. ) != -1 &&
  20561. type != 4
  20562. ) {
  20563. // const blob = await imageConversion.compress(file, 0.8)
  20564. file = await this.pngToWhiteBg(file);
  20565. const blob = await imageConversion.compressAccurately(file, 256);
  20566. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20567. file = new File([blob], file.name, { type: file.type });
  20568. }
  20569. if (file) {
  20570. var params = {
  20571. Key:
  20572. file.name.split(".")[0] +
  20573. new Date().getTime() +
  20574. "." +
  20575. file.name.split(".")[file.name.split(".").length - 1],
  20576. ContentType: file.type,
  20577. Body: file,
  20578. "Access-Control-Allow-Credentials": "*",
  20579. ACL: "public-read"
  20580. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20581. var options = {
  20582. // partSize: 2048 * 1024 * 1024,
  20583. partSize: 1024 * 1024 * 1024,
  20584. queueSize: 2,
  20585. leavePartsOnError: true
  20586. };
  20587. bucket
  20588. .upload(params, options)
  20589. .on("httpUploadProgress", function(evt) {
  20590. //这里可以写进度条
  20591. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20592. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20593. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20594. })
  20595. .send(function(err, data) {
  20596. _this.progress = 100;
  20597. _this.isFinishSize = _this.isAllSize;
  20598. setTimeout(() => {
  20599. _this.proVisible = false;
  20600. }, 1000);
  20601. if (err) {
  20602. var a = _this.$refs.upload1.uploadFiles;
  20603. a.splice(a.length - 1, a.length);
  20604. _this.$message.error("上传失败");
  20605. } else {
  20606. // _this.$message.success('上传成功')
  20607. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20608. var c = [
  20609. "AVI",
  20610. "NAVI",
  20611. "MPEG",
  20612. "ASF",
  20613. "MOV",
  20614. "WMV",
  20615. "3GP",
  20616. "RM",
  20617. "RMVB",
  20618. "FLV",
  20619. "F4V",
  20620. "H.264",
  20621. "H.265",
  20622. "REAL VIDEO",
  20623. "MKV",
  20624. "WebM",
  20625. "HDDVD",
  20626. "MP4",
  20627. "MPG",
  20628. "M4V",
  20629. "MGV",
  20630. "OGV",
  20631. "QTM",
  20632. "STR",
  20633. "AMC",
  20634. "DVX",
  20635. "EVO",
  20636. "DAT",
  20637. "OGG",
  20638. "OGM"
  20639. ];
  20640. if (type == 1) {
  20641. _this.studyJuri[0].cover.push({
  20642. name: file.name,
  20643. url: data.Location,
  20644. uid: file.uid
  20645. });
  20646. if (
  20647. c.indexOf(
  20648. _this.studyJuri[0].cover[0].url
  20649. .split(".")
  20650. [
  20651. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20652. ].toLocaleUpperCase()
  20653. ) != -1
  20654. ) {
  20655. _this.fileType = 2;
  20656. } else if (
  20657. b.indexOf(
  20658. _this.studyJuri[0].cover[0].url
  20659. .split(".")
  20660. [
  20661. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20662. ].toLocaleUpperCase()
  20663. ) != -1
  20664. ) {
  20665. _this.fileType = 1;
  20666. } else if (
  20667. photoA.indexOf(
  20668. _this.studyJuri[0].cover[0].url
  20669. .split(".")
  20670. [
  20671. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20672. ].toLocaleUpperCase()
  20673. ) != -1
  20674. ) {
  20675. _this.fileType = 0;
  20676. } else {
  20677. _this.fileType = 3;
  20678. }
  20679. _this.imgChange(null, null, type);
  20680. } else if (type == 2) {
  20681. _this.upToolImg = data.Location;
  20682. _this.imgChange(null, null, type);
  20683. _this.addCourseWorks(i);
  20684. } else if (type == 4) {
  20685. _this.addPz("3", data.Location);
  20686. } else if (type == 5) {
  20687. _this.addImgDrawImG(data.Location);
  20688. } else if (type == 6) {
  20689. var _ftype = 1;
  20690. if (
  20691. c.indexOf(
  20692. data.Location.split(".")[
  20693. data.Location.split(".").length - 1
  20694. ].toLocaleUpperCase()
  20695. ) != -1
  20696. ) {
  20697. _ftype = 5;
  20698. } else if (
  20699. b.indexOf(
  20700. data.Location.split(".")[
  20701. data.Location.split(".").length - 1
  20702. ].toLocaleUpperCase()
  20703. ) != -1
  20704. ) {
  20705. _ftype = 4;
  20706. } else {
  20707. _ftype = 1;
  20708. }
  20709. _this.plworkFile.push({
  20710. name: file.name,
  20711. url: data.Location,
  20712. uid: file.uid,
  20713. fileType: _ftype,
  20714. username:
  20715. _this.plworkFile.length > 10
  20716. ? _this.plworkFile.length + 1
  20717. : "0" + (_this.plworkFile.length + 1)
  20718. });
  20719. } else if (type == 7) {
  20720. _this.addCourseWorksGong(i, data.Location, 32);
  20721. } else if (type == 8) {
  20722. _this.addCourseWorksGong(i, data.Location, 57);
  20723. }
  20724. _this.imgChange(null, null, type);
  20725. console.log(data.Location);
  20726. // _this.$message.success('上传成功'+data.Location)
  20727. }
  20728. });
  20729. }
  20730. },
  20731. async beforeUpload3(event, type, i) {
  20732. // this.$message.success('进入上传')
  20733. let file = "";
  20734. let cfindex2 = 0;
  20735. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20736. file = event.target.files[cfindex];
  20737. var credentials = {
  20738. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20739. secretAccessKey: "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"
  20740. }; //秘钥形式的登录上传
  20741. window.AWS.config.update(credentials);
  20742. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20743. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20744. var _this = this;
  20745. // _this.progress = 0;
  20746. _this.proVisible2 = true;
  20747. var b = [
  20748. "DOC",
  20749. "DOCX",
  20750. "DOCM",
  20751. "DOTM",
  20752. "DOTX",
  20753. "PPTX",
  20754. "PPSX",
  20755. "PPT",
  20756. "PPS",
  20757. "PPTM",
  20758. "POTM",
  20759. "PPAM",
  20760. "POTX",
  20761. "PPSM"
  20762. ];
  20763. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20764. var photoA = [
  20765. "BMP",
  20766. "GIF",
  20767. "PNG",
  20768. "JPEG",
  20769. "JPG",
  20770. "TIF",
  20771. "PCX",
  20772. "TGA",
  20773. "EXIF",
  20774. "FPX",
  20775. "SVG",
  20776. "APNG"
  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 * 80) / evt.total);
  20816. })
  20817. .send(function(err, data) {
  20818. // _this.progress = 100;
  20819. cfindex2++;
  20820. setTimeout(() => {
  20821. if (
  20822. cfindex2 == event.target.files.length - 1 ||
  20823. cfindex2 > event.target.files.length - 1
  20824. ) {
  20825. _this.proVisible2 = false;
  20826. }
  20827. }, 1000);
  20828. if (err) {
  20829. var a = _this.$refs.upload1.uploadFiles;
  20830. a.splice(a.length - 1, a.length);
  20831. _this.$message.error("上传失败");
  20832. } else {
  20833. // _this.$message.success('上传成功')
  20834. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20835. var c = [
  20836. "AVI",
  20837. "NAVI",
  20838. "MPEG",
  20839. "ASF",
  20840. "MOV",
  20841. "WMV",
  20842. "3GP",
  20843. "RM",
  20844. "RMVB",
  20845. "FLV",
  20846. "F4V",
  20847. "H.264",
  20848. "H.265",
  20849. "REAL VIDEO",
  20850. "MKV",
  20851. "WebM",
  20852. "HDDVD",
  20853. "MP4",
  20854. "MPG",
  20855. "M4V",
  20856. "MGV",
  20857. "OGV",
  20858. "QTM",
  20859. "STR",
  20860. "AMC",
  20861. "DVX",
  20862. "EVO",
  20863. "DAT",
  20864. "OGG",
  20865. "OGM"
  20866. ];
  20867. if (type == 1) {
  20868. _this.studyJuri[0].cover.push({
  20869. name: file.name,
  20870. url: data.Location,
  20871. uid: file.uid
  20872. });
  20873. if (
  20874. c.indexOf(
  20875. _this.studyJuri[0].cover[0].url
  20876. .split(".")
  20877. [
  20878. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20879. ].toLocaleUpperCase()
  20880. ) != -1
  20881. ) {
  20882. _this.fileType = 2;
  20883. } else if (
  20884. b.indexOf(
  20885. _this.studyJuri[0].cover[0].url
  20886. .split(".")
  20887. [
  20888. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20889. ].toLocaleUpperCase()
  20890. ) != -1
  20891. ) {
  20892. _this.fileType = 1;
  20893. } else {
  20894. _this.fileType = 0;
  20895. }
  20896. _this.imgChange(null, null, type);
  20897. } else if (type == 2) {
  20898. _this.upToolImg = data.Location;
  20899. _this.imgChange(null, null, type);
  20900. _this.addCourseWorks(i);
  20901. } else if (type == 4) {
  20902. _this.addPz("3", data.Location);
  20903. } else if (type == 5) {
  20904. _this.addImgDrawImG(data.Location);
  20905. } else if (type == 6) {
  20906. var _ftype = 1;
  20907. if (
  20908. c.indexOf(
  20909. data.Location.split(".")[
  20910. data.Location.split(".").length - 1
  20911. ].toLocaleUpperCase()
  20912. ) != -1
  20913. ) {
  20914. _ftype = 5;
  20915. } else if (
  20916. b.indexOf(
  20917. data.Location.split(".")[
  20918. data.Location.split(".").length - 1
  20919. ].toLocaleUpperCase()
  20920. ) != -1
  20921. ) {
  20922. _ftype = 4;
  20923. } else {
  20924. _ftype = 1;
  20925. }
  20926. _this.plworkFile.push({
  20927. name: file.name,
  20928. url: data.Location,
  20929. uid: file.uid,
  20930. fileType: _ftype,
  20931. username:
  20932. _this.plworkFile.length + 1 > 9
  20933. ? _this.plworkFile.length + 1
  20934. : "0" + (_this.plworkFile.length + 1)
  20935. });
  20936. }
  20937. _this.imgChange(null, null, type);
  20938. console.log(data.Location);
  20939. // _this.$message.success('上传成功'+data.Location)
  20940. }
  20941. });
  20942. }
  20943. }
  20944. },
  20945. beforeUpload2(event, type) {
  20946. var file = event.target.files[0];
  20947. var credentials = {
  20948. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20949. secretAccessKey: "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"
  20950. }; //秘钥形式的登录上传
  20951. window.AWS.config.update(credentials);
  20952. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20953. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20954. var _this = this;
  20955. _this.progress = 0;
  20956. _this.proVisible = true;
  20957. if (file) {
  20958. var params = {
  20959. Key:
  20960. file.name.split(".")[0] +
  20961. new Date().getTime() +
  20962. "." +
  20963. file.name.split(".")[file.name.split(".").length - 1],
  20964. ContentType: file.type,
  20965. Body: file,
  20966. "Access-Control-Allow-Credentials": "*",
  20967. ACL: "public-read"
  20968. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20969. var options = {
  20970. partSize: 2048 * 1024 * 1024,
  20971. queueSize: 2,
  20972. leavePartsOnError: true
  20973. };
  20974. bucket
  20975. .upload(params, options)
  20976. .on("httpUploadProgress", function(evt) {
  20977. //这里可以写进度条
  20978. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20979. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20980. })
  20981. .send(function(err, data) {
  20982. _this.progress = 100;
  20983. setTimeout(() => {
  20984. _this.proVisible = false;
  20985. }, 1000);
  20986. if (err) {
  20987. var a = _this.$refs.upload1.uploadFiles;
  20988. a.splice(a.length - 1, a.length);
  20989. _this.$message.error("上传失败");
  20990. } else {
  20991. if (type == 2) {
  20992. _this.studyJuri[0].upVedio.push({
  20993. name: file.name,
  20994. url: data.Location,
  20995. uid: file.uid
  20996. });
  20997. _this.imgChange(null, null, type);
  20998. } else if (type == 3) {
  20999. _this.studyJuri[0].upFile.push({
  21000. name: file.name,
  21001. url: data.Location,
  21002. uid: file.uid
  21003. });
  21004. _this.imgChange(null, null, type);
  21005. }
  21006. console.log(data.Location);
  21007. }
  21008. });
  21009. }
  21010. },
  21011. allScrell() {
  21012. window.topU.postMessage({ allScreen: this.screenType }, "*");
  21013. },
  21014. // 0上一步 1下一步
  21015. nextOrpreSteps(t) {
  21016. if (this.IsFollow && this.tType == 2) {
  21017. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21018. return;
  21019. }
  21020. var b = this.chapInfoList.length - 1;
  21021. if (t == 0) {
  21022. if (this.courseType == 0) {
  21023. if (this.taskCount == 0) {
  21024. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  21025. if (this.IsLookOpen) {
  21026. if (
  21027. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  21028. ) {
  21029. if (
  21030. this.courseDetail.userid != this.userid &&
  21031. (!this.courseDetail.course_teacher ||
  21032. (this.courseDetail.course_teacher &&
  21033. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21034. -1))
  21035. ) {
  21036. this.$message.error("任务未解锁");
  21037. } else {
  21038. this.$message.error("上一任务未解锁");
  21039. }
  21040. return;
  21041. }
  21042. }
  21043. this.navList[this.courseType].isOpen = false;
  21044. this.courseType = b;
  21045. this.taskCount =
  21046. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21047. .length - 1;
  21048. this.navList[this.courseType].isOpen = true;
  21049. } else {
  21050. this.taskCount--;
  21051. }
  21052. } else {
  21053. if (this.taskCount == 0) {
  21054. this.navList[this.courseType].isOpen = false;
  21055. this.courseType--;
  21056. this.taskCount =
  21057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21058. .length - 1;
  21059. this.navList[this.courseType].isOpen = true;
  21060. } else {
  21061. this.taskCount--;
  21062. }
  21063. }
  21064. } else {
  21065. if (this.courseType == b) {
  21066. if (
  21067. this.taskCount ==
  21068. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21069. 1
  21070. ) {
  21071. this.navList[this.courseType].isOpen = false;
  21072. this.courseType = 0;
  21073. this.taskCount = 0;
  21074. this.navList[this.courseType].isOpen = true;
  21075. } else {
  21076. var bbb = parseInt(this.taskCount) + 1;
  21077. if (
  21078. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21079. .isLook &&
  21080. this.courseDetail.userid != this.userid &&
  21081. (!this.courseDetail.course_teacher ||
  21082. (this.courseDetail.course_teacher &&
  21083. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21084. -1)) &&
  21085. this.IsLookOpen
  21086. ) {
  21087. this.$message.error("任务未解锁");
  21088. return;
  21089. }
  21090. this.taskCount++;
  21091. if (this.IsLookOpen) {
  21092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21093. this.taskCount
  21094. ].isLook = true;
  21095. this.addCourseState(3);
  21096. }
  21097. }
  21098. } else {
  21099. if (
  21100. this.taskCount ==
  21101. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21102. 1
  21103. ) {
  21104. var bbb = parseInt(this.courseType) + 1;
  21105. if (
  21106. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  21107. this.courseDetail.userid != this.userid &&
  21108. (!this.courseDetail.course_teacher ||
  21109. (this.courseDetail.course_teacher &&
  21110. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21111. -1)) &&
  21112. this.IsLookOpen
  21113. ) {
  21114. this.$message.error("任务未解锁");
  21115. return;
  21116. }
  21117. this.navList[this.courseType].isOpen = false;
  21118. this.courseType++;
  21119. this.taskCount = 0;
  21120. this.navList[this.courseType].isOpen = true;
  21121. } else {
  21122. var bbb = parseInt(this.taskCount) + 1;
  21123. if (
  21124. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21125. .isLook &&
  21126. this.courseDetail.userid != this.userid &&
  21127. (!this.courseDetail.course_teacher ||
  21128. (this.courseDetail.course_teacher &&
  21129. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21130. -1)) &&
  21131. this.IsLookOpen
  21132. ) {
  21133. this.$message.error("任务未解锁");
  21134. return;
  21135. }
  21136. this.taskCount++;
  21137. }
  21138. if (this.IsLookOpen) {
  21139. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21140. this.taskCount
  21141. ].isLook = true;
  21142. this.addCourseState(3);
  21143. }
  21144. }
  21145. // if (
  21146. // this.taskCount ==
  21147. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  21148. // ) {
  21149. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  21150. // } else {
  21151. // this.taskCount++;
  21152. // }
  21153. }
  21154. document.scrollingElement.scrollTop = 0;
  21155. this.showType = 7;
  21156. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21157. // if (this.vedio[this.taskCount].length > 0) {
  21158. // var a =
  21159. // document.getElementsByClassName("box_course")[this.taskCount]
  21160. // .offsetHeight;
  21161. // document.getElementsByClassName("vedioList")[
  21162. // this.taskCount
  21163. // ].style.height = a + "px";
  21164. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  21165. // a - 40 + "px";
  21166. // }
  21167. this.isNoHomeWork = false;
  21168. (this.studyJuri = [
  21169. {
  21170. content: "",
  21171. cover: [],
  21172. upVedio: [],
  21173. upFile: []
  21174. }
  21175. ]),
  21176. (this.radio = []);
  21177. this.isClickNav = "";
  21178. this.selectPz();
  21179. this.getHomeWork();
  21180. this.getCourseDetail(2);
  21181. this.$forceUpdate();
  21182. },
  21183. openTask(s, n, i) {
  21184. this.refreshAssembly();
  21185. if (this.IsFollow && this.tType == 2) {
  21186. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21187. return;
  21188. }
  21189. if (this.IsLookOpen &&
  21190. this.courseDetail.userid != this.userid &&
  21191. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  21192. if (
  21193. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  21194. this.courseDetail.userid != this.userid &&
  21195. (!this.courseDetail.course_teacher ||
  21196. (this.courseDetail.course_teacher &&
  21197. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  21198. ) {
  21199. this.$message.error("任务未解锁");
  21200. return;
  21201. }
  21202. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  21203. if (
  21204. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  21205. .isLook
  21206. ) {
  21207. this.$message.error("上一任务未解锁");
  21208. return;
  21209. }
  21210. } else if (s > this.courseType) {
  21211. if (n > 0) {
  21212. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  21213. this.$message.error("上一任务未解锁");
  21214. return;
  21215. }
  21216. } else {
  21217. if (
  21218. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  21219. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  21220. ].isLook
  21221. ) {
  21222. this.$message.error("上一任务未解锁");
  21223. return;
  21224. }
  21225. }
  21226. }
  21227. }
  21228. if (this.navList[s].task[n].isOpen == true) {
  21229. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  21230. return;
  21231. }
  21232. let flag = this.courseType == s;
  21233. this.courseType = s;
  21234. this.navId = i;
  21235. this.taskCount = n;
  21236. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  21237. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  21238. this.courseType
  21239. ].task[this.taskCount].isOpen;
  21240. if (this.IsLookOpen) {
  21241. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21242. this.taskCount
  21243. ].isLook = true;
  21244. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  21245. this.addCourseState(3,yym);
  21246. }
  21247. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  21248. this.isCloseList[ci].isClose = 0;
  21249. this.isCloseList[ci].isCloseBoolean = false;
  21250. this.$nextTick(() => {
  21251. setTimeout(() => {
  21252. setTimeout(() => {
  21253. this.panToolHeight("tool-" + ci);
  21254. }, 0);
  21255. }, 0);
  21256. });
  21257. }
  21258. this.showType = 7;
  21259. this.isNoHomeWork = false;
  21260. (this.studyJuri = [
  21261. {
  21262. content: "",
  21263. cover: [],
  21264. upVedio: [],
  21265. upFile: []
  21266. }
  21267. ]),
  21268. (this.radio = []);
  21269. document.scrollingElement.scrollTop = 0;
  21270. // setTimeout(() => {
  21271. // let a = document.getElementById(i);
  21272. // if (a.offsetTop - 110 == 0) {
  21273. // window.scrollTo(0, 0);
  21274. // } else {
  21275. // window.scrollTo(0, a.offsetTop);
  21276. // }
  21277. // }, 0);
  21278. for (var z = 0; z < this.navList.length; z++) {
  21279. for (var q = 0; q < this.navList[z].task.length; q++) {
  21280. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21281. this.navList[z].task[q].tool[w].isTool = false;
  21282. }
  21283. }
  21284. }
  21285. this.selectPz();
  21286. this.getHomeWork();
  21287. this.getCourseDetail(2);
  21288. if (flag) {
  21289. this.insertMemorandum(
  21290. `进入<span class="variable">任务${n + 1}${
  21291. this.navList[s].task[n].taskName
  21292. ? ":" + this.navList[s].task[n].taskName
  21293. : ""
  21294. }</span>`
  21295. );
  21296. } else {
  21297. this.insertMemorandum(
  21298. `进入<span class="variable">阶段${s + 1}${
  21299. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  21300. }</span>→<span class="variable">任务${n + 1}${
  21301. this.navList[s].task[n].taskName
  21302. ? ":" + this.navList[s].task[n].taskName
  21303. : ""
  21304. }</span>`
  21305. );
  21306. }
  21307. },
  21308. get(i) {
  21309. if (this.IsFollow && this.tType == 2) {
  21310. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21311. return;
  21312. }
  21313. // for(var k=0;k<this.navList.length;k++){
  21314. // this.navList[k].isOpen = false;
  21315. // }
  21316. // this.navList[i].isOpen = true;
  21317. this.navList[i].isOpen = !this.navList[i].isOpen;
  21318. if (this.navList[i].isOpen) {
  21319. this.openTask(i, 0, i + "-0");
  21320. }
  21321. },
  21322. addQuestion() {
  21323. this.answerList.push({
  21324. answerTitle: this.answerQ,
  21325. answer: this.questionAnswer
  21326. });
  21327. let params = [
  21328. {
  21329. uid: this.userid,
  21330. cid: this.id,
  21331. stage: this.courseType,
  21332. task: this.taskCount,
  21333. tool: this.toolindex,
  21334. content: JSON.stringify(this.answerList),
  21335. type: 3
  21336. }
  21337. ];
  21338. this.ajax
  21339. .post(this.$store.state.api + "addCourseWorks", params)
  21340. .then(res => {
  21341. this.$message({
  21342. message: "提交成功",
  21343. type: "success"
  21344. });
  21345. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21346. this.answerList = [];
  21347. this.answerDialogVisible = false;
  21348. this.selectStudent();
  21349. this.selectSWorks();
  21350. this.selectSLook();
  21351. })
  21352. .catch(err => {
  21353. this.$message.error("提交失败");
  21354. console.error(err);
  21355. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21356. });
  21357. },
  21358. addQuestionTeacher() {
  21359. this.answerList.push({
  21360. answerTitle: this.answerQ,
  21361. answer: this.questionAnswer
  21362. });
  21363. let params = [
  21364. {
  21365. uid: this.sStudent.userid,
  21366. cid: this.id,
  21367. stage: this.courseType,
  21368. task: this.taskCount,
  21369. tool: this.toolindex,
  21370. content: JSON.stringify(this.answerList),
  21371. type: 3,
  21372. ateacher: this.userid
  21373. }
  21374. ];
  21375. this.ajax
  21376. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21377. .then(res => {
  21378. this.$message({
  21379. message: "提交成功",
  21380. type: "success"
  21381. });
  21382. this.answerList = [];
  21383. this.questionAnswer = "";
  21384. this.answerDialogVisibleTeacher = false;
  21385. this.selectStudent();
  21386. this.selectSWorks();
  21387. this.selectSLook();
  21388. })
  21389. .catch(err => {
  21390. this.$message.error("提交失败");
  21391. console.error(err);
  21392. });
  21393. },
  21394. refreshCourse() {
  21395. // window.location.reload();
  21396. this.navList = [];
  21397. this.getCourseDetail(1);
  21398. },
  21399. getCourseDetail(type, gindex) {
  21400. let loading;
  21401. if (type != 2) {
  21402. loading = this.$loading.service({
  21403. background: "rgba(255, 255, 255, 0.7)",
  21404. target: document.querySelector(".student_table")
  21405. });
  21406. }
  21407. this.downLoading = false;
  21408. // this.navList[0].isOpen = false;
  21409. // this.navList[this.courseType].isOpen = true;
  21410. // this.courseType = this.courseTypeLine;
  21411. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21412. let params = {
  21413. courseId: this.id
  21414. };
  21415. this.ajax
  21416. .get(this.$store.state.api + "selectCourseDetail3", params)
  21417. .then(res => {
  21418. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21419. if (type != 2) {
  21420. loading.close();
  21421. if (
  21422. this.courseType >
  21423. JSON.parse(res.data[0][0].chapters).length - 1
  21424. ) {
  21425. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21426. }
  21427. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21428. .chapterInfo[0].taskJson;
  21429. var b = [
  21430. "AVI",
  21431. "NAVI",
  21432. "MPEG",
  21433. "ASF",
  21434. "MOV",
  21435. "WMV",
  21436. "3GP",
  21437. "RM",
  21438. "RMVB",
  21439. "FLV",
  21440. "F4V",
  21441. "H.264",
  21442. "H.265",
  21443. "REAL VIDEO",
  21444. "MKV",
  21445. "WebM",
  21446. "HDDVD",
  21447. "MP4",
  21448. "MPG",
  21449. "M4V",
  21450. "MGV",
  21451. "OGV",
  21452. "QTM",
  21453. "STR",
  21454. "AMC",
  21455. "DVX",
  21456. "EVO",
  21457. "DAT",
  21458. "OGG",
  21459. "OGM",
  21460. "MP3"
  21461. ];
  21462. let _chapterData = [];
  21463. for (var i = 0; i < a.length; i++) {
  21464. var c = a[i].chapterData;
  21465. this.vedio[i] = [];
  21466. this.textList[i] = [];
  21467. this.lineList[i] = [];
  21468. this.chapToolList[i] = [];
  21469. this.file[i] = [];
  21470. this.fileC[i] = [];
  21471. _chapterData[i] = c.filter(el => {
  21472. return el.type != 12;
  21473. });
  21474. this.fileC[i] = c.filter(el => {
  21475. return el.type == 12;
  21476. });
  21477. if (this.tType == 2) {
  21478. if (this.fileC[i].length) {
  21479. let yym1 = this.fileC[i].filter(e=>{
  21480. if(!converter(e.name).includes(converter("教案"))){
  21481. return e
  21482. }
  21483. })
  21484. this.fileC[i] = yym1
  21485. }
  21486. }
  21487. // else if (c[j].type == 12) {
  21488. // this.fileC[i].push(c[j]);
  21489. // }
  21490. for (var j = 0; j < c.length; j++) {
  21491. if (c[j].type == 7) {
  21492. this.chapToolList[i].push(c[j]);
  21493. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21494. this.lineList[i].push(c[j]);
  21495. } else if (c[j].type == 6) {
  21496. this.textList[i].push(c[j]);
  21497. } else {
  21498. if (
  21499. b.indexOf(
  21500. c[j].url
  21501. .split(".")
  21502. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21503. ) != -1
  21504. ) {
  21505. this.vedio[i].push(c[j]);
  21506. } else {
  21507. this.file[i].push(c[j]);
  21508. }
  21509. }
  21510. }
  21511. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21512. d.sources[0].src =
  21513. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21514. this.playerO[i] = d;
  21515. }
  21516. this.courseDetail = res.data[0][0];
  21517. if(this.tType == 2){
  21518. this.tcid = this.arrayToArray(
  21519. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21520. this.classId ? this.classId.split(",") : []
  21521. ).join(",");
  21522. }else{
  21523. this.tcid = this.arrayToArray(
  21524. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21525. this.tcid2 ? this.tcid2.split(",") : []
  21526. ).join(",");
  21527. }
  21528. this.evalua = res.data[0][0].evaId;
  21529. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21530. this.courseType
  21531. ];
  21532. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21533. if (this.tcid && res.data[1].length) {
  21534. let _inviteA = [];
  21535. for (var ik = 0; ik < res.data[1].length; ik++) {
  21536. _inviteA.push({
  21537. cid: res.data[1][ik].classid,
  21538. ic: res.data[1][ik].code
  21539. });
  21540. }
  21541. for (var ik = 0; ik < _inviteA.length; ik++) {
  21542. if (
  21543. this.arrayToArray(
  21544. _inviteA[ik].cid.split(","),
  21545. this.tcid.split(",")
  21546. ).length
  21547. ) {
  21548. this.inviteCode = _inviteA[ik].ic;
  21549. break;
  21550. }
  21551. }
  21552. }
  21553. for (var l = 0; l < this.chapInfoList.length; l++) {
  21554. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21555. for (var m = 0; m < w.length; m++) {
  21556. w[m].id = l + "-" + m;
  21557. }
  21558. }
  21559. if (
  21560. _chapterData[this.taskCount].length &&
  21561. _chapterData[this.taskCount][0].type == 2
  21562. ) {
  21563. this.showType = 0;
  21564. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21565. } else {
  21566. if (_chapterData[this.taskCount].length > 0) {
  21567. let _url = _chapterData[this.taskCount][0].url;
  21568. if (
  21569. _chapterData[this.taskCount][0].type == 8 ||
  21570. _chapterData[this.taskCount][0].type == 14 ||
  21571. _chapterData[this.taskCount][0].type == 15
  21572. ) {
  21573. this.showType = 2;
  21574. if (
  21575. _url.indexOf("https://") == -1 &&
  21576. _url.indexOf("http://") == -1
  21577. ) {
  21578. _url = "https://" + _url;
  21579. }
  21580. this.pptImgUrl1 = _url;
  21581. } else if (_chapterData[this.taskCount][0].type == 3) {
  21582. if (
  21583. _url
  21584. .split(".")
  21585. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21586. ) {
  21587. this.showType = 3;
  21588. this.pptImgUrl1 = _url;
  21589. } else if (
  21590. this.isAssetTypeAnImage(
  21591. _url
  21592. .split(".")
  21593. [_url.split(".").length - 1].toLocaleLowerCase()
  21594. )
  21595. ) {
  21596. this.showType = 4;
  21597. this.pptImgUrl1 = _url;
  21598. } else {
  21599. this.showType = 2;
  21600. this.pptImgUrl1 =
  21601. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21602. encodeURIComponent(_url);
  21603. }
  21604. } else if (_chapterData[this.taskCount][0].type == 13) {
  21605. this.showType = 4;
  21606. this.pptImgUrl1 = _url;
  21607. } else if (_chapterData[this.taskCount][0].type == 6) {
  21608. this.showType = 1;
  21609. this.text = this.textList[this.taskCount][0];
  21610. }
  21611. }
  21612. }
  21613. this.isClickNav = 0;
  21614. if (
  21615. !_chapterData[this.taskCount].length ||
  21616. _chapterData[this.taskCount][0].type == 12
  21617. ) {
  21618. this.isClickNav = "";
  21619. this.showType = "";
  21620. }
  21621. if (this.tType == 2) {
  21622. _chapterData.forEach((e,i)=>{
  21623. if (e.length) {
  21624. let yym = e.filter(k=>{
  21625. if(!converter(k.name).includes(converter("教案"))){
  21626. return k
  21627. }
  21628. })
  21629. _chapterData[i] = yym
  21630. }
  21631. })
  21632. }
  21633. this.vChapterData = _chapterData;
  21634. } else {
  21635. this.showType = 0;
  21636. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21637. .chapterInfo[0].taskJson;
  21638. var b = [
  21639. "AVI",
  21640. "NAVI",
  21641. "MPEG",
  21642. "ASF",
  21643. "MOV",
  21644. "WMV",
  21645. "3GP",
  21646. "RM",
  21647. "RMVB",
  21648. "FLV",
  21649. "F4V",
  21650. "H.264",
  21651. "H.265",
  21652. "REAL VIDEO",
  21653. "MKV",
  21654. "WebM",
  21655. "HDDVD",
  21656. "MP4",
  21657. "MPG",
  21658. "M4V",
  21659. "MGV",
  21660. "OGV",
  21661. "QTM",
  21662. "STR",
  21663. "AMC",
  21664. "DVX",
  21665. "EVO",
  21666. "DAT",
  21667. "OGG",
  21668. "OGM",
  21669. "MP3"
  21670. ];
  21671. let _chapterData = [];
  21672. for (var i = 0; i < a.length; i++) {
  21673. var c = a[i].chapterData;
  21674. this.vedio[i] = [];
  21675. this.textList[i] = [];
  21676. this.lineList[i] = [];
  21677. this.chapToolList[i] = [];
  21678. this.file[i] = [];
  21679. this.fileC[i] = [];
  21680. _chapterData[i] = c.filter(el => {
  21681. return el.type != 12;
  21682. });
  21683. this.fileC[i] = c.filter(el => {
  21684. return el.type == 12;
  21685. });
  21686. if (this.tType == 2) {
  21687. if (this.fileC[i].length) {
  21688. let yym1 = this.fileC[i].filter(e=>{
  21689. if(!converter(e.name).includes(converter("教案"))){
  21690. return e
  21691. }
  21692. })
  21693. this.fileC[i] = yym1
  21694. }
  21695. }
  21696. for (var j = 0; j < c.length; j++) {
  21697. if (c[j].type == 7) {
  21698. this.chapToolList[i].push(c[j]);
  21699. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21700. this.lineList[i].push(c[j]);
  21701. } else if (c[j].type == 6) {
  21702. this.textList[i].push(c[j]);
  21703. } else {
  21704. if (
  21705. b.indexOf(
  21706. c[j].url
  21707. .split(".")
  21708. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21709. ) != -1
  21710. ) {
  21711. this.vedio[i].push(c[j]);
  21712. } else {
  21713. this.file[i].push(c[j]);
  21714. }
  21715. }
  21716. }
  21717. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21718. d.sources[0].src =
  21719. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21720. this.playerO[i] = d;
  21721. }
  21722. if (
  21723. _chapterData[this.taskCount].length &&
  21724. _chapterData[this.taskCount][0].type == 2
  21725. ) {
  21726. this.showType = 0;
  21727. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21728. } else {
  21729. if (_chapterData[this.taskCount].length > 0) {
  21730. let _url = _chapterData[this.taskCount][0].url;
  21731. if (
  21732. _chapterData[this.taskCount][0].type == 8 ||
  21733. _chapterData[this.taskCount][0].type == 14 ||
  21734. _chapterData[this.taskCount][0].type == 15
  21735. ) {
  21736. this.showType = 2;
  21737. if (
  21738. _url.indexOf("https://") == -1 &&
  21739. _url.indexOf("http://") == -1
  21740. ) {
  21741. _url = "https://" + _url;
  21742. }
  21743. this.pptImgUrl1 = _url;
  21744. } else if (_chapterData[this.taskCount][0].type == 3) {
  21745. if (
  21746. _url
  21747. .split(".")
  21748. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21749. ) {
  21750. this.showType = 3;
  21751. this.pptImgUrl1 = _url;
  21752. } else if (
  21753. this.isAssetTypeAnImage(
  21754. _url
  21755. .split(".")
  21756. [_url.split(".").length - 1].toLocaleLowerCase()
  21757. )
  21758. ) {
  21759. this.showType = 4;
  21760. this.pptImgUrl1 = _url;
  21761. } else {
  21762. this.showType = 2;
  21763. this.pptImgUrl1 =
  21764. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21765. encodeURIComponent(_url);
  21766. }
  21767. } else if (_chapterData[this.taskCount][0].type == 13) {
  21768. this.showType = 4;
  21769. this.pptImgUrl1 = _url;
  21770. } else if (_chapterData[this.taskCount][0].type == 6) {
  21771. this.showType = 1;
  21772. this.text = this.textList[this.taskCount][0];
  21773. }
  21774. }
  21775. }
  21776. this.isClickNav = 0;
  21777. if (
  21778. !_chapterData[this.taskCount].length ||
  21779. _chapterData[this.taskCount][0].type == 12
  21780. ) {
  21781. this.isClickNav = "";
  21782. this.showType = "";
  21783. }
  21784. if (this.tType == 2) {
  21785. _chapterData.forEach((e,i)=>{
  21786. if (e.length) {
  21787. let yym = e.filter(k=>{
  21788. if(!converter(k.name).includes(converter("教案"))){
  21789. return k
  21790. }
  21791. })
  21792. _chapterData[i] = yym
  21793. }
  21794. })
  21795. }
  21796. this.vChapterData = _chapterData;
  21797. this.$forceUpdate();
  21798. }
  21799. // console.log('this.chapInfoList22222',JS);
  21800. if (res.data[0][0].setting) {
  21801. try {
  21802. this.languageSetting =
  21803. JSON.parse(res.data[0][0].setting).languageSetting ||
  21804. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21805. ? JSON.parse(res.data[0][0].setting).languageSetting
  21806. : 0;
  21807. } catch (error) {
  21808. console.error(error);
  21809. }
  21810. }
  21811. // finalMarkList用来判断哪个工具为评分工具
  21812. if (this.courseDetail.state == 5) {
  21813. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21814. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21815. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21816. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21817. // // 没有的话在选其他工具为评分工具
  21818. // if(adc.length > 0){
  21819. // for (let k = chap.length - 1; k >= 0; k--) {
  21820. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21821. // this.finalMarkList = k;
  21822. // break;
  21823. // }
  21824. // }
  21825. // }else{
  21826. // for (let k = chap.length - 1; k >= 0; k--) {
  21827. // 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) {
  21828. // this.finalMarkList = k;
  21829. // break;
  21830. // }
  21831. // }
  21832. // }
  21833. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21834. // 不然会无限循环报错,会很难受
  21835. let aiSNum = 0;
  21836. if (
  21837. chapInfoListCopy[this.taskCount].eList &&
  21838. chapInfoListCopy[this.taskCount].eList.length
  21839. ) {
  21840. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21841. if (e.isai == 2) {
  21842. aiSNum++;
  21843. }
  21844. });
  21845. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21846. this.isaiNum = aiSNum;
  21847. } else {
  21848. this.isaiNum = 0;
  21849. }
  21850. // for (
  21851. // let k = 0;
  21852. // k < chapInfoListCopy[this.taskCount].eList.length;
  21853. // k++
  21854. // ) {
  21855. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21856. // this.againEva(this.taskCount, k);
  21857. // }
  21858. // }
  21859. }
  21860. }
  21861. // else {
  21862. // this.courseDetail = res.data[0][0];
  21863. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21864. // }
  21865. let _this = this;
  21866. if (_this.timer) {
  21867. clearInterval(_this.timer);
  21868. _this.timer = null;
  21869. }
  21870. if (_this.tcid) {
  21871. _this.getCourseGroup(gindex);
  21872. } else {
  21873. _this.selectSWorks(gindex);
  21874. }
  21875. _this.selectStudent();
  21876. _this.selectSLook();
  21877. _this.getPick();
  21878. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21879. _this.setCTask();
  21880. }
  21881. if (_this.dialogVisibleGroup) {
  21882. _this.groupJson =
  21883. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21884. _this.taskCount
  21885. ].toolChoose[_this.toolindex].groupJson;
  21886. }
  21887. _this.$nextTick(() => {
  21888. setTimeout(() => {
  21889. _this.checkEva();
  21890. }, 1000);
  21891. });
  21892. _this.timer = setInterval(function() {
  21893. // _this.getCourseDetail(2);
  21894. if (_this.tcid) {
  21895. _this.getCourseGroup();
  21896. } else {
  21897. _this.selectSWorks();
  21898. }
  21899. _this.selectStudent();
  21900. _this.selectSLook();
  21901. _this.getPick();
  21902. // _this.getSplitScreenData();
  21903. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21904. _this.setCTask();
  21905. }
  21906. if (_this.dialogVisibleGroup) {
  21907. _this.groupJson =
  21908. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21909. _this.taskCount
  21910. ].toolChoose[_this.toolindex].groupJson;
  21911. }
  21912. if (_this.tType == 4 || _this.ispzType == 4) {
  21913. _this.selectPz();
  21914. }
  21915. }, 5000);
  21916. if (_this.timer2 == null) {
  21917. _this.timer2 = setInterval(()=> {
  21918. _this.getSplitScreenData();//获取分屏数据
  21919. }, 5000);
  21920. }
  21921. _this.$nextTick(function() {
  21922. setTimeout(() => {
  21923. // var a =
  21924. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21925. // document.getElementsByClassName("vedioList")[0].style.height =
  21926. // a + "px";
  21927. // document.getElementsByClassName("navBox")[0].style.height =
  21928. // a - 40 + "px";
  21929. // if (_this.vedio[_this.taskCount].length > 0) {
  21930. // _this.vedioTime = [];
  21931. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21932. // _this.vedioTime[i] = document.getElementsByClassName(
  21933. // "vjs-duration-display"
  21934. // )[i].textContent;
  21935. // }
  21936. // }
  21937. }, 1000);
  21938. });
  21939. })
  21940. .catch(err => {
  21941. loading.close();
  21942. console.error(err);
  21943. });
  21944. },
  21945. getCourseGroup(gindex) {
  21946. let params = {
  21947. cid: this.id,
  21948. classid: this.tcid ? this.tcid : "1"
  21949. };
  21950. this.ajax
  21951. .get(this.$store.state.api + "getCourseGroup", params)
  21952. .then(res => {
  21953. if (res.data && res.data[0].length) {
  21954. if (!this.isGroup) {
  21955. let courseGroup = JSON.parse(res.data[0][0].group);
  21956. courseGroup.group = courseGroup.group.filter(el => {
  21957. el.works = [];
  21958. return el;
  21959. });
  21960. if (courseGroup.isopen == 2) {
  21961. this.isGroup = false;
  21962. this.selectSWorks(gindex);
  21963. return;
  21964. }
  21965. this.courseGroup = courseGroup;
  21966. let groupPerson = res.data[1];
  21967. let group = JSON.parse(res.data[0][0].group).group;
  21968. let courseGroupStudent = {};
  21969. let courseGroupStudentUid = {};
  21970. for (var i = 0; i < group.length; i++) {
  21971. courseGroupStudent[group[i].id] = [];
  21972. courseGroupStudentUid[group[i].id] = [];
  21973. for (var j = 0; j < groupPerson.length; j++) {
  21974. if (groupPerson[j].groupCid == group[i].id) {
  21975. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21976. courseGroupStudentUid[group[i].id].push(
  21977. groupPerson[j].userid
  21978. );
  21979. }
  21980. }
  21981. }
  21982. this.courseGroupStudent = courseGroupStudent;
  21983. this.courseGroupStudentUid = courseGroupStudentUid;
  21984. }
  21985. if (this.courseGroup.isopen == 2) {
  21986. this.isGroup = false;
  21987. } else {
  21988. this.isGroup = true;
  21989. }
  21990. this.selectSWorks(gindex);
  21991. } else {
  21992. this.selectSWorks(gindex);
  21993. this.isGroup = false;
  21994. }
  21995. })
  21996. .catch(err => {
  21997. // this.$message.error("网络不佳");
  21998. console.error(err);
  21999. });
  22000. },
  22001. setOperationTime() {
  22002. let _this = this;
  22003. if (_this.opertimer) {
  22004. clearInterval(_this.opertimer);
  22005. _this.opertimer = null;
  22006. }
  22007. _this.opertimer = setInterval(() => {
  22008. _this.setoTime("600");
  22009. }, 600000);
  22010. },
  22011. setoTime(time) {
  22012. let params = [
  22013. {
  22014. uid: this.userid,
  22015. cid: this.id,
  22016. type: "2",
  22017. time: time
  22018. }
  22019. ];
  22020. this.ajax
  22021. .post(this.$store.state.api + "addOperationTimeT2", params)
  22022. .then(res => {})
  22023. .catch(err => {
  22024. console.error(err);
  22025. });
  22026. },
  22027. addPz(type, content) {
  22028. if (type == "1" && this.pzConText == "") {
  22029. this.$message.error("评论不能为空!");
  22030. return;
  22031. }
  22032. let params = [
  22033. {
  22034. cid: this.id,
  22035. uid: this.userid,
  22036. s: this.courseType,
  22037. t: this.taskCount,
  22038. c: type == "1" ? this.pzConText : content,
  22039. type: type
  22040. }
  22041. ];
  22042. this.ajax
  22043. .post(this.$store.state.api + "addPz2", params)
  22044. .then(res => {
  22045. this.$message({
  22046. message: "添加成功",
  22047. type: "success"
  22048. });
  22049. this.pzConText = "";
  22050. this.addPzDialog = false;
  22051. this.selectPz();
  22052. if(this.tType!=2){
  22053. this.insertMemorandum(
  22054. `使用<span class="btn">评论</span>功能,添加评论`
  22055. );
  22056. }
  22057. })
  22058. .catch(err => {
  22059. this.$message.error("添加失败");
  22060. console.error(err);
  22061. });
  22062. },
  22063. setReplyIndex(id, i) {
  22064. this.replyIndex = i;
  22065. this.replyPid = id;
  22066. this.replyDialogVisible = true;
  22067. },
  22068. addHf() {
  22069. if (this.reply == "") {
  22070. this.$message.error("回复不能为空!");
  22071. return;
  22072. }
  22073. let params = [
  22074. {
  22075. cid: this.id,
  22076. uid: this.userid,
  22077. s: this.courseType,
  22078. t: this.taskCount,
  22079. type: "1",
  22080. ct: 2,
  22081. pid: this.replyPid,
  22082. c: this.reply
  22083. }
  22084. ];
  22085. this.ajax
  22086. .post(this.$store.state.api + "addHf", params)
  22087. .then(res => {
  22088. this.reply = "";
  22089. this.$message({
  22090. message: "回复成功",
  22091. type: "success"
  22092. });
  22093. this.replyDialogVisible = false;
  22094. this.selectPz();
  22095. })
  22096. .catch(err => {
  22097. this.$message.error("回复失败");
  22098. console.error(err);
  22099. });
  22100. },
  22101. deletePz(id) {
  22102. this.$confirm("确定删除此评论吗?", "提示", {
  22103. confirmButtonText: "确定",
  22104. cancelButtonText: "取消",
  22105. type: "warning"
  22106. })
  22107. .then(() => {
  22108. let params = [
  22109. {
  22110. id: id
  22111. }
  22112. ];
  22113. this.ajax
  22114. .post(this.$store.state.api + "deletePz", params)
  22115. .then(res => {
  22116. this.$message({
  22117. message: "删除成功",
  22118. type: "success"
  22119. });
  22120. this.selectPz();
  22121. })
  22122. .catch(err => {
  22123. this.$message.error("网络异常");
  22124. console.error(err);
  22125. });
  22126. })
  22127. .catch(() => {});
  22128. },
  22129. deleteReply(id) {
  22130. this.$confirm("确定删除此回复吗?", "提示", {
  22131. confirmButtonText: "确定",
  22132. cancelButtonText: "取消",
  22133. type: "warning"
  22134. })
  22135. .then(() => {
  22136. let params = [
  22137. {
  22138. id: id
  22139. }
  22140. ];
  22141. this.ajax
  22142. .post(this.$store.state.api + "deleteReply", params)
  22143. .then(res => {
  22144. this.$message({
  22145. message: "删除成功",
  22146. type: "success"
  22147. });
  22148. this.selectPz();
  22149. })
  22150. .catch(err => {
  22151. this.$message.error("网络异常");
  22152. console.error(err);
  22153. });
  22154. })
  22155. .catch(() => {});
  22156. },
  22157. setPz() {
  22158. if (this.ispzType == 4) {
  22159. this.ispzType = 0;
  22160. this.pzDialog = false;
  22161. return;
  22162. }
  22163. this.ispzType = 4;
  22164. this.pzDialog = true;
  22165. this.selectPz();
  22166. },
  22167. selectPz() {
  22168. let params = {
  22169. cid: this.id,
  22170. s: this.courseType,
  22171. t: this.taskCount,
  22172. type: this.pzStype,
  22173. uid: this.userid
  22174. };
  22175. this.ajax
  22176. .get(this.$store.state.api + "selectPzListType", params)
  22177. .then(res => {
  22178. this.pzList = res.data[0];
  22179. var a = res.data[1];
  22180. for (var i = 0; i < a.length; i++) {
  22181. for (var j = 0; j < this.pzList.length; j++) {
  22182. if (!this.pzList[j].hfList) {
  22183. this.pzList[j].hfList = [];
  22184. }
  22185. if (a[i].pid == this.pzList[j].id) {
  22186. this.pzList[j].hfList.push(a[i]);
  22187. }
  22188. }
  22189. }
  22190. })
  22191. .catch(err => {
  22192. console.error(err);
  22193. });
  22194. },
  22195. // selectHf() {
  22196. // let params = {
  22197. // cid: this.id,
  22198. // s: this.courseType,
  22199. // t: this.taskCount,
  22200. // };
  22201. // this.ajax
  22202. // .get(this.$store.state.api + "selectHfList", params)
  22203. // .then((res) => {
  22204. // var a = res.data[0];
  22205. // for (var i = 0; i < a.length; i++) {
  22206. // for (var j = 0; j < this.pzList.length; j++) {
  22207. // if (!this.pzList[i].hfList) {
  22208. // this.pzList[i].hfList = [];
  22209. // }
  22210. // if (a[i].pid == this.pzList[j].id) {
  22211. // this.pzList[i].hfList.push(a[i]);
  22212. // }
  22213. // }
  22214. // }
  22215. // })
  22216. // .catch((err) => {
  22217. // console.error(err);
  22218. // });
  22219. // },
  22220. updateSLook() {
  22221. let params = {
  22222. sopen: this.sIsOpen == false ? 1 : 2,
  22223. cid: this.id
  22224. };
  22225. this.ajax
  22226. .get(this.$store.state.api + "updateCourseSLook", params)
  22227. .then(res => {
  22228. if (this.sIsOpen == true) {
  22229. this.$message({
  22230. message: "权限设置成功",
  22231. type: "success"
  22232. });
  22233. } else {
  22234. this.$message({
  22235. message: "权限关闭成功",
  22236. type: "success"
  22237. });
  22238. }
  22239. })
  22240. .catch(err => {
  22241. console.error(err);
  22242. });
  22243. },
  22244. updateFollow() {
  22245. let params = [
  22246. {
  22247. sopen: this.IsFollow == false ? 1 : 2,
  22248. cid: this.id
  22249. }
  22250. ];
  22251. this.ajax
  22252. .post(this.$store.state.api + "updateCourseFollow", params)
  22253. .then(res => {
  22254. if (this.IsFollow == true) {
  22255. this.$message({
  22256. message: "开启成功",
  22257. type: "success"
  22258. });
  22259. } else {
  22260. this.$message({
  22261. message: "关闭成功",
  22262. type: "success"
  22263. });
  22264. }
  22265. this.setCTask();
  22266. })
  22267. .catch(err => {
  22268. console.error(err);
  22269. });
  22270. },
  22271. setCTask() {
  22272. let params = [
  22273. {
  22274. sopen: this.courseType + "-" + this.taskCount,
  22275. cid: this.id
  22276. }
  22277. ];
  22278. this.ajax
  22279. .post(this.$store.state.api + "updateCourseFollowC", params)
  22280. .then(res => {})
  22281. .catch(err => {
  22282. console.error(err);
  22283. });
  22284. },
  22285. updateLookOpen() {
  22286. let params = [
  22287. {
  22288. sopen: this.IsLookOpen == false ? 1 : 2,
  22289. cid: this.id
  22290. }
  22291. ];
  22292. this.ajax
  22293. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22294. .then(res => {
  22295. if (this.IsLookOpen == true) {
  22296. // if (this.courseType != 0 && this.taskCount != 0) {
  22297. // this.openTask(0, 0, "0-0");
  22298. // }
  22299. this.$message({
  22300. message: "权限设置成功",
  22301. type: "success"
  22302. });
  22303. } else {
  22304. this.$message({
  22305. message: "权限关闭成功",
  22306. type: "success"
  22307. });
  22308. }
  22309. this.getCourseState(2);
  22310. })
  22311. .catch(err => {
  22312. console.error(err);
  22313. });
  22314. },
  22315. selectSLook() {
  22316. let params = {
  22317. cid: this.id
  22318. };
  22319. this.ajax
  22320. .get(this.$store.state.api + "selectCourseSLook", params)
  22321. .then(res => {
  22322. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22323. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22324. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22325. if (!this.IsLookOpen) {
  22326. this.setNavList();
  22327. }
  22328. // else {
  22329. this.getCourseState(1);
  22330. // }
  22331. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  22332. if ((this.IsFollow && this.tType == 2)) {
  22333. this.setContent2(false);
  22334. let _followC = res.data[0][0].followC.split("-");
  22335. if (
  22336. this.courseType != _followC[0] ||
  22337. this.taskCount != _followC[1]
  22338. ) {
  22339. this.navList[this.courseType].isOpen = false;
  22340. this.courseType = _followC[0];
  22341. this.navList[this.courseType].isOpen = true;
  22342. this.taskCount = parseInt(_followC[1]);
  22343. this.navId = res.data[0][0].followC;
  22344. document.scrollingElement.scrollTop = 0;
  22345. this.getCourseDetail(2);
  22346. }
  22347. }
  22348. })
  22349. .catch(err => {
  22350. console.error(err);
  22351. });
  22352. },
  22353. setNavList() {
  22354. if (this.navList.length == 0) {
  22355. this.navList = [];
  22356. var copyList = [];
  22357. for (var l = 0; l < this.chapInfoList.length; l++) {
  22358. var q = this.chapInfoList[l].dyName;
  22359. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22360. var e;
  22361. copyList.push({
  22362. dyName: q,
  22363. isOpen: l === 0 ? true : false,
  22364. task: []
  22365. });
  22366. for (var r = 0; r < w.length; r++) {
  22367. e = w[r].task;
  22368. if (this.chapInfoList[l].easy == 1) {
  22369. copyList[l].task.push({
  22370. taskName: q,
  22371. id: l + "-" + r,
  22372. isLook: w[r].isLook,
  22373. isOpen: r === 0 ? true : false,
  22374. tool: []
  22375. });
  22376. } else {
  22377. copyList[l].task.push({
  22378. taskName: e,
  22379. id: l + "-" + r,
  22380. isLook: w[r].isLook,
  22381. isOpen: r === 0 ? true : false,
  22382. tool: []
  22383. });
  22384. }
  22385. var t = w[r].toolChoose;
  22386. for (var k = 0; k < t.length; k++) {
  22387. var tool = t[k].tool[0];
  22388. copyList[l].task[r].tool.push({
  22389. tool: tool,
  22390. isTool: false
  22391. });
  22392. }
  22393. // this.navId = this.navId ? this.navId : l + "-" + r;
  22394. // this.navId = l + "-" + r;
  22395. }
  22396. }
  22397. this.navList = copyList;
  22398. this.navList[0].isOpen = false;
  22399. this.navList[this.courseType].isOpen = true;
  22400. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22401. } else {
  22402. this.setNavList2();
  22403. }
  22404. },
  22405. setNavList2() {
  22406. for (var l = 0; l < this.chapInfoList.length; l++) {
  22407. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22408. for (var r = 0; r < w.length; r++) {
  22409. this.navList[l].task[r].isLook = w[r].isLook;
  22410. }
  22411. }
  22412. if (
  22413. this.IsLookOpen &&
  22414. !this.navList[this.courseType].task[this.taskCount].isLook
  22415. ) {
  22416. this.openTask(0, 0, "0-0");
  22417. }
  22418. this.$forceUpdate();
  22419. },
  22420. getCourseState(type) {
  22421. let params = {
  22422. cid: this.id
  22423. };
  22424. this.ajax
  22425. .get(this.$store.state.api + "getCourseState", params)
  22426. .then(res => {
  22427. // if (res.data[0].length > 0) {
  22428. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22429. // }
  22430. if (res.data[0].length > 0 && type == 1) {
  22431. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22432. console.log("this.chapInfoList", this.chapInfoList);
  22433. this.setNavList();
  22434. this.$forceUpdate();
  22435. } else if (res.data[0].length > 0 && type == 2) {
  22436. this.addCourseState(2);
  22437. } else {
  22438. // this.addCourseState(1);
  22439. console.log('99999')
  22440. }
  22441. })
  22442. .catch(err => {
  22443. console.error(err);
  22444. });
  22445. },
  22446. addCourseState(type,val = '') {
  22447. let _state = val ? val : this.chapInfoList;
  22448. // this.courseType this.taskCount
  22449. if (type == 1 || type == 2) {
  22450. for (var i = 0; i < _state.length; i++) {
  22451. let el = _state[i].chapterInfo[0].taskJson;
  22452. for (var j = 0; j < el.length; j++) {
  22453. // if (i == 0 && j == 0) {
  22454. // el[j].isLook = true;
  22455. // } else {
  22456. // el[j].isLook = false;
  22457. // }
  22458. if (
  22459. this.courseType > i ||
  22460. (this.courseType == i && this.taskCount + 1 > j)
  22461. ) {
  22462. el[j].isLook = true;
  22463. } else {
  22464. el[j].isLook = false;
  22465. }
  22466. }
  22467. }
  22468. }
  22469. let params = [
  22470. {
  22471. cid: this.id,
  22472. state: JSON.stringify(_state)
  22473. }
  22474. ];
  22475. this.ajax
  22476. .post(
  22477. this.$store.state.api +
  22478. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22479. params
  22480. )
  22481. .then(res => {
  22482. if (this.IsLookOpen) {
  22483. this.setNavList();
  22484. }
  22485. if (type == 3 && type == 2) {
  22486. this.getCourseState(1);
  22487. }
  22488. })
  22489. .catch(err => {
  22490. console.error(err);
  22491. });
  22492. },
  22493. getHomeWork() {
  22494. let params = {
  22495. cid: this.id,
  22496. stage: this.courseType,
  22497. task: this.taskCount,
  22498. uid: this.userid
  22499. };
  22500. this.ajax
  22501. .get(this.$store.state.api + "selectWork", params)
  22502. .then(res => {
  22503. if (res.data[0].length > 0) {
  22504. this.studyJuri = JSON.parse(res.data[0][0].content);
  22505. this.isNoHomeWork = true;
  22506. }
  22507. })
  22508. .catch(err => {
  22509. console.error(err);
  22510. });
  22511. },
  22512. isAssetTypeAnImage(ext) {
  22513. return (
  22514. [
  22515. "png",
  22516. "jpg",
  22517. "jpeg",
  22518. "bmp",
  22519. "gif",
  22520. "webp",
  22521. "psd",
  22522. "svg",
  22523. "tiff"
  22524. ].indexOf(ext) !== -1
  22525. );
  22526. },
  22527. switchVideo(media) {
  22528. this.playerO = {};
  22529. this.playerOptions.poster = "";
  22530. this.playerOptions.sources[0].src = media;
  22531. this.playerO = this.playerOptions;
  22532. },
  22533. onPlayerPlay() {},
  22534. onPlayerTimeupdate(player) {
  22535. let gklog = player.cache_.currentTime; //当前播放的秒数
  22536. let a = player.cache_.duration; //视频的总时长
  22537. let gklog2 = parseInt(gklog);
  22538. // if(gklog2 == '3'){
  22539. // player.pause()
  22540. // setTimeout(()=>{
  22541. // player.currentTime(gklog2+1)
  22542. // player.play()
  22543. // },1000)
  22544. // }
  22545. console.log(" onPlayerTimeupdate!", gklog);
  22546. console.log(" onPlayerTimeupdate!", gklog2);
  22547. },
  22548. lookVedio(u, i) {
  22549. this.isClickNav = "";
  22550. // this.playerOptions.sources[0].src = u;
  22551. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22552. d.sources[0].src = u;
  22553. this.playerO[this.taskCount] = d;
  22554. this.showType = 0;
  22555. // this.isClickNav = "video" + i;
  22556. this.isClickNav = i;
  22557. this.$forceUpdate();
  22558. this.insertMemorandum(
  22559. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22560. this.vChapterData[this.taskCount].find(i => i.url == u).name
  22561. }</span>`
  22562. );
  22563. },
  22564. lookText(i, t) {
  22565. this.isClickNav = "";
  22566. // this.text = this.textList[i][t];
  22567. this.text = this.vChapterData[i][t];
  22568. // this.dialogVisible1 = true;
  22569. this.showType = 1;
  22570. // this.isClickNav = "text" + t;
  22571. this.isClickNav = t;
  22572. this.insertMemorandum(
  22573. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22574. this.vChapterData[this.taskCount][t].name
  22575. }.doc</span>`
  22576. );
  22577. },
  22578. lookTools(i, t) {
  22579. this.chapTools = this.chapToolList[i][t];
  22580. this.dialogVisible2 = true;
  22581. },
  22582. async openFile(f) {
  22583. this.pptImgUrl = "";
  22584. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22585. if (
  22586. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22587. -1
  22588. ) {
  22589. let _uuurl = await this.checkLink(f);
  22590. this.pptImgUrl =
  22591. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22592. encodeURIComponent(_uuurl);
  22593. this.showPDF = false;
  22594. this.dialogVisible3 = true;
  22595. } else if (
  22596. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22597. ) {
  22598. this.pptImgUrl = f;
  22599. this.showPDF = true;
  22600. this.dialogVisible3 = true;
  22601. }
  22602. this.insertMemorandum(
  22603. `查看<span class="variable">${w.sName}</span>的作业`
  22604. );
  22605. },
  22606. openTable(f) {
  22607. this.tableJson = JSON.parse(f.works);
  22608. this.dialogVisibleTable2 = true;
  22609. this.insertMemorandum(
  22610. `查看<span class="variable">${f.sName}的作业</span>`
  22611. );
  22612. },
  22613. openWord(f) {
  22614. this.tableJson = JSON.parse(f.works);
  22615. this.dialogVisibleTable3 = true;
  22616. this.insertMemorandum(
  22617. `查看<span class="variable">${f.sName}的作业</span>`
  22618. );
  22619. },
  22620. doUrl(url, i) {
  22621. this.isClickNav = "";
  22622. this.pptImgUrl1 = "";
  22623. this.showType = 2;
  22624. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22625. url = "https://" + url;
  22626. }
  22627. this.pptImgUrl1 = "";
  22628. setTimeout(() => {
  22629. this.pptImgUrl1 = url;
  22630. }, 500);
  22631. // this.isClickNav = "line" + i;
  22632. this.isClickNav = i;
  22633. this.$forceUpdate();
  22634. },
  22635. checkPhoto(f, i) {
  22636. this.showType = 4;
  22637. this.pptImgUrl1 = f.url;
  22638. this.isClickNav = i;
  22639. this.$forceUpdate();
  22640. this.insertMemorandum(
  22641. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22642. this.vChapterData[this.taskCount][i].name
  22643. }</span>`
  22644. );
  22645. },
  22646. async downFile(f, i) {
  22647. this.isClickNav = "";
  22648. this.pptImgUrl1 = "";
  22649. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22650. if (
  22651. a.indexOf(
  22652. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22653. ) != -1
  22654. ) {
  22655. let _uuurl = await this.checkLink(f.url);
  22656. this.pptImgUrl1 =
  22657. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22658. encodeURIComponent(_uuurl);
  22659. // this.dialogVisible3 = true;
  22660. this.showType = 2;
  22661. } else if (
  22662. this.isAssetTypeAnImage(
  22663. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22664. )
  22665. ) {
  22666. this.showType = 4;
  22667. this.pptImgUrl1 = f.url;
  22668. } else if (
  22669. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22670. "PDF"
  22671. ) {
  22672. this.pptImgUrl1 = f.url;
  22673. // this.dialogVisible3 = true;
  22674. this.showType = 3;
  22675. } else {
  22676. window.open(this.file[i].url);
  22677. }
  22678. // this.isClickNav = "word" + i;
  22679. this.isClickNav = i;
  22680. this.insertMemorandum(
  22681. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22682. this.vChapterData[this.taskCount][i].name
  22683. }</span>`
  22684. );
  22685. },
  22686. downFileList(i) {
  22687. window.open(this.noImgList[i].url);
  22688. },
  22689. openAddWork() {
  22690. this.dialogVisible = true;
  22691. },
  22692. addBzWorks() {
  22693. let params = [
  22694. {
  22695. uid: this.userid,
  22696. cid: this.id,
  22697. stage: this.courseType,
  22698. task: this.taskCount,
  22699. tool: this.toolindex,
  22700. content: JSON.stringify(this.eScore),
  22701. type: 6
  22702. }
  22703. ];
  22704. this.ajax
  22705. .post(this.$store.state.api + "addCourseWorks", params)
  22706. .then(res => {
  22707. this.$message({
  22708. message: "提交成功",
  22709. type: "success"
  22710. });
  22711. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22712. this.eScore = { eBzText: "", eStar: [] };
  22713. this.studentEvalDialogVisible = false;
  22714. this.selectSWorks();
  22715. })
  22716. .catch(err => {
  22717. this.$message.error("提交失败");
  22718. console.error(err);
  22719. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22720. });
  22721. },
  22722. addBzWorksTeacher() {
  22723. let params = [
  22724. {
  22725. uid: this.sStudent.userid,
  22726. cid: this.id,
  22727. stage: this.courseType,
  22728. task: this.taskCount,
  22729. tool: this.toolindex,
  22730. content: JSON.stringify(this.eScore),
  22731. type: 6
  22732. }
  22733. ];
  22734. this.ajax
  22735. .post(this.$store.state.api + "addCourseWorks", params)
  22736. .then(res => {
  22737. this.$message({
  22738. message: "提交成功",
  22739. type: "success"
  22740. });
  22741. this.eScore = { eBzText: "", eStar: [] };
  22742. this.studentEvalDialogVisibleTeacher = false;
  22743. this.selectSWorks();
  22744. })
  22745. .catch(err => {
  22746. this.$message.error("提交失败");
  22747. console.error(err);
  22748. });
  22749. },
  22750. addStudentAsk() {
  22751. if (!this.radio.length) {
  22752. this.$message.error("请选择选项");
  22753. return;
  22754. }
  22755. for (var i = 0; i < this.askJson.askCount; i++) {
  22756. if (
  22757. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22758. (this.radio[i] !== 0 && !this.radio[i])
  22759. ) {
  22760. this.$message.error("请选择选项");
  22761. return;
  22762. }
  22763. }
  22764. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22765. let params = [
  22766. {
  22767. uid: this.userid,
  22768. cid: this.id,
  22769. stage: this.courseType,
  22770. task: this.taskCount,
  22771. tool: this.toolindex,
  22772. content: JSON.stringify(this.askList),
  22773. type: 2
  22774. }
  22775. ];
  22776. this.ajax
  22777. .post(this.$store.state.api + "addCourseWorks", params)
  22778. .then(res => {
  22779. this.$message({
  22780. message: "提交成功",
  22781. type: "success"
  22782. });
  22783. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22784. this.askList = [];
  22785. this.dialogVisible5 = false;
  22786. this.selectStudent();
  22787. this.selectSWorks();
  22788. this.selectSLook();
  22789. })
  22790. .catch(err => {
  22791. this.$message.error("提交失败");
  22792. console.error(err);
  22793. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22794. });
  22795. },
  22796. addStudentAskTeacher() {
  22797. if (!this.radio.length) {
  22798. this.$message.error("请选择选项");
  22799. return;
  22800. }
  22801. for (var i = 0; i < this.askJson.askCount; i++) {
  22802. if (
  22803. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22804. (this.radio[i] !== 0 && !this.radio[i])
  22805. ) {
  22806. this.$message.error("请选择选项");
  22807. return;
  22808. }
  22809. }
  22810. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22811. let params = [
  22812. {
  22813. uid: this.sStudent.userid,
  22814. cid: this.id,
  22815. stage: this.courseType,
  22816. task: this.taskCount,
  22817. tool: this.toolindex,
  22818. content: JSON.stringify(this.askList),
  22819. type: 2
  22820. }
  22821. ];
  22822. this.ajax
  22823. .post(this.$store.state.api + "addCourseWorks", params)
  22824. .then(res => {
  22825. this.$message({
  22826. message: "提交成功",
  22827. type: "success"
  22828. });
  22829. this.askList = [];
  22830. this.dialogVisible5Teacher = false;
  22831. this.selectStudent();
  22832. this.selectSWorks();
  22833. this.selectSLook();
  22834. })
  22835. .catch(err => {
  22836. this.$message.error("提交失败");
  22837. console.error(err);
  22838. });
  22839. },
  22840. addStudentTest() {
  22841. if (!this.radio.length) {
  22842. this.$message.error("请选择选项");
  22843. return;
  22844. }
  22845. for (var i = 0; i < this.testJson.testCount; i++) {
  22846. if (
  22847. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22848. (this.radio[i] !== 0 && !this.radio[i])
  22849. ) {
  22850. this.$message.error("请选择选项");
  22851. return;
  22852. }
  22853. }
  22854. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22855. let params = [
  22856. {
  22857. uid: this.userid,
  22858. cid: this.id,
  22859. stage: this.courseType,
  22860. task: this.taskCount,
  22861. tool: this.toolindex,
  22862. content: JSON.stringify(this.askList),
  22863. type: 8
  22864. }
  22865. ];
  22866. this.ajax
  22867. .post(this.$store.state.api + "addCourseWorks", params)
  22868. .then(res => {
  22869. this.$message({
  22870. message: "提交成功",
  22871. type: "success"
  22872. });
  22873. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22874. this.askList = [];
  22875. this.dialogVisibleChoice = false;
  22876. this.selectStudent();
  22877. this.selectSWorks();
  22878. this.selectSLook();
  22879. })
  22880. .catch(err => {
  22881. this.$message.error("提交失败");
  22882. console.error(err);
  22883. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22884. });
  22885. },
  22886. addStudentTestTeacher() {
  22887. if (!this.radio.length) {
  22888. this.$message.error("请选择选项");
  22889. return;
  22890. }
  22891. for (var i = 0; i < this.testJson.testCount; i++) {
  22892. if (
  22893. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22894. (this.radio[i] !== 0 && !this.radio[i])
  22895. ) {
  22896. this.$message.error("请选择选项");
  22897. return;
  22898. }
  22899. }
  22900. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22901. let params = [
  22902. {
  22903. uid: this.sStudent.userid,
  22904. cid: this.id,
  22905. stage: this.courseType,
  22906. task: this.taskCount,
  22907. tool: this.toolindex,
  22908. content: JSON.stringify(this.askList),
  22909. type: 8
  22910. }
  22911. ];
  22912. this.ajax
  22913. .post(this.$store.state.api + "addCourseWorks", params)
  22914. .then(res => {
  22915. this.$message({
  22916. message: "提交成功",
  22917. type: "success"
  22918. });
  22919. this.askList = [];
  22920. this.dialogVisibleChoiceTeacher = false;
  22921. this.selectStudent();
  22922. this.selectSWorks();
  22923. this.selectSLook();
  22924. })
  22925. .catch(err => {
  22926. this.$message.error("提交失败");
  22927. console.error(err);
  22928. });
  22929. },
  22930. addWork() {
  22931. if (this.studyJuri[0].content == "") {
  22932. this.$message.error("请将信息填写完整");
  22933. return;
  22934. } else if (this.studyJuri[0].cover.length == 0) {
  22935. this.$message.error("请将信息填写完整");
  22936. return;
  22937. } else if (this.studyJuri[0].upVedio.length == 0) {
  22938. this.$message.error("请将信息填写完整");
  22939. return;
  22940. }
  22941. if (this.isNoHomeWork) {
  22942. this.$confirm(
  22943. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22944. "提示",
  22945. {
  22946. confirmButtonText: "确定",
  22947. cancelButtonText: "取消",
  22948. type: "warning"
  22949. }
  22950. )
  22951. .then(() => {
  22952. let params = [
  22953. {
  22954. uid: this.userid,
  22955. cid: this.id,
  22956. stage: this.courseType,
  22957. task: this.taskCount,
  22958. content: JSON.stringify(this.studyJuri)
  22959. }
  22960. ];
  22961. this.ajax
  22962. .post(this.$store.state.api + "addWorks", params)
  22963. .then(res => {
  22964. this.$message({
  22965. message: "提交成功",
  22966. type: "success"
  22967. });
  22968. this.isNoHomeWork = true;
  22969. this.dialogVisible = false;
  22970. })
  22971. .catch(err => {
  22972. this.$message.error("提交失败");
  22973. console.error(err);
  22974. });
  22975. })
  22976. .catch(() => {});
  22977. } else {
  22978. let params = [
  22979. {
  22980. uid: this.userid,
  22981. cid: this.id,
  22982. stage: this.courseType,
  22983. task: this.taskCount,
  22984. content: JSON.stringify(this.studyJuri)
  22985. }
  22986. ];
  22987. this.ajax
  22988. .post(this.$store.state.api + "addWorks", params)
  22989. .then(res => {
  22990. this.$message({
  22991. message: "提交成功",
  22992. type: "success"
  22993. });
  22994. this.isNoHomeWork = true;
  22995. this.dialogVisible = false;
  22996. })
  22997. .catch(err => {
  22998. this.$message.error("提交失败");
  22999. console.error(err);
  23000. });
  23001. }
  23002. },
  23003. selectCount() {
  23004. let params = {
  23005. cid: this.id,
  23006. chid: this.courseType,
  23007. uid: this.userid
  23008. };
  23009. this.ajax
  23010. .get(this.$store.state.api + "selectToolsCount", params)
  23011. .then(res => {
  23012. for (var i = 0; i < res.data[0].length; i++) {
  23013. if (res.data[0][i].tools == 1) {
  23014. this.wbCount = res.data[0][i].count;
  23015. } else if (res.data[0][i].tools == 2) {
  23016. this.wordCount = res.data[0][i].count;
  23017. } else if (res.data[0][i].tools == 3) {
  23018. this.mindCount = res.data[0][i].count;
  23019. } else if (res.data[0][i].tools == 4) {
  23020. this.askCount = res.data[0][i].count;
  23021. } else if (res.data[0][i].tools == 6) {
  23022. this.noteCount = res.data[0][i].count;
  23023. } else if (res.data[0][i].tools == 7) {
  23024. this.mindNetWorkCount = res.data[0][i].count;
  23025. } else if (res.data[0][i].tools == 8) {
  23026. this.libraryCount = res.data[0][i].count;
  23027. } else if (res.data[0][i].tools == 16) {
  23028. this.workCount = res.data[0][i].count;
  23029. } else if (res.data[0][i].tools == 10) {
  23030. this.timeCount = res.data[0][i].count;
  23031. } else if (res.data[0][i].tools == 15) {
  23032. this.answerCount = res.data[0][i].count;
  23033. } else if (res.data[0][i].tools == 18) {
  23034. this.trainCount = res.data[0][i].count;
  23035. }
  23036. }
  23037. })
  23038. .catch(err => {
  23039. console.error(err);
  23040. });
  23041. },
  23042. openTools(t, i, index, c, sName, id) {
  23043. var z = JSON.parse(c);
  23044. this.noteName = sName;
  23045. if (t == 4) {
  23046. this.radio = [];
  23047. this.isAnswer = false;
  23048. let b = z[0].anwer;
  23049. this.radio = b;
  23050. this.askJson = z[0].askJson;
  23051. this.isAnswer = true;
  23052. this.dialogVisible5 = true;
  23053. } else if (t == 45) {
  23054. this.radio = [];
  23055. this.isAnswer = false;
  23056. let b = z[0].anwer;
  23057. this.radio = b;
  23058. this.testJson = z[0].testJson;
  23059. this.isAnswer = true;
  23060. this.dialogVisibleChoice = true;
  23061. } else if (t == 69) {
  23062. this.oldEnglishJson1 = {};
  23063. this.oldEnglishJson = {};
  23064. this.englishList1 = {};
  23065. this.newEngIndex = -1;
  23066. this.isNoUserid = false;
  23067. this.englishList1 = this.chapInfoList[
  23068. this.courseType
  23069. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  23070. this.oldEnglishJson = z;
  23071. this.engWid = id;
  23072. this.newEnglishList = { engTitle: "", engText: "" };
  23073. this.newEnglishList1 = [];
  23074. this.selectEngC(id, z);
  23075. } else if (t == 62) {
  23076. this.videoType = 1;
  23077. this.videoJson = {};
  23078. this.videoJson = JSON.parse(c);
  23079. // this.videoJson =
  23080. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23081. // index
  23082. // ].toolChoose[i].videoJson;
  23083. this.dialogVisibleVideo = true;
  23084. }
  23085. // else if (t == 15) {
  23086. // this.answerQ = "";
  23087. // this.questionAnswer = "";
  23088. // this.answerQ = z[0].answerTitle;
  23089. // this.questionAnswer = z[0].answer;
  23090. // this.answerDialogVisible = true;
  23091. // }
  23092. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  23093. },
  23094. fastText(p, t) {
  23095. if (t == 1) {
  23096. this.commentText += p;
  23097. } else {
  23098. this.eScore.eBzText += p;
  23099. }
  23100. },
  23101. addTools(t, i, index) {
  23102. var a = 0;
  23103. // this.taskCount = index;
  23104. this.toolindex = i;
  23105. if (t == 1) {
  23106. if (this.wbCount > 0) {
  23107. this.updateCount(this.wbCount, t);
  23108. } else {
  23109. this.wbCount++;
  23110. a = this.wbCount;
  23111. this.toolsCount(a, t);
  23112. }
  23113. window.topU.postMessage(
  23114. {
  23115. tools: "1",
  23116. cid: this.id,
  23117. stage: this.courseType,
  23118. task: this.taskCount,
  23119. tool: i
  23120. },
  23121. "*"
  23122. );
  23123. } else if (t == 2) {
  23124. if (this.wordCount > 0) {
  23125. this.updateCount(this.wordCount, t);
  23126. } else {
  23127. this.wordCount++;
  23128. a = this.wordCount;
  23129. this.toolsCount(a, t);
  23130. }
  23131. window.topU.postMessage({ tools: "2" }, "*");
  23132. } else if (t == 3) {
  23133. if (this.mindCount > 0) {
  23134. this.updateCount(this.mindCount, t);
  23135. } else {
  23136. this.mindCount++;
  23137. a = this.mindCount;
  23138. this.toolsCount(a, t);
  23139. }
  23140. window.topU.postMessage(
  23141. {
  23142. tools: "3",
  23143. cid: this.id,
  23144. stage: this.courseType,
  23145. task: this.taskCount,
  23146. tool: i
  23147. },
  23148. "*"
  23149. );
  23150. } else if (t == 4) {
  23151. this.radio = [];
  23152. this.noteName = "";
  23153. this.isAnswer = false;
  23154. if (this.askCount > 0) {
  23155. this.updateCount(this.askCount, t);
  23156. } else {
  23157. this.askCount++;
  23158. a = this.askCount;
  23159. this.toolsCount(a, t);
  23160. }
  23161. if (!this.dialogVisible2) {
  23162. this.askJson.askJson = this.chapInfoList[
  23163. this.courseType
  23164. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23165. this.askJson.askTitle = this.chapInfoList[
  23166. this.courseType
  23167. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23168. this.askJson.askCount = this.chapInfoList[
  23169. this.courseType
  23170. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23171. } else {
  23172. this.askJson.askJson = this.chapTools.askJson.askJson;
  23173. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23174. this.askJson.askCount = this.chapTools.askJson.askCount;
  23175. }
  23176. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23177. if (this.askJson.askJson[k].type == "2") {
  23178. this.radio.push([]);
  23179. } else {
  23180. this.radio.push("");
  23181. }
  23182. }
  23183. this.dialogVisible5 = true;
  23184. // window.topU.postMessage({ tools: "4" }, "*");
  23185. } else if (t == 45) {
  23186. this.noteName = "";
  23187. this.radio = [];
  23188. this.isAnswer = false;
  23189. if (this.askCount > 0) {
  23190. this.updateCount(this.askCount, t);
  23191. } else {
  23192. this.askCount++;
  23193. a = this.askCount;
  23194. this.toolsCount(a, t);
  23195. }
  23196. this.testJson = this.chapInfoList[
  23197. this.courseType
  23198. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23199. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23200. if (this.testJson.testJson[k].type == "2") {
  23201. this.radio.push([]);
  23202. } else {
  23203. this.radio.push("");
  23204. }
  23205. }
  23206. this.dialogVisibleChoice = true;
  23207. // window.topU.postMessage({ tools: "4" }, "*");
  23208. } else if (t == 5) {
  23209. if (this.scoreCount > 0) {
  23210. this.updateCount(this.scoreCount, t);
  23211. } else {
  23212. this.scoreCount++;
  23213. a = this.scoreCount;
  23214. this.toolsCount(a, t);
  23215. }
  23216. this.dialogVisible4 = true;
  23217. // window.topU.postMessage({ tools: "5" }, "*");
  23218. } else if (t == 6) {
  23219. if (this.noteCount > 0) {
  23220. this.updateCount(this.noteCount, t);
  23221. } else {
  23222. this.noteCount++;
  23223. a = this.noteCount;
  23224. this.toolsCount(a, t);
  23225. }
  23226. window.topU.postMessage(
  23227. {
  23228. tools: "6",
  23229. cid: this.id,
  23230. stage: this.courseType,
  23231. task: this.taskCount,
  23232. tool: i
  23233. },
  23234. "*"
  23235. );
  23236. } else if (t == 7) {
  23237. if (this.mindNetWorkCount > 0) {
  23238. this.updateCount(this.mindNetWorkCount, t);
  23239. } else {
  23240. this.mindNetWorkCount++;
  23241. a = this.mindNetWorkCount;
  23242. this.toolsCount(a, t);
  23243. }
  23244. window.topU.postMessage(
  23245. {
  23246. tools: "7",
  23247. cid: this.id,
  23248. stage: this.courseType,
  23249. task: this.taskCount,
  23250. tool: i
  23251. },
  23252. "*"
  23253. );
  23254. } else if (t == 16) {
  23255. if (this.workCount > 0) {
  23256. this.updateCount(this.workCount, t);
  23257. } else {
  23258. this.workCount++;
  23259. a = this.workCount;
  23260. this.toolsCount(a, t);
  23261. }
  23262. this.dialogVisible = true;
  23263. } else if (t == 50) {
  23264. if (this.tType == 2) {
  23265. this.$message.error("不支持学生使用");
  23266. return;
  23267. }
  23268. this.plworkFile = [];
  23269. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23270. if (!this.uploadCid) {
  23271. this.$message.error(
  23272. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23273. );
  23274. return;
  23275. }
  23276. // this.uploadCid =
  23277. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23278. // index
  23279. // ].toolChoose[i].uploadJson[0];
  23280. this.selectUploadStudent(2);
  23281. } else if (t == 8) {
  23282. if (this.libraryCount > 0) {
  23283. this.updateCount(this.libraryCount, t);
  23284. } else {
  23285. this.libraryCount++;
  23286. a = this.libraryCount;
  23287. this.toolsCount(a, t);
  23288. }
  23289. window.topU.postMessage({ tools: "8" }, "*");
  23290. } else if (t == 17) {
  23291. if (this.libraryCount > 0) {
  23292. this.updateCount(this.libraryCount, t);
  23293. } else {
  23294. this.libraryCount++;
  23295. a = this.libraryCount;
  23296. this.toolsCount(a, t);
  23297. }
  23298. window.topU.postMessage({ tools: "17" }, "*");
  23299. } else if (t == 18) {
  23300. if (this.trainCount > 0) {
  23301. this.updateCount(this.trainCount, t);
  23302. } else {
  23303. this.trainCount++;
  23304. a = this.trainCount;
  23305. this.toolsCount(a, t);
  23306. }
  23307. window.topU.postMessage({ tools: "18" }, "*");
  23308. } else if (t == 10) {
  23309. if (this.timeCount > 0) {
  23310. this.updateCount(this.timeCount, t);
  23311. } else {
  23312. this.timeCount++;
  23313. a = this.timeCount;
  23314. this.toolsCount(a, t);
  23315. }
  23316. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23317. .taskJson[index].toolChoose[i].preTime
  23318. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23319. .toolChoose[i].preTime
  23320. : "";
  23321. this.timeDialogVisible = true;
  23322. } else if (t == 15) {
  23323. this.answerQ = "";
  23324. this.questionAnswer = "";
  23325. if (this.answerCount > 0) {
  23326. this.updateCount(this.answerCount, t);
  23327. } else {
  23328. this.answerCount++;
  23329. a = this.answerCount;
  23330. this.toolsCount(a, t);
  23331. }
  23332. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23333. .taskJson[index].toolChoose[i].answerQ
  23334. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23335. .toolChoose[i].answerQ
  23336. : "";
  23337. this.answerDialogVisible = true;
  23338. } else if (t == 21) {
  23339. window.topU.postMessage({ tools: "21" }, "*");
  23340. } else if (t == 22) {
  23341. window.topU.postMessage({ tools: "22" }, "*");
  23342. } else if (t == 23) {
  23343. window.topU.postMessage({ tools: "23" }, "*");
  23344. } else if (t == 24) {
  23345. window.topU.postMessage({ tools: "24" }, "*");
  23346. } else if (t == 25) {
  23347. window.topU.postMessage({ tools: "25" }, "*");
  23348. } else if (t == 31) {
  23349. window.topU.postMessage({ tools: "31" }, "*");
  23350. } else if (t == 28) {
  23351. window.topU.postMessage({ tools: "28" }, "*");
  23352. } else if (t == 37) {
  23353. window.topU.postMessage({ tools: "37" }, "*");
  23354. } else if (t == 38) {
  23355. window.topU.postMessage({ tools: "38" }, "*");
  23356. } else if (t == 39) {
  23357. window.topU.postMessage({ tools: "39" }, "*");
  23358. } else if (t == 32) {
  23359. window.topU.postMessage({ tools: "32" }, "*");
  23360. } else if (t == 66) {
  23361. window.topU.postMessage({ tools: "66" }, "*");
  23362. } else if (t == 67) {
  23363. window.topU.postMessage({ tools: "67" }, "*");
  23364. } else if (t == 68) {
  23365. window.topU.postMessage({ tools: "68" }, "*");
  23366. } else if (t == 57) {
  23367. // window.topU.postMessage({ tools: "57" }, "*");
  23368. window.topU.postMessage(
  23369. {
  23370. tools: "57u",
  23371. cid: this.id,
  23372. stage: this.courseType,
  23373. task: this.taskCount,
  23374. tool: i
  23375. },
  23376. "*"
  23377. );
  23378. } else if (t == 58) {
  23379. window.topU.postMessage({ tools: "58" }, "*");
  23380. } else if (t == 59) {
  23381. window.topU.postMessage({ tools: "59" }, "*");
  23382. } else if (t == 60) {
  23383. window.topU.postMessage({ tools: "60" }, "*");
  23384. } else if (t == 61) {
  23385. window.topU.postMessage({ tools: "61" }, "*");
  23386. } else if (t == 63) {
  23387. window.topU.postMessage({ tools: "63" }, "*");
  23388. } else if (t == 71) {
  23389. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23390. // this.$message.error("该工具不可使用");
  23391. // return
  23392. // }
  23393. window.topU.postMessage({ tools: "71" }, "*");
  23394. } else if (t == 72) {
  23395. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23396. .taskJson[index].toolChoose[i].appJson
  23397. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23398. .toolChoose[i].appJson
  23399. : "";
  23400. console.log('item.url',item.url);
  23401. if(!item || !item.url){
  23402. this.$message.error("应用连接为空, 请到课程管理中添加");
  23403. return;
  23404. }
  23405. if (!document.fullscreenElement) {
  23406. this.enterFullScreen();
  23407. }
  23408. this.$refs.appStoreC.getData(item.url,this.userid)
  23409. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23410. // window.open(item.url, "_blank");
  23411. } else if (t == 69) {
  23412. if (this.worksStudent[i].length) {
  23413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23414. if (this.userid == this.worksStudent[i][k].userid) {
  23415. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  23416. break;
  23417. } else {
  23418. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23419. }
  23420. }
  23421. } else {
  23422. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23423. }
  23424. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23425. .taskJson[index].toolChoose[i].englishList
  23426. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23427. .toolChoose[i].englishList
  23428. : {};
  23429. this.englishToolIndex = i;
  23430. this.myAnList = this.myAnswerList1;
  23431. this.engDialogVisible = true;
  23432. } else if (t == 70) {
  23433. if (this.worksStudent[i].length) {
  23434. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23435. if (
  23436. this.userid == this.worksStudent[i][k].userid &&
  23437. this.worksStudent[i][k].type == 17
  23438. ) {
  23439. this.englishVoiceJsonWork = JSON.parse(
  23440. this.worksStudent[i][k].works
  23441. );
  23442. break;
  23443. } else {
  23444. this.englishVoiceJsonWork = [];
  23445. }
  23446. }
  23447. } else {
  23448. this.englishVoiceJsonWork = [];
  23449. }
  23450. let englishVoiceJson = {};
  23451. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23452. .taskJson[index].toolChoose[i].englishVoiceJson
  23453. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23454. .toolChoose[i].englishVoiceJson
  23455. : {};
  23456. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23457. this.EnglishVoiceDialog = true;
  23458. } else if (t == 65) {
  23459. if (this.tType == 2) {
  23460. this.$message.error("不支持学生使用");
  23461. return;
  23462. }
  23463. this.uploadCid = this.tcid;
  23464. if (!this.uploadCid) {
  23465. this.$message.error(
  23466. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23467. );
  23468. return;
  23469. }
  23470. this.selectPickStudent();
  23471. } else if (t == 26) {
  23472. window.topU.postMessage(
  23473. {
  23474. tools: "26",
  23475. cid: this.id,
  23476. stage: this.courseType,
  23477. task: this.taskCount,
  23478. tool: i
  23479. },
  23480. "*"
  23481. );
  23482. } else if (t == 40) {
  23483. if (this.evalCount > 0) {
  23484. this.updateCount(this.evalCount, t);
  23485. } else {
  23486. this.evalCount++;
  23487. a = this.evalCount;
  23488. this.toolsCount(a, t);
  23489. }
  23490. this.eScore = { eBzText: "", eStar: [] };
  23491. if (this.worksStudent[i].length) {
  23492. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23493. if (this.userid == this.worksStudent[i][k].userid) {
  23494. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23495. this.rateJson = this.chapInfoList[
  23496. this.courseType
  23497. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23498. break;
  23499. } else {
  23500. this.rateJson = this.chapInfoList[
  23501. this.courseType
  23502. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23503. }
  23504. }
  23505. } else {
  23506. this.rateJson = this.chapInfoList[
  23507. this.courseType
  23508. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23509. }
  23510. this.isStar = false;
  23511. this.studentEvalDialogVisible = true;
  23512. } else if (t == 41) {
  23513. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23514. .taskJson[index].toolChoose[i].selectJson
  23515. ? JSON.parse(
  23516. JSON.stringify(
  23517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23518. index
  23519. ].toolChoose[i].selectJson
  23520. )
  23521. )
  23522. : { url: "", select: [], answer: [] };
  23523. if (this.worksStudent[i].length) {
  23524. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23525. if (this.userid == this.worksStudent[i][k].userid) {
  23526. var a = this.worksStudent[i][k].works.split(",");
  23527. for (var ki = 0; ki < a.length; ki++) {
  23528. a[ki] = parseInt(a[ki]);
  23529. }
  23530. this.selectAnswer = {
  23531. answer: a,
  23532. stu: this.worksStudent[i][k].sName
  23533. };
  23534. break;
  23535. } else {
  23536. this.selectAnswer = { answer: [], stu: "" };
  23537. }
  23538. }
  23539. } else {
  23540. this.selectAnswer = { answer: [], stu: "" };
  23541. }
  23542. this.isSelect = false;
  23543. this.dialogVisibleSelect = true;
  23544. } else if (t == 44) {
  23545. window.topU.postMessage({ tools: "44" }, "*");
  23546. } else if (t == 47) {
  23547. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23548. .taskJson[index].toolChoose[i].sentenceList
  23549. ? JSON.parse(
  23550. JSON.stringify(
  23551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23552. index
  23553. ].toolChoose[i].sentenceList
  23554. )
  23555. )
  23556. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23557. for (var q = 0; q < this.sentenceList.length; q++) {
  23558. this.sentenceList[q].chooseSenList = [];
  23559. this.sentenceList[q].addChangeSen = [];
  23560. this.sentenceList[q].addChangeSen = JSON.parse(
  23561. JSON.stringify(this.sentenceList[q].addSentence)
  23562. );
  23563. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23564. q
  23565. ].rightAnswer.length;
  23566. }
  23567. this.dialogVisibleSentence = true;
  23568. } else if (t == 48) {
  23569. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23570. .taskJson[index].toolChoose[i].tableJson
  23571. ? JSON.parse(
  23572. JSON.stringify(
  23573. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23574. index
  23575. ].toolChoose[i].tableJson
  23576. )
  23577. )
  23578. : { text: "" };
  23579. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23580. if (this.worksStudent[i].length) {
  23581. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23582. if (this.userid == this.worksStudent[i][k].userid) {
  23583. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23584. break;
  23585. }
  23586. }
  23587. }
  23588. this.dialogVisibleTable = true;
  23589. } else if (t == 52) {
  23590. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23591. .taskJson[index].toolChoose[i].wordJson
  23592. ? JSON.parse(
  23593. JSON.stringify(
  23594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23595. index
  23596. ].toolChoose[i].wordJson
  23597. )
  23598. )
  23599. : { text: "" };
  23600. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23601. if (this.worksStudent[i].length) {
  23602. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23603. if (this.userid == this.worksStudent[i][k].userid) {
  23604. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23605. break;
  23606. }
  23607. }
  23608. }
  23609. this.dialogVisibleWord = true;
  23610. } else if (t == 49) {
  23611. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  23612. return;
  23613. }
  23614. this.groupJson = this.chapInfoList[
  23615. this.courseType
  23616. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  23617. this.islock = this.groupJson.islock == 1 ? true : false;
  23618. this.dialogVisibleGroup = true;
  23619. } else if (t == 62) {
  23620. this.videoType = 0;
  23621. this.videoJson = {};
  23622. this.videoJson = this.chapInfoList[
  23623. this.courseType
  23624. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  23625. this.dialogVisibleVideo = true;
  23626. }
  23627. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23628. this.insertMemorandum(
  23629. `点击工作区<span class="variable">工具${index + 1}:${
  23630. this.toolsList[t]
  23631. }</span>`
  23632. );
  23633. },
  23634. teacherWorkSubmit(t, i, index, s) {
  23635. this.sStudent = s;
  23636. this.toolindex = i;
  23637. this.sTool = t;
  23638. if (this.tType !== "1" && this.tType !== "4") {
  23639. return;
  23640. }
  23641. if (t == 16 || t == 32 || t == 50) {
  23642. this.dialogVisibleWorks = true;
  23643. } else if (t == 15) {
  23644. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23645. .taskJson[index].toolChoose[i].answerQ
  23646. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23647. .toolChoose[i].answerQ
  23648. : "";
  23649. this.questionAnswer = "";
  23650. this.answerDialogVisibleTeacher = true; //问答
  23651. } else if (t == 52) {
  23652. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23653. .taskJson[index].toolChoose[i].wordJson
  23654. ? JSON.parse(
  23655. JSON.stringify(
  23656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23657. index
  23658. ].toolChoose[i].wordJson
  23659. )
  23660. )
  23661. : { text: "" };
  23662. if (this.worksStudent[i].length) {
  23663. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23664. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23665. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23666. break;
  23667. }
  23668. }
  23669. }
  23670. this.dialogVisibleWordTeacher = true; //文档
  23671. } else if (t == 4) {
  23672. this.radio = [];
  23673. this.noteName = "";
  23674. this.isAnswer = false;
  23675. if (this.askCount > 0) {
  23676. this.updateCount(this.askCount, t);
  23677. } else {
  23678. this.askCount++;
  23679. a = this.askCount;
  23680. this.toolsCount(a, t);
  23681. }
  23682. if (!this.dialogVisible2) {
  23683. this.askJson.askJson = this.chapInfoList[
  23684. this.courseType
  23685. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23686. this.askJson.askTitle = this.chapInfoList[
  23687. this.courseType
  23688. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23689. this.askJson.askCount = this.chapInfoList[
  23690. this.courseType
  23691. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23692. } else {
  23693. this.askJson.askJson = this.chapTools.askJson.askJson;
  23694. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23695. this.askJson.askCount = this.chapTools.askJson.askCount;
  23696. }
  23697. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23698. if (this.askJson.askJson[k].type == "2") {
  23699. this.radio.push([]);
  23700. } else {
  23701. this.radio.push("");
  23702. }
  23703. }
  23704. this.dialogVisible5Teacher = true;
  23705. } else if (t == 45) {
  23706. this.noteName = "";
  23707. this.radio = [];
  23708. this.isAnswer = false;
  23709. if (this.askCount > 0) {
  23710. this.updateCount(this.askCount, t);
  23711. } else {
  23712. this.askCount++;
  23713. a = this.askCount;
  23714. this.toolsCount(a, t);
  23715. }
  23716. this.testJson = this.chapInfoList[
  23717. this.courseType
  23718. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23719. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23720. if (this.testJson.testJson[k].type == "2") {
  23721. this.radio.push([]);
  23722. } else {
  23723. this.radio.push("");
  23724. }
  23725. }
  23726. this.dialogVisibleChoiceTeacher = true;
  23727. } else if (t == 41) {
  23728. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23729. .taskJson[index].toolChoose[i].selectJson
  23730. ? JSON.parse(
  23731. JSON.stringify(
  23732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23733. index
  23734. ].toolChoose[i].selectJson
  23735. )
  23736. )
  23737. : { url: "", select: [], answer: [] };
  23738. if (this.worksStudent[i].length) {
  23739. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23740. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23741. var a = this.worksStudent[i][k].works.split(",");
  23742. for (var ki = 0; ki < a.length; ki++) {
  23743. a[ki] = parseInt(a[ki]);
  23744. }
  23745. this.selectAnswer = {
  23746. answer: a,
  23747. stu: this.worksStudent[i][k].sName
  23748. };
  23749. break;
  23750. } else {
  23751. this.selectAnswer = { answer: [], stu: "" };
  23752. }
  23753. }
  23754. } else {
  23755. this.selectAnswer = { answer: [], stu: "" };
  23756. }
  23757. this.isSelect = false;
  23758. this.dialogVisibleSelectTeacher = true;
  23759. } else if (t == 47) {
  23760. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23761. .taskJson[index].toolChoose[i].sentenceList
  23762. ? JSON.parse(
  23763. JSON.stringify(
  23764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23765. index
  23766. ].toolChoose[i].sentenceList
  23767. )
  23768. )
  23769. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23770. for (var q = 0; q < this.sentenceList.length; q++) {
  23771. this.sentenceList[q].chooseSenList = [];
  23772. this.sentenceList[q].addChangeSen = [];
  23773. this.sentenceList[q].addChangeSen = JSON.parse(
  23774. JSON.stringify(this.sentenceList[q].addSentence)
  23775. );
  23776. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23777. q
  23778. ].rightAnswer.length;
  23779. }
  23780. this.dialogVisibleSentenceTeacher = true;
  23781. } else if (t == 48) {
  23782. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23783. .taskJson[index].toolChoose[i].tableJson
  23784. ? JSON.parse(
  23785. JSON.stringify(
  23786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23787. index
  23788. ].toolChoose[i].tableJson
  23789. )
  23790. )
  23791. : { text: "" };
  23792. if (this.worksStudent[i].length) {
  23793. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23794. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23795. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23796. break;
  23797. }
  23798. }
  23799. }
  23800. this.dialogVisibleTableTeacher = true;
  23801. } else if (t == 40) {
  23802. if (this.evalCount > 0) {
  23803. this.updateCount(this.evalCount, t);
  23804. } else {
  23805. this.evalCount++;
  23806. a = this.evalCount;
  23807. this.toolsCount(a, t);
  23808. }
  23809. this.eScore = { eBzText: "", eStar: [] };
  23810. if (this.worksStudent[i].length) {
  23811. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23812. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23813. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23814. this.rateJson = this.chapInfoList[
  23815. this.courseType
  23816. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23817. break;
  23818. } else {
  23819. this.rateJson = this.chapInfoList[
  23820. this.courseType
  23821. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23822. }
  23823. }
  23824. } else {
  23825. this.rateJson = this.chapInfoList[
  23826. this.courseType
  23827. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23828. }
  23829. this.isStar = false;
  23830. this.studentEvalDialogVisibleTeacher = true;
  23831. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23832. window.topU.postMessage(
  23833. {
  23834. tools: t + "teacher",
  23835. cid: this.id,
  23836. stage: this.courseType,
  23837. task: this.taskCount,
  23838. tool: i,
  23839. student: this.sStudent
  23840. },
  23841. "*"
  23842. );
  23843. }else if (t == 72) {
  23844. if (!document.fullscreenElement) {
  23845. this.enterFullScreen();
  23846. }
  23847. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23848. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23849. }
  23850. },
  23851. openCocoPi(tool, i, uid, uname) {
  23852. let student = {
  23853. userid: uid,
  23854. student: uname
  23855. };
  23856. if (tool == 57) {
  23857. window.topU.postMessage(
  23858. {
  23859. tools: tool + "teacher",
  23860. cid: this.id,
  23861. stage: this.courseType,
  23862. task: this.taskCount,
  23863. tool: i,
  23864. student: student
  23865. },
  23866. "*"
  23867. );
  23868. }
  23869. },
  23870. setRightAnswer(s, i, j) {
  23871. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23872. if (
  23873. this.sentenceList[i].chooseSenList[q] == undefined ||
  23874. this.sentenceList[i].chooseSenList[q] == ""
  23875. ) {
  23876. this.sentenceList[i].chooseSenList[q] = s;
  23877. this.sentenceList[i].addChangeSen[j] = "";
  23878. break;
  23879. }
  23880. }
  23881. this.$forceUpdate();
  23882. },
  23883. returnCard(r, i, j) {
  23884. var a = this.sentenceList[i].addSentence.indexOf(r);
  23885. this.sentenceList[i].chooseSenList[j] = "";
  23886. this.sentenceList[i].addChangeSen[a] = r;
  23887. this.$forceUpdate();
  23888. },
  23889. // addSentenceTool() {
  23890. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23891. // this.taskCount
  23892. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23893. // this.sentenceList = [
  23894. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23895. // ];
  23896. // this.dialogVisibleSentence = false;
  23897. // },
  23898. toolsCount(a, t) {
  23899. let params = {
  23900. cid: this.id,
  23901. chid: this.courseType,
  23902. uid: this.userid,
  23903. tid: t,
  23904. count: a
  23905. };
  23906. this.ajax
  23907. .get(this.$store.state.api + "insertToolsCount", params)
  23908. .then(res => {
  23909. this.selectCount();
  23910. })
  23911. .catch(err => {
  23912. console.error(err);
  23913. });
  23914. },
  23915. updateCount(c, t) {
  23916. c++;
  23917. let params = {
  23918. cid: this.id,
  23919. chid: this.courseType,
  23920. uid: this.userid,
  23921. tid: t,
  23922. count: c
  23923. };
  23924. this.ajax
  23925. .get(this.$store.state.api + "updateToolsCount", params)
  23926. .then(res => {
  23927. this.selectCount();
  23928. })
  23929. .catch(err => {
  23930. console.error(err);
  23931. });
  23932. },
  23933. checkEva() {
  23934. if (this.evalua != "") {
  23935. for (var i = 0; i < this.evaJuri.length; i++) {
  23936. if (this.evalua == this.evaJuri[i].id) {
  23937. this.eTitle = this.evaJuri[i].title;
  23938. this.eJson = JSON.parse(this.evaJuri[i].content);
  23939. }
  23940. }
  23941. this.$forceUpdate();
  23942. setTimeout(() => {
  23943. this.setMindData();
  23944. }, 0);
  23945. }
  23946. },
  23947. selectEva() {
  23948. let params = {
  23949. oid: this.oid
  23950. };
  23951. this.ajax
  23952. .get(this.$store.state.api + "selectAllEvaluation", params)
  23953. .then(res => {
  23954. this.evaJuri = res.data[0];
  23955. })
  23956. .catch(err => {
  23957. console.error(err);
  23958. });
  23959. },
  23960. setMindData() {
  23961. this.data.data = [];
  23962. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23963. let _eJson = Object.keys(this.eJson);
  23964. let _e = this.eJson;
  23965. for (let i = 0; i < _eJson.length; i++) {
  23966. let element = _e[_eJson[i]];
  23967. this.data.data.push({
  23968. id: element.id,
  23969. parentid: "root",
  23970. topic: element.name
  23971. });
  23972. let _eJsonc = Object.keys(element.child);
  23973. let _e2 = element.child;
  23974. for (let j = 0; j < _eJsonc.length; j++) {
  23975. let _ec = _e2[_eJsonc[j]];
  23976. this.data.data.push({
  23977. id: _ec.id,
  23978. parentid: element.id,
  23979. topic: _ec.name
  23980. });
  23981. let _eJsonz = Object.keys(_ec.child);
  23982. let _e3 = _ec.child;
  23983. for (let z = 0; z < _eJsonz.length; z++) {
  23984. let _ez = _e3[_eJsonz[z]];
  23985. this.data.data.push({
  23986. id: _ez.id,
  23987. parentid: _ec.id,
  23988. topic: _ez.name
  23989. });
  23990. }
  23991. }
  23992. }
  23993. this.$forceUpdate();
  23994. },
  23995. checkFileFull(type, url) {
  23996. this.fullDialogVisible = true;
  23997. this.fulltype = type;
  23998. this.fullUrl = url;
  23999. },
  24000. async checkFileFull1(t, f) {
  24001. this.fullDialogVisible = true;
  24002. if (t == 6) {
  24003. this.fulltype = 1;
  24004. this.fullUrl = JSON.parse(JSON.stringify(f));
  24005. } else if (t == 8) {
  24006. this.fulltype = 2;
  24007. this.fullUrl = f.url;
  24008. }else if (t == 15) {
  24009. this.fulltype = 4;
  24010. this.fullUrl = f.url;
  24011. } else if (
  24012. t == 3 &&
  24013. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  24014. "PDF"
  24015. ) {
  24016. this.fulltype = 3;
  24017. this.fullUrl = f.url;
  24018. } else if (t == 3) {
  24019. this.fulltype = 2;
  24020. let _uuurl = await this.checkLink(f.url);
  24021. this.fullUrl =
  24022. "https://view.officeapps.live.com/op/view.aspx?src=" +
  24023. encodeURIComponent(_uuurl);
  24024. }
  24025. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  24026. },
  24027. openSname(n, id, i, uid) {
  24028. this.snameWid = id;
  24029. this.worksSName = n;
  24030. this.worksSid = uid == n ? "" : uid;
  24031. this.toolindex = i;
  24032. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  24033. if (!this.uploadCid) {
  24034. this.$message.error(
  24035. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  24036. );
  24037. return;
  24038. }
  24039. this.selectUploadStudent(1);
  24040. },
  24041. updateName() {
  24042. let params = {
  24043. n: this.worksSName,
  24044. cid: this.snameWid
  24045. };
  24046. this.ajax
  24047. .get(this.$store.state.api + "updateCourseWorksName", params)
  24048. .then(res => {
  24049. this.$message({
  24050. message: "修改成功",
  24051. type: "success"
  24052. });
  24053. this.dialogVisibleSname = false;
  24054. this.getCourseDetail(2);
  24055. this.snameWid = "";
  24056. this.worksSName = "";
  24057. })
  24058. .catch(err => {
  24059. console.error(err);
  24060. });
  24061. },
  24062. downloadFile2(f) {
  24063. // const loading = this.$loading.service({
  24064. // background: "rgba(255, 255, 255, 0.7)",
  24065. // target: document.body,
  24066. // text: "文件加载中...",
  24067. // });
  24068. // let url2 = f.url;
  24069. // let _url2 = "";
  24070. // if (
  24071. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24072. // ) {
  24073. // _url2 = url2.split(
  24074. // "https://view.officeapps.live.com/op/view.aspx?src="
  24075. // )[1];
  24076. // } else {
  24077. // _url2 = url2;
  24078. // }
  24079. // let params = {
  24080. // url: _url2,
  24081. // name: f.name,
  24082. // };
  24083. // this.ajax
  24084. // .get(this.$store.state.api + "download", params)
  24085. // .then((res) => {
  24086. // loading.close();
  24087. // let content = res.data.data.data;
  24088. // let ab = new ArrayBuffer(content.length);
  24089. // let view = new Uint8Array(ab);
  24090. // for (var i = 0; i < content.length; ++i) {
  24091. // view[i] = content[i];
  24092. // }
  24093. // let elink = document.createElement("a");
  24094. // elink.download = f.name;
  24095. // elink.style.display = "none";
  24096. // let blob = new Blob([ab], {
  24097. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  24098. // });
  24099. // elink.href = URL.createObjectURL(blob);
  24100. // document.body.appendChild(elink);
  24101. // elink.click();
  24102. // document.body.removeChild(elink);
  24103. // })
  24104. // .catch((err) => {
  24105. // loading.close();
  24106. // console.error(err);
  24107. // });
  24108. var credentials = {
  24109. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24110. secretAccessKey: "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"
  24111. }; //秘钥形式的登录上传
  24112. window.AWS.config.update(credentials);
  24113. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24114. let url2 = f.url;
  24115. let _url2 = "";
  24116. if (
  24117. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24118. ) {
  24119. _url2 = url2.split(
  24120. "https://view.officeapps.live.com/op/view.aspx?src="
  24121. )[1];
  24122. } else {
  24123. _url2 = url2;
  24124. }
  24125. let _this = this;
  24126. _this.downLoading = true;
  24127. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24128. let name = decodeURIComponent(
  24129. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24130. );
  24131. var params = {
  24132. Bucket: "ccrb",
  24133. Key: name
  24134. };
  24135. s3.getObject(params, function(err, data) {
  24136. _this.downLoading = false;
  24137. if (err) console.log(err, err.stack);
  24138. // an error occurred
  24139. else {
  24140. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24141. let a = document.createElement("a");
  24142. a.name = f.name;
  24143. a.href = url;
  24144. a.download = f.name;
  24145. a.click();
  24146. console.log(data);
  24147. } // sxuccessful response
  24148. });
  24149. return;
  24150. let url = f.url;
  24151. let _url = "";
  24152. if (
  24153. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24154. ) {
  24155. _url = url.split(
  24156. "https://view.officeapps.live.com/op/view.aspx?src="
  24157. )[1];
  24158. } else {
  24159. _url = url;
  24160. }
  24161. _this.downLoading = true;
  24162. // const loading = _this.$loading.service({
  24163. // background: "rgba(255, 255, 255, 0.7)",
  24164. // target: document.body,
  24165. // text: "文件加载中...",
  24166. // });
  24167. let x = new XMLHttpRequest();
  24168. x.open("GET", _url, true);
  24169. x.responseType = "blob";
  24170. x.onload = function() {
  24171. _this.downLoading = false;
  24172. // loading.close();
  24173. let url = window.URL.createObjectURL(new Blob([x.response]));
  24174. let a = document.createElement("a");
  24175. a.name = f.name;
  24176. a.href = url;
  24177. a.download = f.name;
  24178. a.click();
  24179. };
  24180. x.send();
  24181. },
  24182. downloadFile(url) {
  24183. let hz = url.substring(url.lastIndexOf(".") + 1);
  24184. if (hz == "txt" || hz == "md") {
  24185. this.lookTxt(url);
  24186. return;
  24187. }
  24188. var credentials = {
  24189. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24190. secretAccessKey: "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"
  24191. }; //秘钥形式的登录上传
  24192. window.AWS.config.update(credentials);
  24193. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24194. let url2 = url;
  24195. let _url2 = "";
  24196. if (
  24197. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24198. ) {
  24199. _url2 = url2.split(
  24200. "https://view.officeapps.live.com/op/view.aspx?src="
  24201. )[1];
  24202. } else {
  24203. _url2 = url2;
  24204. }
  24205. const loading2 = this.$loading.service({
  24206. background: "rgba(255, 255, 255, 0.7)",
  24207. target: document.body,
  24208. text: "文件加载中..."
  24209. });
  24210. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24211. let name = decodeURIComponent(
  24212. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24213. );
  24214. var params = {
  24215. Bucket: "ccrb",
  24216. Key: name
  24217. };
  24218. s3.getObject(params, function(err, data) {
  24219. loading2.close();
  24220. if (err) console.log(err, err.stack);
  24221. // an error occurred
  24222. else {
  24223. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24224. let a = document.createElement("a");
  24225. a.name = name;
  24226. a.href = url;
  24227. a.download = name;
  24228. a.click();
  24229. console.log(data);
  24230. } // sxuccessful response
  24231. });
  24232. return;
  24233. let _this = this;
  24234. let _url = "";
  24235. if (
  24236. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24237. ) {
  24238. _url = url.split(
  24239. "https://view.officeapps.live.com/op/view.aspx?src="
  24240. )[1];
  24241. } else {
  24242. _url = url;
  24243. }
  24244. const x = new XMLHttpRequest();
  24245. x.open("GET", _url, true);
  24246. x.responseType = "blob";
  24247. const loading = _this.$loading.service({
  24248. background: "rgba(255, 255, 255, 0.7)",
  24249. target: document.body,
  24250. text: "文件加载中..."
  24251. });
  24252. // _this.$message.success("文件下载中...");
  24253. x.onload = function(e) {
  24254. loading.close();
  24255. let content = x.response;
  24256. let elink = document.createElement("a");
  24257. elink.download = decodeURI(
  24258. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24259. );
  24260. elink.style.display = "none";
  24261. let blob = new Blob([content]);
  24262. elink.href = URL.createObjectURL(blob);
  24263. document.body.appendChild(elink);
  24264. elink.click();
  24265. document.body.removeChild(elink);
  24266. };
  24267. x.send();
  24268. },
  24269. openLine(url) {
  24270. window.open(url);
  24271. },
  24272. resize() {
  24273. if (document.getElementsByClassName("box_course").length) {
  24274. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24275. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24276. if (this.showType == 2 || this.showType == 3) {
  24277. document.getElementsByClassName("navBox")[0].style.height =
  24278. a - 40 + 0 + "px";
  24279. } else {
  24280. document.getElementsByClassName("navBox")[0].style.height =
  24281. a - 40 + "px";
  24282. }
  24283. }
  24284. this.Stbodywidth =
  24285. document.getElementsByClassName("student_body").length &&
  24286. document.getElementsByClassName("student_body")[0].offsetWidth;
  24287. },
  24288. closeDraw() {
  24289. this.bg = null;
  24290. this.drawShow = false;
  24291. },
  24292. showPicturePaint(url) {
  24293. let params = {
  24294. img: url
  24295. };
  24296. this.ajax
  24297. .get(this.$store.state.api + "imgToBase64", params)
  24298. .then(res => {
  24299. this.drawShow = true;
  24300. this.bg = res.data[0].img;
  24301. })
  24302. .catch(err => {
  24303. console.error(err);
  24304. });
  24305. },
  24306. addImgDraw(base64) {
  24307. let file = { name: "批注图.png" };
  24308. let img = this.dataUrlToFile(base64, file);
  24309. this.beforeUpload1(img, 5);
  24310. },
  24311. addImgDrawImG(url) {
  24312. // console.log(url);
  24313. let params = [
  24314. {
  24315. wid: this.commentDetail.wid,
  24316. img: url
  24317. }
  24318. ];
  24319. this.ajax
  24320. .post(this.$store.state.api + "updateCourseWorks", params)
  24321. .then(res => {
  24322. this.$message({
  24323. message: "提交成功",
  24324. type: "success"
  24325. });
  24326. this.drawShow = false;
  24327. this.bg = "";
  24328. this.selectSWorks();
  24329. this.selectStudent();
  24330. })
  24331. .catch(err => {
  24332. this.$message.error("提交失败");
  24333. console.error(err);
  24334. });
  24335. },
  24336. deletePicturePaint() {
  24337. this.$confirm("确定删除此批注吗?", "提示", {
  24338. confirmButtonText: "确定",
  24339. cancelButtonText: "取消",
  24340. type: "warning"
  24341. })
  24342. .then(() => {
  24343. let params = [
  24344. {
  24345. wid: this.commentDetail.wid,
  24346. img: ""
  24347. }
  24348. ];
  24349. this.ajax
  24350. .post(this.$store.state.api + "updateCourseWorks", params)
  24351. .then(res => {
  24352. this.$message({
  24353. message: "删除成功",
  24354. type: "success"
  24355. });
  24356. this.selectSWorks();
  24357. this.selectStudent();
  24358. })
  24359. .catch(err => {
  24360. this.$message.error("删除失败");
  24361. console.error(err);
  24362. });
  24363. })
  24364. .catch(() => {});
  24365. },
  24366. getAudioVideo(constraintsData) {
  24367. if (navigator.mediaDevices === undefined) {
  24368. navigator.mediaDevices = {};
  24369. }
  24370. if (navigator.mediaDevices.getUserMedia === undefined) {
  24371. navigator.mediaDevices.getUserMedia = function(constraints) {
  24372. // 首先,如果有getUserMedia的话,就获得它
  24373. var getUserMedia =
  24374. navigator.getUserMedia ||
  24375. navigator.webkitGetUserMedia ||
  24376. navigator.mozGetUserMedia ||
  24377. navigator.msGetUserMedia;
  24378. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24379. if (!getUserMedia) {
  24380. return Promise.reject({ code: 404 });
  24381. }
  24382. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24383. return new Promise(function(resolve, reject) {
  24384. getUserMedia.call(navigator, constraints, resolve, reject);
  24385. });
  24386. };
  24387. }
  24388. return navigator.mediaDevices.getUserMedia(constraintsData);
  24389. },
  24390. /**
  24391. * 开始录制
  24392. */
  24393. startRecording(callback) {
  24394. let _function = screenStream => {
  24395. this.addStreamStopListener(screenStream, () => {
  24396. console.log("流停止监听");
  24397. this.stopRecording();
  24398. this.$emit("streamStop", {});
  24399. // this.stopRecording();
  24400. });
  24401. var options = {
  24402. type: "video",
  24403. mimeType: "video/webm",
  24404. disableLogs: false,
  24405. getNativeBlob: false, // enable it for longer recordings
  24406. ignoreMutedMedia: false
  24407. };
  24408. // this.video.srcObject = screenStream;
  24409. this.recorder = RecordRTC(screenStream, options);
  24410. this.recorder.startRecording();
  24411. this.recorder.screen = screenStream;
  24412. this.videoStart = true;
  24413. // callback(true);
  24414. };
  24415. this.getAudioVideo({ audio: true })
  24416. .then(res => {
  24417. this.captureScreen(_function, true);
  24418. console.log("已点击允许,开启成功");
  24419. })
  24420. .catch(err => {
  24421. // console.log('浏览器不支持,请更换浏览器')
  24422. // } else {
  24423. this.captureScreen(_function, false);
  24424. console.log("请检查是否存在麦克风");
  24425. });
  24426. },
  24427. /**
  24428. * 停止录制
  24429. */
  24430. stopRecording(callback) {
  24431. this.recorder.stopRecording(() => {
  24432. // this.video.src = this.video.srcObject = null;
  24433. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24434. const url = URL.createObjectURL(this.recorder.getBlob());
  24435. const a = document.createElement("a"); //this.fileName+
  24436. let videoFile = new File(
  24437. [this.recorder.getBlob()],
  24438. this.courseDetail.title + "录屏.mp4",
  24439. {
  24440. type: "video/mp4"
  24441. }
  24442. );
  24443. let downloadUrl = URL.createObjectURL(videoFile);
  24444. if (this.$refs.classRoomHelperRef) {
  24445. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  24446. }
  24447. document.body.appendChild(a);
  24448. a.style.display = "none";
  24449. a.href = url;
  24450. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24451. a.click();
  24452. this.recorder.screen.stop();
  24453. this.recorder.destroy();
  24454. this.recorder = null;
  24455. this.videoStart = false;
  24456. // callback(false);
  24457. });
  24458. },
  24459. //初始化
  24460. captureScreen(callback, type) {
  24461. if (navigator.getDisplayMedia) {
  24462. //录制结束,文件下载
  24463. navigator
  24464. .getDisplayMedia({
  24465. video: true
  24466. })
  24467. .then(screenStream => {
  24468. if (type) {
  24469. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24470. screenStream.addTrack(mic.getTracks()[0]);
  24471. callback(screenStream);
  24472. });
  24473. } else {
  24474. callback(screenStream);
  24475. }
  24476. })
  24477. .catch(function(error) {
  24478. console.log("error", error);
  24479. });
  24480. } else if (navigator.mediaDevices.getDisplayMedia) {
  24481. navigator.mediaDevices
  24482. .getDisplayMedia({
  24483. video: true
  24484. })
  24485. .then(screenStream => {
  24486. if (type) {
  24487. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24488. screenStream.addTrack(mic.getTracks()[0]);
  24489. callback(screenStream);
  24490. });
  24491. } else {
  24492. callback(screenStream);
  24493. }
  24494. })
  24495. .catch(function(error) {
  24496. console.log("error", error);
  24497. });
  24498. } else {
  24499. var error = "getDisplayMedia API are not supported in this browser.";
  24500. console.log("error", error);
  24501. alert(error);
  24502. }
  24503. },
  24504. //流监听
  24505. addStreamStopListener(stream, callback) {
  24506. stream.addEventListener(
  24507. "ended",
  24508. function() {
  24509. callback();
  24510. callback = function() {};
  24511. },
  24512. false
  24513. );
  24514. stream.addEventListener(
  24515. "inactive",
  24516. function() {
  24517. callback();
  24518. callback = function() {};
  24519. },
  24520. false
  24521. );
  24522. stream.getTracks().forEach(function(track) {
  24523. track.addEventListener(
  24524. "ended",
  24525. function() {
  24526. callback();
  24527. callback = function() {};
  24528. },
  24529. false
  24530. );
  24531. track.addEventListener(
  24532. "inactive",
  24533. function() {
  24534. callback();
  24535. callback = function() {};
  24536. },
  24537. false
  24538. );
  24539. });
  24540. },
  24541. updateGroup() {
  24542. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24543. this.dialogVisibleGroup2 = true;
  24544. },
  24545. numberPan() {
  24546. if (
  24547. /[^\d]/.test(this.groupJson.number) ||
  24548. this.groupJson.number < 2 ||
  24549. this.groupJson.number > 10
  24550. ) {
  24551. this.$message.error("请输入2-10的数字");
  24552. this.groupJson.number = "";
  24553. }
  24554. },
  24555. updateGroupJson() {
  24556. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24557. if (
  24558. this.groupStudentUid[this.toolindex][i].length >
  24559. this.groupJson2.number
  24560. ) {
  24561. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24562. return;
  24563. }
  24564. }
  24565. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24566. this.islock = this.groupJson.islock == 1 ? true : false;
  24567. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24568. this.taskCount
  24569. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24570. let params = [
  24571. {
  24572. cid: this.id,
  24573. chapters: JSON.stringify(this.chapInfoList),
  24574. uid: this.userid,
  24575. unitIndex: this.courseType
  24576. }
  24577. ];
  24578. this.ajax
  24579. .post(this.$store.state.api + "updateWorkNew4", params)
  24580. .then(res => {
  24581. this.$message.success("设置成功");
  24582. this.getCourseDetail(2);
  24583. this.dialogVisibleGroup2 = false;
  24584. this.groupJson2 = {};
  24585. this.$forceUpdate();
  24586. })
  24587. .catch(err => {
  24588. this.$message.error("网络不佳");
  24589. console.error(err);
  24590. });
  24591. },
  24592. lockChair() {
  24593. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24594. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24595. this.updateGroupJson();
  24596. },
  24597. selectGroup(index) {
  24598. this.getCourseDetail(2, index);
  24599. },
  24600. joinGroup(index) {
  24601. if (this.groupJson.islock == 2) {
  24602. this.$message.error("位置已被锁定,无法加入");
  24603. return;
  24604. }
  24605. if (
  24606. this.groupStudent[this.toolindex][index].length >
  24607. this.groupJson.number ||
  24608. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24609. ) {
  24610. this.$message.error("位置已满,无法加入");
  24611. return;
  24612. }
  24613. let params = [
  24614. {
  24615. cid: this.id,
  24616. stage: this.courseType,
  24617. task: this.taskCount,
  24618. tool: this.toolindex,
  24619. g: index,
  24620. uid: this.userid
  24621. }
  24622. ];
  24623. this.ajax
  24624. .post(this.$store.state.api + "joinGroup", params)
  24625. .then(res => {
  24626. this.$message.success("加入成功");
  24627. this.getCourseDetail(2);
  24628. })
  24629. .catch(err => {
  24630. this.$message.error("网络不佳");
  24631. console.error(err);
  24632. });
  24633. },
  24634. exitGroup(id) {
  24635. if (this.groupJson.islock == 2) {
  24636. this.$message.error("位置已被锁定,无法退出");
  24637. return;
  24638. }
  24639. let params = [
  24640. {
  24641. gid: id
  24642. }
  24643. ];
  24644. this.ajax
  24645. .post(this.$store.state.api + "exitGroup", params)
  24646. .then(res => {
  24647. this.$message.success("退出成功");
  24648. this.getCourseDetail(2);
  24649. })
  24650. .catch(err => {
  24651. this.$message.error("网络不佳");
  24652. console.error(err);
  24653. });
  24654. },
  24655. groupUpload(index, task, gindex) {
  24656. this.taskCount = task;
  24657. this.toolindex = index;
  24658. this.groupIndex = gindex;
  24659. this.dialogVisibleGroupWork = true;
  24660. },
  24661. updateGroupChair(user) {
  24662. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24663. el.label = index;
  24664. return index != user.group;
  24665. });
  24666. this.updateGroupUser = user;
  24667. this.dialogVisibleUpdateGroup = true;
  24668. },
  24669. updateChair() {
  24670. if (
  24671. this.groupStudent[this.toolindex][this.checkChair].length >
  24672. this.groupJson.number ||
  24673. this.groupStudent[this.toolindex][this.checkChair].length ==
  24674. this.groupJson.number
  24675. ) {
  24676. this.$message.error("位置已满,无法加入");
  24677. return;
  24678. }
  24679. let params = [
  24680. {
  24681. cid: this.id,
  24682. stage: this.courseType,
  24683. task: this.taskCount,
  24684. tool: this.toolindex,
  24685. g: this.checkChair,
  24686. uid: this.updateGroupUser.userid
  24687. }
  24688. ];
  24689. this.ajax
  24690. .post(this.$store.state.api + "joinGroup", params)
  24691. .then(res => {
  24692. this.$message.success("修改成功");
  24693. this.updateGroupUser = {};
  24694. this.checkChair = "";
  24695. this.updateGroupArray = {};
  24696. this.dialogVisibleUpdateGroup = false;
  24697. this.getCourseDetail(2);
  24698. })
  24699. .catch(err => {
  24700. this.$message.error("网络不佳");
  24701. console.error(err);
  24702. });
  24703. },
  24704. deleteGroupChair(gindex) {
  24705. this.checkDeleteGroup = [];
  24706. this.deleteGroupUser = JSON.parse(
  24707. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24708. );
  24709. this.deleteGroupArray = this.groupJson.group[gindex];
  24710. this.groupIndex = gindex;
  24711. this.dialogVisibleDeleteGroup = true;
  24712. },
  24713. async deleteChair() {
  24714. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24715. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  24716. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24717. this.checkDeleteGroup[i]
  24718. )
  24719. ];
  24720. let params = [
  24721. {
  24722. gid: gid.id
  24723. }
  24724. ];
  24725. var a = await this.deleteChairA(params);
  24726. if (i == this.checkDeleteGroup.length - 1) {
  24727. this.$message.success("退出成功");
  24728. this.dialogVisibleDeleteGroup = false;
  24729. this.deleteGroupUser = [];
  24730. this.deleteGroupArray = {};
  24731. this.groupIndex = "";
  24732. this.checkDeleteGroup = [];
  24733. this.getCourseDetail(2);
  24734. }
  24735. }
  24736. },
  24737. deleteChairA(params) {
  24738. return new Promise((resolve, reject) => {
  24739. this.ajax
  24740. .post(this.$store.state.api + "exitGroup", params)
  24741. .then(res => {
  24742. resolve(1);
  24743. })
  24744. .catch(err => {
  24745. this.$message.error("网络不佳");
  24746. console.error(err);
  24747. });
  24748. });
  24749. },
  24750. contract(i) {
  24751. if (this.isCloseList[i].isClose == 0) {
  24752. this.isCloseList[i].isClose = 1;
  24753. } else {
  24754. this.isCloseList[i].isClose = 0;
  24755. }
  24756. this.$forceUpdate();
  24757. },
  24758. openWordCloud(toolindex) {
  24759. this.wordCloudData = '';
  24760. let array = [];
  24761. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24762. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24763. array.push({ name: works });
  24764. }
  24765. if (this.isGroup) {
  24766. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24767. let works = this.courseGroup.group[i].works[toolindex];
  24768. for (var j = 0; j < works.length; j++) {
  24769. let answer = JSON.parse(works[j].works)[0].answer;
  24770. array.push({ name: answer });
  24771. }
  24772. }
  24773. }
  24774. let _result = ''
  24775. array.forEach(e=>{
  24776. _result +=e.name+','
  24777. })
  24778. this.wordCloudData = _result;
  24779. this.dialogVisibleWordCloud = true;
  24780. this.wordCloudKey += 1;
  24781. },
  24782. openTips(i) {
  24783. this.tipsIndex = i;
  24784. this.downDialogVisible = true;
  24785. },
  24786. uploadWorks() {
  24787. this.$confirm("确定导出作业吗?", "提示", {
  24788. confirmButtonText: "确定",
  24789. cancelButtonText: "取消",
  24790. type: "warning"
  24791. })
  24792. .then(() => {
  24793. const loading = this.$loading.service({
  24794. background: "rgba(255, 255, 255, 0.7)",
  24795. target: document.body,
  24796. text: "文件加载中..."
  24797. });
  24798. const _worksStudent = this.worksStudent;
  24799. let url = [];
  24800. var counts = {};
  24801. for (var l = 0; l < _worksStudent[i].length; l++) {
  24802. var item = _worksStudent[i][l];
  24803. var name = item.sName;
  24804. if (!counts.hasOwnProperty(name)) {
  24805. counts[name] = 0;
  24806. } else {
  24807. counts[name]++;
  24808. }
  24809. if (counts[name] > 0) {
  24810. item.sName += " (" + counts[name] + ")";
  24811. }
  24812. }
  24813. for (var l = 0; l < _worksStudent[i].length; l++) {
  24814. var item = _worksStudent[i][l];
  24815. if (
  24816. item.works.indexOf(
  24817. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24818. ) !== -1 &&
  24819. item.works.indexOf("img") === -1
  24820. ) {
  24821. url.push({ name: item.sName, url: item.works });
  24822. }
  24823. }
  24824. // var toolList = [
  24825. // { name: "电子白板", tool: 1 },
  24826. // { name: "思维导图", tool: 3 },
  24827. // { name: "协同文档", tool: 6 },
  24828. // { name: "思维网格", tool: 7 },
  24829. // { name: "素材库", tool: 8 },
  24830. // { name: "学习资料", tool: 17 },
  24831. // { name: "便签", tool: 2 },
  24832. // { name: "问卷调查", tool: 4 },
  24833. // { name: "选择题", tool: 45 },
  24834. // { name: "倒计时", tool: 10 },
  24835. // { name: "问答", tool: 15 },
  24836. // { name: "课程设计", tool: 26 },
  24837. // { name: "训练服务器", tool: 18 },
  24838. // { name: "作业提交", tool: 16 },
  24839. // { name: "批量上传", tool: 50 },
  24840. // { name: "AIoT Blockly", tool: 21 },
  24841. // { name: "AI Python", tool: 23 },
  24842. // { name: "AI Blockly", tool: 24 },
  24843. // { name: "目标管理", tool: 25 },
  24844. // { name: "数学画板", tool: 31 },
  24845. // { name: "翻译", tool: 28 },
  24846. // { name: "魔盒识字", tool: 37 },
  24847. // { name: "数学画板", tool: 31 },
  24848. // { name: "24点", tool: 38 },
  24849. // { name: "GeoGebra", tool: 39 },
  24850. // { name: "源码编辑", tool: 32 },
  24851. // { name: "个人评价", tool: 40 },
  24852. // { name: "选择匹配", tool: 41 },
  24853. // { name: "汉字宫", tool: 44 },
  24854. // { name: "排序", tool: 47 },
  24855. // { name: "表格", tool: 48 },
  24856. // { name: "文档", tool: 52 },
  24857. // { name: "学生分组", tool: 49 },
  24858. // { name: "CocoPi", tool: 57 },
  24859. // { name: "模拟驾驶", tool: 58 },
  24860. // { name: "路径搜索", tool: 59 },
  24861. // { name: "深度学习", tool: 60 },
  24862. // { name: "全历史", tool: 61 },
  24863. // { name: "交互视频", tool: 62 },
  24864. // { name: "海龟编程", tool: 63 },
  24865. // { name: "挑人", tool: 65 },
  24866. // { name: "公式编辑", tool: 66 },
  24867. // { name: "分子结构", tool: 67 },
  24868. // { name: "时间轴", tool: 68 },
  24869. // ];
  24870. // var toolName = "";
  24871. // for(var w = 0;w<toolList.length;w++){
  24872. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24873. // toolName = toolList[w].name;
  24874. // }
  24875. // }
  24876. console.log(url);
  24877. this.downLoadAll(url, loading);
  24878. })
  24879. .catch(() => {});
  24880. },
  24881. downLoadAll(url, loading) {
  24882. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24883. const zip = new JSZip();
  24884. const cache = {};
  24885. const promises = [];
  24886. data.forEach(item => {
  24887. const promise = getFile(item.url).then(data => {
  24888. if (data.data != 1) {
  24889. // 下载文件, 并存成ArrayBuffer对象
  24890. const file_name =
  24891. item.name +
  24892. "." +
  24893. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24894. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24895. cache[file_name] = data.data;
  24896. }
  24897. });
  24898. promises.push(promise);
  24899. });
  24900. Promise.all(promises).then(() => {
  24901. zip.generateAsync({ type: "blob" }).then(content => {
  24902. // 生成二进制流
  24903. FileSaver.saveAs(
  24904. content,
  24905. this.courseDetail.title + "-" + "作业提交工具.zip"
  24906. ); // 利用file-saver保存文件 自定义文件名
  24907. setTimeout(() => {
  24908. loading.close();
  24909. }, 2000);
  24910. });
  24911. });
  24912. },
  24913. pickStudent(stu) {
  24914. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24915. return;
  24916. }
  24917. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24918. confirmButtonText: "确定",
  24919. cancelButtonText: "取消",
  24920. type: "warning"
  24921. })
  24922. .then(() => {
  24923. let params = [
  24924. {
  24925. uid: stu.userid,
  24926. cid: this.id,
  24927. stage: this.courseType,
  24928. task: this.taskCount,
  24929. tool: this.toolindex
  24930. }
  24931. ];
  24932. this.ajax
  24933. .post(this.$store.state.api + "updateCoursePick", params)
  24934. .then(res => {
  24935. this.$message.success("操作成功");
  24936. this.getPick();
  24937. })
  24938. .catch(err => {
  24939. this.$message.error("网络不佳");
  24940. console.error(err);
  24941. });
  24942. })
  24943. .catch(() => {});
  24944. },
  24945. selectUser() {
  24946. let params = {
  24947. userid: this.userid
  24948. };
  24949. this.ajax
  24950. .get(this.$store.state.api + "selectUser", params)
  24951. .then(res => {
  24952. this.userMes = res.data[0];
  24953. })
  24954. .catch(err => {
  24955. console.error(err);
  24956. });
  24957. },
  24958. setEngText(i) {
  24959. this.newEngIndex = i;
  24960. this.$forceUpdate();
  24961. },
  24962. addCorrect() {
  24963. this.$confirm("你确定提交批改嘛?", "提示", {
  24964. confirmButtonText: "确定",
  24965. showCancelButton: false,
  24966. closeOnClickModal: false,
  24967. type: "warning"
  24968. })
  24969. .then(() => {
  24970. let params = {
  24971. cid: this.id,
  24972. s: parseInt(this.courseType),
  24973. t: this.taskCount,
  24974. tool: this.toolindex,
  24975. wid: this.engWid,
  24976. c: this.userid,
  24977. w:
  24978. this.userMes[0].type == 2
  24979. ? JSON.parse(this.newEnglishList)
  24980. : this.newEngIndex == -1 &&
  24981. this.isNoUserid == true &&
  24982. this.newEnglishList1.length
  24983. ? JSON.stringify(this.oldEnglishJson1)
  24984. : this.newEngIndex == -1
  24985. ? JSON.stringify(this.newEnglishList)
  24986. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24987. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24988. : ""
  24989. };
  24990. this.ajax
  24991. .get(this.$store.state.api + "addEngC", params)
  24992. .then(res => {
  24993. this.$message.success("提交成功");
  24994. this.engUpdateDialogVisible = false;
  24995. })
  24996. .catch(err => {
  24997. console.error(err);
  24998. });
  24999. })
  25000. .catch(() => {});
  25001. },
  25002. selectEngC(id, z) {
  25003. let params = {
  25004. workid: id
  25005. };
  25006. this.ajax
  25007. .get(this.$store.state.api + "selectEngC", params)
  25008. .then(res => {
  25009. if (res.data[0].length == 0) {
  25010. this.newEnglishList.engTitle = z.engTitle;
  25011. this.newEnglishList.engText = z.engText;
  25012. } else {
  25013. var a = res.data[0];
  25014. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  25015. if (this.userMes[0].type == 2) {
  25016. var snum = 0;
  25017. for (var i = 0; i < a.length; i++) {
  25018. if (this.userMes[0].userid == a[i].correct) {
  25019. this.newEnglishList = JSON.parse(a[i].cWork);
  25020. snum = 1;
  25021. }
  25022. }
  25023. if (snum == 0) {
  25024. this.newEnglishList = { engTitle: "", engText: "" };
  25025. this.newEnglishList.engTitle = z.engTitle;
  25026. this.newEnglishList.engText = z.engText;
  25027. }
  25028. } else if (this.userMes[0].type == 1) {
  25029. var num = 0;
  25030. for (var w = 0; w < a.length; w++) {
  25031. if (this.userMes[0].userid == a[w].correct) {
  25032. num = 1;
  25033. }
  25034. }
  25035. if (num == 0) {
  25036. this.isNoUserid = true;
  25037. var c = JSON.parse(JSON.stringify(z));
  25038. this.oldEnglishJson1 = c;
  25039. } else {
  25040. this.isNoUserid = false;
  25041. }
  25042. var b = a.sort((item, index) => {
  25043. console.log(item);
  25044. if (item.correct === this.userMes[0].userid) {
  25045. return -1; // 将a移到前面
  25046. } else if (index.correct === this.userMes[0].userid) {
  25047. return 1; // 将b移到前面
  25048. } else {
  25049. return 0; // 保持默认顺序
  25050. }
  25051. });
  25052. for (var p = 0; p < b.length; p++) {
  25053. for (var y = 0; y < ppp.length; y++) {
  25054. if (b[p].id == ppp[y].id) {
  25055. b[p].cWork = JSON.parse(ppp[y].cWork);
  25056. break;
  25057. }
  25058. }
  25059. }
  25060. this.newEnglishList1 = b;
  25061. }
  25062. }
  25063. this.greyType = false;
  25064. setTimeout(() => {
  25065. this.topHeight = document.querySelectorAll(
  25066. ".engUpTop"
  25067. )[0].offsetHeight;
  25068. if (this.newEnglishList1.length > 0) {
  25069. if (this.isNoUserid == true) {
  25070. this.engListLength = this.newEnglishList1.length + 1;
  25071. this.newEngIndex = -1;
  25072. } else {
  25073. this.engListLength = this.newEnglishList1.length;
  25074. this.newEngIndex = 0;
  25075. }
  25076. }
  25077. if (this.userMes[0].type == 2) {
  25078. this.correctWord = Diff.diffWordsWithSpace(
  25079. this.oldEnglishJson.engText,
  25080. this.newEnglishList.engText
  25081. );
  25082. } else if (
  25083. this.newEngIndex == -1 &&
  25084. this.isNoUserid == true &&
  25085. this.newEnglishList1.length
  25086. ) {
  25087. this.correctWord = Diff.diffWordsWithSpace(
  25088. this.oldEnglishJson.engText,
  25089. this.oldEnglishJson1.engText
  25090. );
  25091. } else if (this.newEngIndex == -1) {
  25092. this.correctWord = Diff.diffWordsWithSpace(
  25093. this.oldEnglishJson.engText,
  25094. this.newEnglishList.engText
  25095. );
  25096. } else if (
  25097. this.newEngIndex > -1 &&
  25098. this.newEnglishList1.length > 0
  25099. ) {
  25100. this.correctWord = Diff.diffWordsWithSpace(
  25101. this.oldEnglishJson.engText,
  25102. this.newEnglishList1[this.newEngIndex].cWork.engText
  25103. );
  25104. }
  25105. }, 500);
  25106. this.engUpdateDialogVisible = true;
  25107. this.$forceUpdate();
  25108. })
  25109. .catch(err => {
  25110. console.error(err);
  25111. });
  25112. },
  25113. getPick() {
  25114. let params = {
  25115. cid: this.id
  25116. };
  25117. this.ajax
  25118. .get(this.$store.state.api + "getPick", params)
  25119. .then(res => {
  25120. let array = [];
  25121. for (var i = 0; i < res.data[0].length; i++) {
  25122. array.push(res.data[0][i].userid);
  25123. }
  25124. this.isPickStudent = array;
  25125. if (array.indexOf(this.userid) !== -1) {
  25126. this.$confirm("你被老师选到啦!", "提示", {
  25127. confirmButtonText: "确定",
  25128. showCancelButton: false,
  25129. closeOnClickModal: false,
  25130. type: "warning"
  25131. })
  25132. .then(() => {
  25133. let pa = [
  25134. {
  25135. uid: this.userid,
  25136. cid: this.id
  25137. }
  25138. ];
  25139. this.ajax
  25140. .post(this.$store.state.api + "deletePick", pa)
  25141. .then(res => {
  25142. this.getPick();
  25143. })
  25144. .catch(err => {
  25145. this.$message.error("网络不佳");
  25146. console.error(err);
  25147. });
  25148. })
  25149. .catch(() => {});
  25150. }
  25151. })
  25152. .catch(err => {
  25153. this.$message.error("网络不佳");
  25154. console.error(err);
  25155. });
  25156. },
  25157. foldEva() {
  25158. if (
  25159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25160. this.taskCount
  25161. ].isEvaFold2
  25162. ) {
  25163. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25164. this.taskCount
  25165. ].isEvaFold2 = false;
  25166. } else {
  25167. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25168. this.taskCount
  25169. ].isEvaFold2 = true;
  25170. setTimeout(() => {
  25171. this.checkEva();
  25172. setTimeout(() => {
  25173. this.checkEva();
  25174. }, 500);
  25175. }, 0);
  25176. }
  25177. this.$forceUpdate();
  25178. },
  25179. panToolHeight(tool) {
  25180. var _tool = document.querySelectorAll("#" + tool)[0];
  25181. var _toolA = _tool ? _tool.offsetHeight : 0;
  25182. var _toolC = 0;
  25183. var _toolC =
  25184. _tool && _tool.children && _tool.children[0]
  25185. ? _tool.children[0].offsetHeight + 50
  25186. : 0;
  25187. let boolean2 = _toolA > _toolC ? true : false;
  25188. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  25189. this.$forceUpdate();
  25190. },
  25191. async checkLink(url) {
  25192. // console.log(url)
  25193. let _url = url;
  25194. try {
  25195. const response = await fetch(url);
  25196. if (!response.ok) {
  25197. _url = await this.checkLink(
  25198. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25199. encodeURIComponent(
  25200. _url.split(
  25201. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  25202. )[1]
  25203. )
  25204. );
  25205. }
  25206. // console.log(response.ok)
  25207. } catch (error) {
  25208. console.error("Error checking link:", error);
  25209. // console.log(false)
  25210. _url = await this.checkLink(
  25211. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25212. encodeURIComponent(
  25213. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  25214. )
  25215. );
  25216. }
  25217. // console.log(_url)
  25218. return _url;
  25219. },
  25220. setClassRoomHelperWidth(width) {
  25221. this.classRoomHelperWidth = width;
  25222. },
  25223. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25224. this.$refs.choseWorksDetailDialogRef.open({
  25225. toolType:tooc,
  25226. tType: this.tType,
  25227. toolIndex: toolIndex
  25228. });
  25229. this.changeSplitScreenBehavior({
  25230. code: 1,
  25231. form: {
  25232. toolType:tooc,
  25233. toolIndex: toolIndex,
  25234. courseType: this.courseType,
  25235. taskCount: this.taskCount,
  25236. type: 0
  25237. }
  25238. });
  25239. },
  25240. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25241. this.$refs.statisticalAnalysisRef.open({
  25242. worksStudent: this.worksStudent[toolIndex],
  25243. tType: this.tType,
  25244. toolIndex: toolIndex
  25245. });
  25246. this.changeSplitScreenBehavior({
  25247. code: 2,
  25248. form: {
  25249. toolType:4,
  25250. courseType: this.courseType,
  25251. taskCount: this.taskCount,
  25252. toolIndex: toolIndex,
  25253. type: 0
  25254. }
  25255. });
  25256. },
  25257. statisticalAnalysisRefresh(toolIndex) {
  25258. this.$refs.statisticalAnalysisRef.refreshData({
  25259. worksStudent: this.worksStudent[toolIndex],
  25260. tType: this.tType,
  25261. toolIndex: toolIndex
  25262. });
  25263. },
  25264. async splitScreenBehavior(type = 0) {
  25265. // return;
  25266. if (this.splitScreenData.loading)
  25267. return this.$message.info("操作过快,请稍等");
  25268. if (type == 0) {
  25269. //关闭分屏
  25270. this.splitScreenData.isOpen = false;
  25271. // this.splitScreenData.userId = "";
  25272. // this.splitScreenData.uid = "";
  25273. this.splitScreenData.behavior = null;
  25274. await this.updateSplitScreenData(1);
  25275. this.$message.success("已关闭分屏模式");
  25276. this.studentFreePreview(false);
  25277. this.OpenJobPreview(false);
  25278. // this.followingMode(false);
  25279. } else if (type == 1) {
  25280. //开启分屏
  25281. this.splitScreenData.isOpen = true;
  25282. this.splitScreenData.userId = this.userid;
  25283. this.splitScreenData.uid = this.splitScreenData.myUid;
  25284. this.splitScreenData.behavior = null;
  25285. let status = await this.updateSplitScreenData(0);
  25286. if (status == 1) {
  25287. this.$message.success("已开启分屏");
  25288. this.studentFreePreview(false);
  25289. this.OpenJobPreview(true);
  25290. this.changeSplitScreenBehavior({form:{}})
  25291. // this.followingMode(true);
  25292. } else {
  25293. this.splitScreenData.isOpen = false;
  25294. this.splitScreenData.userId = "";
  25295. this.splitScreenData.uid = "";
  25296. this.splitScreenData.behavior = null;
  25297. this.$message.success("分屏开启失败");
  25298. }
  25299. }
  25300. },
  25301. enterFullScreen() {
  25302. let element = document.documentElement;
  25303. if (element.requestFullscreen) {
  25304. element.requestFullscreen();
  25305. } else if (element.mozRequestFullScreen) { /* Firefox */
  25306. element.mozRequestFullScreen();
  25307. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25308. element.webkitRequestFullscreen();
  25309. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25310. element.msRequestFullscreen();
  25311. }
  25312. },
  25313. exitFullScreen() {
  25314. if (document.exitFullscreen) {
  25315. document.exitFullscreen();
  25316. } else if (document.mozCancelFullScreen) { /* Firefox */
  25317. document.mozCancelFullScreen();
  25318. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25319. document.webkitExitFullscreen();
  25320. } else if (document.msExitFullscreen) { /* IE/Edge */
  25321. document.msExitFullscreen();
  25322. }
  25323. },
  25324. confirmOpen(){
  25325. this.splitScreenData.isOpen = true;
  25326. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25327. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25328. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25329. this.confirmOpenDig = false
  25330. if (!document.fullscreenElement) {
  25331. this.enterFullScreen();
  25332. }
  25333. if (this.timer2) {
  25334. clearInterval(this.timer2);
  25335. this.timer2 = null;
  25336. console.log('清除定时器');
  25337. }
  25338. this.timer2 = setInterval(()=> {
  25339. this.getSplitScreenData();//获取分屏数据
  25340. }, 1000);
  25341. this.IsLookOpen = flase
  25342. this.$message.success("分屏模式已开启");
  25343. },
  25344. getSplitScreenData() {
  25345. // return;
  25346. // if (this.tType != 1) return;
  25347. let params = {
  25348. cid: this.id
  25349. };
  25350. this.ajax
  25351. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25352. .then(async res => {
  25353. let data = res.data[0][0]["splitScreenData"];
  25354. console.log("获取了分屏数:", data);
  25355. if (data) {
  25356. data = JSON.parse(data);
  25357. if (
  25358. !this.splitScreenData.isOpen &&
  25359. data.isOpen &&
  25360. this.splitScreenData.myUid == data.uid
  25361. ) {
  25362. this.splitScreenData.isOpen = false;
  25363. this.splitScreenData.userId = "";
  25364. this.splitScreenData.uid = "";
  25365. this.splitScreenData.behavior = null;
  25366. await this.updateSplitScreenData(1);
  25367. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25368. this.confirmOpenDig = true
  25369. this.confirmOpenDigData = data
  25370. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25371. this.splitScreenData.isOpen = false;
  25372. this.splitScreenData.userId = "";
  25373. this.splitScreenData.uid = "";
  25374. this.splitScreenData.behavior = null;
  25375. this.$message.error("已结束分屏模式");
  25376. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25377. this.splitScreenData.isOpen = true;
  25378. this.splitScreenData.uid = data.uid;
  25379. this.splitScreenData.userId = data.userId;
  25380. this.splitScreenData.behavior = data.behavior;
  25381. }
  25382. this.doSplitScreenBehavior();
  25383. } else {
  25384. if (this.splitScreenData.isOpen) {
  25385. this.splitScreenData.isOpen = false;
  25386. this.splitScreenData.userId = "";
  25387. this.splitScreenData.uid = "";
  25388. this.splitScreenData.behavior = null;
  25389. this.$message.error("已结束分屏模式");
  25390. if (this.timer2) {
  25391. clearInterval(this.timer2);
  25392. this.timer2 = null;
  25393. }
  25394. this.timer2 = setInterval(()=> {
  25395. this.getSplitScreenData();//获取分屏数据
  25396. }, 5000);
  25397. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25398. confirmButtonText: '确定', //确认按钮的文字
  25399. showCancelButton: false, //是否显示取消按钮
  25400. showClose: false, //是否显示关闭按钮
  25401. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25402. type: "warning",
  25403. })
  25404. .then(() => {
  25405. if (document.fullscreenElement) {
  25406. this.exitFullScreen();
  25407. }
  25408. })
  25409. .catch(() => {});
  25410. }
  25411. }
  25412. })
  25413. .catch(e => {
  25414. console.log("获取分屏数出错:", e);
  25415. });
  25416. },
  25417. doSplitScreenBehavior() {
  25418. if (
  25419. this.splitScreenData.isOpen &&
  25420. this.splitScreenData.uid != this.splitScreenData.myUid
  25421. ) {
  25422. let behavior = this.splitScreenData.behavior;
  25423. if (behavior) {
  25424. if (behavior.code === 99) {
  25425. //初始化
  25426. this.fullDialogVisible = false;
  25427. if(this.$refs.choseWorksDetailDialogRef.show){
  25428. this.$refs.choseWorksDetailDialogRef.close();
  25429. }
  25430. if(this.$refs.statisticalAnalysisRef.show){
  25431. this.$refs.statisticalAnalysisRef.close();
  25432. }
  25433. }
  25434. if (behavior.code === 0) {
  25435. //开启内容列表弹窗
  25436. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25437. }else{
  25438. this.fullDialogVisible = false;
  25439. }
  25440. if (behavior.code === 1) {
  25441. //关于选择题的作业详细的操作
  25442. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25443. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25444. this.courseType = behavior.form.courseType;
  25445. this.taskCount = behavior.form.taskCount;
  25446. }
  25447. this.$nextTick(() => {
  25448. if (this.$refs.choseWorksDetailDialogRef.show) {
  25449. //已经打开了
  25450. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25451. } else {
  25452. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25453. }
  25454. });
  25455. }else{
  25456. this.$refs.choseWorksDetailDialogRef.close()
  25457. }
  25458. if(behavior.code === 2){
  25459. if(this.$refs.statisticalAnalysisRef.show){
  25460. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25461. }else{
  25462. this.$refs.statisticalAnalysisRef.open({
  25463. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25464. tType: this.tType,
  25465. toolIndex: behavior.form.toolIndex
  25466. });
  25467. }
  25468. }else{
  25469. this.$refs.statisticalAnalysisRef.close();
  25470. }
  25471. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25472. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25473. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25474. if (behavior.form.courseType != this.courseType ||
  25475. behavior.form.taskCount != this.taskCount ||
  25476. behavior.form.toolType != this.toolindex
  25477. ) {
  25478. var a = document.scrollingElement;
  25479. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25480. if (target) {
  25481. target.scrollIntoView(true);
  25482. setTimeout(()=>{
  25483. let scrollBody = document.querySelector('.body_student').parentElement
  25484. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25485. }, 0);
  25486. // setTimeout(() => {
  25487. // a.scrollTop = 0
  25488. // }, 0);
  25489. }
  25490. }
  25491. if(this.courseType !=behavior.form.courseType){
  25492. this.courseType = behavior.form.courseType;
  25493. }
  25494. if(this.taskCount !=behavior.form.taskCount){
  25495. this.taskCount = behavior.form.taskCount;
  25496. }
  25497. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25498. this.toolindex = behavior.form.toolType;
  25499. }
  25500. // if(behavior.form.navId){
  25501. // this.navId = behavior.form.navId
  25502. // }
  25503. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25504. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25505. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25506. this.getCourseDetail()
  25507. }
  25508. this.setContent2(false)
  25509. }
  25510. } else {
  25511. }
  25512. }
  25513. },
  25514. updateSplitScreenData(empty = 0) {
  25515. return new Promise(resolve => {
  25516. if(this.userid!==this.courseDetail.userid){
  25517. if(!this.courseDetail.userid){
  25518. return setTimeout(()=>{
  25519. this.updateSplitScreenData(empty)
  25520. },2000)
  25521. }
  25522. return;
  25523. };
  25524. if (
  25525. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25526. this.splitScreenData.userId == this.userid
  25527. ) {
  25528. this.splitScreenData.loading = true;
  25529. let params = [
  25530. {
  25531. cid: this.id,
  25532. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25533. }
  25534. ];
  25535. this.ajax
  25536. .post(
  25537. this.$store.state.api + "update_courseSplitScreenData",
  25538. params
  25539. )
  25540. .then(res => {
  25541. this.splitScreenData.loading = false;
  25542. if (res.data == 1) {
  25543. resolve(1);
  25544. console.log("修改分屏数据成功");
  25545. }
  25546. })
  25547. .catch(e => {
  25548. this.splitScreenData.loading = false;
  25549. console.log("修改分屏数据失败", e);
  25550. resoleve(0);
  25551. });
  25552. } else if (empty == 2 && this.tType == 1) {
  25553. let params = [
  25554. {
  25555. cid: this.id,
  25556. nData: ""
  25557. }
  25558. ];
  25559. return this.ajax
  25560. .post(
  25561. this.$store.state.api + "update_courseSplitScreenData",
  25562. params
  25563. )
  25564. .then(_ => resolve(1))
  25565. .catch(_ => resolve(0));
  25566. } else {
  25567. return resolve(0);
  25568. }
  25569. });
  25570. },
  25571. changeSplitScreenBehavior(newValue) {
  25572. if (
  25573. this.splitScreenData.isOpen &&
  25574. this.splitScreenData.uid == this.splitScreenData.myUid
  25575. ) {
  25576. let _behavior = null;
  25577. if(!newValue){
  25578. _behavior = {}
  25579. }else{
  25580. _behavior = newValue
  25581. }
  25582. if(_behavior.form){
  25583. _behavior.form.taskCount = this.taskCount;
  25584. _behavior.form.courseType = this.courseType
  25585. }else{
  25586. _behavior.form = {
  25587. taskCount:this.taskCount,
  25588. courseType:this.courseType
  25589. }
  25590. }
  25591. this.splitScreenData.behavior = _behavior;
  25592. this.updateSplitScreenData(0);
  25593. }
  25594. },
  25595. studentFreePreview(flag) {
  25596. this.IsLookOpen = flag;
  25597. this.followingMode(flag)
  25598. this.updateLookOpen();
  25599. },
  25600. OpenJobPreview(flag) {
  25601. this.sIsOpen = flag;
  25602. this.updateSLook();
  25603. },
  25604. followingMode(flag) {
  25605. this.IsFollow = flag;
  25606. this.updateFollow();
  25607. }
  25608. },
  25609. directives: {
  25610. // 使用局部注册指令的方式
  25611. resize: {
  25612. // 指令的名称
  25613. bind(el, binding) {
  25614. // el为绑定的元素,binding为绑定给指令的对象
  25615. let width = "",
  25616. height = "";
  25617. function isReize() {
  25618. const style = document.defaultView.getComputedStyle(el);
  25619. if (width !== style.width || height !== style.height) {
  25620. binding.value(); // 关键
  25621. }
  25622. width = style.width;
  25623. height = style.height;
  25624. }
  25625. el.__vueSetInterval__ = setInterval(isReize, 300);
  25626. },
  25627. unbind(el) {
  25628. clearInterval(el.__vueSetInterval__);
  25629. }
  25630. },
  25631. autoHeight: {
  25632. update(el, binding) {
  25633. const { value } = binding;
  25634. if (value && typeof value === "number") {
  25635. el.style.height = `${value}px`;
  25636. } else {
  25637. el.style.height = "auto";
  25638. }
  25639. },
  25640. componentUpdated(el) {
  25641. el.style.height = `${el.scrollHeight + 5}px`;
  25642. }
  25643. }
  25644. },
  25645. beforeDestroy() {
  25646. window.onresize = null;
  25647. clearInterval(this.timer);
  25648. this.timer = null;
  25649. clearInterval(this.timer2);
  25650. this.timer2 = null;
  25651. clearInterval(this.opertimer);
  25652. this.opertimer = null;
  25653. this.updateSplitScreenData(1);
  25654. },
  25655. computed: {
  25656. isAndroid() {
  25657. return /Android/i.test(navigator.userAgent);
  25658. },
  25659. getHeight() {
  25660. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25661. },
  25662. contentConvent() {
  25663. return function(c) {
  25664. return c
  25665. ? c
  25666. .replaceAll(/\r\n/g, "<br/>")
  25667. .replaceAll(/\n/g, "<br/>")
  25668. .replaceAll(/\s/g, " &nbsp")
  25669. : "";
  25670. };
  25671. },
  25672. commentRight() {
  25673. if (
  25674. !this.orgArray.includes(this.org) &&
  25675. !this.oidArray.includes(this.oid)
  25676. ) {
  25677. return "35px";
  25678. }
  25679. return `calc(${this.classRoomHelperWidth} + 5px)`;
  25680. // if(this.$refs["classRoomHelperRef"].type==0){
  25681. // return "100px";
  25682. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25683. // return "502px"
  25684. // }else{
  25685. // return "0px"
  25686. // }
  25687. },
  25688. checkUpload() {
  25689. return function() {
  25690. var studentK = [];
  25691. if (this.plworkFile.length > 0) {
  25692. for (var z = 0; z < this.plworkFile.length; z++) {
  25693. studentK.push(this.plworkFile[z].username);
  25694. }
  25695. studentK = studentK.join(",");
  25696. }
  25697. var a = this.uploadStudentJuri.filter(el => {
  25698. return studentK.indexOf(el.userid) == -1;
  25699. });
  25700. return a;
  25701. };
  25702. },
  25703. getSName() {
  25704. return function(name) {
  25705. var check = name;
  25706. this.uploadStudentJuri.forEach(el => {
  25707. if (el.userid == check) {
  25708. check = el.name ? el.name : el.username;
  25709. }
  25710. });
  25711. return check;
  25712. };
  25713. },
  25714. getImgList() {
  25715. return function(val) {
  25716. let srcList = []; // 定义一个数组用来接收后面的img地址
  25717. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  25718. match,
  25719. capture
  25720. ) {
  25721. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25722. srcList.push(capture);
  25723. });
  25724. return srcList;
  25725. };
  25726. },
  25727. retrnToolHeight() {
  25728. return function(tool) {
  25729. var _tool = document.querySelectorAll("#" + tool)[0];
  25730. return _tool
  25731. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  25732. 30 +
  25733. "px"
  25734. : 0;
  25735. };
  25736. },
  25737. Correct() {
  25738. return function(c) {
  25739. let w = "";
  25740. let a = this.correctWord;
  25741. for (var k = 0; k < a.length; k++) {
  25742. //diffWordsWithSpace
  25743. if (a.length > 1) {
  25744. if (a[k].added == true) {
  25745. w +=
  25746. '<span style="background-color: green;color:#fff">' +
  25747. a[k].value +
  25748. "</span>";
  25749. } else if (a[k].removed == true) {
  25750. w +=
  25751. '<span style="text-decoration: line-through;color:red">' +
  25752. a[k].value +
  25753. "</span>";
  25754. } else {
  25755. w += "<span>" + a[k].value + "</span>";
  25756. }
  25757. } else {
  25758. w = c;
  25759. }
  25760. //diffChars方法
  25761. // if(w == ""){
  25762. // if(a.length > 1){
  25763. // if(a[k].added == true){
  25764. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25765. // }else if(a[k].removed == true){
  25766. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25767. // }
  25768. // }else{
  25769. // w = c
  25770. // }
  25771. // }else{
  25772. // if(k == a.length - 1){
  25773. // if(a[k].added == true){
  25774. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25775. // }else if(a[k].removed == true){
  25776. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25777. // }
  25778. // }else{
  25779. // if(a[k].added == true){
  25780. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25781. // }else if(a[k].removed == true){
  25782. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25783. // }
  25784. // }
  25785. // }
  25786. }
  25787. c = w;
  25788. return c;
  25789. };
  25790. },
  25791. getScoreList() {
  25792. let params = {
  25793. cid: this.id
  25794. };
  25795. this.ajax
  25796. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25797. .then(res => {
  25798. let result = res.data;
  25799. this.scoreList.datalist = result[0];
  25800. this.scoreList.isScoreList = result[1];
  25801. })
  25802. .catch(err => {
  25803. console.error(err);
  25804. });
  25805. }
  25806. },
  25807. mounted() {
  25808. this.updateSplitScreenData(2);
  25809. this.splitScreenData.myUid = uuidv4();
  25810. document.body.addEventListener("click", e => {
  25811. if (this.isUpdateToolDetail1) {
  25812. this.updateToolDetail(this.toolDetailIndex);
  25813. }
  25814. });
  25815. try {
  25816. if (this.screenType == 2) {
  25817. window.topU.postMessage({ allScreen: 4 }, "*");
  25818. } else if (this.screenType == 3) {
  25819. window.topU.postMessage({ allScreen: 5 }, "*");
  25820. } else if (this.screenType == 1) {
  25821. window.topU.postMessage({ allScreen: 6 }, "*");
  25822. }
  25823. } catch (error) {
  25824. console.log(error)
  25825. }
  25826. this.setOperationTime();
  25827. this.selectEva();
  25828. this.getCourseDetail();
  25829. this.selectCount();
  25830. this.getHomeWork();
  25831. this.selectUser();
  25832. this.getAIJ();
  25833. this.contentDialog = true;
  25834. this.setContent2(true);
  25835. if (this.tType == 4) {
  25836. this.pzDialog = true;
  25837. this.selectPz();
  25838. }
  25839. // 获取评分列表
  25840. this.getScoreList();
  25841. document.scrollingElement.scrollTop = 0;
  25842. window.addEventListener("resize", () => {
  25843. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25844. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25845. if (this.showType == 2 || this.showType == 3) {
  25846. document.getElementsByClassName("navBox")[0].style.height =
  25847. a - 40 + 0 + "px";
  25848. } else {
  25849. document.getElementsByClassName("navBox")[0].style.height =
  25850. a - 40 + "px";
  25851. }
  25852. });
  25853. let _this = this;
  25854. setTimeout(() => {
  25855. // _this.vedioTime = [];
  25856. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25857. // _this.vedioTime[i] = document.getElementsByClassName(
  25858. // "vjs-duration-display"
  25859. // )[i].textContent;
  25860. // }
  25861. }, 1000);
  25862. }
  25863. };
  25864. </script>
  25865. <style scoped>
  25866. @media screen and (max-width: 1280px) {
  25867. /* .courseIndex > div:first-child(2) {
  25868. width: 15% !important;
  25869. } */
  25870. /* .navText {
  25871. width: 120px !important;
  25872. } */
  25873. .evaCss {
  25874. flex-direction: column !important;
  25875. align-items: center !important;
  25876. }
  25877. .elist_input {
  25878. width: 90% !important;
  25879. }
  25880. .dialog_diy1 >>> .el-dialog {
  25881. width: 100% !important;
  25882. }
  25883. .rightWidthCss {
  25884. width: 100% !important;
  25885. }
  25886. .dialog_diy3 >>> .el-dialog {
  25887. width: 100% !important;
  25888. }
  25889. .addToolCss {
  25890. right: 0 !important;
  25891. width: 100% !important;
  25892. min-width: unset !important;
  25893. }
  25894. }
  25895. .evaCssMax {
  25896. flex-direction: column !important;
  25897. align-items: center !important;
  25898. }
  25899. .dialog_diy >>> .el-dialog {
  25900. margin-top: 10vh !important;
  25901. }
  25902. .body_student {
  25903. width: 77%;
  25904. height: 100%;
  25905. position: absolute;
  25906. left: 22%;
  25907. top: 0;
  25908. }
  25909. .student_head {
  25910. width: 100%;
  25911. margin: 20px auto 0;
  25912. padding-bottom: 20px;
  25913. display: flex;
  25914. flex-direction: column;
  25915. flex-wrap: nowrap;
  25916. align-items: flex-start;
  25917. justify-content: flex-start;
  25918. }
  25919. .pb_left {
  25920. width: 20%;
  25921. margin-right: 10px;
  25922. background: rgb(255, 255, 255);
  25923. position: fixed;
  25924. height: calc(100% - 40px);
  25925. border-radius: 20px;
  25926. padding-bottom: 15px;
  25927. box-sizing: border-box;
  25928. }
  25929. .wheel > img,
  25930. .project > img,
  25931. .star > img,
  25932. .evaluate > img,
  25933. .up_photo > img,
  25934. .chapter_add > img,
  25935. .deleteWord > img,
  25936. .question > img,
  25937. .homework > img {
  25938. width: 100%;
  25939. height: 100%;
  25940. }
  25941. .upCover > img {
  25942. width: 131px;
  25943. height: 69px;
  25944. object-fit: cover;
  25945. }
  25946. .upCover {
  25947. width: calc(100% / 3.5);
  25948. position: relative;
  25949. margin: 0 15px 10px 0;
  25950. display: flex;
  25951. flex-direction: column;
  25952. flex-wrap: nowrap;
  25953. justify-content: center;
  25954. align-content: center;
  25955. align-items: center;
  25956. height: fit-content;
  25957. }
  25958. .upCover2 {
  25959. width: 100%;
  25960. position: relative;
  25961. margin: 0 15px 10px 0;
  25962. display: flex;
  25963. flex-direction: column;
  25964. flex-wrap: nowrap;
  25965. justify-content: center;
  25966. align-content: center;
  25967. align-items: center;
  25968. }
  25969. .upCover2 > img {
  25970. width: 100%;
  25971. height: 90px;
  25972. object-fit: contain;
  25973. }
  25974. .chapter_add {
  25975. width: 120px;
  25976. position: relative;
  25977. text-align: center;
  25978. }
  25979. .isAddThings {
  25980. margin-top: 20px;
  25981. position: relative;
  25982. text-align: center;
  25983. background: #f7f8fa;
  25984. height: 90px;
  25985. width: 90px;
  25986. display: flex;
  25987. flex-direction: column;
  25988. justify-content: center;
  25989. }
  25990. .deleteWord {
  25991. width: 22px;
  25992. height: 22px;
  25993. position: absolute;
  25994. right: -5px;
  25995. top: -5px;
  25996. cursor: pointer;
  25997. }
  25998. .box_course {
  25999. /* width: 60%; */
  26000. width: calc(100% - 300px);
  26001. }
  26002. .wheel {
  26003. width: 100%;
  26004. /* height: 100%; */
  26005. height: 650px;
  26006. }
  26007. .right_box {
  26008. display: flex;
  26009. flex-direction: column;
  26010. margin-left: 30px;
  26011. justify-content: space-around;
  26012. }
  26013. .right_box_title {
  26014. font-size: 23px;
  26015. }
  26016. .people {
  26017. display: flex;
  26018. }
  26019. .student_body {
  26020. width: 100%;
  26021. margin: 0 auto;
  26022. margin-top: 10px;
  26023. padding: 0 0 20px;
  26024. }
  26025. .study_top {
  26026. margin-top: 100px;
  26027. width: 100%;
  26028. height: auto;
  26029. padding-bottom: 20px;
  26030. margin-left: 2px;
  26031. min-height: 90%;
  26032. }
  26033. .study_top .checkbox {
  26034. display: flex;
  26035. align-items: center;
  26036. padding: 15px 0 15px 30px;
  26037. flex: 0 0 auto;
  26038. font-weight: bold;
  26039. border-bottom: 1px solid #eee;
  26040. }
  26041. .study_top .check {
  26042. padding-bottom: 5px;
  26043. text-align: center;
  26044. cursor: pointer;
  26045. height: 30px;
  26046. box-sizing: border-box;
  26047. display: flex;
  26048. }
  26049. .study_top .checked {
  26050. border-bottom: 4px solid #3fc6a0;
  26051. padding-bottom: 5px;
  26052. color: #3fc6a0;
  26053. display: flex;
  26054. height: 35px;
  26055. }
  26056. .study_top .checked > div,
  26057. .study_top .check > div {
  26058. margin-right: 5px;
  26059. }
  26060. .videoTop {
  26061. display: flex;
  26062. flex-direction: row;
  26063. justify-content: space-between;
  26064. background: #fff;
  26065. align-items: center;
  26066. width: 95%;
  26067. padding: 20px;
  26068. }
  26069. .filebox {
  26070. display: flex;
  26071. flex-wrap: wrap;
  26072. flex-direction: column;
  26073. padding: 0 0 5px;
  26074. position: relative;
  26075. }
  26076. .filebox:before {
  26077. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  26078. position: absolute;
  26079. top: 20px;
  26080. left: 13px;
  26081. border-left: 2px dotted #cad1dc;
  26082. height: calc(100% - 15px);
  26083. }
  26084. .toolHeng2 > div:last-child::before {
  26085. height: calc(100% - 43px);
  26086. }
  26087. .filebox .tooldetail {
  26088. width: calc(100%);
  26089. margin: 0px 12px;
  26090. padding: 12px;
  26091. line-height: 30px;
  26092. word-break: break-word;
  26093. background: #ffffff;
  26094. border-radius: 8px 8px 8px 8px;
  26095. opacity: 1;
  26096. border: 1px solid #cad1dc;
  26097. overflow: hidden;
  26098. box-sizing: border-box;
  26099. }
  26100. .file {
  26101. display: flex;
  26102. flex-direction: column;
  26103. align-items: center;
  26104. justify-content: center;
  26105. cursor: pointer;
  26106. width: 200px;
  26107. }
  26108. .file div {
  26109. margin-top: 10px;
  26110. width: 150px;
  26111. text-align: center;
  26112. overflow: hidden;
  26113. white-space: nowrap;
  26114. text-overflow: ellipsis;
  26115. }
  26116. .media {
  26117. display: flex;
  26118. flex-direction: column;
  26119. align-items: center;
  26120. justify-content: center;
  26121. margin: 0 20px 20px 0;
  26122. cursor: pointer;
  26123. margin: 12px 0 5px 15px;
  26124. overflow: hidden;
  26125. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  26126. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  26127. box-sizing: border-box;
  26128. }
  26129. .media img {
  26130. height: 90px;
  26131. width: 160px;
  26132. object-fit: cover;
  26133. }
  26134. .media .title {
  26135. padding: 5px;
  26136. text-align: left;
  26137. width: 100%;
  26138. box-sizing: border-box;
  26139. }
  26140. .media .btn {
  26141. width: 100%;
  26142. height: 35px;
  26143. line-height: 35px;
  26144. color: #fff;
  26145. background: #606060;
  26146. text-align: center;
  26147. overflow: hidden;
  26148. white-space: nowrap;
  26149. text-overflow: ellipsis;
  26150. }
  26151. .detail_content_top {
  26152. width: 100%;
  26153. padding: 25px 0 25px 0;
  26154. }
  26155. .detail_title {
  26156. text-align: center;
  26157. font-size: 24px;
  26158. }
  26159. .detail_time {
  26160. font-size: 13px;
  26161. padding: 15px 0 0 40px;
  26162. }
  26163. .detail_content {
  26164. line-height: 2pc;
  26165. width: 90%;
  26166. margin: 0 auto;
  26167. padding-top: 30px;
  26168. text-indent: 30px;
  26169. overflow: auto;
  26170. height: 200px;
  26171. }
  26172. .score_box >>> .el-rate {
  26173. margin-left: 10px;
  26174. }
  26175. .dialog_change >>> .el-dialog {
  26176. border-radius: 5px;
  26177. }
  26178. .dialog_change >>> .el-dialog__header {
  26179. background: #f2f2f2;
  26180. text-align: center;
  26181. }
  26182. .dialog_change >>> .el-dialog__title {
  26183. line-height: 5px;
  26184. }
  26185. .dialog_change >>> .el-dialog__body {
  26186. background: #fff;
  26187. padding: 10px 20px;
  26188. }
  26189. .score_box {
  26190. display: flex;
  26191. align-items: center;
  26192. margin-bottom: 18px;
  26193. margin-top: 20px;
  26194. }
  26195. .up_photo {
  26196. width: 120px;
  26197. cursor: pointer;
  26198. margin-top: 10px;
  26199. }
  26200. .up_photo2 {
  26201. width: 180px;
  26202. box-sizing: border-box;
  26203. min-width: 180px;
  26204. height: 180px;
  26205. max-height: 180px;
  26206. min-height: 180px;
  26207. cursor: pointer;
  26208. display: flex;
  26209. flex-direction: column;
  26210. align-items: center;
  26211. justify-content: center;
  26212. background: rgb(242, 246, 255);
  26213. /* padding: 25px; */
  26214. margin-bottom: 10px;
  26215. }
  26216. .up_photo2 img {
  26217. width: 50%;
  26218. height: auto;
  26219. }
  26220. .up_photo2 span {
  26221. color: #898989;
  26222. }
  26223. .plworkBox {
  26224. display: flex;
  26225. align-items: center;
  26226. margin-top: 10px;
  26227. flex-wrap: wrap;
  26228. }
  26229. .upload_send {
  26230. margin: 30px auto 30px;
  26231. width: 60%;
  26232. background: #3681fc;
  26233. text-align: center;
  26234. height: 35px;
  26235. line-height: 35px;
  26236. color: #fff;
  26237. border-radius: 5px;
  26238. cursor: pointer;
  26239. }
  26240. .marginT {
  26241. margin-top: 20px;
  26242. }
  26243. .cd_content_steps {
  26244. display: flex;
  26245. width: 90%;
  26246. justify-content: space-around;
  26247. border-top: 1px solid #eeeeee;
  26248. }
  26249. .cd_steps_box {
  26250. display: flex;
  26251. justify-content: center;
  26252. align-items: center;
  26253. flex-direction: column;
  26254. cursor: pointer;
  26255. }
  26256. .first {
  26257. display: flex;
  26258. align-items: center;
  26259. margin: 15px 0 20px 0;
  26260. font-size: 20px;
  26261. }
  26262. .first > div:nth-child(2) {
  26263. font-size: 16px !important;
  26264. padding-left: 10px;
  26265. line-height: 26px;
  26266. box-sizing: border-box;
  26267. }
  26268. .blue_box_one {
  26269. text-align: center;
  26270. color: #fff;
  26271. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26272. border-radius: 7px;
  26273. margin: 10px;
  26274. cursor: pointer;
  26275. width: 95%;
  26276. height: 45px;
  26277. display: flex;
  26278. flex-direction: row;
  26279. justify-content: flex-start;
  26280. align-items: center;
  26281. }
  26282. .blue_box_one > div:nth-child(1) {
  26283. line-height: 30px;
  26284. margin: 0 5px 0 10px;
  26285. width: 30%;
  26286. min-width: 70px;
  26287. border-radius: 4px;
  26288. }
  26289. .blue_box_one > div:nth-child(2) {
  26290. white-space: nowrap;
  26291. text-overflow: ellipsis;
  26292. overflow: hidden;
  26293. word-break: break-all;
  26294. width: 70%;
  26295. text-align: left;
  26296. margin-right: 10px;
  26297. max-width: calc(100% - 85px);
  26298. }
  26299. .blue_box_one > div:nth-child(2):hover {
  26300. overflow: hidden;
  26301. text-overflow: ellipsis;
  26302. white-space: nowrap;
  26303. cursor: pointer;
  26304. }
  26305. .upFile {
  26306. margin: 0 auto;
  26307. width: 120px;
  26308. background: #3681fc;
  26309. color: #fff;
  26310. height: 30px;
  26311. text-align: center;
  26312. line-height: 30px;
  26313. border-radius: 5px;
  26314. font-size: 14px;
  26315. cursor: pointer;
  26316. }
  26317. .courseTitle {
  26318. width: 85%;
  26319. margin: 10px auto 26px auto;
  26320. display: flex;
  26321. flex-direction: row;
  26322. align-items: center;
  26323. justify-content: space-between;
  26324. text-align: center;
  26325. }
  26326. .courseTitle .ctitle {
  26327. font-size: 20px;
  26328. font-weight: bold;
  26329. color: #0e1e33;
  26330. white-space: nowrap;
  26331. overflow: hidden;
  26332. text-overflow: ellipsis;
  26333. }
  26334. .inviteBox {
  26335. font-size: 14px;
  26336. /* margin-top: 5px; */
  26337. color: #00000099;
  26338. text-align: center;
  26339. }
  26340. .courseTitle >>> .el-tooltip {
  26341. width: 100%;
  26342. white-space: nowrap;
  26343. overflow: hidden;
  26344. text-overflow: ellipsis;
  26345. word-break: break-word;
  26346. }
  26347. .ml {
  26348. margin-left: 20px;
  26349. color: #5b7dba;
  26350. border-left: 3px solid #5b7dba;
  26351. padding-left: 5px;
  26352. font-weight: bold;
  26353. }
  26354. .return {
  26355. width: 2rem;
  26356. height: 2rem;
  26357. cursor: pointer;
  26358. }
  26359. .return > img {
  26360. width: 100%;
  26361. height: 100%;
  26362. }
  26363. .returnBtn {
  26364. width: 86px;
  26365. height: 36px;
  26366. background: #3681fc;
  26367. border-radius: 4px;
  26368. color: #fff;
  26369. text-align: center;
  26370. line-height: 36px;
  26371. margin-right: 20px;
  26372. cursor: pointer;
  26373. font-size: 14px;
  26374. font-weight: 400;
  26375. display: flex;
  26376. flex-direction: row;
  26377. flex-wrap: nowrap;
  26378. align-items: center;
  26379. justify-content: center;
  26380. }
  26381. .reBtnIcon,
  26382. .commentIcon,
  26383. .vedioIcon,
  26384. .vedioIcon1 {
  26385. /* width: 36px; */
  26386. height: 36px;
  26387. border-radius: 4px;
  26388. position: relative;
  26389. /* background: #e0eafb; */
  26390. background: #0061ff;
  26391. cursor: pointer;
  26392. margin-right: 12px;
  26393. display: flex;
  26394. align-items: center;
  26395. padding: 0 10px;
  26396. box-sizing: border-box;
  26397. font-size: 14px;
  26398. color: #fff;
  26399. }
  26400. .reBtnIcon::before,
  26401. .commentIcon::before,
  26402. .vedioIcon::before,
  26403. .vedioIcon1::before {
  26404. content: "";
  26405. display: block;
  26406. background-size: 100% 100%;
  26407. background-repeat: no-repeat;
  26408. width: 20px;
  26409. height: 20px;
  26410. margin-right: 5px;
  26411. /* position: absolute; */
  26412. /* top: 8px;
  26413. left: 8px; */
  26414. }
  26415. .vedioIcon1 {
  26416. background: #f63564;
  26417. }
  26418. .reBtnIcon::before {
  26419. background-image: url("../../assets/icon/newIcons/refresh.png");
  26420. }
  26421. .commentIcon::before {
  26422. background-image: url("../../assets/icon/newIcons/comment.png");
  26423. }
  26424. .vedioIcon::before {
  26425. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26426. }
  26427. .vedioIcon1::before {
  26428. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26429. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26430. }
  26431. .tool {
  26432. display: flex;
  26433. flex-direction: column;
  26434. flex-wrap: nowrap;
  26435. width: 13%;
  26436. margin: 0 30px;
  26437. align-items: center;
  26438. position: relative;
  26439. padding: 10px 25px;
  26440. cursor: pointer;
  26441. }
  26442. .whiteBIcon {
  26443. width: 150px;
  26444. }
  26445. .whiteBIcon > img {
  26446. width: 100%;
  26447. height: 100%;
  26448. }
  26449. .mask {
  26450. background-color: rgba(0, 0, 0, 0);
  26451. position: fixed;
  26452. top: 0;
  26453. left: 0;
  26454. width: 100%;
  26455. height: 100%;
  26456. z-index: 20000;
  26457. display: flex;
  26458. align-items: center;
  26459. justify-content: center;
  26460. }
  26461. .progressBox {
  26462. width: 500px;
  26463. height: 180px;
  26464. background: #fff;
  26465. border-radius: 10px;
  26466. box-shadow: 0 0 6px 1px #bfbfbf;
  26467. display: flex;
  26468. align-items: center;
  26469. justify-content: center;
  26470. flex-direction: column;
  26471. position: relative;
  26472. color: #6c6c6c;
  26473. }
  26474. .progressBox >>> .el-progress-bar__outer {
  26475. background-color: #d1dfff !important;
  26476. }
  26477. .progressBox .lbox {
  26478. height: 50px;
  26479. font-size: 19px;
  26480. display: flex;
  26481. align-items: center;
  26482. color: #747474;
  26483. }
  26484. .progressBox .lbox img {
  26485. width: 40px;
  26486. margin-right: 20px;
  26487. }
  26488. .closeCss {
  26489. position: absolute;
  26490. top: 8px;
  26491. right: 8px;
  26492. cursor: pointer;
  26493. width: 20px;
  26494. height: 20px;
  26495. }
  26496. .closeCss > img {
  26497. width: 100%;
  26498. height: 100%;
  26499. }
  26500. .uploadVedio {
  26501. display: flex;
  26502. flex-direction: column;
  26503. flex-wrap: nowrap;
  26504. justify-content: center;
  26505. align-items: center;
  26506. margin: 0 15px 10px 0;
  26507. }
  26508. .uploadVedio > img {
  26509. width: 30px;
  26510. height: 30px;
  26511. }
  26512. .uploadVedio > span {
  26513. white-space: nowrap;
  26514. overflow: hidden;
  26515. text-overflow: ellipsis;
  26516. width: 75px;
  26517. margin-top: 7px;
  26518. }
  26519. .picName {
  26520. white-space: nowrap;
  26521. overflow: hidden;
  26522. text-overflow: ellipsis;
  26523. width: 75px;
  26524. margin-top: 7px;
  26525. }
  26526. .new_top {
  26527. display: flex;
  26528. background: #fff;
  26529. flex-direction: row;
  26530. justify-content: flex-start;
  26531. align-items: center;
  26532. height: 60px;
  26533. position: fixed;
  26534. top: 20px;
  26535. left: 22%;
  26536. width: 77%;
  26537. z-index: 999;
  26538. border-radius: 12px 12px 0 0;
  26539. border-bottom: 1px solid #cad1dc;
  26540. padding: 10px 0;
  26541. }
  26542. .new_topFixed {
  26543. width: 100%;
  26544. height: 40px;
  26545. position: fixed;
  26546. top: 0px;
  26547. display: block;
  26548. background: #f2f2f2;
  26549. z-index: 998;
  26550. }
  26551. .before {
  26552. position: absolute;
  26553. background: #c3dad4;
  26554. width: 6px;
  26555. height: 100%;
  26556. }
  26557. .courseIndex {
  26558. display: flex;
  26559. flex-direction: row;
  26560. align-items: center;
  26561. width: calc(100% - 745px);
  26562. }
  26563. .courseIndex > div:nth-child(1) {
  26564. margin: 0 0 0 10px;
  26565. font-size: 20px;
  26566. min-width: 100px;
  26567. font-weight: bold;
  26568. border-left: 4px solid #3363b9;
  26569. height: 32px;
  26570. text-align: center;
  26571. line-height: 35px;
  26572. }
  26573. .courseIndex > div:nth-child(2) {
  26574. font-size: 20px;
  26575. /* width: 300px; */
  26576. max-width: calc(100% - 105px);
  26577. white-space: nowrap;
  26578. overflow: hidden;
  26579. text-overflow: ellipsis;
  26580. }
  26581. .courseIndex > div:nth-child(3) {
  26582. border-bottom: 1px solid #d7d7d7;
  26583. padding-bottom: 5px;
  26584. background: #3681fc;
  26585. width: 55px;
  26586. min-width: 55px;
  26587. border-radius: 5px;
  26588. color: #fff;
  26589. text-align: center;
  26590. height: 20px;
  26591. line-height: 26px;
  26592. font-size: 14px;
  26593. margin: 0 0 0 10px;
  26594. }
  26595. .course_text {
  26596. padding: 20px 0 0 15px;
  26597. text-indent: 30px;
  26598. width: 80%;
  26599. min-height: 20px;
  26600. }
  26601. .vedioList {
  26602. background: #f2f2f2;
  26603. border: 1px solid #ececec;
  26604. /* width: 38.8%; */
  26605. /* width: 300px; */
  26606. width: 100%;
  26607. height: 445px;
  26608. border-radius: 10px;
  26609. overflow: hidden;
  26610. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26611. }
  26612. .vedioNav {
  26613. margin: 10px 0 0 15px;
  26614. border-bottom: 1px solid #d7d7d7;
  26615. padding-bottom: 5px;
  26616. background: #3681fc;
  26617. width: 55px;
  26618. min-width: 55px;
  26619. border-radius: 5px;
  26620. color: #fff;
  26621. text-align: center;
  26622. height: 20px;
  26623. line-height: 26px;
  26624. font-size: 14px;
  26625. }
  26626. .queTop {
  26627. display: flex;
  26628. padding: 20px 0 20px 30px;
  26629. width: 100%;
  26630. flex-direction: row;
  26631. justify-content: flex-start;
  26632. align-items: center;
  26633. box-sizing: border-box;
  26634. }
  26635. .queTopTitle {
  26636. display: flex;
  26637. flex-direction: row;
  26638. flex-wrap: nowrap;
  26639. align-items: center;
  26640. font-weight: bold;
  26641. font-size: 20px;
  26642. color: rgb(14, 30, 51);
  26643. }
  26644. .queTopTitle::before {
  26645. content: "";
  26646. width: 2px;
  26647. height: 22px;
  26648. background: #3681fc;
  26649. border-radius: 3px;
  26650. display: block;
  26651. margin: 2px 6px 0 0;
  26652. }
  26653. .queTopRight {
  26654. display: flex;
  26655. flex-direction: row;
  26656. flex-wrap: nowrap;
  26657. align-items: center;
  26658. }
  26659. .queTopClose {
  26660. margin-right: 20px;
  26661. cursor: pointer;
  26662. position: relative;
  26663. display: flex;
  26664. }
  26665. .closeImg,
  26666. .openImg {
  26667. width: 25px;
  26668. height: 25px;
  26669. position: absolute;
  26670. left: -20px;
  26671. top: -1px;
  26672. }
  26673. .closeImg > img,
  26674. .openImg > img {
  26675. width: 100%;
  26676. height: 100%;
  26677. }
  26678. .question {
  26679. width: 40px;
  26680. margin-right: 10px;
  26681. margin-top: 7px;
  26682. }
  26683. .queTitle {
  26684. margin-left: 5px;
  26685. font-size: 25px;
  26686. display: flex;
  26687. align-items: center;
  26688. }
  26689. .addEditor {
  26690. width: 100px;
  26691. height: 30px;
  26692. background: #42cda6;
  26693. color: #fff;
  26694. border-radius: 5px;
  26695. text-align: center;
  26696. line-height: 30px;
  26697. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26698. cursor: pointer;
  26699. }
  26700. /* .vedioName {
  26701. cursor: pointer;
  26702. margin: 0px 0px 10px 5px;
  26703. white-space: nowrap;
  26704. overflow: hidden;
  26705. text-overflow: ellipsis;
  26706. width: 100%;
  26707. } */
  26708. .vedioTime {
  26709. width: 35px;
  26710. position: absolute;
  26711. color: #fff;
  26712. bottom: 0px;
  26713. right: 0px;
  26714. text-align: center;
  26715. background: #46411f;
  26716. height: 20px;
  26717. font-size: 14px;
  26718. line-height: 20px;
  26719. }
  26720. .homework {
  26721. width: 200px;
  26722. display: flex;
  26723. flex-direction: column;
  26724. flex-wrap: nowrap;
  26725. align-items: center;
  26726. cursor: pointer;
  26727. }
  26728. .homebox {
  26729. display: flex;
  26730. flex-wrap: wrap;
  26731. flex-direction: row;
  26732. justify-content: flex-start;
  26733. align-items: center;
  26734. padding: 15px 0;
  26735. }
  26736. .isChooseActive {
  26737. color: #3681fc !important;
  26738. font-weight: bold !important;
  26739. }
  26740. .chooseWho {
  26741. display: flex;
  26742. width: 100%;
  26743. flex-direction: row;
  26744. flex-wrap: nowrap;
  26745. justify-content: flex-start;
  26746. padding-bottom: 10px;
  26747. }
  26748. .chooseWho > div {
  26749. cursor: pointer;
  26750. padding-bottom: 10px;
  26751. margin: 0 30px 0 0;
  26752. font-weight: 400;
  26753. color: #0e1e33;
  26754. }
  26755. .addPoint > div > img {
  26756. cursor: pointer;
  26757. width: 85px;
  26758. border-radius: 15px;
  26759. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26760. }
  26761. .addPoint > div {
  26762. display: flex;
  26763. flex-direction: column;
  26764. flex-wrap: nowrap;
  26765. align-items: center;
  26766. }
  26767. .isBorder > div {
  26768. margin: 0 0 10px 0;
  26769. align-items: flex-start !important;
  26770. }
  26771. .noiframeBox {
  26772. display: flex;
  26773. flex-wrap: wrap;
  26774. }
  26775. .iframeBox iframe {
  26776. width: 100%;
  26777. height: 800px;
  26778. border: none;
  26779. margin-bottom: 20px;
  26780. border: 1px solid #ccc;
  26781. }
  26782. .upload_toolBtn {
  26783. background: #3681fc;
  26784. color: #fff;
  26785. width: 110px;
  26786. text-align: center;
  26787. height: 35px;
  26788. line-height: 35px;
  26789. font-size: 14px;
  26790. border-radius: 5px;
  26791. cursor: pointer;
  26792. position: absolute;
  26793. right: 10px;
  26794. bottom: 0;
  26795. }
  26796. .binfo_input,
  26797. .pj {
  26798. font: inherit;
  26799. color: currentColor;
  26800. width: 100%;
  26801. margin: 0;
  26802. padding: 15px 14px;
  26803. display: block;
  26804. min-width: 0;
  26805. outline: none;
  26806. box-sizing: content-box;
  26807. background: none;
  26808. -webkit-tap-highlight-color: transparent;
  26809. border: 1px solid rgba(0, 0, 0, 0.23);
  26810. border-radius: 4px;
  26811. box-sizing: border-box;
  26812. resize: none;
  26813. }
  26814. .binfo_input:focus-visible {
  26815. border: 1px solid rgba(61, 103, 188);
  26816. }
  26817. .dialog_diyCopy >>> .el-dialog__header {
  26818. display: none !important;
  26819. }
  26820. .dialog_diyCopy >>> .el-dialog__body {
  26821. padding: 0 !important;
  26822. height: 100% !important;
  26823. }
  26824. .confirmOpenDigCss > div{
  26825. font-size: 14px;
  26826. color: rgba(0, 0, 0, 0.6);
  26827. }
  26828. .confirmOpenDigCss >>> .el-dialog{
  26829. border-radius: 6px;
  26830. }
  26831. .confirmOpenDigCss >>> .el-dialog__body{
  26832. padding: 25px !important;
  26833. }
  26834. .confirmOpenDigCss > span{
  26835. font-size: 16px;
  26836. font-weight: 600;
  26837. color: rgba(0, 0, 0, 0.8);
  26838. }
  26839. .dialog_diy >>> .el-dialog__header,
  26840. .dialog_diy1 >>> .el-dialog__header {
  26841. background: #454545 !important;
  26842. padding: 15px 20px;
  26843. }
  26844. .dialog_diy >>> .el-dialog__title,
  26845. .dialog_diy1 >>> .el-dialog__title {
  26846. color: #fff;
  26847. }
  26848. .dialog_diy >>> .el-dialog__headerbtn,
  26849. .dialog_diy1 >>> .el-dialog__headerbtn {
  26850. top: 19px;
  26851. }
  26852. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26853. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26854. color: #fff;
  26855. }
  26856. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26857. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26858. color: #fff;
  26859. }
  26860. .dialog_diy1 >>> .el-dialog__body {
  26861. padding: 0;
  26862. }
  26863. .dialog_diy >>> .el-dialog__body,
  26864. .dialog_diy >>> .el-dialog__footer,
  26865. .dialog_diy1 >>> .el-dialog__footer {
  26866. background: #fafafa;
  26867. }
  26868. .markScore_diy >>> .el-dialog {
  26869. border-radius: 10px;
  26870. }
  26871. .markScore_diy >>> .el-dialog__body {
  26872. padding: 0;
  26873. height: 621px;
  26874. min-height: calc(100% - 60px);
  26875. }
  26876. .markScore_diy >>> .el-dialog__header {
  26877. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26878. }
  26879. .markScore_diy >>> .markScore_diyTit {
  26880. width: calc(100% - 60px);
  26881. display: flex;
  26882. justify-content: space-between;
  26883. align-items: center;
  26884. }
  26885. .a_addBox {
  26886. padding: 0 0 0 15px;
  26887. }
  26888. .a_add_box {
  26889. padding: 10px;
  26890. background: #fff;
  26891. margin-bottom: 10px;
  26892. border-radius: 5px;
  26893. box-shadow: 0 0 5px 0 #d5d5d5;
  26894. }
  26895. .a_add_head {
  26896. display: flex;
  26897. align-items: flex-start;
  26898. /* justify-content: space-between; */
  26899. flex-direction: column;
  26900. /* flex-direction: row; */
  26901. margin: 10px 0 20px 0;
  26902. font-size: 18px;
  26903. width: 100%;
  26904. }
  26905. .askIndex {
  26906. background: #3681fc;
  26907. border-radius: 50%;
  26908. color: #fff;
  26909. width: 25px;
  26910. height: 25px;
  26911. min-width: 25px;
  26912. min-height: 25px;
  26913. text-align: center;
  26914. line-height: 25px;
  26915. margin-right: 5px;
  26916. }
  26917. .a_add_head .a_add_head_input {
  26918. width: 300px;
  26919. }
  26920. .a_add_head .a_add_head_div {
  26921. display: flex;
  26922. align-items: center;
  26923. justify-content: space-between;
  26924. }
  26925. .a_add_body {
  26926. display: flex;
  26927. align-items: center;
  26928. }
  26929. .a_add_input {
  26930. display: flex;
  26931. align-items: center;
  26932. flex-wrap: wrap;
  26933. width: 100%;
  26934. }
  26935. .a_add_input >>> .el-radio-group,
  26936. .a_add_input >>> .el-checkbox-group {
  26937. width: 100%;
  26938. }
  26939. .a_add_input >>> .el-radio,
  26940. .a_add_input >>> .el-checkbox {
  26941. display: flex;
  26942. flex-direction: row;
  26943. flex-wrap: nowrap;
  26944. align-items: center;
  26945. padding: 15px 0;
  26946. }
  26947. .a_add_input >>> .el-radio:not(:last-child),
  26948. .a_add_input >>> .el-checkbox:not(:last-child) {
  26949. width: 100%;
  26950. border-bottom: 1px solid #efefef;
  26951. }
  26952. .redioStyle >>> .el-radio__label {
  26953. font-size: 18px;
  26954. }
  26955. .redioStyle >>> .el-radio__label > span,
  26956. .redioStyle >>> .el-checkbox__label > span {
  26957. word-break: break-all;
  26958. white-space: normal;
  26959. }
  26960. .redioStyle >>> .el-checkbox__label {
  26961. font-size: 18px;
  26962. }
  26963. .toolHeng2 {
  26964. width: 100%;
  26965. padding-left: 15px;
  26966. box-sizing: border-box;
  26967. }
  26968. .workNav {
  26969. font-size: 20px;
  26970. font-weight: bold;
  26971. color: #0e1e33;
  26972. display: flex;
  26973. flex-direction: row;
  26974. flex-wrap: nowrap;
  26975. align-items: center;
  26976. padding: 15px 0 15px 0;
  26977. }
  26978. .workNav::before {
  26979. content: "";
  26980. width: 2px;
  26981. height: 22px;
  26982. background: #3681fc;
  26983. border-radius: 3px;
  26984. display: block;
  26985. margin: 2px 6px 0 0;
  26986. }
  26987. .toolHeng {
  26988. display: flex;
  26989. flex-direction: row;
  26990. flex-wrap: wrap;
  26991. justify-content: flex-start;
  26992. align-items: center;
  26993. width: 100%;
  26994. }
  26995. .toolHeng > div {
  26996. padding-left: 20px;
  26997. }
  26998. .isWidth {
  26999. width: 20%;
  27000. }
  27001. .textTitle {
  27002. display: flex;
  27003. flex-direction: row;
  27004. flex-wrap: nowrap;
  27005. align-items: center;
  27006. width: 95%;
  27007. }
  27008. .textTitle >>> .el-form-item__label {
  27009. font-size: 22px;
  27010. color: #918f8f;
  27011. width: 100px;
  27012. }
  27013. .textTitle >>> .el-form-item__content {
  27014. width: calc(100% - 100px);
  27015. }
  27016. .textCss >>> .el-dialog {
  27017. width: 800px !important;
  27018. height: 400px;
  27019. background: #fafafa;
  27020. }
  27021. .textCss >>> .el-dialog__body {
  27022. margin: 55px 8% 0 8%;
  27023. padding: 0 !important;
  27024. }
  27025. .textCss >>> .el-dialog__footer {
  27026. padding-top: 38px;
  27027. }
  27028. .toolsCss >>> .el-dialog__body {
  27029. padding: 20px;
  27030. }
  27031. .lineCss >>> .el-dialog__body {
  27032. display: flex;
  27033. flex-direction: row;
  27034. align-items: center;
  27035. justify-content: center;
  27036. }
  27037. .newNav {
  27038. display: flex;
  27039. flex-direction: row;
  27040. align-items: baseline;
  27041. justify-content: flex-start;
  27042. }
  27043. .navListItem {
  27044. width: calc(100% - 20px);
  27045. height: 50px;
  27046. margin: 0px auto 10px;
  27047. display: flex;
  27048. flex-direction: row;
  27049. flex-wrap: nowrap;
  27050. align-items: center;
  27051. justify-content: space-between;
  27052. background: #f0f4fa;
  27053. border-radius: 6px 6px 6px 6px;
  27054. }
  27055. .navText {
  27056. cursor: pointer;
  27057. white-space: nowrap;
  27058. overflow: hidden;
  27059. text-overflow: ellipsis;
  27060. width: 220px;
  27061. padding: 0 10px;
  27062. font-weight: 400;
  27063. color: #0e1e33;
  27064. }
  27065. .downIcon {
  27066. width: 20px;
  27067. min-width: 20px;
  27068. height: 20px;
  27069. margin-right: 15px;
  27070. cursor: pointer;
  27071. }
  27072. .downIcon > img {
  27073. width: 100%;
  27074. height: 100%;
  27075. }
  27076. .noVedio {
  27077. display: flex;
  27078. flex-direction: row;
  27079. justify-content: center;
  27080. align-content: center;
  27081. }
  27082. .noNavText {
  27083. cursor: pointer;
  27084. margin: 0px 0px 10px 5px;
  27085. width: 112px;
  27086. }
  27087. .listNoVedio {
  27088. margin: 0 0 0 30px;
  27089. width: 97%;
  27090. }
  27091. .video-player >>> .video-js {
  27092. height: 100%;
  27093. }
  27094. .hangVedioList {
  27095. width: 90% !important;
  27096. height: 150px !important;
  27097. margin: 20px 0 0 30px;
  27098. }
  27099. .hangVedio {
  27100. width: 100%;
  27101. height: 170px !important;
  27102. align-items: flex-start !important;
  27103. }
  27104. .hangHand {
  27105. height: 150px !important;
  27106. }
  27107. .twoChild {
  27108. width: 95%;
  27109. margin: 10px;
  27110. border-radius: 5px;
  27111. background: #f2f2f2;
  27112. display: flex;
  27113. flex-direction: column;
  27114. flex-wrap: nowrap;
  27115. justify-content: flex-start;
  27116. align-items: flex-start;
  27117. transition: all 0.5s;
  27118. overflow: hidden;
  27119. height: 0;
  27120. background: #e7f3ff;
  27121. }
  27122. .twoChild > div:nth-child(1) {
  27123. margin-top: 5px;
  27124. }
  27125. .navChild {
  27126. width: 100%;
  27127. cursor: pointer;
  27128. margin-bottom: 10px;
  27129. position: relative;
  27130. }
  27131. .navChild img {
  27132. position: absolute;
  27133. right: 11px;
  27134. width: 15px;
  27135. top: 50%;
  27136. transform: translateY(-50%);
  27137. }
  27138. .navActive,
  27139. .toolActive {
  27140. height: auto !important;
  27141. overflow: auto !important;
  27142. /* // padding-bottom: 16px; */
  27143. }
  27144. .toolActive {
  27145. padding: 0;
  27146. }
  27147. .navTask {
  27148. display: flex;
  27149. flex-direction: row;
  27150. flex-wrap: nowrap;
  27151. align-items: center;
  27152. align-content: flex-start;
  27153. height: 40px;
  27154. justify-content: flex-start;
  27155. padding: 0 10px;
  27156. width: 100%;
  27157. box-sizing: border-box;
  27158. }
  27159. .navTaskname {
  27160. white-space: nowrap;
  27161. text-overflow: ellipsis;
  27162. overflow: hidden;
  27163. word-break: break-all;
  27164. padding-left: 5px;
  27165. }
  27166. .openTaskActive {
  27167. /* background-color: #e0eafb !important;
  27168. color: #0061ff; */
  27169. color: #fff;
  27170. background: rgb(55, 129, 252) !important;
  27171. }
  27172. .iframeName {
  27173. margin: 5px 0;
  27174. border-left: 4px solid #41c4a4;
  27175. padding-left: 4px;
  27176. }
  27177. .toolTitle {
  27178. margin: 0px 0px 20px;
  27179. font-size: 20px;
  27180. font-weight: 500;
  27181. border-left: 4px solid #41c4a4;
  27182. padding-left: 4px;
  27183. }
  27184. .cru_selectBox {
  27185. overflow: auto;
  27186. width: 95%;
  27187. margin: 17px auto 0;
  27188. height: calc(100% - 40px - 21px - 20px - 17px);
  27189. background: #fff;
  27190. border-radius: 8px;
  27191. }
  27192. .cru_selectBox::-webkit-scrollbar,
  27193. .study_top::-webkit-scrollbar,
  27194. .textContent::-webkit-scrollbar {
  27195. /*滚动条整体样式*/
  27196. width: 6px;
  27197. /*高宽分别对应横竖滚动条的尺寸*/
  27198. height: 6px;
  27199. }
  27200. /*定义滚动条轨道 内阴影+圆角*/
  27201. .cru_selectBox::-webkit-scrollbar-track,
  27202. .study_top::-webkit-scrollbar-track,
  27203. .textContent::-webkit-scrollbar {
  27204. border-radius: 10px;
  27205. background-color: #b8bdc9;
  27206. }
  27207. /*定义滑块 内阴影+圆角*/
  27208. .cru_selectBox::-webkit-scrollbar-thumb,
  27209. .study_top::-webkit-scrollbar-thumb,
  27210. .textContent::-webkit-scrollbar-thumb {
  27211. border-radius: 10px;
  27212. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27213. background-color: #2c5ab3;
  27214. }
  27215. .vedioBox {
  27216. border-radius: 0 0 20px 20px;
  27217. background: #fff;
  27218. overflow: auto;
  27219. }
  27220. .taskBox {
  27221. width: 98%;
  27222. background: #f0f4fa;
  27223. margin: 10px auto;
  27224. padding: 0 10px;
  27225. border-radius: 4px;
  27226. box-sizing: border-box;
  27227. }
  27228. .vedioTaskBox {
  27229. width: 100%;
  27230. display: flex;
  27231. flex-direction: row;
  27232. flex-wrap: nowrap;
  27233. align-items: flex-start;
  27234. position: relative;
  27235. }
  27236. .toolBox {
  27237. margin: 15px 0 0 25px;
  27238. display: flex;
  27239. position: relative;
  27240. padding: 18px 20px;
  27241. border-top-left-radius: 5px;
  27242. border-top-right-radius: 5px;
  27243. width: 90%;
  27244. }
  27245. .btnAll {
  27246. position: absolute;
  27247. right: 0;
  27248. display: flex;
  27249. flex-direction: row;
  27250. flex-wrap: nowrap;
  27251. align-items: center;
  27252. }
  27253. .btnLeft,
  27254. .btnRight {
  27255. display: flex;
  27256. flex-direction: row;
  27257. flex-wrap: nowrap;
  27258. align-items: center;
  27259. padding: 5px 0;
  27260. }
  27261. .btnLeft {
  27262. border-right: 1px solid #cad1dc;
  27263. }
  27264. .btnLeft > .custom-tooltip {
  27265. background: #3681fc;
  27266. color: #fff;
  27267. }
  27268. .last:hover {
  27269. background: #3383fa !important;
  27270. color: #fff;
  27271. border: 1px solid #3383fa !important;
  27272. }
  27273. .last,
  27274. .returnBtn1 {
  27275. width: 90px;
  27276. height: 36px;
  27277. background: #ffffff;
  27278. border-radius: 4px;
  27279. border: 1px solid #0061ff;
  27280. color: #0061ff;
  27281. cursor: pointer;
  27282. display: flex;
  27283. flex-direction: row;
  27284. flex-wrap: nowrap;
  27285. align-items: center;
  27286. justify-content: center;
  27287. margin-left: 12px;
  27288. }
  27289. .returnBtn1 {
  27290. background: #f0f4fa;
  27291. border-radius: 4px;
  27292. border: 1px solid #cad1dc;
  27293. margin: 0 12px;
  27294. }
  27295. .lastImg {
  27296. min-width: 15px;
  27297. width: 15px;
  27298. height: 15px;
  27299. display: flex;
  27300. }
  27301. .lastText {
  27302. padding: 0 5px 0 5px;
  27303. box-sizing: border-box;
  27304. font-size: 14px;
  27305. }
  27306. .lastImg > img {
  27307. width: 100%;
  27308. height: 100%;
  27309. }
  27310. /* .vedioTimeBox {
  27311. display: flex;
  27312. flex-direction: row;
  27313. align-items: center;
  27314. flex-wrap: nowrap;
  27315. position: relative;
  27316. } */
  27317. .navBox {
  27318. background: #fff;
  27319. height: calc(100% - 40px);
  27320. overflow-y: auto;
  27321. overflow-x: hidden;
  27322. }
  27323. .worksBox {
  27324. margin: 0 0 10px 25px;
  27325. border-bottom: 1px solid #eeeeee;
  27326. padding: 18px 20px;
  27327. border-radius: 4px;
  27328. width: 90%;
  27329. }
  27330. .worksBTitle {
  27331. font-size: 20px;
  27332. padding-bottom: 15px;
  27333. border-bottom: 1px solid #eeeeee;
  27334. display: flex;
  27335. align-items: center;
  27336. }
  27337. .greenBox {
  27338. width: 5px;
  27339. height: 30px;
  27340. background: #63b6fa;
  27341. margin-right: 5px;
  27342. }
  27343. .worksDetailBox {
  27344. display: flex;
  27345. width: 100%;
  27346. flex-direction: row;
  27347. flex-wrap: wrap;
  27348. align-items: flex-end;
  27349. justify-content: flex-start;
  27350. padding: 15px 5px;
  27351. box-sizing: border-box;
  27352. }
  27353. .works {
  27354. display: flex;
  27355. flex-direction: column;
  27356. flex-wrap: nowrap;
  27357. align-items: flex-start;
  27358. justify-content: flex-start;
  27359. align-content: center;
  27360. max-width: 240px;
  27361. width: calc(100% / 3 - 10px);
  27362. height: auto;
  27363. margin-right: 10px;
  27364. margin-bottom: 10px;
  27365. overflow: hidden;
  27366. height: 140px;
  27367. box-shadow: 0 0 6px 1px #dfdada;
  27368. border-radius: 15px;
  27369. }
  27370. .workImg {
  27371. width: 100%;
  27372. /* height: calc(100% - 40px); */
  27373. height: 105px;
  27374. position: relative;
  27375. }
  27376. .workImg > img {
  27377. width: 100%;
  27378. height: 100%;
  27379. object-fit: contain;
  27380. cursor: pointer;
  27381. }
  27382. .worksName {
  27383. height: 40px;
  27384. line-height: 40px;
  27385. display: flex;
  27386. width: 100%;
  27387. flex-direction: row;
  27388. flex-wrap: nowrap;
  27389. justify-content: space-between;
  27390. align-items: center;
  27391. margin: 0 0 0 10px;
  27392. }
  27393. .worksName > div:nth-child(1) {
  27394. width: 110px;
  27395. white-space: nowrap;
  27396. overflow: hidden;
  27397. text-overflow: ellipsis;
  27398. }
  27399. .worksName > div:nth-child(2) {
  27400. color: #b7b4b5;
  27401. }
  27402. .noWorksS {
  27403. padding: 15px 0;
  27404. display: flex;
  27405. flex-direction: row;
  27406. flex-wrap: wrap;
  27407. align-items: center;
  27408. justify-content: flex-start;
  27409. }
  27410. .noWorksName,
  27411. .isWorksName,
  27412. .isWorksName2 {
  27413. background: #ddebf8;
  27414. color: #000;
  27415. width: 90px;
  27416. height: 25px;
  27417. text-align: center;
  27418. line-height: 25px;
  27419. border-radius: 4px;
  27420. margin: 10px 15px 10px 0;
  27421. white-space: nowrap;
  27422. overflow: hidden;
  27423. padding: 5px;
  27424. text-overflow: ellipsis;
  27425. cursor: pointer;
  27426. border: 1px solid #ddebf8;
  27427. }
  27428. .noWorksName {
  27429. background: #fff;
  27430. color: #0061ff;
  27431. border: 1px solid #0061ff;
  27432. }
  27433. .noWorksName > span {
  27434. max-width: 100%;
  27435. display: block;
  27436. overflow: hidden;
  27437. text-overflow: ellipsis;
  27438. white-space: nowrap;
  27439. }
  27440. .isWorksName2 {
  27441. width: 100px;
  27442. height: 40px;
  27443. line-height: 40px;
  27444. position: relative;
  27445. background: #dae6f9;
  27446. }
  27447. .isWorksName {
  27448. background: #e7ebf1 !important;
  27449. width: 100px;
  27450. height: 40px;
  27451. line-height: 40px;
  27452. position: relative;
  27453. color: #acb4bf;
  27454. border: 1px solid #cad1dc !important;
  27455. }
  27456. .isSelectName,
  27457. .noWorksName:hover {
  27458. background: #3383fa !important;
  27459. color: #fff !important;
  27460. border: 1px solid #3383fa !important;
  27461. }
  27462. .title {
  27463. background: #1e5cc9;
  27464. /* width: 98%; */
  27465. height: 45px;
  27466. color: #fff;
  27467. line-height: 45px;
  27468. padding-left: 20px;
  27469. box-sizing: border-box;
  27470. }
  27471. .textBox {
  27472. font-size: 20px;
  27473. width: 90%;
  27474. display: flex;
  27475. flex-direction: column;
  27476. align-items: center;
  27477. margin: 20px auto 0;
  27478. max-height: calc(100% - 75px);
  27479. overflow: auto;
  27480. }
  27481. .textContent {
  27482. font-size: 18px;
  27483. width: 95%;
  27484. max-width: 95%;
  27485. }
  27486. .answerBg {
  27487. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27488. background-size: 100% 100%;
  27489. width: 100%;
  27490. height: 100%;
  27491. color: #fff;
  27492. text-align: center;
  27493. display: flex;
  27494. flex-direction: column;
  27495. flex-wrap: nowrap;
  27496. align-items: center;
  27497. position: relative;
  27498. justify-content: center;
  27499. }
  27500. /* .answerBg > div:nth-child(1) { */
  27501. /* font-size: 22px;
  27502. padding: 25px 0 10px; */
  27503. /* } */
  27504. .answerContent {
  27505. width: 215px;
  27506. max-height: 60px;
  27507. word-break: break-all;
  27508. text-align: center;
  27509. /* white-space: nowrap; */
  27510. overflow: hidden;
  27511. text-overflow: ellipsis;
  27512. /* padding: 23px 0 0; */
  27513. -webkit-line-clamp: 3;
  27514. -webkit-box-orient: vertical;
  27515. display: -webkit-box;
  27516. font-size: 15px;
  27517. cursor: pointer;
  27518. }
  27519. .elist_input_box {
  27520. display: flex;
  27521. align-items: flex-start;
  27522. flex-wrap: nowrap;
  27523. padding: 10px 0 15px 30px;
  27524. flex-direction: column;
  27525. }
  27526. .elist_input {
  27527. /* width: 40%; */
  27528. width: 45%;
  27529. padding: 20px;
  27530. /* margin: 20px; */
  27531. box-sizing: border-box;
  27532. }
  27533. .elist_input .elist_input_box input {
  27534. font: inherit;
  27535. color: currentColor;
  27536. width: 200px;
  27537. padding: 8px 14px;
  27538. display: block;
  27539. min-width: 0;
  27540. outline: none;
  27541. border: 1px solid rgba(0, 0, 0, 0.23);
  27542. border-radius: 4px;
  27543. box-sizing: border-box;
  27544. background: #fff;
  27545. margin: 0 20px 0 0;
  27546. }
  27547. .elist_input .elist_input_box span {
  27548. height: 36px;
  27549. line-height: 36px;
  27550. color: rgb(82, 82, 82);
  27551. }
  27552. .elist_input .elist_input_box .remove {
  27553. height: 20px;
  27554. width: 20px;
  27555. background-size: 100% 100%;
  27556. background-position: unset;
  27557. margin-left: 5px;
  27558. }
  27559. .elist_input_box >>> .el-rate {
  27560. display: flex;
  27561. height: 36px;
  27562. align-items: center;
  27563. }
  27564. .elist_input_box .elist_inptu_text {
  27565. min-height: 50px;
  27566. /* width: 500px;
  27567. max-height: 150px; */
  27568. width: 100%;
  27569. line-height: 50px;
  27570. color: rgb(82, 82, 82);
  27571. overflow: auto;
  27572. text-indent: 5px;
  27573. background: #f7f6f9;
  27574. border-radius: 10px;
  27575. }
  27576. .elist_input_box .elist_inptu_text input {
  27577. width: 500px;
  27578. }
  27579. .elist_input_box >>> .el-rate__icon {
  27580. font-size: 24px;
  27581. }
  27582. .isClick {
  27583. background: #4d9def;
  27584. }
  27585. .bzBox {
  27586. display: flex;
  27587. flex-direction: row;
  27588. align-items: center;
  27589. }
  27590. .bzBox .yCss {
  27591. width: 7px;
  27592. height: 7px;
  27593. background: #fff;
  27594. margin: 0 16px 0 6px;
  27595. border-radius: 50%;
  27596. border: 5px solid #3681fc;
  27597. z-index: 99;
  27598. }
  27599. .bzBox > div:nth-child(2) {
  27600. font-size: 18px;
  27601. font-weight: bold;
  27602. color: #0e1e33;
  27603. }
  27604. .navTitile {
  27605. padding: 0 0px 0 15px;
  27606. font-size: 16px;
  27607. font-weight: bold;
  27608. color: #0e1e33;
  27609. height: 40px;
  27610. line-height: 40px;
  27611. }
  27612. .isTypeOne {
  27613. width: 240px;
  27614. height: 170px;
  27615. /* border: 1px solid #f8f8f8; */
  27616. border-radius: 10px;
  27617. box-shadow: 0 0 6px 1px #dfdada;
  27618. }
  27619. .e_add_top {
  27620. display: flex;
  27621. justify-content: space-between;
  27622. padding: 10px 20px;
  27623. border-radius: 3px;
  27624. background: #fff;
  27625. }
  27626. .e_add_title2 {
  27627. display: flex;
  27628. align-items: center;
  27629. }
  27630. .e_add_title2 span {
  27631. width: 40px;
  27632. }
  27633. .e_add_title {
  27634. display: flex;
  27635. align-items: center;
  27636. color: #b8b8b8;
  27637. font-size: 18px;
  27638. position: relative;
  27639. height: 40px;
  27640. }
  27641. .e_add_title span {
  27642. margin-right: 10px;
  27643. }
  27644. .e_add_title .el_input {
  27645. width: 300px;
  27646. }
  27647. .e_add_title >>> .el-input__inner {
  27648. width: 400px;
  27649. }
  27650. .e_add_btn {
  27651. }
  27652. .e_add_content {
  27653. display: flex;
  27654. width: 100%;
  27655. max-width: 650px;
  27656. height: 550px;
  27657. }
  27658. .e_add_list {
  27659. background: #fff;
  27660. height: 500px;
  27661. width: 210px;
  27662. position: relative;
  27663. margin: 15px 5px 0 0;
  27664. flex-shrink: 0;
  27665. display: flex;
  27666. flex-direction: column;
  27667. }
  27668. .e_add_list_title {
  27669. font-size: 20px;
  27670. width: 100%;
  27671. box-sizing: border-box;
  27672. padding: 15px 40px;
  27673. text-align: center;
  27674. border-bottom: 1px solid #eaeaea;
  27675. position: relative;
  27676. display: flex;
  27677. align-items: center;
  27678. justify-content: center;
  27679. height: 57px;
  27680. background: #f6f6f6;
  27681. }
  27682. .e_add_list_title span {
  27683. overflow: hidden;
  27684. white-space: nowrap;
  27685. text-overflow: ellipsis;
  27686. }
  27687. .e_add_list_title img {
  27688. position: absolute;
  27689. right: 15px;
  27690. width: 25px;
  27691. cursor: pointer;
  27692. top: 50%;
  27693. transform: translateY(-50%);
  27694. }
  27695. .e_add_list_body {
  27696. height: calc(100% - 187px);
  27697. overflow: auto;
  27698. }
  27699. .e_add_list_child {
  27700. width: 100%;
  27701. display: flex;
  27702. align-items: center;
  27703. justify-content: center;
  27704. position: relative;
  27705. box-sizing: border-box;
  27706. padding: 15px 40px;
  27707. text-align: center;
  27708. }
  27709. .e_add_list_child span {
  27710. overflow: hidden;
  27711. white-space: nowrap;
  27712. text-overflow: ellipsis;
  27713. cursor: pointer;
  27714. }
  27715. .e_add_list_child img {
  27716. position: absolute;
  27717. right: 10px;
  27718. width: 21px;
  27719. cursor: pointer;
  27720. top: 50%;
  27721. transform: translateY(-50%);
  27722. }
  27723. .e_add_list_child + .e_add_list_child {
  27724. border-top: 1px solid #eaeaea;
  27725. }
  27726. .e_add_list_child .active {
  27727. color: #409eff;
  27728. }
  27729. .e_add_list_btn {
  27730. position: absolute;
  27731. bottom: 0;
  27732. height: 50px;
  27733. background: rgb(120, 120, 254);
  27734. width: 100%;
  27735. color: #fff;
  27736. font-size: 16px;
  27737. text-align: center;
  27738. line-height: 50px;
  27739. cursor: pointer;
  27740. }
  27741. .e_add_list_detail {
  27742. position: absolute;
  27743. bottom: 0;
  27744. height: 130px;
  27745. background: rgb(120, 120, 254);
  27746. width: 100%;
  27747. color: #fff;
  27748. font-size: 16px;
  27749. display: flex;
  27750. align-items: center;
  27751. justify-content: center;
  27752. }
  27753. .e_add_list_detail textarea {
  27754. height: 90%;
  27755. width: 95%;
  27756. border: none;
  27757. resize: none;
  27758. outline: none;
  27759. padding: 5px;
  27760. box-sizing: border-box;
  27761. }
  27762. .e_add_list_pbox {
  27763. width: 100%;
  27764. max-width: 650px;
  27765. /* height: 600px; */
  27766. }
  27767. .e_add_list_pbox_title {
  27768. height: 50px;
  27769. background: #fff;
  27770. display: flex;
  27771. align-items: center;
  27772. width: 100%;
  27773. box-sizing: border-box;
  27774. padding: 0 20px;
  27775. }
  27776. .type_title {
  27777. font-size: 18px;
  27778. font-weight: 700;
  27779. }
  27780. .type_content {
  27781. font-size: 16px;
  27782. /* margin-left: 30px; */
  27783. }
  27784. .type_content span + span {
  27785. margin-left: 20px;
  27786. }
  27787. .type_content span {
  27788. cursor: pointer;
  27789. padding-bottom: 5px;
  27790. box-sizing: border-box;
  27791. }
  27792. .type_content .active {
  27793. color: #409eff;
  27794. border-bottom: 2px solid #409eff;
  27795. }
  27796. .e_add_list_pbox_content {
  27797. height: calc(100% - 50px);
  27798. display: flex;
  27799. align-items: center;
  27800. width: 100%;
  27801. background: #fff;
  27802. }
  27803. .evaCss {
  27804. display: flex;
  27805. flex-direction: row;
  27806. flex-wrap: nowrap;
  27807. align-items: flex-start;
  27808. padding: 0 0 20px;
  27809. }
  27810. .evaCss >>> .cell {
  27811. position: relative;
  27812. overflow: visible;
  27813. }
  27814. .evaCss >>> .el-table__body-wrapper {
  27815. overflow: visible;
  27816. }
  27817. .evaCss >>> .el-table {
  27818. overflow: visible;
  27819. }
  27820. .blueRootCss {
  27821. position: absolute;
  27822. top: 50%;
  27823. left: 0;
  27824. transform: translate(-20px, -50%);
  27825. }
  27826. .cru_line {
  27827. position: absolute;
  27828. bottom: 0px;
  27829. transition: all 0.5s;
  27830. left: 0px;
  27831. width: 125px;
  27832. margin-left: -25px;
  27833. }
  27834. .isNoMessage {
  27835. width: 20%;
  27836. margin: 25% auto 0;
  27837. }
  27838. .isNoMessage > img {
  27839. width: 100%;
  27840. height: 100%;
  27841. }
  27842. .fullStyle >>> .el-dialog__body {
  27843. height: 100% !important;
  27844. }
  27845. .fullStyle >>> .el-dialog,
  27846. .fullStyle {
  27847. width: 100% !important;
  27848. max-width: 100% !important;
  27849. height: 100% !important;
  27850. margin: 0 !important;
  27851. }
  27852. .full_diy >>> .el-dialog {
  27853. margin: 0 !important;
  27854. height: 100%;
  27855. padding: 4px;
  27856. }
  27857. .full_diy >>> .el-dialog__body {
  27858. height: calc(100% - 100px);
  27859. }
  27860. .full_diy2 >>> .el-dialog__body {
  27861. height: calc(100% - 50px);
  27862. padding: 0;
  27863. }
  27864. .switchCss {
  27865. /* width: 100%; */
  27866. display: flex;
  27867. flex-direction: row;
  27868. flex-wrap: nowrap;
  27869. align-items: center;
  27870. /* justify-content: center; */
  27871. }
  27872. .isClickNav {
  27873. /* color: #499eef; */
  27874. color: #000;
  27875. }
  27876. .commentImg {
  27877. width: 25px;
  27878. height: 25px;
  27879. cursor: pointer;
  27880. }
  27881. .commentImg > img {
  27882. width: 100%;
  27883. height: 100%;
  27884. }
  27885. .comment {
  27886. background: #f9f9f9;
  27887. border-radius: 0 0 4px 4px;
  27888. display: flex;
  27889. flex-direction: row;
  27890. flex-wrap: nowrap;
  27891. align-items: center;
  27892. justify-content: flex-end;
  27893. height: 35px;
  27894. }
  27895. .commentList {
  27896. display: flex;
  27897. flex-direction: row;
  27898. flex-wrap: nowrap;
  27899. align-items: center;
  27900. justify-content: center;
  27901. align-content: center;
  27902. /* margin-left: 15px; */
  27903. /* margin-left: 8px; */
  27904. }
  27905. .scoreImg {
  27906. width: 17px;
  27907. height: 17px;
  27908. }
  27909. .studentDetail {
  27910. display: flex;
  27911. flex-direction: row;
  27912. flex-wrap: nowrap;
  27913. /* align-items: center; */
  27914. align-items: flex-start;
  27915. }
  27916. .tx {
  27917. width: 50px;
  27918. }
  27919. .tx > img {
  27920. width: 100%;
  27921. height: 100%;
  27922. }
  27923. .nameAndTime {
  27924. display: flex;
  27925. flex-direction: column;
  27926. flex-wrap: nowrap;
  27927. align-items: flex-start;
  27928. margin-left: 10px;
  27929. }
  27930. .worksAnswer {
  27931. color: #4078dd;
  27932. margin: 10px 0;
  27933. font-size: 16px;
  27934. position: relative;
  27935. }
  27936. .worksAnswer > img {
  27937. width: 500px;
  27938. height: 300px;
  27939. object-fit: contain;
  27940. margin: 0 auto;
  27941. display: block;
  27942. }
  27943. .commentTop {
  27944. border-bottom: 1px solid #eaeaea;
  27945. padding-bottom: 10px;
  27946. }
  27947. .commentBox {
  27948. padding-top: 15px;
  27949. }
  27950. .pl {
  27951. font-size: 18px;
  27952. }
  27953. .plPerson {
  27954. width: 100%;
  27955. }
  27956. .plName {
  27957. display: flex;
  27958. flex-direction: row;
  27959. flex-wrap: nowrap;
  27960. align-items: baseline;
  27961. color: #78787a;
  27962. width: 100%;
  27963. }
  27964. .deleteComment {
  27965. cursor: pointer;
  27966. margin-left: auto;
  27967. color: #237ade;
  27968. }
  27969. .plContent {
  27970. margin-top: 5px;
  27971. }
  27972. .evalCss {
  27973. background: #fff;
  27974. font-size: 18px;
  27975. }
  27976. .nav {
  27977. color: #9d9d9d;
  27978. padding: 5px 0 15px 20px;
  27979. }
  27980. .middleBox {
  27981. padding: 5px 0 15px 20px;
  27982. }
  27983. .pfBox {
  27984. padding-bottom: 30px;
  27985. }
  27986. .nameAndrate {
  27987. display: flex;
  27988. flex-direction: row;
  27989. flex-wrap: nowrap;
  27990. align-items: center;
  27991. padding-bottom: 10px;
  27992. height: 30px;
  27993. line-height: 30px;
  27994. }
  27995. .nameAndrate > div {
  27996. margin-left: 10px;
  27997. color: #000;
  27998. height: 30px;
  27999. }
  28000. .nameAndrate >>> .el-rate__icon {
  28001. font-size: 28px !important;
  28002. }
  28003. .pfBox > div:nth-child(2) {
  28004. background: #f7f6f9;
  28005. width: 400px;
  28006. min-height: 45px;
  28007. border-radius: 10px;
  28008. font-size: 16px;
  28009. display: flex;
  28010. flex-wrap: wrap;
  28011. align-items: center;
  28012. padding: 10px 20px;
  28013. box-sizing: border-box;
  28014. color: #000;
  28015. }
  28016. .bz {
  28017. display: flex;
  28018. flex-direction: row;
  28019. flex-wrap: nowrap;
  28020. align-items: flex-start;
  28021. }
  28022. .bz > div {
  28023. padding: 0 10px;
  28024. }
  28025. .select_box2_title {
  28026. background: #fff;
  28027. border-radius: 5px;
  28028. padding: 15px 10px;
  28029. box-sizing: border-box;
  28030. margin-bottom: 10px;
  28031. display: flex;
  28032. flex-direction: row;
  28033. flex-wrap: nowrap;
  28034. align-items: center;
  28035. }
  28036. .select_box2_title > div:nth-child(2) {
  28037. margin-left: 10px;
  28038. color: #c4c4c4;
  28039. }
  28040. .select_box2_box {
  28041. display: flex;
  28042. height: 500px;
  28043. }
  28044. .select_box2_img {
  28045. width: calc(100% - 310px);
  28046. height: 100%;
  28047. overflow: auto;
  28048. background: #fff;
  28049. border-radius: 5px;
  28050. }
  28051. .select_box2_img img {
  28052. width: 100%;
  28053. }
  28054. .select_box2_answer {
  28055. background: #fff;
  28056. margin-left: 10px;
  28057. border-radius: 5px;
  28058. width: 300px;
  28059. overflow: auto;
  28060. height: 90%;
  28061. display: flex;
  28062. flex-direction: column;
  28063. align-items: flex-start;
  28064. padding-top: 10px;
  28065. box-sizing: border-box;
  28066. position: relative;
  28067. }
  28068. .select_answer_title {
  28069. padding: 0 0 15px 20px;
  28070. color: #c4c4c4;
  28071. }
  28072. .select_box2_answer_box {
  28073. margin: 0 0 10px 20px;
  28074. width: 85%;
  28075. display: flex;
  28076. flex-direction: row;
  28077. flex-wrap: nowrap;
  28078. align-items: center;
  28079. }
  28080. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  28081. color: #000;
  28082. }
  28083. .upAnswerCss {
  28084. position: absolute;
  28085. bottom: 15px;
  28086. right: 15px;
  28087. }
  28088. .upAnswerCss >>> .el-button {
  28089. width: 95px;
  28090. height: 35px;
  28091. line-height: 35px;
  28092. padding: 0;
  28093. }
  28094. .rightWidthCss {
  28095. width: 60%;
  28096. display: flex;
  28097. flex-direction: row;
  28098. align-items: flex-start;
  28099. }
  28100. .rightAnswer {
  28101. display: flex;
  28102. flex-direction: row;
  28103. flex-wrap: nowrap;
  28104. align-items: center;
  28105. color: red;
  28106. margin-bottom: 31px;
  28107. }
  28108. .rightAnswerCss {
  28109. display: flex;
  28110. flex-direction: column;
  28111. flex-wrap: nowrap;
  28112. padding-top: 60px;
  28113. }
  28114. .blueCss {
  28115. color: #767de1;
  28116. margin-left: 10px;
  28117. }
  28118. .redCss {
  28119. color: red;
  28120. }
  28121. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  28122. color: rgb(0 123 255) !important;
  28123. }
  28124. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  28125. color: rgb(0 123 255) !important;
  28126. }
  28127. .zuoyeYulan {
  28128. padding-top: 0;
  28129. font-size: 18px;
  28130. display: flex;
  28131. align-items: flex-end;
  28132. }
  28133. .buttonA {
  28134. margin-left: 10px;
  28135. padding: 0;
  28136. }
  28137. .displayBox {
  28138. margin-bottom: 10px;
  28139. display: block;
  28140. border-bottom: 3px solid #eee;
  28141. display: flex;
  28142. align-items: center;
  28143. }
  28144. .easy_comment {
  28145. width: calc(100% - 90px);
  28146. margin-left: 10px;
  28147. display: flex;
  28148. flex-wrap: wrap;
  28149. }
  28150. .easy_comment > div {
  28151. border: 1px solid #4a4a4a;
  28152. color: #666;
  28153. border-radius: 15px;
  28154. padding: 5px 10px;
  28155. font-size: 16px;
  28156. margin-bottom: 10px;
  28157. margin-right: 5px;
  28158. cursor: pointer;
  28159. }
  28160. .easy_comment div:hover {
  28161. border: 1px solid #f7ba2a;
  28162. color: #c69217;
  28163. }
  28164. .xuan_right_box {
  28165. padding: 10px 0;
  28166. background: #f0f4fa;
  28167. margin: 0 15px 0 25px;
  28168. border-bottom-left-radius: 5px;
  28169. border-bottom-right-radius: 5px;
  28170. width: 91.5%;
  28171. }
  28172. .tool_right_box {
  28173. display: flex;
  28174. align-items: center;
  28175. }
  28176. .tool_right_box + .tool_right_box {
  28177. margin-top: 10px;
  28178. }
  28179. .right_box_xuan {
  28180. border-radius: 5px;
  28181. padding: 5px;
  28182. margin-left: 10px;
  28183. min-width: 85px;
  28184. background: #fff;
  28185. color: #0061ff;
  28186. border: 1px solid #0061ff;
  28187. font-size: 14px;
  28188. }
  28189. .pButton:hover {
  28190. opacity: 1 !important;
  28191. }
  28192. .pButton {
  28193. position: fixed;
  28194. text-align: center;
  28195. cursor: pointer;
  28196. z-index: 999;
  28197. right: 20px;
  28198. top: 110px;
  28199. width: 50px;
  28200. height: 50px;
  28201. display: flex;
  28202. align-items: center;
  28203. justify-content: center;
  28204. border-radius: 5px;
  28205. }
  28206. .pzClass {
  28207. width: calc(100% - 340px);
  28208. }
  28209. .newDialogCss {
  28210. /* position: fixed;
  28211. right: 5%;
  28212. top: 50%;
  28213. width: 340px;
  28214. transform: translateY(-50%);
  28215. height: 60%;
  28216. box-shadow: 0px 0 8px 0px #555555;
  28217. border-radius: 15px;
  28218. z-index: 999; */
  28219. position: fixed;
  28220. right: 20px;
  28221. top: 101px;
  28222. width: 330px;
  28223. height: calc(100% - 80px);
  28224. z-index: 999;
  28225. background: #fff;
  28226. border-top-right-radius: 0px;
  28227. border-bottom-right-radius: 0px;
  28228. overflow: hidden;
  28229. }
  28230. .newDialogCss > .scoreList {
  28231. width: 100%;
  28232. height: 100%;
  28233. box-sizing: border-box;
  28234. padding: 10px 15px;
  28235. overflow: auto;
  28236. padding-bottom: 80px;
  28237. }
  28238. .pzTop {
  28239. color: #fff;
  28240. background: #000;
  28241. display: flex;
  28242. flex-direction: row;
  28243. flex-wrap: nowrap;
  28244. align-items: center;
  28245. justify-content: space-between;
  28246. height: 40px;
  28247. border-radius: 15px 15px 0 0;
  28248. user-select: none;
  28249. }
  28250. .pzTop2 .checkbox {
  28251. display: flex;
  28252. align-items: center;
  28253. padding: 5px 10px;
  28254. flex: 0 0 auto;
  28255. font-weight: bold;
  28256. border-bottom: 1px solid #eee;
  28257. justify-content: space-between;
  28258. }
  28259. .checkbox > .cb-tabList {
  28260. display: flex;
  28261. align-items: center;
  28262. }
  28263. .cb-tabList > div {
  28264. margin-right: 20px;
  28265. font-weight: 400;
  28266. cursor: pointer;
  28267. }
  28268. .cb-tabList > .cb-tabItem {
  28269. color: #1684fc;
  28270. position: relative;
  28271. }
  28272. .cb-tabItem::after {
  28273. content: "";
  28274. width: 100%;
  28275. height: 2px;
  28276. background: #1684fc;
  28277. position: absolute;
  28278. bottom: -5px;
  28279. left: 0;
  28280. }
  28281. .pzTop2 .check {
  28282. text-align: center;
  28283. cursor: pointer;
  28284. box-sizing: border-box;
  28285. display: flex;
  28286. }
  28287. .pzTop2 img {
  28288. width: 25px;
  28289. cursor: pointer;
  28290. }
  28291. .pzTop > div:nth-child(1) {
  28292. padding-left: 10px;
  28293. }
  28294. .pzTop > div:nth-child(2) {
  28295. width: 15px;
  28296. height: 15px;
  28297. padding-right: 10px;
  28298. cursor: pointer;
  28299. }
  28300. .pzTop > div:nth-child(2) > img {
  28301. width: 100%;
  28302. height: 100%;
  28303. }
  28304. .pzBox,
  28305. .noPzBox {
  28306. height: calc(100% - 60px);
  28307. /* background: #ededed; */
  28308. background: #fff;
  28309. /* border-radius: 0 0 15px 15px; */
  28310. }
  28311. .noPzBox {
  28312. display: flex;
  28313. flex-direction: column;
  28314. flex-wrap: nowrap;
  28315. justify-content: center;
  28316. align-items: center;
  28317. }
  28318. .pzList {
  28319. background: #f7f7f7;
  28320. width: 90%;
  28321. margin: 0 auto 15px;
  28322. border-radius: 5px;
  28323. }
  28324. .pzNavTop {
  28325. display: flex;
  28326. flex-direction: row;
  28327. flex-wrap: nowrap;
  28328. padding: 10px 10px 0 10px;
  28329. align-items: center;
  28330. }
  28331. .pzDelete {
  28332. cursor: pointer;
  28333. margin-left: auto;
  28334. font-size: 14px;
  28335. color: #afafaf;
  28336. }
  28337. .pzNavTop > div:nth-child(1) {
  28338. background: #3760af;
  28339. width: 35px;
  28340. height: 35px;
  28341. color: #fff;
  28342. text-align: center;
  28343. line-height: 35px;
  28344. border-radius: 50%;
  28345. font-size: 14px;
  28346. }
  28347. .pzNavTop > div:nth-child(2) {
  28348. font-size: 18px;
  28349. color: #959595;
  28350. margin-left: 5px;
  28351. }
  28352. .pzContent {
  28353. padding: 10px;
  28354. word-break: break-word;
  28355. }
  28356. .pzContent audio {
  28357. width: 100%;
  28358. }
  28359. .pzContent audio::-webkit-media-controls-panel {
  28360. background: #fff;
  28361. }
  28362. .pzContent >>> img {
  28363. max-width: 100%;
  28364. }
  28365. .pzListBox {
  28366. padding-top: 15px;
  28367. height: calc(100% - 110px);
  28368. overflow: auto;
  28369. }
  28370. .addPzButton {
  28371. position: relative;
  28372. margin-top: 3px;
  28373. width: 100%;
  28374. }
  28375. .addPzButton .img1 {
  28376. position: absolute;
  28377. top: 50%;
  28378. right: 25px;
  28379. transform: translateY(-50%);
  28380. height: 100%;
  28381. display: flex;
  28382. align-items: center;
  28383. }
  28384. .addPzButton .img1 div {
  28385. display: flex;
  28386. }
  28387. .addPzButton .img1 div img {
  28388. width: 28px;
  28389. margin-left: 10px;
  28390. cursor: pointer;
  28391. }
  28392. .addPzButton .img1 div span {
  28393. font-size: 14px;
  28394. margin: 4px 0 0 3px;
  28395. color: #afafaf;
  28396. }
  28397. .addPz {
  28398. background: #4b79ce;
  28399. width: 100px;
  28400. color: #fff;
  28401. font-size: 12px;
  28402. height: 30px;
  28403. margin: 0 auto;
  28404. text-align: center;
  28405. line-height: 30px;
  28406. border-radius: 10px;
  28407. cursor: pointer;
  28408. }
  28409. .addDialogCss {
  28410. position: fixed;
  28411. width: 600px;
  28412. height: 70%;
  28413. min-height: 450px;
  28414. box-shadow: 0px 0 8px 0px #555555;
  28415. border-radius: 15px;
  28416. z-index: 999;
  28417. left: 50%;
  28418. top: 50%;
  28419. margin: -18% 0 0 -300px;
  28420. }
  28421. .teacherPz {
  28422. display: flex;
  28423. flex-direction: row;
  28424. align-items: center;
  28425. flex-wrap: nowrap;
  28426. }
  28427. .teacherPzImg {
  28428. width: 30px;
  28429. height: 30px;
  28430. }
  28431. .teacherPzImg > img {
  28432. width: 100%;
  28433. height: 100%;
  28434. }
  28435. .addPzBox {
  28436. height: calc(100% - 40px);
  28437. background: #ededed;
  28438. border-bottom-left-radius: 15px;
  28439. border-bottom-right-radius: 15px;
  28440. }
  28441. .pzAudioClass {
  28442. margin: 15px 14px;
  28443. background: #fff;
  28444. height: 100%;
  28445. display: flex;
  28446. justify-content: center;
  28447. align-items: center;
  28448. }
  28449. .pzConText {
  28450. width: 95%;
  28451. height: 100%;
  28452. margin: 10px auto 0;
  28453. border: none;
  28454. background: #fff;
  28455. border-radius: 0px;
  28456. }
  28457. .pzConText >>> .text {
  28458. height: calc(100% - 82px);
  28459. }
  28460. .addTextCss {
  28461. background: #4b79ce;
  28462. width: 80px;
  28463. height: 30px;
  28464. text-align: center;
  28465. color: #fff;
  28466. line-height: 30px;
  28467. border-radius: 10px;
  28468. margin: 10px auto 0;
  28469. cursor: pointer;
  28470. }
  28471. .pzConText:focus-visible {
  28472. border: none !important;
  28473. }
  28474. .maxWidth {
  28475. width: 1000px;
  28476. }
  28477. .noPz {
  28478. width: 150px;
  28479. margin: 0 auto 20%;
  28480. }
  28481. .noPz > img {
  28482. width: 100%;
  28483. height: 100%;
  28484. }
  28485. .timeAndReply {
  28486. display: flex;
  28487. flex-direction: row;
  28488. flex-wrap: nowrap;
  28489. justify-content: space-between;
  28490. align-items: center;
  28491. font-size: 14px;
  28492. box-sizing: border-box;
  28493. padding: 0 10px 10px 0px;
  28494. }
  28495. .timeAndReply .time {
  28496. color: #bfbfbf;
  28497. padding: 0 0 0 10px;
  28498. box-sizing: border-box;
  28499. }
  28500. .timeAndReply > div:last-child {
  28501. cursor: pointer;
  28502. color: #777;
  28503. }
  28504. /* table 样式 */
  28505. .cont >>> table {
  28506. border-top: 1px solid #ccc;
  28507. border-left: 1px solid #ccc;
  28508. }
  28509. .cont >>> table td,
  28510. .cont >>> table th {
  28511. border-bottom: 1px solid #ccc;
  28512. border-right: 1px solid #ccc;
  28513. /* padding: 20px 5px; */
  28514. padding: 5px 10px;
  28515. max-width: 0px;
  28516. height: 30px;
  28517. vertical-align: baseline;
  28518. box-sizing: border-box;
  28519. }
  28520. .cont >>> table th {
  28521. border-bottom: 2px solid #ccc;
  28522. text-align: center;
  28523. }
  28524. /* blockquote 样式 */
  28525. .cont >>> blockquote {
  28526. display: block;
  28527. border-left: 8px solid #d0e5f2;
  28528. padding: 5px 10px;
  28529. margin: 10px 0;
  28530. line-height: 1.4;
  28531. font-size: 100%;
  28532. background-color: #f1f1f1;
  28533. }
  28534. /* code 样式 */
  28535. .cont >>> code {
  28536. display: inline-block;
  28537. /* *display: inline; */
  28538. zoom: 1;
  28539. background-color: #f1f1f1;
  28540. border-radius: 3px;
  28541. padding: 3px 5px;
  28542. margin: 0 3px;
  28543. }
  28544. .cont >>> pre code {
  28545. display: block;
  28546. }
  28547. /* ul ol 样式 */
  28548. .cont >>> ul,
  28549. ol {
  28550. margin: 10px 0 10px 20px;
  28551. }
  28552. .addPzCheck {
  28553. display: flex;
  28554. flex-direction: row;
  28555. flex-wrap: nowrap;
  28556. padding: 10px 15px 0;
  28557. }
  28558. .addPzCheck span {
  28559. cursor: pointer;
  28560. padding-bottom: 5px;
  28561. font-weight: bold;
  28562. }
  28563. .addPzCheck span + span {
  28564. margin-left: 10px;
  28565. }
  28566. .addPzCheck .isChooseActive {
  28567. color: #3e88f4;
  28568. border-bottom: 2px solid #2f80f3;
  28569. }
  28570. /* code 样式 */
  28571. .cont {
  28572. /* -webkit-user-modify: read-write; */
  28573. overflow-wrap: break-word;
  28574. -webkit-line-break: after-white-space;
  28575. word-break: break-word;
  28576. white-space: pre-line;
  28577. }
  28578. .scoreBox,
  28579. .scoreDetailBox {
  28580. display: flex;
  28581. align-items: center;
  28582. justify-content: flex-start;
  28583. margin-top: 20px;
  28584. font-size: 18px;
  28585. width: 100%;
  28586. }
  28587. .scoreBox .t,
  28588. .scoreDetailBox .t {
  28589. margin-right: 10px;
  28590. width: 100px;
  28591. text-align: right;
  28592. }
  28593. .scoreDetailBox {
  28594. align-items: flex-start;
  28595. }
  28596. .scoreDetailBox >>> .el-textarea {
  28597. width: calc(100% - 200px);
  28598. }
  28599. .scoreBox >>> .el-input {
  28600. width: 130px;
  28601. font-size: 38px;
  28602. }
  28603. .scoreBox >>> .el-input__inner {
  28604. height: 60px;
  28605. }
  28606. .answerScore {
  28607. position: absolute;
  28608. top: 10px;
  28609. right: 10px;
  28610. background: #0000008f;
  28611. border-radius: 5px;
  28612. padding: 3px 5px;
  28613. font-size: 14px;
  28614. color: #fff;
  28615. cursor: pointer;
  28616. }
  28617. .open_box .switch_box {
  28618. width: 100%;
  28619. margin: 0 auto;
  28620. display: flex;
  28621. justify-content: space-between;
  28622. }
  28623. .open_box .switch_box + .switch_box {
  28624. margin-top: 10px;
  28625. }
  28626. .deleteImg,
  28627. .deleteImg1 {
  28628. width: 25px !important;
  28629. height: 25px !important;
  28630. cursor: pointer;
  28631. position: absolute;
  28632. top: 10px;
  28633. right: 10px;
  28634. }
  28635. .deleteImg2 {
  28636. width: 23px !important;
  28637. height: 23px !important;
  28638. top: 5px;
  28639. right: 5px;
  28640. }
  28641. .deleteImg1 {
  28642. width: 23px !important;
  28643. height: 23px !important;
  28644. top: 5px !important;
  28645. right: 30px !important;
  28646. }
  28647. .rightW {
  28648. right: 40px;
  28649. }
  28650. .drawPBox {
  28651. display: flex;
  28652. flex-direction: column;
  28653. position: relative;
  28654. }
  28655. .drawPBox span {
  28656. font-size: 18px;
  28657. color: #606266;
  28658. padding-bottom: 10px;
  28659. margin: 10px 0;
  28660. border-bottom: 1px solid #eaeaea;
  28661. }
  28662. .drawPBox img {
  28663. width: 500px;
  28664. height: 300px;
  28665. object-fit: contain;
  28666. cursor: pointer;
  28667. margin: 0 auto;
  28668. }
  28669. .sentenBox {
  28670. background: #fff;
  28671. height: 450px;
  28672. overflow: auto;
  28673. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28674. background-position: 102%;
  28675. background-repeat: no-repeat;
  28676. background-size: 60%;
  28677. }
  28678. .addSen {
  28679. background: #409efe;
  28680. width: 90px;
  28681. color: #fff;
  28682. height: 35px;
  28683. text-align: center;
  28684. line-height: 35px;
  28685. border-radius: 5px;
  28686. float: right;
  28687. margin: 10px 20px 0 0;
  28688. cursor: pointer;
  28689. }
  28690. .sentenTop {
  28691. display: flex;
  28692. flex-direction: row;
  28693. flex-wrap: nowrap;
  28694. align-items: center;
  28695. padding: 55px 0 0 20px;
  28696. box-sizing: border-box;
  28697. }
  28698. .sentenTop > div:nth-child(2) {
  28699. width: 300px;
  28700. margin: 0 15px;
  28701. }
  28702. .sentenTop > div:nth-child(3) {
  28703. background: #409efe;
  28704. color: #fff;
  28705. width: 65px;
  28706. height: 35px;
  28707. text-align: center;
  28708. line-height: 35px;
  28709. border-radius: 5px;
  28710. cursor: pointer;
  28711. }
  28712. .cardList,
  28713. .cardList1 {
  28714. padding: 10px 0 10px 0;
  28715. display: flex;
  28716. flex-direction: row;
  28717. flex-wrap: wrap;
  28718. align-items: center;
  28719. box-sizing: border-box;
  28720. border-bottom: 1px solid #f4f4f4;
  28721. width: 98%;
  28722. margin: 0 auto;
  28723. min-width: 60%;
  28724. max-width: 85%;
  28725. }
  28726. .cardList1 {
  28727. padding: 10px 0 10px 10px !important;
  28728. margin: 0 !important;
  28729. }
  28730. .cardBox {
  28731. display: flex;
  28732. flex-direction: row;
  28733. flex-wrap: wrap;
  28734. align-items: center;
  28735. align-content: center;
  28736. }
  28737. .cardBox > div {
  28738. margin-bottom: 10px;
  28739. }
  28740. .isCard,
  28741. .isChooseCard,
  28742. .noCard,
  28743. .isCard1 {
  28744. min-width: 130px;
  28745. width: auto;
  28746. height: 60px;
  28747. text-align: center;
  28748. line-height: 60px;
  28749. font-size: 20px;
  28750. cursor: pointer;
  28751. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28752. background-size: cover;
  28753. transition: all 2s;
  28754. margin-right: 20px;
  28755. background-size: 100% 100%;
  28756. padding: 0 20px;
  28757. box-sizing: border-box;
  28758. }
  28759. .isCard > div,
  28760. .noCard > div,
  28761. .isCard1 > div {
  28762. white-space: nowrap;
  28763. overflow: hidden;
  28764. text-overflow: ellipsis;
  28765. width: 100%;
  28766. margin: 0 auto;
  28767. }
  28768. .noCard {
  28769. background-image: none;
  28770. }
  28771. .isCard1 {
  28772. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28773. }
  28774. .isChooseCard {
  28775. background-image: none;
  28776. border: 1px dashed #b9b9b9;
  28777. border-radius: 10px;
  28778. }
  28779. .card {
  28780. width: 130px;
  28781. height: 60px;
  28782. }
  28783. .card > img {
  28784. width: 100%;
  28785. height: 100%;
  28786. }
  28787. .rightCardBox {
  28788. margin: 10px 0 0 10px;
  28789. }
  28790. .rightCardBox > div:nth-child(1) {
  28791. margin-bottom: 10px;
  28792. }
  28793. .cardCss {
  28794. display: flex;
  28795. flex-direction: column;
  28796. flex-wrap: nowrap;
  28797. align-items: center;
  28798. border-bottom: 3px solid #b4c3d3;
  28799. padding: 0 0 5px 0;
  28800. margin-right: 10px;
  28801. }
  28802. .cardCss > div:nth-child(2) {
  28803. background: #5b7b9d;
  28804. color: #fff;
  28805. width: 20px;
  28806. height: 20px;
  28807. border-radius: 50%;
  28808. text-align: center;
  28809. line-height: 20px;
  28810. }
  28811. .isWrong {
  28812. display: flex;
  28813. flex-direction: row;
  28814. flex-wrap: nowrap;
  28815. align-content: center;
  28816. align-items: center;
  28817. }
  28818. .answerRight {
  28819. width: 25%;
  28820. }
  28821. .isTj {
  28822. display: flex;
  28823. flex-direction: row;
  28824. flex-wrap: nowrap;
  28825. align-items: center;
  28826. }
  28827. .isTj > div:nth-child(2) {
  28828. color: #727070;
  28829. margin-left: 10px;
  28830. }
  28831. .isTjImg {
  28832. width: 30px;
  28833. height: 30px;
  28834. }
  28835. .isTjImg > img {
  28836. width: 100%;
  28837. height: 100%;
  28838. }
  28839. .cardAnswerBox {
  28840. font-size: 18px;
  28841. width: 97%;
  28842. border: 5px;
  28843. padding: 0;
  28844. border-radius: 5px;
  28845. margin: 10px auto;
  28846. word-break: break-word;
  28847. }
  28848. .w_name {
  28849. margin-bottom: 10px;
  28850. }
  28851. .w_name span {
  28852. font-size: 16px;
  28853. }
  28854. .w_teachert {
  28855. width: 50px !important;
  28856. position: absolute;
  28857. height: auto !important;
  28858. z-index: 10;
  28859. right: 25px;
  28860. top: -25px;
  28861. }
  28862. /* .group_workBox {
  28863. } */
  28864. .group_workBox + .group_workBox {
  28865. margin-top: 20px;
  28866. }
  28867. .group_box {
  28868. padding-bottom: 20px;
  28869. border-bottom: 2px solid #f0f0f0;
  28870. margin-top: 10px;
  28871. }
  28872. .group_title {
  28873. display: flex;
  28874. align-items: center;
  28875. justify-content: space-between;
  28876. width: 95%;
  28877. }
  28878. .group_name {
  28879. background-image: url(../../assets/icon/groupN.png);
  28880. width: 220px;
  28881. background-size: 100% 100%;
  28882. height: 67px;
  28883. padding: 0 20px 0 43px;
  28884. box-sizing: border-box;
  28885. line-height: 63px;
  28886. color: #fff;
  28887. overflow: hidden;
  28888. white-space: nowrap;
  28889. text-overflow: ellipsis;
  28890. }
  28891. .group_work {
  28892. width: 100%;
  28893. padding: 0 10px;
  28894. box-sizing: border-box;
  28895. display: flex;
  28896. flex-wrap: wrap;
  28897. }
  28898. .g_d_box {
  28899. display: flex;
  28900. flex-flow: wrap;
  28901. justify-content: space-around;
  28902. }
  28903. .g_d_box .isChair {
  28904. background-image: url(../../assets/avatar.png) !important;
  28905. }
  28906. .g_d_group {
  28907. width: 500px;
  28908. margin-bottom: 80px;
  28909. }
  28910. .g_d_group_chair {
  28911. display: flex;
  28912. align-items: center;
  28913. justify-content: center;
  28914. }
  28915. .g_d_group_chair > div + div {
  28916. margin-left: 30px;
  28917. }
  28918. .g_d_group_chair > div,
  28919. .g_d_group_chair2 > div {
  28920. display: flex;
  28921. flex-direction: column;
  28922. align-items: center;
  28923. }
  28924. .g_d_group_chair > div > span:nth-child(1),
  28925. .g_d_group_chair2 > div > span:nth-child(1) {
  28926. background-image: url(../../assets/icon/chair.png);
  28927. width: 50px;
  28928. height: 50px;
  28929. display: block;
  28930. background-size: 100% 100%;
  28931. }
  28932. .g_d_group_tableBox {
  28933. display: flex;
  28934. align-items: center;
  28935. justify-content: center;
  28936. }
  28937. .g_d_group_chair2 {
  28938. display: flex;
  28939. flex-direction: column;
  28940. align-items: center;
  28941. justify-content: center;
  28942. }
  28943. .g_d_group_chair2 > div + div {
  28944. margin-top: 10px;
  28945. }
  28946. .g_d_group_table {
  28947. background-image: url(../../assets/icon/groupBg.png);
  28948. width: 354px;
  28949. height: 196px;
  28950. background-size: 100% 100%;
  28951. display: flex;
  28952. align-items: center;
  28953. justify-content: center;
  28954. flex-direction: column;
  28955. color: #fff;
  28956. }
  28957. .g_d_group_table > div:nth-child(1) {
  28958. font-size: 24px;
  28959. margin-bottom: 5px;
  28960. }
  28961. .g_d_group_table > div:nth-child(2) div {
  28962. cursor: pointer;
  28963. background: #2e77bf;
  28964. padding: 4px 10px;
  28965. border-radius: 5px;
  28966. }
  28967. .groupBox {
  28968. }
  28969. .groupContent + .groupContent {
  28970. margin-top: 30px;
  28971. }
  28972. .groupTitle {
  28973. font-size: 24px;
  28974. color: rgb(80, 80, 80);
  28975. margin-bottom: 20px;
  28976. }
  28977. .groupName {
  28978. display: flex;
  28979. align-items: center;
  28980. }
  28981. .groupn {
  28982. font-size: 15px;
  28983. margin-right: 10px;
  28984. }
  28985. .groupName + .groupName {
  28986. margin-top: 15px;
  28987. }
  28988. .groupBtn {
  28989. margin-left: 10px;
  28990. }
  28991. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28992. text-align: left;
  28993. }
  28994. .g_d_btnBox {
  28995. display: flex;
  28996. justify-content: flex-end;
  28997. align-items: center;
  28998. margin-bottom: 20px;
  28999. }
  29000. .updateChair {
  29001. position: relative;
  29002. }
  29003. .updateChairBtn {
  29004. position: absolute;
  29005. width: 50px;
  29006. height: 50px;
  29007. overflow: hidden;
  29008. /* display: flex; */
  29009. align-items: center;
  29010. justify-content: center;
  29011. background: #00000087;
  29012. color: #fff;
  29013. border-radius: 50px;
  29014. display: none;
  29015. cursor: pointer;
  29016. }
  29017. .updateChair:hover .updateChairBtn {
  29018. display: flex;
  29019. }
  29020. .group_staic_box {
  29021. display: flex;
  29022. padding: 30px 40px 10px;
  29023. flex-wrap: wrap;
  29024. }
  29025. .group_staic {
  29026. /* width: 50%; */
  29027. margin-bottom: 20px;
  29028. display: flex;
  29029. align-items: center;
  29030. }
  29031. .group_staic span:nth-child(1) {
  29032. width: 150px;
  29033. text-align: right;
  29034. margin-right: 15px;
  29035. }
  29036. .group_staic span:nth-child(2) {
  29037. background: rgb(0 123 255);
  29038. color: #fff;
  29039. border-radius: 5px;
  29040. padding: 5px;
  29041. }
  29042. .codeFileBox {
  29043. height: 300px;
  29044. background: #fff;
  29045. display: flex;
  29046. align-items: center;
  29047. justify-content: center;
  29048. }
  29049. .codeFileBox img {
  29050. width: 200px;
  29051. margin: 0;
  29052. height: auto;
  29053. }
  29054. .codeFileBox div {
  29055. background: rgb(80, 142, 226);
  29056. color: #fff;
  29057. padding: 10px 20px;
  29058. border-radius: 25px;
  29059. cursor: pointer;
  29060. margin-left: 15px;
  29061. }
  29062. .radioBox {
  29063. display: flex;
  29064. flex-direction: column;
  29065. flex-wrap: nowrap;
  29066. align-items: flex-start;
  29067. }
  29068. .radioBox > div {
  29069. margin: 10px 0 0 10px;
  29070. }
  29071. /* .radioBox >>> .el-radio__input,
  29072. .radioBox >>> .el-checkbox__inner {
  29073. margin-left: 10px;
  29074. } */
  29075. .radioBox >>> .el-radio__label,
  29076. .radioBox >>> .el-checkbox__label {
  29077. display: flex;
  29078. align-items: center;
  29079. width: 100%;
  29080. }
  29081. .radioBox >>> .el-radio__label > span {
  29082. width: 100%;
  29083. display: -webkit-box;
  29084. overflow: hidden;
  29085. white-space: normal !important;
  29086. text-overflow: ellipsis;
  29087. word-wrap: break-word;
  29088. }
  29089. .inImg {
  29090. width: 100px;
  29091. cursor: pointer;
  29092. }
  29093. .inImg > img {
  29094. width: 100%;
  29095. height: 100%;
  29096. object-fit: cover;
  29097. }
  29098. .timuImgBox {
  29099. margin: 10px 0;
  29100. display: flex;
  29101. flex-direction: column;
  29102. flex-wrap: wrap;
  29103. align-items: flex-start;
  29104. }
  29105. .timuImg {
  29106. width: 150px;
  29107. margin: 5px 0;
  29108. cursor: pointer;
  29109. }
  29110. .timuImg > img {
  29111. width: 100%;
  29112. height: 100%;
  29113. object-fit: cover;
  29114. }
  29115. .worksTop {
  29116. display: flex;
  29117. flex-direction: row;
  29118. align-items: flex-end;
  29119. }
  29120. .worksTitle {
  29121. display: flex;
  29122. flex-direction: row;
  29123. flex-wrap: nowrap;
  29124. align-items: center;
  29125. }
  29126. .worksTitle::before,
  29127. .worksTop::before {
  29128. content: "";
  29129. display: block;
  29130. width: 3px;
  29131. height: 20px;
  29132. background: #0061ff;
  29133. border-radius: 3px;
  29134. margin: 0 5px 0 0;
  29135. }
  29136. .corOpen {
  29137. margin: 0 0 0 10px;
  29138. font-size: 14px;
  29139. cursor: pointer;
  29140. color: #505050;
  29141. }
  29142. .corOpen:hover {
  29143. color: #499eef;
  29144. }
  29145. .navCorOpenBox {
  29146. display: flex;
  29147. flex-direction: row;
  29148. align-items: center;
  29149. justify-content: space-between;
  29150. height: 55px;
  29151. background: #ffffff;
  29152. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29153. border-radius: 8px 8px 0px 0px;
  29154. z-index: 9;
  29155. position: relative;
  29156. }
  29157. .navCorOpen {
  29158. padding-right: 15px;
  29159. cursor: pointer;
  29160. width: 45px;
  29161. display: flex;
  29162. }
  29163. .navCorOpen > img {
  29164. width: 100%;
  29165. height: 100%;
  29166. }
  29167. .mlImg {
  29168. width: 40px !important;
  29169. min-width: 40px;
  29170. cursor: pointer;
  29171. transform: rotate(180deg);
  29172. }
  29173. .mlImg > img {
  29174. width: 100%;
  29175. height: 100%;
  29176. }
  29177. .navLeftCss {
  29178. width: 100% !important;
  29179. left: 0 !important;
  29180. }
  29181. .isContentCss {
  29182. width: 100% !important;
  29183. }
  29184. .isAllWidth {
  29185. width: 100% !important;
  29186. }
  29187. .group_switch {
  29188. margin-right: 10px;
  29189. height: 30px;
  29190. display: flex;
  29191. align-items: center;
  29192. }
  29193. .group_switch > span {
  29194. margin-right: 5px;
  29195. }
  29196. .fileC_box {
  29197. padding-top: 15px;
  29198. }
  29199. .fileC_box > .fileC_title {
  29200. padding: 10px 5px 14px 10px;
  29201. border-top: 1px solid #cad1dc;
  29202. font-size: 14px;
  29203. font-weight: 400;
  29204. color: #cad1dc;
  29205. width: calc(100% - 20px);
  29206. margin: 0 auto;
  29207. box-sizing: border-box;
  29208. }
  29209. .pl_select_box {
  29210. height: 40px;
  29211. line-height: 40px;
  29212. width: 100%;
  29213. cursor: pointer;
  29214. padding: 0 20px;
  29215. box-sizing: border-box;
  29216. border-radius: 5px;
  29217. border: 1px solid #d6d6d6;
  29218. white-space: nowrap;
  29219. overflow: hidden;
  29220. text-overflow: ellipsis;
  29221. background: #fff;
  29222. text-align: left;
  29223. }
  29224. .newButton {
  29225. width: 102px;
  29226. height: 36px;
  29227. background: #e7ebf1;
  29228. border-radius: 4px;
  29229. color: #0e1e33;
  29230. font-weight: 400;
  29231. font-size: 14px;
  29232. border: none;
  29233. float: right;
  29234. margin-left: 10px;
  29235. }
  29236. .el-table >>> .even_row {
  29237. background-color: #f0f4fa;
  29238. }
  29239. .stageBoxCss,
  29240. .stageBoxIsCss {
  29241. display: flex;
  29242. flex-direction: row;
  29243. flex-wrap: nowrap;
  29244. align-items: center;
  29245. height: 50px;
  29246. border-bottom: 1px solid #e2f5fc;
  29247. cursor: pointer;
  29248. width: 100%;
  29249. }
  29250. .stageBoxIsCss {
  29251. background: #0061ff;
  29252. color: #fff;
  29253. border-radius: 8px;
  29254. }
  29255. .closeTri,
  29256. .closeTri1 {
  29257. min-width: 15px;
  29258. width: 15px;
  29259. height: 15px;
  29260. }
  29261. .closeTri1 {
  29262. padding-left: 10px;
  29263. cursor: pointer;
  29264. }
  29265. .closeTri > img,
  29266. .closeTri1 > img {
  29267. width: 100%;
  29268. height: 100%;
  29269. /* transition: all .5s; */
  29270. }
  29271. .noToolBlue {
  29272. min-width: 10px;
  29273. width: 10px;
  29274. height: 10px;
  29275. background: #0061ff;
  29276. border-radius: 50%;
  29277. margin-left: 13px;
  29278. }
  29279. .stageChild,
  29280. .toolChild {
  29281. height: 0;
  29282. overflow: hidden;
  29283. transition: all 0.5s;
  29284. }
  29285. /* .toolChild { */
  29286. /* margin: 0 0 0 17px;
  29287. padding: 0 0 0 20px;
  29288. border-left: 1px solid #d7d7d7; */
  29289. /* } */
  29290. .toolChild > div + div {
  29291. margin-top: 5px;
  29292. }
  29293. .gjCss {
  29294. display: flex;
  29295. flex-direction: row;
  29296. flex-wrap: nowrap;
  29297. align-items: center;
  29298. padding: 10px 0 10px 40px;
  29299. box-sizing: border-box;
  29300. font-size: 14px;
  29301. cursor: pointer;
  29302. border-radius: 5px;
  29303. }
  29304. .toolChild > div {
  29305. position: relative;
  29306. width: 100%;
  29307. }
  29308. /* .toolChild > div::before { */
  29309. /* content: "";
  29310. width: 15px;
  29311. height: 1px;
  29312. background: #cad1dc;
  29313. position: absolute;
  29314. top: 24px;
  29315. left: -20px;
  29316. display: block; */
  29317. /* } */
  29318. .isGjCss {
  29319. /* color: #0061ff; */
  29320. color: #fff;
  29321. background: rgb(55, 129, 252);
  29322. /* background-color: #e0eafb !important;
  29323. color: #0061ff !important; */
  29324. }
  29325. .navItem {
  29326. background: #ffffff;
  29327. border-radius: 4px;
  29328. width: 100%;
  29329. margin: 10px auto;
  29330. position: relative;
  29331. height: 40px;
  29332. display: flex;
  29333. flex-direction: row;
  29334. flex-wrap: nowrap;
  29335. align-items: center;
  29336. }
  29337. .navItemList {
  29338. display: flex;
  29339. flex-direction: row;
  29340. flex-wrap: nowrap;
  29341. align-items: center;
  29342. padding: 0 13px;
  29343. cursor: pointer;
  29344. width: calc(100% - 60px);
  29345. height: 100%;
  29346. }
  29347. .navItemList > div:first-child {
  29348. min-width: 60px;
  29349. }
  29350. .navItemList > div:last-child {
  29351. width: calc(100% - 80px);
  29352. white-space: nowrap;
  29353. overflow: hidden;
  29354. text-overflow: ellipsis;
  29355. word-break: break-word;
  29356. }
  29357. /* .isItemList > div {
  29358. color: #fff !important;
  29359. } */
  29360. .tool_work_box {
  29361. width: 100%;
  29362. padding: 0 37px 0;
  29363. box-sizing: border-box;
  29364. }
  29365. .tool_box {
  29366. width: 100%;
  29367. padding: 0 0 0 20px;
  29368. }
  29369. .tool_type_box {
  29370. display: flex;
  29371. flex-direction: row;
  29372. align-items: baseline;
  29373. flex-wrap: nowrap;
  29374. justify-content: flex-start;
  29375. position: relative;
  29376. }
  29377. .toolSort {
  29378. display: flex;
  29379. flex-direction: row;
  29380. flex-wrap: wrap;
  29381. justify-content: flex-start;
  29382. align-items: flex-start;
  29383. padding: 0 0 15px 0;
  29384. }
  29385. .toolSort > div {
  29386. margin: 0 10px 0 0;
  29387. width: 135px;
  29388. box-sizing: border-box;
  29389. border: 2px solid transparent;
  29390. }
  29391. .tools {
  29392. width: 100%;
  29393. display: flex;
  29394. flex-direction: column;
  29395. flex-wrap: nowrap;
  29396. align-items: flex-start;
  29397. }
  29398. .whiteBIcon {
  29399. width: fit-content;
  29400. cursor: pointer;
  29401. display: flex;
  29402. flex-direction: column;
  29403. flex-wrap: nowrap;
  29404. align-items: center;
  29405. font-size: 14px;
  29406. }
  29407. .tool:hover {
  29408. border: 2px solid #a5c7ff;
  29409. border-radius: 5px;
  29410. }
  29411. .whiteBIcon > img {
  29412. width: 65px;
  29413. height: 100%;
  29414. }
  29415. .whiteBIcon > img {
  29416. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29417. border-radius: 15px;
  29418. }
  29419. .check {
  29420. /* width: 20px;
  29421. height: 20px; */
  29422. cursor: pointer;
  29423. margin: 10px 0;
  29424. position: absolute;
  29425. right: 2px;
  29426. top: -5px;
  29427. }
  29428. .noChoose,
  29429. .isChoose {
  29430. width: 15px;
  29431. height: 15px;
  29432. border-radius: 50%;
  29433. border: 1px solid #adadad;
  29434. }
  29435. .isChoose {
  29436. border: 4px solid #0363ff !important;
  29437. width: 10px;
  29438. height: 10px;
  29439. }
  29440. .isToolChoose {
  29441. border: 2px solid #5394ff !important;
  29442. border-radius: 5px;
  29443. box-shadow: 0 0 6px 0px #5394ff;
  29444. }
  29445. .checkDiv {
  29446. display: flex;
  29447. align-items: center;
  29448. }
  29449. .checkDiv span {
  29450. margin-left: 5px;
  29451. color: #858585;
  29452. }
  29453. .check img {
  29454. width: 20px;
  29455. height: 20px;
  29456. }
  29457. .lockTaskIcon {
  29458. width: 20px;
  29459. height: 20px;
  29460. position: absolute;
  29461. right: 10px;
  29462. top: 10px;
  29463. }
  29464. .lockTaskIcon > img {
  29465. width: 100%;
  29466. height: 100%;
  29467. }
  29468. .pick_box {
  29469. display: flex;
  29470. align-items: flex-start;
  29471. flex-wrap: wrap;
  29472. }
  29473. .selectBox {
  29474. width: 110px;
  29475. margin-left: 10px;
  29476. margin: 0 10px 0 auto;
  29477. }
  29478. .selectBox >>> .el-input__inner {
  29479. height: 30px;
  29480. line-height: 30px;
  29481. }
  29482. .selectBox >>> .el-input__icon {
  29483. line-height: 30px;
  29484. }
  29485. .sentenceTitle {
  29486. display: flex;
  29487. flex-direction: row;
  29488. flex-wrap: nowrap;
  29489. align-items: center;
  29490. }
  29491. .sentenceTitle::before {
  29492. content: attr(index);
  29493. background: #3681fc;
  29494. border-radius: 50%;
  29495. color: #fff;
  29496. width: 25px;
  29497. height: 25px;
  29498. min-width: 25px;
  29499. min-height: 25px;
  29500. text-align: center;
  29501. line-height: 25px;
  29502. margin-right: 5px;
  29503. }
  29504. .hfBox {
  29505. padding: 10px;
  29506. box-sizing: border-box;
  29507. }
  29508. .whoReplyWho {
  29509. display: flex;
  29510. flex-direction: row;
  29511. flex-wrap: nowrap;
  29512. align-items: baseline;
  29513. justify-content: flex-start;
  29514. }
  29515. .hfBottom {
  29516. display: flex;
  29517. flex-direction: row;
  29518. flex-wrap: nowrap;
  29519. align-items: center;
  29520. justify-content: space-between;
  29521. font-size: 14px;
  29522. }
  29523. .deleteHfItem {
  29524. cursor: pointer;
  29525. width: 20px;
  29526. height: 20px;
  29527. }
  29528. .deleteHfItem > img {
  29529. width: 100%;
  29530. height: 100%;
  29531. }
  29532. .whoReplyWho > .hfImg {
  29533. width: 12px;
  29534. height: 12px;
  29535. margin: 0 5px;
  29536. }
  29537. .whoReplyWho > .hfImg > img {
  29538. width: 100%;
  29539. height: 100%;
  29540. }
  29541. .hfContent {
  29542. padding-top: 10px;
  29543. box-sizing: border-box;
  29544. display: -webkit-box;
  29545. overflow: hidden;
  29546. white-space: normal !important;
  29547. text-overflow: ellipsis;
  29548. word-wrap: break-word;
  29549. -webkit-box-orient: vertical;
  29550. }
  29551. .hfTime {
  29552. text-align: left;
  29553. box-sizing: border-box;
  29554. padding: 10px 0 10px 0px;
  29555. color: #bfbfbf;
  29556. font-size: 14px;
  29557. }
  29558. .btnAllNT {
  29559. position: fixed;
  29560. bottom: 100px;
  29561. right: 40px;
  29562. z-index: 999;
  29563. display: flex;
  29564. flex-direction: row;
  29565. }
  29566. .btnAllNT > img {
  29567. cursor: pointer;
  29568. width: 80px;
  29569. }
  29570. .toolMask {
  29571. position: fixed;
  29572. width: 100%;
  29573. height: 100%;
  29574. background: #3f3c3c;
  29575. opacity: 0.5;
  29576. top: 0;
  29577. left: 0;
  29578. z-index: 999;
  29579. }
  29580. .addToolCss {
  29581. position: fixed;
  29582. z-index: 999;
  29583. background: #fff;
  29584. right: 5%;
  29585. bottom: 18%;
  29586. min-width: 1035px;
  29587. min-height: 300px;
  29588. border-radius: 10px;
  29589. box-shadow: 0 0 8px 1px #b2b2b2;
  29590. }
  29591. .toolTop {
  29592. display: flex;
  29593. flex-direction: row;
  29594. flex-wrap: nowrap;
  29595. justify-content: space-between;
  29596. align-items: center;
  29597. padding: 20px;
  29598. }
  29599. .toolTop > div:nth-child(2) {
  29600. width: 15px;
  29601. height: 15px;
  29602. padding-right: 10px;
  29603. cursor: pointer;
  29604. }
  29605. .toolTop > div:nth-child(2) > img {
  29606. width: 100%;
  29607. height: 100%;
  29608. }
  29609. .fullStyle >>> .el-dialog__body {
  29610. height: calc(100% - 125px) !important;
  29611. box-sizing: border-box;
  29612. padding: 30px 0 !important;
  29613. background: #fff !important;
  29614. }
  29615. .fullStyle >>> .el-dialog {
  29616. width: 100% !important;
  29617. max-width: 100% !important;
  29618. height: 100% !important;
  29619. margin: 0 !important;
  29620. }
  29621. .fullStyle {
  29622. width: 100% !important;
  29623. max-width: 100% !important;
  29624. height: 100% !important;
  29625. margin: 0 auto !important;
  29626. }
  29627. .fullStyle >>> .el-dialog__footer {
  29628. background: #fff !important;
  29629. }
  29630. .engUpBox {
  29631. width: 100%;
  29632. height: 100%;
  29633. }
  29634. .engTitle,
  29635. .engText {
  29636. display: flex;
  29637. flex-direction: row;
  29638. flex-wrap: nowrap;
  29639. align-items: flex-start;
  29640. padding: 0 20px 20px 20px;
  29641. box-sizing: border-box;
  29642. }
  29643. .engTitle > .div:first-child,
  29644. .engText > div:first-child {
  29645. min-width: 75px;
  29646. }
  29647. .correctBox {
  29648. width: 100%;
  29649. display: flex;
  29650. flex-direction: row;
  29651. flex-wrap: nowrap;
  29652. align-items: flex-start;
  29653. }
  29654. .oldBox {
  29655. width: 50%;
  29656. height: 100%;
  29657. display: flex;
  29658. flex-direction: column;
  29659. flex-wrap: nowrap;
  29660. align-items: center;
  29661. border-top: 1px solid #d9d9d9;
  29662. border-left: 1px solid #d9d9d9;
  29663. border-right: 1px solid #d9d9d9;
  29664. }
  29665. .oldBox > div:first-child {
  29666. width: 100%;
  29667. text-align: center;
  29668. background: #d9d9d9;
  29669. height: 35px;
  29670. line-height: 35px;
  29671. font-weight: bold;
  29672. }
  29673. .oldText {
  29674. width: 100%;
  29675. height: calc(100% - 35px);
  29676. overflow: auto;
  29677. margin: 10px 0;
  29678. display: flex;
  29679. flex-direction: column;
  29680. flex-wrap: nowrap;
  29681. align-content: center;
  29682. align-items: center;
  29683. }
  29684. .detailBox {
  29685. width: 50%;
  29686. padding: 10px;
  29687. background: #f6f6f6;
  29688. border-radius: 5px;
  29689. }
  29690. .oldDetail,
  29691. .oldDetail1 {
  29692. padding-bottom: 30px;
  29693. }
  29694. .oldImg {
  29695. width: 30px;
  29696. height: 30px;
  29697. }
  29698. .oldImg > img {
  29699. width: 100%;
  29700. height: 100%;
  29701. }
  29702. .allName {
  29703. min-width: 200px;
  29704. white-space: nowrap;
  29705. overflow: hidden;
  29706. text-overflow: ellipsis;
  29707. word-break: break-word;
  29708. cursor: pointer;
  29709. text-align: center;
  29710. border: 1px solid #bcc2cc;
  29711. box-sizing: border-box;
  29712. }
  29713. .engUpTop {
  29714. max-height: 300px;
  29715. overflow: auto;
  29716. }
  29717. .isUpdateToolDetailClass {
  29718. padding: 0 !important;
  29719. }
  29720. .isUpdateToolDetailClass textarea {
  29721. padding: 12px;
  29722. font-size: 16px;
  29723. min-height: 100%;
  29724. width: 100%;
  29725. box-sizing: border-box;
  29726. outline: none;
  29727. border: none;
  29728. line-height: 30px;
  29729. resize: none;
  29730. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  29731. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29732. color: #838383;
  29733. }
  29734. .show_taskD {
  29735. min-width: fit-content;
  29736. margin-left: 10px;
  29737. display: flex;
  29738. align-items: center;
  29739. font-size: 14px;
  29740. cursor: pointer;
  29741. color: #717c8d;
  29742. }
  29743. .show_taskD > img {
  29744. width: 15px;
  29745. margin-right: 5px;
  29746. transition: 0.2s all;
  29747. transform: rotate(-90deg);
  29748. }
  29749. .show_taskD.show > img {
  29750. transform: rotate(0deg);
  29751. }
  29752. .correctCss {
  29753. position: absolute;
  29754. bottom: -70px;
  29755. background: #409eff;
  29756. color: #fff;
  29757. }
  29758. .ScoreBtn {
  29759. background: rgba(87, 159, 248, 1);
  29760. display: flex;
  29761. justify-content: center;
  29762. align-items: center;
  29763. color: #fff;
  29764. font-size: 14px;
  29765. padding: 8px 12px;
  29766. border-radius: 5px;
  29767. cursor: pointer;
  29768. }
  29769. .max-height-popover .el-popover {
  29770. min-height: 200px;
  29771. max-height: 400px; /* 设置最大高度 */
  29772. overflow: auto; /* 超出部分显示滚动条 */
  29773. }
  29774. .blueRootCss {
  29775. display: block;
  29776. margin-right: 5px;
  29777. }
  29778. .stuLookScore {
  29779. position: absolute;
  29780. top: 12px;
  29781. right: 40px;
  29782. background: #0000008f;
  29783. border-radius: 5px;
  29784. padding: 3px 5px;
  29785. font-size: 14px;
  29786. color: #fff;
  29787. cursor: pointer;
  29788. }
  29789. div::-webkit-scrollbar {
  29790. width: 10px;
  29791. height: 6px;
  29792. }
  29793. .Ovh{
  29794. margin: 5px 0;
  29795. width: 4em;
  29796. -webkit-line-clamp: 2;
  29797. display: -webkit-box;
  29798. -webkit-box-orient: vertical;
  29799. overflow: hidden;
  29800. text-overflow: ellipsis;
  29801. }
  29802. </style>