studyStudent.vue 831 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT" v-if="false">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. </div>
  963. <div v-if="tooC == 8">
  964. <img
  965. src="../assets/icon/secondToolList/library.png"
  966. alt
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. />
  969. <div style="margin: 5px 0">素材库</div>
  970. </div>
  971. <div v-if="tooC == 17">
  972. <img
  973. src="../assets/icon/secondToolList/library.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">学习资料</div>
  978. </div>
  979. <div v-if="tooC == 2">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/secondToolList/note.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">便签</div>
  986. </div>
  987. <div v-if="tooC == 4">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/ask.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">问卷调查</div>
  994. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  995. style="position: absolute;right: 33px;top: -30px;">
  996. 统计分析
  997. </div>
  998. </div>
  999. <div v-if="tooC == 45">
  1000. <img
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../assets/icon/thirdToolList/choose.png"
  1003. alt
  1004. />
  1005. <div style="margin: 5px 0">选择题</div>
  1006. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1007. style="position: absolute;right: 33px;top: -30px;">
  1008. 作业详细
  1009. </div>
  1010. </div>
  1011. <!-- <div v-if="tooC == 5">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/thirdToolList/score.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">量规评分</div>
  1018. </div> -->
  1019. <div v-if="tooC == 10">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/thirdToolList/time.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">倒计时</div>
  1026. </div>
  1027. <div v-if="tooC == 15">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/answer.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">问答</div>
  1034. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1035. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1036. 作业详细
  1037. </div>
  1038. </div>
  1039. <div v-if="tooC == 26">
  1040. <img
  1041. @click="addTools(tooC, toolIndex, taskCount)"
  1042. src="../assets/icon/thirdToolList/courseDesign.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">课程设计</div>
  1046. </div>
  1047. <div v-if="tooC == 18">
  1048. <img
  1049. @click="addTools(tooC, toolIndex, taskCount)"
  1050. src="../assets/icon/thirdToolList/trainPlatform.png"
  1051. alt
  1052. />
  1053. <div style="margin: 5px 0">训练服务器</div>
  1054. </div>
  1055. <div v-if="tooC == 16">
  1056. <img
  1057. @click="addTools(tooC, toolIndex, taskCount)"
  1058. src="../assets/icon/thirdToolList/work.png"
  1059. alt
  1060. />
  1061. <div style="margin: 5px 0">作业提交</div>
  1062. </div>
  1063. <div v-if="tooC == 50">
  1064. <img
  1065. @click="addTools(tooC, toolIndex, taskCount)"
  1066. src="../assets/icon/thirdToolList/plwork.png"
  1067. alt
  1068. />
  1069. <div style="margin: 5px 0">批量上传</div>
  1070. </div>
  1071. <div v-if="tooC == 21">
  1072. <img
  1073. @click="addTools(tooC, toolIndex, taskCount)"
  1074. src="../assets/icon/fourthToolList/program.png"
  1075. alt
  1076. />
  1077. <div style="margin: 5px 0">AIoT Blockly</div>
  1078. </div>
  1079. <!-- <div v-if="tooC == 22">
  1080. <img
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. src="../assets/icon/fourthToolList/program.png"
  1083. alt
  1084. />
  1085. <div style="margin: 5px 0">AI体验</div>
  1086. </div> -->
  1087. <div v-if="tooC == 23">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">AI Python</div>
  1094. </div>
  1095. <div v-if="tooC == 24">
  1096. <img
  1097. @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../assets/icon/fourthToolList/AIprogram.png"
  1099. alt
  1100. />
  1101. <div style="margin: 5px 0">AI Blockly</div>
  1102. </div>
  1103. <div v-if="tooC == 25">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../assets/icon/thirdToolList/evalua.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">目标管理</div>
  1110. </div>
  1111. <div v-if="tooC == 31">
  1112. <img
  1113. @click="addTools(tooC, toolIndex, taskCount)"
  1114. src="../assets/icon/secondToolList/networkPanel.png"
  1115. alt
  1116. />
  1117. <div style="margin: 5px 0">数学画板</div>
  1118. </div>
  1119. <div v-if="tooC == 28">
  1120. <img
  1121. @click="addTools(tooC, toolIndex, taskCount)"
  1122. src="../assets/icon/secondToolList/translation.png"
  1123. alt
  1124. />
  1125. <div style="margin: 5px 0">翻译</div>
  1126. </div>
  1127. <div v-if="tooC == 37">
  1128. <img
  1129. @click="addTools(tooC, toolIndex, taskCount)"
  1130. src="../assets/icon/secondToolList/mohe.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">魔盒识字</div>
  1134. </div>
  1135. <div v-if="tooC == 38">
  1136. <img
  1137. @click="addTools(tooC, toolIndex, taskCount)"
  1138. src="../assets/icon/secondToolList/24game.png"
  1139. alt
  1140. />
  1141. <div style="margin: 5px 0">24点</div>
  1142. </div>
  1143. <div v-if="tooC == 39">
  1144. <img
  1145. @click="addTools(tooC, toolIndex, taskCount)"
  1146. src="../assets/icon/secondToolList/GeoGebra.png"
  1147. alt
  1148. />
  1149. <div style="margin: 5px 0">GeoGebra</div>
  1150. </div>
  1151. <div v-if="tooC == 32">
  1152. <img
  1153. @click="addTools(tooC, toolIndex, taskCount)"
  1154. src="../assets/icon/thirdToolList/code.png"
  1155. alt
  1156. />
  1157. <div style="margin: 5px 0">源码编辑</div>
  1158. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1159. style="position: absolute;left: 110px;bottom: 30px;">
  1160. 上传文件
  1161. <input type="file" accept="*" style="display: none"
  1162. @change="beforeUpload1($event, 7, toolIndex)" />
  1163. </div> -->
  1164. </div>
  1165. <div v-if="tooC == 40">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../assets/icon/secondToolList/eval.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">个人评价</div>
  1172. </div>
  1173. <div v-if="tooC == 41">
  1174. <img
  1175. @click="addTools(tooC, toolIndex, taskCount)"
  1176. src="../assets/icon/thirdToolList/select.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">选择匹配</div>
  1180. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1181. style="position: absolute;right: 33px;top: -30px;">
  1182. 作业详细
  1183. </div>
  1184. </div>
  1185. <div v-if="tooC == 44">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/thirdToolList/hanClass.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">汉字宫</div>
  1192. </div>
  1193. <div v-if="tooC == 47">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/conSentences.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">排序</div>
  1200. </div>
  1201. <div v-if="tooC == 48">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/table.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">表格</div>
  1208. </div>
  1209. <div v-if="tooC == 52">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/fourthToolList/text.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">文档</div>
  1216. </div>
  1217. <div v-if="tooC == 49">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/fourthToolList/group.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">学生分组</div>
  1224. </div>
  1225. <div v-if="tooC == 57">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/cocopi.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">CocoPi</div>
  1232. </div>
  1233. <div v-if="tooC == 58">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../assets/icon/fourthToolList/car.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">模拟驾驶</div>
  1240. </div>
  1241. <div v-if="tooC == 59">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../assets/icon/fourthToolList/lineSearch.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">路径搜索</div>
  1248. </div>
  1249. <div v-if="tooC == 60">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../assets/icon/fourthToolList/deepLearning.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">深度学习</div>
  1256. </div>
  1257. <div v-if="tooC == 61">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../assets/icon/fourthToolList/allHistory.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">全历史</div>
  1264. </div>
  1265. <div v-if="tooC == 62">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../assets/icon/fourthToolList/interVideo.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">交互视频</div>
  1272. </div>
  1273. <div v-if="tooC == 63">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/fourthToolList/Wood.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">海龟编程</div>
  1280. </div>
  1281. <div v-if="tooC == 71">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../assets/icon/fourthToolList/chatgpt.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">AI智能体</div>
  1288. </div>
  1289. <div v-if="tooC == 65">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../assets/icon/firstToolList/pickPeople.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">挑人</div>
  1296. </div>
  1297. <div v-if="tooC == 66">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/secondToolList/formulaEdi.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">公式编辑</div>
  1304. </div>
  1305. <div v-if="tooC == 67">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/secondToolList/molStr.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">分子结构</div>
  1312. </div>
  1313. <div v-if="tooC == 68">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../assets/icon/secondToolList/timeAxis.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">时间轴</div>
  1320. </div>
  1321. <div v-if="tooC == 69">
  1322. <img
  1323. @click="addTools(tooC, toolIndex, taskCount)"
  1324. src="../assets/icon/secondToolList/english.png"
  1325. alt
  1326. />
  1327. <div style="margin: 5px 0">英语写作</div>
  1328. </div>
  1329. <div v-if="tooC == 70">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../assets/icon/thirdToolList/englishVoice.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">英语口语</div>
  1336. </div>
  1337. </div>
  1338. </div>
  1339. </div>
  1340. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1341. <!-- <div class="toolTitle">工具描述</div> -->
  1342. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1343. <div style="height:100%;"
  1344. v-html="contentConvent(tool.toolDetail)"
  1345. v-if="toolDetailIndex != toolIndex"
  1346. ></div>
  1347. <div v-else @click.stop="" style="height:100%;">
  1348. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1349. </div>
  1350. </div>
  1351. <el-button
  1352. type="primary"
  1353. v-if="tool.tool[0] == 32"
  1354. style="position: absolute; right: 30px; top: -45px"
  1355. @click="addImg($event)"
  1356. >上传作业<input
  1357. type="file"
  1358. accept="*"
  1359. style="display: none"
  1360. @change="beforeUpload1($event, 7, toolIndex)"
  1361. /></el-button>
  1362. <el-button
  1363. type="primary"
  1364. v-if="tool.tool[0] == 15"
  1365. style="position: absolute; right: 30px; top: -45px"
  1366. @click="openWordCloud(toolIndex)"
  1367. >生成词云</el-button
  1368. >
  1369. <el-button
  1370. type="primary"
  1371. v-if="
  1372. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1373. "
  1374. style="position: absolute; right: 30px; top: -45px"
  1375. @click="uploadWorks(toolIndex)"
  1376. >导出作业</el-button
  1377. >
  1378. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1379. position: absolute;
  1380. right: 30px;
  1381. transform: translateY(-130%);
  1382. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1383. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1384. </div>
  1385. <div
  1386. v-if="
  1387. tType &&
  1388. tType == 2 &&
  1389. !sIsOpen &&
  1390. tool.tool.indexOf(16) != -1
  1391. "
  1392. class="worksBox"
  1393. >
  1394. <div
  1395. class="zuoyeYulan"
  1396. v-if="workStudent[toolIndex].length > 0"
  1397. >
  1398. <span class="worksTitle">作业预览</span>
  1399. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1400. </div>
  1401. <div
  1402. class="worksDetailBox"
  1403. v-if="workStudent[toolIndex].length > 0"
  1404. >
  1405. <div
  1406. class="works"
  1407. style="
  1408. width: 200px;
  1409. height: 140px;
  1410. margin: 10px 10px 10px 0;
  1411. box-shadow: 0 0 6px 1px #dfdada;
  1412. "
  1413. v-for="(w, wIndex) in workStudent[toolIndex]"
  1414. :key="wIndex"
  1415. >
  1416. <div class="workImg" v-if="w.type == 0">
  1417. <img
  1418. :src="w.works"
  1419. @click="previewImg(w.works,w)"
  1420. alt
  1421. />
  1422. <div
  1423. class="answerScore"
  1424. v-if="w.score"
  1425. @click.stop="openScore(w)"
  1426. :class="{
  1427. rightW:
  1428. w.userid == userid || tType == 1 || tType == 4,
  1429. }"
  1430. >
  1431. {{ JSON.parse(w.score).wScore }}分
  1432. </div>
  1433. <div
  1434. class="answerScore"
  1435. @click.stop="openScore(w)"
  1436. v-else-if="courseDetail.userid == userid"
  1437. :class="{
  1438. rightW:
  1439. w.userid == userid || tType == 1 || tType == 4,
  1440. }"
  1441. >
  1442. 评分
  1443. </div>
  1444. <img
  1445. class="deleteImg"
  1446. src="../assets/deleteworks.png"
  1447. v-if="
  1448. w.userid == userid || tType == 1 || tType == 4
  1449. "
  1450. @click.stop="deleteWorks(w.wid)"
  1451. alt
  1452. />
  1453. </div>
  1454. <div class="workImg" v-if="w.type == 1">
  1455. <img :src="word" @click="openFile(w.works,w)" alt />
  1456. <div
  1457. class="answerScore"
  1458. v-if="w.score"
  1459. @click.stop="openScore(w)"
  1460. :class="{
  1461. rightW:
  1462. w.userid == userid || tType == 1 || tType == 4,
  1463. }"
  1464. >
  1465. {{ JSON.parse(w.score).wScore }}分
  1466. </div>
  1467. <div
  1468. class="answerScore"
  1469. @click.stop="openScore(w)"
  1470. v-else-if="courseDetail.userid == userid"
  1471. :class="{
  1472. rightW:
  1473. w.userid == userid || tType == 1 || tType == 4,
  1474. }"
  1475. >
  1476. 评分
  1477. </div>
  1478. <img
  1479. class="deleteImg"
  1480. src="../assets/deleteworks.png"
  1481. v-if="
  1482. w.userid == userid || tType == 1 || tType == 4
  1483. "
  1484. @click.stop="deleteWorks(w.wid)"
  1485. alt
  1486. />
  1487. </div>
  1488. <div class="workImg" v-if="w.type == 3">
  1489. <img
  1490. style="cursor: pointer"
  1491. :src="video"
  1492. @click="openVideo(w)"
  1493. alt
  1494. />
  1495. <div
  1496. class="answerScore"
  1497. v-if="w.score"
  1498. @click.stop="openScore(w)"
  1499. :class="{
  1500. rightW:
  1501. w.userid == userid || tType == 1 || tType == 4,
  1502. }"
  1503. >
  1504. {{ JSON.parse(w.score).wScore }}分
  1505. </div>
  1506. <div
  1507. class="answerScore"
  1508. @click.stop="openScore(w)"
  1509. v-else-if="courseDetail.userid == userid"
  1510. :class="{
  1511. rightW:
  1512. w.userid == userid || tType == 1 || tType == 4,
  1513. }"
  1514. >
  1515. 评分
  1516. </div>
  1517. <img
  1518. class="deleteImg"
  1519. src="../assets/deleteworks.png"
  1520. v-if="
  1521. w.userid == userid || tType == 1 || tType == 4
  1522. "
  1523. @click.stop="deleteWorks(w.wid)"
  1524. alt
  1525. />
  1526. </div>
  1527. <div class="workImg" v-if="w.type == 12">
  1528. <img
  1529. style="cursor: pointer"
  1530. :src="word2"
  1531. @click="downloadFile(w.works)"
  1532. alt
  1533. />
  1534. <div
  1535. class="answerScore"
  1536. v-if="w.score"
  1537. @click.stop="openScore(w)"
  1538. :class="{
  1539. rightW:
  1540. w.userid == userid || tType == 1 || tType == 4,
  1541. }"
  1542. >
  1543. {{ JSON.parse(w.score).wScore }}分
  1544. </div>
  1545. <div
  1546. class="answerScore"
  1547. @click.stop="openScore(w)"
  1548. v-else-if="courseDetail.userid == userid"
  1549. :class="{
  1550. rightW:
  1551. w.userid == userid || tType == 1 || tType == 4,
  1552. }"
  1553. >
  1554. 评分
  1555. </div>
  1556. <img
  1557. class="deleteImg"
  1558. src="../assets/deleteworks.png"
  1559. v-if="
  1560. w.userid == userid || tType == 1 || tType == 4
  1561. "
  1562. @click.stop="deleteWorks(w.wid)"
  1563. alt
  1564. />
  1565. </div>
  1566. <div class="worksName">
  1567. <div>{{ w.sName }}</div>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. </div>
  1572. <div
  1573. v-if="
  1574. tType &&
  1575. tType == 2 &&
  1576. !sIsOpen &&
  1577. tool.tool.indexOf(32) != -1
  1578. "
  1579. class="worksBox"
  1580. >
  1581. <div
  1582. class="zuoyeYulan"
  1583. v-if="workStudent[toolIndex].length > 0"
  1584. >
  1585. <span class="worksTitle">作业预览</span>
  1586. </div>
  1587. <div
  1588. class="worksDetailBox"
  1589. v-if="workStudent[toolIndex].length > 0"
  1590. >
  1591. <div
  1592. class="works"
  1593. style="
  1594. width: 200px;
  1595. height: 140px;
  1596. margin: 10px 10px 10px 0;
  1597. box-shadow: 0 0 6px 1px #dfdada;
  1598. "
  1599. v-for="(w, wIndex) in workStudent[toolIndex]"
  1600. :key="wIndex"
  1601. >
  1602. <div class="workImg">
  1603. <img
  1604. :src="word2"
  1605. @click="downloadFile(w.works)"
  1606. alt
  1607. />
  1608. <div
  1609. class="answerScore"
  1610. v-if="w.score"
  1611. @click.stop="openScore(w)"
  1612. :class="{
  1613. rightW:
  1614. w.userid == userid || tType == 1 || tType == 4,
  1615. }"
  1616. >
  1617. {{ JSON.parse(w.score).wScore }}分
  1618. </div>
  1619. <div
  1620. class="answerScore"
  1621. @click.stop="openScore(w)"
  1622. v-else-if="courseDetail.userid == userid"
  1623. :class="{
  1624. rightW:
  1625. w.userid == userid || tType == 1 || tType == 4,
  1626. }"
  1627. >
  1628. 评分
  1629. </div>
  1630. <img
  1631. class="deleteImg"
  1632. src="../assets/deleteworks.png"
  1633. v-if="
  1634. w.userid == userid || tType == 1 || tType == 4
  1635. "
  1636. @click.stop="deleteWorks(w.wid)"
  1637. alt
  1638. />
  1639. </div>
  1640. <div class="worksName">
  1641. <div>{{ w.sName }}</div>
  1642. </div>
  1643. </div>
  1644. </div>
  1645. </div>
  1646. <div
  1647. v-if="
  1648. tType &&
  1649. tType == 2 &&
  1650. !sIsOpen &&
  1651. tool.tool.indexOf(57) != -1
  1652. "
  1653. class="worksBox"
  1654. >
  1655. <div
  1656. class="zuoyeYulan"
  1657. v-if="workStudent[toolIndex].length > 0"
  1658. >
  1659. <span class="worksTitle">作业预览</span>
  1660. </div>
  1661. <div
  1662. class="worksDetailBox"
  1663. v-if="workStudent[toolIndex].length > 0"
  1664. >
  1665. <div
  1666. class="works"
  1667. style="
  1668. width: 200px;
  1669. height: 140px;
  1670. margin: 10px 10px 10px 0;
  1671. box-shadow: 0 0 6px 1px #dfdada;
  1672. "
  1673. v-for="(w, wIndex) in workStudent[toolIndex]"
  1674. :key="wIndex"
  1675. >
  1676. <div class="workImg">
  1677. <img
  1678. :src="word2"
  1679. @click="downloadFile(w.works)"
  1680. v-if="w.type == 12"
  1681. alt
  1682. />
  1683. <img
  1684. :src="word2"
  1685. @click="
  1686. openCocoPi(57, toolIndex, w.userid, w.sName)
  1687. "
  1688. v-else-if="w.type == 15"
  1689. alt
  1690. />
  1691. <div
  1692. class="answerScore"
  1693. v-if="w.score"
  1694. @click.stop="openScore(w)"
  1695. :class="{
  1696. rightW:
  1697. w.userid == userid || tType == 1 || tType == 4,
  1698. }"
  1699. >
  1700. {{ JSON.parse(w.score).wScore }}分
  1701. </div>
  1702. <div
  1703. class="answerScore"
  1704. @click.stop="openScore(w)"
  1705. v-else-if="courseDetail.userid == userid"
  1706. :class="{
  1707. rightW:
  1708. w.userid == userid || tType == 1 || tType == 4,
  1709. }"
  1710. >
  1711. 评分
  1712. </div>
  1713. <img
  1714. class="deleteImg"
  1715. src="../assets/deleteworks.png"
  1716. v-if="
  1717. w.userid == userid || tType == 1 || tType == 4
  1718. "
  1719. @click.stop="deleteWorks(w.wid)"
  1720. alt
  1721. />
  1722. </div>
  1723. <div class="worksName">
  1724. <div>{{ w.sName }}</div>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. <div
  1730. v-if="
  1731. tType &&
  1732. tType == 2 &&
  1733. !sIsOpen &&
  1734. tool.tool.indexOf(4) != -1
  1735. "
  1736. class="worksBox"
  1737. >
  1738. <div
  1739. class="zuoyeYulan"
  1740. v-if="workStudent[toolIndex].length > 0"
  1741. >
  1742. <span class="worksTitle">作业预览</span>
  1743. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1744. </div>
  1745. <div
  1746. class="worksDetailBox"
  1747. v-if="workStudent[toolIndex].length > 0"
  1748. >
  1749. <div
  1750. class="isWorksName2"
  1751. v-for="(w, wIndex) in workStudent[toolIndex]"
  1752. :key="wIndex"
  1753. @click="
  1754. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1755. "
  1756. >
  1757. {{ w.sName }}
  1758. <img
  1759. class="deleteImg deleteImg2"
  1760. src="../assets/deleteworks.png"
  1761. v-if="w.userid == userid || tType == 1 || tType == 4"
  1762. @click.stop="deleteWorks(w.wid)"
  1763. alt
  1764. />
  1765. </div>
  1766. <!-- <div
  1767. class="works"
  1768. style="
  1769. width: 200px;
  1770. height: 140px;
  1771. border-radius: 10px;
  1772. box-shadow: 0 0 6px 1px #dfdada;
  1773. overflow: hidden;
  1774. "
  1775. v-for="(w, wIndex) in workStudent[toolIndex]"
  1776. :key="wIndex"
  1777. >
  1778. <div class="workImg">
  1779. <img
  1780. src="../assets/icon/works/noImg.png"
  1781. @click="
  1782. openTools(
  1783. 4,
  1784. toolIndex,
  1785. taskCount,
  1786. w.works,
  1787. w.sName
  1788. )
  1789. "
  1790. alt
  1791. />
  1792. </div>
  1793. <div class="worksName">
  1794. <div>{{ w.sName }}</div>
  1795. <div>{{ w.time }}</div>
  1796. </div>
  1797. </div> -->
  1798. </div>
  1799. </div>
  1800. <div
  1801. v-if="
  1802. tType &&
  1803. ((tType == 2 && sIsOpen == true) ||
  1804. tType == 1 ||
  1805. tType == 4) &&
  1806. tool.tool.indexOf(62) != -1
  1807. "
  1808. class="worksBox"
  1809. >
  1810. <div
  1811. class="zuoyeYulan"
  1812. v-if="
  1813. worksStudent.length &&
  1814. worksStudent[toolIndex].length > 0
  1815. "
  1816. >
  1817. <div class="worksTop">
  1818. <div>作业预览</div>
  1819. <div
  1820. class="corOpen"
  1821. @click="contract(toolIndex)"
  1822. v-if="
  1823. (isCloseList[toolIndex].isCloseBoolean) &&
  1824. isCloseList[toolIndex].isClose == 0
  1825. "
  1826. >
  1827. 折叠
  1828. </div>
  1829. <div
  1830. class="corOpen"
  1831. @click="contract(toolIndex)"
  1832. v-if="isCloseList[toolIndex].isClose == 1"
  1833. >
  1834. 展开
  1835. </div>
  1836. </div>
  1837. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1838. </div>
  1839. <div>
  1840. <div
  1841. :id="'tool-' + toolIndex"
  1842. :style="{
  1843. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1844. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1845. }"
  1846. class="worksDetailBox"
  1847. v-if="
  1848. worksStudent.length &&
  1849. worksStudent[toolIndex].length > 0
  1850. "
  1851. >
  1852. <div
  1853. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1854. :key="wIndex"
  1855. class="isWorksName2"
  1856. @click="
  1857. openTools(
  1858. 62,
  1859. toolIndex,
  1860. taskCount,
  1861. w.works,
  1862. w.sName
  1863. )
  1864. "
  1865. >
  1866. {{ w.sName }}
  1867. <img
  1868. class="deleteImg deleteImg2"
  1869. src="../assets/deleteworks.png"
  1870. v-if="
  1871. w.userid == userid || tType == 1 || tType == 4
  1872. "
  1873. @click.stop="deleteWorks(w.wid)"
  1874. alt
  1875. />
  1876. </div>
  1877. </div>
  1878. </div>
  1879. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1880. 未提交
  1881. </div>
  1882. <div
  1883. class="noWorksS"
  1884. v-if="noWorksS && noWorksS[toolIndex].length"
  1885. >
  1886. <div
  1887. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1888. :key="sIndex"
  1889. class="noWorksName"
  1890. >
  1891. <el-tooltip effect="dark" :content="s.student" placement="top">
  1892. <span>{{ s.student }}</span>
  1893. </el-tooltip>
  1894. </div>
  1895. </div>
  1896. </div>
  1897. <div
  1898. v-if="
  1899. tType &&
  1900. tType == 2 &&
  1901. !sIsOpen &&
  1902. tool.tool.indexOf(62) != -1
  1903. "
  1904. class="worksBox"
  1905. >
  1906. <div
  1907. class="zuoyeYulan"
  1908. v-if="workStudent[toolIndex].length > 0"
  1909. >
  1910. <span class="worksTitle">作业预览</span>
  1911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1912. </div>
  1913. <div
  1914. class="worksDetailBox"
  1915. v-if="workStudent[toolIndex].length > 0"
  1916. >
  1917. <div
  1918. class="isWorksName2"
  1919. v-for="(w, wIndex) in workStudent[toolIndex]"
  1920. :key="wIndex"
  1921. @click="
  1922. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1923. "
  1924. >
  1925. {{ w.sName }}
  1926. <img
  1927. class="deleteImg deleteImg2"
  1928. src="../assets/deleteworks.png"
  1929. v-if="w.userid == userid || tType == 1 || tType == 4"
  1930. @click.stop="deleteWorks(w.wid)"
  1931. alt
  1932. />
  1933. </div>
  1934. </div>
  1935. </div>
  1936. <div
  1937. v-if="
  1938. tType &&
  1939. tType == 2 &&
  1940. !sIsOpen &&
  1941. tool.tool.indexOf(45) != -1
  1942. "
  1943. class="worksBox"
  1944. >
  1945. <div
  1946. class="zuoyeYulan"
  1947. v-if="workStudent[toolIndex].length > 0"
  1948. >
  1949. <span class="worksTitle">作业预览</span>
  1950. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1951. </div>
  1952. <div
  1953. class="worksDetailBox"
  1954. v-if="workStudent[toolIndex].length > 0"
  1955. >
  1956. <div
  1957. class="isWorksName2"
  1958. v-for="(w, wIndex) in workStudent[toolIndex]"
  1959. :key="wIndex"
  1960. @click="
  1961. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1962. "
  1963. >
  1964. {{ w.sName }}
  1965. <img
  1966. class="deleteImg deleteImg2"
  1967. src="../assets/deleteworks.png"
  1968. v-if="w.userid == userid || tType == 1 || tType == 4"
  1969. @click.stop="deleteWorks(w.wid)"
  1970. alt
  1971. />
  1972. </div>
  1973. </div>
  1974. </div>
  1975. <div
  1976. v-if="
  1977. tType &&
  1978. tType == 2 &&
  1979. !sIsOpen &&
  1980. tool.tool.indexOf(69) != -1
  1981. "
  1982. class="worksBox"
  1983. >
  1984. <div
  1985. class="zuoyeYulan"
  1986. v-if="workStudent[toolIndex].length > 0"
  1987. >
  1988. <span class="worksTitle">作业预览</span>
  1989. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1990. </div>
  1991. <div
  1992. class="worksDetailBox"
  1993. v-if="workStudent[toolIndex].length > 0"
  1994. >
  1995. <div
  1996. class="isWorksName2"
  1997. v-for="(w, wIndex) in workStudent[toolIndex]"
  1998. :key="wIndex"
  1999. @click="
  2000. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2001. "
  2002. >
  2003. {{ w.sName }}
  2004. <img
  2005. class="deleteImg deleteImg2"
  2006. src="../assets/deleteworks.png"
  2007. v-if="w.userid == userid || tType == 1 || tType == 4"
  2008. @click.stop="deleteWorks(w.wid)"
  2009. alt
  2010. />
  2011. </div>
  2012. </div>
  2013. </div>
  2014. <div
  2015. v-if="
  2016. tType &&
  2017. tType == 2 &&
  2018. !sIsOpen &&
  2019. tool.tool.indexOf(15) != -1
  2020. "
  2021. class="worksBox"
  2022. >
  2023. <div
  2024. class="zuoyeYulan"
  2025. v-if="workStudent[toolIndex].length > 0"
  2026. >
  2027. <span class="worksTitle">作业预览</span>
  2028. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2029. </div>
  2030. <div
  2031. class="worksDetailBox"
  2032. v-if="workStudent[toolIndex].length > 0"
  2033. >
  2034. <div
  2035. class="works"
  2036. v-for="(w, wIndex) in workStudent[toolIndex]"
  2037. :key="wIndex"
  2038. >
  2039. <div class="workImg">
  2040. <!-- <img
  2041. src="../assets/icon/works/noImg.png"
  2042. @click="openTools(15, toolIndex, taskCount, w.works)"
  2043. alt=""
  2044. />-->
  2045. <div class="answerBg">
  2046. <!-- <div>{{ w.sName }}</div> -->
  2047. <el-tooltip
  2048. class="item"
  2049. effect="light"
  2050. :content="JSON.parse(w.works)[0].answer"
  2051. placement="top"
  2052. >
  2053. <div class="answerContent">
  2054. {{ JSON.parse(w.works)[0].answer }}
  2055. </div>
  2056. </el-tooltip>
  2057. <div
  2058. class="answerScore"
  2059. v-if="w.score"
  2060. @click.stop="openScore(w)"
  2061. :class="{
  2062. rightW:
  2063. w.userid == userid ||
  2064. tType == 1 ||
  2065. tType == 4,
  2066. }"
  2067. >
  2068. {{ JSON.parse(w.score).wScore }}分
  2069. </div>
  2070. <div
  2071. class="answerScore"
  2072. @click.stop="openScore(w)"
  2073. v-else-if="courseDetail.userid == userid"
  2074. :class="{
  2075. rightW:
  2076. w.userid == userid ||
  2077. tType == 1 ||
  2078. tType == 4,
  2079. }"
  2080. >
  2081. 评分
  2082. </div>
  2083. <img
  2084. class="deleteImg"
  2085. src="../assets/deleteworks.png"
  2086. v-if="
  2087. w.userid == userid || tType == 1 || tType == 4
  2088. "
  2089. @click.stop="deleteWorks(w.wid)"
  2090. alt
  2091. />
  2092. </div>
  2093. <div class="comment">
  2094. <div class="worksName">
  2095. <div>{{ w.sName }}</div>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. </div>
  2102. <div
  2103. v-if="
  2104. tType &&
  2105. tType == 2 &&
  2106. !sIsOpen &&
  2107. tool.tool.indexOf(1) != -1
  2108. "
  2109. class="worksBox"
  2110. >
  2111. <div
  2112. class="zuoyeYulan"
  2113. v-if="workStudent[toolIndex].length > 0"
  2114. >
  2115. <span class="worksTitle">作业预览</span>
  2116. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2117. </div>
  2118. <div
  2119. class="worksDetailBox"
  2120. v-if="workStudent[toolIndex].length > 0"
  2121. >
  2122. <div
  2123. class="works"
  2124. style="
  2125. width: 200px;
  2126. height: 140px;
  2127. margin: 10px 10px 10px 0;
  2128. box-shadow: 0 0 6px 1px #dfdada;
  2129. "
  2130. v-for="(w, wIndex) in workStudent[toolIndex]"
  2131. :key="wIndex"
  2132. >
  2133. <div class="workImg">
  2134. <img
  2135. :src="w.works"
  2136. @click="previewImg(w.works,w)"
  2137. alt
  2138. />
  2139. <div
  2140. class="answerScore"
  2141. v-if="w.score"
  2142. @click.stop="openScore(w)"
  2143. :class="{
  2144. rightW:
  2145. w.userid == userid || tType == 1 || tType == 4,
  2146. }"
  2147. >
  2148. {{ JSON.parse(w.score).wScore }}分
  2149. </div>
  2150. <div
  2151. class="answerScore"
  2152. @click.stop="openScore(w)"
  2153. v-else-if="courseDetail.userid == userid"
  2154. :class="{
  2155. rightW:
  2156. w.userid == userid || tType == 1 || tType == 4,
  2157. }"
  2158. >
  2159. 评分
  2160. </div>
  2161. <img
  2162. class="deleteImg"
  2163. src="../assets/deleteworks.png"
  2164. v-if="
  2165. w.userid == userid || tType == 1 || tType == 4
  2166. "
  2167. @click.stop="deleteWorks(w.wid)"
  2168. alt
  2169. />
  2170. </div>
  2171. <div class="worksName">
  2172. <div>{{ w.sName }}</div>
  2173. </div>
  2174. </div>
  2175. </div>
  2176. </div>
  2177. <div
  2178. v-if="
  2179. tType &&
  2180. tType == 2 &&
  2181. !sIsOpen &&
  2182. tool.tool.indexOf(3) != -1
  2183. "
  2184. class="worksBox"
  2185. >
  2186. <div
  2187. class="zuoyeYulan"
  2188. v-if="workStudent[toolIndex].length > 0"
  2189. >
  2190. <span class="worksTitle">作业预览</span>
  2191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2192. </div>
  2193. <div
  2194. class="worksDetailBox"
  2195. v-if="workStudent[toolIndex].length > 0"
  2196. >
  2197. <div
  2198. class="works"
  2199. style="
  2200. width: 200px;
  2201. height: 140px;
  2202. margin: 10px 10px 10px 0;
  2203. box-shadow: 0 0 6px 1px #dfdada;
  2204. "
  2205. v-for="(w, wIndex) in workStudent[toolIndex]"
  2206. :key="wIndex"
  2207. >
  2208. <div class="workImg">
  2209. <img
  2210. :src="w.works"
  2211. @click="previewImg(w.works,w)"
  2212. alt
  2213. />
  2214. <div
  2215. class="answerScore"
  2216. v-if="w.score"
  2217. @click.stop="openScore(w)"
  2218. :class="{
  2219. rightW:
  2220. w.userid == userid || tType == 1 || tType == 4,
  2221. }"
  2222. >
  2223. {{ JSON.parse(w.score).wScore }}分
  2224. </div>
  2225. <div
  2226. class="answerScore"
  2227. @click.stop="openScore(w)"
  2228. v-else-if="courseDetail.userid == userid"
  2229. :class="{
  2230. rightW:
  2231. w.userid == userid || tType == 1 || tType == 4,
  2232. }"
  2233. >
  2234. 评分
  2235. </div>
  2236. <img
  2237. class="deleteImg"
  2238. src="../assets/deleteworks.png"
  2239. v-if="
  2240. w.userid == userid || tType == 1 || tType == 4
  2241. "
  2242. @click.stop="deleteWorks(w.wid)"
  2243. alt
  2244. />
  2245. </div>
  2246. <div class="worksName">
  2247. <div>{{ w.sName }}</div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. </div>
  2252. <div
  2253. v-if="
  2254. tType &&
  2255. tType == 2 &&
  2256. !sIsOpen &&
  2257. tool.tool.indexOf(6) != -1
  2258. "
  2259. class="worksBox"
  2260. >
  2261. <div
  2262. class="zuoyeYulan"
  2263. v-if="workStudent[toolIndex].length > 0"
  2264. >
  2265. <span class="worksTitle">作业预览</span>
  2266. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2267. </div>
  2268. <div
  2269. class="worksDetailBox"
  2270. v-if="workStudent[toolIndex].length > 0"
  2271. >
  2272. <div
  2273. class="works"
  2274. style="
  2275. width: 200px;
  2276. height: 140px;
  2277. margin: 10px 10px 10px 0;
  2278. box-shadow: 0 0 6px 1px #dfdada;
  2279. "
  2280. v-for="(w, wIndex) in workStudent[toolIndex]"
  2281. :key="wIndex"
  2282. >
  2283. <div class="workImg">
  2284. <img
  2285. :src="w.works"
  2286. @click="previewImg(w.works,w)"
  2287. alt
  2288. />
  2289. <div
  2290. class="answerScore"
  2291. v-if="w.score"
  2292. @click.stop="openScore(w)"
  2293. :class="{
  2294. rightW:
  2295. w.userid == userid || tType == 1 || tType == 4,
  2296. }"
  2297. >
  2298. {{ JSON.parse(w.score).wScore }}分
  2299. </div>
  2300. <div
  2301. class="answerScore"
  2302. @click.stop="openScore(w)"
  2303. v-else-if="courseDetail.userid == userid"
  2304. :class="{
  2305. rightW:
  2306. w.userid == userid || tType == 1 || tType == 4,
  2307. }"
  2308. >
  2309. 评分
  2310. </div>
  2311. <img
  2312. class="deleteImg"
  2313. src="../assets/deleteworks.png"
  2314. v-if="
  2315. w.userid == userid || tType == 1 || tType == 4
  2316. "
  2317. @click.stop="deleteWorks(w.wid)"
  2318. alt
  2319. />
  2320. </div>
  2321. <div class="worksName">
  2322. <div>{{ w.sName }}</div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. </div>
  2327. <div
  2328. v-if="
  2329. tType &&
  2330. tType == 2 &&
  2331. !sIsOpen &&
  2332. tool.tool.indexOf(7) != -1
  2333. "
  2334. class="worksBox"
  2335. >
  2336. <div
  2337. class="zuoyeYulan"
  2338. v-if="workStudent[toolIndex].length > 0"
  2339. >
  2340. <span class="worksTitle">作业预览</span>
  2341. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2342. </div>
  2343. <div
  2344. class="worksDetailBox"
  2345. v-if="workStudent[toolIndex].length > 0"
  2346. >
  2347. <div
  2348. class="works"
  2349. style="
  2350. width: 200px;
  2351. height: 140px;
  2352. margin: 10px 10px 10px 0;
  2353. box-shadow: 0 0 6px 1px #dfdada;
  2354. "
  2355. v-for="(w, wIndex) in workStudent[toolIndex]"
  2356. :key="wIndex"
  2357. >
  2358. <div class="workImg">
  2359. <img
  2360. :src="w.works"
  2361. @click="previewImg(w.works,w)"
  2362. alt
  2363. />
  2364. <div
  2365. class="answerScore"
  2366. v-if="w.score"
  2367. @click.stop="openScore(w)"
  2368. :class="{
  2369. rightW:
  2370. w.userid == userid || tType == 1 || tType == 4,
  2371. }"
  2372. >
  2373. {{ JSON.parse(w.score).wScore }}分
  2374. </div>
  2375. <div
  2376. class="answerScore"
  2377. @click.stop="openScore(w)"
  2378. v-else-if="courseDetail.userid == userid"
  2379. :class="{
  2380. rightW:
  2381. w.userid == userid || tType == 1 || tType == 4,
  2382. }"
  2383. >
  2384. 评分
  2385. </div>
  2386. <img
  2387. class="deleteImg"
  2388. src="../assets/deleteworks.png"
  2389. v-if="
  2390. w.userid == userid || tType == 1 || tType == 4
  2391. "
  2392. @click.stop="deleteWorks(w.wid)"
  2393. alt
  2394. />
  2395. </div>
  2396. <div class="worksName">
  2397. <div>{{ w.sName }}</div>
  2398. </div>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. <div
  2403. v-if="
  2404. tType &&
  2405. tType == 2 &&
  2406. !sIsOpen &&
  2407. tool.tool.indexOf(26) != -1
  2408. "
  2409. class="worksBox"
  2410. >
  2411. <div
  2412. class="zuoyeYulan"
  2413. v-if="workStudent[toolIndex].length > 0"
  2414. >
  2415. <span class="worksTitle">作业预览</span>
  2416. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2417. </div>
  2418. <div
  2419. class="worksDetailBox"
  2420. v-if="workStudent[toolIndex].length > 0"
  2421. >
  2422. <div
  2423. class="works"
  2424. style="
  2425. width: 200px;
  2426. height: 140px;
  2427. margin: 10px 10px 10px 0;
  2428. box-shadow: 0 0 6px 1px #dfdada;
  2429. "
  2430. v-for="(w, wIndex) in workStudent[toolIndex]"
  2431. :key="wIndex"
  2432. >
  2433. <div class="workImg">
  2434. <img
  2435. :src="w.works"
  2436. @click="previewImg(w.works,w)"
  2437. alt
  2438. />
  2439. <img
  2440. class="deleteImg"
  2441. src="../assets/deleteworks.png"
  2442. v-if="
  2443. w.userid == userid || tType == 1 || tType == 4
  2444. "
  2445. @click.stop="deleteWorks(w.wid)"
  2446. alt
  2447. />
  2448. </div>
  2449. <div class="worksName">
  2450. <div>{{ w.sName }}</div>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. </div>
  2455. <div
  2456. v-if="
  2457. tType &&
  2458. ((tType == 2 && sIsOpen == true) ||
  2459. tType == 1 ||
  2460. tType == 4) &&
  2461. tool.tool.indexOf(16) != -1
  2462. "
  2463. class="worksBox"
  2464. >
  2465. <div
  2466. class="zuoyeYulan"
  2467. v-if="
  2468. (worksStudent.length &&
  2469. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2470. "
  2471. >
  2472. <div class="worksTop">
  2473. <div>作业预览</div>
  2474. <div
  2475. class="corOpen"
  2476. @click="contract(toolIndex)"
  2477. v-if="
  2478. (isCloseList[toolIndex].isCloseBoolean) &&
  2479. isCloseList[toolIndex].isClose == 0
  2480. "
  2481. >
  2482. 折叠
  2483. </div>
  2484. <div
  2485. class="corOpen"
  2486. @click="contract(toolIndex)"
  2487. v-if="isCloseList[toolIndex].isClose == 1"
  2488. >
  2489. 展开
  2490. </div>
  2491. </div>
  2492. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2493. </div>
  2494. <div
  2495. class="group_workBox"
  2496. v-for="(g, gindex) in courseGroup.group"
  2497. :key="gindex"
  2498. >
  2499. <div class="group_box">
  2500. <div class="group_title">
  2501. <el-tooltip
  2502. class="item"
  2503. effect="light"
  2504. :content="g.name"
  2505. placement="top"
  2506. >
  2507. <div class="group_name">{{ g.name }}</div>
  2508. </el-tooltip>
  2509. </div>
  2510. <div
  2511. class="group_work"
  2512. v-if="
  2513. g.works &&
  2514. g.works.length &&
  2515. g.works[toolIndex].length
  2516. "
  2517. >
  2518. <div
  2519. class="works"
  2520. style="
  2521. width: 200px;
  2522. height: 140px;
  2523. margin: 10px 10px 10px 0;
  2524. border-radius: 15px;
  2525. box-shadow: 0 0 6px 1px #dfdada;
  2526. "
  2527. v-for="(w, wIndex) in g.works[toolIndex]"
  2528. :key="wIndex"
  2529. :class="w.type == 1 ? 'isTypeOne' : ''"
  2530. >
  2531. <div class="workImg" v-if="w.type == 0">
  2532. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2533. <img
  2534. :src="w.works"
  2535. @click="previewImg(w.works,w)"
  2536. alt
  2537. />
  2538. <div
  2539. class="answerScore"
  2540. v-if="w.score"
  2541. @click.stop="openScore(w)"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid ||
  2545. tType == 1 ||
  2546. tType == 4 ||
  2547. w.ateacher == userid,
  2548. }"
  2549. >
  2550. {{ JSON.parse(w.score).wScore }}分
  2551. </div>
  2552. <div
  2553. class="answerScore"
  2554. @click.stop="openScore(w)"
  2555. v-else-if="courseDetail.userid == userid"
  2556. :class="{
  2557. rightW:
  2558. w.userid == userid ||
  2559. tType == 1 ||
  2560. tType == 4 ||
  2561. w.ateacher == userid,
  2562. }"
  2563. >
  2564. 评分
  2565. </div>
  2566. <img
  2567. class="deleteImg"
  2568. src="../assets/deleteworks.png"
  2569. v-if="
  2570. w.userid == userid || tType == 1 || tType == 4
  2571. "
  2572. @click.stop="deleteWorks(w.wid)"
  2573. alt
  2574. />
  2575. </div>
  2576. <div class="workImg" v-if="w.type == 1">
  2577. <img :src="word" @click="openFile(w.works,w)" alt />
  2578. <!-- @click="openFile(w.works)" -->
  2579. <div
  2580. class="answerScore"
  2581. v-if="w.score"
  2582. @click.stop="openScore(w)"
  2583. :class="{
  2584. rightW:
  2585. w.userid == userid ||
  2586. tType == 1 ||
  2587. tType == 4 ||
  2588. w.ateacher == userid,
  2589. }"
  2590. >
  2591. {{ JSON.parse(w.score).wScore }}分
  2592. </div>
  2593. <div
  2594. class="answerScore"
  2595. @click.stop="openScore(w)"
  2596. v-else-if="courseDetail.userid == userid"
  2597. :class="{
  2598. rightW:
  2599. w.userid == userid ||
  2600. tType == 1 ||
  2601. tType == 4 ||
  2602. w.ateacher == userid,
  2603. }"
  2604. >
  2605. 评分
  2606. </div>
  2607. <img
  2608. class="deleteImg"
  2609. src="../assets/deleteworks.png"
  2610. v-if="
  2611. w.userid == userid || tType == 1 || tType == 4
  2612. "
  2613. @click.stop="deleteWorks(w.wid)"
  2614. alt
  2615. />
  2616. </div>
  2617. <div class="workImg" v-if="w.type == 3">
  2618. <img
  2619. style="cursor: pointer"
  2620. :src="video"
  2621. @click="openVideo(w)"
  2622. alt
  2623. />
  2624. <!-- @click="openVideo(w.works)" -->
  2625. <div
  2626. class="answerScore"
  2627. v-if="w.score"
  2628. @click.stop="openScore(w)"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. {{ JSON.parse(w.score).wScore }}分
  2638. </div>
  2639. <div
  2640. class="answerScore"
  2641. @click.stop="openScore(w)"
  2642. v-else-if="courseDetail.userid == userid"
  2643. :class="{
  2644. rightW:
  2645. w.userid == userid ||
  2646. tType == 1 ||
  2647. tType == 4 ||
  2648. w.ateacher == userid,
  2649. }"
  2650. >
  2651. 评分
  2652. </div>
  2653. <img
  2654. class="deleteImg"
  2655. src="../assets/deleteworks.png"
  2656. v-if="
  2657. w.userid == userid || tType == 1 || tType == 4
  2658. "
  2659. @click.stop="deleteWorks(w.wid)"
  2660. alt
  2661. />
  2662. </div>
  2663. <div class="workImg" v-if="w.type == 12">
  2664. <img
  2665. style="cursor: pointer"
  2666. :src="word2"
  2667. @click="downloadFile(w.works)"
  2668. alt
  2669. />
  2670. <!-- @click="openVideo(w.works)" -->
  2671. <div
  2672. class="answerScore"
  2673. v-if="w.score"
  2674. @click.stop="openScore(w)"
  2675. :class="{
  2676. rightW:
  2677. w.userid == userid ||
  2678. tType == 1 ||
  2679. tType == 4 ||
  2680. w.ateacher == userid,
  2681. }"
  2682. >
  2683. {{ JSON.parse(w.score).wScore }}分
  2684. </div>
  2685. <div
  2686. class="answerScore"
  2687. @click.stop="openScore(w)"
  2688. v-else-if="courseDetail.userid == userid"
  2689. :class="{
  2690. rightW:
  2691. w.userid == userid ||
  2692. tType == 1 ||
  2693. tType == 4 ||
  2694. w.ateacher == userid,
  2695. }"
  2696. >
  2697. 评分
  2698. </div>
  2699. <img
  2700. class="deleteImg"
  2701. src="../assets/deleteworks.png"
  2702. v-if="
  2703. w.userid == userid || tType == 1 || tType == 4
  2704. "
  2705. @click.stop="deleteWorks(w.wid)"
  2706. alt
  2707. />
  2708. </div>
  2709. <div class="comment" style="min-width: 200px">
  2710. <div class="worksName">
  2711. <div>{{ w.sName }}</div>
  2712. </div>
  2713. <div class="commentList">
  2714. <div class="commentList">
  2715. <div
  2716. class="commentImg"
  2717. @click="
  2718. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2719. "
  2720. >
  2721. <img
  2722. :src="w.isLikes == true ? likes : noLikes"
  2723. alt=""
  2724. />
  2725. </div>
  2726. <div>{{ w.likesCount }}</div>
  2727. </div>
  2728. <div
  2729. class="commentList"
  2730. style="margin-right: 15px"
  2731. >
  2732. <div
  2733. class="commentImg"
  2734. @click="
  2735. commentOther(
  2736. w,
  2737. toolIndex,
  2738. wIndex,
  2739. null,
  2740. g.id
  2741. )
  2742. "
  2743. >
  2744. <img
  2745. src="../assets/icon/comment/comment.png"
  2746. alt=""
  2747. />
  2748. </div>
  2749. <div>{{ w.commentCount }}</div>
  2750. </div>
  2751. </div>
  2752. </div>
  2753. </div>
  2754. </div>
  2755. <div class="group_work" v-else>暂无提交作业</div>
  2756. </div>
  2757. </div>
  2758. <div
  2759. :id="'tool-' + toolIndex"
  2760. :style="{
  2761. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2762. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2763. }"
  2764. class="worksDetailBox"
  2765. v-if="
  2766. worksStudent.length &&
  2767. worksStudent[toolIndex].length > 0
  2768. "
  2769. >
  2770. <div
  2771. class="works"
  2772. style="
  2773. width: 200px;
  2774. height: 140px;
  2775. margin: 10px 10px 10px 0;
  2776. border-radius: 15px;
  2777. box-shadow: 0 0 6px 1px #dfdada;
  2778. "
  2779. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2780. :key="wIndex"
  2781. :class="w.type == 1 ? 'isTypeOne' : ''"
  2782. >
  2783. <div class="workImg" v-if="w.type == 0">
  2784. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2785. <img
  2786. :src="w.works"
  2787. @click="previewImg(w.works,w)"
  2788. alt
  2789. />
  2790. <div
  2791. class="answerScore"
  2792. v-if="w.score"
  2793. @click.stop="openScore(w)"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid ||
  2797. tType == 1 ||
  2798. tType == 4 ||
  2799. w.ateacher == userid,
  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 ||
  2811. tType == 1 ||
  2812. tType == 4 ||
  2813. w.ateacher == userid,
  2814. }"
  2815. >
  2816. 评分
  2817. </div>
  2818. <img
  2819. class="deleteImg"
  2820. src="../assets/deleteworks.png"
  2821. v-if="
  2822. w.userid == userid || tType == 1 || tType == 4
  2823. "
  2824. @click.stop="deleteWorks(w.wid)"
  2825. alt
  2826. />
  2827. </div>
  2828. <div class="workImg" v-if="w.type == 1">
  2829. <img :src="word" @click="openFile(w.works,w)" alt />
  2830. <!-- @click="openFile(w.works)" -->
  2831. <div
  2832. class="answerScore"
  2833. v-if="w.score"
  2834. @click.stop="openScore(w)"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. {{ JSON.parse(w.score).wScore }}分
  2844. </div>
  2845. <div
  2846. class="answerScore"
  2847. @click.stop="openScore(w)"
  2848. v-else-if="courseDetail.userid == userid"
  2849. :class="{
  2850. rightW:
  2851. w.userid == userid ||
  2852. tType == 1 ||
  2853. tType == 4 ||
  2854. w.ateacher == userid,
  2855. }"
  2856. >
  2857. 评分
  2858. </div>
  2859. <img
  2860. class="deleteImg"
  2861. src="../assets/deleteworks.png"
  2862. v-if="
  2863. w.userid == userid || tType == 1 || tType == 4
  2864. "
  2865. @click.stop="deleteWorks(w.wid)"
  2866. alt
  2867. />
  2868. </div>
  2869. <div class="workImg" v-if="w.type == 3">
  2870. <img
  2871. style="cursor: pointer"
  2872. :src="video"
  2873. @click="openVideo(w)"
  2874. alt
  2875. />
  2876. <!-- @click="openVideo(w.works)" -->
  2877. <div
  2878. class="answerScore"
  2879. v-if="w.score"
  2880. @click.stop="openScore(w)"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. {{ JSON.parse(w.score).wScore }}分
  2890. </div>
  2891. <div
  2892. class="answerScore"
  2893. @click.stop="openScore(w)"
  2894. v-else-if="courseDetail.userid == userid"
  2895. :class="{
  2896. rightW:
  2897. w.userid == userid ||
  2898. tType == 1 ||
  2899. tType == 4 ||
  2900. w.ateacher == userid,
  2901. }"
  2902. >
  2903. 评分
  2904. </div>
  2905. <img
  2906. class="deleteImg"
  2907. src="../assets/deleteworks.png"
  2908. v-if="
  2909. w.userid == userid || tType == 1 || tType == 4
  2910. "
  2911. @click.stop="deleteWorks(w.wid)"
  2912. alt
  2913. />
  2914. </div>
  2915. <div class="workImg" v-if="w.type == 12">
  2916. <img
  2917. style="cursor: pointer"
  2918. :src="word2"
  2919. @click="downloadFile(w.works)"
  2920. alt
  2921. />
  2922. <!-- @click="openVideo(w.works)" -->
  2923. <div
  2924. class="answerScore"
  2925. v-if="w.score"
  2926. @click.stop="openScore(w)"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid ||
  2930. tType == 1 ||
  2931. tType == 4 ||
  2932. w.ateacher == userid,
  2933. }"
  2934. >
  2935. {{ JSON.parse(w.score).wScore }}分
  2936. </div>
  2937. <div
  2938. class="answerScore"
  2939. @click.stop="openScore(w)"
  2940. v-else-if="courseDetail.userid == userid"
  2941. :class="{
  2942. rightW:
  2943. w.userid == userid ||
  2944. tType == 1 ||
  2945. tType == 4 ||
  2946. w.ateacher == userid,
  2947. }"
  2948. >
  2949. 评分
  2950. </div>
  2951. <img
  2952. class="deleteImg"
  2953. src="../assets/deleteworks.png"
  2954. v-if="
  2955. w.userid == userid || tType == 1 || tType == 4
  2956. "
  2957. @click.stop="deleteWorks(w.wid)"
  2958. alt
  2959. />
  2960. </div>
  2961. <div class="comment" style="min-width: 200px">
  2962. <div class="worksName">
  2963. <div>{{ w.sName }}</div>
  2964. </div>
  2965. <div class="commentList">
  2966. <div class="commentList">
  2967. <div
  2968. class="commentImg"
  2969. @click="
  2970. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2971. "
  2972. >
  2973. <img
  2974. :src="w.isLikes == true ? likes : noLikes"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.likesCount }}</div>
  2979. </div>
  2980. <div class="commentList" style="margin-right: 15px">
  2981. <div
  2982. class="commentImg"
  2983. @click="commentOther(w, toolIndex, wIndex)"
  2984. >
  2985. <img
  2986. src="../assets/icon/comment/comment.png"
  2987. alt=""
  2988. />
  2989. </div>
  2990. <div>{{ w.commentCount }}</div>
  2991. </div>
  2992. </div>
  2993. </div>
  2994. </div>
  2995. </div>
  2996. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2997. 未提交
  2998. </div>
  2999. <div
  3000. class="noWorksS"
  3001. v-if="noWorksS && noWorksS[toolIndex].length"
  3002. >
  3003. <div
  3004. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3005. :key="sIndex"
  3006. class="noWorksName"
  3007. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3008. >
  3009. <el-tooltip effect="dark" :content="s.student" placement="top">
  3010. <span>{{ s.student }}</span>
  3011. </el-tooltip>
  3012. </div>
  3013. </div>
  3014. </div>
  3015. <div
  3016. v-if="
  3017. tType &&
  3018. ((tType == 2 && sIsOpen == true) ||
  3019. tType == 1 ||
  3020. tType == 4) &&
  3021. tool.tool.indexOf(70) != -1
  3022. "
  3023. class="worksBox"
  3024. >
  3025. <div
  3026. class="zuoyeYulan"
  3027. v-if="
  3028. (worksStudent.length &&
  3029. worksStudent[toolIndex].length > 0)
  3030. "
  3031. >
  3032. <div class="worksTop">
  3033. <div>作业预览</div>
  3034. <div
  3035. class="corOpen"
  3036. @click="contract(toolIndex)"
  3037. v-if="
  3038. (isCloseList[toolIndex].isCloseBoolean) &&
  3039. isCloseList[toolIndex].isClose == 0
  3040. "
  3041. >
  3042. 折叠
  3043. </div>
  3044. <div
  3045. class="corOpen"
  3046. @click="contract(toolIndex)"
  3047. v-if="isCloseList[toolIndex].isClose == 1"
  3048. >
  3049. 展开
  3050. </div>
  3051. </div>
  3052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3053. </div>
  3054. <div
  3055. :id="'tool-' + toolIndex"
  3056. :style="{
  3057. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3058. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3059. }"
  3060. class="worksDetailBox"
  3061. v-if="
  3062. worksStudent.length &&
  3063. worksStudent[toolIndex].length > 0
  3064. "
  3065. >
  3066. <div
  3067. class="works"
  3068. style="
  3069. width: 200px;
  3070. height: 140px;
  3071. margin: 10px 10px 10px 0;
  3072. border-radius: 15px;
  3073. box-shadow: 0 0 6px 1px #dfdada;
  3074. "
  3075. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3076. :key="wIndex"
  3077. :class="w.type == 1 ? 'isTypeOne' : ''"
  3078. >
  3079. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3080. <img :src="word" alt />
  3081. <img
  3082. class="deleteImg"
  3083. src="../assets/deleteworks.png"
  3084. v-if="
  3085. w.userid == userid || tType == 1 || tType == 4
  3086. "
  3087. @click.stop="deleteWorks(w.wid)"
  3088. alt
  3089. />
  3090. </div>
  3091. <div class="comment" style="min-width: 200px">
  3092. <div class="worksName">
  3093. <div>{{ w.sName }}</div>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3099. 未提交
  3100. </div>
  3101. <div
  3102. class="noWorksS"
  3103. v-if="noWorksS && noWorksS[toolIndex].length"
  3104. >
  3105. <div
  3106. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3107. :key="sIndex"
  3108. class="noWorksName"
  3109. >
  3110. <el-tooltip effect="dark" :content="s.student" placement="top">
  3111. <span>{{ s.student }}</span>
  3112. </el-tooltip>
  3113. </div>
  3114. </div>
  3115. </div>
  3116. <div
  3117. v-if="
  3118. tType &&
  3119. tType == 2 &&
  3120. !sIsOpen &&
  3121. tool.tool.indexOf(70) != -1
  3122. "
  3123. class="worksBox"
  3124. >
  3125. <div
  3126. class="zuoyeYulan"
  3127. v-if="workStudent[toolIndex].length > 0"
  3128. >
  3129. <span class="worksTitle">作业预览</span>
  3130. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3131. </div>
  3132. <div
  3133. class="worksDetailBox"
  3134. v-if="workStudent[toolIndex].length > 0"
  3135. >
  3136. <div
  3137. class="works"
  3138. style="
  3139. width: 200px;
  3140. height: 140px;
  3141. margin: 10px 10px 10px 0;
  3142. box-shadow: 0 0 6px 1px #dfdada;
  3143. "
  3144. v-for="(w, wIndex) in workStudent[toolIndex]"
  3145. :key="wIndex"
  3146. >
  3147. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3148. <img :src="word" alt />
  3149. <img
  3150. class="deleteImg"
  3151. src="../assets/deleteworks.png"
  3152. v-if="
  3153. w.userid == userid || tType == 1 || tType == 4
  3154. "
  3155. @click.stop="deleteWorks(w.wid)"
  3156. alt
  3157. />
  3158. </div>
  3159. <div class="worksName">
  3160. <div>{{ w.sName }}</div>
  3161. </div>
  3162. </div>
  3163. </div>
  3164. </div>
  3165. <div
  3166. v-if="
  3167. tType &&
  3168. ((tType == 2 && sIsOpen == true) ||
  3169. tType == 1 ||
  3170. tType == 4) &&
  3171. tool.tool.indexOf(32) != -1
  3172. "
  3173. class="worksBox"
  3174. >
  3175. <div
  3176. class="zuoyeYulan"
  3177. v-if="
  3178. worksStudent.length &&
  3179. worksStudent[toolIndex].length > 0
  3180. "
  3181. >
  3182. <div class="worksTop">
  3183. <div>作业预览</div>
  3184. <div
  3185. class="corOpen"
  3186. @click="contract(toolIndex)"
  3187. v-if="
  3188. (isCloseList[toolIndex].isCloseBoolean) &&
  3189. isCloseList[toolIndex].isClose == 0
  3190. "
  3191. >
  3192. 折叠
  3193. </div>
  3194. <div
  3195. class="corOpen"
  3196. @click="contract(toolIndex)"
  3197. v-if="isCloseList[toolIndex].isClose == 1"
  3198. >
  3199. 展开
  3200. </div>
  3201. </div>
  3202. </div>
  3203. <div
  3204. :id="'tool-' + toolIndex"
  3205. class="worksDetailBox"
  3206. :style="{
  3207. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3208. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3209. }"
  3210. v-if="
  3211. worksStudent.length &&
  3212. worksStudent[toolIndex].length > 0
  3213. "
  3214. >
  3215. <div
  3216. class="works"
  3217. style="
  3218. width: 200px;
  3219. height: 140px;
  3220. margin: 10px 10px 10px 0;
  3221. border-radius: 15px;
  3222. box-shadow: 0 0 6px 1px #dfdada;
  3223. "
  3224. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3225. :key="wIndex"
  3226. :class="w.type == 1 ? 'isTypeOne' : ''"
  3227. >
  3228. <div class="workImg">
  3229. <img
  3230. :src="word2"
  3231. @click="downloadFile(w.works)"
  3232. alt
  3233. />
  3234. <div
  3235. class="answerScore"
  3236. v-if="w.score"
  3237. @click.stop="openScore(w)"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. {{ JSON.parse(w.score).wScore }}分
  3247. </div>
  3248. <div
  3249. class="answerScore"
  3250. @click.stop="openScore(w)"
  3251. v-else-if="courseDetail.userid == userid"
  3252. :class="{
  3253. rightW:
  3254. w.userid == userid ||
  3255. tType == 1 ||
  3256. tType == 4 ||
  3257. w.ateacher == userid,
  3258. }"
  3259. >
  3260. 评分
  3261. </div>
  3262. <img
  3263. class="deleteImg"
  3264. src="../assets/deleteworks.png"
  3265. v-if="
  3266. w.userid == userid || tType == 1 || tType == 4
  3267. "
  3268. @click.stop="deleteWorks(w.wid)"
  3269. alt
  3270. />
  3271. </div>
  3272. <div class="comment" style="min-width: 200px">
  3273. <div class="worksName">
  3274. <div>{{ w.sName }}</div>
  3275. </div>
  3276. <div class="commentList">
  3277. <div class="commentList">
  3278. <div
  3279. class="commentImg"
  3280. @click="
  3281. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3282. "
  3283. >
  3284. <img
  3285. :src="w.isLikes == true ? likes : noLikes"
  3286. alt=""
  3287. />
  3288. </div>
  3289. <div>{{ w.likesCount }}</div>
  3290. </div>
  3291. <div class="commentList" style="margin-right: 15px">
  3292. <div
  3293. class="commentImg"
  3294. @click="commentOther(w, toolIndex, wIndex)"
  3295. >
  3296. <img
  3297. src="../assets/icon/comment/comment.png"
  3298. alt=""
  3299. />
  3300. </div>
  3301. <div>{{ w.commentCount }}</div>
  3302. </div>
  3303. </div>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3308. 未提交
  3309. </div>
  3310. <div
  3311. class="noWorksS"
  3312. v-if="noWorksS && noWorksS[toolIndex].length"
  3313. >
  3314. <div
  3315. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3316. :key="sIndex"
  3317. class="noWorksName"
  3318. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3319. >
  3320. <el-tooltip effect="dark" :content="s.student" placement="top">
  3321. <span>{{ s.student }}</span>
  3322. </el-tooltip>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. <div
  3327. v-if="
  3328. tType &&
  3329. ((tType == 2 && sIsOpen == true) ||
  3330. tType == 1 ||
  3331. tType == 4) &&
  3332. tool.tool.indexOf(57) != -1
  3333. "
  3334. class="worksBox"
  3335. >
  3336. <div
  3337. class="zuoyeYulan"
  3338. v-if="
  3339. worksStudent.length &&
  3340. worksStudent[toolIndex].length > 0
  3341. "
  3342. >
  3343. <div class="worksTop">
  3344. <div>作业预览</div>
  3345. <div
  3346. class="corOpen"
  3347. @click="contract(toolIndex)"
  3348. v-if="
  3349. (isCloseList[toolIndex].isCloseBoolean) &&
  3350. isCloseList[toolIndex].isClose == 0
  3351. "
  3352. >
  3353. 折叠
  3354. </div>
  3355. <div
  3356. class="corOpen"
  3357. @click="contract(toolIndex)"
  3358. v-if="isCloseList[toolIndex].isClose == 1"
  3359. >
  3360. 展开
  3361. </div>
  3362. </div>
  3363. </div>
  3364. <div
  3365. :id="'tool-' + toolIndex"
  3366. class="worksDetailBox"
  3367. :style="{
  3368. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3369. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3370. }"
  3371. v-if="
  3372. worksStudent.length &&
  3373. worksStudent[toolIndex].length > 0
  3374. "
  3375. >
  3376. <div
  3377. class="works"
  3378. style="
  3379. width: 200px;
  3380. height: 140px;
  3381. margin: 10px 10px 10px 0;
  3382. border-radius: 15px;
  3383. box-shadow: 0 0 6px 1px #dfdada;
  3384. "
  3385. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3386. :key="wIndex"
  3387. :class="w.type == 1 ? 'isTypeOne' : ''"
  3388. >
  3389. <div class="workImg">
  3390. <img
  3391. :src="word2"
  3392. @click="downloadFile(w.works)"
  3393. v-if="w.type == 12"
  3394. alt
  3395. />
  3396. <img
  3397. :src="word2"
  3398. @click="
  3399. openCocoPi(57, toolIndex, w.userid, w.sName)
  3400. "
  3401. v-else-if="w.type == 15"
  3402. alt
  3403. />
  3404. <div
  3405. class="answerScore"
  3406. v-if="w.score"
  3407. @click.stop="openScore(w)"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid,
  3414. }"
  3415. >
  3416. {{ JSON.parse(w.score).wScore }}分
  3417. </div>
  3418. <div
  3419. class="answerScore"
  3420. @click.stop="openScore(w)"
  3421. v-else-if="courseDetail.userid == userid"
  3422. :class="{
  3423. rightW:
  3424. w.userid == userid ||
  3425. tType == 1 ||
  3426. tType == 4 ||
  3427. w.ateacher == userid,
  3428. }"
  3429. >
  3430. 评分
  3431. </div>
  3432. <img
  3433. class="deleteImg"
  3434. src="../assets/deleteworks.png"
  3435. v-if="
  3436. w.userid == userid || tType == 1 || tType == 4
  3437. "
  3438. @click.stop="deleteWorks(w.wid)"
  3439. alt
  3440. />
  3441. </div>
  3442. <div class="comment" style="min-width: 200px">
  3443. <div class="worksName">
  3444. <div>{{ w.sName }}</div>
  3445. </div>
  3446. <div class="commentList">
  3447. <div class="commentList">
  3448. <div
  3449. class="commentImg"
  3450. @click="
  3451. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3452. "
  3453. >
  3454. <img
  3455. :src="w.isLikes == true ? likes : noLikes"
  3456. alt=""
  3457. />
  3458. </div>
  3459. <div>{{ w.likesCount }}</div>
  3460. </div>
  3461. <div class="commentList" style="margin-right: 15px">
  3462. <div
  3463. class="commentImg"
  3464. @click="commentOther(w, toolIndex, wIndex)"
  3465. >
  3466. <img
  3467. src="../assets/icon/comment/comment.png"
  3468. alt=""
  3469. />
  3470. </div>
  3471. <div>{{ w.commentCount }}</div>
  3472. </div>
  3473. </div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3478. 未提交
  3479. </div>
  3480. <div
  3481. class="noWorksS"
  3482. v-if="noWorksS && noWorksS[toolIndex].length"
  3483. >
  3484. <div
  3485. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3486. :key="sIndex"
  3487. class="noWorksName"
  3488. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3489. >
  3490. <el-tooltip effect="dark" :content="s.student" placement="top">
  3491. <span>{{ s.student }}</span>
  3492. </el-tooltip>
  3493. </div>
  3494. </div>
  3495. </div>
  3496. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3497. <div
  3498. class="zuoyeYulan"
  3499. v-if="
  3500. worksStudent.length &&
  3501. worksStudent[toolIndex].length > 0
  3502. "
  3503. >
  3504. <span class="worksTitle">作业预览</span>
  3505. <div
  3506. class="corOpen"
  3507. @click="contract(toolIndex)"
  3508. v-if="
  3509. (isCloseList[toolIndex].isCloseBoolean) &&
  3510. isCloseList[toolIndex].isClose == 0
  3511. "
  3512. >
  3513. 折叠
  3514. </div>
  3515. <div
  3516. class="corOpen"
  3517. @click="contract(toolIndex)"
  3518. v-if="isCloseList[toolIndex].isClose == 1"
  3519. >
  3520. 展开
  3521. </div>
  3522. </div>
  3523. <div
  3524. :id="'tool-' + toolIndex"
  3525. :style="{
  3526. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3527. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3528. }"
  3529. class="worksDetailBox"
  3530. v-if="
  3531. worksStudent.length &&
  3532. worksStudent[toolIndex].length > 0
  3533. "
  3534. >
  3535. <div
  3536. class="works"
  3537. style="
  3538. width: 200px;
  3539. height: 140px;
  3540. margin: 10px 10px 10px 0;
  3541. border-radius: 15px;
  3542. box-shadow: 0 0 6px 1px #dfdada;
  3543. "
  3544. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3545. :key="wIndex"
  3546. :class="w.type == 1 ? 'isTypeOne' : ''"
  3547. >
  3548. <div class="workImg" v-if="w.type == 0">
  3549. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3550. <img
  3551. :src="w.works"
  3552. @click="previewImg(w.works,w)"
  3553. alt
  3554. />
  3555. <div
  3556. class="answerScore"
  3557. v-if="w.score"
  3558. @click.stop="openScore(w)"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid,
  3565. }"
  3566. >
  3567. {{ JSON.parse(w.score).wScore }}分
  3568. </div>
  3569. <div
  3570. class="answerScore"
  3571. @click.stop="openScore(w)"
  3572. v-else-if="courseDetail.userid == userid"
  3573. :class="{
  3574. rightW:
  3575. w.userid == userid ||
  3576. tType == 1 ||
  3577. tType == 4 ||
  3578. w.ateacher == userid,
  3579. }"
  3580. >
  3581. 评分
  3582. </div>
  3583. <img
  3584. class="deleteImg"
  3585. src="../assets/deleteworks.png"
  3586. v-if="
  3587. w.userid == userid || tType == 1 || tType == 4
  3588. "
  3589. @click.stop="deleteWorks(w.wid)"
  3590. alt
  3591. />
  3592. </div>
  3593. <div
  3594. class="workImg"
  3595. style="cursor: pointer"
  3596. v-if="w.type == 1"
  3597. >
  3598. <img :src="word" @click="openFile(w.works,w)" alt />
  3599. <!-- @click="openFile(w.works)" -->
  3600. <div
  3601. class="answerScore"
  3602. v-if="w.score"
  3603. @click.stop="openScore(w)"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. {{ JSON.parse(w.score).wScore }}分
  3613. </div>
  3614. <div
  3615. class="answerScore"
  3616. @click.stop="openScore(w)"
  3617. v-else-if="courseDetail.userid == userid"
  3618. :class="{
  3619. rightW:
  3620. w.userid == userid ||
  3621. tType == 1 ||
  3622. tType == 4 ||
  3623. w.ateacher == userid,
  3624. }"
  3625. >
  3626. 评分
  3627. </div>
  3628. <img
  3629. class="deleteImg"
  3630. src="../assets/deleteworks.png"
  3631. v-if="
  3632. w.userid == userid || tType == 1 || tType == 4
  3633. "
  3634. @click.stop="deleteWorks(w.wid)"
  3635. alt
  3636. />
  3637. </div>
  3638. <div class="workImg" v-if="w.type == 3">
  3639. <img
  3640. style="cursor: pointer"
  3641. :src="video"
  3642. @click="openVideo(w)"
  3643. alt
  3644. />
  3645. <!-- @click="openVideo(w.works)" -->
  3646. <div
  3647. class="answerScore"
  3648. v-if="w.score"
  3649. @click.stop="openScore(w)"
  3650. :class="{
  3651. rightW:
  3652. w.userid == userid ||
  3653. tType == 1 ||
  3654. tType == 4 ||
  3655. w.ateacher == userid,
  3656. }"
  3657. >
  3658. {{ JSON.parse(w.score).wScore }}分
  3659. </div>
  3660. <div
  3661. class="answerScore"
  3662. @click.stop="openScore(w)"
  3663. v-else-if="courseDetail.userid == userid"
  3664. :class="{
  3665. rightW:
  3666. w.userid == userid ||
  3667. tType == 1 ||
  3668. tType == 4 ||
  3669. w.ateacher == userid,
  3670. }"
  3671. >
  3672. 评分
  3673. </div>
  3674. <img
  3675. class="deleteImg"
  3676. src="../assets/deleteworks.png"
  3677. v-if="
  3678. w.userid == userid || tType == 1 || tType == 4
  3679. "
  3680. @click.stop="deleteWorks(w.wid)"
  3681. alt
  3682. />
  3683. </div>
  3684. <div class="comment" style="min-width: 200px">
  3685. <div class="worksName">
  3686. <div
  3687. style="cursor: pointer"
  3688. @click="
  3689. openSname(w.sName, w.wid, toolIndex, w.userid)
  3690. "
  3691. >
  3692. {{ w.sName }}
  3693. </div>
  3694. </div>
  3695. <div class="commentList">
  3696. <div class="commentList">
  3697. <div
  3698. class="commentImg"
  3699. @click="
  3700. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3701. "
  3702. >
  3703. <img
  3704. :src="w.isLikes == true ? likes : noLikes"
  3705. alt=""
  3706. />
  3707. </div>
  3708. <div>{{ w.likesCount }}</div>
  3709. </div>
  3710. <div class="commentList" style="margin-right: 15px">
  3711. <div
  3712. class="commentImg"
  3713. @click="commentOther(w, toolIndex, wIndex)"
  3714. >
  3715. <img
  3716. src="../assets/icon/comment/comment.png"
  3717. alt=""
  3718. />
  3719. </div>
  3720. <div>{{ w.commentCount }}</div>
  3721. </div>
  3722. </div>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3727. 未提交
  3728. </div>
  3729. <div
  3730. class="noWorksS"
  3731. v-if="noWorksS && noWorksS[toolIndex].length"
  3732. >
  3733. <div
  3734. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3735. :key="sIndex"
  3736. class="noWorksName"
  3737. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3738. >
  3739. <el-tooltip effect="dark" :content="s.student" placement="top">
  3740. <span>{{ s.student }}</span>
  3741. </el-tooltip>
  3742. </div>
  3743. </div>
  3744. </div>
  3745. <div
  3746. v-if="
  3747. tType &&
  3748. ((tType == 2 && sIsOpen == true) ||
  3749. tType == 1 ||
  3750. tType == 4) &&
  3751. tool.tool.indexOf(4) != -1 &&
  3752. (tool.askJson[0].answer ||
  3753. tool.askJson[0].answer === 0) &&
  3754. checkJson[toolIndex].length
  3755. "
  3756. class="xuan_right_box"
  3757. >
  3758. <div
  3759. class="tool_right_box"
  3760. v-for="(item, index) in tool.askJson"
  3761. :key="index"
  3762. >
  3763. <div style="width: calc(100% - 30px);">
  3764. <el-tooltip
  3765. effect="light"
  3766. :content="index + 1 + '、' + item.askstitle"
  3767. placement="top"
  3768. popper-class="text_tooltip"
  3769. >
  3770. <div
  3771. style="
  3772. width: calc(100% - 130px);
  3773. display: block;
  3774. white-space: nowrap;
  3775. overflow: hidden;
  3776. text-overflow: ellipsis;
  3777. word-break: break-word;
  3778. cursor: pointer;
  3779. "
  3780. >
  3781. {{ index + 1 + "、" + item.askstitle }}
  3782. </div>
  3783. </el-tooltip>
  3784. </div>
  3785. <div class="right_box_xuan">
  3786. <span>正确率</span>
  3787. <span>{{
  3788. (checkJson[toolIndex][index].right
  3789. ? checkJson[toolIndex][index].right
  3790. : 0) + "%"
  3791. }}</span>
  3792. </div>
  3793. </div>
  3794. </div>
  3795. <div
  3796. class="xuan_right_box"
  3797. style="background: unset; padding: 0 10px"
  3798. v-if="
  3799. tType &&
  3800. ((tType == 2 && sIsOpen == true) ||
  3801. tType == 1 ||
  3802. tType == 4) &&
  3803. tool.tool.indexOf(4) != -1
  3804. "
  3805. >
  3806. <AskStatic
  3807. v-if="
  3808. worksStudent.length &&
  3809. worksStudent[toolIndex].length > 0
  3810. "
  3811. :askJSON="tool"
  3812. :checkJson="checkJson[toolIndex]"
  3813. ></AskStatic>
  3814. </div>
  3815. <div
  3816. v-if="
  3817. tType &&
  3818. ((tType == 2 && sIsOpen == true) ||
  3819. tType == 1 ||
  3820. tType == 4) &&
  3821. tool.tool.indexOf(4) != -1
  3822. "
  3823. class="worksBox"
  3824. >
  3825. <div
  3826. class="zuoyeYulan"
  3827. v-if="
  3828. worksStudent.length &&
  3829. worksStudent[toolIndex].length > 0
  3830. "
  3831. >
  3832. <div class="worksTop">
  3833. <div>作业预览</div>
  3834. <div
  3835. class="corOpen"
  3836. @click="contract(toolIndex)"
  3837. v-if="
  3838. (isCloseList[toolIndex].isCloseBoolean) &&
  3839. isCloseList[toolIndex].isClose == 0
  3840. "
  3841. >
  3842. 折叠
  3843. </div>
  3844. <div
  3845. class="corOpen"
  3846. @click="contract(toolIndex)"
  3847. v-if="isCloseList[toolIndex].isClose == 1"
  3848. >
  3849. 展开
  3850. </div>
  3851. </div>
  3852. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3853. </div>
  3854. <div>
  3855. <div
  3856. :id="'tool-' + toolIndex"
  3857. :style="{
  3858. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3859. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3860. }"
  3861. class="worksDetailBox"
  3862. v-if="
  3863. worksStudent.length &&
  3864. worksStudent[toolIndex].length > 0
  3865. "
  3866. >
  3867. <div
  3868. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3869. :key="wIndex"
  3870. class="isWorksName2"
  3871. @click="
  3872. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3873. "
  3874. >
  3875. {{ w.sName }}
  3876. <img
  3877. class="deleteImg deleteImg2"
  3878. src="../assets/deleteworks.png"
  3879. v-if="
  3880. w.userid == userid || tType == 1 || tType == 4
  3881. "
  3882. @click.stop="deleteWorks(w.wid)"
  3883. alt
  3884. />
  3885. </div>
  3886. <!-- <div class="works" style="
  3887. width: 200px;
  3888. height: 140px;
  3889. border-radius: 10px;
  3890. box-shadow: 0 0 6px 1px #dfdada;
  3891. overflow: hidden;
  3892. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3893. <div class="workImg">
  3894. <img src="../assets/icon/works/noImg.png" @click="
  3895. openTools(
  3896. 4,
  3897. toolIndex,
  3898. taskCount,
  3899. w.works,
  3900. w.sName
  3901. )
  3902. " alt />
  3903. </div>
  3904. <div class="worksName">
  3905. <div>{{ w.sName }}</div>
  3906. <div>{{ w.time }}</div>
  3907. </div>
  3908. </div> -->
  3909. </div>
  3910. </div>
  3911. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3912. 未提交
  3913. </div>
  3914. <div
  3915. class="noWorksS"
  3916. v-if="noWorksS && noWorksS[toolIndex].length"
  3917. >
  3918. <div
  3919. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3920. :key="sIndex"
  3921. class="noWorksName"
  3922. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3923. >
  3924. <el-tooltip effect="dark" :content="s.student" placement="top">
  3925. <span>{{ s.student }}</span>
  3926. </el-tooltip>
  3927. </div>
  3928. </div>
  3929. </div>
  3930. <div
  3931. v-if="
  3932. tType &&
  3933. ((tType == 2 && sIsOpen == true) ||
  3934. tType == 1 ||
  3935. tType == 4) &&
  3936. tool.tool.indexOf(45) != -1 &&
  3937. (tool.testJson.testJson[0].answer ||
  3938. tool.testJson.testJson[0].answer === 0) &&
  3939. checkJson[toolIndex].length
  3940. "
  3941. class="xuan_right_box"
  3942. >
  3943. <div
  3944. class="tool_right_box"
  3945. v-for="(item, index) in tool.testJson.testJson"
  3946. :key="index"
  3947. >
  3948. <div class="right_box_xuan" style="margin-right: 10px">
  3949. <span>正确率</span>
  3950. <span>{{
  3951. (checkJson[toolIndex][index].right
  3952. ? checkJson[toolIndex][index].right
  3953. : 0) + "%"
  3954. }}</span>
  3955. </div>
  3956. <div style="width: calc(100% - 30px);">
  3957. <el-tooltip
  3958. effect="light"
  3959. :content="index + 1 + '、' + item.teststitle"
  3960. placement="top"
  3961. popper-class="text_tooltip"
  3962. >
  3963. <div
  3964. style="
  3965. width: calc(100% - 130px);
  3966. display: block;
  3967. white-space: nowrap;
  3968. overflow: hidden;
  3969. text-overflow: ellipsis;
  3970. word-break: break-word;
  3971. cursor: pointer;
  3972. "
  3973. >
  3974. {{ index + 1 + "、" + item.teststitle }}
  3975. </div>
  3976. </el-tooltip>
  3977. </div>
  3978. </div>
  3979. </div>
  3980. <div
  3981. class="xuan_right_box"
  3982. style="background: unset; padding: 0 10px; width: 91.5%"
  3983. v-if="
  3984. tType &&
  3985. ((tType == 2 && sIsOpen == true) ||
  3986. tType == 1 ||
  3987. tType == 4) &&
  3988. tool.tool.indexOf(45) != -1
  3989. "
  3990. >
  3991. <AskStatic2
  3992. v-if="
  3993. worksStudent.length &&
  3994. worksStudent[toolIndex].length > 0
  3995. "
  3996. :askJSON="tool"
  3997. :checkJson="checkJson[toolIndex]"
  3998. ></AskStatic2>
  3999. </div>
  4000. <div
  4001. v-if="
  4002. tType &&
  4003. ((tType == 2 && sIsOpen == true) ||
  4004. tType == 1 ||
  4005. tType == 4) &&
  4006. tool.tool.indexOf(45) != -1
  4007. "
  4008. class="worksBox"
  4009. >
  4010. <div
  4011. class="zuoyeYulan"
  4012. v-if="
  4013. worksStudent.length &&
  4014. worksStudent[toolIndex].length > 0
  4015. "
  4016. >
  4017. <div class="worksTop">
  4018. <div>作业预览</div>
  4019. <div
  4020. class="corOpen"
  4021. @click="contract(toolIndex)"
  4022. v-if="
  4023. (isCloseList[toolIndex].isCloseBoolean) &&
  4024. isCloseList[toolIndex].isClose == 0
  4025. "
  4026. >
  4027. 折叠
  4028. </div>
  4029. <div
  4030. class="corOpen"
  4031. @click="contract(toolIndex)"
  4032. v-if="isCloseList[toolIndex].isClose == 1"
  4033. >
  4034. 展开
  4035. </div>
  4036. </div>
  4037. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4038. </div>
  4039. <div>
  4040. <div
  4041. :id="'tool-' + toolIndex"
  4042. :style="{
  4043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4045. }"
  4046. class="worksDetailBox"
  4047. v-if="
  4048. worksStudent.length &&
  4049. worksStudent[toolIndex].length > 0
  4050. "
  4051. >
  4052. <div
  4053. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4054. :key="wIndex"
  4055. class="isWorksName2"
  4056. @click="
  4057. openTools(
  4058. 45,
  4059. toolIndex,
  4060. taskCount,
  4061. w.works,
  4062. w.sName
  4063. )
  4064. "
  4065. >
  4066. {{ w.sName }}
  4067. <img
  4068. class="deleteImg deleteImg2"
  4069. src="../assets/deleteworks.png"
  4070. v-if="
  4071. w.userid == userid || tType == 1 || tType == 4
  4072. "
  4073. @click.stop="deleteWorks(w.wid)"
  4074. alt
  4075. />
  4076. </div>
  4077. </div>
  4078. </div>
  4079. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4080. 未提交
  4081. </div>
  4082. <div
  4083. class="noWorksS"
  4084. v-if="noWorksS && noWorksS[toolIndex].length"
  4085. >
  4086. <div
  4087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4088. :key="sIndex"
  4089. class="noWorksName"
  4090. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4091. >
  4092. <el-tooltip effect="dark" :content="s.student" placement="top">
  4093. <span>{{ s.student }}</span>
  4094. </el-tooltip>
  4095. </div>
  4096. </div>
  4097. </div>
  4098. <div
  4099. v-if="
  4100. tType &&
  4101. ((tType == 2 && sIsOpen == true) ||
  4102. tType == 1 ||
  4103. tType == 4) &&
  4104. tool.tool.indexOf(69) != -1
  4105. "
  4106. class="worksBox"
  4107. >
  4108. <div
  4109. class="zuoyeYulan"
  4110. v-if="
  4111. worksStudent.length &&
  4112. worksStudent[toolIndex].length > 0
  4113. "
  4114. >
  4115. <div class="worksTop">
  4116. <div>作业预览</div>
  4117. <div
  4118. class="corOpen"
  4119. @click="contract(toolIndex)"
  4120. v-if="
  4121. (isCloseList[toolIndex].isCloseBoolean) &&
  4122. isCloseList[toolIndex].isClose == 0
  4123. "
  4124. >
  4125. 折叠
  4126. </div>
  4127. <div
  4128. class="corOpen"
  4129. @click="contract(toolIndex)"
  4130. v-if="isCloseList[toolIndex].isClose == 1"
  4131. >
  4132. 展开
  4133. </div>
  4134. </div>
  4135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4136. </div>
  4137. <div>
  4138. <div
  4139. :id="'tool-' + toolIndex"
  4140. :style="{
  4141. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4142. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4143. }"
  4144. class="worksDetailBox"
  4145. v-if="
  4146. worksStudent.length &&
  4147. worksStudent[toolIndex].length > 0
  4148. "
  4149. >
  4150. <div
  4151. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4152. :key="wIndex"
  4153. class="isWorksName2"
  4154. style="width: 160px;height: 65px;line-height: 65px;"
  4155. @click="
  4156. openTools(
  4157. 69,
  4158. toolIndex,
  4159. taskCount,
  4160. w.works,
  4161. w.sName,
  4162. w.wid
  4163. )
  4164. "
  4165. >
  4166. {{ w.sName }}
  4167. <img
  4168. class="deleteImg1"
  4169. src="../assets/evaEnglish.png"
  4170. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4171. alt
  4172. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4173. />
  4174. <img
  4175. class="deleteImg deleteImg2"
  4176. src="../assets/deleteworks.png"
  4177. v-if="
  4178. w.userid == userid || tType == 1 || tType == 4
  4179. "
  4180. @click.stop="deleteWorks(w.wid)"
  4181. alt
  4182. />
  4183. </div>
  4184. </div>
  4185. </div>
  4186. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4187. 未提交
  4188. </div>
  4189. <div
  4190. class="noWorksS"
  4191. v-if="noWorksS && noWorksS[toolIndex].length"
  4192. >
  4193. <div
  4194. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4195. :key="sIndex"
  4196. class="noWorksName"
  4197. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4198. >
  4199. <el-tooltip effect="dark" :content="s.student" placement="top">
  4200. <span>{{ s.student }}</span>
  4201. </el-tooltip>
  4202. </div>
  4203. </div>
  4204. </div>
  4205. <div
  4206. v-if="
  4207. tType &&
  4208. ((tType == 2 && sIsOpen == true) ||
  4209. tType == 1 ||
  4210. tType == 4) &&
  4211. tool.tool.indexOf(15) != -1
  4212. "
  4213. class="worksBox"
  4214. >
  4215. <div
  4216. class="zuoyeYulan"
  4217. v-if="
  4218. (worksStudent.length &&
  4219. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4220. "
  4221. >
  4222. <div class="worksTop">
  4223. <div>作业预览</div>
  4224. <div
  4225. class="corOpen"
  4226. @click="contract(toolIndex)"
  4227. v-if="
  4228. (isCloseList[toolIndex].isCloseBoolean) &&
  4229. isCloseList[toolIndex].isClose == 0
  4230. "
  4231. >
  4232. 折叠
  4233. </div>
  4234. <div
  4235. class="corOpen"
  4236. @click="contract(toolIndex)"
  4237. v-if="isCloseList[toolIndex].isClose == 1"
  4238. >
  4239. 展开
  4240. </div>
  4241. </div>
  4242. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4243. </div>
  4244. <div
  4245. class="group_workBox"
  4246. v-for="(g, gindex) in courseGroup.group"
  4247. :key="gindex"
  4248. >
  4249. <div class="group_box">
  4250. <div class="group_title">
  4251. <el-tooltip
  4252. class="item"
  4253. effect="light"
  4254. :content="g.name"
  4255. placement="top"
  4256. >
  4257. <div class="group_name">{{ g.name }}</div>
  4258. </el-tooltip>
  4259. </div>
  4260. <div
  4261. class="group_work"
  4262. v-if="
  4263. g.works &&
  4264. g.works.length &&
  4265. g.works[toolIndex].length
  4266. "
  4267. >
  4268. <div
  4269. class="works"
  4270. v-for="(w, wIndex) in g.works[toolIndex]"
  4271. :key="wIndex"
  4272. >
  4273. <div
  4274. class="workImg"
  4275. style="
  4276. border-radius: 15px;
  4277. box-shadow: 0px 0px 5px 5px #eee;
  4278. "
  4279. >
  4280. <div
  4281. class="answerBg"
  4282. style="border-radius: 15px 15px 0 0"
  4283. @click="
  4284. commentOther(w, toolIndex, wIndex, null, g.id)
  4285. "
  4286. >
  4287. <div class="answerContent">
  4288. {{ JSON.parse(w.works)[0].answer }}
  4289. </div>
  4290. <div
  4291. class="answerScore"
  4292. v-if="w.score"
  4293. @click.stop="openScore(w)"
  4294. :class="{
  4295. rightW:
  4296. w.userid == userid ||
  4297. tType == 1 ||
  4298. tType == 4,
  4299. }"
  4300. >
  4301. {{ JSON.parse(w.score).wScore }}分
  4302. </div>
  4303. <div
  4304. class="answerScore"
  4305. @click.stop="openScore(w)"
  4306. v-else-if="courseDetail.userid == userid"
  4307. :class="{
  4308. rightW:
  4309. w.userid == userid ||
  4310. tType == 1 ||
  4311. tType == 4,
  4312. }"
  4313. >
  4314. 评分
  4315. </div>
  4316. <img
  4317. class="deleteImg"
  4318. src="../assets/deleteworks.png"
  4319. v-if="
  4320. w.userid == userid ||
  4321. tType == 1 ||
  4322. tType == 4
  4323. "
  4324. @click.stop="deleteWorks(w.wid)"
  4325. alt
  4326. />
  4327. </div>
  4328. <div class="comment">
  4329. <div class="worksName">
  4330. <div>{{ w.sName }}</div>
  4331. </div>
  4332. <div class="commentList">
  4333. <div
  4334. class="commentImg"
  4335. @click="
  4336. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4337. "
  4338. >
  4339. <img
  4340. :src="w.isLikes == true ? likes : noLikes"
  4341. alt=""
  4342. />
  4343. </div>
  4344. <div>{{ w.likesCount }}</div>
  4345. </div>
  4346. <div
  4347. class="commentList"
  4348. style="margin-right: 15px"
  4349. >
  4350. <div
  4351. class="commentImg"
  4352. @click="
  4353. commentOther(
  4354. w,
  4355. toolIndex,
  4356. wIndex,
  4357. null,
  4358. g.id
  4359. )
  4360. "
  4361. >
  4362. <img
  4363. src="../assets/icon/comment/comment.png"
  4364. alt=""
  4365. />
  4366. </div>
  4367. <div>{{ w.commentCount }}</div>
  4368. </div>
  4369. </div>
  4370. </div>
  4371. </div>
  4372. </div>
  4373. <div class="group_work" v-else>暂无提交作业</div>
  4374. </div>
  4375. </div>
  4376. <div
  4377. :id="'tool-' + toolIndex"
  4378. :style="{
  4379. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4380. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4381. }"
  4382. class="worksDetailBox"
  4383. v-if="
  4384. worksStudent.length &&
  4385. worksStudent[toolIndex].length > 0
  4386. "
  4387. >
  4388. <div
  4389. class="works"
  4390. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4391. :key="wIndex"
  4392. >
  4393. <div
  4394. class="workImg"
  4395. style="
  4396. border-radius: 15px;
  4397. box-shadow: 0px 0px 5px 5px #eee;
  4398. "
  4399. >
  4400. <!-- <img
  4401. src="../assets/icon/works/noImg.png"
  4402. @click="openTools(15, toolIndex, taskCount, w.works)"
  4403. alt=""
  4404. />-->
  4405. <div
  4406. class="answerBg"
  4407. style="border-radius: 15px 15px 0 0"
  4408. @click="commentOther(w, toolIndex, wIndex)"
  4409. >
  4410. <!-- <div>{{ w.sName }}</div> -->
  4411. <div class="answerContent">
  4412. {{ JSON.parse(w.works)[0].answer }}
  4413. </div>
  4414. <div
  4415. class="answerScore"
  4416. v-if="w.score"
  4417. @click.stop="openScore(w)"
  4418. :class="{
  4419. rightW:
  4420. w.userid == userid ||
  4421. tType == 1 ||
  4422. tType == 4,
  4423. }"
  4424. >
  4425. {{ JSON.parse(w.score).wScore }}分
  4426. </div>
  4427. <div
  4428. class="answerScore"
  4429. @click.stop="openScore(w)"
  4430. v-else-if="courseDetail.userid == userid"
  4431. :class="{
  4432. rightW:
  4433. w.userid == userid ||
  4434. tType == 1 ||
  4435. tType == 4,
  4436. }"
  4437. >
  4438. 评分
  4439. </div>
  4440. <img
  4441. class="deleteImg"
  4442. src="../assets/deleteworks.png"
  4443. v-if="
  4444. w.userid == userid || tType == 1 || tType == 4
  4445. "
  4446. @click.stop="deleteWorks(w.wid)"
  4447. alt
  4448. />
  4449. </div>
  4450. <div class="comment">
  4451. <div class="worksName">
  4452. <div>{{ w.sName }}</div>
  4453. </div>
  4454. <div class="commentList">
  4455. <div
  4456. class="commentImg"
  4457. @click="
  4458. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4459. "
  4460. >
  4461. <img
  4462. :src="w.isLikes == true ? likes : noLikes"
  4463. alt=""
  4464. />
  4465. </div>
  4466. <div>{{ w.likesCount }}</div>
  4467. </div>
  4468. <div class="commentList" style="margin-right: 15px">
  4469. <div
  4470. class="commentImg"
  4471. @click="commentOther(w, toolIndex, wIndex)"
  4472. >
  4473. <img
  4474. src="../assets/icon/comment/comment.png"
  4475. alt=""
  4476. />
  4477. </div>
  4478. <div>{{ w.commentCount }}</div>
  4479. </div>
  4480. </div>
  4481. </div>
  4482. </div>
  4483. </div>
  4484. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4485. 未提交
  4486. </div>
  4487. <div
  4488. class="noWorksS"
  4489. v-if="noWorksS && noWorksS[toolIndex].length"
  4490. >
  4491. <div
  4492. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4493. :key="sIndex"
  4494. class="noWorksName"
  4495. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4496. >
  4497. <el-tooltip effect="dark" :content="s.student" placement="top">
  4498. <span>{{ s.student }}</span>
  4499. </el-tooltip>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. <div
  4504. v-if="
  4505. tType &&
  4506. ((tType == 2 && sIsOpen == true) ||
  4507. tType == 1 ||
  4508. tType == 4) &&
  4509. tool.tool.indexOf(1) != -1
  4510. "
  4511. class="worksBox"
  4512. >
  4513. <div
  4514. class="zuoyeYulan"
  4515. v-if="
  4516. (worksStudent.length &&
  4517. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4518. "
  4519. >
  4520. <div class="worksTop">
  4521. <div>作业预览</div>
  4522. <div
  4523. class="corOpen"
  4524. @click="contract(toolIndex)"
  4525. v-if="
  4526. (isCloseList[toolIndex].isCloseBoolean) &&
  4527. isCloseList[toolIndex].isClose == 0
  4528. "
  4529. >
  4530. 折叠
  4531. </div>
  4532. <div
  4533. class="corOpen"
  4534. @click="contract(toolIndex)"
  4535. v-if="isCloseList[toolIndex].isClose == 1"
  4536. >
  4537. 展开
  4538. </div>
  4539. </div>
  4540. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4541. </div>
  4542. <div
  4543. class="group_workBox"
  4544. v-for="(g, gindex) in courseGroup.group"
  4545. :key="gindex"
  4546. >
  4547. <div class="group_box">
  4548. <div class="group_title">
  4549. <el-tooltip
  4550. class="item"
  4551. effect="light"
  4552. :content="g.name"
  4553. placement="top"
  4554. >
  4555. <div class="group_name">{{ g.name }}</div>
  4556. </el-tooltip>
  4557. </div>
  4558. <div
  4559. class="group_work"
  4560. v-if="
  4561. g.works &&
  4562. g.works.length &&
  4563. g.works[toolIndex].length
  4564. "
  4565. >
  4566. <div
  4567. class="works"
  4568. style="
  4569. width: 200px;
  4570. height: 140px;
  4571. margin: 10px 10px 10px 0;
  4572. border-radius: 15px;
  4573. box-shadow: 0 0 6px 1px #dfdada;
  4574. "
  4575. v-for="(w, wIndex) in g.works[toolIndex]"
  4576. :key="wIndex"
  4577. :class="w.type == 1 ? 'isTypeOne' : ''"
  4578. >
  4579. <div class="workImg">
  4580. <img
  4581. :src="w.works"
  4582. @click="previewImg(w.works,w)"
  4583. alt
  4584. />
  4585. <div
  4586. class="answerScore"
  4587. v-if="w.score"
  4588. @click.stop="openScore(w)"
  4589. :class="{
  4590. rightW:
  4591. w.userid == userid ||
  4592. tType == 1 ||
  4593. tType == 4,
  4594. }"
  4595. >
  4596. {{ JSON.parse(w.score).wScore }}分
  4597. </div>
  4598. <div
  4599. class="answerScore"
  4600. @click.stop="openScore(w)"
  4601. v-else-if="courseDetail.userid == userid"
  4602. :class="{
  4603. rightW:
  4604. w.userid == userid ||
  4605. tType == 1 ||
  4606. tType == 4,
  4607. }"
  4608. >
  4609. 评分
  4610. </div>
  4611. <img
  4612. class="deleteImg"
  4613. src="../assets/deleteworks.png"
  4614. v-if="
  4615. w.userid == userid || tType == 1 || tType == 4
  4616. "
  4617. @click.stop="deleteWorks(w.wid)"
  4618. alt
  4619. />
  4620. </div>
  4621. <div class="comment" style="min-width: 200px">
  4622. <div class="worksName">
  4623. <div>{{ w.sName }}</div>
  4624. </div>
  4625. <div class="commentList">
  4626. <div class="commentList">
  4627. <div
  4628. class="commentImg"
  4629. @click="
  4630. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4631. "
  4632. >
  4633. <img
  4634. :src="w.isLikes == true ? likes : noLikes"
  4635. alt=""
  4636. />
  4637. </div>
  4638. <div>{{ w.likesCount }}</div>
  4639. </div>
  4640. <div
  4641. class="commentList"
  4642. style="margin-right: 15px"
  4643. >
  4644. <div
  4645. class="commentImg"
  4646. @click="
  4647. commentOther(
  4648. w,
  4649. toolIndex,
  4650. wIndex,
  4651. null,
  4652. g.id
  4653. )
  4654. "
  4655. >
  4656. <img
  4657. src="../assets/icon/comment/comment.png"
  4658. alt=""
  4659. />
  4660. </div>
  4661. <div>{{ w.commentCount }}</div>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. </div>
  4666. </div>
  4667. <div class="group_work" v-else>暂无提交作业</div>
  4668. </div>
  4669. </div>
  4670. <div
  4671. :id="'tool-' + toolIndex"
  4672. :style="{
  4673. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4674. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4675. }"
  4676. class="worksDetailBox"
  4677. v-if="
  4678. worksStudent.length &&
  4679. worksStudent[toolIndex].length > 0
  4680. "
  4681. >
  4682. <div
  4683. class="works"
  4684. style="
  4685. width: 200px;
  4686. height: 140px;
  4687. margin: 10px 10px 10px 0;
  4688. border-radius: 15px;
  4689. box-shadow: 0 0 6px 1px #dfdada;
  4690. "
  4691. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4692. :key="wIndex"
  4693. >
  4694. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4695. <div class="workImg">
  4696. <img
  4697. :src="w.works"
  4698. @click="previewImg(w.works,w)"
  4699. alt
  4700. />
  4701. <div
  4702. class="answerScore"
  4703. v-if="w.score"
  4704. @click.stop="openScore(w)"
  4705. :class="{
  4706. rightW:
  4707. w.userid == userid || tType == 1 || tType == 4,
  4708. }"
  4709. >
  4710. {{ JSON.parse(w.score).wScore }}分
  4711. </div>
  4712. <div
  4713. class="answerScore"
  4714. @click.stop="openScore(w)"
  4715. v-else-if="courseDetail.userid == userid"
  4716. :class="{
  4717. rightW:
  4718. w.userid == userid || tType == 1 || tType == 4,
  4719. }"
  4720. >
  4721. 评分
  4722. </div>
  4723. <img
  4724. class="deleteImg"
  4725. src="../assets/deleteworks.png"
  4726. v-if="
  4727. w.userid == userid || tType == 1 || tType == 4
  4728. "
  4729. @click.stop="deleteWorks(w.wid)"
  4730. alt
  4731. />
  4732. </div>
  4733. <div class="comment" style="min-width: 200px">
  4734. <div class="worksName">
  4735. <div>{{ w.sName }}</div>
  4736. </div>
  4737. <div class="commentList">
  4738. <div class="commentList">
  4739. <div
  4740. class="commentImg"
  4741. @click="
  4742. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4743. "
  4744. >
  4745. <img
  4746. :src="w.isLikes == true ? likes : noLikes"
  4747. alt=""
  4748. />
  4749. </div>
  4750. <div>{{ w.likesCount }}</div>
  4751. </div>
  4752. <div class="commentList" style="margin-right: 15px">
  4753. <div
  4754. class="commentImg"
  4755. @click="commentOther(w, toolIndex, wIndex)"
  4756. >
  4757. <img
  4758. src="../assets/icon/comment/comment.png"
  4759. alt=""
  4760. />
  4761. </div>
  4762. <div>{{ w.commentCount }}</div>
  4763. </div>
  4764. </div>
  4765. </div>
  4766. </div>
  4767. </div>
  4768. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4769. 未提交
  4770. </div>
  4771. <div
  4772. class="noWorksS"
  4773. v-if="noWorksS && noWorksS[toolIndex].length"
  4774. >
  4775. <div
  4776. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4777. :key="sIndex"
  4778. class="noWorksName"
  4779. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4780. >
  4781. <el-tooltip effect="dark" :content="s.student" placement="top">
  4782. <span>{{ s.student }}</span>
  4783. </el-tooltip>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. <div
  4788. v-if="
  4789. tType &&
  4790. ((tType == 2 && sIsOpen == true) ||
  4791. tType == 1 ||
  4792. tType == 4) &&
  4793. tool.tool.indexOf(3) != -1
  4794. "
  4795. class="worksBox"
  4796. >
  4797. <div
  4798. class="zuoyeYulan"
  4799. v-if="
  4800. (worksStudent.length &&
  4801. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4802. "
  4803. >
  4804. <div class="worksTop">
  4805. <div>作业预览</div>
  4806. <div
  4807. class="corOpen"
  4808. @click="contract(toolIndex)"
  4809. v-if="
  4810. (isCloseList[toolIndex].isCloseBoolean) &&
  4811. isCloseList[toolIndex].isClose == 0
  4812. "
  4813. >
  4814. 折叠
  4815. </div>
  4816. <div
  4817. class="corOpen"
  4818. @click="contract(toolIndex)"
  4819. v-if="isCloseList[toolIndex].isClose == 1"
  4820. >
  4821. 展开
  4822. </div>
  4823. </div>
  4824. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4825. </div>
  4826. <div
  4827. class="group_workBox"
  4828. v-for="(g, gindex) in courseGroup.group"
  4829. :key="gindex"
  4830. >
  4831. <div class="group_box">
  4832. <div class="group_title">
  4833. <el-tooltip
  4834. class="item"
  4835. effect="light"
  4836. :content="g.name"
  4837. placement="top"
  4838. >
  4839. <div class="group_name">{{ g.name }}</div>
  4840. </el-tooltip>
  4841. </div>
  4842. <div
  4843. class="group_work"
  4844. v-if="
  4845. g.works &&
  4846. g.works.length &&
  4847. g.works[toolIndex].length
  4848. "
  4849. >
  4850. <div
  4851. class="works"
  4852. style="
  4853. width: 200px;
  4854. height: 140px;
  4855. margin: 10px 10px 10px 0;
  4856. border-radius: 15px;
  4857. box-shadow: 0 0 6px 1px #dfdada;
  4858. "
  4859. v-for="(w, wIndex) in g.works[toolIndex]"
  4860. :key="wIndex"
  4861. :class="w.type == 1 ? 'isTypeOne' : ''"
  4862. >
  4863. <div class="workImg">
  4864. <img
  4865. :src="w.works"
  4866. @click="previewImg(w.works,w)"
  4867. alt
  4868. />
  4869. <div
  4870. class="answerScore"
  4871. v-if="w.score"
  4872. @click.stop="openScore(w)"
  4873. :class="{
  4874. rightW:
  4875. w.userid == userid ||
  4876. tType == 1 ||
  4877. tType == 4,
  4878. }"
  4879. >
  4880. {{ JSON.parse(w.score).wScore }}分
  4881. </div>
  4882. <div
  4883. class="answerScore"
  4884. @click.stop="openScore(w)"
  4885. v-else-if="courseDetail.userid == userid"
  4886. :class="{
  4887. rightW:
  4888. w.userid == userid ||
  4889. tType == 1 ||
  4890. tType == 4,
  4891. }"
  4892. >
  4893. 评分
  4894. </div>
  4895. <img
  4896. class="deleteImg"
  4897. src="../assets/deleteworks.png"
  4898. v-if="
  4899. w.userid == userid || tType == 1 || tType == 4
  4900. "
  4901. @click.stop="deleteWorks(w.wid)"
  4902. alt
  4903. />
  4904. </div>
  4905. <div class="comment" style="min-width: 200px">
  4906. <div class="worksName">
  4907. <div>{{ w.sName }}</div>
  4908. </div>
  4909. <div class="commentList">
  4910. <div class="commentList">
  4911. <div
  4912. class="commentImg"
  4913. @click="
  4914. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4915. "
  4916. >
  4917. <img
  4918. :src="w.isLikes == true ? likes : noLikes"
  4919. alt=""
  4920. />
  4921. </div>
  4922. <div>{{ w.likesCount }}</div>
  4923. </div>
  4924. <div
  4925. class="commentList"
  4926. style="margin-right: 15px"
  4927. >
  4928. <div
  4929. class="commentImg"
  4930. @click="
  4931. commentOther(
  4932. w,
  4933. toolIndex,
  4934. wIndex,
  4935. null,
  4936. g.id
  4937. )
  4938. "
  4939. >
  4940. <img
  4941. src="../assets/icon/comment/comment.png"
  4942. alt=""
  4943. />
  4944. </div>
  4945. <div>{{ w.commentCount }}</div>
  4946. </div>
  4947. </div>
  4948. </div>
  4949. </div>
  4950. </div>
  4951. <div class="group_work" v-else>暂无提交作业</div>
  4952. </div>
  4953. </div>
  4954. <div
  4955. :id="'tool-' + toolIndex"
  4956. :style="{
  4957. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4958. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4959. }"
  4960. class="worksDetailBox"
  4961. v-if="
  4962. worksStudent.length &&
  4963. worksStudent[toolIndex].length > 0
  4964. "
  4965. >
  4966. <div
  4967. class="works"
  4968. style="
  4969. width: 200px;
  4970. height: 140px;
  4971. margin: 10px 10px 10px 0;
  4972. border-radius: 15px;
  4973. box-shadow: 0 0 6px 1px #dfdada;
  4974. "
  4975. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4976. :key="wIndex"
  4977. >
  4978. <!-- @click="previewImg(w.works)" -->
  4979. <div class="workImg">
  4980. <img
  4981. :src="w.works"
  4982. @click="previewImg(w.works,w)"
  4983. alt
  4984. />
  4985. <div
  4986. class="answerScore"
  4987. v-if="w.score"
  4988. @click.stop="openScore(w)"
  4989. :class="{
  4990. rightW:
  4991. w.userid == userid || tType == 1 || tType == 4,
  4992. }"
  4993. >
  4994. {{ JSON.parse(w.score).wScore }}分
  4995. </div>
  4996. <div
  4997. class="answerScore"
  4998. @click.stop="openScore(w)"
  4999. v-else-if="courseDetail.userid == userid"
  5000. :class="{
  5001. rightW:
  5002. w.userid == userid || tType == 1 || tType == 4,
  5003. }"
  5004. >
  5005. 评分
  5006. </div>
  5007. <img
  5008. class="deleteImg"
  5009. src="../assets/deleteworks.png"
  5010. v-if="
  5011. w.userid == userid || tType == 1 || tType == 4
  5012. "
  5013. @click.stop="deleteWorks(w.wid)"
  5014. alt
  5015. />
  5016. </div>
  5017. <div class="comment" style="min-width: 200px">
  5018. <div class="worksName">
  5019. <div>{{ w.sName }}</div>
  5020. </div>
  5021. <div class="commentList">
  5022. <div class="commentList">
  5023. <div
  5024. class="commentImg"
  5025. @click="
  5026. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5027. "
  5028. >
  5029. <img
  5030. :src="w.isLikes == true ? likes : noLikes"
  5031. alt=""
  5032. />
  5033. </div>
  5034. <div>{{ w.likesCount }}</div>
  5035. </div>
  5036. <div class="commentList" style="margin-right: 15px">
  5037. <div
  5038. class="commentImg"
  5039. @click="commentOther(w, toolIndex, wIndex)"
  5040. >
  5041. <img
  5042. src="../assets/icon/comment/comment.png"
  5043. alt=""
  5044. />
  5045. </div>
  5046. <div>{{ w.commentCount }}</div>
  5047. </div>
  5048. </div>
  5049. </div>
  5050. </div>
  5051. </div>
  5052. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5053. 未提交
  5054. </div>
  5055. <div
  5056. class="noWorksS"
  5057. v-if="noWorksS && noWorksS[toolIndex].length"
  5058. >
  5059. <div
  5060. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5061. :key="sIndex"
  5062. class="noWorksName"
  5063. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5064. >
  5065. <el-tooltip effect="dark" :content="s.student" placement="top">
  5066. <span>{{ s.student }}</span>
  5067. </el-tooltip>
  5068. </div>
  5069. </div>
  5070. </div>
  5071. <div
  5072. v-if="
  5073. tType &&
  5074. ((tType == 2 && sIsOpen == true) ||
  5075. tType == 1 ||
  5076. tType == 4) &&
  5077. tool.tool.indexOf(6) != -1
  5078. "
  5079. class="worksBox"
  5080. >
  5081. <div
  5082. class="zuoyeYulan"
  5083. v-if="
  5084. (worksStudent.length &&
  5085. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5086. "
  5087. >
  5088. <div class="worksTop">
  5089. <div>作业预览</div>
  5090. <div
  5091. class="corOpen"
  5092. @click="contract(toolIndex)"
  5093. v-if="
  5094. (isCloseList[toolIndex].isCloseBoolean) &&
  5095. isCloseList[toolIndex].isClose == 0
  5096. "
  5097. >
  5098. 折叠
  5099. </div>
  5100. <div
  5101. class="corOpen"
  5102. @click="contract(toolIndex)"
  5103. v-if="isCloseList[toolIndex].isClose == 1"
  5104. >
  5105. 展开
  5106. </div>
  5107. </div>
  5108. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5109. </div>
  5110. <div
  5111. class="group_workBox"
  5112. v-for="(g, gindex) in courseGroup.group"
  5113. :key="gindex"
  5114. >
  5115. <div class="group_box">
  5116. <div class="group_title">
  5117. <el-tooltip
  5118. class="item"
  5119. effect="light"
  5120. :content="g.name"
  5121. placement="top"
  5122. >
  5123. <div class="group_name">{{ g.name }}</div>
  5124. </el-tooltip>
  5125. </div>
  5126. <div
  5127. class="group_work"
  5128. v-if="
  5129. g.works &&
  5130. g.works.length &&
  5131. g.works[toolIndex].length
  5132. "
  5133. >
  5134. <div
  5135. class="works"
  5136. style="
  5137. width: 200px;
  5138. height: 140px;
  5139. margin: 10px 10px 10px 0;
  5140. border-radius: 15px;
  5141. box-shadow: 0 0 6px 1px #dfdada;
  5142. "
  5143. v-for="(w, wIndex) in g.works[toolIndex]"
  5144. :key="wIndex"
  5145. :class="w.type == 1 ? 'isTypeOne' : ''"
  5146. >
  5147. <div class="workImg">
  5148. <img
  5149. :src="w.works"
  5150. @click="previewImg(w.works,w)"
  5151. alt
  5152. />
  5153. <div
  5154. class="answerScore"
  5155. v-if="w.score"
  5156. @click.stop="openScore(w)"
  5157. :class="{
  5158. rightW:
  5159. w.userid == userid ||
  5160. tType == 1 ||
  5161. tType == 4,
  5162. }"
  5163. >
  5164. {{ JSON.parse(w.score).wScore }}分
  5165. </div>
  5166. <div
  5167. class="answerScore"
  5168. @click.stop="openScore(w)"
  5169. v-else-if="courseDetail.userid == userid"
  5170. :class="{
  5171. rightW:
  5172. w.userid == userid ||
  5173. tType == 1 ||
  5174. tType == 4,
  5175. }"
  5176. >
  5177. 评分
  5178. </div>
  5179. <img
  5180. class="deleteImg"
  5181. src="../assets/deleteworks.png"
  5182. v-if="
  5183. w.userid == userid || tType == 1 || tType == 4
  5184. "
  5185. @click.stop="deleteWorks(w.wid)"
  5186. alt
  5187. />
  5188. </div>
  5189. <div class="comment" style="min-width: 200px">
  5190. <div class="worksName">
  5191. <div>{{ w.sName }}</div>
  5192. </div>
  5193. <div class="commentList">
  5194. <div class="commentList">
  5195. <div
  5196. class="commentImg"
  5197. @click="
  5198. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5199. "
  5200. >
  5201. <img
  5202. :src="w.isLikes == true ? likes : noLikes"
  5203. alt=""
  5204. />
  5205. </div>
  5206. <div>{{ w.likesCount }}</div>
  5207. </div>
  5208. <div
  5209. class="commentList"
  5210. style="margin-right: 15px"
  5211. >
  5212. <div
  5213. class="commentImg"
  5214. @click="
  5215. commentOther(
  5216. w,
  5217. toolIndex,
  5218. wIndex,
  5219. null,
  5220. g.id
  5221. )
  5222. "
  5223. >
  5224. <img
  5225. src="../assets/icon/comment/comment.png"
  5226. alt=""
  5227. />
  5228. </div>
  5229. <div>{{ w.commentCount }}</div>
  5230. </div>
  5231. </div>
  5232. </div>
  5233. </div>
  5234. </div>
  5235. <div class="group_work" v-else>暂无提交作业</div>
  5236. </div>
  5237. </div>
  5238. <div
  5239. :id="'tool-' + toolIndex"
  5240. :style="{
  5241. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5242. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5243. }"
  5244. class="worksDetailBox"
  5245. v-if="
  5246. worksStudent.length &&
  5247. worksStudent[toolIndex].length > 0
  5248. "
  5249. >
  5250. <div
  5251. class="works"
  5252. style="
  5253. width: 200px;
  5254. height: 140px;
  5255. margin: 10px 10px 10px 0;
  5256. border-radius: 15px;
  5257. box-shadow: 0 0 6px 1px #dfdada;
  5258. "
  5259. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5260. :key="wIndex"
  5261. >
  5262. <!-- @click="previewImg(w.works)" -->
  5263. <div class="workImg">
  5264. <img
  5265. :src="w.works"
  5266. @click="previewImg(w.works,w)"
  5267. alt
  5268. />
  5269. <div
  5270. class="answerScore"
  5271. v-if="w.score"
  5272. @click.stop="openScore(w)"
  5273. :class="{
  5274. rightW:
  5275. w.userid == userid || tType == 1 || tType == 4,
  5276. }"
  5277. >
  5278. {{ JSON.parse(w.score).wScore }}分
  5279. </div>
  5280. <div
  5281. class="answerScore"
  5282. @click.stop="openScore(w)"
  5283. v-else-if="courseDetail.userid == userid"
  5284. :class="{
  5285. rightW:
  5286. w.userid == userid || tType == 1 || tType == 4,
  5287. }"
  5288. >
  5289. 评分
  5290. </div>
  5291. <img
  5292. class="deleteImg"
  5293. src="../assets/deleteworks.png"
  5294. v-if="
  5295. w.userid == userid || tType == 1 || tType == 4
  5296. "
  5297. @click.stop="deleteWorks(w.wid)"
  5298. alt
  5299. />
  5300. </div>
  5301. <div class="comment" style="min-width: 200px">
  5302. <div class="worksName">
  5303. <div>{{ w.sName }}</div>
  5304. </div>
  5305. <div class="commentList">
  5306. <div class="commentList">
  5307. <div
  5308. class="commentImg"
  5309. @click="
  5310. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5311. "
  5312. >
  5313. <img
  5314. :src="w.isLikes == true ? likes : noLikes"
  5315. alt=""
  5316. />
  5317. </div>
  5318. <div>{{ w.likesCount }}</div>
  5319. </div>
  5320. <div class="commentList" style="margin-right: 15px">
  5321. <div
  5322. class="commentImg"
  5323. @click="commentOther(w, toolIndex, wIndex)"
  5324. >
  5325. <img
  5326. src="../assets/icon/comment/comment.png"
  5327. alt=""
  5328. />
  5329. </div>
  5330. <div>{{ w.commentCount }}</div>
  5331. </div>
  5332. </div>
  5333. </div>
  5334. </div>
  5335. </div>
  5336. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5337. 未提交
  5338. </div>
  5339. <div
  5340. class="noWorksS"
  5341. v-if="noWorksS && noWorksS[toolIndex].length"
  5342. >
  5343. <div
  5344. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5345. :key="sIndex"
  5346. class="noWorksName"
  5347. >
  5348. <el-tooltip effect="dark" :content="s.student" placement="top">
  5349. <span>{{ s.student }}</span>
  5350. </el-tooltip>
  5351. </div>
  5352. </div>
  5353. </div>
  5354. <div
  5355. v-if="
  5356. tType &&
  5357. ((tType == 2 && sIsOpen == true) ||
  5358. tType == 1 ||
  5359. tType == 4) &&
  5360. tool.tool.indexOf(7) != -1
  5361. "
  5362. class="worksBox"
  5363. >
  5364. <div
  5365. class="zuoyeYulan"
  5366. v-if="
  5367. (worksStudent.length &&
  5368. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5369. "
  5370. >
  5371. <div class="worksTop">
  5372. <div>作业预览</div>
  5373. <div
  5374. class="corOpen"
  5375. @click="contract(toolIndex)"
  5376. v-if="
  5377. (isCloseList[toolIndex].isCloseBoolean) &&
  5378. isCloseList[toolIndex].isClose == 0
  5379. "
  5380. >
  5381. 折叠
  5382. </div>
  5383. <div
  5384. class="corOpen"
  5385. @click="contract(toolIndex)"
  5386. v-if="isCloseList[toolIndex].isClose == 1"
  5387. >
  5388. 展开
  5389. </div>
  5390. </div>
  5391. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5392. </div>
  5393. <div
  5394. class="group_workBox"
  5395. v-for="(g, gindex) in courseGroup.group"
  5396. :key="gindex"
  5397. >
  5398. <div class="group_box">
  5399. <div class="group_title">
  5400. <el-tooltip
  5401. class="item"
  5402. effect="light"
  5403. :content="g.name"
  5404. placement="top"
  5405. >
  5406. <div class="group_name">{{ g.name }}</div>
  5407. </el-tooltip>
  5408. </div>
  5409. <div
  5410. class="group_work"
  5411. v-if="
  5412. g.works &&
  5413. g.works.length &&
  5414. g.works[toolIndex].length
  5415. "
  5416. >
  5417. <div
  5418. class="works"
  5419. style="
  5420. width: 200px;
  5421. height: 140px;
  5422. margin: 10px 10px 10px 0;
  5423. border-radius: 15px;
  5424. box-shadow: 0 0 6px 1px #dfdada;
  5425. "
  5426. v-for="(w, wIndex) in g.works[toolIndex]"
  5427. :key="wIndex"
  5428. :class="w.type == 1 ? 'isTypeOne' : ''"
  5429. >
  5430. <div class="workImg">
  5431. <img
  5432. :src="w.works"
  5433. @click="previewImg(w.works,w)"
  5434. alt
  5435. />
  5436. <div
  5437. class="answerScore"
  5438. v-if="w.score"
  5439. @click.stop="openScore(w)"
  5440. :class="{
  5441. rightW:
  5442. w.userid == userid ||
  5443. tType == 1 ||
  5444. tType == 4,
  5445. }"
  5446. >
  5447. {{ JSON.parse(w.score).wScore }}分
  5448. </div>
  5449. <div
  5450. class="answerScore"
  5451. @click.stop="openScore(w)"
  5452. v-else-if="courseDetail.userid == userid"
  5453. :class="{
  5454. rightW:
  5455. w.userid == userid ||
  5456. tType == 1 ||
  5457. tType == 4,
  5458. }"
  5459. >
  5460. 评分
  5461. </div>
  5462. <img
  5463. class="deleteImg"
  5464. src="../assets/deleteworks.png"
  5465. v-if="
  5466. w.userid == userid || tType == 1 || tType == 4
  5467. "
  5468. @click.stop="deleteWorks(w.wid)"
  5469. alt
  5470. />
  5471. </div>
  5472. <div class="comment" style="min-width: 200px">
  5473. <div class="worksName">
  5474. <div>{{ w.sName }}</div>
  5475. </div>
  5476. <div class="commentList">
  5477. <div class="commentList">
  5478. <div
  5479. class="commentImg"
  5480. @click="
  5481. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5482. "
  5483. >
  5484. <img
  5485. :src="w.isLikes == true ? likes : noLikes"
  5486. alt=""
  5487. />
  5488. </div>
  5489. <div>{{ w.likesCount }}</div>
  5490. </div>
  5491. <div
  5492. class="commentList"
  5493. style="margin-right: 15px"
  5494. >
  5495. <div
  5496. class="commentImg"
  5497. @click="
  5498. commentOther(
  5499. w,
  5500. toolIndex,
  5501. wIndex,
  5502. null,
  5503. g.id
  5504. )
  5505. "
  5506. >
  5507. <img
  5508. src="../assets/icon/comment/comment.png"
  5509. alt=""
  5510. />
  5511. </div>
  5512. <div>{{ w.commentCount }}</div>
  5513. </div>
  5514. </div>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. <div class="group_work" v-else>暂无提交作业</div>
  5519. </div>
  5520. </div>
  5521. <div
  5522. :id="'tool-' + toolIndex"
  5523. :style="{
  5524. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5525. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5526. }"
  5527. class="worksDetailBox"
  5528. v-if="
  5529. worksStudent.length &&
  5530. worksStudent[toolIndex].length > 0
  5531. "
  5532. >
  5533. <div
  5534. class="works"
  5535. style="
  5536. width: 200px;
  5537. height: 140px;
  5538. margin: 10px 10px 10px 0;
  5539. border-radius: 15px;
  5540. box-shadow: 0 0 6px 1px #dfdada;
  5541. "
  5542. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5543. :key="wIndex"
  5544. >
  5545. <!-- @click="previewImg(w.works)" -->
  5546. <div class="workImg">
  5547. <img
  5548. :src="w.works"
  5549. @click="previewImg(w.works,w)"
  5550. alt
  5551. />
  5552. <div
  5553. class="answerScore"
  5554. v-if="w.score"
  5555. @click.stop="openScore(w)"
  5556. :class="{
  5557. rightW:
  5558. w.userid == userid || tType == 1 || tType == 4,
  5559. }"
  5560. >
  5561. {{ JSON.parse(w.score).wScore }}分
  5562. </div>
  5563. <div
  5564. class="answerScore"
  5565. @click.stop="openScore(w)"
  5566. v-else-if="courseDetail.userid == userid"
  5567. :class="{
  5568. rightW:
  5569. w.userid == userid || tType == 1 || tType == 4,
  5570. }"
  5571. >
  5572. 评分
  5573. </div>
  5574. <img
  5575. class="deleteImg"
  5576. src="../assets/deleteworks.png"
  5577. v-if="
  5578. w.userid == userid || tType == 1 || tType == 4
  5579. "
  5580. @click.stop="deleteWorks(w.wid)"
  5581. alt
  5582. />
  5583. </div>
  5584. <div class="comment" style="min-width: 200px">
  5585. <div class="worksName">
  5586. <div>{{ w.sName }}</div>
  5587. </div>
  5588. <div class="commentList">
  5589. <div class="commentList">
  5590. <div
  5591. class="commentImg"
  5592. @click="
  5593. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5594. "
  5595. >
  5596. <img
  5597. :src="w.isLikes == true ? likes : noLikes"
  5598. alt=""
  5599. />
  5600. </div>
  5601. <div>{{ w.likesCount }}</div>
  5602. </div>
  5603. <div class="commentList" style="margin-right: 15px">
  5604. <div
  5605. class="commentImg"
  5606. @click="commentOther(w, toolIndex, wIndex)"
  5607. >
  5608. <img
  5609. src="../assets/icon/comment/comment.png"
  5610. alt=""
  5611. />
  5612. </div>
  5613. <div>{{ w.commentCount }}</div>
  5614. </div>
  5615. </div>
  5616. </div>
  5617. </div>
  5618. </div>
  5619. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5620. 未提交
  5621. </div>
  5622. <div
  5623. class="noWorksS"
  5624. v-if="noWorksS && noWorksS[toolIndex].length"
  5625. >
  5626. <div
  5627. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5628. :key="sIndex"
  5629. class="noWorksName"
  5630. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5631. >
  5632. <el-tooltip effect="dark" :content="s.student" placement="top">
  5633. <span>{{ s.student }}</span>
  5634. </el-tooltip>
  5635. </div>
  5636. </div>
  5637. </div>
  5638. <div
  5639. v-if="
  5640. tType &&
  5641. ((tType == 2 && sIsOpen == true) ||
  5642. tType == 1 ||
  5643. tType == 4) &&
  5644. tool.tool.indexOf(26) != -1
  5645. "
  5646. class="worksBox"
  5647. >
  5648. <div
  5649. class="zuoyeYulan"
  5650. v-if="
  5651. worksStudent.length &&
  5652. worksStudent[toolIndex].length > 0
  5653. "
  5654. >
  5655. <div class="worksTop">
  5656. <div>作业预览</div>
  5657. <div
  5658. class="corOpen"
  5659. @click="contract(toolIndex)"
  5660. v-if="
  5661. (isCloseList[toolIndex].isCloseBoolean) &&
  5662. isCloseList[toolIndex].isClose == 0
  5663. "
  5664. >
  5665. 折叠
  5666. </div>
  5667. <div
  5668. class="corOpen"
  5669. @click="contract(toolIndex)"
  5670. v-if="isCloseList[toolIndex].isClose == 1"
  5671. >
  5672. 展开
  5673. </div>
  5674. </div>
  5675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5676. </div>
  5677. <div
  5678. :id="'tool-' + toolIndex"
  5679. :style="{
  5680. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5681. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5682. }"
  5683. class="worksDetailBox"
  5684. v-if="
  5685. worksStudent.length &&
  5686. worksStudent[toolIndex].length > 0
  5687. "
  5688. >
  5689. <div
  5690. class="works"
  5691. style="width: 240px; height: 140px; overflow: hidden"
  5692. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5693. :key="wIndex"
  5694. :class="w.type == 1 ? 'isTypeOne' : ''"
  5695. >
  5696. <div class="workImg" v-if="w.type == 0">
  5697. <img
  5698. :src="w.works"
  5699. @click="previewImg(w.works,w)"
  5700. alt
  5701. />
  5702. <img
  5703. class="deleteImg"
  5704. src="../assets/deleteworks.png"
  5705. v-if="
  5706. w.userid == userid || tType == 1 || tType == 4
  5707. "
  5708. @click.stop="deleteWorks(w.wid)"
  5709. alt
  5710. />
  5711. </div>
  5712. <div class="workImg" v-if="w.type == 1">
  5713. <img :src="word" @click="openFile(w.works,w)" alt />
  5714. <img
  5715. class="deleteImg"
  5716. src="../assets/deleteworks.png"
  5717. v-if="
  5718. w.userid == userid || tType == 1 || tType == 4
  5719. "
  5720. @click.stop="deleteWorks(w.wid)"
  5721. alt
  5722. />
  5723. </div>
  5724. <div class="worksName">
  5725. <div>{{ w.sName }}</div>
  5726. </div>
  5727. </div>
  5728. </div>
  5729. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5730. 未提交
  5731. </div>
  5732. <div
  5733. class="noWorksS"
  5734. v-if="noWorksS && noWorksS[toolIndex].length"
  5735. >
  5736. <div
  5737. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5738. :key="sIndex"
  5739. class="noWorksName"
  5740. >
  5741. <el-tooltip effect="dark" :content="s.student" placement="top">
  5742. <span>{{ s.student }}</span>
  5743. </el-tooltip>
  5744. </div>
  5745. </div>
  5746. </div>
  5747. <div
  5748. v-if="
  5749. tType &&
  5750. ((tType == 2 && sIsOpen == true) ||
  5751. tType == 1 ||
  5752. tType == 4) &&
  5753. tool.tool.indexOf(40) != -1
  5754. "
  5755. class="worksBox"
  5756. >
  5757. <div
  5758. class="zuoyeYulan"
  5759. v-if="
  5760. worksStudent.length &&
  5761. worksStudent[toolIndex].length > 0
  5762. "
  5763. >
  5764. <div class="worksTop">
  5765. <div>作业预览</div>
  5766. <div
  5767. class="corOpen"
  5768. @click="contract(toolIndex)"
  5769. v-if="
  5770. (isCloseList[toolIndex].isCloseBoolean) &&
  5771. isCloseList[toolIndex].isClose == 0
  5772. "
  5773. >
  5774. 折叠
  5775. </div>
  5776. <div
  5777. class="corOpen"
  5778. @click="contract(toolIndex)"
  5779. v-if="isCloseList[toolIndex].isClose == 1"
  5780. >
  5781. 展开
  5782. </div>
  5783. </div>
  5784. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5785. </div>
  5786. <div
  5787. :id="'tool-' + toolIndex"
  5788. :style="{
  5789. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5790. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5791. }"
  5792. class="worksDetailBox"
  5793. v-if="
  5794. worksStudent.length &&
  5795. worksStudent[toolIndex].length > 0
  5796. "
  5797. >
  5798. <div
  5799. class="works"
  5800. style="
  5801. width: 200px;
  5802. height: 140px;
  5803. margin: 10px 10px 10px 0;
  5804. border-radius: 15px;
  5805. box-shadow: 0 0 6px 1px #dfdada;
  5806. "
  5807. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5808. :key="wIndex"
  5809. :class="w.type == 1 ? 'isTypeOne' : ''"
  5810. >
  5811. <div class="workImg">
  5812. <img
  5813. src="../assets/icon/works/noImg.png"
  5814. @click="openPj(w.works, toolIndex)"
  5815. alt
  5816. />
  5817. <img
  5818. class="deleteImg"
  5819. src="../assets/deleteworks.png"
  5820. v-if="
  5821. w.userid == userid || tType == 1 || tType == 4
  5822. "
  5823. @click.stop="deleteWorks(w.wid)"
  5824. alt
  5825. />
  5826. </div>
  5827. <div class="comment" style="min-width: 200px">
  5828. <div class="worksName">
  5829. <div>{{ w.sName }}</div>
  5830. </div>
  5831. <div class="commentList">
  5832. <div class="commentList">
  5833. <div
  5834. class="commentImg"
  5835. @click="
  5836. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5837. "
  5838. >
  5839. <img
  5840. :src="w.isLikes == true ? likes : noLikes"
  5841. alt=""
  5842. />
  5843. </div>
  5844. <div>{{ w.likesCount }}</div>
  5845. </div>
  5846. <div class="commentList" style="margin-right: 15px">
  5847. <div
  5848. class="commentImg"
  5849. @click="commentOther(w, toolIndex, wIndex)"
  5850. >
  5851. <img
  5852. src="../assets/icon/comment/comment.png"
  5853. alt=""
  5854. />
  5855. </div>
  5856. <div>{{ w.commentCount }}</div>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. </div>
  5861. </div>
  5862. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5863. 未提交
  5864. </div>
  5865. <div
  5866. class="noWorksS"
  5867. v-if="noWorksS && noWorksS[toolIndex].length"
  5868. >
  5869. <div
  5870. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5871. :key="sIndex"
  5872. class="noWorksName"
  5873. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5874. >
  5875. <el-tooltip effect="dark" :content="s.student" placement="top">
  5876. <span>{{ s.student }}</span>
  5877. </el-tooltip>
  5878. </div>
  5879. </div>
  5880. </div>
  5881. <div
  5882. v-if="
  5883. tType &&
  5884. tType == 2 &&
  5885. !sIsOpen &&
  5886. tool.tool.indexOf(40) != -1
  5887. "
  5888. class="worksBox"
  5889. >
  5890. <div
  5891. class="zuoyeYulan"
  5892. v-if="workStudent[toolIndex].length > 0"
  5893. >
  5894. <span class="worksTitle">作业预览</span>
  5895. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5896. </div>
  5897. <div
  5898. class="worksDetailBox"
  5899. v-if="workStudent[toolIndex].length > 0"
  5900. >
  5901. <div
  5902. class="works"
  5903. style="
  5904. width: 200px;
  5905. height: 140px;
  5906. margin: 10px 10px 10px 0;
  5907. "
  5908. v-for="(w, wIndex) in workStudent[toolIndex]"
  5909. :key="wIndex"
  5910. >
  5911. <div class="workImg">
  5912. <img
  5913. src="../assets/icon/works/noImg.png"
  5914. @click="openPj(w.works, toolIndex)"
  5915. alt
  5916. />
  5917. <img
  5918. class="deleteImg"
  5919. src="../assets/deleteworks.png"
  5920. v-if="
  5921. w.userid == userid || tType == 1 || tType == 4
  5922. "
  5923. @click.stop="deleteWorks(w.wid)"
  5924. alt
  5925. />
  5926. </div>
  5927. <div class="worksName">
  5928. <div>{{ w.sName }}</div>
  5929. </div>
  5930. </div>
  5931. </div>
  5932. </div>
  5933. <div
  5934. v-if="
  5935. tType &&
  5936. ((tType == 2 && sIsOpen == true) ||
  5937. tType == 1 ||
  5938. tType == 4) &&
  5939. tool.tool.indexOf(41) != -1
  5940. "
  5941. >
  5942. <AnswerData2
  5943. v-if="
  5944. worksStudent.length &&
  5945. worksStudent[toolIndex].length > 0
  5946. "
  5947. :problemJson="tool.selectJson.answer"
  5948. :people="worksStudent[toolIndex]"
  5949. ></AnswerData2>
  5950. </div>
  5951. <div
  5952. v-if="
  5953. tType &&
  5954. ((tType == 2 && sIsOpen == true) ||
  5955. tType == 1 ||
  5956. tType == 4) &&
  5957. tool.tool.indexOf(41) != -1
  5958. "
  5959. class="worksBox"
  5960. >
  5961. <div
  5962. class="zuoyeYulan"
  5963. v-if="
  5964. worksStudent.length &&
  5965. worksStudent[toolIndex].length > 0
  5966. "
  5967. >
  5968. <div class="worksTop">
  5969. <div>作业预览</div>
  5970. <div
  5971. class="corOpen"
  5972. @click="contract(toolIndex)"
  5973. v-if="
  5974. (isCloseList[toolIndex].isCloseBoolean) &&
  5975. isCloseList[toolIndex].isClose == 0
  5976. "
  5977. >
  5978. 折叠
  5979. </div>
  5980. <div
  5981. class="corOpen"
  5982. @click="contract(toolIndex)"
  5983. v-if="isCloseList[toolIndex].isClose == 1"
  5984. >
  5985. 展开
  5986. </div>
  5987. </div>
  5988. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5989. </div>
  5990. <div
  5991. :id="'tool-' + toolIndex"
  5992. :style="{
  5993. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5994. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5995. }"
  5996. class="worksDetailBox"
  5997. v-if="
  5998. worksStudent.length &&
  5999. worksStudent[toolIndex].length > 0
  6000. "
  6001. >
  6002. <div
  6003. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6004. :key="wIndex"
  6005. class="isWorksName2"
  6006. @click="openXz(w, toolIndex)"
  6007. >
  6008. {{ w.sName }}
  6009. <img
  6010. class="deleteImg deleteImg2"
  6011. src="../assets/deleteworks.png"
  6012. v-if="w.userid == userid || tType == 1 || tType == 4"
  6013. @click.stop="deleteWorks(w.wid)"
  6014. alt
  6015. />
  6016. </div>
  6017. <!-- <div
  6018. class="works"
  6019. style="
  6020. width: 200px;
  6021. height: 140px;
  6022. margin: 10px 10px 10px 0;
  6023. border-radius: 15px;
  6024. box-shadow: 0 0 6px 1px #dfdada;
  6025. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6026. :class="w.type == 5 ? 'isTypeOne' : ''">
  6027. <div class="workImg">
  6028. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6029. </div>
  6030. <div class="worksName">
  6031. <div>{{ w.sName }}</div>
  6032. </div>
  6033. </div> -->
  6034. </div>
  6035. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6036. 未提交
  6037. </div>
  6038. <div
  6039. class="noWorksS"
  6040. v-if="noWorksS && noWorksS[toolIndex].length"
  6041. >
  6042. <div
  6043. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6044. :key="sIndex"
  6045. class="noWorksName"
  6046. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6047. >
  6048. <el-tooltip effect="dark" :content="s.student" placement="top">
  6049. <span>{{ s.student }}</span>
  6050. </el-tooltip>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. <div
  6055. v-if="
  6056. tType &&
  6057. tType == 2 &&
  6058. !sIsOpen &&
  6059. tool.tool.indexOf(41) != -1
  6060. "
  6061. class="worksBox"
  6062. >
  6063. <div
  6064. class="zuoyeYulan"
  6065. v-if="workStudent[toolIndex].length > 0"
  6066. >
  6067. <span class="worksTitle">作业预览</span>
  6068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6069. </div>
  6070. <div
  6071. class="worksDetailBox"
  6072. v-if="workStudent[toolIndex].length > 0"
  6073. >
  6074. <div
  6075. class="works"
  6076. style="
  6077. width: 200px;
  6078. height: 140px;
  6079. margin: 10px 10px 10px 0;
  6080. "
  6081. v-for="(w, wIndex) in workStudent[toolIndex]"
  6082. :key="wIndex"
  6083. >
  6084. <div class="workImg">
  6085. <img
  6086. src="../assets/icon/works/noImg.png"
  6087. @click="openXz(w, toolIndex)"
  6088. alt
  6089. />
  6090. <img
  6091. class="deleteImg"
  6092. src="../assets/deleteworks.png"
  6093. v-if="
  6094. w.userid == userid || tType == 1 || tType == 4
  6095. "
  6096. @click.stop="deleteWorks(w.wid)"
  6097. alt
  6098. />
  6099. </div>
  6100. <div class="worksName">
  6101. <div>{{ w.sName }}</div>
  6102. </div>
  6103. </div>
  6104. </div>
  6105. </div>
  6106. <div v-if="false" class="xuan_right_box">
  6107. <div
  6108. class="tool_right_box"
  6109. v-for="(item, index) in tool.sentenceList"
  6110. :key="index"
  6111. >
  6112. <div>
  6113. <span
  6114. style="word-break: break-all; white-space: normal"
  6115. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6116. >
  6117. </div>
  6118. <div class="right_box_xuan">
  6119. <span>正确率</span>
  6120. <span>{{
  6121. (checkJson[toolIndex][index].right
  6122. ? checkJson[toolIndex][index].right
  6123. : 0) + "%"
  6124. }}</span>
  6125. </div>
  6126. <div class="right_box_xuan">
  6127. <span>答对人数</span>
  6128. <span>{{
  6129. checkJson[toolIndex][index].rightPerson.length
  6130. }}</span>
  6131. </div>
  6132. </div>
  6133. </div>
  6134. <div
  6135. v-if="
  6136. tType &&
  6137. ((tType == 2 && sIsOpen == true) ||
  6138. tType == 1 ||
  6139. tType == 4) &&
  6140. tool.tool.indexOf(47) != -1
  6141. "
  6142. >
  6143. <AnswerData
  6144. v-if="
  6145. checkJson[toolIndex].length &&
  6146. (tool.sentenceList || tool.sentenceList.length > 0)
  6147. "
  6148. :people="checkJson[toolIndex]"
  6149. ></AnswerData>
  6150. </div>
  6151. <div
  6152. v-if="
  6153. tType &&
  6154. tType == 2 &&
  6155. !sIsOpen &&
  6156. tool.tool.indexOf(47) != -1
  6157. "
  6158. class="worksBox"
  6159. >
  6160. <div
  6161. class="zuoyeYulan"
  6162. v-if="workStudent[toolIndex].length > 0"
  6163. >
  6164. <span class="worksTitle">作业预览</span>
  6165. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6166. </div>
  6167. <div
  6168. class="worksDetailBox"
  6169. v-if="workStudent[toolIndex].length > 0"
  6170. >
  6171. <div
  6172. class="works"
  6173. style="
  6174. width: 200px;
  6175. height: 140px;
  6176. margin: 10px 10px 10px 0;
  6177. "
  6178. v-for="(w, wIndex) in workStudent[toolIndex]"
  6179. :key="wIndex"
  6180. >
  6181. <!-- @click="openXz(w, toolIndex)" -->
  6182. <div class="workImg" @click="openSen(w, toolIndex)">
  6183. <img src="../assets/icon/works/noImg.png" alt />
  6184. <img
  6185. class="deleteImg"
  6186. src="../assets/deleteworks.png"
  6187. v-if="
  6188. w.userid == userid || tType == 1 || tType == 4
  6189. "
  6190. @click.stop="deleteWorks(w.wid)"
  6191. alt
  6192. />
  6193. </div>
  6194. <div class="worksName">
  6195. <div>
  6196. {{ w.sName }}
  6197. </div>
  6198. </div>
  6199. </div>
  6200. </div>
  6201. </div>
  6202. <div
  6203. v-if="
  6204. tType &&
  6205. ((tType == 2 && sIsOpen == true) ||
  6206. tType == 1 ||
  6207. tType == 4) &&
  6208. tool.tool.indexOf(47) != -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. :id="'tool-' + toolIndex"
  6243. :style="{
  6244. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6245. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6246. }"
  6247. class="worksDetailBox"
  6248. v-if="
  6249. worksStudent.length &&
  6250. worksStudent[toolIndex].length > 0
  6251. "
  6252. >
  6253. <!-- @click="openXz(w, toolIndex)" -->
  6254. <div
  6255. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6256. :key="wIndex"
  6257. class="isWorksName2"
  6258. @click="openSen(w, toolIndex)"
  6259. >
  6260. {{ w.sName }}
  6261. <img
  6262. class="deleteImg deleteImg2"
  6263. src="../assets/deleteworks.png"
  6264. v-if="w.userid == userid || tType == 1 || tType == 4"
  6265. @click.stop="deleteWorks(w.wid)"
  6266. alt
  6267. />
  6268. </div>
  6269. </div>
  6270. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6271. 未提交
  6272. </div>
  6273. <div
  6274. class="noWorksS"
  6275. v-if="noWorksS && noWorksS[toolIndex].length"
  6276. >
  6277. <div
  6278. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6279. :key="sIndex"
  6280. class="noWorksName"
  6281. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6282. >
  6283. <el-tooltip effect="dark" :content="s.student" placement="top">
  6284. <span>{{ s.student }}</span>
  6285. </el-tooltip>
  6286. </div>
  6287. </div>
  6288. </div>
  6289. <div
  6290. v-if="
  6291. tType &&
  6292. ((tType == 2 && sIsOpen == true) ||
  6293. tType == 1 ||
  6294. tType == 4) &&
  6295. tool.tool.indexOf(48) != -1
  6296. "
  6297. class="worksBox"
  6298. >
  6299. <div
  6300. class="zuoyeYulan"
  6301. v-if="
  6302. worksStudent.length &&
  6303. worksStudent[toolIndex].length > 0
  6304. "
  6305. >
  6306. <div class="worksTop">
  6307. <div>作业预览</div>
  6308. <div
  6309. class="corOpen"
  6310. @click="contract(toolIndex)"
  6311. v-if="
  6312. (isCloseList[toolIndex].isCloseBoolean) &&
  6313. isCloseList[toolIndex].isClose == 0
  6314. "
  6315. >
  6316. 折叠
  6317. </div>
  6318. <div
  6319. class="corOpen"
  6320. @click="contract(toolIndex)"
  6321. v-if="isCloseList[toolIndex].isClose == 1"
  6322. >
  6323. 展开
  6324. </div>
  6325. </div>
  6326. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6327. </div>
  6328. <div
  6329. :id="'tool-' + toolIndex"
  6330. :style="{
  6331. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6332. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6333. }"
  6334. class="worksDetailBox"
  6335. v-if="
  6336. worksStudent.length &&
  6337. worksStudent[toolIndex].length > 0
  6338. "
  6339. >
  6340. <div
  6341. class="works"
  6342. style="
  6343. width: 200px;
  6344. height: 140px;
  6345. margin: 10px 10px 10px 0;
  6346. border-radius: 15px;
  6347. box-shadow: 0 0 6px 1px #dfdada;
  6348. "
  6349. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6350. :key="wIndex"
  6351. :class="w.type == 1 ? 'isTypeOne' : ''"
  6352. >
  6353. <div class="workImg">
  6354. <img :src="word" @click="openTable(w)" alt />
  6355. <!-- @click="openFile(w.works)" -->
  6356. <div
  6357. class="answerScore"
  6358. v-if="w.score"
  6359. @click.stop="openScore(w)"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. {{ JSON.parse(w.score).wScore }}分
  6369. </div>
  6370. <div
  6371. class="answerScore"
  6372. @click.stop="openScore(w)"
  6373. v-else-if="courseDetail.userid == userid"
  6374. :class="{
  6375. rightW:
  6376. w.userid == userid ||
  6377. tType == 1 ||
  6378. tType == 4 ||
  6379. w.ateacher == userid,
  6380. }"
  6381. >
  6382. 评分
  6383. </div>
  6384. <img
  6385. class="deleteImg"
  6386. src="../assets/deleteworks.png"
  6387. v-if="
  6388. w.userid == userid || tType == 1 || tType == 4
  6389. "
  6390. @click.stop="deleteWorks(w.wid)"
  6391. alt
  6392. />
  6393. </div>
  6394. <div class="comment" style="min-width: 200px">
  6395. <div class="worksName">
  6396. <div>{{ w.sName }}</div>
  6397. </div>
  6398. <div class="commentList">
  6399. <div class="commentList">
  6400. <div
  6401. class="commentImg"
  6402. @click="
  6403. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6404. "
  6405. >
  6406. <img
  6407. :src="w.isLikes == true ? likes : noLikes"
  6408. alt=""
  6409. />
  6410. </div>
  6411. <div>{{ w.likesCount }}</div>
  6412. </div>
  6413. <div class="commentList" style="margin-right: 15px">
  6414. <div
  6415. class="commentImg"
  6416. @click="commentOther(w, toolIndex, wIndex)"
  6417. >
  6418. <img
  6419. src="../assets/icon/comment/comment.png"
  6420. alt=""
  6421. />
  6422. </div>
  6423. <div>{{ w.commentCount }}</div>
  6424. </div>
  6425. </div>
  6426. </div>
  6427. </div>
  6428. </div>
  6429. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6430. 未提交
  6431. </div>
  6432. <div
  6433. class="noWorksS"
  6434. v-if="noWorksS && noWorksS[toolIndex].length"
  6435. >
  6436. <div
  6437. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6438. :key="sIndex"
  6439. class="noWorksName"
  6440. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6441. >
  6442. <el-tooltip effect="dark" :content="s.student" placement="top">
  6443. <span>{{ s.student }}</span>
  6444. </el-tooltip>
  6445. </div>
  6446. </div>
  6447. </div>
  6448. <div
  6449. v-if="
  6450. tType &&
  6451. tType == 2 &&
  6452. !sIsOpen &&
  6453. tool.tool.indexOf(48) != -1
  6454. "
  6455. class="worksBox"
  6456. >
  6457. <div
  6458. class="zuoyeYulan"
  6459. v-if="workStudent[toolIndex].length > 0"
  6460. >
  6461. <span class="worksTitle">作业预览</span>
  6462. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6463. </div>
  6464. <div
  6465. class="worksDetailBox"
  6466. v-if="workStudent[toolIndex].length > 0"
  6467. >
  6468. <div
  6469. class="works"
  6470. style="
  6471. width: 200px;
  6472. height: 140px;
  6473. margin: 10px 10px 10px 0;
  6474. box-shadow: 0 0 6px 1px #dfdada;
  6475. "
  6476. v-for="(w, wIndex) in workStudent[toolIndex]"
  6477. :key="wIndex"
  6478. >
  6479. <div class="workImg">
  6480. <img :src="word" @click="openTable(w)" alt />
  6481. <div
  6482. class="answerScore"
  6483. v-if="w.score"
  6484. @click.stop="openScore(w)"
  6485. :class="{
  6486. rightW:
  6487. w.userid == userid || tType == 1 || tType == 4,
  6488. }"
  6489. >
  6490. {{ JSON.parse(w.score).wScore }}分
  6491. </div>
  6492. <div
  6493. class="answerScore"
  6494. @click.stop="openScore(w)"
  6495. v-else-if="courseDetail.userid == userid"
  6496. :class="{
  6497. rightW:
  6498. w.userid == userid || tType == 1 || tType == 4,
  6499. }"
  6500. >
  6501. 评分
  6502. </div>
  6503. <img
  6504. class="deleteImg"
  6505. src="../assets/deleteworks.png"
  6506. v-if="
  6507. w.userid == userid || tType == 1 || tType == 4
  6508. "
  6509. @click.stop="deleteWorks(w.wid)"
  6510. alt
  6511. />
  6512. </div>
  6513. <div class="worksName">
  6514. <div>{{ w.sName }}</div>
  6515. </div>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. <div
  6520. v-if="
  6521. tType &&
  6522. ((tType == 2 && sIsOpen == true) ||
  6523. tType == 1 ||
  6524. tType == 4) &&
  6525. tool.tool.indexOf(52) != -1
  6526. "
  6527. class="worksBox"
  6528. >
  6529. <div
  6530. class="zuoyeYulan"
  6531. v-if="
  6532. worksStudent.length &&
  6533. worksStudent[toolIndex].length > 0
  6534. "
  6535. >
  6536. <div class="worksTop">
  6537. <div>作业预览</div>
  6538. <div
  6539. class="corOpen"
  6540. @click="contract(toolIndex)"
  6541. v-if="
  6542. (isCloseList[toolIndex].isCloseBoolean) &&
  6543. isCloseList[toolIndex].isClose == 0
  6544. "
  6545. >
  6546. 折叠
  6547. </div>
  6548. <div
  6549. class="corOpen"
  6550. @click="contract(toolIndex)"
  6551. v-if="isCloseList[toolIndex].isClose == 1"
  6552. >
  6553. 展开
  6554. </div>
  6555. </div>
  6556. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6557. </div>
  6558. <div
  6559. :id="'tool-' + toolIndex"
  6560. :style="{
  6561. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6562. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6563. }"
  6564. class="worksDetailBox"
  6565. v-if="
  6566. worksStudent.length &&
  6567. worksStudent[toolIndex].length > 0
  6568. "
  6569. >
  6570. <div
  6571. class="works"
  6572. style="
  6573. width: 200px;
  6574. height: 140px;
  6575. margin: 10px 10px 10px 0;
  6576. border-radius: 15px;
  6577. box-shadow: 0 0 6px 1px #dfdada;
  6578. "
  6579. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6580. :key="wIndex"
  6581. :class="w.type == 1 ? 'isTypeOne' : ''"
  6582. >
  6583. <div class="workImg">
  6584. <img :src="word" @click="openWord(w)" alt />
  6585. <!-- @click="openFile(w.works)" -->
  6586. <div
  6587. class="answerScore"
  6588. v-if="w.score"
  6589. @click.stop="openScore(w)"
  6590. :class="{
  6591. rightW:
  6592. w.userid == userid ||
  6593. tType == 1 ||
  6594. tType == 4 ||
  6595. w.ateacher == userid,
  6596. }"
  6597. >
  6598. {{ JSON.parse(w.score).wScore }}分
  6599. </div>
  6600. <div
  6601. class="answerScore"
  6602. @click.stop="openScore(w)"
  6603. v-else-if="courseDetail.userid == userid"
  6604. :class="{
  6605. rightW:
  6606. w.userid == userid ||
  6607. tType == 1 ||
  6608. tType == 4 ||
  6609. w.ateacher == userid,
  6610. }"
  6611. >
  6612. 评分
  6613. </div>
  6614. <img
  6615. class="deleteImg"
  6616. src="../assets/deleteworks.png"
  6617. v-if="
  6618. w.userid == userid || tType == 1 || tType == 4
  6619. "
  6620. @click.stop="deleteWorks(w.wid)"
  6621. alt
  6622. />
  6623. </div>
  6624. <div class="comment" style="min-width: 200px">
  6625. <div class="worksName">
  6626. <div>{{ w.sName }}</div>
  6627. </div>
  6628. <div class="commentList">
  6629. <div class="commentList">
  6630. <div
  6631. class="commentImg"
  6632. @click="
  6633. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6634. "
  6635. >
  6636. <img
  6637. :src="w.isLikes == true ? likes : noLikes"
  6638. alt=""
  6639. />
  6640. </div>
  6641. <div>{{ w.likesCount }}</div>
  6642. </div>
  6643. <div class="commentList" style="margin-right: 15px">
  6644. <div
  6645. class="commentImg"
  6646. @click="commentOther(w, toolIndex, wIndex)"
  6647. >
  6648. <img
  6649. src="../assets/icon/comment/comment.png"
  6650. alt=""
  6651. />
  6652. </div>
  6653. <div>{{ w.commentCount }}</div>
  6654. </div>
  6655. </div>
  6656. </div>
  6657. </div>
  6658. </div>
  6659. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6660. 未提交
  6661. </div>
  6662. <div
  6663. class="noWorksS"
  6664. v-if="noWorksS && noWorksS[toolIndex].length"
  6665. >
  6666. <div
  6667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6668. :key="sIndex"
  6669. class="noWorksName"
  6670. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6671. >
  6672. <el-tooltip effect="dark" :content="s.student" placement="top">
  6673. <span>{{ s.student }}</span>
  6674. </el-tooltip>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. <div
  6679. v-if="
  6680. tType &&
  6681. tType == 2 &&
  6682. !sIsOpen &&
  6683. tool.tool.indexOf(52) != -1
  6684. "
  6685. class="worksBox"
  6686. >
  6687. <div
  6688. class="zuoyeYulan"
  6689. v-if="workStudent[toolIndex].length > 0"
  6690. >
  6691. <span class="worksTitle">作业预览</span>
  6692. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6693. </div>
  6694. <div
  6695. class="worksDetailBox"
  6696. v-if="workStudent[toolIndex].length > 0"
  6697. >
  6698. <div
  6699. class="works"
  6700. style="
  6701. width: 200px;
  6702. height: 140px;
  6703. margin: 10px 10px 10px 0;
  6704. box-shadow: 0 0 6px 1px #dfdada;
  6705. "
  6706. v-for="(w, wIndex) in workStudent[toolIndex]"
  6707. :key="wIndex"
  6708. >
  6709. <div class="workImg">
  6710. <img :src="word" @click="openWord(w)" alt />
  6711. <div
  6712. class="answerScore"
  6713. v-if="w.score"
  6714. @click.stop="openScore(w)"
  6715. :class="{
  6716. rightW:
  6717. w.userid == userid || tType == 1 || tType == 4,
  6718. }"
  6719. >
  6720. {{ JSON.parse(w.score).wScore }}分
  6721. </div>
  6722. <div
  6723. class="answerScore"
  6724. @click.stop="openScore(w)"
  6725. v-else-if="courseDetail.userid == userid"
  6726. :class="{
  6727. rightW:
  6728. w.userid == userid || tType == 1 || tType == 4,
  6729. }"
  6730. >
  6731. 评分
  6732. </div>
  6733. <img
  6734. class="deleteImg"
  6735. src="../assets/deleteworks.png"
  6736. v-if="
  6737. w.userid == userid || tType == 1 || tType == 4
  6738. "
  6739. @click.stop="deleteWorks(w.wid)"
  6740. alt
  6741. />
  6742. </div>
  6743. <div class="worksName">
  6744. <div>{{ w.sName }}</div>
  6745. </div>
  6746. </div>
  6747. </div>
  6748. </div>
  6749. <div
  6750. v-if="tool.tool.indexOf(49) != -1"
  6751. class="xuan_right_box"
  6752. style="margin: 0 15px 0 25px; width: 93%"
  6753. >
  6754. <div
  6755. v-if="courseDetail.userid == userid"
  6756. style="
  6757. display: flex;
  6758. justify-content: flex-end;
  6759. margin-right: 10px;
  6760. "
  6761. >
  6762. <el-button
  6763. type="primary"
  6764. size="small"
  6765. @click="addTools(49, toolIndex, taskCount)"
  6766. >分组设置</el-button
  6767. >
  6768. </div>
  6769. <div
  6770. v-if="groupStudentUid[toolIndex]"
  6771. class="group_staic_box"
  6772. >
  6773. <div
  6774. v-for="(gp, gd) in tool.groupJson.group"
  6775. :key="gd"
  6776. class="group_staic"
  6777. >
  6778. <span> {{ gp.name }}</span>
  6779. <span>
  6780. 目前人数{{
  6781. groupStudentUid[toolIndex][gd].length
  6782. }}人</span
  6783. >
  6784. </div>
  6785. </div>
  6786. </div>
  6787. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6788. <div
  6789. class="zuoyeYulan"
  6790. v-if="
  6791. worksStudent.length &&
  6792. worksStudent[toolIndex].length > 0
  6793. "
  6794. >
  6795. <span class="worksTitle">作业预览</span>
  6796. </div>
  6797. <div>
  6798. <div
  6799. class="group_workBox"
  6800. v-for="(g, gindex) in tool.groupJson.group"
  6801. :key="gindex"
  6802. >
  6803. <div
  6804. class="group_box"
  6805. v-if="
  6806. groupStudentUid[toolIndex] &&
  6807. worksStudent[toolIndex] &&
  6808. (worksStudent[toolIndex][gindex].length ||
  6809. groupStudentUid[toolIndex][gindex].indexOf(
  6810. userid
  6811. ) != -1)
  6812. "
  6813. >
  6814. <div class="group_title">
  6815. <el-tooltip
  6816. class="item"
  6817. effect="light"
  6818. :content="g.name"
  6819. placement="top"
  6820. >
  6821. <div class="group_name">{{ g.name }}</div>
  6822. </el-tooltip>
  6823. <el-button
  6824. type="primary"
  6825. v-if="
  6826. groupStudentUid[toolIndex][gindex].indexOf(
  6827. userid
  6828. ) != -1
  6829. "
  6830. @click="groupUpload(toolIndex, taskCount, gindex)"
  6831. >上传作业</el-button
  6832. >
  6833. </div>
  6834. <div class="group_work">
  6835. <div
  6836. class="works"
  6837. style="
  6838. width: 200px;
  6839. height: 140px;
  6840. margin: 10px 10px 10px 0;
  6841. border-radius: 15px;
  6842. box-shadow: 0 0 6px 1px #dfdada;
  6843. "
  6844. v-for="(w, wIndex) in worksStudent[toolIndex][
  6845. gindex
  6846. ]"
  6847. :key="wIndex"
  6848. :class="w.type == 1 ? 'isTypeOne' : ''"
  6849. >
  6850. <div class="workImg" v-if="w.type == 0">
  6851. <img
  6852. :src="w.works"
  6853. @click="previewImg(w.works,w)"
  6854. alt
  6855. />
  6856. <div
  6857. class="answerScore"
  6858. v-if="w.score"
  6859. @click.stop="openScore(w)"
  6860. :class="{
  6861. rightW:
  6862. w.userid == userid ||
  6863. tType == 1 ||
  6864. tType == 4 ||
  6865. w.ateacher == userid,
  6866. }"
  6867. >
  6868. {{ JSON.parse(w.score).wScore }}分
  6869. </div>
  6870. <div
  6871. class="answerScore"
  6872. @click.stop="openScore(w)"
  6873. v-else-if="courseDetail.userid == userid"
  6874. :class="{
  6875. rightW:
  6876. w.userid == userid ||
  6877. tType == 1 ||
  6878. tType == 4 ||
  6879. w.ateacher == userid,
  6880. }"
  6881. >
  6882. 评分
  6883. </div>
  6884. <img
  6885. class="deleteImg"
  6886. src="../assets/deleteworks.png"
  6887. v-if="
  6888. w.userid == userid ||
  6889. tType == 1 ||
  6890. tType == 4
  6891. "
  6892. @click.stop="deleteWorks(w.wid)"
  6893. alt
  6894. />
  6895. </div>
  6896. <div class="workImg" v-if="w.type == 1">
  6897. <img
  6898. :src="word"
  6899. @click="openFile(w.works,w)"
  6900. alt
  6901. />
  6902. <!-- @click="openFile(w.works)" -->
  6903. <div
  6904. class="answerScore"
  6905. v-if="w.score"
  6906. @click.stop="openScore(w)"
  6907. :class="{
  6908. rightW:
  6909. w.userid == userid ||
  6910. tType == 1 ||
  6911. tType == 4 ||
  6912. w.ateacher == userid,
  6913. }"
  6914. >
  6915. {{ JSON.parse(w.score).wScore }}分
  6916. </div>
  6917. <div
  6918. class="answerScore"
  6919. @click.stop="openScore(w)"
  6920. v-else-if="courseDetail.userid == userid"
  6921. :class="{
  6922. rightW:
  6923. w.userid == userid ||
  6924. tType == 1 ||
  6925. tType == 4 ||
  6926. w.ateacher == userid,
  6927. }"
  6928. >
  6929. 评分
  6930. </div>
  6931. <img
  6932. class="deleteImg"
  6933. src="../assets/deleteworks.png"
  6934. v-if="
  6935. w.userid == userid ||
  6936. tType == 1 ||
  6937. tType == 4
  6938. "
  6939. @click.stop="deleteWorks(w.wid)"
  6940. alt
  6941. />
  6942. </div>
  6943. <div class="workImg" v-if="w.type == 3">
  6944. <img
  6945. style="cursor: pointer"
  6946. :src="video"
  6947. @click="openVideo(w)"
  6948. alt
  6949. />
  6950. <!-- @click="openVideo(w.works)" -->
  6951. <div
  6952. class="answerScore"
  6953. v-if="w.score"
  6954. @click.stop="openScore(w)"
  6955. :class="{
  6956. rightW:
  6957. w.userid == userid ||
  6958. tType == 1 ||
  6959. tType == 4 ||
  6960. w.ateacher == userid,
  6961. }"
  6962. >
  6963. {{ JSON.parse(w.score).wScore }}分
  6964. </div>
  6965. <div
  6966. class="answerScore"
  6967. @click.stop="openScore(w)"
  6968. v-else-if="courseDetail.userid == userid"
  6969. :class="{
  6970. rightW:
  6971. w.userid == userid ||
  6972. tType == 1 ||
  6973. tType == 4 ||
  6974. w.ateacher == userid,
  6975. }"
  6976. >
  6977. 评分
  6978. </div>
  6979. <img
  6980. class="deleteImg"
  6981. src="../assets/deleteworks.png"
  6982. v-if="
  6983. w.userid == userid ||
  6984. tType == 1 ||
  6985. tType == 4
  6986. "
  6987. @click.stop="deleteWorks(w.wid)"
  6988. alt
  6989. />
  6990. </div>
  6991. <div class="workImg" v-if="w.type == 12">
  6992. <img
  6993. style="cursor: pointer"
  6994. :src="word2"
  6995. @click="downloadFile(w.works)"
  6996. alt
  6997. />
  6998. <!-- @click="openVideo(w.works)" -->
  6999. <div
  7000. class="answerScore"
  7001. v-if="w.score"
  7002. @click.stop="openScore(w)"
  7003. :class="{
  7004. rightW:
  7005. w.userid == userid ||
  7006. tType == 1 ||
  7007. tType == 4 ||
  7008. w.ateacher == userid,
  7009. }"
  7010. >
  7011. {{ JSON.parse(w.score).wScore }}分
  7012. </div>
  7013. <div
  7014. class="answerScore"
  7015. @click.stop="openScore(w)"
  7016. v-else-if="courseDetail.userid == userid"
  7017. :class="{
  7018. rightW:
  7019. w.userid == userid ||
  7020. tType == 1 ||
  7021. tType == 4 ||
  7022. w.ateacher == userid,
  7023. }"
  7024. >
  7025. 评分
  7026. </div>
  7027. <img
  7028. class="deleteImg"
  7029. src="../assets/deleteworks.png"
  7030. v-if="
  7031. w.userid == userid ||
  7032. tType == 1 ||
  7033. tType == 4
  7034. "
  7035. @click.stop="deleteWorks(w.wid)"
  7036. alt
  7037. />
  7038. </div>
  7039. <div class="comment" style="min-width: 200px">
  7040. <div class="worksName">
  7041. <div>{{ w.sName }}</div>
  7042. </div>
  7043. <div class="commentList">
  7044. <div class="commentList">
  7045. <div
  7046. class="commentImg"
  7047. @click="
  7048. isLikes(
  7049. w.wid,
  7050. userid,
  7051. 1,
  7052. null,
  7053. w.isLikes,
  7054. w.sName
  7055. )
  7056. "
  7057. >
  7058. <img
  7059. :src="
  7060. w.isLikes == true ? likes : noLikes
  7061. "
  7062. alt=""
  7063. />
  7064. </div>
  7065. <div>{{ w.likesCount }}</div>
  7066. </div>
  7067. <div
  7068. class="commentList"
  7069. style="margin-right: 15px"
  7070. >
  7071. <div
  7072. class="commentImg"
  7073. @click="
  7074. commentOther(
  7075. w,
  7076. toolIndex,
  7077. wIndex,
  7078. gindex
  7079. )
  7080. "
  7081. >
  7082. <img
  7083. src="../assets/icon/comment/comment.png"
  7084. alt=""
  7085. />
  7086. </div>
  7087. <div>{{ w.commentCount }}</div>
  7088. </div>
  7089. </div>
  7090. </div>
  7091. </div>
  7092. </div>
  7093. </div>
  7094. </div>
  7095. </div>
  7096. </div>
  7097. </div>
  7098. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7099. 上传文件
  7100. <input
  7101. type="file"
  7102. accept="image/png, image/gif, image/jpeg"
  7103. style="display: none"
  7104. @change="beforeUpload1($event, 2, index)"
  7105. />
  7106. </div>-->
  7107. </div>
  7108. </div>
  7109. <!-- <div
  7110. class="vedioBox"
  7111. style="margin-top: 10px"
  7112. v-if="
  7113. courseDetail.userid == userid ||
  7114. (courseDetail.course_teacher &&
  7115. courseDetail.course_teacher.indexOf(userid) != -1)
  7116. "
  7117. :style="{
  7118. borderRadius:
  7119. !(
  7120. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7121. .toolChoose[0].tool &&
  7122. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7123. .toolChoose[0].tool.length > 0
  7124. ) &&
  7125. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7126. .taskDetail == '' &&
  7127. vChapterData[taskCount].length == 0 &&
  7128. fileC[taskCount].length == 0
  7129. ? '0 0 20px 20px'
  7130. : '20px',
  7131. }"
  7132. >
  7133. <div
  7134. class="queTop"
  7135. @click="isClose = !isClose"
  7136. style="
  7137. padding: 15px 0 15px 37px;
  7138. justify-content: space-between;
  7139. "
  7140. >
  7141. <div class="queTopTitle">新增工具</div>
  7142. <div class="queTopRight">
  7143. <div class="queTopClose" v-if="isClose == 0">
  7144. 展开
  7145. <div class="closeImg">
  7146. <img src="../assets/icon/newIcon/close.png" alt="" />
  7147. </div>
  7148. </div>
  7149. <div class="queTopClose" v-if="isClose == 1">
  7150. 折叠
  7151. <div class="openImg">
  7152. <img src="../assets/icon/newIcon/open.png" alt="" />
  7153. </div>
  7154. </div>
  7155. <el-button
  7156. style="margin: 0 30px 0 auto"
  7157. type="primary"
  7158. size="small"
  7159. v-if="isClose == 1 && checktoolArray.length > 0"
  7160. @click.stop="addToolChoose"
  7161. >确定</el-button
  7162. >
  7163. </div>
  7164. </div>
  7165. <div
  7166. class="tool_work_box"
  7167. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7168. >
  7169. <div class="tool_box">
  7170. <div class="tool_type_box">
  7171. <div class="chooseWho">
  7172. <div
  7173. :class="toolType == 0 ? 'isChooseActive' : ''"
  7174. @click="(toolType = 0), $forceUpdate()"
  7175. >
  7176. 互动类
  7177. </div>
  7178. <div
  7179. :class="toolType == 1 ? 'isChooseActive' : ''"
  7180. @click="(toolType = 1), $forceUpdate()"
  7181. >
  7182. 思维类
  7183. </div>
  7184. <div
  7185. :class="toolType == 2 ? 'isChooseActive' : ''"
  7186. @click="(toolType = 2), $forceUpdate()"
  7187. >
  7188. 测评类
  7189. </div>
  7190. <div
  7191. :class="toolType == 3 ? 'isChooseActive' : ''"
  7192. @click="(toolType = 3), $forceUpdate()"
  7193. >
  7194. 编程类
  7195. </div>
  7196. <div
  7197. :class="toolType == 5 ? 'isChooseActive' : ''"
  7198. @click="(toolType = 5), $forceUpdate()"
  7199. >
  7200. 学科类
  7201. </div>
  7202. </div>
  7203. </div>
  7204. <div>
  7205. <div class="toolSort" v-if="toolType == 0">
  7206. <div class="tool">
  7207. <div class="whiteBIcon" @click="addTools2(10)">
  7208. <img
  7209. src="../assets/icon/thirdToolList/time.png"
  7210. alt
  7211. />
  7212. <div style="margin: 5px 0">倒计时</div>
  7213. </div>
  7214. <div class="check" @click="addTools2(10)">
  7215. <img
  7216. src="../assets/icon/checkNo.png"
  7217. alt
  7218. v-if="checktoolArray.indexOf(10) == -1"
  7219. />
  7220. <div class="checkDiv" v-else>
  7221. <img src="../assets/icon/checkedIs.png" alt /><span
  7222. >已选择</span
  7223. >
  7224. </div>
  7225. </div>
  7226. </div>
  7227. <div class="tool">
  7228. <div class="whiteBIcon" @click="addTools2(65)">
  7229. <img
  7230. src="../assets/icon/firstToolList/pickPeople.png"
  7231. alt
  7232. />
  7233. <div style="margin: 5px 0">挑人</div>
  7234. </div>
  7235. <div class="check" @click="addTools2(65)">
  7236. <img
  7237. src="../assets/icon/checkNo.png"
  7238. alt
  7239. v-if="checktoolArray.indexOf(65) == -1"
  7240. />
  7241. <div class="checkDiv" v-else>
  7242. <img src="../assets/icon/checkedIs.png" alt /><span
  7243. >已选择</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div class="toolSort" v-if="toolType == 1">
  7250. <div class="tool">
  7251. <div class="whiteBIcon" @click="addTools2(7)">
  7252. <img
  7253. src="../assets/icon/secondToolList/mindNetwork.png"
  7254. alt
  7255. />
  7256. <div style="margin: 5px 0">思维网格</div>
  7257. </div>
  7258. <div class="check" @click="addTools2(7)">
  7259. <img
  7260. src="../assets/icon/checkNo.png"
  7261. alt
  7262. v-if="checktoolArray.indexOf(7) == -1"
  7263. />
  7264. <div class="checkDiv" v-else>
  7265. <img src="../assets/icon/checkedIs.png" alt /><span
  7266. >已选择</span
  7267. >
  7268. </div>
  7269. </div>
  7270. </div>
  7271. <div class="tool">
  7272. <div class="whiteBIcon" @click="addTools2(1)">
  7273. <img
  7274. src="../assets/icon/secondToolList/whiteBoard.png"
  7275. alt
  7276. />
  7277. <div style="margin: 5px 0">电子白板</div>
  7278. </div>
  7279. <div class="check" @click="addTools2(1)">
  7280. <img
  7281. src="../assets/icon/checkNo.png"
  7282. alt
  7283. v-if="checktoolArray.indexOf(1) == -1"
  7284. />
  7285. <div class="checkDiv" v-else>
  7286. <img src="../assets/icon/checkedIs.png" alt /><span
  7287. >已选择</span
  7288. >
  7289. </div>
  7290. </div>
  7291. </div>
  7292. <div class="tool">
  7293. <div class="whiteBIcon" @click="addTools2(52)">
  7294. <img
  7295. src="../assets/icon/fourthToolList/text.png"
  7296. alt
  7297. />
  7298. <div style="margin: 5px 0">文档</div>
  7299. </div>
  7300. <div class="check" @click="addTools2(52)">
  7301. <img
  7302. src="../assets/icon/checkNo.png"
  7303. alt
  7304. v-if="checktoolArray.indexOf(52) == -1"
  7305. />
  7306. <div class="checkDiv" v-else>
  7307. <img src="../assets/icon/checkedIs.png" alt /><span
  7308. >已选择</span
  7309. >
  7310. </div>
  7311. </div>
  7312. </div>
  7313. <div class="tool">
  7314. <div class="whiteBIcon" @click="addTools2(3)">
  7315. <img
  7316. src="../assets/icon/secondToolList/mindMapping.png"
  7317. alt
  7318. />
  7319. <div style="margin: 5px 0">思维导图</div>
  7320. </div>
  7321. <div class="check" @click="addTools2(3)">
  7322. <img
  7323. src="../assets/icon/checkNo.png"
  7324. alt
  7325. v-if="checktoolArray.indexOf(3) == -1"
  7326. />
  7327. <div class="checkDiv" v-else>
  7328. <img src="../assets/icon/checkedIs.png" alt /><span
  7329. >已选择</span
  7330. >
  7331. </div>
  7332. </div>
  7333. </div>
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(48)">
  7336. <img
  7337. src="../assets/icon/fourthToolList/table.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">表格</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(48)">
  7343. <img
  7344. src="../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(48) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. </div>
  7356. <div class="toolSort" v-if="toolType == 6">
  7357. <div v-show="tooC == 49">
  7358. <img
  7359. @click="addTools(tooC, toolIndex, taskCount)"
  7360. src="../assets/icon/fourthToolList/group.png"
  7361. alt
  7362. />
  7363. <div style="margin: 5px 0">学生分组</div>
  7364. </div>
  7365. </div>
  7366. <div class="toolSort" v-if="toolType == 2">
  7367. <div class="tool">
  7368. <div class="whiteBIcon" @click="addTools2(16)">
  7369. <img
  7370. src="../assets/icon/thirdToolList/work.png"
  7371. alt
  7372. />
  7373. <div style="margin: 5px 0">作业提交</div>
  7374. </div>
  7375. <div class="check" @click="addTools2(16)">
  7376. <img
  7377. src="../assets/icon/checkNo.png"
  7378. alt
  7379. v-if="checktoolArray.indexOf(16) == -1"
  7380. />
  7381. <div class="checkDiv" v-else>
  7382. <img src="../assets/icon/checkedIs.png" alt /><span
  7383. >已选择</span
  7384. >
  7385. </div>
  7386. </div>
  7387. </div>
  7388. <div class="tool">
  7389. <div class="whiteBIcon" @click="addTools2(50)">
  7390. <img
  7391. src="../assets/icon/thirdToolList/plwork.png"
  7392. alt
  7393. />
  7394. <div style="margin: 5px 0">批量上传</div>
  7395. </div>
  7396. <div class="check" @click="addTools2(50)">
  7397. <img
  7398. src="../assets/icon/checkNo.png"
  7399. alt
  7400. v-if="checktoolArray.indexOf(50) == -1"
  7401. />
  7402. <div class="checkDiv" v-else>
  7403. <img src="../assets/icon/checkedIs.png" alt /><span
  7404. >已选择</span
  7405. >
  7406. </div>
  7407. </div>
  7408. </div>
  7409. </div>
  7410. <div class="toolSort" v-if="toolType == 3">
  7411. <div class="tool">
  7412. <div class="whiteBIcon" @click="addTools2(18)">
  7413. <img
  7414. src="../assets/icon/thirdToolList/trainPlatform.png"
  7415. alt
  7416. />
  7417. <div style="margin: 5px 0">训练平台</div>
  7418. </div>
  7419. <div class="check" @click="addTools2(18)">
  7420. <img
  7421. src="../assets/icon/checkNo.png"
  7422. alt
  7423. v-if="checktoolArray.indexOf(18) == -1"
  7424. />
  7425. <div class="checkDiv" v-else>
  7426. <img src="../assets/icon/checkedIs.png" alt /><span
  7427. >已选择</span
  7428. >
  7429. </div>
  7430. </div>
  7431. </div>
  7432. <div class="tool">
  7433. <div class="whiteBIcon" @click="addTools2(21)">
  7434. <img
  7435. src="../assets/icon/fourthToolList/program.png"
  7436. alt
  7437. />
  7438. <div style="margin: 5px 0">AIoT Blockly</div>
  7439. </div>
  7440. <div class="check" @click="addTools2(21)">
  7441. <img
  7442. src="../assets/icon/checkNo.png"
  7443. alt
  7444. v-if="checktoolArray.indexOf(21) == -1"
  7445. />
  7446. <div class="checkDiv" v-else>
  7447. <img src="../assets/icon/checkedIs.png" alt /><span
  7448. >已选择</span
  7449. >
  7450. </div>
  7451. </div>
  7452. </div>
  7453. <div class="tool">
  7454. <div class="whiteBIcon" @click="addTools2(23)">
  7455. <img
  7456. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7457. alt
  7458. />
  7459. <div style="margin: 5px 0">AI Python</div>
  7460. </div>
  7461. <div class="check" @click="addTools2(23)">
  7462. <img
  7463. src="../assets/icon/checkNo.png"
  7464. alt
  7465. v-if="checktoolArray.indexOf(23) == -1"
  7466. />
  7467. <div class="checkDiv" v-else>
  7468. <img src="../assets/icon/checkedIs.png" alt /><span
  7469. >已选择</span
  7470. >
  7471. </div>
  7472. </div>
  7473. </div>
  7474. <div class="tool">
  7475. <div class="whiteBIcon" @click="addTools2(24)">
  7476. <img
  7477. src="../assets/icon/fourthToolList/AIprogram.png"
  7478. alt
  7479. />
  7480. <div style="margin: 5px 0">AI Blockly</div>
  7481. </div>
  7482. <div class="check" @click="addTools2(24)">
  7483. <img
  7484. src="../assets/icon/checkNo.png"
  7485. alt
  7486. v-if="checktoolArray.indexOf(24) == -1"
  7487. />
  7488. <div class="checkDiv" v-else>
  7489. <img src="../assets/icon/checkedIs.png" alt /><span
  7490. >已选择</span
  7491. >
  7492. </div>
  7493. </div>
  7494. </div>
  7495. <div class="tool">
  7496. <div class="whiteBIcon" @click="addTools2(32)">
  7497. <img
  7498. src="../assets/icon/thirdToolList/code.png"
  7499. alt
  7500. />
  7501. <div style="margin: 5px 0">源码编辑</div>
  7502. </div>
  7503. <div class="check" @click="addTools2(32)">
  7504. <img
  7505. src="../assets/icon/checkNo.png"
  7506. alt
  7507. v-if="checktoolArray.indexOf(32) == -1"
  7508. />
  7509. <div class="checkDiv" v-else>
  7510. <img src="../assets/icon/checkedIs.png" alt /><span
  7511. >已选择</span
  7512. >
  7513. </div>
  7514. </div>
  7515. </div>
  7516. <div class="tool">
  7517. <div class="whiteBIcon" @click="addTools2(57)">
  7518. <img
  7519. src="../assets/icon/fourthToolList/cocopi.png"
  7520. alt
  7521. />
  7522. <div style="margin: 5px 0">CocoPi</div>
  7523. </div>
  7524. <div class="check" @click="addTools2(57)">
  7525. <img
  7526. src="../assets/icon/checkNo.png"
  7527. alt
  7528. v-if="checktoolArray.indexOf(57) == -1"
  7529. />
  7530. <div class="checkDiv" v-else>
  7531. <img src="../assets/icon/checkedIs.png" alt /><span
  7532. >已选择</span
  7533. >
  7534. </div>
  7535. </div>
  7536. </div>
  7537. <div class="tool">
  7538. <div class="whiteBIcon" @click="addTools2(63)">
  7539. <img
  7540. src="../assets/icon/fourthToolList/Wood.png"
  7541. alt
  7542. />
  7543. <div style="margin: 5px 0">海龟编程</div>
  7544. </div>
  7545. <div class="check" @click="addTools2(63)">
  7546. <img
  7547. src="../assets/icon/checkNo.png"
  7548. alt
  7549. v-if="checktoolArray.indexOf(63) == -1"
  7550. />
  7551. <div class="checkDiv" v-else>
  7552. <img src="../assets/icon/checkedIs.png" alt /><span
  7553. >已选择</span
  7554. >
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. <div class="toolSort" v-if="toolType == 5">
  7560. <div class="tool">
  7561. <div class="whiteBIcon" @click="addTools2(28)">
  7562. <img
  7563. src="../assets/icon/secondToolList/translation.png"
  7564. alt
  7565. />
  7566. <div style="margin: 5px 0">翻译</div>
  7567. </div>
  7568. <div class="check" @click="addTools2(28)">
  7569. <img
  7570. src="../assets/icon/checkNo.png"
  7571. alt
  7572. v-if="checktoolArray.indexOf(28) == -1"
  7573. />
  7574. <div class="checkDiv" v-else>
  7575. <img src="../assets/icon/checkedIs.png" alt /><span
  7576. >已选择</span
  7577. >
  7578. </div>
  7579. </div>
  7580. </div>
  7581. <div class="tool">
  7582. <div class="whiteBIcon" @click="addTools2(31)">
  7583. <img
  7584. src="../assets/icon/secondToolList/networkPanel.png"
  7585. alt
  7586. />
  7587. <div style="margin: 5px 0">数字画板</div>
  7588. </div>
  7589. <div class="check" @click="addTools2(31)">
  7590. <img
  7591. src="../assets/icon/checkNo.png"
  7592. alt
  7593. v-if="checktoolArray.indexOf(31) == -1"
  7594. />
  7595. <div class="checkDiv" v-else>
  7596. <img src="../assets/icon/checkedIs.png" alt /><span
  7597. >已选择</span
  7598. >
  7599. </div>
  7600. </div>
  7601. </div>
  7602. <div class="tool">
  7603. <div class="whiteBIcon" @click="addTools2(39)">
  7604. <img
  7605. src="../assets/icon/secondToolList/GeoGebra.png"
  7606. alt
  7607. />
  7608. <div style="margin: 5px 0">GeoGebra</div>
  7609. </div>
  7610. <div class="check" @click="addTools2(39)">
  7611. <img
  7612. src="../assets/icon/checkNo.png"
  7613. alt
  7614. v-if="checktoolArray.indexOf(39) == -1"
  7615. />
  7616. <div class="checkDiv" v-else>
  7617. <img src="../assets/icon/checkedIs.png" alt /><span
  7618. >已选择</span
  7619. >
  7620. </div>
  7621. </div>
  7622. </div>
  7623. <div class="tool">
  7624. <div class="whiteBIcon" @click="addTools2(66)">
  7625. <img
  7626. src="../assets/icon/secondToolList/formulaEdi.png"
  7627. alt
  7628. />
  7629. <div style="margin: 5px 0">公式编辑</div>
  7630. </div>
  7631. <div class="check" @click="addTools2(66)">
  7632. <img
  7633. src="../assets/icon/checkNo.png"
  7634. alt
  7635. v-if="checktoolArray.indexOf(66) == -1"
  7636. />
  7637. <div class="checkDiv" v-else>
  7638. <img src="../assets/icon/checkedIs.png" alt /><span
  7639. >已选择</span
  7640. >
  7641. </div>
  7642. </div>
  7643. </div>
  7644. <div class="tool">
  7645. <div class="whiteBIcon" @click="addTools2(67)">
  7646. <img
  7647. src="../assets/icon/secondToolList/molStr.png"
  7648. alt
  7649. />
  7650. <div style="margin: 5px 0">分子结构</div>
  7651. </div>
  7652. <div class="check" @click="addTools2(67)">
  7653. <img
  7654. src="../assets/icon/checkNo.png"
  7655. alt
  7656. v-if="checktoolArray.indexOf(67) == -1"
  7657. />
  7658. <div class="checkDiv" v-else>
  7659. <img src="../assets/icon/checkedIs.png" alt /><span
  7660. >已选择</span
  7661. >
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div class="tool">
  7666. <div class="whiteBIcon" @click="addTools2(68)">
  7667. <img
  7668. src="../assets/icon/secondToolList/timeAxis.png"
  7669. alt
  7670. />
  7671. <div style="margin: 5px 0">时间轴</div>
  7672. </div>
  7673. <div class="check" @click="addTools2(68)">
  7674. <img
  7675. src="../assets/icon/checkNo.png"
  7676. alt
  7677. v-if="checktoolArray.indexOf(68) == -1"
  7678. />
  7679. <div class="checkDiv" v-else>
  7680. <img src="../assets/icon/checkedIs.png" alt /><span
  7681. >已选择</span
  7682. >
  7683. </div>
  7684. </div>
  7685. </div>
  7686. </div>
  7687. <div class="toolSort" v-if="toolType == 7">
  7688. <div class="tool">
  7689. <div class="whiteBIcon" @click="addTools2(40)">
  7690. <img
  7691. src="../assets/icon/secondToolList/eval.png"
  7692. alt
  7693. />
  7694. <div style="margin: 5px 0">个人评价</div>
  7695. </div>
  7696. <div class="check" @click="addTools2(40)">
  7697. <img
  7698. src="../assets/icon/checkNo.png"
  7699. alt
  7700. v-if="checktoolArray.indexOf(40) == -1"
  7701. />
  7702. <div class="checkDiv" v-else>
  7703. <img src="../assets/icon/checkedIs.png" alt /><span
  7704. >已选择</span
  7705. >
  7706. </div>
  7707. </div>
  7708. </div>
  7709. </div>
  7710. <div class="toolSort" v-if="toolType == 4">
  7711. <div class="tool">
  7712. <div class="whiteBIcon" @click="addTools2(26)">
  7713. <img
  7714. src="../assets/icon/thirdToolList/courseDesign.png"
  7715. alt
  7716. />
  7717. <div style="margin: 5px 0">课程设计</div>
  7718. </div>
  7719. <div class="check" @click="addTools2(26)">
  7720. <img
  7721. src="../assets/icon/checkNo.png"
  7722. alt
  7723. v-if="checktoolArray.indexOf(26) == -1"
  7724. />
  7725. <div class="checkDiv" v-else>
  7726. <img src="../assets/icon/checkedIs.png" alt /><span
  7727. >已选择</span
  7728. >
  7729. </div>
  7730. </div>
  7731. </div>
  7732. <div class="tool">
  7733. <div class="whiteBIcon" @click="addTools2(25)">
  7734. <img
  7735. src="../assets/icon/thirdToolList/evalua.png"
  7736. alt
  7737. />
  7738. <div style="margin: 5px 0">目标管理</div>
  7739. </div>
  7740. <div class="check" @click="addTools2(25)">
  7741. <img
  7742. src="../assets/icon/checkNo.png"
  7743. alt
  7744. v-if="checktoolArray.indexOf(25) == -1"
  7745. />
  7746. <div class="checkDiv" v-else>
  7747. <img src="../assets/icon/checkedIs.png" alt /><span
  7748. >已选择</span
  7749. >
  7750. </div>
  7751. </div>
  7752. </div>
  7753. </div>
  7754. </div>
  7755. </div>
  7756. </div>
  7757. </div> -->
  7758. <div
  7759. class="vedioBox"
  7760. style="margin-top: 10px; border-radius: 20px"
  7761. v-if="
  7762. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7763. .eList &&
  7764. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7765. .eList.length &&
  7766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7767. .eList.length > 0 &&
  7768. tType != 2
  7769. "
  7770. >
  7771. <div
  7772. class="queTop"
  7773. style="
  7774. font-size: 20px;
  7775. padding: 15px 0 15px 37px;
  7776. font-weight: bold;
  7777. "
  7778. >
  7779. <!-- <div class="question" style="width: 30px">
  7780. <img src="../assets/icon/toolIcon.png" alt />
  7781. </div>
  7782. <div class="queTitle">
  7783. <div>工具</div>
  7784. </div>-->
  7785. 评一评
  7786. </div>
  7787. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7788. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7789. <el-table
  7790. :data="
  7791. chapInfoList[courseType].chapterInfo[0].taskJson[
  7792. taskCount
  7793. ].eList
  7794. "
  7795. :header-cell-style="{ background: '#F0F4FA' }"
  7796. :row-class-name="tableRowClassName"
  7797. border
  7798. stripe
  7799. style="width: 100%"
  7800. >
  7801. <el-table-column
  7802. label="评价名称"
  7803. align="center"
  7804. >
  7805. <template slot-scope="scope"
  7806. ><div>{{ scope.row.value }}</div></template
  7807. >
  7808. </el-table-column>
  7809. <el-table-column
  7810. label="评价描述"
  7811. align="center"
  7812. >
  7813. <template slot-scope="scope"
  7814. ><div>
  7815. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7816. </div></template
  7817. >
  7818. </el-table-column>
  7819. <el-table-column label="目标" align="center">
  7820. <template slot-scope="scope"
  7821. ><div>
  7822. {{
  7823. scope.row.target
  7824. ? scope.row.target[scope.row.target.length - 1]
  7825. : "-"
  7826. }}
  7827. </div></template
  7828. ></el-table-column
  7829. >
  7830. </el-table>
  7831. <!-- <div
  7832. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7833. .chapterInfo[0].taskJson[taskCount].eList"
  7834. :key="eIndex"
  7835. class="elist_input_box"
  7836. >
  7837. <div style="width: 95%">
  7838. <div
  7839. style="
  7840. display: flex;
  7841. flex-direction: row;
  7842. flex-wrap: nowrap;
  7843. align-items: center;
  7844. "
  7845. >
  7846. <div style="max-width: calc(100% - 285px)">
  7847. <span>{{ eItem.value }}</span>
  7848. </div>
  7849. <div
  7850. style="
  7851. padding-left: 25px;
  7852. display: flex;
  7853. flex-direction: row;
  7854. align-items: center;
  7855. "
  7856. >
  7857. <el-rate
  7858. v-model="eItem.score"
  7859. :colors="colors"
  7860. disabled
  7861. ></el-rate>
  7862. </div>
  7863. </div>
  7864. <div class="elist_inptu_text" style="padding-left: 10px">
  7865. <span v-if="eItem.detail != ''">{{
  7866. eItem.detail
  7867. }}</span>
  7868. <span v-else style="color: #b2b1b3; font-size: 14px"
  7869. >暂无描述...</span
  7870. >
  7871. </div>
  7872. </div>
  7873. </div> -->
  7874. </div>
  7875. <div
  7876. v-if="evalua"
  7877. style="
  7878. border: 1px solid #e5e5e5;
  7879. max-width: 650px;
  7880. width: 100%;
  7881. margin-top: 20px;
  7882. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7883. "
  7884. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7885. >
  7886. <div class="e_add_top">
  7887. <div class="e_add_title" style="width: 100%">
  7888. <!-- <span>目标管理名称</span> -->
  7889. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7890. <img
  7891. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7892. src="../assets/line.png"
  7893. class="cru_line"
  7894. style="
  7895. width: 125px;
  7896. height: 20px;
  7897. bottom: -10px;
  7898. left: 5px;
  7899. "
  7900. />
  7901. <!-- <el-input
  7902. v-model="eTitle"
  7903. placeholder="请输入名称"
  7904. @change="setMindData"
  7905. ></el-input>-->
  7906. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7907. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7908. </div>
  7909. </div>
  7910. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7911. <div class="e_add_list_pbox">
  7912. <div class="e_add_list_pbox_title">
  7913. <!-- <span class="type_title">切换模式</span> -->
  7914. <div class="type_content">
  7915. <span
  7916. :class="{ active: typeMode == 1 }"
  7917. @click="typeMode = 1"
  7918. >目标树</span
  7919. >
  7920. <span
  7921. :class="{ active: typeMode == 2 }"
  7922. @click="typeMode = 2"
  7923. >目标罗盘</span
  7924. >
  7925. <!-- <span
  7926. :class="{ active: typeMode == 3 }"
  7927. @click="typeMode = 3"
  7928. >目标看板</span
  7929. > -->
  7930. </div>
  7931. </div>
  7932. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7933. <Mind
  7934. :showBar="false"
  7935. :mindData="data"
  7936. style="width: 100%"
  7937. v-show="typeMode == 1"
  7938. ></Mind>
  7939. <Sunburst
  7940. :Josn="eJson"
  7941. :num="eJSONNum"
  7942. style="width: 100%"
  7943. v-if="typeMode == 2"
  7944. ></Sunburst>
  7945. <SeeBoard
  7946. :Josn="eJson"
  7947. :num="eJSONNum"
  7948. :ename="eTitle"
  7949. style="width: 100%"
  7950. v-if="typeMode == 3"
  7951. >
  7952. </SeeBoard>
  7953. </div>
  7954. </div>
  7955. </div>
  7956. </div>
  7957. </div>
  7958. </div>
  7959. <!-- <div
  7960. class="project_box"
  7961. style="margin-top: 15px; padding-bottom: 30px"
  7962. >
  7963. <div
  7964. style="
  7965. display: flex;
  7966. flex-wrap: nowrap;
  7967. flex-direction: column;
  7968. position: relative;
  7969. "
  7970. >
  7971. <div class="queTop">
  7972. <div class="question">
  7973. <img src="../assets/icon/homeWork.png" alt="" />
  7974. </div>
  7975. <div class="queTitle">
  7976. <div>作业提交<span>(提交图文视频等)</span></div>
  7977. <div>:任务:{{ task.task }}</div>
  7978. </div>
  7979. </div>
  7980. <div class="ediBottom">
  7981. <div
  7982. class="addEditor"
  7983. style="margin-top: 23px"
  7984. @click="openAddWork"
  7985. v-if="!isNoHomeWork"
  7986. >
  7987. 选择文件
  7988. </div>
  7989. <div
  7990. class="addEditor"
  7991. style="margin-top: 23px"
  7992. @click="openAddWork"
  7993. v-else
  7994. >
  7995. 已提交
  7996. </div>
  7997. </div>
  7998. </div>
  7999. </div>-->
  8000. </div>
  8001. </div>
  8002. <el-dialog
  8003. title="作业提交"
  8004. :visible.sync="dialogVisible"
  8005. :append-to-body="true"
  8006. width="500px"
  8007. :before-close="handleClose"
  8008. class="dialog_change"
  8009. >
  8010. <div class="marginT">
  8011. <div>上传文件</div>
  8012. <div
  8013. class="chapter_add"
  8014. @click="addImg($event)"
  8015. v-if="studyJuri[0].cover.length == 0"
  8016. >
  8017. <div class="up_photo">
  8018. <img src="../assets/icon/uploadImg.png" alt />
  8019. </div>
  8020. <!-- <input
  8021. type="file"
  8022. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8023. style="display: none"
  8024. @change="beforeUpload1($event, 1)"
  8025. /> -->
  8026. <input
  8027. type="file"
  8028. accept="*"
  8029. style="display: none"
  8030. @change="beforeUpload1($event, 1)"
  8031. />
  8032. <!-- <input
  8033. type="file"
  8034. accept="image/*"
  8035. capture="camera"
  8036. style="display: none"
  8037. @change="beforeUpload1($event, 1)"
  8038. /> -->
  8039. </div>
  8040. <div
  8041. class="chapter_add"
  8042. style="
  8043. display: flex;
  8044. width: 100%;
  8045. flex-direction: row;
  8046. flex-wrap: wrap;
  8047. justify-content: flex-start;
  8048. padding: 15px 0;
  8049. "
  8050. v-if="studyJuri[0].cover.length > 0"
  8051. >
  8052. <div class="upCover">
  8053. <img
  8054. :src="studyJuri[0].cover[0].url"
  8055. alt
  8056. v-if="fileType == 0"
  8057. />
  8058. <img :src="word" alt v-else-if="fileType == 1" />
  8059. <img :src="video" alt v-else-if="fileType == 2" />
  8060. <img :src="word2" alt v-else-if="fileType == 3" />
  8061. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8062. <div class="deleteWord" @click="clean(1)">
  8063. <img src="../assets/icon/deleteWorks.png" alt />
  8064. </div>
  8065. </div>
  8066. </div>
  8067. </div>
  8068. <div
  8069. class="upload_send"
  8070. @click="addCourseWorks(taskCount)"
  8071. v-if="!proVisible"
  8072. >
  8073. 提交
  8074. </div>
  8075. </el-dialog>
  8076. </div>
  8077. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8078. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8079. '/courseDetail?userid=' +
  8080. userid +
  8081. '&oid=' +
  8082. oid +
  8083. '&org=' +
  8084. org +
  8085. '&cid=' +
  8086. classId +
  8087. '&courseId=' +
  8088. id +
  8089. '&tType=' +
  8090. tType +
  8091. '&screenType=' +
  8092. screenType
  8093. )"></classRoomHelper>
  8094. </div>
  8095. <div
  8096. class="pButton"
  8097. @click="(pzDialog = true), selectPz()"
  8098. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8099. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8100. >
  8101. <!-- 批 -->
  8102. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8103. </div>
  8104. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8105. <div class="pzTop2">
  8106. <!-- <div>评论</div>
  8107. <div @click="pzDialog = false">
  8108. <img src="../assets/close1.png" alt="" />
  8109. </div> -->
  8110. <div class="checkbox">
  8111. <!-- <div class="check" style="font-size: 25px; position: unset">
  8112. 评论
  8113. </div> -->
  8114. <div class="cb-tabList">
  8115. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8116. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8117. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8118. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8119. </div>
  8120. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8121. <el-option label="时间降序" :value="1"></el-option>
  8122. <el-option label="时间升序" :value="2"></el-option>
  8123. <el-option label="我的评课" :value="3"></el-option>
  8124. </el-select>
  8125. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8126. </div>
  8127. </div>
  8128. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8129. <div class="pzListBox" v-if="pzList && pzList.length">
  8130. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8131. <div class="pzNavTop">
  8132. <div>评</div>
  8133. <div>
  8134. {{
  8135. pz.username && pz.username.length > 5
  8136. ? pz.username.substring(0, 5) + "..."
  8137. : pz.username
  8138. }}的评论
  8139. </div>
  8140. <div
  8141. class="pzDelete"
  8142. v-if="pz.userid == userid"
  8143. @click="deletePz(pz.id)"
  8144. >
  8145. 删除
  8146. </div>
  8147. </div>
  8148. <div
  8149. @click="checkImg(getImgList(pz.content))"
  8150. class="pzContent cont"
  8151. v-html="pz.content"
  8152. v-if="pz.type == '1'"
  8153. ></div>
  8154. <div class="pzContent" v-if="pz.type == '2'">
  8155. <audio :src="pz.content" controls="controls" ref="audio">
  8156. Your browser does not support the audio element.
  8157. </audio>
  8158. </div>
  8159. <div class="pzContent" v-if="pz.type == '3'">
  8160. <img
  8161. :src="pz.content"
  8162. style="width: 90%; margin: 0 auto; display: block"
  8163. @click="previewImg(pz.content)"
  8164. />
  8165. </div>
  8166. <div class="timeAndReply">
  8167. <div class="time">
  8168. {{ pz.time }}
  8169. </div>
  8170. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8171. </div>
  8172. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8173. <div
  8174. v-for="(h, hIndex) in pz.hfList"
  8175. :key="hIndex"
  8176. class="hfItem"
  8177. >
  8178. <div class="whoReplyWho">
  8179. <div class="hfName">{{ h.username }}</div>
  8180. <div class="hfImg">
  8181. <img src="../assets/icon/newIcons/right.png" alt="" />
  8182. </div>
  8183. <div class="hfName">{{ pz.username }}</div>
  8184. </div>
  8185. <div class="hfContent" v-html="h.content"></div>
  8186. <div class="hfBottom">
  8187. <div class="hfTime">{{ h.time }}</div>
  8188. <div
  8189. class="deleteHfItem"
  8190. @click="deleteReply(h.id)"
  8191. v-if="userid == h.userid"
  8192. >
  8193. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8199. <div class="replyInput">
  8200. <el-input v-model="reply[pzIndex]"></el-input>
  8201. </div>
  8202. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8203. </div> -->
  8204. </div>
  8205. </div>
  8206. <div class="noPz" v-else>
  8207. <img src="../assets/icon/noPz.png" alt="" />
  8208. </div>
  8209. <div class="addPzButton">
  8210. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8211. 添加评论
  8212. </div>
  8213. <!-- <div class="img1">
  8214. <div @click="(addPzDialog = true), (pzType = 2)">
  8215. <img src="../assets/audio.png" /><span>音频</span>
  8216. </div>
  8217. </div> -->
  8218. </div>
  8219. </div>
  8220. <div class="scoreList" v-if="commentTagShow==1">
  8221. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8222. </div>
  8223. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8224. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8225. </div>
  8226. </div>
  8227. <div
  8228. v-if="toolDialogVisible == true"
  8229. class="toolMask"
  8230. @click="toolDialogVisible = false"
  8231. ></div>
  8232. <div v-if="toolDialogVisible == true" class="addToolCss">
  8233. <div class="toolTop">
  8234. <div style="font-weight: bold">新增工具</div>
  8235. <div @click="toolDialogVisible = false">
  8236. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8237. </div>
  8238. </div>
  8239. <div class="tool_box">
  8240. <div class="tool_type_box">
  8241. <div class="chooseWho">
  8242. <div
  8243. :class="toolType == 0 ? 'isChooseActive' : ''"
  8244. @click="(toolType = 0), $forceUpdate()"
  8245. >
  8246. 互动类
  8247. </div>
  8248. <div
  8249. :class="toolType == 1 ? 'isChooseActive' : ''"
  8250. @click="(toolType = 1), $forceUpdate()"
  8251. >
  8252. 思维类
  8253. </div>
  8254. <div
  8255. :class="toolType == 2 ? 'isChooseActive' : ''"
  8256. @click="(toolType = 2), $forceUpdate()"
  8257. >
  8258. 测评类
  8259. </div>
  8260. <div
  8261. :class="toolType == 3 ? 'isChooseActive' : ''"
  8262. @click="(toolType = 3), $forceUpdate()"
  8263. >
  8264. 编程类
  8265. </div>
  8266. <div
  8267. :class="toolType == 5 ? 'isChooseActive' : ''"
  8268. @click="(toolType = 5), $forceUpdate()"
  8269. >
  8270. 学科类
  8271. </div>
  8272. </div>
  8273. </div>
  8274. <div>
  8275. <div class="toolSort" v-if="toolType == 0">
  8276. <div
  8277. class="tool"
  8278. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8279. @click="addTools2(10)"
  8280. >
  8281. <div class="whiteBIcon">
  8282. <img src="../assets/icon/thirdToolList/time.png" alt />
  8283. <div style="margin: 5px 0">倒计时</div>
  8284. </div>
  8285. <div class="check">
  8286. <div
  8287. v-if="checktoolArray.indexOf(10) == -1"
  8288. class="noChoose"
  8289. ></div>
  8290. <div v-else class="isChoose"></div>
  8291. </div>
  8292. </div>
  8293. <div
  8294. class="tool"
  8295. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8296. @click="addTools2(65)"
  8297. >
  8298. <div class="whiteBIcon">
  8299. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8300. <div style="margin: 5px 0">挑人</div>
  8301. </div>
  8302. <div class="check">
  8303. <div
  8304. v-if="checktoolArray.indexOf(65) == -1"
  8305. class="noChoose"
  8306. ></div>
  8307. <div v-else class="isChoose"></div>
  8308. </div>
  8309. </div>
  8310. </div>
  8311. <div class="toolSort" v-if="toolType == 1">
  8312. <div
  8313. class="tool"
  8314. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8315. @click="addTools2(7)"
  8316. >
  8317. <div class="whiteBIcon">
  8318. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8319. <div style="margin: 5px 0">思维网格</div>
  8320. </div>
  8321. <div class="check">
  8322. <div
  8323. v-if="checktoolArray.indexOf(7) == -1"
  8324. class="noChoose"
  8325. ></div>
  8326. <div v-else class="isChoose"></div>
  8327. </div>
  8328. </div>
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8332. @click="addTools2(1)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8336. <div style="margin: 5px 0">电子白板</div>
  8337. </div>
  8338. <div class="check">
  8339. <div
  8340. v-if="checktoolArray.indexOf(1) == -1"
  8341. class="noChoose"
  8342. ></div>
  8343. <div v-else class="isChoose"></div>
  8344. </div>
  8345. </div>
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8349. @click="addTools2(52)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/fourthToolList/text.png" alt />
  8353. <div style="margin: 5px 0">文档</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(52) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. <div
  8364. class="tool"
  8365. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8366. @click="addTools2(3)"
  8367. >
  8368. <div class="whiteBIcon">
  8369. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8370. <div style="margin: 5px 0">思维导图</div>
  8371. </div>
  8372. <div class="check">
  8373. <div
  8374. v-if="checktoolArray.indexOf(3) == -1"
  8375. class="noChoose"
  8376. ></div>
  8377. <div v-else class="isChoose"></div>
  8378. </div>
  8379. </div>
  8380. <div
  8381. class="tool"
  8382. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8383. @click="addTools2(48)"
  8384. >
  8385. <div class="whiteBIcon">
  8386. <img src="../assets/icon/fourthToolList/table.png" alt />
  8387. <div style="margin: 5px 0">表格</div>
  8388. </div>
  8389. <div class="check">
  8390. <div
  8391. v-if="checktoolArray.indexOf(48) == -1"
  8392. class="noChoose"
  8393. ></div>
  8394. <div v-else class="isChoose"></div>
  8395. </div>
  8396. </div>
  8397. </div>
  8398. <div class="toolSort" v-if="toolType == 6">
  8399. <div v-show="tooC == 49">
  8400. <img
  8401. @click="addTools(tooC, toolIndex, taskCount)"
  8402. src="../assets/icon/fourthToolList/group.png"
  8403. alt
  8404. />
  8405. <div style="margin: 5px 0">学生分组</div>
  8406. </div>
  8407. </div>
  8408. <div class="toolSort" v-if="toolType == 2">
  8409. <div
  8410. class="tool"
  8411. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8412. @click="addTools2(16)"
  8413. >
  8414. <div class="whiteBIcon">
  8415. <img src="../assets/icon/thirdToolList/work.png" alt />
  8416. <div style="margin: 5px 0">作业提交</div>
  8417. </div>
  8418. <div class="check">
  8419. <div
  8420. v-if="checktoolArray.indexOf(16) == -1"
  8421. class="noChoose"
  8422. ></div>
  8423. <div v-else class="isChoose"></div>
  8424. </div>
  8425. </div>
  8426. <div
  8427. class="tool"
  8428. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8429. @click="addTools2(50)"
  8430. >
  8431. <div class="whiteBIcon">
  8432. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8433. <div style="margin: 5px 0">批量上传</div>
  8434. </div>
  8435. <div class="check">
  8436. <div
  8437. v-if="checktoolArray.indexOf(50) == -1"
  8438. class="noChoose"
  8439. ></div>
  8440. <div v-else class="isChoose"></div>
  8441. </div>
  8442. </div>
  8443. </div>
  8444. <div class="toolSort" v-if="toolType == 3">
  8445. <div
  8446. class="tool"
  8447. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8448. @click="addTools2(18)"
  8449. >
  8450. <div class="whiteBIcon">
  8451. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8452. <div style="margin: 5px 0">训练平台</div>
  8453. </div>
  8454. <div class="check">
  8455. <div
  8456. v-if="checktoolArray.indexOf(18) == -1"
  8457. class="noChoose"
  8458. ></div>
  8459. <div v-else class="isChoose"></div>
  8460. </div>
  8461. </div>
  8462. <div
  8463. class="tool"
  8464. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8465. @click="addTools2(21)"
  8466. >
  8467. <div class="whiteBIcon">
  8468. <img src="../assets/icon/fourthToolList/program.png" alt />
  8469. <div style="margin: 5px 0">AIoT Blockly</div>
  8470. </div>
  8471. <div class="check">
  8472. <div
  8473. v-if="checktoolArray.indexOf(21) == -1"
  8474. class="noChoose"
  8475. ></div>
  8476. <div v-else class="isChoose"></div>
  8477. </div>
  8478. </div>
  8479. <div
  8480. class="tool"
  8481. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8482. @click="addTools2(23)"
  8483. >
  8484. <div class="whiteBIcon">
  8485. <img
  8486. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8487. alt
  8488. />
  8489. <div style="margin: 5px 0">AI Python</div>
  8490. </div>
  8491. <div class="check">
  8492. <div
  8493. v-if="checktoolArray.indexOf(23) == -1"
  8494. class="noChoose"
  8495. ></div>
  8496. <div v-else class="isChoose"></div>
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="tool"
  8501. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8502. @click="addTools2(24)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8506. <div style="margin: 5px 0">AI Blockly</div>
  8507. </div>
  8508. <div class="check">
  8509. <div
  8510. v-if="checktoolArray.indexOf(24) == -1"
  8511. class="noChoose"
  8512. ></div>
  8513. <div v-else class="isChoose"></div>
  8514. </div>
  8515. </div>
  8516. <div
  8517. class="tool"
  8518. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8519. @click="addTools2(32)"
  8520. >
  8521. <div class="whiteBIcon">
  8522. <img src="../assets/icon/thirdToolList/code.png" alt />
  8523. <div style="margin: 5px 0">源码编辑</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(32) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. <div
  8534. class="tool"
  8535. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8536. @click="addTools2(57)"
  8537. >
  8538. <div class="whiteBIcon">
  8539. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8540. <div style="margin: 5px 0">CocoPi</div>
  8541. </div>
  8542. <div class="check">
  8543. <div
  8544. v-if="checktoolArray.indexOf(57) == -1"
  8545. class="noChoose"
  8546. ></div>
  8547. <div v-else class="isChoose"></div>
  8548. </div>
  8549. </div>
  8550. <div
  8551. class="tool"
  8552. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8553. @click="addTools2(63)"
  8554. >
  8555. <div class="whiteBIcon">
  8556. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8557. <div style="margin: 5px 0">海龟编程</div>
  8558. </div>
  8559. <div class="check">
  8560. <div
  8561. v-if="checktoolArray.indexOf(63) == -1"
  8562. class="noChoose"
  8563. ></div>
  8564. <div v-else class="isChoose"></div>
  8565. </div>
  8566. </div>
  8567. <div
  8568. class="tool"
  8569. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8570. @click="addTools2(71)"
  8571. >
  8572. <div class="whiteBIcon">
  8573. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8574. <div style="margin: 5px 0">AI智能体</div>
  8575. </div>
  8576. <div class="check">
  8577. <div
  8578. v-if="checktoolArray.indexOf(71) == -1"
  8579. class="noChoose"
  8580. ></div>
  8581. <div v-else class="isChoose"></div>
  8582. </div>
  8583. </div>
  8584. </div>
  8585. <div class="toolSort" v-if="toolType == 7">
  8586. <div
  8587. class="tool"
  8588. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8589. @click="addTools2(40)"
  8590. >
  8591. <div class="whiteBIcon">
  8592. <img src="../assets/icon/secondToolList/eval.png" alt />
  8593. <div style="margin: 5px 0">个人评价</div>
  8594. </div>
  8595. <div class="check">
  8596. <div
  8597. v-if="checktoolArray.indexOf(40) == -1"
  8598. class="noChoose"
  8599. ></div>
  8600. <div v-else class="isChoose"></div>
  8601. </div>
  8602. </div>
  8603. </div>
  8604. <div class="toolSort" v-if="toolType == 5">
  8605. <div
  8606. class="tool"
  8607. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8608. @click="addTools2(28)"
  8609. >
  8610. <div class="whiteBIcon">
  8611. <img src="../assets/icon/secondToolList/translation.png" alt />
  8612. <div style="margin: 5px 0">翻译</div>
  8613. </div>
  8614. <div class="check">
  8615. <div
  8616. v-if="checktoolArray.indexOf(28) == -1"
  8617. class="noChoose"
  8618. ></div>
  8619. <div v-else class="isChoose"></div>
  8620. </div>
  8621. </div>
  8622. <div
  8623. class="tool"
  8624. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8625. @click="addTools2(31)"
  8626. >
  8627. <div class="whiteBIcon">
  8628. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8629. <div style="margin: 5px 0">数字画板</div>
  8630. </div>
  8631. <div class="check">
  8632. <div
  8633. v-if="checktoolArray.indexOf(31) == -1"
  8634. class="noChoose"
  8635. ></div>
  8636. <div v-else class="isChoose"></div>
  8637. </div>
  8638. </div>
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8642. @click="addTools2(39)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8646. <div style="margin: 5px 0">GeoGebra</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(39) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. <div
  8657. class="tool"
  8658. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8659. @click="addTools2(66)"
  8660. >
  8661. <div class="whiteBIcon">
  8662. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8663. <div style="margin: 5px 0">公式编辑</div>
  8664. </div>
  8665. <div class="check">
  8666. <div
  8667. v-if="checktoolArray.indexOf(66) == -1"
  8668. class="noChoose"
  8669. ></div>
  8670. <div v-else class="isChoose"></div>
  8671. </div>
  8672. </div>
  8673. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8674. <div class="whiteBIcon" @click="addTools2(67)">
  8675. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8676. <div style="margin: 5px 0">分子结构</div>
  8677. </div>
  8678. <div class="check" @click="addTools2(67)">
  8679. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8680. <div v-else class="isChoose"></div>
  8681. </div>
  8682. </div> -->
  8683. <div
  8684. class="tool"
  8685. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8686. @click="addTools2(68)"
  8687. >
  8688. <div class="whiteBIcon">
  8689. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8690. <div style="margin: 5px 0">时间轴</div>
  8691. </div>
  8692. <div class="check">
  8693. <div
  8694. v-if="checktoolArray.indexOf(68) == -1"
  8695. class="noChoose"
  8696. ></div>
  8697. <div v-else class="isChoose"></div>
  8698. </div>
  8699. </div>
  8700. <!-- <div
  8701. class="tool"
  8702. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8703. @click="addTools2(69)"
  8704. >
  8705. <div class="whiteBIcon">
  8706. <img src="../assets/icon/secondToolList/english.png" alt />
  8707. <div style="margin: 5px 0">英语写作</div>
  8708. </div>
  8709. <div class="check">
  8710. <div
  8711. v-if="checktoolArray.indexOf(69) == -1"
  8712. class="noChoose"
  8713. ></div>
  8714. <div v-else class="isChoose"></div>
  8715. </div>
  8716. </div> -->
  8717. </div>
  8718. <div class="toolSort" v-if="toolType == 4">
  8719. <div
  8720. class="tool"
  8721. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8722. @click="addTools2(26)"
  8723. >
  8724. <div class="whiteBIcon">
  8725. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8726. <div style="margin: 5px 0">课程设计</div>
  8727. </div>
  8728. <div class="check">
  8729. <div
  8730. v-if="checktoolArray.indexOf(26) == -1"
  8731. class="noChoose"
  8732. ></div>
  8733. <div v-else class="isChoose"></div>
  8734. </div>
  8735. </div>
  8736. <div
  8737. class="tool"
  8738. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8739. @click="addTools2(25)"
  8740. >
  8741. <div class="whiteBIcon">
  8742. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8743. <div style="margin: 5px 0">目标管理</div>
  8744. </div>
  8745. <div class="check">
  8746. <div
  8747. v-if="checktoolArray.indexOf(25) == -1"
  8748. class="noChoose"
  8749. ></div>
  8750. <div v-else class="isChoose"></div>
  8751. </div>
  8752. </div>
  8753. </div>
  8754. </div>
  8755. </div>
  8756. <span
  8757. slot="footer"
  8758. class="dialog-footer"
  8759. style="display: block; text-align: center; padding: 0 0 10px 0"
  8760. >
  8761. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8762. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8763. </span>
  8764. </div>
  8765. <div
  8766. v-if="replyDialogVisible == true"
  8767. class="addDialogCss"
  8768. v-el-drag-dialog
  8769. >
  8770. <div class="pzTop">
  8771. <div class="teacherPz">
  8772. <div class="teacherPzImg">
  8773. <img src="../assets/icon/teacherPz.png" alt="" />
  8774. </div>
  8775. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8776. </div>
  8777. <div @click="replyDialogVisible = false">
  8778. <img src="../assets/close1.png" class="pzClose" alt="" />
  8779. </div>
  8780. </div>
  8781. <div class="addPzBox">
  8782. <!-- <div class="addPzCheck">
  8783. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8784. >文本</span
  8785. >
  8786. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8787. >音频</span
  8788. >
  8789. </div> -->
  8790. <div style="height: calc(100% - 50px)">
  8791. <editor-bar
  8792. class="binfo_input pzConText"
  8793. style="width: 100% !important; margin: 0 auto"
  8794. placeholder="请输入回复描述"
  8795. v-model="reply"
  8796. @change="change"
  8797. ></editor-bar>
  8798. </div>
  8799. <div class="addTextCss" @click="addHf">确定</div>
  8800. </div>
  8801. </div>
  8802. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8803. <div class="pzTop">
  8804. <div class="teacherPz">
  8805. <div class="teacherPzImg">
  8806. <img src="../assets/icon/teacherPz.png" alt="" />
  8807. </div>
  8808. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8809. </div>
  8810. <div @click="addPzDialog = false">
  8811. <img src="../assets/close1.png" class="pzClose" alt="" />
  8812. </div>
  8813. </div>
  8814. <div class="addPzBox">
  8815. <div class="addPzCheck">
  8816. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8817. >文本</span
  8818. >
  8819. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8820. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8821. >音频</span
  8822. >
  8823. </div>
  8824. <div style="height: calc(100% - 95px)">
  8825. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8826. v-if="pzType == 1"></textarea> -->
  8827. <editor-bar
  8828. class="binfo_input pzConText"
  8829. style="width: 100% !important"
  8830. placeholder="请输入任务描述"
  8831. v-model="pzConText"
  8832. @change="change"
  8833. v-if="pzType == 1"
  8834. ></editor-bar>
  8835. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8836. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8837. <div @click="addImg($event)">
  8838. <el-button type="primary">上传图片</el-button>
  8839. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8840. @change="beforeUpload1($event, 4)" />
  8841. </div>
  8842. </div> -->
  8843. </div>
  8844. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8845. 确定
  8846. </div>
  8847. </div>
  8848. </div>
  8849. <div v-if="proVisible" class="mask">
  8850. <div class="progressBox">
  8851. <!-- <div id="closePro" class="closeCss">
  8852. <img src="../assets/icon/close.png" alt />
  8853. </div> -->
  8854. <div class="lbox">
  8855. <img src="../assets/loading.gif" />上传中,请稍后
  8856. </div>
  8857. <div style="margin-bottom: 10px">
  8858. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8859. </div>
  8860. <el-progress
  8861. :text-inside="true"
  8862. :stroke-width="20"
  8863. :percentage="progress"
  8864. style="width: 80%"
  8865. ></el-progress>
  8866. </div>
  8867. </div>
  8868. <div v-if="proVisible2" class="mask">
  8869. <div class="progressBox">
  8870. <div class="lbox">
  8871. <img src="../assets/loading.gif" />上传中,请稍后
  8872. </div>
  8873. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8874. </div>
  8875. </div>
  8876. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8877. <img width="100%" :src="dialogImageUrl" alt />
  8878. </el-dialog>
  8879. <el-dialog
  8880. :title="noteName != '' ? noteName : '查看问卷'"
  8881. :visible.sync="dialogVisible5"
  8882. :append-to-body="true"
  8883. width="1000px"
  8884. :before-close="handleClose"
  8885. class="dialog_diy dialog_diy3"
  8886. >
  8887. <div>
  8888. <div
  8889. class="a_add_title"
  8890. style="
  8891. display: flex;
  8892. flex-direction: row;
  8893. align-items: center;
  8894. justify-content: center;
  8895. "
  8896. >
  8897. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8898. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8899. </div>
  8900. <div class="a_addBox">
  8901. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8902. 题目内容
  8903. </div>
  8904. <div
  8905. class="a_add_box"
  8906. v-for="(item1, index1) in askJson.askCount"
  8907. :key="index1"
  8908. >
  8909. <div class="a_add_head">
  8910. <div style="display: flex">
  8911. <span class="askIndex"> {{ index1 + 1 }}</span>
  8912. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8913. </div>
  8914. <img
  8915. v-if="askJson.askJson[index1].img"
  8916. :src="askJson.askJson[index1].img"
  8917. style="height: 300px; margin-top: 10px; max-width: 100%"
  8918. />
  8919. </div>
  8920. <div class="a_add_body">
  8921. <div class="a_add_input">
  8922. <el-radio-group
  8923. v-model="radio[index1]"
  8924. v-if="
  8925. askJson.askJson[index1].type == '1' ||
  8926. !askJson.askJson[index1].type
  8927. "
  8928. >
  8929. <el-radio
  8930. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8931. .checkList"
  8932. :key="checkIndex"
  8933. :label="checkIndex"
  8934. :disabled="isAnswer"
  8935. class="redioStyle"
  8936. ><span v-html="item2"></span
  8937. ></el-radio>
  8938. </el-radio-group>
  8939. <el-checkbox-group
  8940. v-model="radio[index1]"
  8941. v-if="askJson.askJson[index1].type == '2'"
  8942. >
  8943. <el-checkbox
  8944. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8945. .checkList"
  8946. :key="checkIndex1"
  8947. :label="checkIndex1"
  8948. :disabled="isAnswer"
  8949. class="redioStyle"
  8950. ><span v-html="item2"></span>
  8951. </el-checkbox>
  8952. </el-checkbox-group>
  8953. </div>
  8954. </div>
  8955. </div>
  8956. </div>
  8957. </div>
  8958. <span slot="footer" class="dialog-footer">
  8959. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8960. >取 消</el-button
  8961. >
  8962. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8963. >确 定</el-button
  8964. >
  8965. </span>
  8966. </el-dialog>
  8967. <el-dialog
  8968. :title="noteName != '' ? noteName : '查看问卷'"
  8969. :visible.sync="dialogVisible5Teacher"
  8970. :append-to-body="true"
  8971. width="1000px"
  8972. :before-close="handleClose"
  8973. class="dialog_diy dialog_diy3"
  8974. >
  8975. <div>
  8976. <div class="w_name">
  8977. 学生姓名:<span>{{ sStudent.student }}</span>
  8978. </div>
  8979. <div
  8980. class="a_add_title"
  8981. style="
  8982. display: flex;
  8983. flex-direction: row;
  8984. align-items: center;
  8985. justify-content: center;
  8986. "
  8987. >
  8988. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8989. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8990. </div>
  8991. <div class="a_addBox">
  8992. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8993. 题目内容
  8994. </div>
  8995. <div
  8996. class="a_add_box"
  8997. v-for="(item1, index1) in askJson.askCount"
  8998. :key="index1"
  8999. >
  9000. <div class="a_add_head">
  9001. <div style="display: flex">
  9002. <span class="askIndex">{{ index1 + 1 }}</span>
  9003. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9004. </div>
  9005. <img
  9006. v-if="askJson.askJson[index1].img"
  9007. :src="askJson.askJson[index1].img"
  9008. style="height: 300px; margin-top: 10px; max-width: 100%"
  9009. />
  9010. </div>
  9011. <div class="a_add_body">
  9012. <div class="a_add_input">
  9013. <el-radio-group
  9014. v-model="radio[index1]"
  9015. v-if="
  9016. askJson.askJson[index1].type == '1' ||
  9017. !askJson.askJson[index1].type
  9018. "
  9019. >
  9020. <el-radio
  9021. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9022. .checkList"
  9023. :key="checkIndex"
  9024. :label="checkIndex"
  9025. :disabled="isAnswer"
  9026. class="redioStyle"
  9027. ><span v-html="item2"></span
  9028. ></el-radio>
  9029. </el-radio-group>
  9030. <el-checkbox-group
  9031. v-model="radio[index1]"
  9032. v-if="askJson.askJson[index1].type == '2'"
  9033. >
  9034. <el-checkbox
  9035. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9036. .checkList"
  9037. :key="checkIndex1"
  9038. :label="checkIndex1"
  9039. :disabled="isAnswer"
  9040. class="redioStyle"
  9041. ><span v-html="item2"></span>
  9042. </el-checkbox>
  9043. </el-checkbox-group>
  9044. </div>
  9045. </div>
  9046. </div>
  9047. </div>
  9048. </div>
  9049. <span slot="footer" class="dialog-footer">
  9050. <el-button
  9051. @click="dialogVisible5Teacher = false"
  9052. v-show="noteName == ''"
  9053. >取 消</el-button
  9054. >
  9055. <el-button
  9056. type="primary"
  9057. @click="addStudentAskTeacher"
  9058. v-show="noteName == ''"
  9059. >确 定</el-button
  9060. >
  9061. </span>
  9062. </el-dialog>
  9063. <el-dialog
  9064. :title="noteName != '' ? noteName : '查看选择题'"
  9065. :visible.sync="dialogVisibleChoice"
  9066. :append-to-body="true"
  9067. width="1000px"
  9068. :before-close="handleClose"
  9069. class="dialog_diy dialog_diy3"
  9070. >
  9071. <div>
  9072. <!-- <div class="a_add_title" style="
  9073. display: flex;
  9074. flex-direction: row;
  9075. align-items: center;
  9076. justify-content: center;
  9077. ">
  9078. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9079. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9080. </div> -->
  9081. <div class="a_addBox">
  9082. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9083. 题目内容
  9084. </div>
  9085. <div
  9086. class="a_add_box"
  9087. v-for="(item1, index1) in testJson.testCount"
  9088. :key="index1"
  9089. >
  9090. <div class="a_add_head">
  9091. <div style="display: flex">
  9092. <span class="askIndex">{{ index1 + 1 }}</span>
  9093. <div
  9094. v-if="testJson.testJson[index1].type == '1'"
  9095. style="margin-right: 5px; min-width: 70px"
  9096. >
  9097. (单选题)
  9098. </div>
  9099. <div
  9100. v-if="testJson.testJson[index1].type == '2'"
  9101. style="margin-right: 5px; min-width: 70px"
  9102. >
  9103. (多选题)
  9104. </div>
  9105. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9106. </div>
  9107. <img
  9108. v-if="testJson.testJson[index1].img"
  9109. :src="testJson.testJson[index1].img"
  9110. style="height: 300px; margin-top: 10px; max-width: 100%"
  9111. />
  9112. </div>
  9113. <div
  9114. class="timuImgBox"
  9115. v-if="
  9116. testJson.testJson[index1].timuList &&
  9117. testJson.testJson[index1].timuList.length
  9118. "
  9119. >
  9120. <div
  9121. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9122. :key="tIndex"
  9123. class="timuImg"
  9124. @click.stop="previewImg(timg.src)"
  9125. >
  9126. <img :src="timg.src" alt="" />
  9127. </div>
  9128. </div>
  9129. <div class="a_add_body">
  9130. <div class="a_add_input">
  9131. <el-radio-group
  9132. v-model="radio[index1]"
  9133. v-if="testJson.testJson[index1].type == '1'"
  9134. >
  9135. <div class="radioBox">
  9136. <el-radio
  9137. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9138. .checkList"
  9139. :key="checkIndex"
  9140. :label="checkIndex"
  9141. :disabled="isAnswer"
  9142. class="redioStyle"
  9143. >
  9144. <div
  9145. style="margin-right: 10px"
  9146. v-if="item2 && item2.imgType && item2.imgType == 1"
  9147. >
  9148. <div class="inImg" @click.stop="previewImg(item2.src)">
  9149. <img :src="item2.src" alt="" />
  9150. </div>
  9151. </div>
  9152. <span v-else v-html="item2"></span>
  9153. </el-radio>
  9154. </div>
  9155. </el-radio-group>
  9156. <el-checkbox-group
  9157. v-model="radio[index1]"
  9158. v-if="testJson.testJson[index1].type == '2'"
  9159. >
  9160. <div class="radioBox">
  9161. <el-checkbox
  9162. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9163. .checkList"
  9164. :key="checkIndex"
  9165. :label="checkIndex"
  9166. :disabled="isAnswer"
  9167. class="redioStyle"
  9168. >
  9169. <div
  9170. style="margin-right: 10px"
  9171. v-if="item2 && item2.imgType && item2.imgType == 1"
  9172. >
  9173. <div class="inImg" @click.stop="previewImg(item2.src)">
  9174. <img :src="item2.src" alt="" />
  9175. </div>
  9176. </div>
  9177. <span v-else v-html="item2"></span>
  9178. </el-checkbox>
  9179. </div>
  9180. </el-checkbox-group>
  9181. </div>
  9182. </div>
  9183. </div>
  9184. </div>
  9185. </div>
  9186. <span slot="footer" class="dialog-footer">
  9187. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9188. >取 消</el-button
  9189. >
  9190. <el-button
  9191. type="primary"
  9192. @click="addStudentTest"
  9193. v-show="noteName == ''"
  9194. >确 定</el-button
  9195. >
  9196. </span>
  9197. </el-dialog>
  9198. <el-dialog
  9199. :title="noteName != '' ? noteName : '查看选择题'"
  9200. :visible.sync="dialogVisibleChoiceTeacher"
  9201. :append-to-body="true"
  9202. width="1000px"
  9203. :before-close="handleClose"
  9204. class="dialog_diy dialog_diy3"
  9205. >
  9206. <div>
  9207. <div class="w_name">
  9208. 学生姓名:<span>{{ sStudent.student }}</span>
  9209. </div>
  9210. <div class="a_addBox">
  9211. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9212. 题目内容
  9213. </div>
  9214. <div
  9215. class="a_add_box"
  9216. v-for="(item1, index1) in testJson.testCount"
  9217. :key="index1"
  9218. >
  9219. <div class="a_add_head">
  9220. <div style="display: flex">
  9221. <span class="askIndex">{{ index1 + 1 }}</span>
  9222. <div
  9223. v-if="testJson.testJson[index1].type == '1'"
  9224. style="margin-right: 5px; min-width: 70px"
  9225. >
  9226. (单选题)
  9227. </div>
  9228. <div
  9229. v-if="testJson.testJson[index1].type == '2'"
  9230. style="margin-right: 5px; min-width: 70px"
  9231. >
  9232. (多选题)
  9233. </div>
  9234. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9235. </div>
  9236. <img
  9237. v-if="testJson.testJson[index1].img"
  9238. :src="testJson.testJson[index1].img"
  9239. style="height: 300px; margin-top: 10px; max-width: 100%"
  9240. />
  9241. </div>
  9242. <div
  9243. class="timuImgBox"
  9244. v-if="
  9245. testJson.testJson[index1].timuList &&
  9246. testJson.testJson[index1].timuList.length
  9247. "
  9248. >
  9249. <div
  9250. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9251. :key="tIndex"
  9252. class="timuImg"
  9253. @click.stop="previewImg(timg.src)"
  9254. >
  9255. <img :src="timg.src" alt="" />
  9256. </div>
  9257. </div>
  9258. <div class="a_add_body">
  9259. <div class="a_add_input">
  9260. <el-radio-group
  9261. v-model="radio[index1]"
  9262. v-if="testJson.testJson[index1].type == '1'"
  9263. >
  9264. <div class="radioBox">
  9265. <el-radio
  9266. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9267. .checkList"
  9268. :key="checkIndex"
  9269. :label="checkIndex"
  9270. :disabled="isAnswer"
  9271. class="redioStyle"
  9272. >
  9273. <div
  9274. style="margin-right: 10px"
  9275. v-if="item2 && item2.imgType && item2.imgType == 1"
  9276. >
  9277. <div class="inImg" @click.stop="previewImg(item2.src)">
  9278. <img :src="item2.src" alt="" />
  9279. </div>
  9280. </div>
  9281. <span v-else v-html="item2"></span>
  9282. </el-radio>
  9283. </div>
  9284. </el-radio-group>
  9285. <el-checkbox-group
  9286. v-model="radio[index1]"
  9287. v-if="testJson.testJson[index1].type == '2'"
  9288. >
  9289. <div class="radioBox">
  9290. <el-checkbox
  9291. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9292. .checkList"
  9293. :key="checkIndex"
  9294. :label="checkIndex"
  9295. :disabled="isAnswer"
  9296. class="redioStyle"
  9297. >
  9298. <div
  9299. style="margin-right: 10px"
  9300. v-if="item2 && item2.imgType && item2.imgType == 1"
  9301. >
  9302. <div class="inImg" @click.stop="previewImg(item2.src)">
  9303. <img :src="item2.src" alt="" />
  9304. </div>
  9305. </div>
  9306. <span v-else v-html="item2"></span>
  9307. </el-checkbox>
  9308. </div>
  9309. </el-checkbox-group>
  9310. </div>
  9311. </div>
  9312. </div>
  9313. </div>
  9314. </div>
  9315. <span slot="footer" class="dialog-footer">
  9316. <el-button
  9317. @click="dialogVisibleChoiceTeacher = false"
  9318. v-show="noteName == ''"
  9319. >取 消</el-button
  9320. >
  9321. <el-button
  9322. type="primary"
  9323. @click="addStudentTestTeacher"
  9324. v-show="noteName == ''"
  9325. >确 定</el-button
  9326. >
  9327. </span>
  9328. </el-dialog>
  9329. <el-dialog
  9330. title="查看富文本"
  9331. :visible.sync="dialogVisible1"
  9332. :append-to-body="true"
  9333. width="500px"
  9334. :before-close="handleClose"
  9335. class="dialog_diy textCss"
  9336. >
  9337. <el-form style="font-size: 20px">
  9338. <el-form-item label="文本标题" class="textTitle">
  9339. <div style="font-size: 20px">{{ text.name }}</div>
  9340. </el-form-item>
  9341. <div>富文本内容</div>
  9342. <div
  9343. v-html="text.url"
  9344. style="font-size: 18px; padding: 40px 0 0 0"
  9345. ></div>
  9346. </el-form>
  9347. <span slot="footer" class="dialog-footer">
  9348. <el-button type="primary" @click="dialogVisible1 = false"
  9349. >确定</el-button
  9350. >
  9351. </span>
  9352. </el-dialog>
  9353. <el-dialog
  9354. title="文件预览"
  9355. :visible.sync="dialogVisible3"
  9356. width="50%"
  9357. :before-close="handleClose"
  9358. class="dialog_diy"
  9359. :class="{ fullStyle: full }"
  9360. >
  9361. <div slot="title" class="header-title">
  9362. <div style="color: #fff">文件预览</div>
  9363. <div style="position: absolute; top: 19px; right: 50px">
  9364. <img
  9365. src="../assets/full.png"
  9366. style="height: 16px; cursor: pointer"
  9367. alt=""
  9368. @click="fullTools"
  9369. />
  9370. </div>
  9371. </div>
  9372. <pdf
  9373. v-if="showPDF"
  9374. :pdfUrl="pptImgUrl"
  9375. style="width: 100%; height: 520px; overflow: auto"
  9376. :class="{ fullStyle: full }"
  9377. ></pdf>
  9378. <iframe
  9379. v-else
  9380. :src="pptImgUrl"
  9381. frameborder="0"
  9382. width="100%"
  9383. height="600"
  9384. :class="{ fullStyle: full }"
  9385. ></iframe>
  9386. </el-dialog>
  9387. <el-dialog
  9388. title="文件预览"
  9389. :visible.sync="dialogVisible6"
  9390. width="50%"
  9391. :before-close="handleClose"
  9392. class="dialog_diy"
  9393. >
  9394. <iframe
  9395. :src="pptImgUrl1"
  9396. frameborder="0"
  9397. width="100%"
  9398. height="600"
  9399. ></iframe>
  9400. </el-dialog>
  9401. <el-dialog
  9402. title="提示"
  9403. :visible.sync="dialogVisible4"
  9404. :append-to-body="true"
  9405. width="800px"
  9406. :before-close="handleClose"
  9407. class="dialog_diy notice"
  9408. >
  9409. <div>此功能暂未开放!</div>
  9410. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9411. </el-dialog>
  9412. <el-dialog
  9413. title="问答"
  9414. :visible.sync="answerDialogVisible"
  9415. :append-to-body="true"
  9416. width="800px"
  9417. :before-close="handleClose"
  9418. class="dialog_diy"
  9419. >
  9420. <div>
  9421. <div
  9422. style="
  9423. display: flex;
  9424. flex-wrap: nowrap;
  9425. flex-direction: column;
  9426. position: relative;
  9427. "
  9428. >
  9429. <div class="queTop" style="padding: 20px 0 20px 0">
  9430. <div class="question">
  9431. <img src="../assets/icon/question.png" alt />
  9432. </div>
  9433. <div class="queTitle">
  9434. <div style="width: 90px; min-width: 90px">提问:</div>
  9435. <div>{{ answerQ }}</div>
  9436. </div>
  9437. </div>
  9438. <div class="ediBottom">
  9439. <textarea
  9440. rows="6"
  9441. class="binfo_input"
  9442. cols
  9443. style="width: 95%; height: 120px"
  9444. v-model="questionAnswer"
  9445. ></textarea>
  9446. </div>
  9447. </div>
  9448. </div>
  9449. <div slot="footer">
  9450. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9451. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9452. </div>
  9453. </el-dialog>
  9454. <el-dialog
  9455. title="问答"
  9456. :visible.sync="answerDialogVisibleTeacher"
  9457. :append-to-body="true"
  9458. width="800px"
  9459. :before-close="handleClose"
  9460. class="dialog_diy"
  9461. >
  9462. <div>
  9463. <div class="w_name">
  9464. 学生姓名:<span>{{ sStudent.student }}</span>
  9465. </div>
  9466. <div
  9467. style="
  9468. display: flex;
  9469. flex-wrap: nowrap;
  9470. flex-direction: column;
  9471. position: relative;
  9472. "
  9473. >
  9474. <div class="queTop" style="padding: 20px 0 20px 0">
  9475. <div class="question">
  9476. <img src="../assets/icon/question.png" alt />
  9477. </div>
  9478. <div class="queTitle">
  9479. <div style="width: 90px; min-width: 90px">提问:</div>
  9480. <div>{{ answerQ }}</div>
  9481. </div>
  9482. </div>
  9483. <div class="ediBottom">
  9484. <textarea
  9485. rows="6"
  9486. class="binfo_input"
  9487. cols
  9488. style="width: 95%; height: 120px"
  9489. v-model="questionAnswer"
  9490. ></textarea>
  9491. </div>
  9492. </div>
  9493. </div>
  9494. <div slot="footer">
  9495. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9496. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9497. </div>
  9498. </el-dialog>
  9499. <el-dialog
  9500. title="倒计时"
  9501. :visible.sync="timeDialogVisible"
  9502. :append-to-body="true"
  9503. width="800px"
  9504. :before-close="handleClose"
  9505. class="dialog_diy"
  9506. >
  9507. <div>
  9508. <div style="margin-bottom: 20px; color: #999">
  9509. 提示:点击“+”或“-”修改倒计时时长。
  9510. </div>
  9511. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9512. </div>
  9513. <div slot="footer">
  9514. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9515. </div>
  9516. </el-dialog>
  9517. <el-dialog
  9518. title="权限设置"
  9519. :visible.sync="juriVisible"
  9520. :append-to-body="true"
  9521. width="400px"
  9522. :before-close="handleClose"
  9523. class="dialog_diy"
  9524. >
  9525. <div>
  9526. <div class="open_box">
  9527. <div class="switch_box">
  9528. <span>允许学生查看所有作业</span>
  9529. <el-switch
  9530. v-model="sIsOpen"
  9531. active-text=""
  9532. class="switchCss"
  9533. @change="updateSLook"
  9534. ></el-switch>
  9535. </div>
  9536. <div
  9537. class="switch_box"
  9538. v-if="
  9539. courseDetail.userid == userid ||
  9540. (courseDetail.course_teacher &&
  9541. courseDetail.course_teacher.indexOf(userid) != -1)
  9542. "
  9543. >
  9544. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9545. <span>禁止学生查看所有阶段</span>
  9546. <el-switch
  9547. v-model="IsLookOpen"
  9548. active-text=""
  9549. class="switchCss"
  9550. @change="updateLookOpen"
  9551. ></el-switch>
  9552. </div>
  9553. <div class="switch_box" v-if="courseDetail.userid == userid">
  9554. <span>开启跟随模式</span>
  9555. <el-switch
  9556. v-model="IsFollow"
  9557. active-text=""
  9558. class="switchCss"
  9559. @change="updateFollow"
  9560. ></el-switch>
  9561. </div>
  9562. </div>
  9563. </div>
  9564. <div slot="footer">
  9565. <el-button
  9566. style="background: #409efe; color: #fff"
  9567. @click="juriVisible = false"
  9568. >关 闭</el-button
  9569. >
  9570. </div>
  9571. </el-dialog>
  9572. <el-dialog
  9573. title="查看视频"
  9574. :visible.sync="videoVisible"
  9575. :append-to-body="true"
  9576. width="1000px"
  9577. :before-close="handleClose"
  9578. class="dialog_diy1"
  9579. >
  9580. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9581. <video-player
  9582. class="video-player vjs-custom-skin"
  9583. :playsinline="true"
  9584. :options="videoDetail"
  9585. @play="onPlayerPlay($event)"
  9586. style="width: 100%; height: 100%"
  9587. ></video-player>
  9588. </div>
  9589. <div slot="footer">
  9590. <el-button
  9591. style="background: #409efe; color: #fff"
  9592. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9593. >
  9594. 关 闭</el-button
  9595. >
  9596. </div>
  9597. </el-dialog>
  9598. <el-dialog
  9599. title="查看详情"
  9600. :visible.sync="commentDialogVisible"
  9601. :append-to-body="true"
  9602. width="800px"
  9603. :before-close="handleClose"
  9604. class="dialog_diy"
  9605. >
  9606. <div class="commentTop">
  9607. <div class="studentDetail">
  9608. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9609. <div class="nameAndTime">
  9610. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9611. <div>{{ commentDetail.time }}</div>
  9612. </div>
  9613. <div
  9614. class="returnBtn"
  9615. style="margin-left: auto; width: 80px"
  9616. v-if="
  9617. commentDetail.works &&
  9618. commentDetail.type == 0 &&
  9619. (tType == 1 || tType == 4)
  9620. "
  9621. @click="
  9622. showPicturePaint(
  9623. commentDetail.img ? commentDetail.img : commentDetail.works
  9624. )
  9625. "
  9626. >
  9627. 教师批注
  9628. </div>
  9629. </div>
  9630. <div
  9631. class="worksAnswer"
  9632. v-if="commentDetail.works && commentDetail.type == 2"
  9633. >
  9634. {{ JSON.parse(commentDetail.works)[0].answer }}
  9635. </div>
  9636. <div
  9637. class="worksAnswer"
  9638. v-if="commentDetail.works && commentDetail.type == 1"
  9639. >
  9640. <img
  9641. src="../assets/teacherWork.png"
  9642. v-if="commentDetail.ateacher"
  9643. class="w_teachert"
  9644. />
  9645. <pdf
  9646. v-if="showPDF"
  9647. :pdfUrl="pptImgUrl"
  9648. style="width: 100%; height: 520px; overflow: auto"
  9649. :class="{ fullStyle: full }"
  9650. ></pdf>
  9651. <iframe
  9652. v-else
  9653. :src="pptImgUrl"
  9654. frameborder="0"
  9655. width="100%"
  9656. height="600"
  9657. :class="{ fullStyle: full }"
  9658. ></iframe>
  9659. </div>
  9660. <div
  9661. class="worksAnswer"
  9662. v-if="commentDetail.works && commentDetail.type == 0"
  9663. >
  9664. <img
  9665. src="../assets/teacherWork.png"
  9666. v-if="commentDetail.ateacher"
  9667. class="w_teachert"
  9668. style="right: 105px"
  9669. />
  9670. <img
  9671. :src="commentDetail.works"
  9672. alt=""
  9673. @click="previewImg(commentDetail.works)"
  9674. />
  9675. </div>
  9676. <div
  9677. class="worksAnswer"
  9678. v-if="commentDetail.works && commentDetail.type == 3"
  9679. >
  9680. <img
  9681. src="../assets/teacherWork.png"
  9682. v-if="commentDetail.ateacher"
  9683. class="w_teachert"
  9684. />
  9685. <video-player
  9686. class="video-player vjs-custom-skin"
  9687. :playsinline="true"
  9688. :options="videoDetail"
  9689. @play="onPlayerPlay($event)"
  9690. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9691. ></video-player>
  9692. </div>
  9693. <div
  9694. class="worksAnswer"
  9695. v-if="commentDetail.works && commentDetail.type == 10"
  9696. >
  9697. <div class="cont" v-html="commentDetail.works.text"></div>
  9698. </div>
  9699. <div
  9700. class="worksAnswer codeFileBox"
  9701. v-if="commentDetail.works && commentDetail.type == 12"
  9702. @click="downloadFile(commentDetail.works)"
  9703. >
  9704. <img src="../assets/icon/codeFile.png" />
  9705. <div>点击下载文件</div>
  9706. </div>
  9707. <div
  9708. class="worksAnswer codeFileBox"
  9709. v-if="commentDetail.works && commentDetail.type == 15"
  9710. @click="
  9711. openCocoPi(
  9712. 57,
  9713. commentIndexJson.toolIndex,
  9714. commentDetail.userid,
  9715. commentDetail.sName
  9716. )
  9717. "
  9718. >
  9719. <img src="../assets/icon/codeFile.png" />
  9720. <div>点击打开CocoPi</div>
  9721. </div>
  9722. <div
  9723. class="worksAnswer"
  9724. v-if="commentDetail.works && commentDetail.type == 13"
  9725. >
  9726. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9727. </div>
  9728. <div
  9729. class="worksAnswer"
  9730. v-if="commentDetail.works && commentDetail.type == 4"
  9731. >
  9732. <div class="evalCss">
  9733. <div class="nav">请选择星星进行评分</div>
  9734. <div class="middleBox" v-if="eScore.eStar">
  9735. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9736. <div class="nameAndrate">
  9737. <div>{{ e.value }}</div>
  9738. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9739. </div>
  9740. <div v-if="e.detail">{{ e.detail }}</div>
  9741. </div>
  9742. <div class="bz">
  9743. <textarea
  9744. disabled
  9745. rows="4"
  9746. class="pj"
  9747. style="
  9748. padding: 10px 5px;
  9749. width: 70%;
  9750. background: #f7f6f9;
  9751. font-size: 14px;
  9752. text-indent: 10px;
  9753. color: #000;
  9754. "
  9755. cols
  9756. v-model="eScore.eBzText"
  9757. placeholder="请输入评价内容..."
  9758. ></textarea>
  9759. </div>
  9760. </div>
  9761. </div>
  9762. </div>
  9763. <div class="comment">
  9764. <div class="commentList">
  9765. <div class="commentImg">
  9766. <img
  9767. @click="
  9768. isLikes(
  9769. commentDetail.wid,
  9770. userid,
  9771. 1,
  9772. null,
  9773. commentDetail.isLikes,
  9774. commentDetail.sName
  9775. )
  9776. "
  9777. :src="commentDetail.isLikes == true ? likes : noLikes"
  9778. alt=""
  9779. />
  9780. </div>
  9781. <div>{{ commentDetail.likesCount }}</div>
  9782. </div>
  9783. <div class="commentList">
  9784. <div class="commentImg">
  9785. <img src="../assets/icon/comment/comment.png" alt="" />
  9786. </div>
  9787. <div>{{ commentDetail.commentCount }}</div>
  9788. </div>
  9789. </div>
  9790. <div class="drawPBox" v-if="commentDetail.img">
  9791. <span>教师批注</span>
  9792. <img
  9793. :src="commentDetail.img"
  9794. alt=""
  9795. @click="previewImg(commentDetail.img)"
  9796. />
  9797. <span
  9798. class="deleteImg"
  9799. v-if="tType == 1 || tType == 4"
  9800. @click.stop="deletePicturePaint(commentDetail.wid)"
  9801. style="
  9802. font-size: 14px;
  9803. width: auto !important;
  9804. color: #b4b4b4;
  9805. top: unset;
  9806. bottom: 0;
  9807. border: none;
  9808. padding: 0;
  9809. height: auto !important;
  9810. margin: 0;
  9811. "
  9812. >删除</span
  9813. >
  9814. </div>
  9815. </div>
  9816. <div class="commentBox">
  9817. <div class="pl">评论:</div>
  9818. <div style="max-height: 200px; overflow: auto">
  9819. <div
  9820. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9821. style="padding: 10px 0 0 0"
  9822. >
  9823. <div
  9824. class="studentDetail"
  9825. style="padding-top: 10px"
  9826. v-for="(co, coIndex) in commentDetail.commentJson"
  9827. :key="coIndex"
  9828. >
  9829. <div class="tx" style="min-width: 50px">
  9830. <img src="../assets/avatar.png" alt="" />
  9831. </div>
  9832. <div class="plPerson">
  9833. <div class="plName">
  9834. <div>{{ co.commentPeople }}</div>
  9835. <div style="margin-left: 5px">
  9836. {{ co.commentTime }}
  9837. </div>
  9838. <div
  9839. class="deleteComment"
  9840. v-if="userid == co.userid"
  9841. @click="deleteComment(co.wid)"
  9842. >
  9843. 删除
  9844. </div>
  9845. </div>
  9846. <div class="plContent">{{ co.commentText }}</div>
  9847. </div>
  9848. </div>
  9849. </div>
  9850. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9851. </div>
  9852. </div>
  9853. <div style="margin-top: 10px">
  9854. <div class="displayBox">
  9855. <div
  9856. style="
  9857. color: #556db4;
  9858. font-size: 14px;
  9859. font-weight: bold;
  9860. padding-bottom: 10px;
  9861. "
  9862. >
  9863. 评价
  9864. </div>
  9865. <div class="easy_comment" v-if="false">
  9866. <div
  9867. v-for="(p, pIndex) in PlTextList"
  9868. :key="pIndex"
  9869. @click="fastText(p, 1)"
  9870. >
  9871. {{ p }}
  9872. </div>
  9873. </div>
  9874. </div>
  9875. <div>
  9876. <textarea
  9877. rows="3"
  9878. class="pj"
  9879. style="padding: 10px 5px"
  9880. cols
  9881. v-model="commentText"
  9882. placeholder="请输入评论"
  9883. ></textarea>
  9884. </div>
  9885. </div>
  9886. <div slot="footer">
  9887. <el-button
  9888. @click="
  9889. (commentDialogVisible = false),
  9890. (commentIndexJson = {}),
  9891. videoDetail.sources && videoDetail.sources[0]
  9892. ? (videoDetail.sources[0].src = '')
  9893. : ''
  9894. "
  9895. >取 消</el-button
  9896. >
  9897. <el-button
  9898. type="primary"
  9899. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9900. >确 定</el-button
  9901. >
  9902. </div>
  9903. </el-dialog>
  9904. <el-dialog
  9905. title="查看文档"
  9906. :visible.sync="fullDialogVisible"
  9907. :append-to-body="true"
  9908. width="100%"
  9909. :before-close="handleClose"
  9910. :show-close="false"
  9911. class="dialog_diy full_diy"
  9912. :class="{ full_diy2: fulltype == 3 }"
  9913. >
  9914. <div slot="title" class="header-title">
  9915. <div style="color: #fff">查看文档</div>
  9916. <div
  9917. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9918. style="
  9919. cursor: pointer;
  9920. position: absolute;
  9921. top: 20px;
  9922. right: 20px;
  9923. color: #fff;
  9924. "
  9925. >
  9926. 退出全屏
  9927. </div>
  9928. </div>
  9929. <div style="height: 100%">
  9930. <div
  9931. class="wheel"
  9932. v-if="
  9933. fulltype == 2 &&
  9934. fullUrl.indexOf(
  9935. 'https://view.officeapps.live.com/op/view.aspx?src='
  9936. ) != -1
  9937. "
  9938. style="width: 100%;height:100%; margin: 0 auto"
  9939. >
  9940. <iframe
  9941. style="width: 100%; height: 100%; border: none"
  9942. :src="fullUrl"
  9943. ></iframe>
  9944. </div>
  9945. <iframe
  9946. v-else-if="fulltype == 2"
  9947. style="width: 100%; height: 100%; border: none"
  9948. :src="fullUrl"
  9949. security="restricted"
  9950. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9951. ></iframe>
  9952. <pdf
  9953. v-else-if="fulltype == 3"
  9954. :pdfUrl="fullUrl"
  9955. style="width: 100%; height: 100%; overflow: auto"
  9956. ></pdf>
  9957. <div
  9958. class="wheel"
  9959. v-if="fulltype == 1"
  9960. style="
  9961. box-shadow: 0 0 6px 1px #f2f2f2;
  9962. width: 100%;
  9963. height:100%;
  9964. background: #f1f1f1;
  9965. "
  9966. >
  9967. <div class="title" style="width: 100%; box-sizing: border-box">
  9968. 查看文档
  9969. </div>
  9970. <el-form class="textBox" style="height: 90%">
  9971. <el-form-item class="textTitle">
  9972. <div style="font-size: 22px">
  9973. {{ fullUrl.name }}
  9974. </div>
  9975. </el-form-item>
  9976. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9977. <div
  9978. v-html="fullUrl.url"
  9979. class="textContent"
  9980. style="height: auto"
  9981. ></div>
  9982. </el-form>
  9983. </div>
  9984. </div>
  9985. <!-- <div slot="footer">
  9986. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9987. </div> -->
  9988. </el-dialog>
  9989. <el-dialog
  9990. title="个人评价"
  9991. :visible.sync="studentEvalDialogVisible"
  9992. :append-to-body="true"
  9993. width="800px"
  9994. :before-close="handleClose"
  9995. class="dialog_diy"
  9996. >
  9997. <div class="evalCss">
  9998. <div class="nav">请选择星星进行评分</div>
  9999. <div class="middleBox" v-if="eScore.eStar">
  10000. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10001. <div class="nameAndrate">
  10002. <div>{{ e.value }}</div>
  10003. <el-rate
  10004. v-model="eScore.eStar[eIndex]"
  10005. :disabled="isStar"
  10006. ></el-rate>
  10007. </div>
  10008. <div v-if="e.detail">{{ e.detail }}</div>
  10009. </div>
  10010. <div class="easy_comment" v-if="false">
  10011. <div
  10012. v-for="(p, pIndex) in PlTextList"
  10013. :key="pIndex"
  10014. @click="fastText(p, 2)"
  10015. >
  10016. {{ p }}
  10017. </div>
  10018. </div>
  10019. <div class="bz">
  10020. <textarea
  10021. :disabled="isStar"
  10022. rows="4"
  10023. class="pj"
  10024. style="
  10025. padding: 10px 5px;
  10026. width: 70%;
  10027. background: #f7f6f9;
  10028. font-size: 14px;
  10029. text-indent: 10px;
  10030. "
  10031. cols
  10032. v-model="eScore.eBzText"
  10033. placeholder="请输入评价内容..."
  10034. ></textarea>
  10035. </div>
  10036. </div>
  10037. </div>
  10038. <div slot="footer">
  10039. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10040. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10041. >确 定</el-button
  10042. >
  10043. </div>
  10044. </el-dialog>
  10045. <el-dialog
  10046. title="个人评价"
  10047. :visible.sync="studentEvalDialogVisibleTeacher"
  10048. :append-to-body="true"
  10049. width="800px"
  10050. :before-close="handleClose"
  10051. class="dialog_diy"
  10052. >
  10053. <div class="w_name">
  10054. 学生姓名:<span>{{ sStudent.student }}</span>
  10055. </div>
  10056. <div class="evalCss">
  10057. <div class="nav">请选择星星进行评分</div>
  10058. <div class="middleBox" v-if="eScore.eStar">
  10059. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10060. <div class="nameAndrate">
  10061. <div>{{ e.value }}</div>
  10062. <el-rate
  10063. v-model="eScore.eStar[eIndex]"
  10064. :disabled="isStar"
  10065. ></el-rate>
  10066. </div>
  10067. <div v-if="e.detail">{{ e.detail }}</div>
  10068. </div>
  10069. <div class="easy_comment" v-if="false">
  10070. <div
  10071. v-for="(p, pIndex) in PlTextList"
  10072. :key="pIndex"
  10073. @click="fastText(p, 2)"
  10074. >
  10075. {{ p }}
  10076. </div>
  10077. </div>
  10078. <div class="bz">
  10079. <textarea
  10080. :disabled="isStar"
  10081. rows="4"
  10082. class="pj"
  10083. style="
  10084. padding: 10px 5px;
  10085. width: 70%;
  10086. background: #f7f6f9;
  10087. font-size: 14px;
  10088. text-indent: 10px;
  10089. "
  10090. cols
  10091. v-model="eScore.eBzText"
  10092. placeholder="请输入评价内容..."
  10093. ></textarea>
  10094. </div>
  10095. </div>
  10096. </div>
  10097. <div slot="footer">
  10098. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10099. >取 消</el-button
  10100. >
  10101. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10102. >确 定</el-button
  10103. >
  10104. </div>
  10105. </el-dialog>
  10106. <el-dialog
  10107. title="选择匹配"
  10108. :visible.sync="dialogVisibleSelect"
  10109. :append-to-body="true"
  10110. width="90%"
  10111. :before-close="handleClose"
  10112. class="dialog_diy dialog_diy3"
  10113. >
  10114. <div v-if="selectJson">
  10115. <div class="select_box2">
  10116. <div class="select_box2_title">
  10117. <div>选择匹配</div>
  10118. <div>请选择对应的答案进行答题!</div>
  10119. </div>
  10120. <div class="select_box2_box">
  10121. <div class="select_box2_img">
  10122. <img
  10123. :src="selectJson.url"
  10124. @click="previewImg(selectJson.url)"
  10125. alt=""
  10126. />
  10127. </div>
  10128. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10129. <div style="padding-top: 15px">
  10130. <div class="select_answer_title" v-if="isSelect">
  10131. {{ selectAnswer.stu }}
  10132. </div>
  10133. <div class="select_answer_title" v-else>
  10134. 根据题目选择对应答案
  10135. </div>
  10136. <div
  10137. class="select_box2_answer_box"
  10138. v-for="(item2, checkIndex) in selectJson.select"
  10139. :key="checkIndex"
  10140. >
  10141. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10142. <el-select
  10143. :disabled="isSelect"
  10144. v-model="selectAnswer.answer[checkIndex]"
  10145. placeholder="请选择正确答案"
  10146. >
  10147. <el-option
  10148. v-for="(e, eIndex) in selectJson.select"
  10149. :key="eIndex"
  10150. :label="e"
  10151. :value="eIndex"
  10152. >
  10153. </el-option>
  10154. </el-select>
  10155. </div>
  10156. </div>
  10157. <div
  10158. class="rightAnswerCss"
  10159. v-if="isSelect && (tType == 1 || tType == 4)"
  10160. >
  10161. <div
  10162. v-for="(a, aIndex) in selectJson.answer"
  10163. :key="aIndex"
  10164. class="rightAnswer"
  10165. >
  10166. <div
  10167. v-if="selectAnswer.answer[aIndex] === a"
  10168. style="color: #767de1"
  10169. >
  10170. 回答正确
  10171. </div>
  10172. <div v-else>回答错误</div>
  10173. <div
  10174. style="margin-left: 10px"
  10175. v-if="selectAnswer.answer[aIndex] !== a"
  10176. >
  10177. 正确答案:
  10178. </div>
  10179. <div
  10180. :class="
  10181. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10182. "
  10183. >
  10184. {{ selectJson.select[a] }}
  10185. </div>
  10186. </div>
  10187. </div>
  10188. </div>
  10189. <div class="upAnswerCss">
  10190. <el-button
  10191. type="primary"
  10192. @click="addSelectAnswer"
  10193. v-if="!isSelect"
  10194. >提交答案</el-button
  10195. >
  10196. </div>
  10197. </div>
  10198. </div>
  10199. </div>
  10200. </el-dialog>
  10201. <el-dialog
  10202. title="选择匹配"
  10203. :visible.sync="dialogVisibleSelectTeacher"
  10204. :append-to-body="true"
  10205. width="90%"
  10206. :before-close="handleClose"
  10207. class="dialog_diy dialog_diy3"
  10208. >
  10209. <div v-if="selectJson">
  10210. <div class="w_name">
  10211. 学生姓名:<span>{{ sStudent.student }}</span>
  10212. </div>
  10213. <div class="select_box2">
  10214. <div class="select_box2_title">
  10215. <div>选择匹配</div>
  10216. <div>请选择对应的答案进行答题!</div>
  10217. </div>
  10218. <div class="select_box2_box">
  10219. <div class="select_box2_img">
  10220. <img
  10221. :src="selectJson.url"
  10222. @click="previewImg(selectJson.url)"
  10223. alt=""
  10224. />
  10225. </div>
  10226. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10227. <div style="padding-top: 15px">
  10228. <div class="select_answer_title" v-if="isSelect">
  10229. {{ selectAnswer.stu }}
  10230. </div>
  10231. <div class="select_answer_title" v-else>
  10232. 根据题目选择对应答案
  10233. </div>
  10234. <div
  10235. class="select_box2_answer_box"
  10236. v-for="(item2, checkIndex) in selectJson.select"
  10237. :key="checkIndex"
  10238. >
  10239. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10240. <el-select
  10241. :disabled="isSelect"
  10242. v-model="selectAnswer.answer[checkIndex]"
  10243. placeholder="请选择正确答案"
  10244. >
  10245. <el-option
  10246. v-for="(e, eIndex) in selectJson.select"
  10247. :key="eIndex"
  10248. :label="e"
  10249. :value="eIndex"
  10250. >
  10251. </el-option>
  10252. </el-select>
  10253. </div>
  10254. </div>
  10255. <div
  10256. class="rightAnswerCss"
  10257. v-if="isSelect && (tType == 1 || tType == 4)"
  10258. >
  10259. <div
  10260. v-for="(a, aIndex) in selectJson.answer"
  10261. :key="aIndex"
  10262. class="rightAnswer"
  10263. >
  10264. <div
  10265. v-if="selectAnswer.answer[aIndex] === a"
  10266. style="color: #767de1"
  10267. >
  10268. 回答正确
  10269. </div>
  10270. <div v-else>回答错误</div>
  10271. <div
  10272. style="margin-left: 10px"
  10273. v-if="selectAnswer.answer[aIndex] !== a"
  10274. >
  10275. 正确答案:
  10276. </div>
  10277. <div
  10278. :class="
  10279. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10280. "
  10281. >
  10282. {{ selectJson.select[a] }}
  10283. </div>
  10284. </div>
  10285. </div>
  10286. </div>
  10287. <div class="upAnswerCss">
  10288. <el-button
  10289. type="primary"
  10290. @click="addSelectAnswerTeacher"
  10291. v-if="!isSelect"
  10292. >提交答案</el-button
  10293. >
  10294. </div>
  10295. </div>
  10296. </div>
  10297. </div>
  10298. </el-dialog>
  10299. <el-dialog
  10300. title="教师评分"
  10301. :visible.sync="dialogVisibleScore"
  10302. :append-to-body="true"
  10303. width="800px"
  10304. :before-close="handleClose"
  10305. class="dialog_diy"
  10306. >
  10307. <div>
  10308. <div class="studentDetail">
  10309. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10310. <div class="nameAndTime">
  10311. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10312. <div>{{ commentDetail.time }}</div>
  10313. </div>
  10314. </div>
  10315. <div
  10316. class="worksAnswer"
  10317. v-if="commentDetail.works && commentDetail.type == 2"
  10318. >
  10319. {{ JSON.parse(commentDetail.works)[0].answer }}
  10320. </div>
  10321. <div
  10322. class="worksAnswer"
  10323. v-if="commentDetail.works && commentDetail.type == 1"
  10324. >
  10325. <pdf
  10326. v-if="showPDF"
  10327. :pdfUrl="pptImgUrl"
  10328. style="width: 100%; height: 520px; overflow: auto"
  10329. :class="{ fullStyle: full }"
  10330. ></pdf>
  10331. <iframe
  10332. v-else
  10333. :src="pptImgUrl"
  10334. frameborder="0"
  10335. width="100%"
  10336. height="600"
  10337. :class="{ fullStyle: full }"
  10338. ></iframe>
  10339. </div>
  10340. <div
  10341. class="worksAnswer"
  10342. v-if="commentDetail.works && commentDetail.type == 0"
  10343. >
  10344. <img
  10345. :src="commentDetail.works"
  10346. alt=""
  10347. @click="previewImg(commentDetail.works)"
  10348. />
  10349. </div>
  10350. <div
  10351. class="worksAnswer"
  10352. v-if="commentDetail.works && commentDetail.type == 3"
  10353. >
  10354. <video-player
  10355. class="video-player vjs-custom-skin"
  10356. :playsinline="true"
  10357. :options="videoDetail"
  10358. @play="onPlayerPlay($event)"
  10359. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10360. ></video-player>
  10361. </div>
  10362. <div
  10363. class="worksAnswer codeFileBox"
  10364. v-if="commentDetail.works && commentDetail.type == 12"
  10365. @click="downloadFile(commentDetail.works)"
  10366. >
  10367. <img src="../assets/icon/codeFile.png" />
  10368. <div>点击下载文件</div>
  10369. </div>
  10370. <div
  10371. class="worksAnswer codeFileBox"
  10372. v-if="commentDetail.works && commentDetail.type == 15"
  10373. @click="
  10374. openCocoPi(
  10375. 57,
  10376. commentIndexJson.toolIndex,
  10377. commentDetail.userid,
  10378. commentDetail.sName
  10379. )
  10380. "
  10381. >
  10382. <img src="../assets/icon/codeFile.png" />
  10383. <div>点击打开CocoPi</div>
  10384. </div>
  10385. <div
  10386. class="worksAnswer"
  10387. v-if="commentDetail.works && commentDetail.type == 13"
  10388. >
  10389. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10390. </div>
  10391. <div class="scoreBox">
  10392. <span class="t">请输入分数</span>
  10393. <el-input-number
  10394. :disabled="courseDetail.userid != userid"
  10395. v-model="wScore"
  10396. :controls="false"
  10397. :min="0"
  10398. :max="100"
  10399. ></el-input-number>
  10400. </div>
  10401. <div class="scoreDetailBox">
  10402. <span class="t">评分评论</span>
  10403. <el-input
  10404. type="textarea"
  10405. :rows="5"
  10406. :disabled="courseDetail.userid != userid"
  10407. resize="none"
  10408. v-model="scoreDetail"
  10409. placeholder="请输入对学生的评价"
  10410. >
  10411. </el-input>
  10412. </div>
  10413. </div>
  10414. <span slot="footer" class="dialog-footer">
  10415. <el-button
  10416. @click="
  10417. (dialogVisibleScore = false),
  10418. (commentIndexJson = {}),
  10419. videoDetail.sources && videoDetail.sources[0]
  10420. ? (videoDetail.sources[0].src = '')
  10421. : ''
  10422. "
  10423. >取 消</el-button
  10424. >
  10425. <el-button
  10426. type="primary"
  10427. v-if="courseDetail.userid == userid"
  10428. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10429. >确 定
  10430. </el-button>
  10431. </span>
  10432. </el-dialog>
  10433. <el-dialog
  10434. title="排序"
  10435. :visible.sync="dialogVisibleSentence"
  10436. :append-to-body="true"
  10437. width="1000px"
  10438. :before-close="handleClose"
  10439. class="dialog_diy dialog_diy3"
  10440. >
  10441. <div>
  10442. <div class="sentenBox">
  10443. <div
  10444. v-for="(st, stIndex) in sentenceList"
  10445. :key="stIndex"
  10446. style="padding-bottom: 20px"
  10447. >
  10448. <div
  10449. style="padding: 15px 0 10px 20px"
  10450. class="sentenceTitle"
  10451. :index="stIndex + 1"
  10452. >
  10453. 题目{{ stIndex + 1 }}:请选择正确顺序
  10454. </div>
  10455. <div class="cardList" v-if="st.chooseSenList">
  10456. <div class="cardBox">
  10457. <div
  10458. v-for="(r, rIndex) in st.chooseSenList"
  10459. :key="rIndex"
  10460. @click="returnCard(r, stIndex, rIndex)"
  10461. >
  10462. <el-tooltip
  10463. class="item"
  10464. effect="light"
  10465. :content="r"
  10466. placement="top"
  10467. v-if="r != '' && r != undefined"
  10468. >
  10469. <div
  10470. :class="{
  10471. isCard: r,
  10472. isChooseCard: r == '' || r == undefined,
  10473. }"
  10474. >
  10475. <div>{{ r }}</div>
  10476. </div>
  10477. </el-tooltip>
  10478. <div
  10479. :class="{
  10480. isCard: r,
  10481. isChooseCard: r == '' || r == undefined,
  10482. }"
  10483. v-else
  10484. >
  10485. <div>{{ r }}</div>
  10486. </div>
  10487. </div>
  10488. </div>
  10489. </div>
  10490. <div class="cardList" v-if="st.addChangeSen">
  10491. <div class="cardBox">
  10492. <div
  10493. v-for="(s, sIndex) in st.addChangeSen"
  10494. :key="sIndex"
  10495. @click="setRightAnswer(s, stIndex, sIndex)"
  10496. >
  10497. <el-tooltip
  10498. class="item"
  10499. effect="light"
  10500. :content="s"
  10501. placement="top"
  10502. v-if="s != '' && s != undefined"
  10503. >
  10504. <div
  10505. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10506. >
  10507. <div>{{ s }}</div>
  10508. </div>
  10509. </el-tooltip>
  10510. <div
  10511. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10512. v-else
  10513. >
  10514. <div>{{ s }}</div>
  10515. </div>
  10516. </div>
  10517. </div>
  10518. </div>
  10519. </div>
  10520. </div>
  10521. </div>
  10522. <span slot="footer" class="dialog-footer">
  10523. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10524. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10525. </span>
  10526. </el-dialog>
  10527. <el-dialog
  10528. title="排序"
  10529. :visible.sync="dialogVisibleSentenceTeacher"
  10530. :append-to-body="true"
  10531. width="1000px"
  10532. :before-close="handleClose"
  10533. class="dialog_diy dialog_diy3"
  10534. >
  10535. <div>
  10536. <div class="w_name">
  10537. 学生姓名:<span>{{ sStudent.student }}</span>
  10538. </div>
  10539. <div class="sentenBox">
  10540. <div
  10541. v-for="(st, stIndex) in sentenceList"
  10542. :key="stIndex"
  10543. style="padding-bottom: 20px"
  10544. >
  10545. <div
  10546. style="padding: 15px 0 10px 20px"
  10547. class="sentenceTitle"
  10548. :index="stIndex + 1"
  10549. >
  10550. 题目{{ stIndex + 1 }}:请选择正确顺序
  10551. </div>
  10552. <div class="cardList" v-if="st.chooseSenList">
  10553. <div class="cardBox">
  10554. <div
  10555. v-for="(r, rIndex) in st.chooseSenList"
  10556. :key="rIndex"
  10557. @click="returnCard(r, stIndex, rIndex)"
  10558. >
  10559. <el-tooltip
  10560. class="item"
  10561. effect="light"
  10562. :content="r"
  10563. placement="top"
  10564. v-if="r != '' && r != undefined"
  10565. >
  10566. <div
  10567. :class="{
  10568. isCard: r,
  10569. isChooseCard: r == '' || r == undefined,
  10570. }"
  10571. >
  10572. <div>{{ r }}</div>
  10573. </div>
  10574. </el-tooltip>
  10575. <div
  10576. :class="{
  10577. isCard: r,
  10578. isChooseCard: r == '' || r == undefined,
  10579. }"
  10580. v-else
  10581. >
  10582. <div>{{ r }}</div>
  10583. </div>
  10584. </div>
  10585. </div>
  10586. </div>
  10587. <div class="cardList" v-if="st.addChangeSen">
  10588. <div class="cardBox">
  10589. <div
  10590. v-for="(s, sIndex) in st.addChangeSen"
  10591. :key="sIndex"
  10592. @click="setRightAnswer(s, stIndex, sIndex)"
  10593. >
  10594. <el-tooltip
  10595. class="item"
  10596. effect="light"
  10597. :content="s"
  10598. placement="top"
  10599. v-if="s != '' && s != undefined"
  10600. >
  10601. <div
  10602. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10603. >
  10604. <div>{{ s }}</div>
  10605. </div>
  10606. </el-tooltip>
  10607. <div
  10608. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10609. v-else
  10610. >
  10611. <div>{{ s }}</div>
  10612. </div>
  10613. </div>
  10614. </div>
  10615. </div>
  10616. </div>
  10617. </div>
  10618. </div>
  10619. <span slot="footer" class="dialog-footer">
  10620. <el-button @click="dialogVisibleSentenceTeacher = false"
  10621. >取 消</el-button
  10622. >
  10623. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10624. </span>
  10625. </el-dialog>
  10626. <el-dialog
  10627. title="排序"
  10628. :visible.sync="dialogVisibleSentence1"
  10629. :append-to-body="true"
  10630. width="1000px"
  10631. :before-close="handleClose"
  10632. class="dialog_diy dialog_diy3"
  10633. >
  10634. <div>
  10635. <div class="sentenBox">
  10636. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10637. {{ sentenceList1.stuName }}的作业
  10638. </div>
  10639. <div
  10640. v-for="(st, stIndex) in sentenceList1"
  10641. :key="stIndex"
  10642. style="padding-bottom: 20px"
  10643. >
  10644. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10645. 第{{ stIndex + 1 }}题
  10646. </div>
  10647. <div class="isWrong">
  10648. <div class="cardList1" v-if="st.chooseSenList">
  10649. <div class="cardBox">
  10650. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10651. <el-tooltip
  10652. class="item"
  10653. effect="light"
  10654. :content="s"
  10655. placement="top"
  10656. >
  10657. <div class="isCard">
  10658. <div>{{ s }}</div>
  10659. </div>
  10660. </el-tooltip>
  10661. </div>
  10662. </div>
  10663. <div class="cardAnswerBox">
  10664. 组成句子:{{ st.chooseSenList.join(" ") }}
  10665. </div>
  10666. </div>
  10667. <div v-if="tType == 2" class="isTj">
  10668. <div class="isTjImg">
  10669. <img src="../assets/icon/conSentences/right.png" alt="" />
  10670. </div>
  10671. <div>已提交</div>
  10672. </div>
  10673. <div
  10674. class="answerRight isTj"
  10675. v-if="
  10676. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10677. (tType == 1 || tType == 4)
  10678. "
  10679. >
  10680. <div class="isTjImg">
  10681. <img src="../assets/icon/conSentences/right.png" alt="" />
  10682. </div>
  10683. <div>回答正确</div>
  10684. </div>
  10685. <div
  10686. class="answerRight isTj"
  10687. v-if="
  10688. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10689. (tType == 1 || tType == 4)
  10690. "
  10691. >
  10692. <div class="isTjImg">
  10693. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10694. </div>
  10695. <div>回答错误</div>
  10696. </div>
  10697. </div>
  10698. <div
  10699. v-if="
  10700. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10701. (tType == 1 || tType == 4)
  10702. "
  10703. >
  10704. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10705. <div
  10706. class="cardList"
  10707. v-if="st.rightAnswer"
  10708. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10709. >
  10710. <div class="cardBox">
  10711. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10712. <el-tooltip
  10713. class="item"
  10714. effect="light"
  10715. :content="r"
  10716. placement="top"
  10717. >
  10718. <div class="isCard1">
  10719. <div>{{ r }}</div>
  10720. </div>
  10721. </el-tooltip>
  10722. </div>
  10723. </div>
  10724. <div class="cardAnswerBox">
  10725. 组成句子:{{ st.rightAnswer.join(" ") }}
  10726. </div>
  10727. </div>
  10728. </div>
  10729. </div>
  10730. </div>
  10731. </div>
  10732. <span slot="footer" class="dialog-footer">
  10733. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10734. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10735. >确 定</el-button
  10736. >
  10737. </span>
  10738. </el-dialog>
  10739. <el-dialog
  10740. title="教师提交作业"
  10741. :visible.sync="dialogVisibleWorks"
  10742. :append-to-body="true"
  10743. width="500px"
  10744. :before-close="handleClose"
  10745. class="dialog_change"
  10746. >
  10747. <div class="marginT">
  10748. <div class="w_name">
  10749. 学生姓名:<span>{{ sStudent.student }}</span>
  10750. </div>
  10751. <div>上传文件</div>
  10752. <div
  10753. class="chapter_add"
  10754. @click="addImg($event)"
  10755. v-if="studyJuri[0].cover.length == 0"
  10756. >
  10757. <div class="up_photo">
  10758. <img src="../assets/uploadImg2.png" alt />
  10759. </div>
  10760. <!-- <input
  10761. type="file"
  10762. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10763. style="display: none"
  10764. @change="beforeUpload1($event, 1)"
  10765. /> -->
  10766. <input
  10767. type="file"
  10768. accept="*"
  10769. style="display: none"
  10770. @change="beforeUpload1($event, 1)"
  10771. />
  10772. </div>
  10773. <!-- capture="camera" -->
  10774. <div
  10775. class="chapter_add"
  10776. style="
  10777. display: flex;
  10778. width: 100%;
  10779. flex-direction: row;
  10780. flex-wrap: wrap;
  10781. justify-content: flex-start;
  10782. padding: 15px 0;
  10783. "
  10784. v-if="studyJuri[0].cover.length > 0"
  10785. >
  10786. <div class="upCover">
  10787. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10788. <img :src="word" alt v-else-if="fileType == 1" />
  10789. <img :src="video" alt v-else-if="fileType == 2" />
  10790. <img :src="word2" alt v-else-if="fileType == 3" />
  10791. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10792. <div class="deleteWord" @click="clean(1)">
  10793. <img src="../assets/icon/deleteWorks.png" alt />
  10794. </div>
  10795. </div>
  10796. </div>
  10797. </div>
  10798. <div
  10799. class="upload_send"
  10800. @click="addCourseWorksTeacher(taskCount)"
  10801. v-if="!proVisible"
  10802. >
  10803. 提交
  10804. </div>
  10805. </el-dialog>
  10806. <ImgDraw
  10807. :drawShow="drawShow"
  10808. @closeDraw="closeDraw"
  10809. @addImgDraw="addImgDraw"
  10810. :bg="bg"
  10811. ></ImgDraw>
  10812. <el-dialog
  10813. title="表格"
  10814. :visible.sync="dialogVisibleTable"
  10815. :append-to-body="true"
  10816. width="95%"
  10817. :before-close="handleClose"
  10818. class="dialog_diy"
  10819. >
  10820. <el-form>
  10821. <div
  10822. style="
  10823. display: flex;
  10824. align-items: center;
  10825. justify-content: space-between;
  10826. "
  10827. >
  10828. <span>表格内容</span>
  10829. <el-button type="primary" size="small" @click="returnTableText"
  10830. >还原模板</el-button
  10831. >
  10832. </div>
  10833. <Table
  10834. v-model="tableJson.text"
  10835. @change="change"
  10836. v-if="dialogVisibleTable"
  10837. ></Table>
  10838. </el-form>
  10839. <span slot="footer" class="dialog-footer">
  10840. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10841. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10842. </span>
  10843. </el-dialog>
  10844. <el-dialog
  10845. title="表格"
  10846. :visible.sync="dialogVisibleTableTeacher"
  10847. :append-to-body="true"
  10848. width="95%"
  10849. :before-close="handleClose"
  10850. class="dialog_diy"
  10851. >
  10852. <el-form>
  10853. <div class="w_name">
  10854. 学生姓名:<span>{{ sStudent.student }}</span>
  10855. </div>
  10856. <div>表格内容</div>
  10857. <Table
  10858. v-model="tableJson.text"
  10859. @change="change"
  10860. v-if="dialogVisibleTableTeacher"
  10861. ></Table>
  10862. </el-form>
  10863. <span slot="footer" class="dialog-footer">
  10864. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10865. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10866. </span>
  10867. </el-dialog>
  10868. <el-dialog
  10869. title="文档"
  10870. :visible.sync="dialogVisibleWord"
  10871. :append-to-body="true"
  10872. width="95%"
  10873. :before-close="handleClose"
  10874. class="dialog_diy"
  10875. >
  10876. <el-form>
  10877. <div
  10878. style="
  10879. display: flex;
  10880. align-items: center;
  10881. justify-content: space-between;
  10882. "
  10883. >
  10884. <span>文档内容</span>
  10885. <el-button type="primary" size="small" @click="returnWordText"
  10886. >还原模板</el-button
  10887. >
  10888. </div>
  10889. <editor-bar
  10890. v-model="wordJson.text"
  10891. v-if="dialogVisibleWord"
  10892. ></editor-bar>
  10893. </el-form>
  10894. <span slot="footer" class="dialog-footer">
  10895. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10896. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10897. </span>
  10898. </el-dialog>
  10899. <el-dialog
  10900. title="文档"
  10901. :visible.sync="dialogVisibleWordTeacher"
  10902. :append-to-body="true"
  10903. width="95%"
  10904. :before-close="handleClose"
  10905. class="dialog_diy"
  10906. >
  10907. <el-form>
  10908. <div class="w_name">
  10909. 学生姓名:<span>{{ sStudent.student }}</span>
  10910. </div>
  10911. <div>文档内容</div>
  10912. <editor-bar
  10913. v-model="wordJson.text"
  10914. v-if="dialogVisibleWordTeacher"
  10915. ></editor-bar>
  10916. </el-form>
  10917. <span slot="footer" class="dialog-footer">
  10918. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10919. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10920. </span>
  10921. </el-dialog>
  10922. <el-dialog
  10923. title="表格"
  10924. :visible.sync="dialogVisibleTable2"
  10925. :append-to-body="true"
  10926. width="95%"
  10927. :before-close="handleClose"
  10928. class="dialog_diy"
  10929. >
  10930. <el-form>
  10931. <div class="cont" v-html="tableJson.text"></div>
  10932. </el-form>
  10933. <span slot="footer" class="dialog-footer">
  10934. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10935. </span>
  10936. </el-dialog>
  10937. <el-dialog
  10938. title="文档"
  10939. :visible.sync="dialogVisibleTable3"
  10940. :append-to-body="true"
  10941. width="95%"
  10942. :before-close="handleClose"
  10943. class="dialog_diy"
  10944. >
  10945. <el-form>
  10946. <div class="cont" v-html="tableJson.text"></div>
  10947. </el-form>
  10948. <span slot="footer" class="dialog-footer">
  10949. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10950. </span>
  10951. </el-dialog>
  10952. <el-dialog
  10953. title="分组设置"
  10954. :visible.sync="dialogVisibleGroup"
  10955. :append-to-body="true"
  10956. width="95%"
  10957. :before-close="handleClose"
  10958. class="dialog_diy"
  10959. >
  10960. <div v-if="dialogVisibleGroup">
  10961. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10962. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10963. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10964. </div>
  10965. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10966. @click="lockChair">
  10967. 锁定位置
  10968. </div>
  10969. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10970. 解锁位置
  10971. </div> -->
  10972. <div class="group_switch">
  10973. <span>开放选座</span>
  10974. <el-switch
  10975. v-model="islock"
  10976. active-text=""
  10977. class="switchCss"
  10978. @change="lockChair"
  10979. ></el-switch>
  10980. </div>
  10981. <div
  10982. type="primary"
  10983. @click="updateGroup"
  10984. class="returnBtn"
  10985. style="background-color: #225bc7"
  10986. >
  10987. 分组设置
  10988. </div>
  10989. </div>
  10990. <div>
  10991. <div
  10992. class="g_d_box"
  10993. v-if="groupJson.group && groupStudent[toolindex]"
  10994. >
  10995. <div
  10996. class="g_d_group"
  10997. v-for="(g, gindex) in groupJson.group"
  10998. :key="gindex"
  10999. >
  11000. <div class="g_d_group_chair">
  11001. <div v-if="groupJson.number > 1">
  11002. <span
  11003. :class="{
  11004. isChair:
  11005. groupStudent[toolindex][gindex] &&
  11006. groupStudent[toolindex][gindex][0],
  11007. updateChair:
  11008. courseDetail.userid == userid &&
  11009. groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][0] &&
  11011. groupJson.islock == 2,
  11012. }"
  11013. ><span
  11014. class="updateChairBtn"
  11015. @click="
  11016. updateGroupChair(
  11017. groupStudent[toolindex][gindex] &&
  11018. groupStudent[toolindex][gindex][0]
  11019. )
  11020. "
  11021. >修改</span
  11022. ></span
  11023. ><span>{{
  11024. groupStudent[toolindex][gindex] &&
  11025. groupStudent[toolindex][gindex][0]
  11026. ? groupStudent[toolindex][gindex] &&
  11027. groupStudent[toolindex][gindex][0].name
  11028. : "空位置"
  11029. }}</span>
  11030. </div>
  11031. <div v-if="groupJson.number > 4">
  11032. <span
  11033. :class="{
  11034. isChair:
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][4],
  11037. updateChair:
  11038. courseDetail.userid == userid &&
  11039. groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][4] &&
  11041. groupJson.islock == 2,
  11042. }"
  11043. ><span
  11044. class="updateChairBtn"
  11045. @click="
  11046. updateGroupChair(
  11047. groupStudent[toolindex][gindex] &&
  11048. groupStudent[toolindex][gindex][4]
  11049. )
  11050. "
  11051. >修改</span
  11052. ></span
  11053. ><span>{{
  11054. groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][4]
  11056. ? groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][4].name
  11058. : "空位置"
  11059. }}</span>
  11060. </div>
  11061. <div v-if="groupJson.number > 8">
  11062. <span
  11063. :class="{
  11064. isChair:
  11065. groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][8],
  11067. updateChair:
  11068. courseDetail.userid == userid &&
  11069. groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][8] &&
  11071. groupJson.islock == 2,
  11072. }"
  11073. ><span
  11074. class="updateChairBtn"
  11075. @click="
  11076. updateGroupChair(
  11077. groupStudent[toolindex][gindex] &&
  11078. groupStudent[toolindex][gindex][8]
  11079. )
  11080. "
  11081. >修改</span
  11082. ></span
  11083. ><span>{{
  11084. groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][8]
  11086. ? groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][8].name
  11088. : "空位置"
  11089. }}</span>
  11090. </div>
  11091. </div>
  11092. <div class="g_d_group_tableBox">
  11093. <div class="g_d_group_chair2">
  11094. <div v-if="groupJson.number > 2">
  11095. <span
  11096. :class="{
  11097. isChair:
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][2],
  11100. updateChair:
  11101. courseDetail.userid == userid &&
  11102. groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][2] &&
  11104. groupJson.islock == 2,
  11105. }"
  11106. ><span
  11107. class="updateChairBtn"
  11108. @click="
  11109. updateGroupChair(
  11110. groupStudent[toolindex][gindex] &&
  11111. groupStudent[toolindex][gindex][2]
  11112. )
  11113. "
  11114. >修改</span
  11115. ></span
  11116. ><span>{{
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][2]
  11119. ? groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][2].name
  11121. : "空位置"
  11122. }}</span>
  11123. </div>
  11124. <div v-if="groupJson.number > 6">
  11125. <span
  11126. :class="{
  11127. isChair:
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][6],
  11130. updateChair:
  11131. courseDetail.userid == userid &&
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][6] &&
  11134. groupJson.islock == 2,
  11135. }"
  11136. ><span
  11137. class="updateChairBtn"
  11138. @click="
  11139. updateGroupChair(
  11140. groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][6]
  11142. )
  11143. "
  11144. >修改</span
  11145. ></span
  11146. ><span>{{
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][6]
  11149. ? groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][6].name
  11151. : "空位置"
  11152. }}</span>
  11153. </div>
  11154. </div>
  11155. <div class="g_d_group_table">
  11156. <div>
  11157. {{ g.name }}
  11158. </div>
  11159. <div>
  11160. <div
  11161. v-if="
  11162. courseDetail.userid == userid && groupJson.islock == 2
  11163. "
  11164. @click="deleteGroupChair(gindex)"
  11165. >
  11166. 移除组员
  11167. </div>
  11168. <div
  11169. @click="selectGroup(gindex)"
  11170. v-else-if="
  11171. groupStudentUid[toolindex] &&
  11172. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11173. "
  11174. >
  11175. 加入分组
  11176. </div>
  11177. <div
  11178. @click="
  11179. exitGroup(
  11180. groupStudent[toolindex][gindex] &&
  11181. groupStudent[toolindex][gindex][
  11182. groupStudentUid[toolindex][gindex].indexOf(userid)
  11183. ].id
  11184. )
  11185. "
  11186. v-else-if="
  11187. groupStudentUid[toolindex] &&
  11188. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11189. "
  11190. >
  11191. 退出分组
  11192. </div>
  11193. </div>
  11194. </div>
  11195. <div class="g_d_group_chair2">
  11196. <div v-if="groupJson.number > 3">
  11197. <span
  11198. :class="{
  11199. isChair:
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][3],
  11202. updateChair:
  11203. courseDetail.userid == userid &&
  11204. groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][3] &&
  11206. groupJson.islock == 2,
  11207. }"
  11208. ><span
  11209. class="updateChairBtn"
  11210. @click="
  11211. updateGroupChair(
  11212. groupStudent[toolindex][gindex] &&
  11213. groupStudent[toolindex][gindex][3]
  11214. )
  11215. "
  11216. >修改</span
  11217. ></span
  11218. ><span>{{
  11219. groupStudent[toolindex][gindex] &&
  11220. groupStudent[toolindex][gindex][3]
  11221. ? groupStudent[toolindex][gindex] &&
  11222. groupStudent[toolindex][gindex][3].name
  11223. : "空位置"
  11224. }}</span>
  11225. </div>
  11226. <div v-if="groupJson.number > 7">
  11227. <span
  11228. :class="{
  11229. isChair:
  11230. groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][7],
  11232. updateChair:
  11233. courseDetail.userid == userid &&
  11234. groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][7] &&
  11236. groupJson.islock == 2,
  11237. }"
  11238. ><span
  11239. class="updateChairBtn"
  11240. @click="
  11241. updateGroupChair(
  11242. groupStudent[toolindex][gindex] &&
  11243. groupStudent[toolindex][gindex][7]
  11244. )
  11245. "
  11246. >修改</span
  11247. ></span
  11248. ><span>{{
  11249. groupStudent[toolindex][gindex] &&
  11250. groupStudent[toolindex][gindex][7]
  11251. ? groupStudent[toolindex][gindex] &&
  11252. groupStudent[toolindex][gindex][7].name
  11253. : "空位置"
  11254. }}</span>
  11255. </div>
  11256. </div>
  11257. </div>
  11258. <div class="g_d_group_chair">
  11259. <div v-if="groupJson.number > 1">
  11260. <span
  11261. :class="{
  11262. isChair:
  11263. groupStudent[toolindex][gindex] &&
  11264. groupStudent[toolindex][gindex][1],
  11265. updateChair:
  11266. courseDetail.userid == userid &&
  11267. groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][1] &&
  11269. groupJson.islock == 2,
  11270. }"
  11271. ><span
  11272. class="updateChairBtn"
  11273. @click="
  11274. updateGroupChair(
  11275. groupStudent[toolindex][gindex] &&
  11276. groupStudent[toolindex][gindex][1]
  11277. )
  11278. "
  11279. >修改</span
  11280. ></span
  11281. ><span>{{
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][1]
  11284. ? groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][1].name
  11286. : "空位置"
  11287. }}</span>
  11288. </div>
  11289. <div v-if="groupJson.number > 5">
  11290. <span
  11291. :class="{
  11292. isChair:
  11293. groupStudent[toolindex][gindex] &&
  11294. groupStudent[toolindex][gindex][5],
  11295. updateChair:
  11296. courseDetail.userid == userid &&
  11297. groupStudent[toolindex][gindex] &&
  11298. groupStudent[toolindex][gindex][5] &&
  11299. groupJson.islock == 2,
  11300. }"
  11301. ><span
  11302. class="updateChairBtn"
  11303. @click="
  11304. updateGroupChair(
  11305. groupStudent[toolindex][gindex] &&
  11306. groupStudent[toolindex][gindex][5]
  11307. )
  11308. "
  11309. >修改</span
  11310. ></span
  11311. ><span>{{
  11312. groupStudent[toolindex][gindex] &&
  11313. groupStudent[toolindex][gindex][5]
  11314. ? groupStudent[toolindex][gindex] &&
  11315. groupStudent[toolindex][gindex][5].name
  11316. : "空位置"
  11317. }}</span>
  11318. </div>
  11319. <div v-if="groupJson.number > 9">
  11320. <span
  11321. :class="{
  11322. isChair:
  11323. groupStudent[toolindex][gindex] &&
  11324. groupStudent[toolindex][gindex][9],
  11325. updateChair:
  11326. courseDetail.userid == userid &&
  11327. groupStudent[toolindex][gindex] &&
  11328. groupStudent[toolindex][gindex][9] &&
  11329. groupJson.islock == 2,
  11330. }"
  11331. ><span
  11332. class="updateChairBtn"
  11333. @click="
  11334. updateGroupChair(
  11335. groupStudent[toolindex][gindex] &&
  11336. groupStudent[toolindex][gindex][9]
  11337. )
  11338. "
  11339. >修改</span
  11340. ></span
  11341. ><span>{{
  11342. groupStudent[toolindex][gindex] &&
  11343. groupStudent[toolindex][gindex][9]
  11344. ? groupStudent[toolindex][gindex] &&
  11345. groupStudent[toolindex][gindex][9].name
  11346. : "空位置"
  11347. }}</span>
  11348. </div>
  11349. </div>
  11350. </div>
  11351. </div>
  11352. </div>
  11353. </div>
  11354. <span slot="footer" class="dialog-footer">
  11355. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11356. </span>
  11357. </el-dialog>
  11358. <el-dialog
  11359. title="分组设置"
  11360. :visible.sync="dialogVisibleGroup2"
  11361. :append-to-body="true"
  11362. width="650px"
  11363. :before-close="handleClose"
  11364. class="dialog_diy"
  11365. >
  11366. <div class="groupBox">
  11367. <div v-if="groupJson2.group" class="groupContent">
  11368. <div class="groupTitle">请设置小组数量及名称</div>
  11369. <div
  11370. v-for="(item, index) in groupJson2.group"
  11371. :key="index"
  11372. class="groupName"
  11373. >
  11374. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11375. <el-input
  11376. v-model="item.name"
  11377. placeholder="请输入名称..."
  11378. style="width: 250px"
  11379. ></el-input>
  11380. <!-- <div class="groupBtn">
  11381. <el-button type="primary" size="small" @click="addGroup(index)">
  11382. 添加</el-button>
  11383. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11384. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11385. </div> -->
  11386. </div>
  11387. </div>
  11388. <div class="groupContent">
  11389. <div class="groupTitle">请设置每组人数</div>
  11390. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11391. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11392. <el-input
  11393. v-model="groupJson.number"
  11394. style="width: 150px"
  11395. placeholder="请输入2-10的数字"
  11396. @change="numberPan"
  11397. ></el-input>
  11398. </div>
  11399. </div>
  11400. <span slot="footer" class="dialog-footer">
  11401. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11402. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11403. </span>
  11404. </el-dialog>
  11405. <el-dialog
  11406. title="作业提交"
  11407. :visible.sync="dialogVisibleGroupWork"
  11408. :append-to-body="true"
  11409. width="500px"
  11410. :before-close="handleClose"
  11411. class="dialog_change"
  11412. >
  11413. <div class="marginT">
  11414. <div>上传文件</div>
  11415. <div
  11416. class="chapter_add"
  11417. @click="addImg($event)"
  11418. v-if="studyJuri[0].cover.length == 0"
  11419. >
  11420. <div class="up_photo">
  11421. <img src="../assets/icon/uploadImg.png" alt />
  11422. </div>
  11423. <!-- <input
  11424. type="file"
  11425. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11426. style="display: none"
  11427. @change="beforeUpload1($event, 1)"
  11428. /> -->
  11429. <input
  11430. type="file"
  11431. accept="*"
  11432. style="display: none"
  11433. @change="beforeUpload1($event, 1)"
  11434. />
  11435. </div>
  11436. <!-- capture="camera" -->
  11437. <div
  11438. class="chapter_add"
  11439. style="
  11440. display: flex;
  11441. width: 100%;
  11442. flex-direction: row;
  11443. flex-wrap: wrap;
  11444. justify-content: flex-start;
  11445. padding: 15px 0;
  11446. "
  11447. v-if="studyJuri[0].cover.length > 0"
  11448. >
  11449. <div class="upCover">
  11450. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11451. <img :src="word" alt v-else-if="fileType == 1" />
  11452. <img :src="video" alt v-else-if="fileType == 2" />
  11453. <img :src="word2" alt v-else-if="fileType == 3" />
  11454. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11455. <div class="deleteWord" @click="clean(1)">
  11456. <img src="../assets/icon/deleteWorks.png" alt />
  11457. </div>
  11458. </div>
  11459. </div>
  11460. </div>
  11461. <div
  11462. class="upload_send"
  11463. @click="addCourseWorks2(taskCount)"
  11464. v-if="!proVisible"
  11465. >
  11466. 提交
  11467. </div>
  11468. </el-dialog>
  11469. <el-dialog
  11470. title="修改分组"
  11471. :visible.sync="dialogVisibleUpdateGroup"
  11472. :append-to-body="true"
  11473. width="350px"
  11474. :before-close="handleClose"
  11475. class="dialog_diy"
  11476. >
  11477. <div>
  11478. <h2>
  11479. {{ this.updateGroupUser.name }}
  11480. </h2>
  11481. <div style="color: rgb(171 171 171); margin-top: 10px">
  11482. 请选择要进入的分组
  11483. </div>
  11484. <el-radio-group v-model="checkChair">
  11485. <el-radio
  11486. style="display: block; margin-top: 20px"
  11487. v-for="(item, index) in updateGroupArray"
  11488. :label="item.label"
  11489. :key="index"
  11490. >{{ item.name }}</el-radio
  11491. >
  11492. </el-radio-group>
  11493. </div>
  11494. <span slot="footer" class="dialog-footer">
  11495. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11496. <el-button type="primary" @click="updateChair">确定</el-button>
  11497. </span>
  11498. </el-dialog>
  11499. <el-dialog
  11500. title="移除组员"
  11501. :visible.sync="dialogVisibleDeleteGroup"
  11502. :append-to-body="true"
  11503. width="350px"
  11504. :before-close="handleClose"
  11505. class="dialog_diy"
  11506. >
  11507. <div>
  11508. <h2>
  11509. {{ this.deleteGroupArray.name }}
  11510. </h2>
  11511. <div style="color: rgb(171 171 171); margin-top: 10px">
  11512. 请选择要删除的组员
  11513. </div>
  11514. <el-checkbox-group v-model="checkDeleteGroup">
  11515. <el-checkbox
  11516. style="display: flex; margin-top: 20px"
  11517. v-for="(item, index) in deleteGroupUser"
  11518. :label="item.userid"
  11519. :key="index"
  11520. >{{ item.name }}</el-checkbox
  11521. >
  11522. </el-checkbox-group>
  11523. </div>
  11524. <span slot="footer" class="dialog-footer">
  11525. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11526. <el-button type="primary" @click="deleteChair">确定</el-button>
  11527. </span>
  11528. </el-dialog>
  11529. <el-dialog
  11530. title="批量上传"
  11531. :visible.sync="dialogVisiblePl"
  11532. :append-to-body="true"
  11533. width="700px"
  11534. :before-close="handleClose"
  11535. class="dialog_change"
  11536. >
  11537. <div class="marginT">
  11538. <div class="plworkBox">
  11539. <div
  11540. class="chapter_add"
  11541. style="
  11542. display: flex;
  11543. width: 150px;
  11544. flex-direction: row;
  11545. flex-wrap: wrap;
  11546. justify-content: flex-start;
  11547. margin: 0 10px 10px 0;
  11548. "
  11549. v-for="(item, index) in plworkFile"
  11550. :key="index"
  11551. >
  11552. <div class="upCover2">
  11553. <img
  11554. :src="item.url"
  11555. alt
  11556. v-if="item.fileType == 1"
  11557. @click="previewImg(item.url)"
  11558. />
  11559. <img :src="word" alt v-else-if="item.fileType == 4" />
  11560. <img :src="video" alt v-else />
  11561. <!-- <span class="picName">{{ item.name }}</span> -->
  11562. <!-- <el-input
  11563. v-model="item.username"
  11564. placeholder="请输入学生名字"
  11565. style="margin-top: 10px"
  11566. ></el-input> -->
  11567. <div
  11568. class="pl_select_box"
  11569. @click="
  11570. getUpdateMore(true, checkUpload(), item.username, index)
  11571. "
  11572. >
  11573. {{ getSName(item.username) }}
  11574. </div>
  11575. <!-- <el-select
  11576. style="margin-top: 10px"
  11577. v-model="item.username"
  11578. filterable
  11579. allow-create
  11580. placeholder="请选择学生"
  11581. >
  11582. <el-option
  11583. v-for="item1 in checkUpload()"
  11584. :key="item1.userid"
  11585. :label="item1.name ? item1.name : item1.username"
  11586. :value="item1.userid"
  11587. >
  11588. </el-option>
  11589. </el-select> -->
  11590. <div class="deleteWord" @click="clean2(index)">
  11591. <img src="../assets/icon/deleteWorks.png" alt />
  11592. </div>
  11593. </div>
  11594. </div>
  11595. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11596. <div class="up_photo2">
  11597. <img src="../assets/icon/plwork.png" alt />
  11598. <span>点击上传文件</span>
  11599. </div>
  11600. <input
  11601. type="file"
  11602. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11603. multiple="multiple"
  11604. style="display: none"
  11605. @change="beforeUpload3($event, 6)"
  11606. />
  11607. </div>
  11608. </div>
  11609. </div>
  11610. <!-- capture="camera" -->
  11611. <div
  11612. class="upload_send"
  11613. @click="addCourseWorksPl(taskCount)"
  11614. v-if="!proVisible2"
  11615. >
  11616. 提交
  11617. </div>
  11618. </el-dialog>
  11619. <el-dialog
  11620. title="修改名称"
  11621. :visible.sync="dialogVisibleSname"
  11622. width="500px"
  11623. :before-close="handleClose"
  11624. class="dialog_diy"
  11625. center
  11626. >
  11627. <div
  11628. style="
  11629. text-align: center;
  11630. display: flex;
  11631. align-items: center;
  11632. justify-content: center;
  11633. "
  11634. >
  11635. <span class="tian1">名称</span>
  11636. <div
  11637. class="pl_select_box"
  11638. style="margin-left: 10px; width: 200px"
  11639. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11640. >
  11641. {{ getSName(worksSName) }}
  11642. </div>
  11643. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11644. placeholder="请选择学生">
  11645. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11646. :value="item.userid">
  11647. </el-option>
  11648. </el-select> -->
  11649. <!-- <el-input
  11650. v-model="worksSName"
  11651. style="width: 250px; margin: 15px 0px"
  11652. ></el-input> -->
  11653. </div>
  11654. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11655. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11656. <el-button type="primary" @click="updateName">确 定</el-button>
  11657. </span>
  11658. </el-dialog>
  11659. <el-dialog
  11660. title="英语写作"
  11661. :visible.sync="engDialogVisible"
  11662. :append-to-body="true"
  11663. width="800px"
  11664. :before-close="handleClose"
  11665. class="dialog_diy"
  11666. >
  11667. <onlineWrite
  11668. v-if="engDialogVisible"
  11669. :englishList="englishList"
  11670. :myAnswerList1="myAnswerList1"
  11671. :userid="userid"
  11672. ref="engJson"
  11673. ></onlineWrite>
  11674. <span slot="footer" class="dialog-footer">
  11675. <el-button @click="engDialogVisible = false">取 消</el-button>
  11676. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11677. </span>
  11678. </el-dialog>
  11679. <el-dialog
  11680. title="英语写作"
  11681. :visible.sync="engUpdateDialogVisible"
  11682. :append-to-body="true"
  11683. width="800px"
  11684. :before-close="handleClose"
  11685. class="dialog_diy fullStyle"
  11686. >
  11687. <div class="engUpBox">
  11688. <div class="engUpTop">
  11689. <div class="engTitle">
  11690. <div>作文题目:</div>
  11691. <div>{{ englishList1.engTitle }}</div>
  11692. </div>
  11693. <div class="engText">
  11694. <div>作文内容:</div>
  11695. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11696. </div>
  11697. </div>
  11698. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11699. <div class="oldBox">
  11700. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11701. <div class="oldText">
  11702. <div class="detailBox">
  11703. <div class="oldDetail">
  11704. <div>标题:</div>
  11705. <div>{{ oldEnglishJson.engTitle }} </div>
  11706. </div>
  11707. <div class="oldDetail1">
  11708. <div>正文:</div>
  11709. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11710. </div>
  11711. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11712. <div>图片:</div>
  11713. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11714. </div>
  11715. </div>
  11716. </div>
  11717. </div>
  11718. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11719. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11720. <div class="oldText">
  11721. <div class="detailBox" style="position: relative;">
  11722. <div class="oldDetail">
  11723. <div>标题:</div>
  11724. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11725. <div v-else v-html="newEnglishList.engTitle"></div>
  11726. </div>
  11727. <div class="oldDetail">
  11728. <div>正文:</div>
  11729. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11730. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11731. </div>
  11732. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11733. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11734. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11735. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11736. </div>
  11737. </div>
  11738. </div>
  11739. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11740. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11741. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11742. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11743. </div>
  11744. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11745. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11746. <div class="detailBox" style="position: relative;">
  11747. <div class="oldDetail">
  11748. <div>标题:</div>
  11749. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11750. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11751. </div>
  11752. <div class="oldDetail">
  11753. <div>正文:</div>
  11754. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11755. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11756. </div>
  11757. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11758. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11759. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11760. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11761. </div>
  11762. </div>
  11763. <div class="oldText" v-else-if="newEngIndex == -1">
  11764. <div class="detailBox" style="position: relative;">
  11765. <div class="oldDetail">
  11766. <div>标题:</div>
  11767. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11768. <div v-else v-html="newEnglishList.engTitle"></div>
  11769. </div>
  11770. <div class="oldDetail">
  11771. <div>正文:</div>
  11772. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11773. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11774. </div>
  11775. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11776. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11777. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11778. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11779. </div>
  11780. </div>
  11781. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11782. <div class="detailBox" style="position: relative;">
  11783. <div class="oldDetail">
  11784. <div>标题:</div>
  11785. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11786. <div v-else>
  11787. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11788. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11789. </div>
  11790. </div>
  11791. <div class="oldDetail">
  11792. <div>正文:</div>
  11793. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11794. <div v-else>
  11795. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11796. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11797. </div>
  11798. </div>
  11799. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11800. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11801. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  11802. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11803. </div>
  11804. </div>
  11805. </div>
  11806. </div>
  11807. </div>
  11808. <span slot="footer" class="dialog-footer">
  11809. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11810. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11811. </span>
  11812. </el-dialog>
  11813. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11814. <interVideo
  11815. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11816. :videoJson="videoJson"
  11817. :userid="userid"
  11818. :id="id"
  11819. :courseType="courseType"
  11820. :taskCount="taskCount"
  11821. :toolindex="toolindex"
  11822. :videoType="videoType"
  11823. ></interVideo>
  11824. <UpdateMore
  11825. :dialogVisibleMember.sync="dialogVisibleMember"
  11826. :cList="uploadStudentJuri"
  11827. :userid="userid"
  11828. :searchTN="worksSName2"
  11829. @setPlname="setPlname"
  11830. ></UpdateMore>
  11831. <wordCloud
  11832. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11833. :data="wordCloudData"
  11834. ></wordCloud>
  11835. <el-dialog
  11836. title="挑人"
  11837. :visible.sync="dialogVisiblePickPeople"
  11838. width="650px"
  11839. :before-close="handleClose"
  11840. class="dialog_diy"
  11841. center
  11842. >
  11843. <div class="pick_box">
  11844. <div
  11845. class="noWorksName"
  11846. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11847. v-for="(item, index) in uploadStudentJuri"
  11848. :key="index"
  11849. @click="pickStudent(item)"
  11850. >
  11851. {{ item.name }}
  11852. </div>
  11853. </div>
  11854. </el-dialog>
  11855. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11856. :englishVoiceJson='englishVoiceJson'
  11857. :userid="userid"
  11858. :id="id"
  11859. :courseType="courseType"
  11860. :taskCount="taskCount"
  11861. :toolindex="toolindex"
  11862. @selectSWorks="selectSWorks"
  11863. @selectStudent="selectStudent"
  11864. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11865. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11866. :userid="userid"
  11867. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11868. :commentDetail="commentDetail"
  11869. :courseDetail="courseDetail"
  11870. :wScore="wScore"
  11871. :scoreDetail="scoreDetail"
  11872. @selectSWorks="selectSWorks"
  11873. @selectStudent="selectStudent"></checkEnglishVoice>
  11874. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11875. <choseWorksDetailDialog
  11876. ref="choseWorksDetailDialogRef"
  11877. :worksStudentData="this.worksStudent"
  11878. :noWorksSData="noWorksS"
  11879. :chapInfoListData="chapInfoList"
  11880. :courseType="courseType"
  11881. :taskCount="taskCount"
  11882. @deleteWorks="deleteWorks"
  11883. @openTools="openTools"
  11884. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11885. />
  11886. </div>
  11887. </template>
  11888. <script>
  11889. import "../common/aws-sdk-2.235.1.min.js";
  11890. // import pdf from "./components/pdf3";
  11891. import pdf from "./components/vpdf";
  11892. import AskStatic from "./components/askStatic";
  11893. import AskStatic2 from "./components/askStatic2";
  11894. import AnswerData2 from "./components/answerData2";
  11895. import AnswerData from "./components/answerData";
  11896. import EditorBar from "./tools/wangEnduit.vue";
  11897. import Table from "./tools/table.vue";
  11898. import Time from "./tools/time.vue";
  11899. import Mind from "./tools/jsmind.vue";
  11900. import Sunburst from "./tools/sunburst";
  11901. import SeeBoard from "./tools/seeBoard";
  11902. import * as imageConversion from "image-conversion";
  11903. import Audio from "./components/audio.vue";
  11904. import ImgDraw from "./tools/imgDraw/imgDraw";
  11905. import { Empty } from "element-ui";
  11906. import RecordRTC from "recordrtc";
  11907. import interVideo from "./interVideo/index.vue";
  11908. import UpdateMore from "./updateMore/updateMore.vue";
  11909. import wordCloud from "./wordCloud/index.vue";
  11910. import axios from "axios";
  11911. import JSZip from "jszip";
  11912. import FileSaver from "file-saver";
  11913. import onlineWrite from "./components/onlineWrite";
  11914. import englishEva from "./components/englishEva";
  11915. import * as Diff from 'diff'
  11916. import EnglishVoice from './EnglishVoice2/index.vue'
  11917. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11918. import correctText from './components/correctText.vue'
  11919. import scoreItem from './scoreList/scoreItem.vue'
  11920. import scoreZong from './scoreZong/index.vue'
  11921. import classRoomHelper from './classRoomHelper/index.vue'
  11922. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11923. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11924. import { v4 as uuidv4 } from "uuid";
  11925. const getFile = (url) => {
  11926. return new Promise((resolve, reject) => {
  11927. var credentials = {
  11928. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11929. secretAccessKey: "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",
  11930. }; //秘钥形式的登录上传
  11931. window.AWS.config.update(credentials);
  11932. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11933. let url2 = url;
  11934. let _url2 = "";
  11935. if (
  11936. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11937. ) {
  11938. _url2 = url2.split(
  11939. "https://view.officeapps.live.com/op/view.aspx?src="
  11940. )[1];
  11941. } else {
  11942. _url2 = url2;
  11943. }
  11944. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11945. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11946. var params = {
  11947. Bucket: "ccrb",
  11948. Key: name
  11949. };
  11950. s3.getObject(params, function (err, data) {
  11951. if (err) {
  11952. console.log(err, err.stack)
  11953. resolve({ data: 1 });
  11954. }else {
  11955. resolve({ data: data.Body });
  11956. console.log(data);
  11957. } // sxuccessful response
  11958. });
  11959. // axios({
  11960. // method: "get",
  11961. // url,
  11962. // responseType: "blob",
  11963. // })
  11964. // .then((data) => {
  11965. // resolve({ data: data.data });
  11966. // })
  11967. // .catch((error) => {
  11968. // resolve({ data: 1 });
  11969. // // reject(error.toString());
  11970. // });
  11971. });
  11972. };
  11973. export default {
  11974. components: {
  11975. EditorBar,
  11976. Time,
  11977. pdf,
  11978. AskStatic,
  11979. AskStatic2,
  11980. Mind,
  11981. Sunburst,
  11982. SeeBoard,
  11983. AnswerData2,
  11984. AnswerData,
  11985. Audio,
  11986. ImgDraw,
  11987. Table,
  11988. interVideo,
  11989. UpdateMore,
  11990. wordCloud,
  11991. onlineWrite,
  11992. englishEva,
  11993. EnglishVoice,
  11994. checkEnglishVoice,
  11995. correctText,
  11996. scoreItem,
  11997. classRoomHelper,
  11998. scoreZong,
  11999. statisticalAnalysis,
  12000. choseWorksDetailDialog
  12001. },
  12002. data() {
  12003. return {
  12004. bg: null,
  12005. drawShow: false,
  12006. dialogVisible: false,
  12007. dialogVisiblePl: false,
  12008. commentDialogVisible: false,
  12009. dialogVisibleMember: false,
  12010. dialogVisibleWordCloud: false,
  12011. videoVisible: false,
  12012. isStar: false,
  12013. studentEvalDialogVisible: false,
  12014. studentEvalDialogVisibleTeacher: false,
  12015. dialogVisibleSelect: false,
  12016. dialogVisibleSelectTeacher: false,
  12017. dialogVisibleScore: false,
  12018. dialogVisibleENScore: false,
  12019. dialogVisibleSentence: false,
  12020. dialogVisibleSentenceTeacher: false,
  12021. dialogVisibleSentence1: false,
  12022. dialogVisibleWorks: false,
  12023. dialogVisibleTable: false,
  12024. dialogVisibleTableTeacher: false,
  12025. dialogVisibleWord: false,
  12026. dialogVisibleWordTeacher: false,
  12027. dialogVisibleTable2: false,
  12028. dialogVisibleTable3: false,
  12029. dialogVisibleGroupWork: false,
  12030. dialogVisibleUpdateGroup: false,
  12031. dialogVisibleDeleteGroup: false,
  12032. dialogVisibleSname: false,
  12033. dialogVisibleVideo: false,
  12034. dialogVisiblePickPeople: false,
  12035. engDialogVisible: false,
  12036. engUpdateDialogVisible: false,
  12037. engEvaDialogVisible: false,
  12038. evaEngJson: {
  12039. teacherJson: {},
  12040. studentJson: {},
  12041. message: {},
  12042. },
  12043. isNoUserid:false,
  12044. engListLength:0,
  12045. engWid:"",
  12046. newEnglishList:{
  12047. engTitle:"",
  12048. engText:"",
  12049. },
  12050. newEnglishList1:[],
  12051. oldEnglishJson:{},
  12052. oldEnglishJson1:{},
  12053. englishList1:{},
  12054. englishList:{},
  12055. myAnswerList1:{},
  12056. topHeight:0,
  12057. newEngIndex:-1,
  12058. englishToolIndex:0,
  12059. worksSName: "",
  12060. classJuri: [],
  12061. uploadStudentJuri: [],
  12062. uploadCid: "",
  12063. snameWid: "",
  12064. sStudent: {},
  12065. sTool: "",
  12066. bzText: "",
  12067. commentDetail: [],
  12068. selectAnswer: [],
  12069. videoDetail: {},
  12070. selectJson: {},
  12071. eScore: { eBzText: "", eStar: [] },
  12072. id: this.$route.query.courseId,
  12073. userid: this.$route.query.userid,
  12074. classId: this.$route.query.cid,
  12075. // courseTypeLine: this.$route.query.type,
  12076. oid: this.$route.query.oid,
  12077. org: this.$route.query.org,
  12078. tType: this.$route.query.tType,
  12079. courseType: this.$route.query.type,
  12080. screenType: this.$route.query.screenType,
  12081. tcid2: this.$route.query.tcid,
  12082. tcid: "",
  12083. pptImgUrl: "",
  12084. pptImgUrl1: "",
  12085. commentText: "",
  12086. full: false,
  12087. sIsOpen: false,
  12088. IsLookOpen: false,
  12089. IsFollow: false,
  12090. pzDialog: false,
  12091. contentDialog: false,
  12092. mlDialog: false,
  12093. type: 1,
  12094. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12095. sentenceList1: [],
  12096. tableJson: [],
  12097. tableJsonO: [],
  12098. wordJson: [],
  12099. wordJsonO: [],
  12100. vedio: [],
  12101. text: [],
  12102. textList: [],
  12103. line: [],
  12104. lineList: [],
  12105. chapTools: [],
  12106. chapToolList: [],
  12107. file: [],
  12108. fileC: [],
  12109. vedioTime: [],
  12110. upToolImg: "",
  12111. preTime: 0,
  12112. rateList: {
  12113. ca: 0,
  12114. },
  12115. rateParams: [],
  12116. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12117. studyJuri: [
  12118. {
  12119. content: "",
  12120. cover: [],
  12121. upVedio: [],
  12122. upFile: [],
  12123. },
  12124. ],
  12125. isClose: 0,
  12126. plworkFile: [],
  12127. mr: require("../assets/vedioPic.png"),
  12128. word: require("../assets/icon/isWord.png"),
  12129. word2: require("../assets/icon/word2.png"),
  12130. video: require("../assets/icon/isVideo.png"),
  12131. noLikes: require("../assets/icon/comment/noLikes.png"),
  12132. likes: require("../assets/icon/comment/likes.png"),
  12133. scoreImg: require("../assets/score.png"),
  12134. courseDetail: {},
  12135. reply: "",
  12136. isSelect: false,
  12137. chapInfo: [],
  12138. chapInfoList: [],
  12139. taskCount: 0,
  12140. imgList: [],
  12141. noImgList: [],
  12142. pzList: [],
  12143. timeWorkList: [],
  12144. PlTextList: [
  12145. "Excellent!",
  12146. "nice!",
  12147. "很有创意!",
  12148. "还不错哦~",
  12149. "继续努力哦~",
  12150. ],
  12151. isClickNav: "",
  12152. navId: "",
  12153. playerOptions: {
  12154. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12155. autoplay: false, //如果true,浏览器准备好时开始回放。
  12156. muted: false, // 默认情况下将会消除任何音频。
  12157. loop: false, // 导致视频一结束就重新开始。
  12158. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12159. language: "zh-CN",
  12160. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12161. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12162. sources: [
  12163. {
  12164. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12165. src: "", //url地址require("../../assets/media/aaa.mp4")
  12166. },
  12167. ],
  12168. // poster: require("../../assets/tu31.png"), //你的封面地址
  12169. // poster: dataRes.imgUrl, //你的封面地址
  12170. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12171. controlBar: {
  12172. timeDivider: true, //当前时间和持续时间的分隔符
  12173. durationDisplay: true, //显示持续时间
  12174. remainingTimeDisplay: false, //是否显示剩余时间功能
  12175. fullscreenToggle: true, //全屏按钮
  12176. },
  12177. },
  12178. playerOptions1: {
  12179. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12180. autoplay: false, //如果true,浏览器准备好时开始回放。
  12181. muted: false, // 默认情况下将会消除任何音频。
  12182. loop: false, // 导致视频一结束就重新开始。
  12183. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12184. language: "zh-CN",
  12185. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12186. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12187. sources: [
  12188. {
  12189. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12190. src: "", //url地址require("../../assets/media/aaa.mp4")
  12191. },
  12192. ],
  12193. // poster: require("../../assets/tu31.png"), //你的封面地址
  12194. // poster: dataRes.imgUrl, //你的封面地址
  12195. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12196. controlBar: {
  12197. timeDivider: true, //当前时间和持续时间的分隔符
  12198. durationDisplay: true, //显示持续时间
  12199. remainingTimeDisplay: false, //是否显示剩余时间功能
  12200. fullscreenToggle: true, //全屏按钮
  12201. },
  12202. },
  12203. playerO: {},
  12204. noneBtnImg: false,
  12205. proVisible: false,
  12206. proVisible2: false,
  12207. progress: 0,
  12208. isFinishSize: 0,
  12209. isAllSize: 0,
  12210. questionAnswer: "",
  12211. answerQ: "", //问答标题
  12212. rateJson: [],
  12213. wbCount: 0,
  12214. wordCount: 0,
  12215. mindCount: 0,
  12216. askCount: 0,
  12217. noteCount: 0,
  12218. mindNetWorkCount: 0,
  12219. libraryCount: 0,
  12220. workCount: 0,
  12221. timeCount: 0,
  12222. answerCount: 0,
  12223. trainCount: 0,
  12224. evalCount: 0,
  12225. dialogImageUrl: "",
  12226. pictureDialog: false,
  12227. toolTypeList: [],
  12228. dialogVisible1: false,
  12229. dialogVisible2: false,
  12230. dialogVisible3: false,
  12231. dialogVisible6: false,
  12232. dialogVisible4: false,
  12233. isNoHomeWork: false,
  12234. dialogVisible5: false,
  12235. dialogVisible5Teacher: false,
  12236. dialogVisibleChoice: false,
  12237. dialogVisibleChoiceTeacher: false,
  12238. answerDialogVisible: false,
  12239. answerDialogVisibleTeacher: false,
  12240. juriVisible: false,
  12241. timeDialogVisible: false,
  12242. replyDialogVisible: false,
  12243. toolDialogVisible: false,
  12244. replyIndex: 0,
  12245. replyPid: "",
  12246. radio: [],
  12247. isAsk: false,
  12248. askJson: {
  12249. askCount: 1,
  12250. askTitle: "",
  12251. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12252. },
  12253. testJson: {},
  12254. videoType:0,
  12255. checkJson: [],
  12256. askList: [],
  12257. answerList: [],
  12258. navList: [],
  12259. addPzDialog: false,
  12260. pzConText: "",
  12261. worksStudent: [],
  12262. isCloseList: [],
  12263. workStudent: [],
  12264. groupStudent: [],
  12265. groupStudentUid: [],
  12266. noWorksS: [],
  12267. isWorksS: [],
  12268. noWorksStudent: [],
  12269. toolindex: 0,
  12270. toolDetailIndex: null,
  12271. groupIndex: 0,
  12272. workTypeB: false,
  12273. workTypeC: false,
  12274. isAnswer: false,
  12275. isHovered: false,
  12276. isHovered1: false,
  12277. isHovered2: false,
  12278. commentTagShow:0,
  12279. timer: null,
  12280. opertimer: null,
  12281. showType: 0,
  12282. fileType: 0,
  12283. showPDF: false,
  12284. noteName: "",
  12285. evaJuri: [],
  12286. evalua: "",
  12287. eTitle: "",
  12288. eName: "",
  12289. eJson: {},
  12290. fid: "", //一级
  12291. sid: "", //二级
  12292. tid: "", //二级
  12293. typeMode: 1,
  12294. eJSONNum: 0,
  12295. Etype: 1,
  12296. data: {
  12297. meta: {
  12298. name: "example",
  12299. author: "dd@163.com",
  12300. version: "0.2",
  12301. },
  12302. format: "node_array",
  12303. data: [{ id: "root", isroot: true, topic: "" }],
  12304. },
  12305. fullDialogVisible: false,
  12306. fulltype: "",
  12307. fullUrl: "",
  12308. commentIndexJson: {},
  12309. Stbodywidth: 0,
  12310. ispzType: 0,
  12311. pzType: 1,
  12312. wScore: 0,
  12313. scoreDetail: "",
  12314. videoStart: false,
  12315. recorder: null,
  12316. groupJson: {},
  12317. islock: false,
  12318. groupJson2: {},
  12319. dialogVisibleGroup: false,
  12320. dialogVisibleGroup2: false,
  12321. updateGroupArray: [],
  12322. updateGroupUser: {},
  12323. deleteGroupUser: [],
  12324. deleteGroupArray: {},
  12325. checkChair: "",
  12326. checkDeleteGroup: [],
  12327. inviteCode: "",
  12328. courseGroupStudent: [],
  12329. courseGroupStudentUid: [],
  12330. courseGroup: {},
  12331. isGroup: false,
  12332. // toolIndex: null,
  12333. tool: {},
  12334. isWorkTool: [
  12335. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12336. ], //, 40
  12337. videoJson: {},
  12338. toolType: 0,
  12339. checktoolArray: [],
  12340. vChapterData: [],
  12341. isUpdateToolDetail: false,
  12342. isUpdateToolDetail1: false,
  12343. updateToolDetailInner: "",
  12344. checkboxList: [],
  12345. plIndex: "",
  12346. worksSName2: "",
  12347. worksSid: "",
  12348. wordCloudData: [],
  12349. isPickStudent: [],
  12350. pzStype: 1,
  12351. myAnList: {},
  12352. userMes:{},
  12353. downLoading: false,
  12354. greyType: false,
  12355. correctWord: [],
  12356. isUpdateText: "",
  12357. EnglishVoiceDialog: false,
  12358. englishVoiceJson: {},
  12359. englishVoiceJsonWork:[],
  12360. scoreList:{
  12361. listdata:[],
  12362. isScoreList:[],
  12363. },
  12364. classRoomHelperWidth: '85px',
  12365. orgArray:[],
  12366. oidArray:[],
  12367. toolsList:{
  12368. 58: "模拟驾驶",
  12369. 59: "路径搜索",
  12370. 60: "深度学习",
  12371. 10: "倒计时",
  12372. 65: "挑人",
  12373. 7: "思维网格",
  12374. 1: "电子白板",
  12375. 52: "文档",
  12376. 3: "思维导图",
  12377. 48: "表格",
  12378. 49: "学生分组",
  12379. 4: "卷调查",
  12380. 45: "选择题",
  12381. 15: "问答",
  12382. 16: "作业提交",
  12383. 50: "批量上传",
  12384. 41: "选择匹配",
  12385. 47: "排序",
  12386. 40: "个人评价",
  12387. 18: "训练平台",
  12388. 21: "AIoT Blockly",
  12389. 23: "AI Python",
  12390. 24: "AI Blockly",
  12391. 32: "源码编辑",
  12392. 57: "CocoPi",
  12393. 63: "海龟编程",
  12394. 28: "翻译",
  12395. 31: "数字画板",
  12396. 39: "GeoGebra",
  12397. 66: "公式编辑",
  12398. 67: "分子结构",
  12399. 68: "时间轴",
  12400. 69: "英语写作",
  12401. 70: "英语口语",
  12402. 25: "目标管理",
  12403. 26: "课程设计",
  12404. 62: "交互视频",
  12405. 71: "AI智能体"
  12406. },
  12407. splitScreenData:{
  12408. isOpen:false,
  12409. userId:"",
  12410. uid:"",
  12411. myUid:"",
  12412. loading:false,
  12413. behavior:null,
  12414. }
  12415. };
  12416. },
  12417. methods: {
  12418. getAIJ(){
  12419. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12420. let oid = res.data[0];
  12421. let org = res.data[1];
  12422. let oidArray = [];
  12423. let orgArray = [];
  12424. oid.forEach(i=>oidArray.push(i.oid))
  12425. org.forEach(i=>orgArray.push(i.oid))
  12426. this.orgArray = orgArray;
  12427. this.oidArray = oidArray;
  12428. })
  12429. },
  12430. insertMemorandum(_html){//保存行为操作
  12431. //variable
  12432. //btn
  12433. let params = [{
  12434. uid:this.userid,
  12435. courseId:this.id+(this.tcid2?this.tcid2:''),
  12436. content:_html
  12437. }]
  12438. console.log("👇👇")
  12439. console.log(params)
  12440. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12441. if(res.data==1){
  12442. console.log('保存操作成功')
  12443. }else{
  12444. console.log('保存操作失败')
  12445. }
  12446. }).catch(e=>{
  12447. console.log('保存操作失败')
  12448. console.log(e)
  12449. })
  12450. },
  12451. gx(){
  12452. this.$forceUpdate();
  12453. },
  12454. isUpdateCorrect(t,p){
  12455. if(this.greyType == false){
  12456. this.isUpdateText = t;
  12457. this.greyType = true;
  12458. }else{
  12459. if(p == 1){
  12460. this.newEnglishList.engText = this.isUpdateText;
  12461. }else if(p == 2){
  12462. this.oldEnglishJson1.engText = this.isUpdateText;
  12463. }else if(p == 3){
  12464. this.newEnglishList.engText = this.isUpdateText;
  12465. }else{
  12466. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12467. }
  12468. this.greyType = false
  12469. }
  12470. },
  12471. aiCorrect(t,p){
  12472. let aiText = "";
  12473. const loading = this.$loading.service({
  12474. background: "rgba(255, 255, 255)",
  12475. target: document.querySelectorAll(".loadingText")[0],
  12476. });
  12477. let param = {
  12478. model: "gpt-3.5-turbo",
  12479. temperature: 0,
  12480. max_tokens: 2048,
  12481. top_p: 1,
  12482. frequency_penalty: 0,
  12483. presence_penalty: 0,
  12484. messages: [
  12485. {
  12486. role: "user",
  12487. content:
  12488.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12489. },
  12490. ],
  12491. uid: this.userid,
  12492. stream: false,
  12493. };
  12494. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12495. (res) => {
  12496. if (
  12497. res.data.FunctionResponse &&
  12498. res.data.FunctionResponse.result &&
  12499. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12500. ) {
  12501. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12502. return;
  12503. }
  12504. aiText =
  12505. res.data.FunctionResponse.choices[0].message.content;
  12506. aiText = aiText.replace(/%/g,"%25");
  12507. // let w = "";
  12508. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12509. // for(var k = 0;k<a.length;k++){
  12510. // //diffWordsWithSpace
  12511. // if(a.length > 1){
  12512. // if(a[k].added == true){
  12513. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12514. // }else if(a[k].removed == true){
  12515. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12516. // }else{
  12517. // w += '<span>' + a[k].value + '</span>';
  12518. // }
  12519. // }else{
  12520. // if(p == 1){
  12521. // w = this.newEnglishList.engText;
  12522. // }else if(p == 2){
  12523. // w = this.oldEnglishJson1.engText;
  12524. // }else if(p == 3){
  12525. // w = this.newEnglishList.engText;
  12526. // }else{
  12527. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12528. // }
  12529. // }
  12530. // }
  12531. if(p == 1){
  12532. this.newEnglishList.engText = aiText;
  12533. }else if(p == 2){
  12534. this.oldEnglishJson1.engText = aiText;
  12535. }else if(p == 3){
  12536. this.newEnglishList.engText = aiText;
  12537. }else{
  12538. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12539. }
  12540. loading.close();
  12541. },
  12542. (err) => {
  12543. console.log(err);
  12544. loading.close();
  12545. }
  12546. );
  12547. },
  12548. addToolChoose() {
  12549. if (!this.checktoolArray.length) {
  12550. this.$message.error("请选择要添加的任务");
  12551. return;
  12552. }
  12553. if (
  12554. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12555. this.taskCount
  12556. ].toolChoose[0].tool.length
  12557. ) {
  12558. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12559. this.taskCount
  12560. ].toolChoose[0].tool = this.checktoolArray;
  12561. } else {
  12562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12563. this.taskCount
  12564. ].toolChoose.push({
  12565. tool: this.checktoolArray,
  12566. toolDetail: "",
  12567. toolType: 0,
  12568. askCount: 1,
  12569. askTitle: "",
  12570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12571. });
  12572. }
  12573. let params = [
  12574. {
  12575. cid: this.id,
  12576. chapters: JSON.stringify(this.chapInfoList),
  12577. uid: this.userid,
  12578. unitIndex: this.courseType,
  12579. },
  12580. ];
  12581. this.ajax
  12582. .post(this.$store.state.api + "updateWorkNew4", params)
  12583. .then((res) => {
  12584. this.$message({
  12585. message: "添加成功",
  12586. type: "success",
  12587. });
  12588. this.checktoolArray = [];
  12589. this.getCourseDetail(2);
  12590. this.checkBz(
  12591. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12592. this.taskCount
  12593. ].toolChoose.length - 1
  12594. );
  12595. this.toolDialogVisible = false;
  12596. this.refreshCourse();
  12597. this.$forceUpdate();
  12598. })
  12599. .catch((err) => {
  12600. console.error(err);
  12601. });
  12602. },
  12603. checkBz(index) {
  12604. this.isUpdateToolDetail = false;
  12605. this.$forceUpdate();
  12606. setTimeout(() => {
  12607. document.scrollingElement.scrollTop =
  12608. document.querySelectorAll(".filebox")[index].offsetTop +
  12609. document.querySelector(".student_body").offsetTop;
  12610. }, 500);
  12611. },
  12612. updateToolDetail(i, type) {
  12613. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12614. this.toolDetailIndex = i
  12615. this.isUpdateToolDetail1 = true;
  12616. setTimeout(() => {
  12617. this.updateToolDetailInner = JSON.parse(
  12618. JSON.stringify(
  12619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12620. this.taskCount
  12621. ].toolChoose[i].toolDetail
  12622. )
  12623. );
  12624. document.querySelector(".checkTextArea").focus();
  12625. }, 0);
  12626. } else if((this.isUpdateToolDetail1 && type != 2)){
  12627. // this.toolDetailIndex = i;
  12628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12629. this.taskCount
  12630. ].toolChoose[i].toolDetail = JSON.parse(
  12631. JSON.stringify(this.updateToolDetailInner)
  12632. );
  12633. let params = [
  12634. {
  12635. cid: this.id,
  12636. chapters: JSON.stringify(this.chapInfoList),
  12637. uid: this.userid,
  12638. unitIndex: this.courseType,
  12639. },
  12640. ];
  12641. this.ajax
  12642. .post(this.$store.state.api + "updateWorkNew4", params)
  12643. .then((res) => {
  12644. this.isUpdateToolDetail1 = false;
  12645. this.$message({
  12646. message: "修改成功",
  12647. type: "success",
  12648. });
  12649. this.toolDetailIndex = null;
  12650. this.updateToolDetailInner = "";
  12651. this.getCourseDetail(2);
  12652. this.$forceUpdate();
  12653. })
  12654. .catch((err) => {
  12655. console.error(err);
  12656. });
  12657. } else if((this.isUpdateToolDetail1 && type == 2)){
  12658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12659. this.taskCount
  12660. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12661. JSON.stringify(this.updateToolDetailInner)
  12662. );
  12663. let params = [
  12664. {
  12665. cid: this.id,
  12666. chapters: JSON.stringify(this.chapInfoList),
  12667. uid: this.userid,
  12668. unitIndex: this.courseType,
  12669. },
  12670. ];
  12671. this.ajax
  12672. .post(this.$store.state.api + "updateWorkNew4", params)
  12673. .then((res) => {
  12674. this.$message({
  12675. message: "修改成功",
  12676. type: "success",
  12677. });
  12678. this.toolDetailIndex = i;
  12679. this.isUpdateToolDetail1 = true;
  12680. setTimeout(() => {
  12681. this.updateToolDetailInner = JSON.parse(
  12682. JSON.stringify(
  12683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12684. this.taskCount
  12685. ].toolChoose[i].toolDetail
  12686. )
  12687. );
  12688. document.querySelector(".checkTextArea").focus();
  12689. }, 0);
  12690. this.getCourseDetail(2);
  12691. this.$forceUpdate();
  12692. })
  12693. .catch((err) => {
  12694. console.error(err);
  12695. });
  12696. }
  12697. },
  12698. jumpGj(i, j, k, l) {
  12699. for (var z = 0; z < this.navList.length; z++) {
  12700. for (var q = 0; q < this.navList[z].task.length; q++) {
  12701. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12702. this.navList[z].task[q].tool[w].isTool = false;
  12703. }
  12704. }
  12705. }
  12706. this.navList[i].task[j].tool[k].isTool =
  12707. !this.navList[i].task[j].tool[k].isTool;
  12708. var a = document.scrollingElement;
  12709. this.navId = ""
  12710. let target = document.querySelector(`#gj${k}`);
  12711. if (target) {
  12712. target.scrollIntoView(true);
  12713. setTimeout(() => {
  12714. a.scrollTop = a.scrollTop - 150;
  12715. }, 0);
  12716. }
  12717. let flag = this.courseType == i;
  12718. let flag2 = this.taskCount == j
  12719. if (l) {
  12720. this.courseType = i;
  12721. // this.navId = l;
  12722. this.taskCount = j;
  12723. this.selectPz();
  12724. this.getHomeWork();
  12725. this.getCourseDetail(2);
  12726. if(flag){
  12727. if(flag2){
  12728. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12729. }else{
  12730. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12731. }
  12732. }else{
  12733. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12734. }
  12735. }
  12736. // var b = this.$refs["bz" + k][0];
  12737. // a.scrollTop = b.offsetTop;
  12738. },
  12739. addTools2(i) {
  12740. if (i == 4) {
  12741. // this.openTools2(4);
  12742. this.$message.error("暂未开放");
  12743. return;
  12744. }
  12745. if (i == 45) {
  12746. // this.openTools2(45);
  12747. this.$message.error("暂未开放");
  12748. return;
  12749. }
  12750. if (i == 47) {
  12751. // this.openTools2(47);
  12752. this.$message.error("暂未开放");
  12753. return;
  12754. }
  12755. if (i == 49) {
  12756. // this.openTools2(49);
  12757. this.$message.error("暂未开放");
  12758. return;
  12759. }
  12760. if (i == 62) {
  12761. // this.openTools(itemTaskIndex, 62, toolIndex);
  12762. this.$message.error("暂未开放");
  12763. return;
  12764. }
  12765. if (i == 15) {
  12766. // this.openTools(itemTaskIndex, 15, toolIndex);
  12767. this.$message.error("暂未开放");
  12768. return;
  12769. }
  12770. if (i == 40) {
  12771. // this.openTools(itemTaskIndex, 40, toolIndex);
  12772. this.$message.error("暂未开放");
  12773. return;
  12774. }
  12775. if (i == 41) {
  12776. // this.openTools(itemTaskIndex, 41, toolIndex);
  12777. this.$message.error("暂未开放");
  12778. return;
  12779. }
  12780. if (i == 42) {
  12781. // this.openTools(itemTaskIndex, 42, toolIndex);
  12782. this.$message.error("暂未开放");
  12783. return;
  12784. }
  12785. if (this.checktoolArray.length > 0) {
  12786. if (this.checktoolArray.indexOf(i) != -1) {
  12787. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12788. } else {
  12789. this.checktoolArray = [];
  12790. this.checktoolArray.push(i);
  12791. }
  12792. } else {
  12793. this.checktoolArray.push(i);
  12794. }
  12795. this.$forceUpdate();
  12796. },
  12797. jump() {
  12798. window.parent.postMessage({ tools: "43" }, "*");
  12799. },
  12800. getUpdateMore(f, checkboxList, searchTN, index) {
  12801. this.dialogVisibleMember = f;
  12802. this.checkboxList = checkboxList;
  12803. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12804. this.plIndex = index;
  12805. },
  12806. setPlname(a) {
  12807. if (this.plworkFile.length) {
  12808. this.plworkFile[this.plIndex].username = a;
  12809. } else {
  12810. this.worksSName = a;
  12811. }
  12812. this.dialogVisibleMember = false;
  12813. },
  12814. previewImg(url,w=null) {
  12815. this.$hevueImgPreview(url);
  12816. if(w){
  12817. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12818. }
  12819. },
  12820. checkImg(list) {
  12821. if (!list.length) {
  12822. return;
  12823. }
  12824. this.$hevueImgPreview({
  12825. multiple: true, // 开启多图预览模式
  12826. imgList: list, // 需要预览的多图数组
  12827. });
  12828. },
  12829. change(val) {
  12830. console.log(val);
  12831. },
  12832. goTo(path) {
  12833. this.$router.push(path);
  12834. },
  12835. handlePictureCardPreview(url) {
  12836. this.dialogImageUrl = url;
  12837. this.pictureDialog = true;
  12838. },
  12839. clean(type) {
  12840. if (type == 1) {
  12841. this.studyJuri[0].cover.splice(0, 1);
  12842. } else if (type == 2) {
  12843. this.studyJuri[0].upVedio.splice(0, 1);
  12844. } else {
  12845. this.studyJuri[0].upFile.splice(0, 1);
  12846. }
  12847. },
  12848. clean2(index) {
  12849. this.plworkFile.splice(index, 1);
  12850. },
  12851. handleClose(done) {
  12852. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12853. this.videoDetail.sources[0].src = "";
  12854. }
  12855. this.commentIndexJson = {};
  12856. done();
  12857. },
  12858. fullTools() {
  12859. this.full = !this.full;
  12860. },
  12861. imgChange(file, fileList, type) {
  12862. if (type == 1) {
  12863. var _tmp = this.studyJuri[0].cover;
  12864. } else if (type == 2) {
  12865. var _tmp = this.studyJuri[0].upVedio;
  12866. } else {
  12867. var _tmp = this.studyJuri[0].upFile;
  12868. }
  12869. this.noneBtnImg = _tmp.length >= 1;
  12870. },
  12871. setContent(bool) {
  12872. this.contentDialog = bool;
  12873. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12874. document.querySelector(".workd_media").style.height = "650px";
  12875. } else if (document.querySelector(".workd_media")) {
  12876. document.querySelector(".workd_media").style.height = "auto";
  12877. }
  12878. },
  12879. setContent2(bool) {
  12880. this.mlDialog = bool;
  12881. if (
  12882. bool &&
  12883. this.contentDialog &&
  12884. document.querySelector(".workd_media")
  12885. ) {
  12886. document.querySelector(".workd_media").style.height = "650px";
  12887. } else if (document.querySelector(".workd_media")) {
  12888. document.querySelector(".workd_media").style.height = "auto";
  12889. }
  12890. this.$forceUpdate();
  12891. },
  12892. openToolAll() {
  12893. this.toolDialogVisible = true;
  12894. },
  12895. addImg(e) {
  12896. var el = e.currentTarget;
  12897. // this.$message.success('触发上传')
  12898. el.getElementsByTagName("input")[0].click();
  12899. e.target.value = "";
  12900. },
  12901. addSelectAnswer() {
  12902. let params = [
  12903. {
  12904. uid: this.userid,
  12905. cid: this.id,
  12906. stage: this.courseType,
  12907. task: this.taskCount,
  12908. tool: this.toolindex,
  12909. content: this.selectAnswer.answer,
  12910. type: 7,
  12911. },
  12912. ];
  12913. this.ajax
  12914. .post(this.$store.state.api + "addCourseWorks", params)
  12915. .then((res) => {
  12916. this.$message({
  12917. message: "提交成功",
  12918. type: "success",
  12919. });
  12920. this.dialogVisibleSelect = false;
  12921. // this.selectAnswer = {};
  12922. this.selectSWorks();
  12923. this.selectStudent();
  12924. })
  12925. .catch((err) => {
  12926. this.$message.error("提交失败");
  12927. console.error(err);
  12928. });
  12929. },
  12930. addSelectAnswerTeacher() {
  12931. let params = [
  12932. {
  12933. uid: this.sStudent.userid,
  12934. cid: this.id,
  12935. stage: this.courseType,
  12936. task: this.taskCount,
  12937. tool: this.toolindex,
  12938. content: this.selectAnswer.answer,
  12939. type: 7,
  12940. },
  12941. ];
  12942. this.ajax
  12943. .post(this.$store.state.api + "addCourseWorks", params)
  12944. .then((res) => {
  12945. this.$message({
  12946. message: "提交成功",
  12947. type: "success",
  12948. });
  12949. this.dialogVisibleSelectTeacher = false;
  12950. // this.selectAnswer = {};
  12951. this.selectSWorks();
  12952. this.selectStudent();
  12953. })
  12954. .catch((err) => {
  12955. this.$message.error("提交失败");
  12956. console.error(err);
  12957. });
  12958. },
  12959. addSenWorks() {
  12960. for (var i = 0; i < this.sentenceList.length; i++) {
  12961. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12962. if (
  12963. this.sentenceList[i].chooseSenList[j] == undefined ||
  12964. this.sentenceList[i].chooseSenList[j] == ""
  12965. ) {
  12966. this.$message.error("请将答案填写完整!");
  12967. return;
  12968. }
  12969. }
  12970. }
  12971. let params = [
  12972. {
  12973. uid: this.userid,
  12974. cid: this.id,
  12975. stage: this.courseType,
  12976. task: this.taskCount,
  12977. tool: this.toolindex,
  12978. content: JSON.stringify(this.sentenceList),
  12979. type: 9,
  12980. },
  12981. ];
  12982. this.ajax
  12983. .post(this.$store.state.api + "addCourseWorks", params)
  12984. .then((res) => {
  12985. this.$message({
  12986. message: "提交成功",
  12987. type: "success",
  12988. });
  12989. this.dialogVisibleSentence = false;
  12990. // this.selectAnswer = {};
  12991. this.selectSWorks();
  12992. this.selectStudent();
  12993. })
  12994. .catch((err) => {
  12995. this.$message.error("提交失败");
  12996. console.error(err);
  12997. });
  12998. },
  12999. addSenWorksTeacher() {
  13000. for (var i = 0; i < this.sentenceList.length; i++) {
  13001. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13002. if (
  13003. this.sentenceList[i].chooseSenList[j] == undefined ||
  13004. this.sentenceList[i].chooseSenList[j] == ""
  13005. ) {
  13006. this.$message.error("请将答案填写完整!");
  13007. return;
  13008. }
  13009. }
  13010. }
  13011. let params = [
  13012. {
  13013. uid: this.sStudent.userid,
  13014. cid: this.id,
  13015. stage: this.courseType,
  13016. task: this.taskCount,
  13017. tool: this.toolindex,
  13018. content: JSON.stringify(this.sentenceList),
  13019. type: 9,
  13020. },
  13021. ];
  13022. this.ajax
  13023. .post(this.$store.state.api + "addCourseWorks", params)
  13024. .then((res) => {
  13025. this.$message({
  13026. message: "提交成功",
  13027. type: "success",
  13028. });
  13029. this.dialogVisibleSentenceTeacher = false;
  13030. // this.selectAnswer = {};
  13031. this.selectSWorks();
  13032. this.selectStudent();
  13033. })
  13034. .catch((err) => {
  13035. this.$message.error("提交失败");
  13036. console.error(err);
  13037. });
  13038. },
  13039. returnTableText() {
  13040. this.$confirm("确定还原此模板吗?", "提示", {
  13041. confirmButtonText: "确定",
  13042. cancelButtonText: "取消",
  13043. type: "warning",
  13044. })
  13045. .then(() => {
  13046. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13047. })
  13048. .catch(() => {});
  13049. },
  13050. addTableWorks() {
  13051. let params = [
  13052. {
  13053. uid: this.userid,
  13054. cid: this.id,
  13055. stage: this.courseType,
  13056. task: this.taskCount,
  13057. tool: this.toolindex,
  13058. content: JSON.stringify(this.tableJson),
  13059. type: 10,
  13060. },
  13061. ];
  13062. this.ajax
  13063. .post(this.$store.state.api + "addCourseWorks", params)
  13064. .then((res) => {
  13065. this.$message({
  13066. message: "提交成功",
  13067. type: "success",
  13068. });
  13069. this.dialogVisibleTable = false;
  13070. // this.selectAnswer = {};
  13071. this.selectSWorks();
  13072. this.selectStudent();
  13073. })
  13074. .catch((err) => {
  13075. this.$message.error("提交失败");
  13076. console.error(err);
  13077. });
  13078. },
  13079. tableRowClassName({ row, rowIndex }) {
  13080. if ((rowIndex + 1) % 2 === 0) {
  13081. return "even_row";
  13082. } else {
  13083. return "";
  13084. }
  13085. },
  13086. addTableWorksTeacher() {
  13087. let params = [
  13088. {
  13089. uid: this.sStudent.userid,
  13090. cid: this.id,
  13091. stage: this.courseType,
  13092. task: this.taskCount,
  13093. tool: this.toolindex,
  13094. content: JSON.stringify(this.tableJson),
  13095. type: 10,
  13096. },
  13097. ];
  13098. this.ajax
  13099. .post(this.$store.state.api + "addCourseWorks", params)
  13100. .then((res) => {
  13101. this.$message({
  13102. message: "提交成功",
  13103. type: "success",
  13104. });
  13105. this.dialogVisibleTableTeacher = false;
  13106. // this.selectAnswer = {};
  13107. this.selectSWorks();
  13108. this.selectStudent();
  13109. })
  13110. .catch((err) => {
  13111. this.$message.error("提交失败");
  13112. console.error(err);
  13113. });
  13114. },
  13115. returnWordText() {
  13116. this.$confirm("确定还原此模板吗?", "提示", {
  13117. confirmButtonText: "确定",
  13118. cancelButtonText: "取消",
  13119. type: "warning",
  13120. })
  13121. .then(() => {
  13122. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13123. })
  13124. .catch(() => {});
  13125. },
  13126. addWordWorks() {
  13127. let params = [
  13128. {
  13129. uid: this.userid,
  13130. cid: this.id,
  13131. stage: this.courseType,
  13132. task: this.taskCount,
  13133. tool: this.toolindex,
  13134. content: JSON.stringify(this.wordJson),
  13135. type: 13,
  13136. atool: 52,
  13137. },
  13138. ];
  13139. this.ajax
  13140. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13141. .then((res) => {
  13142. this.$message({
  13143. message: "提交成功",
  13144. type: "success",
  13145. });
  13146. this.dialogVisibleWord = false;
  13147. // this.selectAnswer = {};
  13148. this.selectSWorks();
  13149. this.selectStudent();
  13150. })
  13151. .catch((err) => {
  13152. this.$message.error("提交失败");
  13153. console.error(err);
  13154. });
  13155. },
  13156. addWordWorksTeacher() {
  13157. let params = [
  13158. {
  13159. uid: this.sStudent.userid,
  13160. cid: this.id,
  13161. stage: this.courseType,
  13162. task: this.taskCount,
  13163. tool: this.toolindex,
  13164. content: JSON.stringify(this.wordJson),
  13165. type: 13,
  13166. atool: 52,
  13167. },
  13168. ];
  13169. this.ajax
  13170. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13171. .then((res) => {
  13172. this.$message({
  13173. message: "提交成功",
  13174. type: "success",
  13175. });
  13176. this.dialogVisibleWordTeacher = false;
  13177. // this.selectAnswer = {};
  13178. this.selectSWorks();
  13179. this.selectStudent();
  13180. })
  13181. .catch((err) => {
  13182. this.$message.error("提交失败");
  13183. console.error(err);
  13184. });
  13185. },
  13186. addCourseWorks(i) {
  13187. var typesql;
  13188. if (this.fileType === 0) {
  13189. typesql = 1;
  13190. } else if (this.fileType === 1) {
  13191. typesql = 4;
  13192. } else if (this.fileType === 2) {
  13193. typesql = 5;
  13194. } else if (this.fileType === 3) {
  13195. typesql = 12;
  13196. }
  13197. if (!this.studyJuri[0].cover[0].url) {
  13198. this.$message.error("请上传文件");
  13199. return;
  13200. }
  13201. let params = [
  13202. {
  13203. uid: this.userid,
  13204. cid: this.id,
  13205. stage: this.courseType,
  13206. task: i,
  13207. tool: this.toolindex,
  13208. content: this.studyJuri[0].cover[0].url,
  13209. type: typesql,
  13210. },
  13211. ];
  13212. this.ajax
  13213. .post(this.$store.state.api + "addCourseWorksR", params)
  13214. .then((res) => {
  13215. this.$message({
  13216. message: "提交成功",
  13217. type: "success",
  13218. });
  13219. this.studyJuri[0].cover = [];
  13220. this.dialogVisible = false;
  13221. this.getCourseDetail(2);
  13222. })
  13223. .catch((err) => {
  13224. this.$message.error("提交失败");
  13225. console.error(err);
  13226. });
  13227. },
  13228. addCourseWorksPl(i) {
  13229. let _files = this.plworkFile;
  13230. var c = 1;
  13231. for (var k = 0; k < _files.length; k++) {
  13232. if (!_files[k].username) {
  13233. c = 2;
  13234. }
  13235. }
  13236. if (c == 2) {
  13237. this.$message.error("请填写学生姓名");
  13238. return;
  13239. }
  13240. let params = [
  13241. {
  13242. ateacher: this.userid,
  13243. cid: this.id,
  13244. stage: this.courseType,
  13245. task: i,
  13246. tool: this.toolindex,
  13247. content: JSON.stringify(_files),
  13248. },
  13249. ];
  13250. this.ajax
  13251. .post(this.$store.state.api + "addCourseWorksPl", params)
  13252. .then((res) => {
  13253. this.$message({
  13254. message: "提交成功",
  13255. type: "success",
  13256. });
  13257. this.plworkFile = [];
  13258. this.dialogVisiblePl = false;
  13259. this.getCourseDetail(2);
  13260. })
  13261. .catch((err) => {
  13262. this.$message.error("提交失败");
  13263. console.error(err);
  13264. });
  13265. },
  13266. addCourseWorks2(i) {
  13267. var typesql;
  13268. if (this.fileType === 0) {
  13269. typesql = 0;
  13270. } else if (this.fileType === 1) {
  13271. typesql = 1;
  13272. } else if (this.fileType === 2) {
  13273. typesql = 3;
  13274. } else if (this.fileType === 3) {
  13275. typesql = 12;
  13276. }
  13277. if (!this.studyJuri[0].cover[0].url) {
  13278. this.$message.error("请上传文件");
  13279. return;
  13280. }
  13281. let params = [
  13282. {
  13283. uid: this.userid,
  13284. cid: this.id,
  13285. stage: this.courseType,
  13286. task: i,
  13287. tool: this.toolindex,
  13288. content: JSON.stringify({
  13289. type: typesql,
  13290. groupIndex: this.groupIndex,
  13291. url: this.studyJuri[0].cover[0].url,
  13292. }),
  13293. type: 11,
  13294. atool: 49,
  13295. text: "",
  13296. },
  13297. ];
  13298. this.ajax
  13299. .post(this.$store.state.api + "addCourseWorks5", params)
  13300. .then((res) => {
  13301. this.$message({
  13302. message: "提交成功",
  13303. type: "success",
  13304. });
  13305. this.studyJuri[0].cover = [];
  13306. this.dialogVisibleGroupWork = false;
  13307. this.getCourseDetail(2);
  13308. })
  13309. .catch((err) => {
  13310. this.$message.error("提交失败");
  13311. console.error(err);
  13312. });
  13313. },
  13314. addEnglishWork() {
  13315. this.myAnList = this.$refs['engJson'].myAnswerList;
  13316. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13317. this.$message.error("请输入作文标题和正文!");
  13318. return;
  13319. }
  13320. let params = [
  13321. {
  13322. uid: this.userid,
  13323. cid: this.id,
  13324. stage: this.courseType,
  13325. task: this.taskCount,
  13326. tool: this.englishToolIndex,
  13327. content: JSON.stringify(this.myAnList),
  13328. type: 16,
  13329. atool: 69,
  13330. text: "",
  13331. },
  13332. ];
  13333. this.ajax
  13334. .post(this.$store.state.api + "addCourseWorks5", params)
  13335. .then((res) => {
  13336. this.$message({
  13337. message: "提交成功",
  13338. type: "success",
  13339. });
  13340. this.myAnList = {};
  13341. this.englishList = {};
  13342. this.englishToolIndex = 0;
  13343. this.engDialogVisible = false;
  13344. this.selectSWorks();
  13345. this.selectStudent();
  13346. })
  13347. .catch((err) => {
  13348. this.$message.error("提交失败");
  13349. console.error(err);
  13350. });
  13351. },
  13352. addCourseWorksGong(i, data, tool) {
  13353. let params = [
  13354. {
  13355. uid: this.userid,
  13356. cid: this.id,
  13357. stage: this.courseType,
  13358. task: this.taskCount,
  13359. tool: i,
  13360. content: data,
  13361. type: 12,
  13362. atool: tool,
  13363. text: "",
  13364. },
  13365. ];
  13366. this.ajax
  13367. .post(this.$store.state.api + "addCourseWorks5", params)
  13368. .then((res) => {
  13369. this.$message({
  13370. message: "提交成功",
  13371. type: "success",
  13372. });
  13373. this.studyJuri[0].cover = [];
  13374. this.selectSWorks();
  13375. this.selectStudent();
  13376. })
  13377. .catch((err) => {
  13378. this.$message.error("提交失败");
  13379. console.error(err);
  13380. });
  13381. },
  13382. addCourseWorksGongTeacher(i, data, tool) {
  13383. let params = [
  13384. {
  13385. uid: this.sStudent.userid,
  13386. cid: this.id,
  13387. stage: this.courseType,
  13388. task: this.taskCount,
  13389. tool: i,
  13390. content: data,
  13391. type: 12,
  13392. atool: tool,
  13393. text: "",
  13394. },
  13395. ];
  13396. this.ajax
  13397. .post(this.$store.state.api + "addCourseWorks5", params)
  13398. .then((res) => {
  13399. this.$message({
  13400. message: "提交成功",
  13401. type: "success",
  13402. });
  13403. this.studyJuri[0].cover = [];
  13404. this.dialogVisibleWorks = false;
  13405. this.selectSWorks();
  13406. this.selectStudent();
  13407. })
  13408. .catch((err) => {
  13409. this.$message.error("提交失败");
  13410. console.error(err);
  13411. });
  13412. },
  13413. addCourseWorksGongPl(i, data, tool, type) {
  13414. let params = [
  13415. {
  13416. uid: this.sStudent.userid,
  13417. cid: this.id,
  13418. stage: this.courseType,
  13419. task: this.taskCount,
  13420. tool: i,
  13421. content: data,
  13422. type: type,
  13423. atool: tool,
  13424. text: "",
  13425. },
  13426. ];
  13427. this.ajax
  13428. .post(this.$store.state.api + "addCourseWorks5", params)
  13429. .then((res) => {
  13430. this.$message({
  13431. message: "提交成功",
  13432. type: "success",
  13433. });
  13434. this.studyJuri[0].cover = [];
  13435. this.dialogVisibleWorks = false;
  13436. this.selectSWorks();
  13437. this.selectStudent();
  13438. })
  13439. .catch((err) => {
  13440. this.$message.error("提交失败");
  13441. console.error(err);
  13442. });
  13443. },
  13444. addCourseWorksTeacher(i) {
  13445. var typesql;
  13446. if (this.sTool == 32) {
  13447. this.addCourseWorksGongTeacher(
  13448. this.toolindex,
  13449. this.studyJuri[0].cover[0].url,
  13450. this.sTool
  13451. );
  13452. return;
  13453. }
  13454. if (this.fileType === 0) {
  13455. typesql = 1;
  13456. } else if (this.fileType === 1) {
  13457. typesql = 4;
  13458. } else if (this.fileType === 2) {
  13459. typesql = 5;
  13460. } else if (this.fileType === 3) {
  13461. typesql = 12;
  13462. }
  13463. if (this.sTool == 50) {
  13464. this.addCourseWorksGongPl(
  13465. this.toolindex,
  13466. this.studyJuri[0].cover[0].url,
  13467. this.sTool,
  13468. typesql
  13469. );
  13470. return;
  13471. }
  13472. if (!this.studyJuri[0].cover[0].url) {
  13473. this.$message.error("请上传文件");
  13474. return;
  13475. }
  13476. let params = [
  13477. {
  13478. uid: this.sStudent.userid,
  13479. cid: this.id,
  13480. stage: this.courseType,
  13481. task: i,
  13482. tool: this.toolindex,
  13483. content: this.studyJuri[0].cover[0].url,
  13484. type: typesql,
  13485. ateacher: this.userid,
  13486. },
  13487. ];
  13488. this.ajax
  13489. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13490. .then((res) => {
  13491. this.$message({
  13492. message: "提交成功",
  13493. type: "success",
  13494. });
  13495. this.studyJuri[0].cover = [];
  13496. this.dialogVisibleWorks = false;
  13497. this.getCourseDetail(2);
  13498. })
  13499. .catch((err) => {
  13500. this.$message.error("提交失败");
  13501. console.error(err);
  13502. });
  13503. },
  13504. selectUploadStudent(type) {
  13505. const loading = this.$loading.service({
  13506. background: "rgba(255, 255, 255, 0.7)",
  13507. target: document.body,
  13508. });
  13509. let params = {
  13510. cid: this.uploadCid,
  13511. oid: this.oid,
  13512. cn: "",
  13513. };
  13514. this.ajax
  13515. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13516. .then((res) => {
  13517. loading.close();
  13518. var studentK = [];
  13519. if (this.isWorksS[this.toolindex].length > 0) {
  13520. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13521. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13522. }
  13523. studentK = studentK.join(",");
  13524. }
  13525. this.uploadStudentJuri = res.data[0].filter((el) => {
  13526. return studentK.indexOf(el.userid) == -1;
  13527. });
  13528. if (this.worksSName && this.worksSid) {
  13529. this.uploadStudentJuri.push({
  13530. userid: this.worksSid,
  13531. name: this.worksSName,
  13532. });
  13533. }
  13534. if (type == 1) {
  13535. this.plworkFile = [];
  13536. this.dialogVisibleSname = true;
  13537. } else if (type == 2) {
  13538. this.dialogVisiblePl = true;
  13539. }
  13540. })
  13541. .catch((err) => {
  13542. loading.close();
  13543. console.error(err);
  13544. });
  13545. },
  13546. selectPickStudent() {
  13547. const loading = this.$loading.service({
  13548. background: "rgba(255, 255, 255, 0.7)",
  13549. target: document.body,
  13550. });
  13551. let params = {
  13552. cid: this.uploadCid,
  13553. oid: this.oid,
  13554. cn: "",
  13555. };
  13556. this.ajax
  13557. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13558. .then((res) => {
  13559. loading.close();
  13560. this.uploadStudentJuri = res.data[0];
  13561. this.dialogVisiblePickPeople = true;
  13562. })
  13563. .catch((err) => {
  13564. loading.close();
  13565. console.error(err);
  13566. });
  13567. },
  13568. arrayToArray(arrayo, arrayt) {
  13569. let array1 = arrayo;
  13570. let array2 = arrayt;
  13571. let commonElements = [];
  13572. for (let i = 0; i < array1.length; i++) {
  13573. for (let j = 0; j < array2.length; j++) {
  13574. if (array1[i] === array2[j]) {
  13575. commonElements.push(array1[i]);
  13576. }
  13577. }
  13578. }
  13579. return commonElements;
  13580. },
  13581. selectWorksStudent() {
  13582. let params = {
  13583. oid: this.oid,
  13584. cid: this.courseDetail.juri,
  13585. };
  13586. this.ajax
  13587. .get(this.$store.state.api + "selectWorksStudent", params)
  13588. .then((res) => {
  13589. var a = res.data[0];
  13590. for (var i = 0; i < this.isWorksS.length; i++) {
  13591. this.noWorksS[i] = [];
  13592. var studentK = [];
  13593. if (this.isWorksS[i].length > 0) {
  13594. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13595. studentK.push(this.isWorksS[i][z].uid);
  13596. }
  13597. studentK = studentK.join(",");
  13598. for (var j = 0; j < a.length; j++) {
  13599. if (studentK.indexOf(a[j].userid) == -1) {
  13600. if (this.tcid) {
  13601. // a[j].classid.indexOf(this.tcid) != -1
  13602. if (
  13603. this.arrayToArray(
  13604. a[j].classid.split(","),
  13605. this.tcid.split(",")
  13606. ).length
  13607. ) {
  13608. this.noWorksS[i].push({
  13609. student: a[j].name,
  13610. userid: a[j].userid,
  13611. });
  13612. }
  13613. } else {
  13614. this.noWorksS[i].push({
  13615. student: a[j].name,
  13616. userid: a[j].userid,
  13617. });
  13618. }
  13619. }
  13620. }
  13621. } else {
  13622. for (var k = 0; k < a.length; k++) {
  13623. if (this.tcid) {
  13624. if (
  13625. this.arrayToArray(
  13626. a[k].classid.split(","),
  13627. this.tcid.split(",")
  13628. ).length
  13629. ) {
  13630. this.noWorksS[i].push({
  13631. student: a[k].name,
  13632. userid: a[k].userid,
  13633. });
  13634. }
  13635. } else {
  13636. this.noWorksS[i].push({
  13637. student: a[k].name,
  13638. userid: a[k].userid,
  13639. });
  13640. }
  13641. }
  13642. }
  13643. }
  13644. this.$forceUpdate();
  13645. if (
  13646. Object.keys(this.commentDetail).length &&
  13647. Object.keys(this.commentIndexJson).length &&
  13648. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13649. ) {
  13650. let a = 1;
  13651. let c = this.commentIndexJson;
  13652. if (
  13653. this.commentIndexJson.gindex ||
  13654. this.commentIndexJson.gindex === 0
  13655. ) {
  13656. for (
  13657. var i = 0;
  13658. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13659. i++
  13660. ) {
  13661. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13662. groupA: for (var k = 0; k < _el.length; k++) {
  13663. let el = _el[k];
  13664. if (el.wid == this.commentDetail.wid) {
  13665. a = 2;
  13666. this.commentOther(
  13667. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13668. this.commentIndexJson.toolIndex,
  13669. k,
  13670. this.commentIndexJson.gindex
  13671. );
  13672. break groupA;
  13673. }
  13674. }
  13675. }
  13676. if (a === 1) {
  13677. this.commentDetail = [];
  13678. this.commentIndexJson = {};
  13679. this.commentDialogVisible = false;
  13680. this.$message("此作业已被删除");
  13681. }
  13682. } else {
  13683. if (this.isGroup && this.commentIndexJson.gid) {
  13684. groupA: for (
  13685. var i = 0;
  13686. i < this.courseGroup.group.length;
  13687. i++
  13688. ) {
  13689. let _group = this.courseGroup.group[i];
  13690. if (_group.id == this.commentIndexJson.gid) {
  13691. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13692. for (var k = 0; k < _el2.length; k++) {
  13693. let el2 = _el2[k];
  13694. if (el2.wid == this.commentDetail.wid) {
  13695. a = 2;
  13696. this.commentOther(
  13697. _el2[k],
  13698. this.commentIndexJson.toolIndex,
  13699. k,
  13700. null,
  13701. this.commentIndexJson.gid
  13702. );
  13703. break groupA;
  13704. }
  13705. }
  13706. }
  13707. }
  13708. }
  13709. if (a == 1) {
  13710. for (
  13711. var i = 0;
  13712. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13713. i++
  13714. ) {
  13715. let el =
  13716. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13717. if (el.wid == this.commentDetail.wid) {
  13718. a = 2;
  13719. this.commentOther(
  13720. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13721. this.commentIndexJson.toolIndex,
  13722. i
  13723. );
  13724. break;
  13725. }
  13726. }
  13727. }
  13728. if (a === 1) {
  13729. this.commentDetail = [];
  13730. this.commentIndexJson = {};
  13731. this.commentDialogVisible = false;
  13732. this.$message("此作业已被删除");
  13733. }
  13734. }
  13735. }
  13736. })
  13737. .catch((err) => {
  13738. console.error(err);
  13739. });
  13740. },
  13741. selectStudent() {
  13742. //学生查看自己作业
  13743. let params = {
  13744. uid: this.userid,
  13745. cid: this.id,
  13746. s: this.courseType,
  13747. t: this.taskCount,
  13748. };
  13749. this.ajax
  13750. .get(this.$store.state.api + "selectStudentWorks", params)
  13751. .then((res) => {
  13752. var a =
  13753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13754. this.taskCount
  13755. ].toolChoose;
  13756. var b = res.data[0];
  13757. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13758. var y = [
  13759. "AVI",
  13760. "NAVI",
  13761. "MPEG",
  13762. "ASF",
  13763. "MOV",
  13764. "WMV",
  13765. "3GP",
  13766. "RM",
  13767. "RMVB",
  13768. "FLV",
  13769. "F4V",
  13770. "H.264",
  13771. "H.265",
  13772. "REAL VIDEO",
  13773. "MKV",
  13774. "WebM",
  13775. "HDDVD",
  13776. "MP4",
  13777. "MPG",
  13778. "M4V",
  13779. "MGV",
  13780. "OGV",
  13781. "QTM",
  13782. "STR",
  13783. "AMC",
  13784. "DVX",
  13785. "EVO",
  13786. "DAT",
  13787. "OGG",
  13788. "OGM",
  13789. ];
  13790. for (var i = 0; i < a.length; i++) {
  13791. this.workStudent[i] = [];
  13792. for (var j = 0; j < b.length; j++) {
  13793. if (i == b[j].tool) {
  13794. if (
  13795. (b[j].type == 1 ||
  13796. b[j].type == 4 ||
  13797. b[j].type == 5 ||
  13798. b[j].type == 6 ||
  13799. b[j].type == 12 ||
  13800. b[j].type == 7) &&
  13801. a[i].tool[0] != 15 &&
  13802. a[i].tool[0] != 4 &&
  13803. a[i].tool[0] != 45 &&
  13804. a[i].tool[0] != 50 &&
  13805. a[i].tool[0] != 32 &&
  13806. a[i].tool[0] != 57 &&
  13807. a[i].tool[0] != 52 &&
  13808. a[i].tool[0] != 69
  13809. ) {
  13810. if (
  13811. c.indexOf(
  13812. b[j].content
  13813. .split(".")
  13814. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13815. ) != -1 &&
  13816. a[i].tool[0] == 16 &&
  13817. b[j].atool != 50
  13818. ) {
  13819. this.workStudent[i].push({
  13820. works: b[j].content,
  13821. sName: b[j].name,
  13822. score: b[j].score,
  13823. img: b[j].img,
  13824. type: 1,
  13825. time: b[j].time,
  13826. userid: b[j].userid,
  13827. wid: b[j].id,
  13828. });
  13829. } else if (
  13830. y.indexOf(
  13831. b[j].content
  13832. .split(".")
  13833. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13834. ) != -1 &&
  13835. a[i].tool[0] == 16 &&
  13836. b[j].atool != 50
  13837. ) {
  13838. this.workStudent[i].push({
  13839. userid: b[j].userid,
  13840. wid: b[j].id,
  13841. works: b[j].content,
  13842. sName: b[j].name,
  13843. score: b[j].score,
  13844. img: b[j].img,
  13845. type: 3,
  13846. time: b[j].time,
  13847. });
  13848. } else if (b[j].type == 6 && b[j].atool != 50) {
  13849. this.workStudent[i].push({
  13850. userid: b[j].userid,
  13851. wid: b[j].id,
  13852. works: b[j].content,
  13853. sName: b[j].name,
  13854. score: b[j].score,
  13855. img: b[j].img,
  13856. type: 4,
  13857. time: b[j].time,
  13858. });
  13859. } else if (b[j].type == 7 && b[j].atool != 50) {
  13860. this.workStudent[i].push({
  13861. userid: b[j].userid,
  13862. wid: b[j].id,
  13863. works: b[j].content,
  13864. sName: b[j].name,
  13865. score: b[j].score,
  13866. img: b[j].img,
  13867. type: 5,
  13868. time: b[j].time,
  13869. });
  13870. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13871. this.workStudent[i].push({
  13872. works: b[j].content,
  13873. sName: b[j].name,
  13874. score: b[j].score,
  13875. img: b[j].img,
  13876. type: 12,
  13877. time: b[j].time,
  13878. userid: b[j].userid,
  13879. wid: b[j].id,
  13880. });
  13881. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13882. this.workStudent[i].push({
  13883. works: b[j].content,
  13884. sName: b[j].name,
  13885. score: b[j].score,
  13886. img: b[j].img,
  13887. type: 0,
  13888. time: b[j].time,
  13889. userid: b[j].userid,
  13890. wid: b[j].id,
  13891. });
  13892. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13893. this.workStudent[i].push({
  13894. works: b[j].content,
  13895. sName: b[j].name,
  13896. score: b[j].score,
  13897. img: b[j].img,
  13898. type: 0,
  13899. time: b[j].time,
  13900. userid: b[j].userid,
  13901. wid: b[j].id,
  13902. });
  13903. }
  13904. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13905. this.workStudent[i].push({
  13906. works: b[j].content,
  13907. sName: b[j].name,
  13908. score: b[j].score,
  13909. img: b[j].img,
  13910. type: 2,
  13911. time: b[j].time,
  13912. userid: b[j].userid,
  13913. wid: b[j].id,
  13914. });
  13915. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13916. //问卷
  13917. this.workStudent[i].push({
  13918. works: b[j].content,
  13919. sName: b[j].name,
  13920. score: b[j].score,
  13921. img: b[j].img,
  13922. type: 2,
  13923. time: b[j].time,
  13924. userid: b[j].userid,
  13925. wid: b[j].id,
  13926. });
  13927. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13928. //选择题
  13929. this.workStudent[i].push({
  13930. works: b[j].content,
  13931. sName: b[j].name,
  13932. score: b[j].score,
  13933. img: b[j].img,
  13934. type: 8,
  13935. time: b[j].time,
  13936. userid: b[j].userid,
  13937. wid: b[j].id,
  13938. });
  13939. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13940. //选择题
  13941. this.workStudent[i].push({
  13942. works: b[j].content,
  13943. sName: b[j].name,
  13944. score: b[j].score,
  13945. img: b[j].img,
  13946. type: 9,
  13947. time: b[j].time,
  13948. userid: b[j].userid,
  13949. wid: b[j].id,
  13950. });
  13951. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13952. //选择题
  13953. this.workStudent[i].push({
  13954. works: b[j].content,
  13955. sName: b[j].name,
  13956. score: b[j].score,
  13957. img: b[j].img,
  13958. type: 10,
  13959. time: b[j].time,
  13960. userid: b[j].userid,
  13961. wid: b[j].id,
  13962. });
  13963. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13964. //选择题
  13965. this.workStudent[i].push({
  13966. works: b[j].content,
  13967. sName: b[j].name,
  13968. score: b[j].score,
  13969. img: b[j].img,
  13970. type: 13,
  13971. time: b[j].time,
  13972. userid: b[j].userid,
  13973. wid: b[j].id,
  13974. });
  13975. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13976. //选择题
  13977. this.workStudent[i].push({
  13978. works: b[j].content,
  13979. sName: b[j].name,
  13980. score: b[j].score,
  13981. img: b[j].img,
  13982. type: 12,
  13983. time: b[j].time,
  13984. userid: b[j].userid,
  13985. wid: b[j].id,
  13986. });
  13987. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13988. //选择题
  13989. this.workStudent[i].push({
  13990. works: b[j].content,
  13991. sName: b[j].name,
  13992. score: b[j].score,
  13993. img: b[j].img,
  13994. type: 12,
  13995. time: b[j].time,
  13996. userid: b[j].userid,
  13997. wid: b[j].id,
  13998. });
  13999. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14000. //选择题
  14001. this.workStudent[i].push({
  14002. works: b[j].content,
  14003. sName: b[j].name,
  14004. score: b[j].score,
  14005. img: b[j].img,
  14006. type: 15,
  14007. time: b[j].time,
  14008. userid: b[j].userid,
  14009. wid: b[j].id,
  14010. });
  14011. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14012. //英语写作
  14013. this.workStudent[i].push({
  14014. works: b[j].content,
  14015. sName: b[j].name,
  14016. score: b[j].score,
  14017. img: b[j].img,
  14018. type: 16,
  14019. time: b[j].time,
  14020. userid: b[j].userid,
  14021. wid: b[j].id,
  14022. aiCode: b[j].aiCode,
  14023. teacherCode: b[j].teacherCode
  14024. });
  14025. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14026. //英语口语
  14027. this.workStudent[i].push({
  14028. works: b[j].content,
  14029. sName: b[j].name,
  14030. score: b[j].score,
  14031. img: b[j].img,
  14032. type: 17,
  14033. time: b[j].time,
  14034. userid: b[j].userid,
  14035. wid: b[j].id,
  14036. });
  14037. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14038. //英语口语
  14039. this.workStudent[i].push({
  14040. works: b[j].content,
  14041. sName: b[j].name,
  14042. score: b[j].score,
  14043. img: b[j].img,
  14044. type: 14,
  14045. time: b[j].time,
  14046. userid: b[j].userid,
  14047. wid: b[j].id,
  14048. });
  14049. }
  14050. }
  14051. }
  14052. }
  14053. })
  14054. .catch((err) => {
  14055. console.error(err);
  14056. });
  14057. },
  14058. openVideo(w) {
  14059. this.videoDetail = {};
  14060. this.playerOptions1.sources[0].src = w.works;
  14061. this.videoDetail = this.playerOptions1;
  14062. this.videoVisible = true;
  14063. },
  14064. isLikes(wid, uid, t, c, isLikes,sName) {
  14065. if (isLikes == false) {
  14066. let params = [
  14067. {
  14068. wid: wid,
  14069. lid: uid,
  14070. t: t,
  14071. c: c,
  14072. },
  14073. ];
  14074. this.ajax
  14075. .post(this.$store.state.api + "insertComment", params)
  14076. .then((res) => {
  14077. this.$message({
  14078. message: "点赞成功",
  14079. type: "success",
  14080. });
  14081. this.selectSWorks();
  14082. this.selectStudent();
  14083. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14084. })
  14085. .catch((err) => {
  14086. this.$message.error("点赞失败");
  14087. console.error(err);
  14088. });
  14089. } else {
  14090. let params = {
  14091. wid: wid,
  14092. lid: uid,
  14093. type: t,
  14094. };
  14095. this.ajax
  14096. .get(this.$store.state.api + "deleteComment", params)
  14097. .then((res) => {
  14098. this.$message({
  14099. message: "取消点赞成功",
  14100. type: "success",
  14101. });
  14102. this.selectSWorks();
  14103. this.selectStudent();
  14104. })
  14105. .catch((err) => {
  14106. console.error(err);
  14107. });
  14108. }
  14109. },
  14110. deleteComment(wid) {
  14111. this.$confirm("确定删除此评论吗?", "提示", {
  14112. confirmButtonText: "确定",
  14113. cancelButtonText: "取消",
  14114. type: "warning",
  14115. })
  14116. .then(() => {
  14117. let params = {
  14118. id: wid,
  14119. };
  14120. this.ajax
  14121. .get(this.$store.state.api + "deleteComment2", params)
  14122. .then((res) => {
  14123. this.$message({
  14124. message: "删除评论成功",
  14125. type: "success",
  14126. });
  14127. this.selectSWorks();
  14128. this.selectStudent();
  14129. })
  14130. .catch((err) => {
  14131. console.error(err);
  14132. });
  14133. })
  14134. .catch(() => {});
  14135. },
  14136. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14137. this.commentIndexJson = {
  14138. toolIndex: toolIndex,
  14139. wIndex: wIndex,
  14140. gindex: gindex,
  14141. gid: gid,
  14142. };
  14143. this.commentDetail = [];
  14144. this.commentDialogVisible = true;
  14145. this.commentDetail = w;
  14146. if (w.works && w.type == 1) {
  14147. // this.pptImgUrl = "";
  14148. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14149. if (
  14150. a.indexOf(
  14151. w.works
  14152. .split(".")
  14153. [w.works.split(".").length - 1].toLocaleUpperCase()
  14154. ) != -1
  14155. ) {
  14156. let _uuurl = await this.checkLink(w.works);
  14157. this.pptImgUrl =
  14158. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14159. this.showPDF = false;
  14160. } else if (
  14161. w.works
  14162. .split(".")
  14163. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14164. ) {
  14165. this.pptImgUrl = w.works;
  14166. this.showPDF = true;
  14167. }
  14168. } else if (w.works && w.type == 3) {
  14169. this.videoDetail = {};
  14170. this.playerOptions1.sources[0].src = w.works;
  14171. this.videoDetail = this.playerOptions1;
  14172. // this.videoVisible = true;
  14173. } else if (w.works && w.type == 4) {
  14174. this.eScore = JSON.parse(w.works);
  14175. this.rateJson =
  14176. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14177. this.taskCount
  14178. ].toolChoose[toolIndex].rateJson;
  14179. } else if (w.works && w.type == 10) {
  14180. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14181. } else if (w.works && w.type == 13) {
  14182. this.wordJson =
  14183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14184. this.taskCount
  14185. ].toolChoose[toolIndex].wordJson;
  14186. }
  14187. },
  14188. async openScore(w, index) {
  14189. this.wScore = 0;
  14190. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14191. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14192. this.commentDetail = [];
  14193. if(w.type == 17){
  14194. this.dialogVisibleENScore = true;
  14195. }else{
  14196. this.dialogVisibleScore = true;
  14197. }
  14198. this.commentDetail = w;
  14199. if (w.works && w.type == 1) {
  14200. this.pptImgUrl = "";
  14201. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14202. if (
  14203. a.indexOf(
  14204. w.works
  14205. .split(".")
  14206. [w.works.split(".").length - 1].toLocaleUpperCase()
  14207. ) != -1
  14208. ) {
  14209. let _uuurl = await this.checkLink(w.works);
  14210. this.pptImgUrl =
  14211. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14212. this.showPDF = false;
  14213. } else if (
  14214. w.works
  14215. .split(".")
  14216. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14217. ) {
  14218. this.pptImgUrl = w.works;
  14219. this.showPDF = true;
  14220. }
  14221. } else if (w.works && w.type == 3) {
  14222. this.videoDetail = {};
  14223. this.playerOptions1.sources[0].src = w.works;
  14224. this.videoDetail = this.playerOptions1;
  14225. }else if(w.type == 17){
  14226. let englishVoiceJson = {}
  14227. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14228. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14229. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14230. .toolChoose[index].englishVoiceJson
  14231. : {};
  14232. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14233. }
  14234. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14235. },
  14236. addComment(wid, uid, t,detail) {
  14237. if (this.commentText == "") {
  14238. this.$message.error("请输入评论");
  14239. return;
  14240. }
  14241. let params2 = [
  14242. {
  14243. wid: wid,
  14244. lid: uid,
  14245. t: t,
  14246. },
  14247. ];
  14248. this.ajax
  14249. .post(this.$store.state.api + "getComment", params2)
  14250. .then((res) => {
  14251. if (res.data[0].length > 0) {
  14252. this.$message.error("一个作业只能评论一条");
  14253. } else {
  14254. let params = [
  14255. {
  14256. wid: wid,
  14257. lid: uid,
  14258. t: t,
  14259. c: this.commentText,
  14260. },
  14261. ];
  14262. this.ajax
  14263. .post(this.$store.state.api + "insertComment", params)
  14264. .then((res) => {
  14265. this.$message({
  14266. message: "评论成功",
  14267. type: "success",
  14268. });
  14269. this.commentText = "";
  14270. this.selectSWorks();
  14271. this.selectStudent();
  14272. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14273. })
  14274. .catch((err) => {
  14275. this.$message.error("评论失败");
  14276. console.error(err);
  14277. });
  14278. }
  14279. })
  14280. .catch((err) => {
  14281. // this.$message.error("评论失败");
  14282. console.error(err);
  14283. });
  14284. },
  14285. scoreWork(wid,sName) {
  14286. if (this.wScore == 0) {
  14287. this.$message.error("请评分");
  14288. return;
  14289. }
  14290. let params = [
  14291. {
  14292. wid: wid,
  14293. score: JSON.stringify({
  14294. wScore: this.wScore,
  14295. detail: this.scoreDetail,
  14296. }),
  14297. },
  14298. ];
  14299. this.ajax
  14300. .post(this.$store.state.api + "scoreWork", params)
  14301. .then((res) => {
  14302. this.$message({
  14303. message: "评分成功",
  14304. type: "success",
  14305. });
  14306. this.wScore = 0;
  14307. this.scoreDetail = "";
  14308. this.dialogVisibleScore = false;
  14309. this.selectSWorks();
  14310. this.selectStudent();
  14311. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14312. })
  14313. .catch((err) => {
  14314. this.$message.error("评分失败");
  14315. console.error(err);
  14316. });
  14317. },
  14318. openXz(w, i) {
  14319. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14320. .taskJson[this.taskCount].toolChoose[i].selectJson
  14321. ? JSON.parse(
  14322. JSON.stringify(
  14323. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14324. this.taskCount
  14325. ].toolChoose[i].selectJson
  14326. )
  14327. )
  14328. : { url: "", select: [], answer: [] };
  14329. var a = w.works.split(",");
  14330. for (var k = 0; k < a.length; k++) {
  14331. a[k] = parseInt(a[k]);
  14332. }
  14333. this.selectAnswer = { answer: a, stu: w.sName };
  14334. this.isSelect = true;
  14335. this.dialogVisibleSelect = true;
  14336. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14337. },
  14338. openSen(w, i) {
  14339. console.log("openSen")
  14340. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14341. this.sentenceList1 = JSON.parse(w.works);
  14342. this.sentenceList1.stuName = w.sName;
  14343. this.dialogVisibleSentence1 = true;
  14344. },
  14345. openPj(w, toolindex) {
  14346. console.log("openPJ")
  14347. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14348. this.isStar = true;
  14349. this.eScore = JSON.parse(w);
  14350. this.rateJson =
  14351. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14352. this.taskCount
  14353. ].toolChoose[toolindex].rateJson;
  14354. this.studentEvalDialogVisible = true;
  14355. },
  14356. openEnglishEva(id,i){
  14357. let params = {
  14358. wid: id
  14359. };
  14360. this.ajax
  14361. .get(this.$store.state.api + "selectEngWork", params)
  14362. .then((res) => {
  14363. this.evaEngJson.message = res.data[0][0];
  14364. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14365. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14366. .toolChoose[i].englishList;
  14367. this.engEvaDialogVisible = true;
  14368. })
  14369. .catch((err) => {
  14370. console.error(err);
  14371. });
  14372. },
  14373. deleteWorks(id) {
  14374. this.$confirm("确定删除此作业吗?", "提示", {
  14375. confirmButtonText: "确定",
  14376. cancelButtonText: "取消",
  14377. type: "warning",
  14378. })
  14379. .then(() => {
  14380. let params = [
  14381. {
  14382. id: id,
  14383. },
  14384. ];
  14385. this.ajax
  14386. .post(this.$store.state.api + "deleteCourseWork", params)
  14387. .then((res) => {
  14388. this.$message({
  14389. message: "删除成功",
  14390. type: "success",
  14391. });
  14392. this.selectStudent();
  14393. this.selectSWorks();
  14394. this.selectSLook();
  14395. })
  14396. .catch((err) => {
  14397. this.$message.error("网络异常");
  14398. console.error(err);
  14399. });
  14400. })
  14401. .catch(() => {});
  14402. },
  14403. selectSWorks(gindex) {
  14404. //教师查看全部作业
  14405. let params = {
  14406. cid: this.id,
  14407. s: this.courseType,
  14408. t: this.taskCount,
  14409. };
  14410. this.ajax
  14411. .get(this.$store.state.api + "selectSWorks", params)
  14412. .then((res) => {
  14413. var a =
  14414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14415. this.taskCount
  14416. ].toolChoose;
  14417. var b = res.data[0];
  14418. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14419. var y = [
  14420. "AVI",
  14421. "NAVI",
  14422. "MPEG",
  14423. "ASF",
  14424. "MOV",
  14425. "WMV",
  14426. "3GP",
  14427. "RM",
  14428. "RMVB",
  14429. "FLV",
  14430. "F4V",
  14431. "H.264",
  14432. "H.265",
  14433. "REAL VIDEO",
  14434. "MKV",
  14435. "WebM",
  14436. "HDDVD",
  14437. "MP4",
  14438. "MPG",
  14439. "M4V",
  14440. "MGV",
  14441. "OGV",
  14442. "QTM",
  14443. "STR",
  14444. "AMC",
  14445. "DVX",
  14446. "EVO",
  14447. "DAT",
  14448. "OGG",
  14449. "OGM",
  14450. ];
  14451. var d = res.data[1];
  14452. var e = res.data[2];
  14453. var f = res.data[3];
  14454. let _worksStudent = [];
  14455. var _worksStudent2 = [];
  14456. for (var i = 0; i < a.length; i++) {
  14457. _worksStudent[i] = [];
  14458. _worksStudent2[i] = [];
  14459. if (
  14460. !this.isCloseList[i] ||
  14461. this.isCloseList[i].isClose == undefined
  14462. ) {
  14463. this.isCloseList[i] = { isClose: 0 };
  14464. }
  14465. this.groupStudent[i] = [];
  14466. this.groupStudentUid[i] = [];
  14467. if (this.isGroup) {
  14468. for (
  14469. var groupI = 0;
  14470. groupI < this.courseGroup.group.length;
  14471. groupI++
  14472. ) {
  14473. this.courseGroup.group[groupI].works[i] = [];
  14474. }
  14475. }
  14476. this.isWorksS[i] = [];
  14477. this.checkJson[i] = [];
  14478. if (a[i].tool[0] == 49) {
  14479. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14480. this.groupStudent[i][gA] = [];
  14481. this.groupStudentUid[i][gA] = [];
  14482. _worksStudent[i][gA] = [];
  14483. _worksStudent2[i][gA] = [];
  14484. this.isCloseList[i][gA] = [];
  14485. // debugger
  14486. for (var g = 0; g < f.length; g++) {
  14487. if (
  14488. f[g].ttype == 2 &&
  14489. this.tcid &&
  14490. this.arrayToArray(
  14491. (f[g].classid ? f[g].classid.split(",") : []),
  14492. this.tcid.split(",")
  14493. ).length == 0
  14494. ) {
  14495. continue;
  14496. }
  14497. let _classId = this.arrayToArray(
  14498. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14499. this.classId ? this.classId.split(",") : []
  14500. )
  14501. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14502. (f[g].classid ? f[g].classid.split(",") : []),
  14503. this.tcid.split(",")
  14504. ).length !== 0 || this.arrayToArray(
  14505. (f[g].classid ? f[g].classid.split(",") : []),
  14506. _classId
  14507. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14508. this.groupStudent[i][gA].push(f[g]);
  14509. this.groupStudentUid[i][gA].push(f[g].userid);
  14510. }
  14511. }
  14512. }
  14513. this.$forceUpdate();
  14514. }
  14515. for (var j = 0; j < b.length; j++) {
  14516. if (
  14517. b[j].ttype == 2 &&
  14518. this.tcid &&
  14519. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14520. .length == 0
  14521. ) {
  14522. continue;
  14523. }
  14524. var likesCount = 0;
  14525. var commentCount = 0;
  14526. var isLikes = false;
  14527. var commentJson = [];
  14528. var likeJson = [];
  14529. var data = b[j];
  14530. if (i == b[j].tool) {
  14531. if (data.type == 2 && a[i].tool[0] == 4) {
  14532. // if(JSON.parse(data.content)[0].anwer){
  14533. var checkL =
  14534. JSON.parse(data.content)[0].anwer instanceof Array
  14535. ? JSON.parse(data.content)[0].anwer
  14536. : JSON.parse(data.content)[0].anwer.split(",");
  14537. for (var z = 0; z < checkL.length; z++) {
  14538. if (!this.checkJson[i][z]) {
  14539. this.checkJson[i].push({
  14540. checkCount: [],
  14541. checkPerson: [],
  14542. rightPerson: [],
  14543. });
  14544. }
  14545. if (!this.checkJson[i][z].checkCount.length) {
  14546. this.checkJson[i][z].checkCount = [];
  14547. let _askItemCount = JSON.parse(data.content)[0].askJson
  14548. .askJson[z].askItem;
  14549. for (var aic = 0; aic < _askItemCount; aic++) {
  14550. this.checkJson[i][z].checkCount.push(0);
  14551. }
  14552. }
  14553. if (checkL[z] instanceof Array) {
  14554. if (
  14555. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14556. checkL[z].sort().join(",")
  14557. ) {
  14558. this.checkJson[i][z].rightPerson.push(data.name);
  14559. }
  14560. for (var q = 0; q < checkL[z].length; q++) {
  14561. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14562. ? this.checkJson[i][z].checkPerson[
  14563. parseInt(checkL[z][q])
  14564. ].push(data.name)
  14565. : (this.checkJson[i][z].checkPerson[
  14566. parseInt(checkL[z][q])
  14567. ] = [data.name]);
  14568. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14569. ? this.checkJson[i][z].checkCount[
  14570. parseInt(checkL[z][q])
  14571. ]++
  14572. : (this.checkJson[i][z].checkCount[
  14573. parseInt(checkL[z][q])
  14574. ] = 1);
  14575. }
  14576. } else {
  14577. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14578. this.checkJson[i][z].rightPerson.push(data.name);
  14579. }
  14580. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14581. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14582. ? this.checkJson[i][z].checkPerson[
  14583. parseInt(checkL[z])
  14584. ].push(data.name)
  14585. : (this.checkJson[i][z].checkPerson[
  14586. parseInt(checkL[z])
  14587. ] = [data.name]);
  14588. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14589. ? this.checkJson[i][z].checkCount[
  14590. parseInt(checkL[z])
  14591. ]++
  14592. : (this.checkJson[i][z].checkCount[
  14593. parseInt(checkL[z])
  14594. ] = 1);
  14595. }
  14596. }
  14597. }
  14598. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14599. var checkL = JSON.parse(data.content)[0].anwer;
  14600. for (var z = 0; z < checkL.length; z++) {
  14601. if (!this.checkJson[i][z]) {
  14602. this.checkJson[i].push({
  14603. checkCount: [],
  14604. checkPerson: [],
  14605. rightPerson: [],
  14606. });
  14607. }
  14608. if (!this.checkJson[i][z].checkCount.length) {
  14609. this.checkJson[i][z].checkCount = [];
  14610. let _askItemCount = JSON.parse(data.content)[0].testJson
  14611. .testJson[z].testItem;
  14612. for (var aic = 0; aic < _askItemCount; aic++) {
  14613. this.checkJson[i][z].checkCount.push(0);
  14614. }
  14615. }
  14616. if (checkL[z] instanceof Array) {
  14617. if (
  14618. JSON.parse(data.content)[0]
  14619. .testJson.testJson[z].answer.sort()
  14620. .join(",") == checkL[z].sort().join(",")
  14621. ) {
  14622. this.checkJson[i][z].rightPerson.push(data.name);
  14623. }
  14624. for (var q = 0; q < checkL[z].length; q++) {
  14625. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14626. ? this.checkJson[i][z].checkPerson[
  14627. parseInt(checkL[z][q])
  14628. ].push(data.name)
  14629. : (this.checkJson[i][z].checkPerson[
  14630. parseInt(checkL[z][q])
  14631. ] = [data.name]);
  14632. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14633. ? this.checkJson[i][z].checkCount[
  14634. parseInt(checkL[z][q])
  14635. ]++
  14636. : (this.checkJson[i][z].checkCount[
  14637. parseInt(checkL[z][q])
  14638. ] = 1);
  14639. }
  14640. } else {
  14641. if (
  14642. JSON.parse(data.content)[0].testJson.testJson[z]
  14643. .answer == checkL[z]
  14644. ) {
  14645. this.checkJson[i][z].rightPerson.push(data.name);
  14646. }
  14647. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14648. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14649. ? this.checkJson[i][z].checkPerson[
  14650. parseInt(checkL[z])
  14651. ].push(data.name)
  14652. : (this.checkJson[i][z].checkPerson[
  14653. parseInt(checkL[z])
  14654. ] = [data.name]);
  14655. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14656. ? this.checkJson[i][z].checkCount[
  14657. parseInt(checkL[z])
  14658. ]++
  14659. : (this.checkJson[i][z].checkCount[
  14660. parseInt(checkL[z])
  14661. ] = 1);
  14662. }
  14663. }
  14664. }
  14665. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14666. var checkL = JSON.parse(data.content);
  14667. for (var z = 0; z < checkL.length; z++) {
  14668. if (!this.checkJson[i][z]) {
  14669. this.checkJson[i].push({
  14670. checkCount: [],
  14671. checkPerson: [],
  14672. rightPerson: [],
  14673. });
  14674. }
  14675. this.checkJson[i][z].checkPerson.push(data.name);
  14676. if (
  14677. checkL[z].chooseSenList.toString() ==
  14678. checkL[z].rightAnswer.toString()
  14679. ) {
  14680. this.checkJson[i][z].rightPerson.push(data.name);
  14681. }
  14682. }
  14683. }
  14684. for (var k = 0; k < d.length; k++) {
  14685. //点赞
  14686. if (d[k].workId == b[j].id) {
  14687. likesCount++;
  14688. likeJson.push(d[k])
  14689. if (d[k].likesId == this.userid) {
  14690. isLikes = true;
  14691. }
  14692. }
  14693. }
  14694. for (var l = 0; l < e.length; l++) {
  14695. //评论
  14696. if (e[l].workId == b[j].id) {
  14697. if (e[l].comment != "") {
  14698. commentCount++;
  14699. commentJson.push({
  14700. commentText: e[l].comment,
  14701. commentTime: e[l].commentTime,
  14702. commentPeople: e[l].commentPeople,
  14703. userid: e[l].userid,
  14704. wid: e[l].id,
  14705. });
  14706. }
  14707. }
  14708. }
  14709. if (
  14710. (b[j].type == 1 ||
  14711. b[j].type == 4 ||
  14712. b[j].type == 5 ||
  14713. b[j].type == 6 ||
  14714. b[j].type == 12 ||
  14715. b[j].type == 7) &&
  14716. a[i].tool[0] != 15 &&
  14717. a[i].tool[0] != 4 &&
  14718. a[i].tool[0] != 45 &&
  14719. a[i].tool[0] != 50 &&
  14720. a[i].tool[0] != 32 &&
  14721. a[i].tool[0] != 57 &&
  14722. a[i].tool[0] != 52
  14723. ) {
  14724. if (
  14725. c.indexOf(
  14726. b[j].content
  14727. .split(".")
  14728. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14729. ) != -1 &&
  14730. a[i].tool[0] == 16 &&
  14731. b[j].atool != 50
  14732. ) {
  14733. let _works = {
  14734. userid: b[j].userid,
  14735. ateacher: b[j].ateacher,
  14736. wid: b[j].id,
  14737. works: b[j].content,
  14738. sName: b[j].name,
  14739. type: 1,
  14740. ttype:b[j].ttype,
  14741. time: b[j].time,
  14742. score: b[j].score,
  14743. img: b[j].img,
  14744. likesCount: likesCount,
  14745. commentCount: commentCount,
  14746. isLikes: isLikes,
  14747. commentJson: commentJson,
  14748. likeJson:likeJson
  14749. };
  14750. if (this.isGroup) {
  14751. let isGw = 1;
  14752. for (
  14753. var groupI = 0;
  14754. groupI < this.courseGroup.group.length;
  14755. groupI++
  14756. ) {
  14757. let gid = this.courseGroup.group[groupI].id;
  14758. if (
  14759. this.courseGroupStudentUid[gid].indexOf(
  14760. b[j].userid
  14761. ) != -1
  14762. ) {
  14763. isGw = 2;
  14764. this.courseGroup.group[groupI].works[i].push(_works);
  14765. break;
  14766. }
  14767. }
  14768. if (isGw == 1) {
  14769. _worksStudent[i].push(_works);
  14770. }
  14771. } else {
  14772. _worksStudent[i].push(_works);
  14773. }
  14774. _worksStudent2[i].push(_works);
  14775. this.isWorksS[i].push({
  14776. uid: b[j].userid,
  14777. sName: b[j].name,
  14778. });
  14779. } else if (
  14780. y.indexOf(
  14781. b[j].content
  14782. .split(".")
  14783. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14784. ) != -1 &&
  14785. a[i].tool[0] == 16 &&
  14786. b[j].atool != 50
  14787. ) {
  14788. let _works = {
  14789. userid: b[j].userid,
  14790. ateacher: b[j].ateacher,
  14791. wid: b[j].id,
  14792. works: b[j].content,
  14793. sName: b[j].name,
  14794. type: 3,
  14795. ttype:b[j].ttype,
  14796. time: b[j].time,
  14797. score: b[j].score,
  14798. img: b[j].img,
  14799. likesCount: likesCount,
  14800. commentCount: commentCount,
  14801. isLikes: isLikes,
  14802. commentJson: commentJson,
  14803. likeJson:likeJson
  14804. };
  14805. if (this.isGroup) {
  14806. let isGw = 1;
  14807. for (
  14808. var groupI = 0;
  14809. groupI < this.courseGroup.group.length;
  14810. groupI++
  14811. ) {
  14812. let gid = this.courseGroup.group[groupI].id;
  14813. if (
  14814. this.courseGroupStudentUid[gid].indexOf(
  14815. b[j].userid
  14816. ) != -1
  14817. ) {
  14818. isGw = 2;
  14819. this.courseGroup.group[groupI].works[i].push(_works);
  14820. break;
  14821. }
  14822. }
  14823. if (isGw == 1) {
  14824. _worksStudent[i].push(_works);
  14825. }
  14826. } else {
  14827. _worksStudent[i].push(_works);
  14828. }
  14829. _worksStudent2[i].push(_works);
  14830. this.isWorksS[i].push({
  14831. uid: b[j].userid,
  14832. sName: b[j].name,
  14833. });
  14834. } else if (b[j].type == 6 && b[j].atool != 50) {
  14835. let _works = {
  14836. userid: b[j].userid,
  14837. ateacher: b[j].ateacher,
  14838. wid: b[j].id,
  14839. works: b[j].content,
  14840. sName: b[j].name,
  14841. type: 4,
  14842. ttype:b[j].ttype,
  14843. time: b[j].time,
  14844. score: b[j].score,
  14845. img: b[j].img,
  14846. likesCount: likesCount,
  14847. commentCount: commentCount,
  14848. isLikes: isLikes,
  14849. commentJson: commentJson,
  14850. likeJson:likeJson
  14851. };
  14852. _worksStudent[i].push(_works);
  14853. _worksStudent2[i].push(_works);
  14854. this.isWorksS[i].push({
  14855. uid: b[j].userid,
  14856. sName: b[j].name,
  14857. });
  14858. } else if (b[j].type == 7 && b[j].atool != 50) {
  14859. let _work = {
  14860. userid: b[j].userid,
  14861. ateacher: b[j].ateacher,
  14862. wid: b[j].id,
  14863. works: b[j].content,
  14864. sName: b[j].name,
  14865. type: 5,
  14866. ttype:b[j].ttype,
  14867. time: b[j].time,
  14868. score: b[j].score,
  14869. img: b[j].img,
  14870. likesCount: likesCount,
  14871. commentCount: commentCount,
  14872. isLikes: isLikes,
  14873. commentJson: commentJson,
  14874. likeJson:likeJson
  14875. };
  14876. _worksStudent[i].push(_work);
  14877. _worksStudent2[i].push(_work);
  14878. this.isWorksS[i].push({
  14879. uid: b[j].userid,
  14880. sName: b[j].name,
  14881. });
  14882. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14883. let _works = {
  14884. userid: b[j].userid,
  14885. ateacher: b[j].ateacher,
  14886. wid: b[j].id,
  14887. works: b[j].content,
  14888. sName: b[j].name,
  14889. type: 12,
  14890. ttype:b[j].ttype,
  14891. time: b[j].time,
  14892. score: b[j].score,
  14893. img: b[j].img,
  14894. likesCount: likesCount,
  14895. commentCount: commentCount,
  14896. isLikes: isLikes,
  14897. commentJson: commentJson,
  14898. likeJson:likeJson
  14899. };
  14900. if (this.isGroup) {
  14901. let isGw = 1;
  14902. for (
  14903. var groupI = 0;
  14904. groupI < this.courseGroup.group.length;
  14905. groupI++
  14906. ) {
  14907. let gid = this.courseGroup.group[groupI].id;
  14908. if (
  14909. this.courseGroupStudentUid[gid].indexOf(
  14910. b[j].userid
  14911. ) != -1
  14912. ) {
  14913. isGw = 2;
  14914. this.courseGroup.group[groupI].works[i].push(_works);
  14915. break;
  14916. }
  14917. }
  14918. if (isGw == 1) {
  14919. _worksStudent[i].push(_works);
  14920. }
  14921. } else {
  14922. _worksStudent[i].push(_works);
  14923. }
  14924. _worksStudent2[i].push(_works);
  14925. this.isWorksS[i].push({
  14926. uid: b[j].userid,
  14927. sName: b[j].name,
  14928. });
  14929. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14930. let _works = {
  14931. userid: b[j].userid,
  14932. ateacher: b[j].ateacher,
  14933. wid: b[j].id,
  14934. works: b[j].content,
  14935. sName: b[j].name,
  14936. type: 0,
  14937. ttype:b[j].ttype,
  14938. time: b[j].time,
  14939. score: b[j].score,
  14940. img: b[j].img,
  14941. likesCount: likesCount,
  14942. commentCount: commentCount,
  14943. isLikes: isLikes,
  14944. commentJson: commentJson,
  14945. likeJson:likeJson
  14946. };
  14947. if (this.isGroup) {
  14948. let isGw = 1;
  14949. for (
  14950. var groupI = 0;
  14951. groupI < this.courseGroup.group.length;
  14952. groupI++
  14953. ) {
  14954. let gid = this.courseGroup.group[groupI].id;
  14955. if (
  14956. this.courseGroupStudentUid[gid].indexOf(
  14957. b[j].userid
  14958. ) != -1
  14959. ) {
  14960. isGw = 2;
  14961. this.courseGroup.group[groupI].works[i].push(_works);
  14962. break;
  14963. }
  14964. }
  14965. if (isGw == 1) {
  14966. _worksStudent[i].push(_works);
  14967. }
  14968. } else {
  14969. _worksStudent[i].push(_works);
  14970. }
  14971. _worksStudent2[i].push(_works);
  14972. this.isWorksS[i].push({
  14973. uid: b[j].userid,
  14974. sName: b[j].name,
  14975. });
  14976. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14977. let _works = {
  14978. userid: b[j].userid,
  14979. ateacher: b[j].ateacher,
  14980. wid: b[j].id,
  14981. works: b[j].content,
  14982. sName: b[j].name,
  14983. type: 0,
  14984. ttype:b[j].ttype,
  14985. time: b[j].time,
  14986. score: b[j].score,
  14987. img: b[j].img,
  14988. likesCount: likesCount,
  14989. commentCount: commentCount,
  14990. isLikes: isLikes,
  14991. commentJson: commentJson,
  14992. likeJson:likeJson
  14993. };
  14994. if (this.isGroup) {
  14995. let isGw = 1;
  14996. for (
  14997. var groupI = 0;
  14998. groupI < this.courseGroup.group.length;
  14999. groupI++
  15000. ) {
  15001. let gid = this.courseGroup.group[groupI].id;
  15002. if (
  15003. this.courseGroupStudentUid[gid].indexOf(
  15004. b[j].userid
  15005. ) != -1
  15006. ) {
  15007. isGw = 2;
  15008. this.courseGroup.group[groupI].works[i].push(_works);
  15009. break;
  15010. }
  15011. }
  15012. if (isGw == 1) {
  15013. _worksStudent[i].push(_works);
  15014. }
  15015. } else {
  15016. _worksStudent[i].push(_works);
  15017. }
  15018. _worksStudent2[i].push(_works);
  15019. this.isWorksS[i].push({
  15020. uid: b[j].userid,
  15021. sName: b[j].name,
  15022. });
  15023. }
  15024. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15025. let _works = {
  15026. userid: b[j].userid,
  15027. ateacher: b[j].ateacher,
  15028. wid: b[j].id,
  15029. works: b[j].content,
  15030. sName: b[j].name,
  15031. type: 2,
  15032. ttype:b[j].ttype,
  15033. time: b[j].time,
  15034. score: b[j].score,
  15035. img: b[j].img,
  15036. likesCount: likesCount,
  15037. commentCount: commentCount,
  15038. isLikes: isLikes,
  15039. commentJson: commentJson,
  15040. likeJson:likeJson
  15041. };
  15042. if (this.isGroup) {
  15043. let isGw = 1;
  15044. for (
  15045. var groupI = 0;
  15046. groupI < this.courseGroup.group.length;
  15047. groupI++
  15048. ) {
  15049. let gid = this.courseGroup.group[groupI].id;
  15050. if (
  15051. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15052. -1
  15053. ) {
  15054. isGw = 2;
  15055. this.courseGroup.group[groupI].works[i].push(_works);
  15056. break;
  15057. }
  15058. }
  15059. if (isGw == 1) {
  15060. _worksStudent[i].push(_works);
  15061. }
  15062. } else {
  15063. _worksStudent[i].push(_works);
  15064. }
  15065. _worksStudent2[i].push(_works);
  15066. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15067. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15068. //问卷
  15069. let _work = {
  15070. userid: b[j].userid,
  15071. ateacher: b[j].ateacher,
  15072. wid: b[j].id,
  15073. works: b[j].content,
  15074. sName: b[j].name,
  15075. type: 2,
  15076. ttype:b[j].ttype,
  15077. time: b[j].time,
  15078. score: b[j].score,
  15079. img: b[j].img,
  15080. likesCount: likesCount,
  15081. commentCount: commentCount,
  15082. isLikes: isLikes,
  15083. commentJson: commentJson,
  15084. likeJson:likeJson
  15085. };
  15086. _worksStudent[i].push(_work);
  15087. _worksStudent2[i].push(_work);
  15088. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15089. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15090. //选择题
  15091. let _work = {
  15092. userid: b[j].userid,
  15093. ateacher: b[j].ateacher,
  15094. wid: b[j].id,
  15095. works: b[j].content,
  15096. sName: b[j].name,
  15097. type: 8,
  15098. ttype:b[j].ttype,
  15099. time: b[j].time,
  15100. score: b[j].score,
  15101. img: b[j].img,
  15102. likesCount: likesCount,
  15103. commentCount: commentCount,
  15104. isLikes: isLikes,
  15105. commentJson: commentJson,
  15106. likeJson:likeJson
  15107. };
  15108. _worksStudent[i].push(_work);
  15109. _worksStudent2[i].push(_work);
  15110. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15111. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15112. //选择题
  15113. let _work = {
  15114. userid: b[j].userid,
  15115. ateacher: b[j].ateacher,
  15116. wid: b[j].id,
  15117. works: b[j].content,
  15118. sName: b[j].name,
  15119. type: 9,
  15120. ttype:b[j].ttype,
  15121. time: b[j].time,
  15122. score: b[j].score,
  15123. img: b[j].img,
  15124. likesCount: likesCount,
  15125. commentCount: commentCount,
  15126. isLikes: isLikes,
  15127. commentJson: commentJson,
  15128. likeJson:likeJson
  15129. };
  15130. _worksStudent[i].push(_work);
  15131. _worksStudent2[i].push(_work);
  15132. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15133. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15134. //选择题
  15135. let _work = {
  15136. userid: b[j].userid,
  15137. ateacher: b[j].ateacher,
  15138. wid: b[j].id,
  15139. works: b[j].content,
  15140. sName: b[j].name,
  15141. type: 10,
  15142. ttype:b[j].ttype,
  15143. time: b[j].time,
  15144. score: b[j].score,
  15145. img: b[j].img,
  15146. likesCount: likesCount,
  15147. commentCount: commentCount,
  15148. isLikes: isLikes,
  15149. commentJson: commentJson,
  15150. likeJson:likeJson
  15151. };
  15152. _worksStudent[i].push(_work);
  15153. _worksStudent2[i].push(_work);
  15154. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15155. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15156. //选择题
  15157. let _work = {
  15158. userid: b[j].userid,
  15159. ateacher: b[j].ateacher,
  15160. wid: b[j].id,
  15161. works: b[j].content,
  15162. sName: b[j].name,
  15163. type: 13,
  15164. ttype:b[j].ttype,
  15165. time: b[j].time,
  15166. score: b[j].score,
  15167. img: b[j].img,
  15168. likesCount: likesCount,
  15169. commentCount: commentCount,
  15170. isLikes: isLikes,
  15171. commentJson: commentJson,
  15172. likeJson:likeJson
  15173. };
  15174. _worksStudent[i].push(_work);
  15175. _worksStudent2[i].push(_work);
  15176. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15177. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15178. //选择题
  15179. let _work = {
  15180. userid: b[j].userid,
  15181. ateacher: b[j].ateacher,
  15182. wid: b[j].id,
  15183. works: b[j].content,
  15184. sName: b[j].name,
  15185. type: 16,
  15186. ttype:b[j].ttype,
  15187. time: b[j].time,
  15188. score: b[j].score,
  15189. img: b[j].img,
  15190. likesCount: likesCount,
  15191. commentCount: commentCount,
  15192. isLikes: isLikes,
  15193. commentJson: commentJson,
  15194. aiCode: b[j].aiCode,
  15195. teacherCode: b[j].teacherCode,
  15196. likeJson:likeJson
  15197. };
  15198. _worksStudent[i].push(_work);
  15199. _worksStudent2[i].push(_work);
  15200. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15201. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15202. //英语口语
  15203. let _work = {
  15204. userid: b[j].userid,
  15205. ateacher: b[j].ateacher,
  15206. wid: b[j].id,
  15207. works: b[j].content,
  15208. sName: b[j].name,
  15209. type: 17,
  15210. ttype:b[j].ttype,
  15211. time: b[j].time,
  15212. score: b[j].score,
  15213. img: b[j].img,
  15214. likesCount: likesCount,
  15215. commentCount: commentCount,
  15216. isLikes: isLikes,
  15217. commentJson: commentJson,
  15218. likeJson:likeJson
  15219. };
  15220. _worksStudent[i].push(_work);
  15221. _worksStudent2[i].push(_work);
  15222. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15223. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15224. //交互视频
  15225. let _work = {
  15226. userid: b[j].userid,
  15227. ateacher: b[j].ateacher,
  15228. wid: b[j].id,
  15229. works: b[j].content,
  15230. sName: b[j].name,
  15231. type: 14,
  15232. ttype:b[j].ttype,
  15233. time: b[j].time,
  15234. score: b[j].score,
  15235. img: b[j].img,
  15236. likesCount: likesCount,
  15237. commentCount: commentCount,
  15238. isLikes: isLikes,
  15239. commentJson: commentJson,
  15240. likeJson:likeJson
  15241. };
  15242. _worksStudent[i].push(_work);
  15243. _worksStudent2[i].push(_work);
  15244. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15245. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15246. let _gindex = JSON.parse(b[j].content);
  15247. if (
  15248. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15249. b[j].userid
  15250. ) != -1
  15251. ) {
  15252. let _work = {
  15253. userid: b[j].userid,
  15254. ateacher: b[j].ateacher,
  15255. wid: b[j].id,
  15256. works: _gindex.url,
  15257. sName: b[j].name,
  15258. type: _gindex.type,
  15259. ttype:b[j].ttype,
  15260. time: b[j].time,
  15261. score: b[j].score,
  15262. img: b[j].img,
  15263. likesCount: likesCount,
  15264. commentCount: commentCount,
  15265. isLikes: isLikes,
  15266. commentJson: commentJson,
  15267. likeJson:likeJson
  15268. };
  15269. _worksStudent[i][_gindex.groupIndex].push(_work);
  15270. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15271. }
  15272. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15273. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15274. let _work = {
  15275. userid: b[j].userid,
  15276. ateacher: b[j].ateacher,
  15277. wid: b[j].id,
  15278. works: b[j].content,
  15279. sName: b[j].name ? b[j].name : b[j].userid,
  15280. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15281. ttype:b[j].ttype,
  15282. time: b[j].time,
  15283. score: b[j].score,
  15284. img: b[j].img,
  15285. likesCount: likesCount,
  15286. commentCount: commentCount,
  15287. isLikes: isLikes,
  15288. commentJson: commentJson,
  15289. likeJson:likeJson
  15290. };
  15291. _worksStudent[i].push(_work);
  15292. _worksStudent2[i].push(_work);
  15293. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15294. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15295. let _work = {
  15296. userid: b[j].userid,
  15297. ateacher: b[j].ateacher,
  15298. wid: b[j].id,
  15299. works: b[j].content,
  15300. sName: b[j].name ? b[j].name : b[j].userid,
  15301. type: 12,
  15302. ttype:b[j].ttype,
  15303. time: b[j].time,
  15304. score: b[j].score,
  15305. img: b[j].img,
  15306. likesCount: likesCount,
  15307. commentCount: commentCount,
  15308. isLikes: isLikes,
  15309. commentJson: commentJson,
  15310. likeJson:likeJson
  15311. };
  15312. _worksStudent[i].push(_work);
  15313. _worksStudent2[i].push(_work);
  15314. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15315. } else if (
  15316. a[i].tool[0] == 57 &&
  15317. b[j].atool == 57 &&
  15318. b[j].type == 12
  15319. ) {
  15320. let _work = {
  15321. userid: b[j].userid,
  15322. ateacher: b[j].ateacher,
  15323. wid: b[j].id,
  15324. works: b[j].content,
  15325. sName: b[j].name ? b[j].name : b[j].userid,
  15326. type: 12,
  15327. ttype:b[j].ttype,
  15328. time: b[j].time,
  15329. score: b[j].score,
  15330. img: b[j].img,
  15331. likesCount: likesCount,
  15332. commentCount: commentCount,
  15333. isLikes: isLikes,
  15334. commentJson: commentJson,
  15335. likeJson:likeJson
  15336. };
  15337. _worksStudent[i].push(_work);
  15338. _worksStudent2[i].push(_work);
  15339. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15340. } else if (
  15341. a[i].tool[0] == 57 &&
  15342. b[j].atool == 57 &&
  15343. b[j].type == 15
  15344. ) {
  15345. let _work = {
  15346. userid: b[j].userid,
  15347. ateacher: b[j].ateacher,
  15348. wid: b[j].id,
  15349. works: b[j].content,
  15350. sName: b[j].name ? b[j].name : b[j].userid,
  15351. type: 15,
  15352. ttype:b[j].ttype,
  15353. time: b[j].time,
  15354. score: b[j].score,
  15355. img: b[j].img,
  15356. likesCount: likesCount,
  15357. commentCount: commentCount,
  15358. isLikes: isLikes,
  15359. commentJson: commentJson,
  15360. likeJson:likeJson
  15361. };
  15362. _worksStudent[i].push(_work);
  15363. _worksStudent2[i].push(_work);
  15364. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15365. }
  15366. }
  15367. }
  15368. if (_worksStudent[i] && _worksStudent[i].length) {
  15369. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15370. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15371. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15372. var scoreA = parseFloat(jscoreA);
  15373. var scoreB = parseFloat(jscoreB);
  15374. if (scoreA == scoreB) {
  15375. return b.likesCount - a.likesCount;
  15376. }
  15377. return scoreB - scoreA;
  15378. });
  15379. if (this.isGroup) {
  15380. for (
  15381. var groupI = 0;
  15382. groupI < this.courseGroup.group.length;
  15383. groupI++
  15384. ) {
  15385. this.courseGroup.group[groupI].works[i] =
  15386. this.courseGroup.group[groupI].works[i].sort(function (
  15387. a,
  15388. b
  15389. ) {
  15390. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15391. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15392. var scoreA = parseFloat(jscoreA);
  15393. var scoreB = parseFloat(jscoreB);
  15394. if (scoreA == scoreB) {
  15395. return b.likesCount - a.likesCount;
  15396. }
  15397. return scoreB - scoreA;
  15398. });
  15399. }
  15400. }
  15401. }
  15402. }
  15403. this.timeWorkList = _worksStudent2;
  15404. for (var i = 0; i < a.length; i++) {
  15405. for (var j = 0; j < b.length; j++) {
  15406. var data = b[j];
  15407. if (i == b[j].tool) {
  15408. if (data.type == 2 || data.type == 8) {
  15409. for (var z = 0; z < this.checkJson[i].length; z++) {
  15410. this.checkJson[i][z].checkPerent = [];
  15411. this.checkJson[i][z].right = Math.round(
  15412. (this.checkJson[i][z].rightPerson.length /
  15413. parseInt(_worksStudent[i].length)) *
  15414. 100
  15415. );
  15416. let aaaa = this.checkJson[i][z];
  15417. for (
  15418. var k = 0;
  15419. k < this.checkJson[i][z].checkCount.length;
  15420. k++
  15421. ) {
  15422. this.checkJson[i][z].checkPerent.push(
  15423. Math.round(
  15424. (this.checkJson[i][z].checkCount[k] /
  15425. parseInt(_worksStudent[i].length)) *
  15426. 100
  15427. )
  15428. );
  15429. }
  15430. }
  15431. } else if (data.type == 9) {
  15432. for (var z = 0; z < this.checkJson[i].length; z++) {
  15433. this.checkJson[i][z].checkPerent = [];
  15434. this.checkJson[i][z].right = Math.round(
  15435. (this.checkJson[i][z].rightPerson.length /
  15436. this.checkJson[i][z].checkPerson.length) *
  15437. 100
  15438. );
  15439. }
  15440. }
  15441. }
  15442. }
  15443. }
  15444. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15445. this.joinGroup(gindex);
  15446. }
  15447. this.worksStudent = _worksStudent;
  15448. this.selectWorksStudent();
  15449. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15450. this.$nextTick(()=>{
  15451. setTimeout(()=>{
  15452. setTimeout(()=>{
  15453. this.panToolHeight('tool-'+ci);
  15454. }, 500)
  15455. }, 0)
  15456. })
  15457. }
  15458. })
  15459. .catch((err) => {
  15460. console.error(err);
  15461. });
  15462. },
  15463. pngToWhiteBg(file) {
  15464. const _file = file;
  15465. let read = new FileReader();
  15466. read.readAsDataURL(file); // 文件转base64
  15467. return new Promise((resolve, reject) => {
  15468. read.onload = (e) => {
  15469. let img = new Image();
  15470. img.src = e.target.result;
  15471. img.onload = async () => {
  15472. // 生成canvas
  15473. let canvas = document.createElement("canvas");
  15474. let context = canvas.getContext("2d");
  15475. // 绘制图片到canvas上
  15476. canvas.width = img.width;
  15477. canvas.height = img.height;
  15478. // 在canvas绘制前填充白色背景
  15479. context.fillStyle = "#fff";
  15480. context.fillRect(0, 0, canvas.width, canvas.height);
  15481. context.drawImage(img, 0, 0);
  15482. let base64 = canvas.toDataURL(file["type"], 1);
  15483. let newFile = this.dataUrlToFile(base64, _file);
  15484. resolve(newFile);
  15485. };
  15486. };
  15487. });
  15488. },
  15489. dataUrlToFile(dataurl, file) {
  15490. let arr = dataurl.split(","),
  15491. mime = arr[0].match(/:(.*?);/)[1],
  15492. bstr = atob(arr[1]),
  15493. n = bstr.length,
  15494. u8arr = new Uint8Array(n);
  15495. while (n--) {
  15496. u8arr[n] = bstr.charCodeAt(n);
  15497. }
  15498. // return new Blob([u8arr], { type: mime });
  15499. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15500. type: mime,
  15501. });
  15502. },
  15503. async beforeUpload1(event, type, i) {
  15504. // this.$message.success('进入上传')
  15505. var file = "";
  15506. if (type == 5) {
  15507. file = event;
  15508. } else {
  15509. file = event.target.files[0];
  15510. }
  15511. var credentials = {
  15512. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15513. secretAccessKey: "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",
  15514. }; //秘钥形式的登录上传
  15515. window.AWS.config.update(credentials);
  15516. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15517. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15518. var _this = this;
  15519. _this.progress = 0;
  15520. _this.proVisible = true;
  15521. _this.isFinishSize = 0;
  15522. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15523. var b = [
  15524. "DOC",
  15525. "DOCX",
  15526. "DOCM",
  15527. "DOTM",
  15528. "DOTX",
  15529. "PPTX",
  15530. "PPSX",
  15531. "PPT",
  15532. "PPS",
  15533. "PPTM",
  15534. "POTM",
  15535. "PPAM",
  15536. "POTX",
  15537. "PPSM",
  15538. ];
  15539. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15540. var photoA = [
  15541. "BMP",
  15542. "GIF",
  15543. "PNG",
  15544. "JPEG",
  15545. "JPEG",
  15546. "JPG",
  15547. "TIF",
  15548. "PCX",
  15549. "TGA",
  15550. "EXIF",
  15551. "FPX",
  15552. "SVG",
  15553. "APNG",
  15554. ];
  15555. // if (
  15556. // b.indexOf(
  15557. // file.name
  15558. // .split(".")
  15559. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15560. // ) != -1
  15561. // ) {
  15562. // if (file.size / 1024 / 1024 > 10) {
  15563. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15564. // return;
  15565. // }
  15566. // } else if (
  15567. // excelA.indexOf(
  15568. // file.name
  15569. // .split(".")
  15570. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15571. // ) != "-1"
  15572. // ) {
  15573. // if (file.size / 1024 / 1024 > 5) {
  15574. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15575. // return;
  15576. // }
  15577. // }
  15578. if (
  15579. photoA.indexOf(
  15580. file.name
  15581. .split(".")
  15582. [file.name.split(".").length - 1].toLocaleUpperCase()
  15583. ) != -1 &&
  15584. type != 4
  15585. ) {
  15586. // const blob = await imageConversion.compress(file, 0.8)
  15587. file = await this.pngToWhiteBg(file);
  15588. const blob = await imageConversion.compressAccurately(file, 256);
  15589. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15590. file = new File([blob], file.name, { type: file.type });
  15591. }
  15592. if (file) {
  15593. var params = {
  15594. Key:
  15595. file.name.split(".")[0] +
  15596. new Date().getTime() +
  15597. "." +
  15598. file.name.split(".")[file.name.split(".").length - 1],
  15599. ContentType: file.type,
  15600. Body: file,
  15601. "Access-Control-Allow-Credentials": "*",
  15602. ACL: "public-read",
  15603. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15604. var options = {
  15605. // partSize: 2048 * 1024 * 1024,
  15606. partSize: 1024 * 1024 * 1024,
  15607. queueSize: 2,
  15608. leavePartsOnError: true,
  15609. };
  15610. bucket
  15611. .upload(params, options)
  15612. .on("httpUploadProgress", function (evt) {
  15613. //这里可以写进度条
  15614. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15615. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15616. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15617. })
  15618. .send(function (err, data) {
  15619. _this.progress = 100;
  15620. _this.isFinishSize = _this.isAllSize;
  15621. setTimeout(() => {
  15622. _this.proVisible = false;
  15623. }, 1000);
  15624. if (err) {
  15625. var a = _this.$refs.upload1.uploadFiles;
  15626. a.splice(a.length - 1, a.length);
  15627. _this.$message.error("上传失败");
  15628. } else {
  15629. // _this.$message.success('上传成功')
  15630. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15631. var c = [
  15632. "AVI",
  15633. "NAVI",
  15634. "MPEG",
  15635. "ASF",
  15636. "MOV",
  15637. "WMV",
  15638. "3GP",
  15639. "RM",
  15640. "RMVB",
  15641. "FLV",
  15642. "F4V",
  15643. "H.264",
  15644. "H.265",
  15645. "REAL VIDEO",
  15646. "MKV",
  15647. "WebM",
  15648. "HDDVD",
  15649. "MP4",
  15650. "MPG",
  15651. "M4V",
  15652. "MGV",
  15653. "OGV",
  15654. "QTM",
  15655. "STR",
  15656. "AMC",
  15657. "DVX",
  15658. "EVO",
  15659. "DAT",
  15660. "OGG",
  15661. "OGM",
  15662. ];
  15663. if (type == 1) {
  15664. _this.studyJuri[0].cover.push({
  15665. name: file.name,
  15666. url: data.Location,
  15667. uid: file.uid,
  15668. });
  15669. if (
  15670. c.indexOf(
  15671. _this.studyJuri[0].cover[0].url
  15672. .split(".")
  15673. [
  15674. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15675. ].toLocaleUpperCase()
  15676. ) != -1
  15677. ) {
  15678. _this.fileType = 2;
  15679. } else if (
  15680. b.indexOf(
  15681. _this.studyJuri[0].cover[0].url
  15682. .split(".")
  15683. [
  15684. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15685. ].toLocaleUpperCase()
  15686. ) != -1
  15687. ) {
  15688. _this.fileType = 1;
  15689. } else if (
  15690. photoA.indexOf(
  15691. _this.studyJuri[0].cover[0].url
  15692. .split(".")
  15693. [
  15694. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15695. ].toLocaleUpperCase()
  15696. ) != -1
  15697. ) {
  15698. _this.fileType = 0;
  15699. } else {
  15700. _this.fileType = 3;
  15701. }
  15702. _this.imgChange(null, null, type);
  15703. } else if (type == 2) {
  15704. _this.upToolImg = data.Location;
  15705. _this.imgChange(null, null, type);
  15706. _this.addCourseWorks(i);
  15707. } else if (type == 4) {
  15708. _this.addPz("3", data.Location);
  15709. } else if (type == 5) {
  15710. _this.addImgDrawImG(data.Location);
  15711. } else if (type == 6) {
  15712. var _ftype = 1;
  15713. if (
  15714. c.indexOf(
  15715. data.Location.split(".")[
  15716. data.Location.split(".").length - 1
  15717. ].toLocaleUpperCase()
  15718. ) != -1
  15719. ) {
  15720. _ftype = 5;
  15721. } else if (
  15722. b.indexOf(
  15723. data.Location.split(".")[
  15724. data.Location.split(".").length - 1
  15725. ].toLocaleUpperCase()
  15726. ) != -1
  15727. ) {
  15728. _ftype = 4;
  15729. } else {
  15730. _ftype = 1;
  15731. }
  15732. _this.plworkFile.push({
  15733. name: file.name,
  15734. url: data.Location,
  15735. uid: file.uid,
  15736. fileType: _ftype,
  15737. username:
  15738. _this.plworkFile.length > 10
  15739. ? _this.plworkFile.length + 1
  15740. : "0" + (_this.plworkFile.length + 1),
  15741. });
  15742. } else if (type == 7) {
  15743. _this.addCourseWorksGong(i, data.Location, 32);
  15744. } else if (type == 8) {
  15745. _this.addCourseWorksGong(i, data.Location, 57);
  15746. }
  15747. _this.imgChange(null, null, type);
  15748. console.log(data.Location);
  15749. // _this.$message.success('上传成功'+data.Location)
  15750. }
  15751. });
  15752. }
  15753. },
  15754. async beforeUpload3(event, type, i) {
  15755. // this.$message.success('进入上传')
  15756. let file = "";
  15757. let cfindex2 = 0;
  15758. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15759. file = event.target.files[cfindex];
  15760. var credentials = {
  15761. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15762. secretAccessKey: "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",
  15763. }; //秘钥形式的登录上传
  15764. window.AWS.config.update(credentials);
  15765. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15766. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15767. var _this = this;
  15768. // _this.progress = 0;
  15769. _this.proVisible2 = true;
  15770. var b = [
  15771. "DOC",
  15772. "DOCX",
  15773. "DOCM",
  15774. "DOTM",
  15775. "DOTX",
  15776. "PPTX",
  15777. "PPSX",
  15778. "PPT",
  15779. "PPS",
  15780. "PPTM",
  15781. "POTM",
  15782. "PPAM",
  15783. "POTX",
  15784. "PPSM",
  15785. ];
  15786. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15787. var photoA = [
  15788. "BMP",
  15789. "GIF",
  15790. "PNG",
  15791. "JPEG",
  15792. "JPG",
  15793. "TIF",
  15794. "PCX",
  15795. "TGA",
  15796. "EXIF",
  15797. "FPX",
  15798. "SVG",
  15799. "APNG",
  15800. ];
  15801. if (
  15802. photoA.indexOf(
  15803. file.name
  15804. .split(".")
  15805. [file.name.split(".").length - 1].toLocaleUpperCase()
  15806. ) != -1 &&
  15807. type != 4
  15808. ) {
  15809. // const blob = await imageConversion.compress(file, 0.8)
  15810. file = await this.pngToWhiteBg(file);
  15811. const blob = await imageConversion.compressAccurately(file, 256);
  15812. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15813. file = new File([blob], file.name, { type: file.type });
  15814. }
  15815. if (file) {
  15816. var params = {
  15817. Key:
  15818. file.name.split(".")[0] +
  15819. new Date().getTime() +
  15820. "." +
  15821. file.name.split(".")[file.name.split(".").length - 1],
  15822. ContentType: file.type,
  15823. Body: file,
  15824. "Access-Control-Allow-Credentials": "*",
  15825. ACL: "public-read",
  15826. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15827. var options = {
  15828. // partSize: 2048 * 1024 * 1024,
  15829. partSize: 1024 * 1024 * 1024,
  15830. queueSize: 2,
  15831. leavePartsOnError: true,
  15832. };
  15833. bucket
  15834. .upload(params, options)
  15835. .on("httpUploadProgress", function (evt) {
  15836. //这里可以写进度条
  15837. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15838. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15839. })
  15840. .send(function (err, data) {
  15841. // _this.progress = 100;
  15842. cfindex2++;
  15843. setTimeout(() => {
  15844. if (
  15845. cfindex2 == event.target.files.length - 1 ||
  15846. cfindex2 > event.target.files.length - 1
  15847. ) {
  15848. _this.proVisible2 = false;
  15849. }
  15850. }, 1000);
  15851. if (err) {
  15852. var a = _this.$refs.upload1.uploadFiles;
  15853. a.splice(a.length - 1, a.length);
  15854. _this.$message.error("上传失败");
  15855. } else {
  15856. // _this.$message.success('上传成功')
  15857. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15858. var c = [
  15859. "AVI",
  15860. "NAVI",
  15861. "MPEG",
  15862. "ASF",
  15863. "MOV",
  15864. "WMV",
  15865. "3GP",
  15866. "RM",
  15867. "RMVB",
  15868. "FLV",
  15869. "F4V",
  15870. "H.264",
  15871. "H.265",
  15872. "REAL VIDEO",
  15873. "MKV",
  15874. "WebM",
  15875. "HDDVD",
  15876. "MP4",
  15877. "MPG",
  15878. "M4V",
  15879. "MGV",
  15880. "OGV",
  15881. "QTM",
  15882. "STR",
  15883. "AMC",
  15884. "DVX",
  15885. "EVO",
  15886. "DAT",
  15887. "OGG",
  15888. "OGM",
  15889. ];
  15890. if (type == 1) {
  15891. _this.studyJuri[0].cover.push({
  15892. name: file.name,
  15893. url: data.Location,
  15894. uid: file.uid,
  15895. });
  15896. if (
  15897. c.indexOf(
  15898. _this.studyJuri[0].cover[0].url
  15899. .split(".")
  15900. [
  15901. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15902. ].toLocaleUpperCase()
  15903. ) != -1
  15904. ) {
  15905. _this.fileType = 2;
  15906. } else if (
  15907. b.indexOf(
  15908. _this.studyJuri[0].cover[0].url
  15909. .split(".")
  15910. [
  15911. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15912. ].toLocaleUpperCase()
  15913. ) != -1
  15914. ) {
  15915. _this.fileType = 1;
  15916. } else {
  15917. _this.fileType = 0;
  15918. }
  15919. _this.imgChange(null, null, type);
  15920. } else if (type == 2) {
  15921. _this.upToolImg = data.Location;
  15922. _this.imgChange(null, null, type);
  15923. _this.addCourseWorks(i);
  15924. } else if (type == 4) {
  15925. _this.addPz("3", data.Location);
  15926. } else if (type == 5) {
  15927. _this.addImgDrawImG(data.Location);
  15928. } else if (type == 6) {
  15929. var _ftype = 1;
  15930. if (
  15931. c.indexOf(
  15932. data.Location.split(".")[
  15933. data.Location.split(".").length - 1
  15934. ].toLocaleUpperCase()
  15935. ) != -1
  15936. ) {
  15937. _ftype = 5;
  15938. } else if (
  15939. b.indexOf(
  15940. data.Location.split(".")[
  15941. data.Location.split(".").length - 1
  15942. ].toLocaleUpperCase()
  15943. ) != -1
  15944. ) {
  15945. _ftype = 4;
  15946. } else {
  15947. _ftype = 1;
  15948. }
  15949. _this.plworkFile.push({
  15950. name: file.name,
  15951. url: data.Location,
  15952. uid: file.uid,
  15953. fileType: _ftype,
  15954. username:
  15955. _this.plworkFile.length + 1 > 9
  15956. ? _this.plworkFile.length + 1
  15957. : "0" + (_this.plworkFile.length + 1),
  15958. });
  15959. }
  15960. _this.imgChange(null, null, type);
  15961. console.log(data.Location);
  15962. // _this.$message.success('上传成功'+data.Location)
  15963. }
  15964. });
  15965. }
  15966. }
  15967. },
  15968. beforeUpload2(event, type) {
  15969. var file = event.target.files[0];
  15970. var credentials = {
  15971. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15972. secretAccessKey: "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",
  15973. }; //秘钥形式的登录上传
  15974. window.AWS.config.update(credentials);
  15975. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15976. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15977. var _this = this;
  15978. _this.progress = 0;
  15979. _this.proVisible = true;
  15980. if (file) {
  15981. var params = {
  15982. Key:
  15983. file.name.split(".")[0] +
  15984. new Date().getTime() +
  15985. "." +
  15986. file.name.split(".")[file.name.split(".").length - 1],
  15987. ContentType: file.type,
  15988. Body: file,
  15989. "Access-Control-Allow-Credentials": "*",
  15990. ACL: "public-read",
  15991. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15992. var options = {
  15993. partSize: 2048 * 1024 * 1024,
  15994. queueSize: 2,
  15995. leavePartsOnError: true,
  15996. };
  15997. bucket
  15998. .upload(params, options)
  15999. .on("httpUploadProgress", function (evt) {
  16000. //这里可以写进度条
  16001. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16002. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16003. })
  16004. .send(function (err, data) {
  16005. _this.progress = 100;
  16006. setTimeout(() => {
  16007. _this.proVisible = false;
  16008. }, 1000);
  16009. if (err) {
  16010. var a = _this.$refs.upload1.uploadFiles;
  16011. a.splice(a.length - 1, a.length);
  16012. _this.$message.error("上传失败");
  16013. } else {
  16014. if (type == 2) {
  16015. _this.studyJuri[0].upVedio.push({
  16016. name: file.name,
  16017. url: data.Location,
  16018. uid: file.uid,
  16019. });
  16020. _this.imgChange(null, null, type);
  16021. } else if (type == 3) {
  16022. _this.studyJuri[0].upFile.push({
  16023. name: file.name,
  16024. url: data.Location,
  16025. uid: file.uid,
  16026. });
  16027. _this.imgChange(null, null, type);
  16028. }
  16029. console.log(data.Location);
  16030. }
  16031. });
  16032. }
  16033. },
  16034. allScrell() {
  16035. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16036. },
  16037. nextOrpreSteps(t) {
  16038. if (this.IsFollow && this.tType == 2) {
  16039. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16040. return;
  16041. }
  16042. var b = this.chapInfoList.length - 1;
  16043. if (t == 0) {
  16044. if (this.courseType == 0) {
  16045. if (this.taskCount == 0) {
  16046. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16047. if (this.IsLookOpen) {
  16048. if (
  16049. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16050. ) {
  16051. if (
  16052. this.courseDetail.userid != this.userid &&
  16053. (!this.courseDetail.course_teacher ||
  16054. (this.courseDetail.course_teacher &&
  16055. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16056. ) {
  16057. this.$message.error("任务未解锁");
  16058. } else {
  16059. this.$message.error("上一任务未解锁");
  16060. }
  16061. return;
  16062. }
  16063. }
  16064. this.navList[this.courseType].isOpen = false;
  16065. this.courseType = b;
  16066. this.taskCount =
  16067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16068. .length - 1;
  16069. this.navList[this.courseType].isOpen = true;
  16070. } else {
  16071. this.taskCount--;
  16072. }
  16073. } else {
  16074. if (this.taskCount == 0) {
  16075. this.navList[this.courseType].isOpen = false;
  16076. this.courseType--;
  16077. this.taskCount =
  16078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16079. .length - 1;
  16080. this.navList[this.courseType].isOpen = true;
  16081. } else {
  16082. this.taskCount--;
  16083. }
  16084. }
  16085. } else {
  16086. if (this.courseType == b) {
  16087. if (
  16088. this.taskCount ==
  16089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16090. 1
  16091. ) {
  16092. this.navList[this.courseType].isOpen = false;
  16093. this.courseType = 0;
  16094. this.taskCount = 0;
  16095. this.navList[this.courseType].isOpen = true;
  16096. } else {
  16097. var bbb = parseInt(this.taskCount) + 1;
  16098. if (
  16099. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16100. .isLook &&
  16101. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16102. (this.courseDetail.course_teacher &&
  16103. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16104. this.IsLookOpen
  16105. ) {
  16106. this.$message.error("任务未解锁");
  16107. return;
  16108. }
  16109. this.taskCount++;
  16110. if (this.IsLookOpen) {
  16111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16112. this.taskCount
  16113. ].isLook = true;
  16114. this.addCourseState(3);
  16115. }
  16116. }
  16117. } else {
  16118. if (
  16119. this.taskCount ==
  16120. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16121. 1
  16122. ) {
  16123. var bbb = parseInt(this.courseType) + 1;
  16124. if (
  16125. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16126. this.courseDetail.userid != this.userid &&
  16127. (!this.courseDetail.course_teacher ||
  16128. (this.courseDetail.course_teacher &&
  16129. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16130. this.IsLookOpen
  16131. ) {
  16132. this.$message.error("任务未解锁");
  16133. return;
  16134. }
  16135. this.navList[this.courseType].isOpen = false;
  16136. this.courseType++;
  16137. this.taskCount = 0;
  16138. this.navList[this.courseType].isOpen = true;
  16139. } else {
  16140. var bbb = parseInt(this.taskCount) + 1;
  16141. if (
  16142. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16143. .isLook &&
  16144. this.courseDetail.userid != this.userid &&
  16145. (!this.courseDetail.course_teacher ||
  16146. (this.courseDetail.course_teacher &&
  16147. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16148. this.IsLookOpen
  16149. ) {
  16150. this.$message.error("任务未解锁");
  16151. return;
  16152. }
  16153. this.taskCount++;
  16154. }
  16155. if (this.IsLookOpen) {
  16156. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16157. this.taskCount
  16158. ].isLook = true;
  16159. this.addCourseState(3);
  16160. }
  16161. }
  16162. // if (
  16163. // this.taskCount ==
  16164. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16165. // ) {
  16166. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16167. // } else {
  16168. // this.taskCount++;
  16169. // }
  16170. }
  16171. document.scrollingElement.scrollTop = 0;
  16172. this.showType = 7;
  16173. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16174. // if (this.vedio[this.taskCount].length > 0) {
  16175. // var a =
  16176. // document.getElementsByClassName("box_course")[this.taskCount]
  16177. // .offsetHeight;
  16178. // document.getElementsByClassName("vedioList")[
  16179. // this.taskCount
  16180. // ].style.height = a + "px";
  16181. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16182. // a - 40 + "px";
  16183. // }
  16184. this.isNoHomeWork = false;
  16185. (this.studyJuri = [
  16186. {
  16187. content: "",
  16188. cover: [],
  16189. upVedio: [],
  16190. upFile: [],
  16191. },
  16192. ]),
  16193. (this.radio = []);
  16194. this.isClickNav = "";
  16195. this.selectPz();
  16196. this.getHomeWork();
  16197. this.getCourseDetail(2);
  16198. this.$forceUpdate();
  16199. },
  16200. openTask(s, n, i,ctype) {
  16201. console.log(s, n, i,ctype)
  16202. if (this.IsFollow && this.tType == 2) {
  16203. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16204. return;
  16205. }
  16206. if (this.IsLookOpen) {
  16207. if (
  16208. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16209. this.courseDetail.userid != this.userid &&
  16210. (!this.courseDetail.course_teacher ||
  16211. (this.courseDetail.course_teacher &&
  16212. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16213. ) {
  16214. this.$message.error("任务未解锁");
  16215. return;
  16216. }
  16217. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16218. if (
  16219. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16220. .isLook
  16221. ) {
  16222. this.$message.error("上一任务未解锁");
  16223. return;
  16224. }
  16225. } else if (s > this.courseType) {
  16226. if (n > 0) {
  16227. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16228. this.$message.error("上一任务未解锁");
  16229. return;
  16230. }
  16231. } else {
  16232. if (
  16233. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16234. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16235. ].isLook
  16236. ) {
  16237. this.$message.error("上一任务未解锁");
  16238. return;
  16239. }
  16240. }
  16241. }
  16242. }
  16243. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16244. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16245. return;
  16246. }
  16247. let flag = this.courseType==s;
  16248. this.courseType = s;
  16249. this.navId = i;
  16250. this.taskCount = n;
  16251. if(ctype == 2){
  16252. this.navList[s].task[n].isOpen = true
  16253. }else{
  16254. this.navList[this.courseType].task[this.taskCount].isOpen =
  16255. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16256. }
  16257. if (this.IsLookOpen) {
  16258. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16259. this.taskCount
  16260. ].isLook = true;
  16261. this.addCourseState(3);
  16262. }
  16263. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16264. this.isCloseList[ci].isClose = 0;
  16265. this.isCloseList[ci].isCloseBoolean = false;
  16266. this.$nextTick(()=>{
  16267. setTimeout(()=>{
  16268. setTimeout(()=>{
  16269. this.panToolHeight('tool-'+ci);
  16270. }, 0)
  16271. }, 0)
  16272. })
  16273. }
  16274. this.showType = 0;
  16275. this.isNoHomeWork = false;
  16276. (this.studyJuri = [
  16277. {
  16278. content: "",
  16279. cover: [],
  16280. upVedio: [],
  16281. upFile: [],
  16282. },
  16283. ]),
  16284. (this.radio = []);
  16285. document.scrollingElement.scrollTop = 0;
  16286. // setTimeout(() => {
  16287. // let a = document.getElementById(i);
  16288. // if (a.offsetTop - 110 == 0) {
  16289. // window.scrollTo(0, 0);
  16290. // } else {
  16291. // window.scrollTo(0, a.offsetTop);
  16292. // }
  16293. // }, 0);
  16294. for (var z = 0; z < this.navList.length; z++) {
  16295. for (var q = 0; q < this.navList[z].task.length; q++) {
  16296. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16297. this.navList[z].task[q].tool[w].isTool = false;
  16298. }
  16299. }
  16300. }
  16301. this.selectPz();
  16302. this.getHomeWork();
  16303. this.getCourseDetail(2);
  16304. if(flag){
  16305. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16306. }else{
  16307. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16308. }
  16309. },
  16310. get(i) {
  16311. if (this.IsFollow && this.tType == 2) {
  16312. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16313. return;
  16314. }
  16315. // for(var k=0;k<this.navList.length;k++){
  16316. // this.navList[k].isOpen = false;
  16317. // }
  16318. // this.navList[i].isOpen = true;
  16319. let a = this.navList[i].isOpen
  16320. this.navList[i].isOpen = !this.navList[i].isOpen;
  16321. this.$forceUpdate()
  16322. if (this.navList[i].isOpen) {
  16323. this.openTask(i, 0, (i + "-0"),2);
  16324. }
  16325. },
  16326. addQuestion() {
  16327. this.answerList.push({
  16328. answerTitle: this.answerQ,
  16329. answer: this.questionAnswer,
  16330. });
  16331. let params = [
  16332. {
  16333. uid: this.userid,
  16334. cid: this.id,
  16335. stage: this.courseType,
  16336. task: this.taskCount,
  16337. tool: this.toolindex,
  16338. content: JSON.stringify(this.answerList),
  16339. type: 3,
  16340. },
  16341. ];
  16342. this.ajax
  16343. .post(this.$store.state.api + "addCourseWorks", params)
  16344. .then((res) => {
  16345. this.$message({
  16346. message: "提交成功",
  16347. type: "success",
  16348. });
  16349. this.answerList = [];
  16350. this.answerDialogVisible = false;
  16351. this.selectStudent();
  16352. this.selectSWorks();
  16353. this.selectSLook();
  16354. })
  16355. .catch((err) => {
  16356. this.$message.error("提交失败");
  16357. console.error(err);
  16358. });
  16359. },
  16360. addQuestionTeacher() {
  16361. this.answerList.push({
  16362. answerTitle: this.answerQ,
  16363. answer: this.questionAnswer,
  16364. });
  16365. let params = [
  16366. {
  16367. uid: this.sStudent.userid,
  16368. cid: this.id,
  16369. stage: this.courseType,
  16370. task: this.taskCount,
  16371. tool: this.toolindex,
  16372. content: JSON.stringify(this.answerList),
  16373. type: 3,
  16374. ateacher: this.userid,
  16375. },
  16376. ];
  16377. this.ajax
  16378. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16379. .then((res) => {
  16380. this.$message({
  16381. message: "提交成功",
  16382. type: "success",
  16383. });
  16384. this.answerList = [];
  16385. this.questionAnswer = "";
  16386. this.answerDialogVisibleTeacher = false;
  16387. this.selectStudent();
  16388. this.selectSWorks();
  16389. this.selectSLook();
  16390. })
  16391. .catch((err) => {
  16392. this.$message.error("提交失败");
  16393. console.error(err);
  16394. });
  16395. },
  16396. refreshCourse() {
  16397. // window.location.reload();
  16398. this.navList = [];
  16399. this.getCourseDetail(1);
  16400. },
  16401. getCourseDetail(type, gindex) {
  16402. let loading;
  16403. if (type != 2) {
  16404. loading = this.$loading.service({
  16405. background: "rgba(255, 255, 255, 0.7)",
  16406. target: document.querySelector(".student_table"),
  16407. });
  16408. }
  16409. this.downLoading = false
  16410. // this.navList[0].isOpen = false;
  16411. // this.navList[this.courseType].isOpen = true;
  16412. // this.courseType = this.courseTypeLine;
  16413. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16414. let params = {
  16415. courseId: this.id,
  16416. };
  16417. this.ajax
  16418. .get(this.$store.state.api + "selectCourseDetail3", params)
  16419. .then((res) => {
  16420. if (type != 2) {
  16421. loading.close();
  16422. if (
  16423. this.courseType >
  16424. JSON.parse(res.data[0][0].chapters).length - 1
  16425. ) {
  16426. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16427. }
  16428. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16429. .chapterInfo[0].taskJson;
  16430. var b = [
  16431. "AVI",
  16432. "NAVI",
  16433. "MPEG",
  16434. "ASF",
  16435. "MOV",
  16436. "WMV",
  16437. "3GP",
  16438. "RM",
  16439. "RMVB",
  16440. "FLV",
  16441. "F4V",
  16442. "H.264",
  16443. "H.265",
  16444. "REAL VIDEO",
  16445. "MKV",
  16446. "WebM",
  16447. "HDDVD",
  16448. "MP4",
  16449. "MPG",
  16450. "M4V",
  16451. "MGV",
  16452. "OGV",
  16453. "QTM",
  16454. "STR",
  16455. "AMC",
  16456. "DVX",
  16457. "EVO",
  16458. "DAT",
  16459. "OGG",
  16460. "OGM",
  16461. "MP3",
  16462. ];
  16463. let _chapterData = [];
  16464. for (var i = 0; i < a.length; i++) {
  16465. var c = a[i].chapterData;
  16466. this.vedio[i] = [];
  16467. this.textList[i] = [];
  16468. this.lineList[i] = [];
  16469. this.chapToolList[i] = [];
  16470. this.file[i] = [];
  16471. this.fileC[i] = [];
  16472. _chapterData[i] = c.filter((el) => {
  16473. return el.type != 12;
  16474. });
  16475. this.fileC[i] = c.filter((el) => {
  16476. return el.type == 12;
  16477. });
  16478. // else if (c[j].type == 12) {
  16479. // this.fileC[i].push(c[j]);
  16480. // }
  16481. for (var j = 0; j < c.length; j++) {
  16482. if (c[j].type == 7) {
  16483. this.chapToolList[i].push(c[j]);
  16484. } else if (c[j].type == 8 || c[j].type == 14) {
  16485. this.lineList[i].push(c[j]);
  16486. } else if (c[j].type == 6) {
  16487. this.textList[i].push(c[j]);
  16488. } else {
  16489. if (
  16490. b.indexOf(
  16491. c[j].url
  16492. .split(".")
  16493. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16494. ) != -1
  16495. ) {
  16496. this.vedio[i].push(c[j]);
  16497. } else {
  16498. this.file[i].push(c[j]);
  16499. }
  16500. }
  16501. }
  16502. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16503. d.sources[0].src =
  16504. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16505. this.playerO[i] = d;
  16506. }
  16507. this.courseDetail = res.data[0][0];
  16508. this.tcid = this.arrayToArray(
  16509. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16510. this.tcid2 ? this.tcid2.split(",") : []
  16511. ).join(",");
  16512. this.evalua = res.data[0][0].evaId;
  16513. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16514. this.courseType
  16515. ];
  16516. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16517. if (this.tcid && res.data[1].length) {
  16518. let _inviteA = [];
  16519. for (var ik = 0; ik < res.data[1].length; ik++) {
  16520. _inviteA.push({
  16521. cid: res.data[1][ik].classid,
  16522. ic: res.data[1][ik].code,
  16523. });
  16524. }
  16525. for (var ik = 0; ik < _inviteA.length; ik++) {
  16526. if (
  16527. this.arrayToArray(
  16528. _inviteA[ik].cid.split(","),
  16529. this.tcid.split(",")
  16530. ).length
  16531. ) {
  16532. this.inviteCode = _inviteA[ik].ic;
  16533. break;
  16534. }
  16535. }
  16536. }
  16537. for (var l = 0; l < this.chapInfoList.length; l++) {
  16538. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16539. for (var m = 0; m < w.length; m++) {
  16540. w[m].id = l + "-" + m;
  16541. }
  16542. }
  16543. if (
  16544. _chapterData[this.taskCount].length &&
  16545. _chapterData[this.taskCount][0].type == 2
  16546. ) {
  16547. this.showType = 0;
  16548. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16549. } else {
  16550. if (_chapterData[this.taskCount].length > 0) {
  16551. let _url = _chapterData[this.taskCount][0].url;
  16552. if (
  16553. _chapterData[this.taskCount][0].type == 8 ||
  16554. _chapterData[this.taskCount][0].type == 14
  16555. ) {
  16556. this.showType = 2;
  16557. if (
  16558. _url.indexOf("https://") == -1 &&
  16559. _url.indexOf("http://") == -1
  16560. ) {
  16561. _url = "https://" + _url;
  16562. }
  16563. this.pptImgUrl1 = _url;
  16564. } else if (_chapterData[this.taskCount][0].type == 3) {
  16565. if (
  16566. _url
  16567. .split(".")
  16568. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16569. ) {
  16570. this.showType = 3;
  16571. this.pptImgUrl1 = _url;
  16572. } else if (
  16573. this.isAssetTypeAnImage(
  16574. _url
  16575. .split(".")
  16576. [_url.split(".").length - 1].toLocaleLowerCase()
  16577. )
  16578. ) {
  16579. this.showType = 4;
  16580. this.pptImgUrl1 = _url;
  16581. } else {
  16582. this.showType = 2;
  16583. this.pptImgUrl1 =
  16584. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16585. encodeURIComponent(_url);
  16586. }
  16587. } else if (_chapterData[this.taskCount][0].type == 13) {
  16588. this.showType = 4;
  16589. this.pptImgUrl1 = _url;
  16590. } else if (_chapterData[this.taskCount][0].type == 6) {
  16591. this.showType = 1;
  16592. this.text = this.textList[this.taskCount][0];
  16593. }
  16594. }
  16595. }
  16596. this.isClickNav = 0;
  16597. if (
  16598. !_chapterData[this.taskCount].length ||
  16599. _chapterData[this.taskCount][0].type == 12
  16600. ) {
  16601. this.isClickNav = "";
  16602. this.showType = "";
  16603. }
  16604. this.vChapterData = _chapterData;
  16605. } else {
  16606. this.showType = 0;
  16607. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16608. .chapterInfo[0].taskJson;
  16609. var b = [
  16610. "AVI",
  16611. "NAVI",
  16612. "MPEG",
  16613. "ASF",
  16614. "MOV",
  16615. "WMV",
  16616. "3GP",
  16617. "RM",
  16618. "RMVB",
  16619. "FLV",
  16620. "F4V",
  16621. "H.264",
  16622. "H.265",
  16623. "REAL VIDEO",
  16624. "MKV",
  16625. "WebM",
  16626. "HDDVD",
  16627. "MP4",
  16628. "MPG",
  16629. "M4V",
  16630. "MGV",
  16631. "OGV",
  16632. "QTM",
  16633. "STR",
  16634. "AMC",
  16635. "DVX",
  16636. "EVO",
  16637. "DAT",
  16638. "OGG",
  16639. "OGM",
  16640. "MP3",
  16641. ];
  16642. let _chapterData = [];
  16643. for (var i = 0; i < a.length; i++) {
  16644. var c = a[i].chapterData;
  16645. this.vedio[i] = [];
  16646. this.textList[i] = [];
  16647. this.lineList[i] = [];
  16648. this.chapToolList[i] = [];
  16649. this.file[i] = [];
  16650. this.fileC[i] = [];
  16651. _chapterData[i] = c.filter((el) => {
  16652. return el.type != 12;
  16653. });
  16654. this.fileC[i] = c.filter((el) => {
  16655. return el.type == 12;
  16656. });
  16657. for (var j = 0; j < c.length; j++) {
  16658. if (c[j].type == 7) {
  16659. this.chapToolList[i].push(c[j]);
  16660. } else if (c[j].type == 8 || c[j].type == 14) {
  16661. this.lineList[i].push(c[j]);
  16662. } else if (c[j].type == 6) {
  16663. this.textList[i].push(c[j]);
  16664. } else {
  16665. if (
  16666. b.indexOf(
  16667. c[j].url
  16668. .split(".")
  16669. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16670. ) != -1
  16671. ) {
  16672. this.vedio[i].push(c[j]);
  16673. } else {
  16674. this.file[i].push(c[j]);
  16675. }
  16676. }
  16677. }
  16678. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16679. d.sources[0].src =
  16680. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16681. this.playerO[i] = d;
  16682. }
  16683. if (
  16684. _chapterData[this.taskCount].length &&
  16685. _chapterData[this.taskCount][0].type == 2
  16686. ) {
  16687. this.showType = 0;
  16688. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16689. } else {
  16690. if (_chapterData[this.taskCount].length > 0) {
  16691. let _url = _chapterData[this.taskCount][0].url;
  16692. if (
  16693. _chapterData[this.taskCount][0].type == 8 ||
  16694. _chapterData[this.taskCount][0].type == 14
  16695. ) {
  16696. this.showType = 2;
  16697. if (
  16698. _url.indexOf("https://") == -1 &&
  16699. _url.indexOf("http://") == -1
  16700. ) {
  16701. _url = "https://" + _url;
  16702. }
  16703. this.pptImgUrl1 = _url;
  16704. } else if (_chapterData[this.taskCount][0].type == 3) {
  16705. if (
  16706. _url
  16707. .split(".")
  16708. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16709. ) {
  16710. this.showType = 3;
  16711. this.pptImgUrl1 = _url;
  16712. } else if (
  16713. this.isAssetTypeAnImage(
  16714. _url
  16715. .split(".")
  16716. [_url.split(".").length - 1].toLocaleLowerCase()
  16717. )
  16718. ) {
  16719. this.showType = 4;
  16720. this.pptImgUrl1 = _url;
  16721. } else {
  16722. this.showType = 2;
  16723. this.pptImgUrl1 =
  16724. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16725. encodeURIComponent(_url);
  16726. }
  16727. } else if (_chapterData[this.taskCount][0].type == 13) {
  16728. this.showType = 4;
  16729. this.pptImgUrl1 = _url;
  16730. } else if (_chapterData[this.taskCount][0].type == 6) {
  16731. this.showType = 1;
  16732. this.text = this.textList[this.taskCount][0];
  16733. }
  16734. }
  16735. }
  16736. this.isClickNav = 0;
  16737. if (
  16738. !_chapterData[this.taskCount].length ||
  16739. _chapterData[this.taskCount][0].type == 12
  16740. ) {
  16741. this.isClickNav = "";
  16742. this.showType = "";
  16743. }
  16744. this.vChapterData = _chapterData;
  16745. this.$forceUpdate();
  16746. }
  16747. // else {
  16748. // this.courseDetail = res.data[0][0];
  16749. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16750. // }
  16751. let _this = this;
  16752. if (_this.timer) {
  16753. clearInterval(_this.timer);
  16754. _this.timer = null;
  16755. }
  16756. if (_this.tcid) {
  16757. _this.getCourseGroup(gindex);
  16758. } else {
  16759. _this.selectSWorks(gindex);
  16760. }
  16761. _this.selectStudent();
  16762. _this.selectSLook();
  16763. _this.getPick();
  16764. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16765. _this.setCTask();
  16766. }
  16767. if (_this.dialogVisibleGroup) {
  16768. _this.groupJson =
  16769. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16770. _this.taskCount
  16771. ].toolChoose[_this.toolindex].groupJson;
  16772. }
  16773. _this.$nextTick(() => {
  16774. setTimeout(() => {
  16775. _this.checkEva();
  16776. }, 1000);
  16777. });
  16778. _this.timer = setInterval(function () {
  16779. // _this.getCourseDetail(2);
  16780. if (_this.tcid) {
  16781. _this.getCourseGroup(gindex);
  16782. } else {
  16783. _this.selectSWorks(gindex);
  16784. }
  16785. _this.selectStudent();
  16786. _this.selectSLook();
  16787. _this.getPick();
  16788. _this.getSplitScreenData();
  16789. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16790. _this.setCTask();
  16791. }
  16792. if (_this.dialogVisibleGroup) {
  16793. _this.groupJson =
  16794. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16795. _this.taskCount
  16796. ].toolChoose[_this.toolindex].groupJson;
  16797. }
  16798. if (_this.tType == 4 || _this.ispzType == 4) {
  16799. _this.selectPz();
  16800. }
  16801. }, 5000);
  16802. _this.$nextTick(function () {
  16803. setTimeout(() => {
  16804. // var a =
  16805. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16806. // document.getElementsByClassName("vedioList")[0].style.height =
  16807. // a + "px";
  16808. // document.getElementsByClassName("navBox")[0].style.height =
  16809. // a - 40 + "px";
  16810. // if (_this.vedio[_this.taskCount].length > 0) {
  16811. // _this.vedioTime = [];
  16812. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16813. // _this.vedioTime[i] = document.getElementsByClassName(
  16814. // "vjs-duration-display"
  16815. // )[i].textContent;
  16816. // }
  16817. // }
  16818. }, 1000);
  16819. });
  16820. })
  16821. .catch((err) => {
  16822. loading.close();
  16823. console.error(err);
  16824. });
  16825. },
  16826. getCourseGroup(gindex) {
  16827. let params = {
  16828. cid: this.id,
  16829. classid: this.tcid ? this.tcid : "1",
  16830. };
  16831. this.ajax
  16832. .get(this.$store.state.api + "getCourseGroup", params)
  16833. .then((res) => {
  16834. if (res.data && res.data[0].length) {
  16835. if (!this.isGroup) {
  16836. let courseGroup = JSON.parse(res.data[0][0].group);
  16837. courseGroup.group = courseGroup.group.filter((el) => {
  16838. el.works = [];
  16839. return el;
  16840. });
  16841. if (courseGroup.isopen == 2) {
  16842. this.isGroup = false;
  16843. this.selectSWorks(gindex);
  16844. return;
  16845. }
  16846. this.courseGroup = courseGroup;
  16847. let groupPerson = res.data[1];
  16848. let group = JSON.parse(res.data[0][0].group).group;
  16849. let courseGroupStudent = {};
  16850. let courseGroupStudentUid = {};
  16851. for (var i = 0; i < group.length; i++) {
  16852. courseGroupStudent[group[i].id] = [];
  16853. courseGroupStudentUid[group[i].id] = [];
  16854. for (var j = 0; j < groupPerson.length; j++) {
  16855. if (groupPerson[j].groupCid == group[i].id) {
  16856. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16857. courseGroupStudentUid[group[i].id].push(
  16858. groupPerson[j].userid
  16859. );
  16860. }
  16861. }
  16862. }
  16863. this.courseGroupStudent = courseGroupStudent;
  16864. this.courseGroupStudentUid = courseGroupStudentUid;
  16865. }
  16866. if (this.courseGroup.isopen == 2) {
  16867. this.isGroup = false;
  16868. } else {
  16869. this.isGroup = true;
  16870. }
  16871. this.selectSWorks(gindex);
  16872. } else {
  16873. this.selectSWorks(gindex);
  16874. this.isGroup = false;
  16875. }
  16876. })
  16877. .catch((err) => {
  16878. // this.$message.error("网络不佳");
  16879. console.error(err);
  16880. });
  16881. },
  16882. setOperationTime() {
  16883. let _this = this;
  16884. if (_this.opertimer) {
  16885. clearInterval(_this.opertimer);
  16886. _this.opertimer = null;
  16887. }
  16888. _this.opertimer = setInterval(() => {
  16889. _this.setoTime("600");
  16890. }, 600000);
  16891. },
  16892. setoTime(time) {
  16893. let params = [
  16894. {
  16895. uid: this.userid,
  16896. cid: this.id,
  16897. type: "2",
  16898. time: time,
  16899. },
  16900. ];
  16901. this.ajax
  16902. .post(this.$store.state.api + "addOperationTimeT2", params)
  16903. .then((res) => {})
  16904. .catch((err) => {
  16905. console.error(err);
  16906. });
  16907. },
  16908. addPz(type, content) {
  16909. if (type == "1" && this.pzConText == "") {
  16910. this.$message.error("评论不能为空!");
  16911. return;
  16912. }
  16913. let params = [
  16914. {
  16915. cid: this.id,
  16916. uid: this.userid,
  16917. s: this.courseType,
  16918. t: this.taskCount,
  16919. c: type == "1" ? this.pzConText : content,
  16920. type: type,
  16921. },
  16922. ];
  16923. this.ajax
  16924. .post(this.$store.state.api + "addPz2", params)
  16925. .then((res) => {
  16926. this.$message({
  16927. message: "添加成功",
  16928. type: "success",
  16929. });
  16930. this.pzConText = "";
  16931. this.addPzDialog = false;
  16932. this.selectPz();
  16933. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16934. })
  16935. .catch((err) => {
  16936. this.$message.error("添加失败");
  16937. console.error(err);
  16938. });
  16939. },
  16940. setReplyIndex(id, i) {
  16941. this.replyIndex = i;
  16942. this.replyPid = id;
  16943. this.replyDialogVisible = true;
  16944. },
  16945. addHf() {
  16946. if (this.reply == "") {
  16947. this.$message.error("回复不能为空!");
  16948. return;
  16949. }
  16950. let params = [
  16951. {
  16952. cid: this.id,
  16953. uid: this.userid,
  16954. s: this.courseType,
  16955. t: this.taskCount,
  16956. type: "1",
  16957. ct: 2,
  16958. pid: this.replyPid,
  16959. c: this.reply,
  16960. },
  16961. ];
  16962. this.ajax
  16963. .post(this.$store.state.api + "addHf", params)
  16964. .then((res) => {
  16965. this.reply = "";
  16966. this.$message({
  16967. message: "回复成功",
  16968. type: "success",
  16969. });
  16970. this.replyDialogVisible = false;
  16971. this.selectPz();
  16972. })
  16973. .catch((err) => {
  16974. this.$message.error("回复失败");
  16975. console.error(err);
  16976. });
  16977. },
  16978. deletePz(id) {
  16979. this.$confirm("确定删除此评论吗?", "提示", {
  16980. confirmButtonText: "确定",
  16981. cancelButtonText: "取消",
  16982. type: "warning",
  16983. })
  16984. .then(() => {
  16985. let params = [
  16986. {
  16987. id: id,
  16988. },
  16989. ];
  16990. this.ajax
  16991. .post(this.$store.state.api + "deletePz", params)
  16992. .then((res) => {
  16993. this.$message({
  16994. message: "删除成功",
  16995. type: "success",
  16996. });
  16997. this.selectPz();
  16998. })
  16999. .catch((err) => {
  17000. this.$message.error("网络异常");
  17001. console.error(err);
  17002. });
  17003. })
  17004. .catch(() => {});
  17005. },
  17006. deleteReply(id) {
  17007. this.$confirm("确定删除此回复吗?", "提示", {
  17008. confirmButtonText: "确定",
  17009. cancelButtonText: "取消",
  17010. type: "warning",
  17011. })
  17012. .then(() => {
  17013. let params = [
  17014. {
  17015. id: id,
  17016. },
  17017. ];
  17018. this.ajax
  17019. .post(this.$store.state.api + "deleteReply", params)
  17020. .then((res) => {
  17021. this.$message({
  17022. message: "删除成功",
  17023. type: "success",
  17024. });
  17025. this.selectPz();
  17026. })
  17027. .catch((err) => {
  17028. this.$message.error("网络异常");
  17029. console.error(err);
  17030. });
  17031. })
  17032. .catch(() => {});
  17033. },
  17034. setPz() {
  17035. if (this.ispzType == 4) {
  17036. this.ispzType = 0;
  17037. this.pzDialog = false;
  17038. return;
  17039. }
  17040. this.ispzType = 4;
  17041. this.pzDialog = true;
  17042. this.selectPz();
  17043. },
  17044. selectPz() {
  17045. let params = {
  17046. cid: this.id,
  17047. s: this.courseType,
  17048. t: this.taskCount,
  17049. type: this.pzStype,
  17050. uid: this.userid,
  17051. };
  17052. this.ajax
  17053. .get(this.$store.state.api + "selectPzListType", params)
  17054. .then((res) => {
  17055. this.pzList = res.data[0];
  17056. var a = res.data[1];
  17057. for (var i = 0; i < a.length; i++) {
  17058. for (var j = 0; j < this.pzList.length; j++) {
  17059. if (!this.pzList[j].hfList) {
  17060. this.pzList[j].hfList = [];
  17061. }
  17062. if (a[i].pid == this.pzList[j].id) {
  17063. this.pzList[j].hfList.push(a[i]);
  17064. }
  17065. }
  17066. }
  17067. })
  17068. .catch((err) => {
  17069. console.error(err);
  17070. });
  17071. },
  17072. // selectHf() {
  17073. // let params = {
  17074. // cid: this.id,
  17075. // s: this.courseType,
  17076. // t: this.taskCount,
  17077. // };
  17078. // this.ajax
  17079. // .get(this.$store.state.api + "selectHfList", params)
  17080. // .then((res) => {
  17081. // var a = res.data[0];
  17082. // for (var i = 0; i < a.length; i++) {
  17083. // for (var j = 0; j < this.pzList.length; j++) {
  17084. // if (!this.pzList[i].hfList) {
  17085. // this.pzList[i].hfList = [];
  17086. // }
  17087. // if (a[i].pid == this.pzList[j].id) {
  17088. // this.pzList[i].hfList.push(a[i]);
  17089. // }
  17090. // }
  17091. // }
  17092. // })
  17093. // .catch((err) => {
  17094. // console.error(err);
  17095. // });
  17096. // },
  17097. updateSLook() {
  17098. let params = {
  17099. sopen: this.sIsOpen == false ? 1 : 2,
  17100. cid: this.id,
  17101. };
  17102. this.ajax
  17103. .get(this.$store.state.api + "updateCourseSLook", params)
  17104. .then((res) => {
  17105. if (this.sIsOpen == true) {
  17106. this.$message({
  17107. message: "权限设置成功",
  17108. type: "success",
  17109. });
  17110. } else {
  17111. this.$message({
  17112. message: "权限关闭成功",
  17113. type: "success",
  17114. });
  17115. }
  17116. })
  17117. .catch((err) => {
  17118. console.error(err);
  17119. });
  17120. },
  17121. updateFollow() {
  17122. let params = [
  17123. {
  17124. sopen: this.IsFollow == false ? 1 : 2,
  17125. cid: this.id,
  17126. },
  17127. ];
  17128. this.ajax
  17129. .post(this.$store.state.api + "updateCourseFollow", params)
  17130. .then((res) => {
  17131. if (this.IsFollow == true) {
  17132. this.$message({
  17133. message: "开启成功",
  17134. type: "success",
  17135. });
  17136. } else {
  17137. this.$message({
  17138. message: "关闭成功",
  17139. type: "success",
  17140. });
  17141. }
  17142. this.setCTask();
  17143. })
  17144. .catch((err) => {
  17145. console.error(err);
  17146. });
  17147. },
  17148. setCTask() {
  17149. let params = [
  17150. {
  17151. sopen: this.courseType + "-" + this.taskCount,
  17152. cid: this.id,
  17153. },
  17154. ];
  17155. this.ajax
  17156. .post(this.$store.state.api + "updateCourseFollowC", params)
  17157. .then((res) => {})
  17158. .catch((err) => {
  17159. console.error(err);
  17160. });
  17161. },
  17162. updateLookOpen() {
  17163. let params = [
  17164. {
  17165. sopen: this.IsLookOpen == false ? 1 : 2,
  17166. cid: this.id,
  17167. },
  17168. ];
  17169. this.ajax
  17170. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17171. .then((res) => {
  17172. if (this.IsLookOpen == true) {
  17173. // if (this.courseType != 0 && this.taskCount != 0) {
  17174. // this.openTask(0, 0, "0-0");
  17175. // }
  17176. this.$message({
  17177. message: "权限设置成功",
  17178. type: "success",
  17179. });
  17180. } else {
  17181. this.$message({
  17182. message: "权限关闭成功",
  17183. type: "success",
  17184. });
  17185. }
  17186. this.getCourseState(2);
  17187. })
  17188. .catch((err) => {
  17189. console.error(err);
  17190. });
  17191. },
  17192. selectSLook() {
  17193. let params = {
  17194. cid: this.id,
  17195. };
  17196. this.ajax
  17197. .get(this.$store.state.api + "selectCourseSLook", params)
  17198. .then((res) => {
  17199. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17200. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17201. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17202. if (!this.IsLookOpen) {
  17203. this.setNavList();
  17204. } else {
  17205. this.getCourseState(1);
  17206. }
  17207. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  17208. this.setContent2(false);
  17209. let _followC = res.data[0][0].followC.split("-");
  17210. if (
  17211. this.courseType != _followC[0] ||
  17212. this.taskCount != _followC[1]
  17213. ) {
  17214. this.navList[this.courseType].isOpen = false;
  17215. this.courseType = _followC[0];
  17216. this.navList[this.courseType].isOpen = true;
  17217. this.taskCount = parseInt(_followC[1]);
  17218. this.navId = res.data[0][0].followC;
  17219. document.scrollingElement.scrollTop = 0;
  17220. this.getCourseDetail(2);
  17221. }
  17222. }
  17223. })
  17224. .catch((err) => {
  17225. console.error(err);
  17226. });
  17227. },
  17228. setNavList() {
  17229. if (this.navList.length == 0) {
  17230. this.navList = [];
  17231. var copyList = [];
  17232. for (var l = 0; l < this.chapInfoList.length; l++) {
  17233. var q = this.chapInfoList[l].dyName;
  17234. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17235. var e;
  17236. copyList.push({
  17237. dyName: q,
  17238. isOpen: l === 0 ? true : false,
  17239. task: [],
  17240. });
  17241. for (var r = 0; r < w.length; r++) {
  17242. e = w[r].task;
  17243. if (this.chapInfoList[l].easy == 1) {
  17244. copyList[l].task.push({
  17245. taskName: q,
  17246. id: l + "-" + r,
  17247. isLook: w[r].isLook,
  17248. isOpen: r === 0 ? true : false,
  17249. tool: [],
  17250. });
  17251. } else {
  17252. copyList[l].task.push({
  17253. taskName: e,
  17254. id: l + "-" + r,
  17255. isLook: w[r].isLook,
  17256. isOpen: r === 0 ? true : false,
  17257. tool: [],
  17258. });
  17259. }
  17260. var t = w[r].toolChoose;
  17261. for (var k = 0; k < t.length; k++) {
  17262. var tool = t[k].tool[0];
  17263. copyList[l].task[r].tool.push({
  17264. tool: tool,
  17265. isTool: false,
  17266. });
  17267. }
  17268. // this.navId = this.navId ? this.navId : l + "-" + r;
  17269. // this.navId = l + "-" + r;
  17270. }
  17271. }
  17272. this.navList = copyList;
  17273. this.navList[0].isOpen = false;
  17274. this.navList[this.courseType].isOpen = true;
  17275. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17276. } else {
  17277. this.setNavList2();
  17278. }
  17279. },
  17280. setNavList2() {
  17281. for (var l = 0; l < this.chapInfoList.length; l++) {
  17282. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17283. for (var r = 0; r < w.length; r++) {
  17284. this.navList[l].task[r].isLook = w[r].isLook;
  17285. }
  17286. }
  17287. if (
  17288. this.IsLookOpen &&
  17289. !this.navList[this.courseType].task[this.taskCount].isLook
  17290. ) {
  17291. this.openTask(0, 0, "0-0");
  17292. }
  17293. this.$forceUpdate();
  17294. },
  17295. getCourseState(type) {
  17296. let params = {
  17297. cid: this.id,
  17298. };
  17299. this.ajax
  17300. .get(this.$store.state.api + "getCourseState", params)
  17301. .then((res) => {
  17302. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17303. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17304. this.setNavList();
  17305. this.$forceUpdate();
  17306. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17307. this.addCourseState(2);
  17308. } else {
  17309. this.addCourseState(1);
  17310. }
  17311. })
  17312. .catch((err) => {
  17313. console.error(err);
  17314. });
  17315. },
  17316. addCourseState(type) {
  17317. let _state = this.chapInfoList;
  17318. // this.courseType this.taskCount
  17319. if (type == 1 || type == 2) {
  17320. for (var i = 0; i < _state.length; i++) {
  17321. let el = _state[i].chapterInfo[0].taskJson;
  17322. for (var j = 0; j < el.length; j++) {
  17323. // if (i == 0 && j == 0) {
  17324. // el[j].isLook = true;
  17325. // } else {
  17326. // el[j].isLook = false;
  17327. // }
  17328. if (
  17329. this.courseType > i ||
  17330. (this.courseType == i && this.taskCount + 1 > j)
  17331. ) {
  17332. el[j].isLook = true;
  17333. } else {
  17334. el[j].isLook = false;
  17335. }
  17336. }
  17337. }
  17338. }
  17339. let params = [
  17340. {
  17341. cid: this.id,
  17342. state: JSON.stringify(_state),
  17343. },
  17344. ];
  17345. this.ajax
  17346. .post(
  17347. this.$store.state.api +
  17348. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17349. params
  17350. )
  17351. .then((res) => {
  17352. if (this.IsLookOpen) {
  17353. this.setNavList();
  17354. }
  17355. if (type == 3 && type == 2) {
  17356. this.getCourseState(1);
  17357. }
  17358. })
  17359. .catch((err) => {
  17360. console.error(err);
  17361. });
  17362. },
  17363. getHomeWork() {
  17364. let params = {
  17365. cid: this.id,
  17366. stage: this.courseType,
  17367. task: this.taskCount,
  17368. uid: this.userid,
  17369. };
  17370. this.ajax
  17371. .get(this.$store.state.api + "selectWork", params)
  17372. .then((res) => {
  17373. if (res.data[0].length > 0) {
  17374. this.studyJuri = JSON.parse(res.data[0][0].content);
  17375. this.isNoHomeWork = true;
  17376. }
  17377. })
  17378. .catch((err) => {
  17379. console.error(err);
  17380. });
  17381. },
  17382. isAssetTypeAnImage(ext) {
  17383. return (
  17384. [
  17385. "png",
  17386. "jpg",
  17387. "jpeg",
  17388. "bmp",
  17389. "gif",
  17390. "webp",
  17391. "psd",
  17392. "svg",
  17393. "tiff",
  17394. ].indexOf(ext) !== -1
  17395. );
  17396. },
  17397. switchVideo(media) {
  17398. this.playerO = {};
  17399. this.playerOptions.poster = "";
  17400. this.playerOptions.sources[0].src = media;
  17401. this.playerO = this.playerOptions;
  17402. },
  17403. onPlayerPlay() {},
  17404. onPlayerTimeupdate(player) {
  17405. let gklog = player.cache_.currentTime; //当前播放的秒数
  17406. let a = player.cache_.duration; //视频的总时长
  17407. let gklog2 = parseInt(gklog);
  17408. // if(gklog2 == '3'){
  17409. // player.pause()
  17410. // setTimeout(()=>{
  17411. // player.currentTime(gklog2+1)
  17412. // player.play()
  17413. // },1000)
  17414. // }
  17415. console.log(" onPlayerTimeupdate!", gklog);
  17416. console.log(" onPlayerTimeupdate!", gklog2);
  17417. },
  17418. lookVedio(u, i) {
  17419. this.isClickNav = "";
  17420. // this.playerOptions.sources[0].src = u;
  17421. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17422. d.sources[0].src = u;
  17423. this.playerO[this.taskCount] = d;
  17424. this.showType = 0;
  17425. // this.isClickNav = "video" + i;
  17426. this.isClickNav = i;
  17427. this.$forceUpdate();
  17428. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17429. },
  17430. lookText(i, t) {
  17431. this.isClickNav = "";
  17432. // this.text = this.textList[i][t];
  17433. this.text = this.vChapterData[i][t];
  17434. // this.dialogVisible1 = true;
  17435. this.showType = 1;
  17436. // this.isClickNav = "text" + t;
  17437. this.isClickNav = t;
  17438. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17439. },
  17440. lookTools(i, t) {
  17441. this.chapTools = this.chapToolList[i][t];
  17442. this.dialogVisible2 = true;
  17443. },
  17444. async openFile(f,w) {
  17445. this.pptImgUrl = "";
  17446. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17447. if (
  17448. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17449. -1
  17450. ) {
  17451. let _uuurl = await this.checkLink(f);
  17452. this.pptImgUrl =
  17453. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17454. this.showPDF = false;
  17455. this.dialogVisible3 = true;
  17456. } else if (
  17457. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17458. ) {
  17459. this.pptImgUrl = f;
  17460. this.showPDF = true;
  17461. this.dialogVisible3 = true;
  17462. }
  17463. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17464. },
  17465. openTable(f) {
  17466. this.tableJson = JSON.parse(f.works);
  17467. this.dialogVisibleTable2 = true;
  17468. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17469. },
  17470. openWord(f) {
  17471. this.tableJson = JSON.parse(f.works);
  17472. this.dialogVisibleTable3 = true;
  17473. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17474. },
  17475. doUrl(url, i) {
  17476. this.isClickNav = "";
  17477. this.pptImgUrl1 = "";
  17478. this.showType = 2;
  17479. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17480. url = "https://" + url;
  17481. }
  17482. this.pptImgUrl1 = "";
  17483. setTimeout(() => {
  17484. this.pptImgUrl1 = url;
  17485. }, 500);
  17486. // this.isClickNav = "line" + i;
  17487. this.isClickNav = i;
  17488. this.$forceUpdate();
  17489. },
  17490. checkPhoto(f, i) {
  17491. this.showType = 4;
  17492. this.pptImgUrl1 = f.url;
  17493. this.isClickNav = i;
  17494. this.$forceUpdate();
  17495. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17496. },
  17497. async downFile(f, i) {
  17498. this.isClickNav = "";
  17499. this.pptImgUrl1 = "";
  17500. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17501. if (
  17502. a.indexOf(
  17503. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17504. ) != -1
  17505. ) {
  17506. let _uuurl = await this.checkLink(f.url);
  17507. this.pptImgUrl1 =
  17508. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17509. // this.dialogVisible3 = true;
  17510. this.showType = 2;
  17511. } else if (
  17512. this.isAssetTypeAnImage(
  17513. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17514. )
  17515. ) {
  17516. this.showType = 4;
  17517. this.pptImgUrl1 = f.url;
  17518. } else if (
  17519. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17520. "PDF"
  17521. ) {
  17522. this.pptImgUrl1 = f.url;
  17523. // this.dialogVisible3 = true;
  17524. this.showType = 3;
  17525. } else {
  17526. window.open(this.file[i].url);
  17527. }
  17528. // this.isClickNav = "word" + i;
  17529. this.isClickNav = i;
  17530. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17531. },
  17532. downFileList(i) {
  17533. window.open(this.noImgList[i].url);
  17534. },
  17535. openAddWork() {
  17536. this.dialogVisible = true;
  17537. },
  17538. addBzWorks() {
  17539. let params = [
  17540. {
  17541. uid: this.userid,
  17542. cid: this.id,
  17543. stage: this.courseType,
  17544. task: this.taskCount,
  17545. tool: this.toolindex,
  17546. content: JSON.stringify(this.eScore),
  17547. type: 6,
  17548. },
  17549. ];
  17550. this.ajax
  17551. .post(this.$store.state.api + "addCourseWorks", params)
  17552. .then((res) => {
  17553. this.$message({
  17554. message: "提交成功",
  17555. type: "success",
  17556. });
  17557. this.eScore = { eBzText: "", eStar: [] };
  17558. this.studentEvalDialogVisible = false;
  17559. this.selectSWorks();
  17560. })
  17561. .catch((err) => {
  17562. this.$message.error("提交失败");
  17563. console.error(err);
  17564. });
  17565. },
  17566. addBzWorksTeacher() {
  17567. let params = [
  17568. {
  17569. uid: this.sStudent.userid,
  17570. cid: this.id,
  17571. stage: this.courseType,
  17572. task: this.taskCount,
  17573. tool: this.toolindex,
  17574. content: JSON.stringify(this.eScore),
  17575. type: 6,
  17576. },
  17577. ];
  17578. this.ajax
  17579. .post(this.$store.state.api + "addCourseWorks", params)
  17580. .then((res) => {
  17581. this.$message({
  17582. message: "提交成功",
  17583. type: "success",
  17584. });
  17585. this.eScore = { eBzText: "", eStar: [] };
  17586. this.studentEvalDialogVisibleTeacher = false;
  17587. this.selectSWorks();
  17588. })
  17589. .catch((err) => {
  17590. this.$message.error("提交失败");
  17591. console.error(err);
  17592. });
  17593. },
  17594. addStudentAsk() {
  17595. if (!this.radio.length) {
  17596. this.$message.error("请选择选项");
  17597. return;
  17598. }
  17599. for (var i = 0; i < this.askJson.askCount; i++) {
  17600. if (
  17601. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17602. (this.radio[i] !== 0 && !this.radio[i])
  17603. ) {
  17604. this.$message.error("请选择选项");
  17605. return;
  17606. }
  17607. }
  17608. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17609. let params = [
  17610. {
  17611. uid: this.userid,
  17612. cid: this.id,
  17613. stage: this.courseType,
  17614. task: this.taskCount,
  17615. tool: this.toolindex,
  17616. content: JSON.stringify(this.askList),
  17617. type: 2,
  17618. },
  17619. ];
  17620. this.ajax
  17621. .post(this.$store.state.api + "addCourseWorks", params)
  17622. .then((res) => {
  17623. this.$message({
  17624. message: "提交成功",
  17625. type: "success",
  17626. });
  17627. this.askList = [];
  17628. this.dialogVisible5 = false;
  17629. this.selectStudent();
  17630. this.selectSWorks();
  17631. this.selectSLook();
  17632. })
  17633. .catch((err) => {
  17634. this.$message.error("提交失败");
  17635. console.error(err);
  17636. });
  17637. },
  17638. addStudentAskTeacher() {
  17639. if (!this.radio.length) {
  17640. this.$message.error("请选择选项");
  17641. return;
  17642. }
  17643. for (var i = 0; i < this.askJson.askCount; i++) {
  17644. if (
  17645. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17646. (this.radio[i] !== 0 && !this.radio[i])
  17647. ) {
  17648. this.$message.error("请选择选项");
  17649. return;
  17650. }
  17651. }
  17652. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17653. let params = [
  17654. {
  17655. uid: this.sStudent.userid,
  17656. cid: this.id,
  17657. stage: this.courseType,
  17658. task: this.taskCount,
  17659. tool: this.toolindex,
  17660. content: JSON.stringify(this.askList),
  17661. type: 2,
  17662. },
  17663. ];
  17664. this.ajax
  17665. .post(this.$store.state.api + "addCourseWorks", params)
  17666. .then((res) => {
  17667. this.$message({
  17668. message: "提交成功",
  17669. type: "success",
  17670. });
  17671. this.askList = [];
  17672. this.dialogVisible5Teacher = false;
  17673. this.selectStudent();
  17674. this.selectSWorks();
  17675. this.selectSLook();
  17676. })
  17677. .catch((err) => {
  17678. this.$message.error("提交失败");
  17679. console.error(err);
  17680. });
  17681. },
  17682. addStudentTest() {
  17683. if (!this.radio.length) {
  17684. this.$message.error("请选择选项");
  17685. return;
  17686. }
  17687. for (var i = 0; i < this.testJson.testCount; i++) {
  17688. if (
  17689. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17690. (this.radio[i] !== 0 && !this.radio[i])
  17691. ) {
  17692. this.$message.error("请选择选项");
  17693. return;
  17694. }
  17695. }
  17696. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17697. let params = [
  17698. {
  17699. uid: this.userid,
  17700. cid: this.id,
  17701. stage: this.courseType,
  17702. task: this.taskCount,
  17703. tool: this.toolindex,
  17704. content: JSON.stringify(this.askList),
  17705. type: 8,
  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.askList = [];
  17716. this.dialogVisibleChoice = false;
  17717. this.selectStudent();
  17718. this.selectSWorks();
  17719. this.selectSLook();
  17720. })
  17721. .catch((err) => {
  17722. this.$message.error("提交失败");
  17723. console.error(err);
  17724. });
  17725. },
  17726. addStudentTestTeacher() {
  17727. if (!this.radio.length) {
  17728. this.$message.error("请选择选项");
  17729. return;
  17730. }
  17731. for (var i = 0; i < this.testJson.testCount; i++) {
  17732. if (
  17733. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17734. (this.radio[i] !== 0 && !this.radio[i])
  17735. ) {
  17736. this.$message.error("请选择选项");
  17737. return;
  17738. }
  17739. }
  17740. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17741. let params = [
  17742. {
  17743. uid: this.sStudent.userid,
  17744. cid: this.id,
  17745. stage: this.courseType,
  17746. task: this.taskCount,
  17747. tool: this.toolindex,
  17748. content: JSON.stringify(this.askList),
  17749. type: 8,
  17750. },
  17751. ];
  17752. this.ajax
  17753. .post(this.$store.state.api + "addCourseWorks", params)
  17754. .then((res) => {
  17755. this.$message({
  17756. message: "提交成功",
  17757. type: "success",
  17758. });
  17759. this.askList = [];
  17760. this.dialogVisibleChoiceTeacher = false;
  17761. this.selectStudent();
  17762. this.selectSWorks();
  17763. this.selectSLook();
  17764. })
  17765. .catch((err) => {
  17766. this.$message.error("提交失败");
  17767. console.error(err);
  17768. });
  17769. },
  17770. addWork() {
  17771. if (this.studyJuri[0].content == "") {
  17772. this.$message.error("请将信息填写完整");
  17773. return;
  17774. } else if (this.studyJuri[0].cover.length == 0) {
  17775. this.$message.error("请将信息填写完整");
  17776. return;
  17777. } else if (this.studyJuri[0].upVedio.length == 0) {
  17778. this.$message.error("请将信息填写完整");
  17779. return;
  17780. }
  17781. if (this.isNoHomeWork) {
  17782. this.$confirm(
  17783. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17784. "提示",
  17785. {
  17786. confirmButtonText: "确定",
  17787. cancelButtonText: "取消",
  17788. type: "warning",
  17789. }
  17790. )
  17791. .then(() => {
  17792. let params = [
  17793. {
  17794. uid: this.userid,
  17795. cid: this.id,
  17796. stage: this.courseType,
  17797. task: this.taskCount,
  17798. content: JSON.stringify(this.studyJuri),
  17799. },
  17800. ];
  17801. this.ajax
  17802. .post(this.$store.state.api + "addWorks", params)
  17803. .then((res) => {
  17804. this.$message({
  17805. message: "提交成功",
  17806. type: "success",
  17807. });
  17808. this.isNoHomeWork = true;
  17809. this.dialogVisible = false;
  17810. })
  17811. .catch((err) => {
  17812. this.$message.error("提交失败");
  17813. console.error(err);
  17814. });
  17815. })
  17816. .catch(() => {});
  17817. } else {
  17818. let params = [
  17819. {
  17820. uid: this.userid,
  17821. cid: this.id,
  17822. stage: this.courseType,
  17823. task: this.taskCount,
  17824. content: JSON.stringify(this.studyJuri),
  17825. },
  17826. ];
  17827. this.ajax
  17828. .post(this.$store.state.api + "addWorks", params)
  17829. .then((res) => {
  17830. this.$message({
  17831. message: "提交成功",
  17832. type: "success",
  17833. });
  17834. this.isNoHomeWork = true;
  17835. this.dialogVisible = false;
  17836. })
  17837. .catch((err) => {
  17838. this.$message.error("提交失败");
  17839. console.error(err);
  17840. });
  17841. }
  17842. },
  17843. selectCount() {
  17844. let params = {
  17845. cid: this.id,
  17846. chid: this.courseType,
  17847. uid: this.userid,
  17848. };
  17849. this.ajax
  17850. .get(this.$store.state.api + "selectToolsCount", params)
  17851. .then((res) => {
  17852. for (var i = 0; i < res.data[0].length; i++) {
  17853. if (res.data[0][i].tools == 1) {
  17854. this.wbCount = res.data[0][i].count;
  17855. } else if (res.data[0][i].tools == 2) {
  17856. this.wordCount = res.data[0][i].count;
  17857. } else if (res.data[0][i].tools == 3) {
  17858. this.mindCount = res.data[0][i].count;
  17859. } else if (res.data[0][i].tools == 4) {
  17860. this.askCount = res.data[0][i].count;
  17861. } else if (res.data[0][i].tools == 6) {
  17862. this.noteCount = res.data[0][i].count;
  17863. } else if (res.data[0][i].tools == 7) {
  17864. this.mindNetWorkCount = res.data[0][i].count;
  17865. } else if (res.data[0][i].tools == 8) {
  17866. this.libraryCount = res.data[0][i].count;
  17867. } else if (res.data[0][i].tools == 16) {
  17868. this.workCount = res.data[0][i].count;
  17869. } else if (res.data[0][i].tools == 10) {
  17870. this.timeCount = res.data[0][i].count;
  17871. } else if (res.data[0][i].tools == 15) {
  17872. this.answerCount = res.data[0][i].count;
  17873. } else if (res.data[0][i].tools == 18) {
  17874. this.trainCount = res.data[0][i].count;
  17875. }
  17876. }
  17877. })
  17878. .catch((err) => {
  17879. console.error(err);
  17880. });
  17881. },
  17882. openTools(t, i, index, c, sName,id) {
  17883. var z = JSON.parse(c);
  17884. this.noteName = sName;
  17885. if (t == 4) {
  17886. this.radio = [];
  17887. this.isAnswer = false;
  17888. let b = z[0].anwer;
  17889. this.radio = b;
  17890. this.askJson = z[0].askJson;
  17891. this.isAnswer = true;
  17892. this.dialogVisible5 = true;
  17893. } else if (t == 45) {
  17894. this.radio = [];
  17895. this.isAnswer = false;
  17896. let b = z[0].anwer;
  17897. this.radio = b;
  17898. this.testJson = z[0].testJson;
  17899. this.isAnswer = true;
  17900. this.dialogVisibleChoice = true;
  17901. }else if(t == 69){
  17902. this.oldEnglishJson1 = {}
  17903. this.oldEnglishJson = {}
  17904. this.englishList1 = {}
  17905. this.newEngIndex = -1;
  17906. this.isNoUserid = false;
  17907. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17908. .toolChoose[i].englishList;
  17909. this.oldEnglishJson = z;
  17910. this.engWid = id;
  17911. this.newEnglishList = { engTitle:"",engText:"" }
  17912. this.newEnglishList1 = []
  17913. this.selectEngC(id,z);
  17914. }else if(t == 62){
  17915. this.videoType = 1;
  17916. this.videoJson = {};
  17917. this.videoJson = JSON.parse(c);
  17918. // this.videoJson =
  17919. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17920. // index
  17921. // ].toolChoose[i].videoJson;
  17922. this.dialogVisibleVideo = true;
  17923. //this.dialog
  17924. }
  17925. // else if (t == 15) {
  17926. // this.answerQ = "";
  17927. // this.questionAnswer = "";
  17928. // this.answerQ = z[0].answerTitle;
  17929. // this.questionAnswer = z[0].answer;
  17930. // this.answerDialogVisible = true;
  17931. // }
  17932. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17933. },
  17934. fastText(p, t) {
  17935. if (t == 1) {
  17936. this.commentText += p;
  17937. } else {
  17938. this.eScore.eBzText += p;
  17939. }
  17940. },
  17941. addTools(t, i, index) {
  17942. var a = 0;
  17943. // this.taskCount = index;
  17944. this.toolindex = i;
  17945. if (t == 1) {
  17946. if (this.wbCount > 0) {
  17947. this.updateCount(this.wbCount, t);
  17948. } else {
  17949. this.wbCount++;
  17950. a = this.wbCount;
  17951. this.toolsCount(a, t);
  17952. }
  17953. window.parent.postMessage(
  17954. {
  17955. tools: "1",
  17956. cid: this.id,
  17957. stage: this.courseType,
  17958. task: this.taskCount,
  17959. tool: i,
  17960. },
  17961. "*"
  17962. );
  17963. } else if (t == 2) {
  17964. if (this.wordCount > 0) {
  17965. this.updateCount(this.wordCount, t);
  17966. } else {
  17967. this.wordCount++;
  17968. a = this.wordCount;
  17969. this.toolsCount(a, t);
  17970. }
  17971. window.parent.postMessage({ tools: "2" }, "*");
  17972. } else if (t == 3) {
  17973. if (this.mindCount > 0) {
  17974. this.updateCount(this.mindCount, t);
  17975. } else {
  17976. this.mindCount++;
  17977. a = this.mindCount;
  17978. this.toolsCount(a, t);
  17979. }
  17980. window.parent.postMessage(
  17981. {
  17982. tools: "3",
  17983. cid: this.id,
  17984. stage: this.courseType,
  17985. task: this.taskCount,
  17986. tool: i,
  17987. },
  17988. "*"
  17989. );
  17990. } else if (t == 4) {
  17991. this.radio = [];
  17992. this.noteName = "";
  17993. this.isAnswer = false;
  17994. if (this.askCount > 0) {
  17995. this.updateCount(this.askCount, t);
  17996. } else {
  17997. this.askCount++;
  17998. a = this.askCount;
  17999. this.toolsCount(a, t);
  18000. }
  18001. if (!this.dialogVisible2) {
  18002. this.askJson.askJson =
  18003. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18004. index
  18005. ].toolChoose[i].askJson;
  18006. this.askJson.askTitle =
  18007. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18008. index
  18009. ].toolChoose[i].askTitle;
  18010. this.askJson.askCount =
  18011. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18012. index
  18013. ].toolChoose[i].askCount;
  18014. } else {
  18015. this.askJson.askJson = this.chapTools.askJson.askJson;
  18016. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18017. this.askJson.askCount = this.chapTools.askJson.askCount;
  18018. }
  18019. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18020. if (this.askJson.askJson[k].type == "2") {
  18021. this.radio.push([]);
  18022. } else {
  18023. this.radio.push("");
  18024. }
  18025. }
  18026. this.dialogVisible5 = true;
  18027. // window.parent.postMessage({ tools: "4" }, "*");
  18028. } else if (t == 45) {
  18029. this.noteName = "";
  18030. this.radio = [];
  18031. this.isAnswer = false;
  18032. if (this.askCount > 0) {
  18033. this.updateCount(this.askCount, t);
  18034. } else {
  18035. this.askCount++;
  18036. a = this.askCount;
  18037. this.toolsCount(a, t);
  18038. }
  18039. this.testJson =
  18040. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18041. index
  18042. ].toolChoose[i].testJson;
  18043. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18044. if (this.testJson.testJson[k].type == "2") {
  18045. this.radio.push([]);
  18046. } else {
  18047. this.radio.push("");
  18048. }
  18049. }
  18050. this.dialogVisibleChoice = true;
  18051. // window.parent.postMessage({ tools: "4" }, "*");
  18052. } else if (t == 5) {
  18053. if (this.scoreCount > 0) {
  18054. this.updateCount(this.scoreCount, t);
  18055. } else {
  18056. this.scoreCount++;
  18057. a = this.scoreCount;
  18058. this.toolsCount(a, t);
  18059. }
  18060. this.dialogVisible4 = true;
  18061. // window.parent.postMessage({ tools: "5" }, "*");
  18062. } else if (t == 6) {
  18063. if (this.noteCount > 0) {
  18064. this.updateCount(this.noteCount, t);
  18065. } else {
  18066. this.noteCount++;
  18067. a = this.noteCount;
  18068. this.toolsCount(a, t);
  18069. }
  18070. window.parent.postMessage(
  18071. {
  18072. tools: "6",
  18073. cid: this.id,
  18074. stage: this.courseType,
  18075. task: this.taskCount,
  18076. tool: i,
  18077. },
  18078. "*"
  18079. );
  18080. } else if (t == 7) {
  18081. if (this.mindNetWorkCount > 0) {
  18082. this.updateCount(this.mindNetWorkCount, t);
  18083. } else {
  18084. this.mindNetWorkCount++;
  18085. a = this.mindNetWorkCount;
  18086. this.toolsCount(a, t);
  18087. }
  18088. window.parent.postMessage(
  18089. {
  18090. tools: "7",
  18091. cid: this.id,
  18092. stage: this.courseType,
  18093. task: this.taskCount,
  18094. tool: i,
  18095. },
  18096. "*"
  18097. );
  18098. } else if (t == 16) {
  18099. if (this.workCount > 0) {
  18100. this.updateCount(this.workCount, t);
  18101. } else {
  18102. this.workCount++;
  18103. a = this.workCount;
  18104. this.toolsCount(a, t);
  18105. }
  18106. this.dialogVisible = true;
  18107. } else if (t == 50) {
  18108. if (this.tType == 2) {
  18109. this.$message.error("不支持学生使用");
  18110. return;
  18111. }
  18112. this.plworkFile = [];
  18113. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18114. if (!this.uploadCid) {
  18115. this.$message.error(
  18116. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18117. );
  18118. return;
  18119. }
  18120. // this.uploadCid =
  18121. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18122. // index
  18123. // ].toolChoose[i].uploadJson[0];
  18124. this.selectUploadStudent(2);
  18125. } else if (t == 8) {
  18126. if (this.libraryCount > 0) {
  18127. this.updateCount(this.libraryCount, t);
  18128. } else {
  18129. this.libraryCount++;
  18130. a = this.libraryCount;
  18131. this.toolsCount(a, t);
  18132. }
  18133. window.parent.postMessage({ tools: "8" }, "*");
  18134. } else if (t == 17) {
  18135. if (this.libraryCount > 0) {
  18136. this.updateCount(this.libraryCount, t);
  18137. } else {
  18138. this.libraryCount++;
  18139. a = this.libraryCount;
  18140. this.toolsCount(a, t);
  18141. }
  18142. window.parent.postMessage({ tools: "17" }, "*");
  18143. } else if (t == 18) {
  18144. if (this.trainCount > 0) {
  18145. this.updateCount(this.trainCount, t);
  18146. } else {
  18147. this.trainCount++;
  18148. a = this.trainCount;
  18149. this.toolsCount(a, t);
  18150. }
  18151. window.parent.postMessage({ tools: "18" }, "*");
  18152. } else if (t == 10) {
  18153. if (this.timeCount > 0) {
  18154. this.updateCount(this.timeCount, t);
  18155. } else {
  18156. this.timeCount++;
  18157. a = this.timeCount;
  18158. this.toolsCount(a, t);
  18159. }
  18160. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18161. .taskJson[index].toolChoose[i].preTime
  18162. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18163. .toolChoose[i].preTime
  18164. : "";
  18165. this.timeDialogVisible = true;
  18166. } else if (t == 15) {
  18167. this.answerQ = "";
  18168. this.questionAnswer = "";
  18169. if (this.answerCount > 0) {
  18170. this.updateCount(this.answerCount, t);
  18171. } else {
  18172. this.answerCount++;
  18173. a = this.answerCount;
  18174. this.toolsCount(a, t);
  18175. }
  18176. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18177. .taskJson[index].toolChoose[i].answerQ
  18178. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18179. .toolChoose[i].answerQ
  18180. : "";
  18181. this.answerDialogVisible = true;
  18182. } else if (t == 21) {
  18183. window.parent.postMessage({ tools: "21" }, "*");
  18184. } else if (t == 22) {
  18185. window.parent.postMessage({ tools: "22" }, "*");
  18186. } else if (t == 23) {
  18187. window.parent.postMessage({ tools: "23" }, "*");
  18188. } else if (t == 24) {
  18189. window.parent.postMessage({ tools: "24" }, "*");
  18190. } else if (t == 25) {
  18191. window.parent.postMessage({ tools: "25" }, "*");
  18192. } else if (t == 31) {
  18193. window.parent.postMessage({ tools: "31" }, "*");
  18194. } else if (t == 28) {
  18195. window.parent.postMessage({ tools: "28" }, "*");
  18196. } else if (t == 37) {
  18197. window.parent.postMessage({ tools: "37" }, "*");
  18198. } else if (t == 38) {
  18199. window.parent.postMessage({ tools: "38" }, "*");
  18200. } else if (t == 39) {
  18201. window.parent.postMessage({ tools: "39" }, "*");
  18202. } else if (t == 32) {
  18203. window.parent.postMessage({ tools: "32" }, "*");
  18204. } else if (t == 66) {
  18205. window.parent.postMessage({ tools: "66" }, "*");
  18206. } else if (t == 67) {
  18207. window.parent.postMessage({ tools: "67" }, "*");
  18208. } else if (t == 68) {
  18209. window.parent.postMessage({ tools: "68" }, "*");
  18210. } else if (t == 57) {
  18211. // window.parent.postMessage({ tools: "57" }, "*");
  18212. window.parent.postMessage(
  18213. {
  18214. tools: "57u",
  18215. cid: this.id,
  18216. stage: this.courseType,
  18217. task: this.taskCount,
  18218. tool: i,
  18219. },
  18220. "*"
  18221. );
  18222. } else if (t == 58) {
  18223. window.parent.postMessage({ tools: "58" }, "*");
  18224. } else if (t == 59) {
  18225. window.parent.postMessage({ tools: "59" }, "*");
  18226. } else if (t == 60) {
  18227. window.parent.postMessage({ tools: "60" }, "*");
  18228. } else if (t == 61) {
  18229. window.parent.postMessage({ tools: "61" }, "*");
  18230. } else if (t == 63) {
  18231. window.parent.postMessage({ tools: "63" }, "*");
  18232. } else if (t == 71) {
  18233. window.parent.postMessage({ tools: "71" }, "*");
  18234. } else if (t == 69) {
  18235. if (this.worksStudent[i].length) {
  18236. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18237. if (this.userid == this.worksStudent[i][k].userid) {
  18238. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18239. break;
  18240. } else {
  18241. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18242. }
  18243. }
  18244. } else {
  18245. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18246. }
  18247. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18248. .taskJson[index].toolChoose[i].englishList
  18249. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18250. .toolChoose[i].englishList
  18251. : {};
  18252. this.englishToolIndex = i;
  18253. this.myAnList = this.myAnswerList1;
  18254. this.engDialogVisible = true;
  18255. } else if (t == 70) {
  18256. if (this.worksStudent[i].length) {
  18257. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18258. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18259. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18260. break;
  18261. } else {
  18262. this.englishVoiceJsonWork = [];
  18263. }
  18264. }
  18265. } else {
  18266. this.englishVoiceJsonWork = [];
  18267. }
  18268. let englishVoiceJson = {}
  18269. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18270. .taskJson[index].toolChoose[i].englishVoiceJson
  18271. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18272. .toolChoose[i].englishVoiceJson
  18273. : {};
  18274. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18275. this.EnglishVoiceDialog = true;
  18276. } else if (t == 65) {
  18277. if (this.tType == 2) {
  18278. this.$message.error("不支持学生使用");
  18279. return;
  18280. }
  18281. this.uploadCid = this.tcid;
  18282. if (!this.uploadCid) {
  18283. this.$message.error(
  18284. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18285. );
  18286. return;
  18287. }
  18288. this.selectPickStudent();
  18289. } else if (t == 26) {
  18290. window.parent.postMessage(
  18291. {
  18292. tools: "26",
  18293. cid: this.id,
  18294. stage: this.courseType,
  18295. task: this.taskCount,
  18296. tool: i,
  18297. },
  18298. "*"
  18299. );
  18300. } else if (t == 40) {
  18301. if (this.evalCount > 0) {
  18302. this.updateCount(this.evalCount, t);
  18303. } else {
  18304. this.evalCount++;
  18305. a = this.evalCount;
  18306. this.toolsCount(a, t);
  18307. }
  18308. this.eScore = { eBzText: "", eStar: [] };
  18309. if (this.worksStudent[i].length) {
  18310. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18311. if (this.userid == this.worksStudent[i][k].userid) {
  18312. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18313. this.rateJson =
  18314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18315. index
  18316. ].toolChoose[i].rateJson;
  18317. break;
  18318. } else {
  18319. this.rateJson =
  18320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18321. index
  18322. ].toolChoose[i].rateJson;
  18323. }
  18324. }
  18325. } else {
  18326. this.rateJson =
  18327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18328. index
  18329. ].toolChoose[i].rateJson;
  18330. }
  18331. this.isStar = false;
  18332. this.studentEvalDialogVisible = true;
  18333. } else if (t == 41) {
  18334. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18335. .taskJson[index].toolChoose[i].selectJson
  18336. ? JSON.parse(
  18337. JSON.stringify(
  18338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18339. index
  18340. ].toolChoose[i].selectJson
  18341. )
  18342. )
  18343. : { url: "", select: [], answer: [] };
  18344. if (this.worksStudent[i].length) {
  18345. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18346. if (this.userid == this.worksStudent[i][k].userid) {
  18347. var a = this.worksStudent[i][k].works.split(",");
  18348. for (var ki = 0; ki < a.length; ki++) {
  18349. a[ki] = parseInt(a[ki]);
  18350. }
  18351. this.selectAnswer = {
  18352. answer: a,
  18353. stu: this.worksStudent[i][k].sName,
  18354. };
  18355. break;
  18356. } else {
  18357. this.selectAnswer = { answer: [], stu: "" };
  18358. }
  18359. }
  18360. } else {
  18361. this.selectAnswer = { answer: [], stu: "" };
  18362. }
  18363. this.isSelect = false;
  18364. this.dialogVisibleSelect = true;
  18365. } else if (t == 44) {
  18366. window.parent.postMessage({ tools: "44" }, "*");
  18367. } else if (t == 47) {
  18368. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18369. .taskJson[index].toolChoose[i].sentenceList
  18370. ? JSON.parse(
  18371. JSON.stringify(
  18372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18373. index
  18374. ].toolChoose[i].sentenceList
  18375. )
  18376. )
  18377. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18378. for (var q = 0; q < this.sentenceList.length; q++) {
  18379. this.sentenceList[q].chooseSenList = [];
  18380. this.sentenceList[q].addChangeSen = [];
  18381. this.sentenceList[q].addChangeSen = JSON.parse(
  18382. JSON.stringify(this.sentenceList[q].addSentence)
  18383. );
  18384. this.sentenceList[q].chooseSenList.length =
  18385. this.sentenceList[q].rightAnswer.length;
  18386. }
  18387. this.dialogVisibleSentence = true;
  18388. } else if (t == 48) {
  18389. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18390. .taskJson[index].toolChoose[i].tableJson
  18391. ? JSON.parse(
  18392. JSON.stringify(
  18393. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18394. index
  18395. ].toolChoose[i].tableJson
  18396. )
  18397. )
  18398. : { text: "" };
  18399. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18400. if (this.worksStudent[i].length) {
  18401. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18402. if (this.userid == this.worksStudent[i][k].userid) {
  18403. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18404. break;
  18405. }
  18406. }
  18407. }
  18408. this.dialogVisibleTable = true;
  18409. } else if (t == 52) {
  18410. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18411. .taskJson[index].toolChoose[i].wordJson
  18412. ? JSON.parse(
  18413. JSON.stringify(
  18414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18415. index
  18416. ].toolChoose[i].wordJson
  18417. )
  18418. )
  18419. : { text: "" };
  18420. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18421. if (this.worksStudent[i].length) {
  18422. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18423. if (this.userid == this.worksStudent[i][k].userid) {
  18424. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18425. break;
  18426. }
  18427. }
  18428. }
  18429. this.dialogVisibleWord = true;
  18430. } else if (t == 49) {
  18431. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18432. return
  18433. }
  18434. this.groupJson =
  18435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18436. index
  18437. ].toolChoose[i].groupJson;
  18438. this.islock = this.groupJson.islock == 1 ? true : false;
  18439. this.dialogVisibleGroup = true;
  18440. } else if (t == 62) {
  18441. this.videoType = 0;
  18442. this.videoJson = {};
  18443. this.videoJson =
  18444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18445. index
  18446. ].toolChoose[i].videoJson;
  18447. this.dialogVisibleVideo = true;
  18448. }
  18449. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18450. },
  18451. teacherWorkSubmit(t, i, index, s) {
  18452. this.sStudent = s;
  18453. this.toolindex = i;
  18454. this.sTool = t;
  18455. if (this.tType !== "1" && this.tType !== "4") {
  18456. return;
  18457. }
  18458. if (t == 16 || t == 32 || t == 50) {
  18459. this.dialogVisibleWorks = true;
  18460. } else if (t == 15) {
  18461. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18462. .taskJson[index].toolChoose[i].answerQ
  18463. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18464. .toolChoose[i].answerQ
  18465. : "";
  18466. this.questionAnswer = "";
  18467. this.answerDialogVisibleTeacher = true; //问答
  18468. } else if (t == 52) {
  18469. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18470. .taskJson[index].toolChoose[i].wordJson
  18471. ? JSON.parse(
  18472. JSON.stringify(
  18473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18474. index
  18475. ].toolChoose[i].wordJson
  18476. )
  18477. )
  18478. : { text: "" };
  18479. if (this.worksStudent[i].length) {
  18480. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18481. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18482. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18483. break;
  18484. }
  18485. }
  18486. }
  18487. this.dialogVisibleWordTeacher = true; //文档
  18488. } else if (t == 4) {
  18489. this.radio = [];
  18490. this.noteName = "";
  18491. this.isAnswer = false;
  18492. if (this.askCount > 0) {
  18493. this.updateCount(this.askCount, t);
  18494. } else {
  18495. this.askCount++;
  18496. a = this.askCount;
  18497. this.toolsCount(a, t);
  18498. }
  18499. if (!this.dialogVisible2) {
  18500. this.askJson.askJson =
  18501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18502. index
  18503. ].toolChoose[i].askJson;
  18504. this.askJson.askTitle =
  18505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18506. index
  18507. ].toolChoose[i].askTitle;
  18508. this.askJson.askCount =
  18509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18510. index
  18511. ].toolChoose[i].askCount;
  18512. } else {
  18513. this.askJson.askJson = this.chapTools.askJson.askJson;
  18514. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18515. this.askJson.askCount = this.chapTools.askJson.askCount;
  18516. }
  18517. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18518. if (this.askJson.askJson[k].type == "2") {
  18519. this.radio.push([]);
  18520. } else {
  18521. this.radio.push("");
  18522. }
  18523. }
  18524. this.dialogVisible5Teacher = true;
  18525. } else if (t == 45) {
  18526. this.noteName = "";
  18527. this.radio = [];
  18528. this.isAnswer = false;
  18529. if (this.askCount > 0) {
  18530. this.updateCount(this.askCount, t);
  18531. } else {
  18532. this.askCount++;
  18533. a = this.askCount;
  18534. this.toolsCount(a, t);
  18535. }
  18536. this.testJson =
  18537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18538. index
  18539. ].toolChoose[i].testJson;
  18540. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18541. if (this.testJson.testJson[k].type == "2") {
  18542. this.radio.push([]);
  18543. } else {
  18544. this.radio.push("");
  18545. }
  18546. }
  18547. this.dialogVisibleChoiceTeacher = true;
  18548. } else if (t == 41) {
  18549. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18550. .taskJson[index].toolChoose[i].selectJson
  18551. ? JSON.parse(
  18552. JSON.stringify(
  18553. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18554. index
  18555. ].toolChoose[i].selectJson
  18556. )
  18557. )
  18558. : { url: "", select: [], answer: [] };
  18559. if (this.worksStudent[i].length) {
  18560. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18561. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18562. var a = this.worksStudent[i][k].works.split(",");
  18563. for (var ki = 0; ki < a.length; ki++) {
  18564. a[ki] = parseInt(a[ki]);
  18565. }
  18566. this.selectAnswer = {
  18567. answer: a,
  18568. stu: this.worksStudent[i][k].sName,
  18569. };
  18570. break;
  18571. } else {
  18572. this.selectAnswer = { answer: [], stu: "" };
  18573. }
  18574. }
  18575. } else {
  18576. this.selectAnswer = { answer: [], stu: "" };
  18577. }
  18578. this.isSelect = false;
  18579. this.dialogVisibleSelectTeacher = true;
  18580. } else if (t == 47) {
  18581. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18582. .taskJson[index].toolChoose[i].sentenceList
  18583. ? JSON.parse(
  18584. JSON.stringify(
  18585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18586. index
  18587. ].toolChoose[i].sentenceList
  18588. )
  18589. )
  18590. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18591. for (var q = 0; q < this.sentenceList.length; q++) {
  18592. this.sentenceList[q].chooseSenList = [];
  18593. this.sentenceList[q].addChangeSen = [];
  18594. this.sentenceList[q].addChangeSen = JSON.parse(
  18595. JSON.stringify(this.sentenceList[q].addSentence)
  18596. );
  18597. this.sentenceList[q].chooseSenList.length =
  18598. this.sentenceList[q].rightAnswer.length;
  18599. }
  18600. this.dialogVisibleSentenceTeacher = true;
  18601. } else if (t == 48) {
  18602. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18603. .taskJson[index].toolChoose[i].tableJson
  18604. ? JSON.parse(
  18605. JSON.stringify(
  18606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18607. index
  18608. ].toolChoose[i].tableJson
  18609. )
  18610. )
  18611. : { text: "" };
  18612. if (this.worksStudent[i].length) {
  18613. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18614. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18615. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18616. break;
  18617. }
  18618. }
  18619. }
  18620. this.dialogVisibleTableTeacher = true;
  18621. } else if (t == 40) {
  18622. if (this.evalCount > 0) {
  18623. this.updateCount(this.evalCount, t);
  18624. } else {
  18625. this.evalCount++;
  18626. a = this.evalCount;
  18627. this.toolsCount(a, t);
  18628. }
  18629. this.eScore = { eBzText: "", eStar: [] };
  18630. if (this.worksStudent[i].length) {
  18631. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18632. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18633. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18634. this.rateJson =
  18635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18636. index
  18637. ].toolChoose[i].rateJson;
  18638. break;
  18639. } else {
  18640. this.rateJson =
  18641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18642. index
  18643. ].toolChoose[i].rateJson;
  18644. }
  18645. }
  18646. } else {
  18647. this.rateJson =
  18648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18649. index
  18650. ].toolChoose[i].rateJson;
  18651. }
  18652. this.isStar = false;
  18653. this.studentEvalDialogVisibleTeacher = true;
  18654. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18655. window.parent.postMessage(
  18656. {
  18657. tools: t + "teacher",
  18658. cid: this.id,
  18659. stage: this.courseType,
  18660. task: this.taskCount,
  18661. tool: i,
  18662. student: this.sStudent,
  18663. },
  18664. "*"
  18665. );
  18666. }
  18667. },
  18668. openCocoPi(tool, i, uid, uname) {
  18669. let student = {
  18670. userid: uid,
  18671. student: uname,
  18672. };
  18673. if (tool == 57) {
  18674. window.parent.postMessage(
  18675. {
  18676. tools: tool + "teacher",
  18677. cid: this.id,
  18678. stage: this.courseType,
  18679. task: this.taskCount,
  18680. tool: i,
  18681. student: student,
  18682. },
  18683. "*"
  18684. );
  18685. }
  18686. },
  18687. setRightAnswer(s, i, j) {
  18688. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18689. if (
  18690. this.sentenceList[i].chooseSenList[q] == undefined ||
  18691. this.sentenceList[i].chooseSenList[q] == ""
  18692. ) {
  18693. this.sentenceList[i].chooseSenList[q] = s;
  18694. this.sentenceList[i].addChangeSen[j] = "";
  18695. break;
  18696. }
  18697. }
  18698. this.$forceUpdate();
  18699. },
  18700. returnCard(r, i, j) {
  18701. var a = this.sentenceList[i].addSentence.indexOf(r);
  18702. this.sentenceList[i].chooseSenList[j] = "";
  18703. this.sentenceList[i].addChangeSen[a] = r;
  18704. this.$forceUpdate();
  18705. },
  18706. // addSentenceTool() {
  18707. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18708. // this.taskCount
  18709. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18710. // this.sentenceList = [
  18711. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18712. // ];
  18713. // this.dialogVisibleSentence = false;
  18714. // },
  18715. toolsCount(a, t) {
  18716. let params = {
  18717. cid: this.id,
  18718. chid: this.courseType,
  18719. uid: this.userid,
  18720. tid: t,
  18721. count: a,
  18722. };
  18723. this.ajax
  18724. .get(this.$store.state.api + "insertToolsCount", params)
  18725. .then((res) => {
  18726. this.selectCount();
  18727. })
  18728. .catch((err) => {
  18729. console.error(err);
  18730. });
  18731. },
  18732. updateCount(c, t) {
  18733. c++;
  18734. let params = {
  18735. cid: this.id,
  18736. chid: this.courseType,
  18737. uid: this.userid,
  18738. tid: t,
  18739. count: c,
  18740. };
  18741. this.ajax
  18742. .get(this.$store.state.api + "updateToolsCount", params)
  18743. .then((res) => {
  18744. this.selectCount();
  18745. })
  18746. .catch((err) => {
  18747. console.error(err);
  18748. });
  18749. },
  18750. checkEva() {
  18751. if (this.evalua != "") {
  18752. for (var i = 0; i < this.evaJuri.length; i++) {
  18753. if (this.evalua == this.evaJuri[i].id) {
  18754. this.eTitle = this.evaJuri[i].title;
  18755. this.eJson = JSON.parse(this.evaJuri[i].content);
  18756. }
  18757. }
  18758. this.$forceUpdate();
  18759. setTimeout(() => {
  18760. this.setMindData();
  18761. }, 0);
  18762. }
  18763. },
  18764. selectEva() {
  18765. let params = {
  18766. oid: this.oid,
  18767. };
  18768. this.ajax
  18769. .get(this.$store.state.api + "selectAllEvaluation", params)
  18770. .then((res) => {
  18771. this.evaJuri = res.data[0];
  18772. })
  18773. .catch((err) => {
  18774. console.error(err);
  18775. });
  18776. },
  18777. setMindData() {
  18778. this.data.data = [];
  18779. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18780. let _eJson = Object.keys(this.eJson);
  18781. let _e = this.eJson;
  18782. for (let i = 0; i < _eJson.length; i++) {
  18783. let element = _e[_eJson[i]];
  18784. this.data.data.push({
  18785. id: element.id,
  18786. parentid: "root",
  18787. topic: element.name,
  18788. });
  18789. let _eJsonc = Object.keys(element.child);
  18790. let _e2 = element.child;
  18791. for (let j = 0; j < _eJsonc.length; j++) {
  18792. let _ec = _e2[_eJsonc[j]];
  18793. this.data.data.push({
  18794. id: _ec.id,
  18795. parentid: element.id,
  18796. topic: _ec.name,
  18797. });
  18798. let _eJsonz = Object.keys(_ec.child);
  18799. let _e3 = _ec.child;
  18800. for (let z = 0; z < _eJsonz.length; z++) {
  18801. let _ez = _e3[_eJsonz[z]];
  18802. this.data.data.push({
  18803. id: _ez.id,
  18804. parentid: _ec.id,
  18805. topic: _ez.name,
  18806. });
  18807. }
  18808. }
  18809. }
  18810. this.$forceUpdate();
  18811. },
  18812. checkFileFull(type, url) {
  18813. this.fullDialogVisible = true;
  18814. this.fulltype = type;
  18815. this.fullUrl = url;
  18816. },
  18817. async checkFileFull1(t, f) {
  18818. this.fullDialogVisible = true;
  18819. if (t == 6) {
  18820. this.fulltype = 1;
  18821. this.fullUrl = JSON.parse(JSON.stringify(f));
  18822. } else if (t == 8) {
  18823. this.fulltype = 2;
  18824. this.fullUrl = f.url;
  18825. } else if (
  18826. t == 3 &&
  18827. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18828. "PDF"
  18829. ) {
  18830. this.fulltype = 3;
  18831. this.fullUrl = f.url;
  18832. } else if (t == 3) {
  18833. this.fulltype = 2;
  18834. let _uuurl = await this.checkLink(f.url);
  18835. this.fullUrl =
  18836. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18837. }
  18838. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18839. },
  18840. openSname(n, id, i, uid) {
  18841. this.snameWid = id;
  18842. this.worksSName = n;
  18843. this.worksSid = uid == n ? "" : uid;
  18844. this.toolindex = i;
  18845. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18846. if (!this.uploadCid) {
  18847. this.$message.error(
  18848. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18849. );
  18850. return;
  18851. }
  18852. this.selectUploadStudent(1);
  18853. },
  18854. updateName() {
  18855. let params = {
  18856. n: this.worksSName,
  18857. cid: this.snameWid,
  18858. };
  18859. this.ajax
  18860. .get(this.$store.state.api + "updateCourseWorksName", params)
  18861. .then((res) => {
  18862. this.$message({
  18863. message: "修改成功",
  18864. type: "success",
  18865. });
  18866. this.dialogVisibleSname = false;
  18867. this.getCourseDetail(2);
  18868. this.snameWid = "";
  18869. this.worksSName = "";
  18870. })
  18871. .catch((err) => {
  18872. console.error(err);
  18873. });
  18874. },
  18875. downloadFile2(f) {
  18876. // const loading = this.$loading.service({
  18877. // background: "rgba(255, 255, 255, 0.7)",
  18878. // target: document.body,
  18879. // text: "文件加载中...",
  18880. // });
  18881. // let url2 = f.url;
  18882. // let _url2 = "";
  18883. // if (
  18884. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18885. // ) {
  18886. // _url2 = url2.split(
  18887. // "https://view.officeapps.live.com/op/view.aspx?src="
  18888. // )[1];
  18889. // } else {
  18890. // _url2 = url2;
  18891. // }
  18892. // let params = {
  18893. // url: _url2,
  18894. // name: f.name,
  18895. // };
  18896. // this.ajax
  18897. // .get(this.$store.state.api + "download", params)
  18898. // .then((res) => {
  18899. // loading.close();
  18900. // let content = res.data.data.data;
  18901. // let ab = new ArrayBuffer(content.length);
  18902. // let view = new Uint8Array(ab);
  18903. // for (var i = 0; i < content.length; ++i) {
  18904. // view[i] = content[i];
  18905. // }
  18906. // let elink = document.createElement("a");
  18907. // elink.download = f.name;
  18908. // elink.style.display = "none";
  18909. // let blob = new Blob([ab], {
  18910. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18911. // });
  18912. // elink.href = URL.createObjectURL(blob);
  18913. // document.body.appendChild(elink);
  18914. // elink.click();
  18915. // document.body.removeChild(elink);
  18916. // })
  18917. // .catch((err) => {
  18918. // loading.close();
  18919. // console.error(err);
  18920. // });
  18921. var credentials = {
  18922. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18923. secretAccessKey: "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",
  18924. }; //秘钥形式的登录上传
  18925. window.AWS.config.update(credentials);
  18926. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18927. let url2 = f.url;
  18928. let _url2 = "";
  18929. if (
  18930. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18931. ) {
  18932. _url2 = url2.split(
  18933. "https://view.officeapps.live.com/op/view.aspx?src="
  18934. )[1];
  18935. } else {
  18936. _url2 = url2;
  18937. }
  18938. let _this = this;
  18939. _this.downLoading = true
  18940. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18941. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18942. var params = {
  18943. Bucket: "ccrb",
  18944. Key: name
  18945. };
  18946. s3.getObject(params, function (err, data) {
  18947. _this.downLoading = false
  18948. if (err) console.log(err, err.stack); // an error occurred
  18949. else {
  18950. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18951. let a = document.createElement("a");
  18952. a.name = f.name;
  18953. a.href = url;
  18954. a.download = f.name;
  18955. a.click();
  18956. console.log(data);
  18957. } // sxuccessful response
  18958. });
  18959. return;
  18960. let url = f.url;
  18961. let _url = "";
  18962. if (
  18963. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18964. ) {
  18965. _url = url.split(
  18966. "https://view.officeapps.live.com/op/view.aspx?src="
  18967. )[1];
  18968. } else {
  18969. _url = url;
  18970. }
  18971. _this.downLoading = true
  18972. let x = new XMLHttpRequest();
  18973. x.open("GET", _url, true);
  18974. x.responseType = "blob";
  18975. x.onload = function () {
  18976. _this.downLoading = false
  18977. let url = window.URL.createObjectURL(new Blob([x.response]));
  18978. let a = document.createElement("a");
  18979. a.name = f.name;
  18980. a.href = url;
  18981. a.download = f.name;
  18982. a.click();
  18983. };
  18984. x.send();
  18985. },
  18986. downloadFile(url) {
  18987. // this.$message.info("查看作业-下载文件")
  18988. var credentials = {
  18989. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18990. secretAccessKey: "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",
  18991. }; //秘钥形式的登录上传
  18992. window.AWS.config.update(credentials);
  18993. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18994. let url2 = url;
  18995. let _url2 = "";
  18996. if (
  18997. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18998. ) {
  18999. _url2 = url2.split(
  19000. "https://view.officeapps.live.com/op/view.aspx?src="
  19001. )[1];
  19002. } else {
  19003. _url2 = url2;
  19004. }
  19005. const loading2 = this.$loading.service({
  19006. background: "rgba(255, 255, 255, 0.7)",
  19007. target: document.body,
  19008. text: "文件加载中...",
  19009. });
  19010. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19011. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19012. var params = {
  19013. Bucket: "ccrb",
  19014. Key: name
  19015. };
  19016. s3.getObject(params, function (err, data) {
  19017. loading2.close();
  19018. if (err) console.log(err, err.stack); // an error occurred
  19019. else {
  19020. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19021. let a = document.createElement("a");
  19022. a.name = name;
  19023. a.href = url;
  19024. a.download = name;
  19025. a.click();
  19026. console.log(data);
  19027. } // sxuccessful response
  19028. });
  19029. return;
  19030. let _this = this;
  19031. let _url = "";
  19032. if (
  19033. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19034. ) {
  19035. _url = url.split(
  19036. "https://view.officeapps.live.com/op/view.aspx?src="
  19037. )[1];
  19038. } else {
  19039. _url = url;
  19040. }
  19041. const x = new XMLHttpRequest();
  19042. x.open("GET", _url, true);
  19043. x.responseType = "blob";
  19044. // this.downLoading = true
  19045. const loading = _this.$loading.service({
  19046. background: "rgba(255, 255, 255, 0.7)",
  19047. target: document.body,
  19048. text: "文件加载中...",
  19049. });
  19050. // _this.$message.success("文件下载中...");
  19051. x.onload = function (e) {
  19052. loading.close();
  19053. let content = x.response;
  19054. let elink = document.createElement("a");
  19055. elink.download = decodeURI(
  19056. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19057. );
  19058. elink.style.display = "none";
  19059. let blob = new Blob([content]);
  19060. elink.href = URL.createObjectURL(blob);
  19061. document.body.appendChild(elink);
  19062. elink.click();
  19063. document.body.removeChild(elink);
  19064. };
  19065. x.send();
  19066. },
  19067. openLine(url) {
  19068. window.open(url);
  19069. },
  19070. resize() {
  19071. if (document.getElementsByClassName("box_course").length) {
  19072. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19073. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19074. if (this.showType == 2 || this.showType == 3) {
  19075. document.getElementsByClassName("navBox")[0].style.height =
  19076. a - 40 + 0+ "px";
  19077. } else {
  19078. document.getElementsByClassName("navBox")[0].style.height =
  19079. a - 40 + "px";
  19080. }
  19081. }
  19082. this.Stbodywidth =
  19083. document.getElementsByClassName("student_body").length &&
  19084. document.getElementsByClassName("student_body")[0].offsetWidth;
  19085. },
  19086. closeDraw() {
  19087. this.bg = null;
  19088. this.drawShow = false;
  19089. },
  19090. showPicturePaint(url) {
  19091. let params = {
  19092. img: url,
  19093. };
  19094. this.ajax
  19095. .get(this.$store.state.api + "imgToBase64", params)
  19096. .then((res) => {
  19097. this.drawShow = true;
  19098. this.bg = res.data[0].img;
  19099. })
  19100. .catch((err) => {
  19101. console.error(err);
  19102. });
  19103. },
  19104. addImgDraw(base64) {
  19105. let file = { name: "批注图.png" };
  19106. let img = this.dataUrlToFile(base64, file);
  19107. this.beforeUpload1(img, 5);
  19108. },
  19109. addImgDrawImG(url) {
  19110. // console.log(url);
  19111. let params = [
  19112. {
  19113. wid: this.commentDetail.wid,
  19114. img: url,
  19115. },
  19116. ];
  19117. this.ajax
  19118. .post(this.$store.state.api + "updateCourseWorks", params)
  19119. .then((res) => {
  19120. this.$message({
  19121. message: "提交成功",
  19122. type: "success",
  19123. });
  19124. this.drawShow = false;
  19125. this.bg = "";
  19126. this.selectSWorks();
  19127. this.selectStudent();
  19128. })
  19129. .catch((err) => {
  19130. this.$message.error("提交失败");
  19131. console.error(err);
  19132. });
  19133. },
  19134. deletePicturePaint() {
  19135. this.$confirm("确定删除此批注吗?", "提示", {
  19136. confirmButtonText: "确定",
  19137. cancelButtonText: "取消",
  19138. type: "warning",
  19139. })
  19140. .then(() => {
  19141. let params = [
  19142. {
  19143. wid: this.commentDetail.wid,
  19144. img: "",
  19145. },
  19146. ];
  19147. this.ajax
  19148. .post(this.$store.state.api + "updateCourseWorks", params)
  19149. .then((res) => {
  19150. this.$message({
  19151. message: "删除成功",
  19152. type: "success",
  19153. });
  19154. this.selectSWorks();
  19155. this.selectStudent();
  19156. })
  19157. .catch((err) => {
  19158. this.$message.error("删除失败");
  19159. console.error(err);
  19160. });
  19161. })
  19162. .catch(() => {});
  19163. },
  19164. getAudioVideo(constraintsData) {
  19165. if (navigator.mediaDevices === undefined) {
  19166. navigator.mediaDevices = {};
  19167. }
  19168. if (navigator.mediaDevices.getUserMedia === undefined) {
  19169. navigator.mediaDevices.getUserMedia = function (constraints) {
  19170. // 首先,如果有getUserMedia的话,就获得它
  19171. var getUserMedia =
  19172. navigator.getUserMedia ||
  19173. navigator.webkitGetUserMedia ||
  19174. navigator.mozGetUserMedia ||
  19175. navigator.msGetUserMedia;
  19176. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19177. if (!getUserMedia) {
  19178. return Promise.reject({ code: 404 });
  19179. }
  19180. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19181. return new Promise(function (resolve, reject) {
  19182. getUserMedia.call(navigator, constraints, resolve, reject);
  19183. });
  19184. };
  19185. }
  19186. return navigator.mediaDevices.getUserMedia(constraintsData);
  19187. },
  19188. /**
  19189. * 开始录制
  19190. */
  19191. startRecording(callback) {
  19192. let _function = (screenStream) => {
  19193. this.addStreamStopListener(screenStream, () => {
  19194. console.log("流停止监听");
  19195. this.stopRecording();
  19196. this.$emit("streamStop", {});
  19197. // this.stopRecording();
  19198. });
  19199. var options = {
  19200. type: "video",
  19201. mimeType: "video/webm",
  19202. disableLogs: false,
  19203. getNativeBlob: false, // enable it for longer recordings
  19204. ignoreMutedMedia: false,
  19205. };
  19206. // this.video.srcObject = screenStream;
  19207. this.recorder = RecordRTC(screenStream, options);
  19208. this.recorder.startRecording();
  19209. this.recorder.screen = screenStream;
  19210. this.videoStart = true;
  19211. // callback(true);
  19212. };
  19213. this.getAudioVideo({ audio: true })
  19214. .then((res) => {
  19215. this.captureScreen(_function, true);
  19216. console.log("已点击允许,开启成功");
  19217. })
  19218. .catch((err) => {
  19219. // console.log('浏览器不支持,请更换浏览器')
  19220. // } else {
  19221. this.captureScreen(_function, false);
  19222. console.log("请检查是否存在麦克风");
  19223. });
  19224. },
  19225. /**
  19226. * 停止录制
  19227. */
  19228. stopRecording(callback) {
  19229. this.recorder.stopRecording(() => {
  19230. // this.video.src = this.video.srcObject = null;
  19231. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19232. const url = URL.createObjectURL(this.recorder.getBlob());
  19233. const a = document.createElement("a"); //this.fileName+
  19234. let videoFile = new File(
  19235. [this.recorder.getBlob()],
  19236. this.courseDetail.title + "录屏.mp4",
  19237. {
  19238. type: "video/mp4",
  19239. }
  19240. );
  19241. let downloadUrl = URL.createObjectURL(videoFile);
  19242. if(this.$refs.classRoomHelperRef){
  19243. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19244. }
  19245. document.body.appendChild(a);
  19246. a.style.display = "none";
  19247. a.href = url;
  19248. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19249. a.click();
  19250. this.recorder.screen.stop();
  19251. this.recorder.destroy();
  19252. this.recorder = null;
  19253. this.videoStart = false;
  19254. // callback(false);
  19255. });
  19256. },
  19257. //初始化
  19258. captureScreen(callback, type) {
  19259. if (navigator.getDisplayMedia) {
  19260. //录制结束,文件下载
  19261. navigator
  19262. .getDisplayMedia({
  19263. video: true,
  19264. })
  19265. .then((screenStream) => {
  19266. if (type) {
  19267. navigator.mediaDevices
  19268. .getUserMedia({ audio: true })
  19269. .then((mic) => {
  19270. screenStream.addTrack(mic.getTracks()[0]);
  19271. callback(screenStream);
  19272. });
  19273. } else {
  19274. callback(screenStream);
  19275. }
  19276. })
  19277. .catch(function (error) {
  19278. console.log("error", error);
  19279. });
  19280. } else if (navigator.mediaDevices.getDisplayMedia) {
  19281. navigator.mediaDevices
  19282. .getDisplayMedia({
  19283. video: true,
  19284. })
  19285. .then((screenStream) => {
  19286. if (type) {
  19287. navigator.mediaDevices
  19288. .getUserMedia({ audio: true })
  19289. .then((mic) => {
  19290. screenStream.addTrack(mic.getTracks()[0]);
  19291. callback(screenStream);
  19292. });
  19293. } else {
  19294. callback(screenStream);
  19295. }
  19296. })
  19297. .catch(function (error) {
  19298. console.log("error", error);
  19299. });
  19300. } else {
  19301. var error = "getDisplayMedia API are not supported in this browser.";
  19302. console.log("error", error);
  19303. alert(error);
  19304. }
  19305. },
  19306. //流监听
  19307. addStreamStopListener(stream, callback) {
  19308. stream.addEventListener(
  19309. "ended",
  19310. function () {
  19311. callback();
  19312. callback = function () {};
  19313. },
  19314. false
  19315. );
  19316. stream.addEventListener(
  19317. "inactive",
  19318. function () {
  19319. callback();
  19320. callback = function () {};
  19321. },
  19322. false
  19323. );
  19324. stream.getTracks().forEach(function (track) {
  19325. track.addEventListener(
  19326. "ended",
  19327. function () {
  19328. callback();
  19329. callback = function () {};
  19330. },
  19331. false
  19332. );
  19333. track.addEventListener(
  19334. "inactive",
  19335. function () {
  19336. callback();
  19337. callback = function () {};
  19338. },
  19339. false
  19340. );
  19341. });
  19342. },
  19343. updateGroup() {
  19344. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19345. this.dialogVisibleGroup2 = true;
  19346. },
  19347. numberPan() {
  19348. if (
  19349. /[^\d]/.test(this.groupJson.number) ||
  19350. this.groupJson.number < 2 ||
  19351. this.groupJson.number > 10
  19352. ) {
  19353. this.$message.error("请输入2-10的数字");
  19354. this.groupJson.number = "";
  19355. }
  19356. },
  19357. updateGroupJson() {
  19358. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19359. if (
  19360. this.groupStudentUid[this.toolindex][i].length >
  19361. this.groupJson2.number
  19362. ) {
  19363. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19364. return;
  19365. }
  19366. }
  19367. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19368. this.islock = this.groupJson.islock == 1 ? true : false;
  19369. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19370. this.taskCount
  19371. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19372. let params = [
  19373. {
  19374. cid: this.id,
  19375. chapters: JSON.stringify(this.chapInfoList),
  19376. uid: this.userid,
  19377. unitIndex: this.courseType,
  19378. },
  19379. ];
  19380. this.ajax
  19381. .post(this.$store.state.api + "updateWorkNew4", params)
  19382. .then((res) => {
  19383. this.$message.success("设置成功");
  19384. this.getCourseDetail(2);
  19385. this.dialogVisibleGroup2 = false;
  19386. this.groupJson2 = {};
  19387. this.$forceUpdate();
  19388. })
  19389. .catch((err) => {
  19390. this.$message.error("网络不佳");
  19391. console.error(err);
  19392. });
  19393. },
  19394. lockChair() {
  19395. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19396. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19397. this.updateGroupJson();
  19398. },
  19399. selectGroup(index) {
  19400. this.getCourseDetail(2, index);
  19401. },
  19402. joinGroup(index) {
  19403. if (this.groupJson.islock == 2) {
  19404. this.$message.error("位置已被锁定,无法加入");
  19405. return;
  19406. }
  19407. if (
  19408. this.groupStudent[this.toolindex][index].length >
  19409. this.groupJson.number ||
  19410. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19411. ) {
  19412. this.$message.error("位置已满,无法加入");
  19413. return;
  19414. }
  19415. let params = [
  19416. {
  19417. cid: this.id,
  19418. stage: this.courseType,
  19419. task: this.taskCount,
  19420. tool: this.toolindex,
  19421. g: index,
  19422. uid: this.userid,
  19423. },
  19424. ];
  19425. this.ajax
  19426. .post(this.$store.state.api + "joinGroup", params)
  19427. .then((res) => {
  19428. this.$message.success("加入成功");
  19429. this.getCourseDetail(2);
  19430. })
  19431. .catch((err) => {
  19432. this.$message.error("网络不佳");
  19433. console.error(err);
  19434. });
  19435. },
  19436. exitGroup(id) {
  19437. if (this.groupJson.islock == 2) {
  19438. this.$message.error("位置已被锁定,无法退出");
  19439. return;
  19440. }
  19441. let params = [
  19442. {
  19443. gid: id,
  19444. },
  19445. ];
  19446. this.ajax
  19447. .post(this.$store.state.api + "exitGroup", params)
  19448. .then((res) => {
  19449. this.$message.success("退出成功");
  19450. this.getCourseDetail(2);
  19451. })
  19452. .catch((err) => {
  19453. this.$message.error("网络不佳");
  19454. console.error(err);
  19455. });
  19456. },
  19457. groupUpload(index, task, gindex) {
  19458. this.taskCount = task;
  19459. this.toolindex = index;
  19460. this.groupIndex = gindex;
  19461. this.dialogVisibleGroupWork = true;
  19462. },
  19463. updateGroupChair(user) {
  19464. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19465. el.label = index;
  19466. return index != user.group;
  19467. });
  19468. this.updateGroupUser = user;
  19469. this.dialogVisibleUpdateGroup = true;
  19470. },
  19471. updateChair() {
  19472. if (
  19473. this.groupStudent[this.toolindex][this.checkChair].length >
  19474. this.groupJson.number ||
  19475. this.groupStudent[this.toolindex][this.checkChair].length ==
  19476. this.groupJson.number
  19477. ) {
  19478. this.$message.error("位置已满,无法加入");
  19479. return;
  19480. }
  19481. let params = [
  19482. {
  19483. cid: this.id,
  19484. stage: this.courseType,
  19485. task: this.taskCount,
  19486. tool: this.toolindex,
  19487. g: this.checkChair,
  19488. uid: this.updateGroupUser.userid,
  19489. },
  19490. ];
  19491. this.ajax
  19492. .post(this.$store.state.api + "joinGroup", params)
  19493. .then((res) => {
  19494. this.$message.success("修改成功");
  19495. this.updateGroupUser = {};
  19496. this.checkChair = "";
  19497. this.updateGroupArray = {};
  19498. this.dialogVisibleUpdateGroup = false;
  19499. this.getCourseDetail(2);
  19500. })
  19501. .catch((err) => {
  19502. this.$message.error("网络不佳");
  19503. console.error(err);
  19504. });
  19505. },
  19506. deleteGroupChair(gindex) {
  19507. this.checkDeleteGroup = [];
  19508. this.deleteGroupUser = JSON.parse(
  19509. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19510. );
  19511. this.deleteGroupArray = this.groupJson.group[gindex];
  19512. this.groupIndex = gindex;
  19513. this.dialogVisibleDeleteGroup = true;
  19514. },
  19515. async deleteChair() {
  19516. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19517. const gid =
  19518. this.groupStudent[this.toolindex][this.groupIndex][
  19519. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19520. this.checkDeleteGroup[i]
  19521. )
  19522. ];
  19523. let params = [
  19524. {
  19525. gid: gid.id,
  19526. },
  19527. ];
  19528. var a = await this.deleteChairA(params);
  19529. if (i == this.checkDeleteGroup.length - 1) {
  19530. this.$message.success("退出成功");
  19531. this.dialogVisibleDeleteGroup = false;
  19532. this.deleteGroupUser = [];
  19533. this.deleteGroupArray = {};
  19534. this.groupIndex = "";
  19535. this.checkDeleteGroup = [];
  19536. this.getCourseDetail(2);
  19537. }
  19538. }
  19539. },
  19540. deleteChairA(params) {
  19541. return new Promise((resolve, reject) => {
  19542. this.ajax
  19543. .post(this.$store.state.api + "exitGroup", params)
  19544. .then((res) => {
  19545. resolve(1);
  19546. })
  19547. .catch((err) => {
  19548. this.$message.error("网络不佳");
  19549. console.error(err);
  19550. });
  19551. });
  19552. },
  19553. contract(i) {
  19554. if (this.isCloseList[i].isClose == 0) {
  19555. this.isCloseList[i].isClose = 1;
  19556. } else {
  19557. this.isCloseList[i].isClose = 0;
  19558. }
  19559. this.$forceUpdate();
  19560. },
  19561. openWordCloud(toolindex) {
  19562. let array = [];
  19563. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19564. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19565. array.push({ name: works });
  19566. }
  19567. if (this.isGroup) {
  19568. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19569. let works = this.courseGroup.group[i].works[toolindex];
  19570. for (var j = 0; j < works.length; j++) {
  19571. let answer = JSON.parse(works[j].works)[0].answer;
  19572. array.push({ name: answer });
  19573. }
  19574. }
  19575. }
  19576. this.wordCloudData = array;
  19577. this.dialogVisibleWordCloud = true;
  19578. },
  19579. uploadWorks(i) {
  19580. this.$confirm("确定导出作业吗?", "提示", {
  19581. confirmButtonText: "确定",
  19582. cancelButtonText: "取消",
  19583. type: "warning",
  19584. })
  19585. .then(() => {
  19586. const loading = this.$loading.service({
  19587. background: "rgba(255, 255, 255, 0.7)",
  19588. target: document.body,
  19589. text: "文件加载中...",
  19590. });
  19591. const _worksStudent = this.worksStudent;
  19592. let url = [];
  19593. var counts = {};
  19594. for (var l = 0; l < _worksStudent[i].length; l++) {
  19595. var item = _worksStudent[i][l];
  19596. var name = item.sName;
  19597. if (!counts.hasOwnProperty(name)) {
  19598. counts[name] = 0;
  19599. } else {
  19600. counts[name]++;
  19601. }
  19602. if (counts[name] > 0) {
  19603. item.sName += " (" + counts[name] + ")";
  19604. }
  19605. }
  19606. for (var l = 0; l < _worksStudent[i].length; l++) {
  19607. var item = _worksStudent[i][l];
  19608. if (
  19609. item.works.indexOf(
  19610. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19611. ) !== -1 &&
  19612. item.works.indexOf("img") === -1
  19613. ) {
  19614. url.push({ name: item.sName, url: item.works });
  19615. }
  19616. }
  19617. // var toolList = [
  19618. // { name: "电子白板", tool: 1 },
  19619. // { name: "思维导图", tool: 3 },
  19620. // { name: "协同文档", tool: 6 },
  19621. // { name: "思维网格", tool: 7 },
  19622. // { name: "素材库", tool: 8 },
  19623. // { name: "学习资料", tool: 17 },
  19624. // { name: "便签", tool: 2 },
  19625. // { name: "问卷调查", tool: 4 },
  19626. // { name: "选择题", tool: 45 },
  19627. // { name: "倒计时", tool: 10 },
  19628. // { name: "问答", tool: 15 },
  19629. // { name: "课程设计", tool: 26 },
  19630. // { name: "训练服务器", tool: 18 },
  19631. // { name: "作业提交", tool: 16 },
  19632. // { name: "批量上传", tool: 50 },
  19633. // { name: "AIoT Blockly", tool: 21 },
  19634. // { name: "AI Python", tool: 23 },
  19635. // { name: "AI Blockly", tool: 24 },
  19636. // { name: "目标管理", tool: 25 },
  19637. // { name: "数学画板", tool: 31 },
  19638. // { name: "翻译", tool: 28 },
  19639. // { name: "魔盒识字", tool: 37 },
  19640. // { name: "数学画板", tool: 31 },
  19641. // { name: "24点", tool: 38 },
  19642. // { name: "GeoGebra", tool: 39 },
  19643. // { name: "源码编辑", tool: 32 },
  19644. // { name: "个人评价", tool: 40 },
  19645. // { name: "选择匹配", tool: 41 },
  19646. // { name: "汉字宫", tool: 44 },
  19647. // { name: "排序", tool: 47 },
  19648. // { name: "表格", tool: 48 },
  19649. // { name: "文档", tool: 52 },
  19650. // { name: "学生分组", tool: 49 },
  19651. // { name: "CocoPi", tool: 57 },
  19652. // { name: "模拟驾驶", tool: 58 },
  19653. // { name: "路径搜索", tool: 59 },
  19654. // { name: "深度学习", tool: 60 },
  19655. // { name: "全历史", tool: 61 },
  19656. // { name: "交互视频", tool: 62 },
  19657. // { name: "海龟编程", tool: 63 },
  19658. // { name: "挑人", tool: 65 },
  19659. // { name: "公式编辑", tool: 66 },
  19660. // { name: "分子结构", tool: 67 },
  19661. // { name: "时间轴", tool: 68 },
  19662. // ];
  19663. // var toolName = "";
  19664. // for(var w = 0;w<toolList.length;w++){
  19665. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19666. // toolName = toolList[w].name;
  19667. // }
  19668. // }
  19669. console.log(url);
  19670. this.downLoadAll(url, loading);
  19671. })
  19672. .catch(() => {});
  19673. },
  19674. downLoadAll(url, loading) {
  19675. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19676. const zip = new JSZip();
  19677. const cache = {};
  19678. const promises = [];
  19679. data.forEach((item) => {
  19680. const promise = getFile(item.url).then((data) => {
  19681. if (data.data != 1) {
  19682. // 下载文件, 并存成ArrayBuffer对象
  19683. const file_name =
  19684. item.name +
  19685. "." +
  19686. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19687. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19688. cache[file_name] = data.data;
  19689. }
  19690. });
  19691. promises.push(promise);
  19692. });
  19693. Promise.all(promises).then(() => {
  19694. zip.generateAsync({ type: "blob" }).then((content) => {
  19695. // 生成二进制流
  19696. FileSaver.saveAs(
  19697. content,
  19698. this.courseDetail.title + "-" + "作业提交工具.zip"
  19699. ); // 利用file-saver保存文件 自定义文件名
  19700. setTimeout(() => {
  19701. loading.close();
  19702. }, 2000);
  19703. });
  19704. });
  19705. },
  19706. pickStudent(stu) {
  19707. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19708. return;
  19709. }
  19710. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19711. confirmButtonText: "确定",
  19712. cancelButtonText: "取消",
  19713. type: "warning",
  19714. })
  19715. .then(() => {
  19716. let params = [
  19717. {
  19718. uid: stu.userid,
  19719. cid: this.id,
  19720. stage: this.courseType,
  19721. task: this.taskCount,
  19722. tool: this.toolindex,
  19723. },
  19724. ];
  19725. this.ajax
  19726. .post(this.$store.state.api + "updateCoursePick", params)
  19727. .then((res) => {
  19728. this.$message.success("操作成功");
  19729. this.getPick();
  19730. })
  19731. .catch((err) => {
  19732. this.$message.error("网络不佳");
  19733. console.error(err);
  19734. });
  19735. })
  19736. .catch(() => {});
  19737. },
  19738. selectUser(){
  19739. let params = {
  19740. userid: this.userid,
  19741. };
  19742. this.ajax
  19743. .get(this.$store.state.api + "selectUser", params)
  19744. .then((res) => {
  19745. this.userMes = res.data[0];
  19746. })
  19747. .catch((err) => {
  19748. console.error(err);
  19749. });
  19750. },
  19751. setEngText(i){
  19752. this.newEngIndex = i;
  19753. this.$forceUpdate();
  19754. },
  19755. addCorrect(){
  19756. this.$confirm("你确定提交批改嘛?", "提示", {
  19757. confirmButtonText: "确定",
  19758. showCancelButton: false,
  19759. closeOnClickModal: false,
  19760. type: "warning",
  19761. })
  19762. .then(() => {
  19763. let params = {
  19764. cid: this.id,
  19765. s: parseInt(this.courseType),
  19766. t: this.taskCount,
  19767. tool: this.toolindex,
  19768. wid: this.engWid,
  19769. c: this.userid,
  19770. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  19771. };
  19772. this.ajax
  19773. .get(this.$store.state.api + "addEngC", params)
  19774. .then((res) => {
  19775. this.$message.success("提交成功");
  19776. this.engUpdateDialogVisible = false;
  19777. })
  19778. .catch((err) => {
  19779. console.error(err);
  19780. });
  19781. })
  19782. .catch(() => {});
  19783. },
  19784. selectEngC(id,z){
  19785. let params = {
  19786. workid: id,
  19787. };
  19788. this.ajax
  19789. .get(this.$store.state.api + "selectEngC", params)
  19790. .then((res) => {
  19791. if(res.data[0].length == 0){
  19792. this.newEnglishList.engTitle = z.engTitle;
  19793. this.newEnglishList.engText = z.engText;
  19794. }else{
  19795. var a = res.data[0];
  19796. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19797. if(this.userMes[0].type == 2){
  19798. var snum = 0;
  19799. for(var i = 0;i<a.length;i++){
  19800. if(this.userMes[0].userid == a[i].correct){
  19801. this.newEnglishList = JSON.parse(a[i].cWork);
  19802. snum = 1;
  19803. }
  19804. }
  19805. if(snum == 0){
  19806. this.newEnglishList = { engTitle:"",engText:"" };
  19807. this.newEnglishList.engTitle = z.engTitle;
  19808. this.newEnglishList.engText = z.engText;
  19809. }
  19810. }else if(this.userMes[0].type == 1){
  19811. var num = 0;
  19812. for(var w= 0;w<a.length;w++){
  19813. if(this.userMes[0].userid == a[w].correct){
  19814. num = 1;
  19815. }
  19816. }
  19817. if(num == 0){
  19818. this.isNoUserid = true;
  19819. var c = JSON.parse(JSON.stringify(z));
  19820. this.oldEnglishJson1 = c;
  19821. }else{
  19822. this.isNoUserid = false;
  19823. }
  19824. var b = a.sort((item, index) => {
  19825. console.log(item)
  19826. if (item.correct === this.userMes[0].userid) {
  19827. return -1; // 将a移到前面
  19828. } else if (index.correct === this.userMes[0].userid) {
  19829. return 1; // 将b移到前面
  19830. } else {
  19831. return 0; // 保持默认顺序
  19832. }
  19833. });
  19834. for(var p = 0;p<b.length;p++){
  19835. for(var y = 0;y<ppp.length;y++){
  19836. if(b[p].id == ppp[y].id){
  19837. b[p].cWork = JSON.parse(ppp[y].cWork);
  19838. break
  19839. }
  19840. }
  19841. }
  19842. this.newEnglishList1 = b;
  19843. }
  19844. }
  19845. this.greyType = false;
  19846. setTimeout(() => {
  19847. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19848. if(this.newEnglishList1.length > 0){
  19849. if(this.isNoUserid == true){
  19850. this.engListLength = this.newEnglishList1.length + 1;
  19851. this.newEngIndex = -1;
  19852. }else{
  19853. this.engListLength = this.newEnglishList1.length;
  19854. this.newEngIndex = 0;
  19855. }
  19856. }
  19857. if(this.userMes[0].type == 2){
  19858. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19859. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19860. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19861. }else if(this.newEngIndex == -1){
  19862. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19863. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19864. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19865. }
  19866. }, 500);
  19867. this.engUpdateDialogVisible = true;
  19868. this.$forceUpdate();
  19869. })
  19870. .catch((err) => {
  19871. console.error(err);
  19872. });
  19873. },
  19874. getPick() {
  19875. let params = {
  19876. cid: this.id,
  19877. };
  19878. this.ajax
  19879. .get(this.$store.state.api + "getPick", params)
  19880. .then((res) => {
  19881. let array = [];
  19882. for (var i = 0; i < res.data[0].length; i++) {
  19883. array.push(res.data[0][i].userid);
  19884. }
  19885. this.isPickStudent = array;
  19886. if (array.indexOf(this.userid) !== -1) {
  19887. this.$confirm("你被老师选到啦!", "提示", {
  19888. confirmButtonText: "确定",
  19889. showCancelButton: false,
  19890. closeOnClickModal: false,
  19891. type: "warning",
  19892. })
  19893. .then(() => {
  19894. let pa = [
  19895. {
  19896. uid: this.userid,
  19897. cid: this.id,
  19898. },
  19899. ];
  19900. this.ajax
  19901. .post(this.$store.state.api + "deletePick", pa)
  19902. .then((res) => {
  19903. this.getPick();
  19904. })
  19905. .catch((err) => {
  19906. this.$message.error("网络不佳");
  19907. console.error(err);
  19908. });
  19909. })
  19910. .catch(() => {});
  19911. }
  19912. })
  19913. .catch((err) => {
  19914. this.$message.error("网络不佳");
  19915. console.error(err);
  19916. });
  19917. },
  19918. foldEva() {
  19919. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19921. } else {
  19922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19923. setTimeout(() => {
  19924. this.checkEva();
  19925. setTimeout(() => {
  19926. this.checkEva();
  19927. }, 500);
  19928. }, 0);
  19929. }
  19930. this.$forceUpdate();
  19931. },
  19932. panToolHeight(tool) {
  19933. var _tool = document.querySelectorAll('#'+tool)[0]
  19934. var _toolA = _tool ? _tool.offsetHeight : 0
  19935. var _toolC = 0
  19936. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19937. let boolean2 = (_toolA > _toolC) ? true : false
  19938. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19939. this.$forceUpdate();
  19940. },
  19941. async checkLink(url) {
  19942. console.log(url)
  19943. let _url = url
  19944. try {
  19945. const response = await fetch(url);
  19946. if(!response.ok){
  19947. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  19948. }
  19949. console.log(response.ok)
  19950. } catch (error) {
  19951. console.error('Error checking link:', error);
  19952. // console.log(false)
  19953. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  19954. }
  19955. // console.log(_url)
  19956. return _url
  19957. },
  19958. getScoreList(){
  19959. let params = {
  19960. cid: this.id,
  19961. };
  19962. this.ajax
  19963. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19964. .then((res) => {
  19965. let result = res.data;
  19966. this.scoreList.datalist = result[0];
  19967. this.scoreList.isScoreList = result[1];
  19968. })
  19969. .catch((err) => {
  19970. console.error(err);
  19971. });
  19972. },
  19973. setClassRoomHelperWidth(width){
  19974. this.classRoomHelperWidth = width
  19975. },
  19976. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  19977. this.$refs.choseWorksDetailDialogRef.open({
  19978. toolType:tooc,
  19979. tType: this.tType,
  19980. toolIndex: toolIndex
  19981. });
  19982. this.changeSplitScreenBehavior({
  19983. code: 1,
  19984. form: {
  19985. toolType:tooc,
  19986. toolIndex: toolIndex,
  19987. courseType: this.courseType,
  19988. taskCount: this.taskCount,
  19989. type: 0
  19990. }
  19991. });
  19992. },
  19993. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  19994. this.$refs.statisticalAnalysisRef.open({
  19995. worksStudent: this.worksStudent[toolIndex],
  19996. tType: this.tType,
  19997. toolIndex: toolIndex
  19998. });
  19999. this.changeSplitScreenBehavior({
  20000. code: 2,
  20001. form: {
  20002. toolType:4,
  20003. courseType: this.courseType,
  20004. taskCount: this.taskCount,
  20005. toolIndex: toolIndex,
  20006. type: 0
  20007. }
  20008. });
  20009. },
  20010. statisticalAnalysisRefresh(toolIndex) {
  20011. this.$refs.statisticalAnalysisRef.refreshData({
  20012. worksStudent: this.worksStudent[toolIndex],
  20013. tType: this.tType,
  20014. toolIndex: toolIndex
  20015. });
  20016. },
  20017. async splitScreenBehavior(type = 0) {
  20018. // return;
  20019. if (this.splitScreenData.loading)
  20020. return this.$message.info("操作过快,请稍等");
  20021. if (type == 0) {
  20022. //关闭分屏
  20023. this.splitScreenData.isOpen = false;
  20024. // this.splitScreenData.userId = "";
  20025. // this.splitScreenData.uid = "";
  20026. this.splitScreenData.behavior = null;
  20027. await this.updateSplitScreenData(1);
  20028. this.$message.success("已关闭分屏模式");
  20029. this.studentFreePreview(false);
  20030. this.OpenJobPreview(false);
  20031. // this.followingMode(false);
  20032. } else if (type == 1) {
  20033. //开启分屏
  20034. this.splitScreenData.isOpen = true;
  20035. this.splitScreenData.userId = this.userid;
  20036. this.splitScreenData.uid = this.splitScreenData.myUid;
  20037. this.splitScreenData.behavior = null;
  20038. let status = await this.updateSplitScreenData(0);
  20039. if (status == 1) {
  20040. this.$message.success("已开启分屏");
  20041. this.studentFreePreview(true);
  20042. this.OpenJobPreview(true);
  20043. // this.followingMode(true);
  20044. } else {
  20045. this.splitScreenData.isOpen = false;
  20046. this.splitScreenData.userId = "";
  20047. this.splitScreenData.uid = "";
  20048. this.splitScreenData.behavior = null;
  20049. this.$message.success("分屏开启失败");
  20050. }
  20051. }
  20052. },
  20053. getSplitScreenData() {
  20054. // return;
  20055. if (this.tType != 1) return;
  20056. let params = {
  20057. cid: this.id
  20058. };
  20059. this.ajax
  20060. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20061. .then(async res => {
  20062. let data = res.data[0][0]["splitScreenData"];
  20063. console.log("获取了分屏数:", data);
  20064. if (data) {
  20065. data = JSON.parse(data);
  20066. if (
  20067. !this.splitScreenData.isOpen &&
  20068. data.isOpen &&
  20069. this.splitScreenData.myUid == data.uid
  20070. ) {
  20071. this.splitScreenData.isOpen = false;
  20072. this.splitScreenData.userId = "";
  20073. this.splitScreenData.uid = "";
  20074. this.splitScreenData.behavior = null;
  20075. await this.updateSplitScreenData(1);
  20076. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20077. this.splitScreenData.isOpen = true;
  20078. this.splitScreenData.uid = data.uid;
  20079. this.splitScreenData.userId = data.userId;
  20080. this.splitScreenData.behavior = data.behavior;
  20081. this.$message.success("分屏模式已开启");
  20082. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20083. this.splitScreenData.isOpen = false;
  20084. this.splitScreenData.userId = "";
  20085. this.splitScreenData.uid = "";
  20086. this.splitScreenData.behavior = null;
  20087. this.$message.error("已结束分屏模式");
  20088. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20089. this.splitScreenData.isOpen = true;
  20090. this.splitScreenData.uid = data.uid;
  20091. this.splitScreenData.userId = data.userId;
  20092. this.splitScreenData.behavior = data.behavior;
  20093. }
  20094. this.doSplitScreenBehavior();
  20095. } else {
  20096. if (this.splitScreenData.isOpen) {
  20097. this.splitScreenData.isOpen = false;
  20098. this.splitScreenData.userId = "";
  20099. this.splitScreenData.uid = "";
  20100. this.splitScreenData.behavior = null;
  20101. this.$message.error("已结束分屏模式");
  20102. }
  20103. }
  20104. })
  20105. .catch(e => {
  20106. console.log("获取分屏数出错:", e);
  20107. });
  20108. },
  20109. doSplitScreenBehavior() {
  20110. if (
  20111. this.splitScreenData.isOpen &&
  20112. this.splitScreenData.uid != this.splitScreenData.myUid
  20113. ) {
  20114. let behavior = this.splitScreenData.behavior;
  20115. if (behavior) {
  20116. if (behavior.code === 99) {
  20117. //初始化
  20118. this.fullDialogVisible = false;
  20119. if(this.$refs.choseWorksDetailDialogRef.show){
  20120. this.$refs.choseWorksDetailDialogRef.close();
  20121. }
  20122. if(this.$refs.statisticalAnalysisRef.show){
  20123. this.$refs.statisticalAnalysisRef.close();
  20124. }
  20125. } else if (behavior.code === 0) {
  20126. //开启内容列表弹窗
  20127. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20128. } else if (behavior.code === 1) {
  20129. //关于选择题的作业详细的操作
  20130. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20131. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20132. this.courseType = behavior.form.courseType;
  20133. this.taskCount = behavior.form.taskCount;
  20134. }
  20135. this.$nextTick(() => {
  20136. if (this.$refs.choseWorksDetailDialogRef.show) {
  20137. //已经打开了
  20138. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20139. } else {
  20140. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20141. }
  20142. });
  20143. }else if(behavior.code === 2){
  20144. if(this.$refs.statisticalAnalysisRef.show){
  20145. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20146. }else{
  20147. this.$refs.statisticalAnalysisRef.open({
  20148. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20149. tType: this.tType,
  20150. toolIndex: behavior.form.toolIndex
  20151. });
  20152. }
  20153. }
  20154. } else {
  20155. }
  20156. }
  20157. },
  20158. updateSplitScreenData(empty = 0) {
  20159. return new Promise(resolve => {
  20160. if(this.userid!==this.courseDetail.userid){
  20161. if(!this.courseDetail.userid){
  20162. return setTimeout(()=>{
  20163. this.updateSplitScreenData(empty)
  20164. },2000)
  20165. }
  20166. return;
  20167. };
  20168. if (
  20169. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20170. this.splitScreenData.userId == this.userid
  20171. ) {
  20172. this.splitScreenData.loading = true;
  20173. let params = [
  20174. {
  20175. cid: this.id,
  20176. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20177. }
  20178. ];
  20179. this.ajax
  20180. .post(
  20181. this.$store.state.api + "update_courseSplitScreenData",
  20182. params
  20183. )
  20184. .then(res => {
  20185. this.splitScreenData.loading = false;
  20186. if (res.data == 1) {
  20187. resolve(1);
  20188. console.log("修改分屏数据成功");
  20189. }
  20190. })
  20191. .catch(e => {
  20192. this.splitScreenData.loading = false;
  20193. console.log("修改分屏数据失败", e);
  20194. resoleve(0);
  20195. });
  20196. } else if (empty == 2 && this.tType == 1) {
  20197. console.log("清空清空清空清空")
  20198. let params = [
  20199. {
  20200. cid: this.id,
  20201. nData: ""
  20202. }
  20203. ];
  20204. return this.ajax
  20205. .post(
  20206. this.$store.state.api + "update_courseSplitScreenData",
  20207. params
  20208. )
  20209. .then(_ => resolve(1))
  20210. .catch(_ => resolve(0));
  20211. } else {
  20212. return resolve(0);
  20213. }
  20214. });
  20215. },
  20216. changeSplitScreenBehavior(newValue) {
  20217. if (
  20218. this.splitScreenData.isOpen &&
  20219. this.splitScreenData.uid == this.splitScreenData.myUid
  20220. ) {
  20221. this.splitScreenData.behavior = newValue;
  20222. this.updateSplitScreenData(0);
  20223. }
  20224. },
  20225. studentFreePreview(flag) {
  20226. this.IsLookOpen = flag;
  20227. this.followingMode(flag)
  20228. this.updateLookOpen();
  20229. },
  20230. OpenJobPreview(flag) {
  20231. this.sIsOpen = flag;
  20232. this.updateSLook();
  20233. },
  20234. followingMode(flag) {
  20235. this.IsFollow = flag;
  20236. this.updateFollow();
  20237. }
  20238. },
  20239. directives: {
  20240. // 使用局部注册指令的方式
  20241. resize: {
  20242. // 指令的名称
  20243. bind(el, binding) {
  20244. // el为绑定的元素,binding为绑定给指令的对象
  20245. let width = "",
  20246. height = "";
  20247. function isReize() {
  20248. const style = document.defaultView.getComputedStyle(el);
  20249. if (width !== style.width || height !== style.height) {
  20250. binding.value(); // 关键
  20251. }
  20252. width = style.width;
  20253. height = style.height;
  20254. }
  20255. el.__vueSetInterval__ = setInterval(isReize, 300);
  20256. },
  20257. unbind(el) {
  20258. clearInterval(el.__vueSetInterval__);
  20259. },
  20260. },
  20261. autoHeight: {
  20262. update(el, binding) {
  20263. const { value } = binding
  20264. if (value && typeof value === 'number') {
  20265. el.style.height = `${value}px`
  20266. } else {
  20267. el.style.height = 'auto'
  20268. }
  20269. },
  20270. componentUpdated(el) {
  20271. el.style.height = `${el.scrollHeight}px`
  20272. },
  20273. },
  20274. },
  20275. beforeDestroy() {
  20276. window.onresize = null;
  20277. clearInterval(this.timer);
  20278. this.timer = null;
  20279. clearInterval(this.opertimer);
  20280. this.opertimer = null;
  20281. this.updateSplitScreenData(1);
  20282. },
  20283. computed: {
  20284. contentConvent() {
  20285. return function (c) {
  20286. return c
  20287. ? c
  20288. .replaceAll(/\r\n/g, "<br/>")
  20289. .replaceAll(/\n/g, "<br/>")
  20290. .replaceAll(/\s/g, " &nbsp")
  20291. : "";
  20292. };
  20293. },
  20294. commentRight(){
  20295. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20296. return "35px";
  20297. }
  20298. return `calc(${this.classRoomHelperWidth} + 5px)`
  20299. // if(this.$refs["classRoomHelperRef"].type==0){
  20300. // return "100px";
  20301. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20302. // return "502px"
  20303. // }else{
  20304. // return "0px"
  20305. // }
  20306. },
  20307. checkUpload() {
  20308. return function () {
  20309. var studentK = [];
  20310. if (this.plworkFile.length > 0) {
  20311. for (var z = 0; z < this.plworkFile.length; z++) {
  20312. studentK.push(this.plworkFile[z].username);
  20313. }
  20314. studentK = studentK.join(",");
  20315. }
  20316. var a = this.uploadStudentJuri.filter((el) => {
  20317. return studentK.indexOf(el.userid) == -1;
  20318. });
  20319. return a;
  20320. };
  20321. },
  20322. getSName() {
  20323. return function (name) {
  20324. var check = name;
  20325. this.uploadStudentJuri.forEach((el) => {
  20326. if (el.userid == check) {
  20327. check = el.name ? el.name : el.username;
  20328. }
  20329. });
  20330. return check;
  20331. };
  20332. },
  20333. getImgList() {
  20334. return function (val) {
  20335. let srcList = []; // 定义一个数组用来接收后面的img地址
  20336. val.replace(
  20337. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20338. function (match, capture) {
  20339. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20340. srcList.push(capture);
  20341. }
  20342. );
  20343. return srcList;
  20344. };
  20345. },
  20346. retrnToolHeight(){
  20347. return function (tool) {
  20348. var _tool = document.querySelectorAll('#'+tool)[0]
  20349. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20350. };
  20351. },
  20352. Correct() {
  20353. return function (c) {
  20354. let w = "";
  20355. let a = this.correctWord;
  20356. for(var k = 0;k<a.length;k++){
  20357. //diffWordsWithSpace
  20358. if(a.length > 1){
  20359. if(a[k].added == true){
  20360. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20361. }else if(a[k].removed == true){
  20362. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20363. }else{
  20364. w += '<span>' + a[k].value + '</span>';
  20365. }
  20366. }else{
  20367. w = c
  20368. }
  20369. //diffChars方法
  20370. // if(a.length > 1){
  20371. // if(w == ""){
  20372. // if(a[k].added == true){
  20373. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20374. // }else if(a[k].removed == true){
  20375. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20376. // }
  20377. // }else{
  20378. // if(k == a.length - 1){
  20379. // if(a[k].added == true){
  20380. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20381. // }else if(a[k].removed == true){
  20382. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20383. // }
  20384. // }else{
  20385. // if(a[k].added == true){
  20386. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20387. // }else if(a[k].removed == true){
  20388. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20389. // }
  20390. // }
  20391. // }
  20392. // }else{
  20393. // w = c
  20394. // }
  20395. }
  20396. c = w;
  20397. return c;
  20398. };
  20399. },
  20400. },
  20401. mounted() {
  20402. document.body.addEventListener("click", (e) => {
  20403. if (this.isUpdateToolDetail1) {
  20404. this.updateToolDetail(this.toolDetailIndex);
  20405. }
  20406. });
  20407. if (this.screenType == 2) {
  20408. window.parent.postMessage({ allScreen: 4 }, "*");
  20409. } else if (this.screenType == 3) {
  20410. window.parent.postMessage({ allScreen: 5 }, "*");
  20411. } else if (this.screenType == 1) {
  20412. window.parent.postMessage({ allScreen: 6 }, "*");
  20413. }
  20414. this.setOperationTime();
  20415. this.selectEva();
  20416. this.getCourseDetail();
  20417. this.selectCount();
  20418. this.getHomeWork();
  20419. this.selectUser();
  20420. this.getAIJ();
  20421. this.updateSplitScreenData(2);
  20422. this.splitScreenData.myUid = uuidv4();
  20423. this.contentDialog = true;
  20424. this.setContent2(true);
  20425. if (this.tType == 4) {
  20426. this.pzDialog = true;
  20427. this.selectPz();
  20428. }
  20429. // 获取评分列表
  20430. this.getScoreList()
  20431. document.scrollingElement.scrollTop = 0;
  20432. window.addEventListener("resize", () => {
  20433. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20434. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20435. if (this.showType == 2 || this.showType == 3) {
  20436. document.getElementsByClassName("navBox")[0].style.height =
  20437. a - 40 + 0+ "px";
  20438. } else {
  20439. document.getElementsByClassName("navBox")[0].style.height =
  20440. a - 40 + "px";
  20441. }
  20442. });
  20443. let _this = this;
  20444. setTimeout(() => {
  20445. // _this.vedioTime = [];
  20446. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20447. // _this.vedioTime[i] = document.getElementsByClassName(
  20448. // "vjs-duration-display"
  20449. // )[i].textContent;
  20450. // }
  20451. }, 1000);
  20452. },
  20453. };
  20454. </script>
  20455. <style scoped>
  20456. @media screen and (max-width: 1280px) {
  20457. /* .courseIndex > div:first-child(2) {
  20458. width: 15% !important;
  20459. } */
  20460. /* .navText {
  20461. width: 120px !important;
  20462. } */
  20463. .evaCss {
  20464. flex-direction: column !important;
  20465. align-items: center !important;
  20466. }
  20467. .elist_input {
  20468. width: 90% !important;
  20469. }
  20470. .dialog_diy1 >>> .el-dialog {
  20471. width: 100% !important;
  20472. }
  20473. .rightWidthCss {
  20474. width: 100% !important;
  20475. }
  20476. .dialog_diy3 >>> .el-dialog {
  20477. width: 100% !important;
  20478. }
  20479. .addToolCss {
  20480. right: 0 !important;
  20481. width: 100% !important;
  20482. min-width: unset !important;
  20483. }
  20484. }
  20485. .evaCssMax {
  20486. flex-direction: column !important;
  20487. align-items: center !important;
  20488. }
  20489. .dialog_diy >>> .el-dialog {
  20490. margin-top: 10vh !important;
  20491. }
  20492. .body_student {
  20493. width: 77%;
  20494. height: 100%;
  20495. position: absolute;
  20496. left: 22%;
  20497. top: 0;
  20498. }
  20499. .student_head {
  20500. width: 100%;
  20501. margin: 20px auto 0;
  20502. padding-bottom: 20px;
  20503. display: flex;
  20504. flex-direction: column;
  20505. flex-wrap: nowrap;
  20506. align-items: flex-start;
  20507. justify-content: flex-start;
  20508. }
  20509. .pb_left {
  20510. width: 20%;
  20511. margin-right: 10px;
  20512. background: rgb(255, 255, 255);
  20513. position: fixed;
  20514. height: calc(100% - 40px);
  20515. border-radius: 20px;
  20516. padding-bottom: 15px;
  20517. box-sizing: border-box;
  20518. }
  20519. .wheel > img,
  20520. .project > img,
  20521. .star > img,
  20522. .evaluate > img,
  20523. .up_photo > img,
  20524. .chapter_add > img,
  20525. .deleteWord > img,
  20526. .question > img,
  20527. .homework > img {
  20528. width: 100%;
  20529. height: 100%;
  20530. }
  20531. .upCover > img {
  20532. width: 131px;
  20533. height: 69px;
  20534. object-fit: cover;
  20535. }
  20536. .upCover {
  20537. width: calc(100% / 3.5);
  20538. position: relative;
  20539. margin: 0 15px 10px 0;
  20540. display: flex;
  20541. flex-direction: column;
  20542. flex-wrap: nowrap;
  20543. justify-content: center;
  20544. align-content: center;
  20545. align-items: center;
  20546. height: fit-content;
  20547. }
  20548. .upCover2 {
  20549. width: 100%;
  20550. position: relative;
  20551. margin: 0 15px 10px 0;
  20552. display: flex;
  20553. flex-direction: column;
  20554. flex-wrap: nowrap;
  20555. justify-content: center;
  20556. align-content: center;
  20557. align-items: center;
  20558. }
  20559. .upCover2 > img {
  20560. width: 100%;
  20561. height: 90px;
  20562. object-fit: contain;
  20563. }
  20564. .chapter_add {
  20565. width: 120px;
  20566. position: relative;
  20567. text-align: center;
  20568. }
  20569. .isAddThings {
  20570. margin-top: 20px;
  20571. position: relative;
  20572. text-align: center;
  20573. background: #f7f8fa;
  20574. height: 90px;
  20575. width: 90px;
  20576. display: flex;
  20577. flex-direction: column;
  20578. justify-content: center;
  20579. }
  20580. .deleteWord {
  20581. width: 22px;
  20582. height: 22px;
  20583. position: absolute;
  20584. right: -5px;
  20585. top: -5px;
  20586. cursor: pointer;
  20587. }
  20588. .box_course {
  20589. /* width: 60%; */
  20590. width: calc(100% - 300px);
  20591. }
  20592. .wheel {
  20593. width: 100%;
  20594. /* height: 100%; */
  20595. height: 650px;
  20596. }
  20597. .right_box {
  20598. display: flex;
  20599. flex-direction: column;
  20600. margin-left: 30px;
  20601. justify-content: space-around;
  20602. }
  20603. .right_box_title {
  20604. font-size: 23px;
  20605. }
  20606. .people {
  20607. display: flex;
  20608. }
  20609. .student_body {
  20610. width: 100%;
  20611. margin: 0 auto;
  20612. margin-top: 10px;
  20613. padding: 0 0 20px;
  20614. }
  20615. .study_top {
  20616. margin-top: 100px;
  20617. width: 100%;
  20618. height: auto;
  20619. padding-bottom: 20px;
  20620. }
  20621. .study_top .checkbox {
  20622. display: flex;
  20623. align-items: center;
  20624. padding: 15px 0 15px 30px;
  20625. flex: 0 0 auto;
  20626. font-weight: bold;
  20627. border-bottom: 1px solid #eee;
  20628. }
  20629. .study_top .check {
  20630. padding-bottom: 5px;
  20631. text-align: center;
  20632. cursor: pointer;
  20633. height: 30px;
  20634. box-sizing: border-box;
  20635. display: flex;
  20636. }
  20637. .study_top .checked {
  20638. border-bottom: 4px solid #3fc6a0;
  20639. padding-bottom: 5px;
  20640. color: #3fc6a0;
  20641. display: flex;
  20642. height: 35px;
  20643. }
  20644. .study_top .checked > div,
  20645. .study_top .check > div {
  20646. margin-right: 5px;
  20647. }
  20648. .videoTop {
  20649. display: flex;
  20650. flex-direction: row;
  20651. justify-content: space-between;
  20652. background: #fff;
  20653. align-items: center;
  20654. width: 95%;
  20655. padding: 20px;
  20656. }
  20657. .filebox {
  20658. display: flex;
  20659. flex-wrap: wrap;
  20660. flex-direction: column;
  20661. padding: 0 0 5px;
  20662. position: relative;
  20663. }
  20664. .filebox:before {
  20665. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20666. position: absolute;
  20667. top: 20px;
  20668. left: 13px;
  20669. border-left: 2px dotted #cad1dc;
  20670. height: calc(100% - 15px);
  20671. }
  20672. .toolHeng2 > div:last-child::before {
  20673. height: calc(100% - 43px);
  20674. }
  20675. .filebox .tooldetail {
  20676. width: calc(100%);
  20677. margin: 0px 12px;
  20678. padding: 12px;
  20679. line-height: 30px;
  20680. word-break: break-word;
  20681. background: #ffffff;
  20682. border-radius: 8px 8px 8px 8px;
  20683. opacity: 1;
  20684. border: 1px solid #cad1dc;
  20685. overflow:hidden;
  20686. box-sizing:border-box;
  20687. }
  20688. .file {
  20689. display: flex;
  20690. flex-direction: column;
  20691. align-items: center;
  20692. justify-content: center;
  20693. cursor: pointer;
  20694. width: 200px;
  20695. }
  20696. .file div {
  20697. margin-top: 10px;
  20698. width: 150px;
  20699. text-align: center;
  20700. overflow: hidden;
  20701. white-space: nowrap;
  20702. text-overflow: ellipsis;
  20703. }
  20704. .media {
  20705. display: flex;
  20706. flex-direction: column;
  20707. align-items: center;
  20708. justify-content: center;
  20709. margin: 0 20px 20px 0;
  20710. cursor: pointer;
  20711. margin: 12px 0 5px 15px;
  20712. overflow: hidden;
  20713. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20714. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20715. box-sizing: border-box;
  20716. }
  20717. .media img {
  20718. height: 90px;
  20719. width: 160px;
  20720. object-fit: cover;
  20721. }
  20722. .media .title {
  20723. padding: 5px;
  20724. text-align: left;
  20725. width: 100%;
  20726. box-sizing: border-box;
  20727. }
  20728. .media .btn {
  20729. width: 100%;
  20730. height: 35px;
  20731. line-height: 35px;
  20732. color: #fff;
  20733. background: #606060;
  20734. text-align: center;
  20735. overflow: hidden;
  20736. white-space: nowrap;
  20737. text-overflow: ellipsis;
  20738. }
  20739. .detail_content_top {
  20740. width: 100%;
  20741. padding: 25px 0 25px 0;
  20742. }
  20743. .detail_title {
  20744. text-align: center;
  20745. font-size: 24px;
  20746. }
  20747. .detail_time {
  20748. font-size: 13px;
  20749. padding: 15px 0 0 40px;
  20750. }
  20751. .detail_content {
  20752. line-height: 2pc;
  20753. width: 90%;
  20754. margin: 0 auto;
  20755. padding-top: 30px;
  20756. text-indent: 30px;
  20757. overflow: auto;
  20758. height: 200px;
  20759. }
  20760. .score_box >>> .el-rate {
  20761. margin-left: 10px;
  20762. }
  20763. .dialog_change >>> .el-dialog {
  20764. border-radius: 5px;
  20765. }
  20766. .dialog_change >>> .el-dialog__header {
  20767. background: #f2f2f2;
  20768. text-align: center;
  20769. }
  20770. .dialog_change >>> .el-dialog__title {
  20771. line-height: 5px;
  20772. }
  20773. .dialog_change >>> .el-dialog__body {
  20774. background: #fff;
  20775. padding: 10px 20px;
  20776. }
  20777. .score_box {
  20778. display: flex;
  20779. align-items: center;
  20780. margin-bottom: 18px;
  20781. margin-top: 20px;
  20782. }
  20783. .up_photo {
  20784. width: 120px;
  20785. cursor: pointer;
  20786. margin-top: 10px;
  20787. }
  20788. .up_photo2 {
  20789. width: 180px;
  20790. box-sizing: border-box;
  20791. min-width: 180px;
  20792. height: 180px;
  20793. max-height: 180px;
  20794. min-height: 180px;
  20795. cursor: pointer;
  20796. display: flex;
  20797. flex-direction: column;
  20798. align-items: center;
  20799. justify-content: center;
  20800. background: rgb(242, 246, 255);
  20801. /* padding: 25px; */
  20802. margin-bottom: 10px;
  20803. }
  20804. .up_photo2 img {
  20805. width: 50%;
  20806. height: auto;
  20807. }
  20808. .up_photo2 span {
  20809. color: #898989;
  20810. }
  20811. .plworkBox {
  20812. display: flex;
  20813. align-items: center;
  20814. margin-top: 10px;
  20815. flex-wrap: wrap;
  20816. }
  20817. .upload_send {
  20818. margin: 30px auto 30px;
  20819. width: 60%;
  20820. background: #3681fc;
  20821. text-align: center;
  20822. height: 35px;
  20823. line-height: 35px;
  20824. color: #fff;
  20825. border-radius: 5px;
  20826. cursor: pointer;
  20827. }
  20828. .marginT {
  20829. margin-top: 20px;
  20830. }
  20831. .cd_content_steps {
  20832. display: flex;
  20833. width: 90%;
  20834. justify-content: space-around;
  20835. border-top: 1px solid #eeeeee;
  20836. }
  20837. .cd_steps_box {
  20838. display: flex;
  20839. justify-content: center;
  20840. align-items: center;
  20841. flex-direction: column;
  20842. cursor: pointer;
  20843. }
  20844. .first {
  20845. display: flex;
  20846. align-items: center;
  20847. margin: 15px 0 20px 0;
  20848. font-size: 20px;
  20849. }
  20850. .first > div:nth-child(2) {
  20851. font-size: 16px !important;
  20852. padding-left: 10px;
  20853. line-height: 26px;
  20854. box-sizing: border-box;
  20855. }
  20856. .blue_box_one {
  20857. text-align: center;
  20858. color: #fff;
  20859. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20860. border-radius: 7px;
  20861. margin: 10px;
  20862. cursor: pointer;
  20863. width: 95%;
  20864. height: 45px;
  20865. display: flex;
  20866. flex-direction: row;
  20867. justify-content: flex-start;
  20868. align-items: center;
  20869. }
  20870. .blue_box_one > div:nth-child(1) {
  20871. line-height: 30px;
  20872. margin: 0 5px 0 10px;
  20873. width: 30%;
  20874. min-width: 70px;
  20875. border-radius: 4px;
  20876. }
  20877. .blue_box_one > div:nth-child(2) {
  20878. white-space: nowrap;
  20879. text-overflow: ellipsis;
  20880. overflow: hidden;
  20881. word-break: break-all;
  20882. width: 70%;
  20883. text-align: left;
  20884. margin-right: 10px;
  20885. max-width: calc(100% - 85px);
  20886. }
  20887. .blue_box_one > div:nth-child(2):hover {
  20888. overflow: hidden;
  20889. text-overflow: ellipsis;
  20890. white-space: nowrap;
  20891. cursor: pointer;
  20892. }
  20893. .upFile {
  20894. margin: 0 auto;
  20895. width: 120px;
  20896. background: #3681fc;
  20897. color: #fff;
  20898. height: 30px;
  20899. text-align: center;
  20900. line-height: 30px;
  20901. border-radius: 5px;
  20902. font-size: 14px;
  20903. cursor: pointer;
  20904. }
  20905. .courseTitle {
  20906. width: 85%;
  20907. margin: 10px auto 26px auto;
  20908. display: flex;
  20909. flex-direction: row;
  20910. align-items: center;
  20911. justify-content: space-between;
  20912. text-align: center;
  20913. }
  20914. .courseTitle .ctitle {
  20915. font-size: 20px;
  20916. font-weight: bold;
  20917. color: #0e1e33;
  20918. white-space: nowrap;
  20919. overflow: hidden;
  20920. text-overflow: ellipsis;
  20921. }
  20922. .inviteBox {
  20923. font-size: 14px;
  20924. /* margin-top: 5px; */
  20925. color: #00000099;
  20926. text-align: center;
  20927. }
  20928. .courseTitle >>> .el-tooltip {
  20929. width: 100%;
  20930. white-space: nowrap;
  20931. overflow: hidden;
  20932. text-overflow: ellipsis;
  20933. word-break: break-word;
  20934. }
  20935. .ml {
  20936. margin-left: 20px;
  20937. color: #5b7dba;
  20938. border-left: 3px solid #5b7dba;
  20939. padding-left: 5px;
  20940. font-weight: bold;
  20941. }
  20942. .return {
  20943. width: 2rem;
  20944. height: 2rem;
  20945. cursor: pointer;
  20946. }
  20947. .return > img {
  20948. width: 100%;
  20949. height: 100%;
  20950. }
  20951. .returnBtn {
  20952. width: 86px;
  20953. height: 36px;
  20954. background: #3681fc;
  20955. border-radius: 4px;
  20956. color: #fff;
  20957. text-align: center;
  20958. line-height: 36px;
  20959. margin-right: 20px;
  20960. cursor: pointer;
  20961. font-size: 14px;
  20962. font-weight: 400;
  20963. display: flex;
  20964. flex-direction: row;
  20965. flex-wrap: nowrap;
  20966. align-items: center;
  20967. justify-content: center;
  20968. }
  20969. .reBtnIcon,
  20970. .commentIcon,
  20971. .vedioIcon,
  20972. .vedioIcon1 {
  20973. /* width: 36px; */
  20974. height: 36px;
  20975. border-radius: 4px;
  20976. position: relative;
  20977. /* background: #e0eafb; */
  20978. background: #0061ff;
  20979. cursor: pointer;
  20980. margin-right: 12px;
  20981. display: flex;
  20982. align-items: center;
  20983. padding: 0 10px;
  20984. box-sizing: border-box;
  20985. font-size: 14px;
  20986. color: #fff;
  20987. }
  20988. .reBtnIcon::before,
  20989. .commentIcon::before,
  20990. .vedioIcon::before,
  20991. .vedioIcon1::before {
  20992. content: "";
  20993. display: block;
  20994. background-size: 100% 100%;
  20995. background-repeat: no-repeat;
  20996. width: 20px;
  20997. height: 20px;
  20998. margin-right: 5px;
  20999. /* position: absolute; */
  21000. /* top: 8px;
  21001. left: 8px; */
  21002. }
  21003. .vedioIcon1 {
  21004. background: #f63564;
  21005. }
  21006. .reBtnIcon::before {
  21007. background-image: url("../assets/icon/newIcons/refresh.png");
  21008. }
  21009. .commentIcon::before {
  21010. background-image: url("../assets/icon/newIcons/comment.png");
  21011. }
  21012. .vedioIcon::before {
  21013. background-image: url("../assets/icon/newIcons/transcribe.png");
  21014. }
  21015. .vedioIcon1::before {
  21016. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21017. background-image: url("../assets/icon/newIcons/transcribe.png");
  21018. }
  21019. .tool {
  21020. display: flex;
  21021. flex-direction: column;
  21022. flex-wrap: nowrap;
  21023. width: 13%;
  21024. margin: 0 30px;
  21025. align-items: center;
  21026. position: relative;
  21027. padding: 10px 25px;
  21028. cursor: pointer;
  21029. }
  21030. .whiteBIcon {
  21031. width: 150px;
  21032. }
  21033. .whiteBIcon > img {
  21034. width: 100%;
  21035. height: 100%;
  21036. }
  21037. .mask {
  21038. background-color: rgba(0, 0, 0, 0);
  21039. position: fixed;
  21040. top: 0;
  21041. left: 0;
  21042. width: 100%;
  21043. height: 100%;
  21044. z-index: 20000;
  21045. display: flex;
  21046. align-items: center;
  21047. justify-content: center;
  21048. }
  21049. .progressBox {
  21050. width: 500px;
  21051. height: 180px;
  21052. background: #fff;
  21053. border-radius: 10px;
  21054. box-shadow: 0 0 6px 1px #bfbfbf;
  21055. display: flex;
  21056. align-items: center;
  21057. justify-content: center;
  21058. flex-direction: column;
  21059. position: relative;
  21060. color: #6c6c6c;
  21061. }
  21062. .progressBox >>> .el-progress-bar__outer {
  21063. background-color: #d1dfff !important;
  21064. }
  21065. .progressBox .lbox {
  21066. height: 50px;
  21067. font-size: 19px;
  21068. display: flex;
  21069. align-items: center;
  21070. color: #747474;
  21071. }
  21072. .progressBox .lbox img {
  21073. width: 40px;
  21074. margin-right: 20px;
  21075. }
  21076. .closeCss {
  21077. position: absolute;
  21078. top: 8px;
  21079. right: 8px;
  21080. cursor: pointer;
  21081. width: 20px;
  21082. height: 20px;
  21083. }
  21084. .closeCss > img {
  21085. width: 100%;
  21086. height: 100%;
  21087. }
  21088. .uploadVedio {
  21089. display: flex;
  21090. flex-direction: column;
  21091. flex-wrap: nowrap;
  21092. justify-content: center;
  21093. align-items: center;
  21094. margin: 0 15px 10px 0;
  21095. }
  21096. .uploadVedio > img {
  21097. width: 30px;
  21098. height: 30px;
  21099. }
  21100. .uploadVedio > span {
  21101. white-space: nowrap;
  21102. overflow: hidden;
  21103. text-overflow: ellipsis;
  21104. width: 75px;
  21105. margin-top: 7px;
  21106. }
  21107. .picName {
  21108. white-space: nowrap;
  21109. overflow: hidden;
  21110. text-overflow: ellipsis;
  21111. width: 75px;
  21112. margin-top: 7px;
  21113. }
  21114. .new_top {
  21115. display: flex;
  21116. background: #fff;
  21117. flex-direction: row;
  21118. justify-content: flex-start;
  21119. align-items: center;
  21120. height: 60px;
  21121. position: fixed;
  21122. top: 20px;
  21123. left: 22%;
  21124. width: 77%;
  21125. z-index: 999;
  21126. border-radius: 12px 12px 0 0;
  21127. border-bottom: 1px solid #cad1dc;
  21128. padding: 10px 0;
  21129. }
  21130. .new_topFixed {
  21131. width: 100%;
  21132. height: 40px;
  21133. position: fixed;
  21134. top: 0px;
  21135. display: block;
  21136. background: #f2f2f2;
  21137. z-index: 998;
  21138. }
  21139. .before {
  21140. position: absolute;
  21141. background: #c3dad4;
  21142. width: 6px;
  21143. height: 100%;
  21144. }
  21145. .courseIndex {
  21146. display: flex;
  21147. flex-direction: row;
  21148. align-items: center;
  21149. width: calc(100% - 745px);
  21150. }
  21151. .courseIndex > div:nth-child(1) {
  21152. margin: 0 0 0 10px;
  21153. font-size: 20px;
  21154. min-width: 100px;
  21155. font-weight: bold;
  21156. border-left: 4px solid #3363b9;
  21157. height: 32px;
  21158. text-align: center;
  21159. line-height: 35px;
  21160. }
  21161. .courseIndex > div:nth-child(2) {
  21162. font-size: 20px;
  21163. /* width: 300px; */
  21164. max-width: calc(100% - 105px);
  21165. white-space: nowrap;
  21166. overflow: hidden;
  21167. text-overflow: ellipsis;
  21168. }
  21169. .courseIndex > div:nth-child(3) {
  21170. border-bottom: 1px solid #d7d7d7;
  21171. padding-bottom: 5px;
  21172. background: #3681fc;
  21173. width: 55px;
  21174. min-width: 55px;
  21175. border-radius: 5px;
  21176. color: #fff;
  21177. text-align: center;
  21178. height: 20px;
  21179. line-height: 26px;
  21180. font-size: 14px;
  21181. margin: 0 0 0 10px;
  21182. }
  21183. .course_text {
  21184. padding: 20px 0 0 15px;
  21185. text-indent: 30px;
  21186. width: 80%;
  21187. min-height: 20px;
  21188. }
  21189. .vedioList {
  21190. background: #f2f2f2;
  21191. border: 1px solid #ececec;
  21192. /* width: 38.8%; */
  21193. /* width: 300px; */
  21194. width: 100%;
  21195. height: 445px;
  21196. border-radius: 10px;
  21197. overflow: hidden;
  21198. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21199. }
  21200. .vedioNav {
  21201. margin: 10px 0 0 15px;
  21202. border-bottom: 1px solid #d7d7d7;
  21203. padding-bottom: 5px;
  21204. background: #3681fc;
  21205. width: 55px;
  21206. min-width: 55px;
  21207. border-radius: 5px;
  21208. color: #fff;
  21209. text-align: center;
  21210. height: 20px;
  21211. line-height: 26px;
  21212. font-size: 14px;
  21213. }
  21214. .queTop {
  21215. display: flex;
  21216. padding: 20px 0 20px 30px;
  21217. width: 100%;
  21218. flex-direction: row;
  21219. justify-content: flex-start;
  21220. align-items: center;
  21221. box-sizing: border-box;
  21222. }
  21223. .queTopTitle {
  21224. display: flex;
  21225. flex-direction: row;
  21226. flex-wrap: nowrap;
  21227. align-items: center;
  21228. font-weight: bold;
  21229. font-size: 20px;
  21230. color: rgb(14, 30, 51);
  21231. }
  21232. .queTopTitle::before {
  21233. content: "";
  21234. width: 2px;
  21235. height: 22px;
  21236. background: #3681fc;
  21237. border-radius: 3px;
  21238. display: block;
  21239. margin: 2px 6px 0 0;
  21240. }
  21241. .queTopRight {
  21242. display: flex;
  21243. flex-direction: row;
  21244. flex-wrap: nowrap;
  21245. align-items: center;
  21246. }
  21247. .queTopClose {
  21248. margin-right: 20px;
  21249. cursor: pointer;
  21250. position: relative;
  21251. display: flex;
  21252. }
  21253. .closeImg,
  21254. .openImg {
  21255. width: 25px;
  21256. height: 25px;
  21257. position: absolute;
  21258. left: -20px;
  21259. top: -1px;
  21260. }
  21261. .closeImg > img,
  21262. .openImg > img {
  21263. width: 100%;
  21264. height: 100%;
  21265. }
  21266. .question {
  21267. width: 40px;
  21268. margin-right: 10px;
  21269. margin-top: 7px;
  21270. }
  21271. .queTitle {
  21272. margin-left: 5px;
  21273. font-size: 25px;
  21274. display: flex;
  21275. align-items: center;
  21276. }
  21277. .addEditor {
  21278. width: 100px;
  21279. height: 30px;
  21280. background: #42cda6;
  21281. color: #fff;
  21282. border-radius: 5px;
  21283. text-align: center;
  21284. line-height: 30px;
  21285. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21286. cursor: pointer;
  21287. }
  21288. /* .vedioName {
  21289. cursor: pointer;
  21290. margin: 0px 0px 10px 5px;
  21291. white-space: nowrap;
  21292. overflow: hidden;
  21293. text-overflow: ellipsis;
  21294. width: 100%;
  21295. } */
  21296. .vedioTime {
  21297. width: 35px;
  21298. position: absolute;
  21299. color: #fff;
  21300. bottom: 0px;
  21301. right: 0px;
  21302. text-align: center;
  21303. background: #46411f;
  21304. height: 20px;
  21305. font-size: 14px;
  21306. line-height: 20px;
  21307. }
  21308. .homework {
  21309. width: 200px;
  21310. display: flex;
  21311. flex-direction: column;
  21312. flex-wrap: nowrap;
  21313. align-items: center;
  21314. cursor: pointer;
  21315. }
  21316. .homebox {
  21317. display: flex;
  21318. flex-wrap: wrap;
  21319. flex-direction: row;
  21320. justify-content: flex-start;
  21321. align-items: center;
  21322. padding: 15px 0;
  21323. }
  21324. .isChooseActive {
  21325. color: #3681fc !important;
  21326. font-weight: bold !important;
  21327. }
  21328. .chooseWho {
  21329. display: flex;
  21330. width: 100%;
  21331. flex-direction: row;
  21332. flex-wrap: nowrap;
  21333. justify-content: flex-start;
  21334. padding-bottom: 10px;
  21335. }
  21336. .chooseWho > div {
  21337. cursor: pointer;
  21338. padding-bottom: 10px;
  21339. margin: 0 30px 0 0;
  21340. font-weight: 400;
  21341. color: #0e1e33;
  21342. }
  21343. .addPoint > div > img {
  21344. cursor: pointer;
  21345. width: 85px;
  21346. border-radius: 15px;
  21347. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21348. }
  21349. .addPoint > div {
  21350. display: flex;
  21351. flex-direction: column;
  21352. flex-wrap: nowrap;
  21353. align-items: center;
  21354. }
  21355. .isBorder > div {
  21356. margin: 0 0 10px 0;
  21357. align-items: flex-start !important;
  21358. }
  21359. .noiframeBox {
  21360. display: flex;
  21361. flex-wrap: wrap;
  21362. }
  21363. .iframeBox iframe {
  21364. width: 100%;
  21365. height: 800px;
  21366. border: none;
  21367. margin-bottom: 20px;
  21368. border: 1px solid #ccc;
  21369. }
  21370. .upload_toolBtn {
  21371. background: #3681fc;
  21372. color: #fff;
  21373. width: 110px;
  21374. text-align: center;
  21375. height: 35px;
  21376. line-height: 35px;
  21377. font-size: 14px;
  21378. border-radius: 5px;
  21379. cursor: pointer;
  21380. position: absolute;
  21381. right: 10px;
  21382. bottom: 0;
  21383. }
  21384. .binfo_input,
  21385. .pj {
  21386. font: inherit;
  21387. color: currentColor;
  21388. width: 100%;
  21389. margin: 0;
  21390. padding: 15px 14px;
  21391. display: block;
  21392. min-width: 0;
  21393. outline: none;
  21394. box-sizing: content-box;
  21395. background: none;
  21396. -webkit-tap-highlight-color: transparent;
  21397. border: 1px solid rgba(0, 0, 0, 0.23);
  21398. border-radius: 4px;
  21399. box-sizing: border-box;
  21400. resize: none;
  21401. }
  21402. .binfo_input:focus-visible {
  21403. border: 1px solid rgba(61, 103, 188);
  21404. }
  21405. .dialog_diy >>> .el-dialog__header,
  21406. .dialog_diy1 >>> .el-dialog__header {
  21407. background: #454545 !important;
  21408. padding: 15px 20px;
  21409. }
  21410. .dialog_diy >>> .el-dialog__title,
  21411. .dialog_diy1 >>> .el-dialog__title {
  21412. color: #fff;
  21413. }
  21414. .dialog_diy >>> .el-dialog__headerbtn,
  21415. .dialog_diy1 >>> .el-dialog__headerbtn {
  21416. top: 19px;
  21417. }
  21418. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21419. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21420. color: #fff;
  21421. }
  21422. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21423. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21424. color: #fff;
  21425. }
  21426. .dialog_diy1 >>> .el-dialog__body {
  21427. padding: 0;
  21428. }
  21429. .dialog_diy >>> .el-dialog__body,
  21430. .dialog_diy >>> .el-dialog__footer,
  21431. .dialog_diy1 >>> .el-dialog__footer {
  21432. background: #fafafa;
  21433. }
  21434. .a_addBox {
  21435. padding: 0 0 0 15px;
  21436. }
  21437. .a_add_box {
  21438. padding: 10px;
  21439. background: #fff;
  21440. margin-bottom: 10px;
  21441. border-radius: 5px;
  21442. box-shadow: 0 0 5px 0 #d5d5d5;
  21443. }
  21444. .a_add_head {
  21445. display: flex;
  21446. align-items: flex-start;
  21447. /* justify-content: space-between; */
  21448. flex-direction: column;
  21449. /* flex-direction: row; */
  21450. margin: 10px 0 20px 0;
  21451. font-size: 18px;
  21452. width: 100%;
  21453. }
  21454. .askIndex {
  21455. background: #3681fc;
  21456. border-radius: 50%;
  21457. color: #fff;
  21458. width: 25px;
  21459. height: 25px;
  21460. min-width: 25px;
  21461. min-height: 25px;
  21462. text-align: center;
  21463. line-height: 25px;
  21464. margin-right: 5px;
  21465. }
  21466. .a_add_head .a_add_head_input {
  21467. width: 300px;
  21468. }
  21469. .a_add_head .a_add_head_div {
  21470. display: flex;
  21471. align-items: center;
  21472. justify-content: space-between;
  21473. }
  21474. .a_add_body {
  21475. display: flex;
  21476. align-items: center;
  21477. }
  21478. .a_add_input {
  21479. display: flex;
  21480. align-items: center;
  21481. flex-wrap: wrap;
  21482. width: 100%;
  21483. }
  21484. .a_add_input >>> .el-radio-group,
  21485. .a_add_input >>> .el-checkbox-group {
  21486. width: 100%;
  21487. }
  21488. .a_add_input >>> .el-radio,
  21489. .a_add_input >>> .el-checkbox {
  21490. display: flex;
  21491. flex-direction: row;
  21492. flex-wrap: nowrap;
  21493. align-items: center;
  21494. padding: 15px 0;
  21495. }
  21496. .a_add_input >>> .el-radio:not(:last-child),
  21497. .a_add_input >>> .el-checkbox:not(:last-child) {
  21498. width: 100%;
  21499. border-bottom: 1px solid #efefef;
  21500. }
  21501. .redioStyle >>> .el-radio__label {
  21502. font-size: 18px;
  21503. }
  21504. .redioStyle >>> .el-radio__label > span,
  21505. .redioStyle >>> .el-checkbox__label > span {
  21506. word-break: break-all;
  21507. white-space: normal;
  21508. }
  21509. .redioStyle >>> .el-checkbox__label {
  21510. font-size: 18px;
  21511. }
  21512. .toolHeng2 {
  21513. width: 100%;
  21514. padding-left: 15px;
  21515. box-sizing: border-box;
  21516. }
  21517. .workNav {
  21518. font-size: 20px;
  21519. font-weight: bold;
  21520. color: #0e1e33;
  21521. display: flex;
  21522. flex-direction: row;
  21523. flex-wrap: nowrap;
  21524. align-items: center;
  21525. padding: 15px 0 15px 0;
  21526. }
  21527. .workNav::before {
  21528. content: "";
  21529. width: 2px;
  21530. height: 22px;
  21531. background: #3681fc;
  21532. border-radius: 3px;
  21533. display: block;
  21534. margin: 2px 6px 0 0;
  21535. }
  21536. .toolHeng {
  21537. display: flex;
  21538. flex-direction: row;
  21539. flex-wrap: wrap;
  21540. justify-content: flex-start;
  21541. align-items: center;
  21542. width: 100%;
  21543. }
  21544. .toolHeng > div {
  21545. padding-left: 20px;
  21546. }
  21547. .isWidth {
  21548. width: 20%;
  21549. }
  21550. .textTitle {
  21551. display: flex;
  21552. flex-direction: row;
  21553. flex-wrap: nowrap;
  21554. align-items: center;
  21555. width: 95%;
  21556. }
  21557. .textTitle >>> .el-form-item__label {
  21558. font-size: 22px;
  21559. color: #918f8f;
  21560. width: 100px;
  21561. }
  21562. .textTitle >>> .el-form-item__content {
  21563. width: calc(100% - 100px);
  21564. }
  21565. .textCss >>> .el-dialog {
  21566. width: 800px !important;
  21567. height: 400px;
  21568. background: #fafafa;
  21569. }
  21570. .textCss >>> .el-dialog__body {
  21571. margin: 55px 8% 0 8%;
  21572. padding: 0 !important;
  21573. }
  21574. .textCss >>> .el-dialog__footer {
  21575. padding-top: 38px;
  21576. }
  21577. .toolsCss >>> .el-dialog__body {
  21578. padding: 20px;
  21579. }
  21580. .lineCss >>> .el-dialog__body {
  21581. display: flex;
  21582. flex-direction: row;
  21583. align-items: center;
  21584. justify-content: center;
  21585. }
  21586. .newNav {
  21587. display: flex;
  21588. flex-direction: row;
  21589. align-items: baseline;
  21590. justify-content: flex-start;
  21591. }
  21592. .navListItem {
  21593. width: calc(100% - 20px);
  21594. height: 50px;
  21595. margin: 0px auto 10px;
  21596. display: flex;
  21597. flex-direction: row;
  21598. flex-wrap: nowrap;
  21599. align-items: center;
  21600. justify-content: space-between;
  21601. background: #f0f4fa;
  21602. border-radius: 6px 6px 6px 6px;
  21603. }
  21604. .navText {
  21605. cursor: pointer;
  21606. white-space: nowrap;
  21607. overflow: hidden;
  21608. text-overflow: ellipsis;
  21609. width: 220px;
  21610. padding: 0 10px;
  21611. font-weight: 400;
  21612. color: #0e1e33;
  21613. }
  21614. .downIcon {
  21615. width: 20px;
  21616. min-width: 20px;
  21617. height: 20px;
  21618. margin-right: 15px;
  21619. cursor: pointer;
  21620. }
  21621. .downIcon > img {
  21622. width: 100%;
  21623. height: 100%;
  21624. }
  21625. .noVedio {
  21626. display: flex;
  21627. flex-direction: row;
  21628. justify-content: center;
  21629. align-content: center;
  21630. }
  21631. .noNavText {
  21632. cursor: pointer;
  21633. margin: 0px 0px 10px 5px;
  21634. width: 112px;
  21635. }
  21636. .listNoVedio {
  21637. margin: 0 0 0 30px;
  21638. width: 97%;
  21639. }
  21640. .video-player >>> .video-js {
  21641. height: 100%;
  21642. }
  21643. .hangVedioList {
  21644. width: 90% !important;
  21645. height: 150px !important;
  21646. margin: 20px 0 0 30px;
  21647. }
  21648. .hangVedio {
  21649. width: 100%;
  21650. height: 170px !important;
  21651. align-items: flex-start !important;
  21652. }
  21653. .hangHand {
  21654. height: 150px !important;
  21655. }
  21656. .twoChild {
  21657. width: 95%;
  21658. margin: 10px;
  21659. border-radius: 5px;
  21660. background: #f2f2f2;
  21661. display: flex;
  21662. flex-direction: column;
  21663. flex-wrap: nowrap;
  21664. justify-content: flex-start;
  21665. align-items: flex-start;
  21666. transition: all 0.5s;
  21667. overflow: hidden;
  21668. height: 0;
  21669. background: #e7f3ff;
  21670. }
  21671. .twoChild > div:nth-child(1) {
  21672. margin-top: 5px;
  21673. }
  21674. .navChild {
  21675. width: 100%;
  21676. cursor: pointer;
  21677. margin-bottom: 10px;
  21678. position: relative;
  21679. }
  21680. .navChild img {
  21681. position: absolute;
  21682. right: 11px;
  21683. width: 15px;
  21684. top: 50%;
  21685. transform: translateY(-50%);
  21686. }
  21687. .navActive,
  21688. .toolActive {
  21689. height: auto !important;
  21690. overflow: auto !important;
  21691. /* padding-bottom: 16px; */
  21692. }
  21693. .toolActive {
  21694. padding: 0;
  21695. }
  21696. .navTask {
  21697. display: flex;
  21698. flex-direction: row;
  21699. flex-wrap: nowrap;
  21700. align-items: center;
  21701. align-content: flex-start;
  21702. height: 40px;
  21703. justify-content: flex-start;
  21704. padding: 0 10px;
  21705. width: 100%;
  21706. box-sizing: border-box;
  21707. }
  21708. .navTaskname {
  21709. white-space: nowrap;
  21710. text-overflow: ellipsis;
  21711. overflow: hidden;
  21712. word-break: break-all;
  21713. padding-left: 5px;
  21714. }
  21715. .openTaskActive {
  21716. /* background-color: #e0eafb !important;
  21717. color: #0061ff; */
  21718. color:#fff;
  21719. background: rgb(55, 129, 252) !important;
  21720. }
  21721. .iframeName {
  21722. margin: 5px 0;
  21723. border-left: 4px solid #41c4a4;
  21724. padding-left: 4px;
  21725. }
  21726. .toolTitle {
  21727. margin: 0px 0px 20px;
  21728. font-size: 20px;
  21729. font-weight: 500;
  21730. border-left: 4px solid #41c4a4;
  21731. padding-left: 4px;
  21732. }
  21733. .cru_selectBox {
  21734. overflow: auto;
  21735. width: 95%;
  21736. margin: 17px auto 0;
  21737. height: calc(100% - 40px - 21px - 20px - 17px);
  21738. background: #fff;
  21739. border-radius: 8px;
  21740. }
  21741. .cru_selectBox::-webkit-scrollbar,
  21742. .study_top::-webkit-scrollbar,
  21743. .textContent::-webkit-scrollbar {
  21744. /*滚动条整体样式*/
  21745. width: 6px;
  21746. /*高宽分别对应横竖滚动条的尺寸*/
  21747. height: 6px;
  21748. }
  21749. /*定义滚动条轨道 内阴影+圆角*/
  21750. .cru_selectBox::-webkit-scrollbar-track,
  21751. .study_top::-webkit-scrollbar-track,
  21752. .textContent::-webkit-scrollbar {
  21753. border-radius: 10px;
  21754. background-color: #b8bdc9;
  21755. }
  21756. /*定义滑块 内阴影+圆角*/
  21757. .cru_selectBox::-webkit-scrollbar-thumb,
  21758. .study_top::-webkit-scrollbar-thumb,
  21759. .textContent::-webkit-scrollbar-thumb {
  21760. border-radius: 10px;
  21761. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21762. background-color: #2c5ab3;
  21763. }
  21764. .vedioBox {
  21765. border-radius: 0 0 20px 20px;
  21766. background: #fff;
  21767. overflow: auto;
  21768. }
  21769. .taskBox {
  21770. width: 98%;
  21771. background: #f0f4fa;
  21772. margin: 10px auto;
  21773. padding: 0 10px;
  21774. border-radius: 4px;
  21775. box-sizing: border-box;
  21776. }
  21777. .vedioTaskBox {
  21778. width: 100%;
  21779. display: flex;
  21780. flex-direction: row;
  21781. flex-wrap: nowrap;
  21782. align-items: flex-start;
  21783. position: relative;
  21784. }
  21785. .toolBox {
  21786. margin: 15px 0 0 25px;
  21787. display: flex;
  21788. position: relative;
  21789. padding: 18px 20px;
  21790. border-top-left-radius: 5px;
  21791. border-top-right-radius: 5px;
  21792. width: 90%;
  21793. }
  21794. .btnAll {
  21795. position: absolute;
  21796. right: 0;
  21797. display: flex;
  21798. flex-direction: row;
  21799. flex-wrap: nowrap;
  21800. align-items: center;
  21801. }
  21802. .btnLeft,
  21803. .btnRight {
  21804. display: flex;
  21805. flex-direction: row;
  21806. flex-wrap: nowrap;
  21807. align-items: center;
  21808. padding: 5px 0;
  21809. }
  21810. .btnLeft {
  21811. border-right: 1px solid #cad1dc;
  21812. }
  21813. .btnLeft > .custom-tooltip {
  21814. background: #3681fc;
  21815. color: #fff;
  21816. }
  21817. .last:hover {
  21818. background: #3383fa !important;
  21819. color: #fff;
  21820. border: 1px solid #3383fa !important;
  21821. }
  21822. .last,
  21823. .returnBtn1 {
  21824. width: 90px;
  21825. height: 36px;
  21826. background: #ffffff;
  21827. border-radius: 4px;
  21828. border: 1px solid #0061ff;
  21829. color: #0061ff;
  21830. cursor: pointer;
  21831. display: flex;
  21832. flex-direction: row;
  21833. flex-wrap: nowrap;
  21834. align-items: center;
  21835. justify-content: center;
  21836. margin-left: 12px;
  21837. }
  21838. .returnBtn1 {
  21839. background: #f0f4fa;
  21840. border-radius: 4px;
  21841. border: 1px solid #cad1dc;
  21842. margin: 0 12px;
  21843. }
  21844. .lastImg {
  21845. min-width: 15px;
  21846. width: 15px;
  21847. height: 15px;
  21848. display: flex;
  21849. }
  21850. .lastText {
  21851. padding: 0 5px 0 5px;
  21852. box-sizing: border-box;
  21853. font-size: 14px;
  21854. }
  21855. .lastImg > img {
  21856. width: 100%;
  21857. height: 100%;
  21858. }
  21859. /* .vedioTimeBox {
  21860. display: flex;
  21861. flex-direction: row;
  21862. align-items: center;
  21863. flex-wrap: nowrap;
  21864. position: relative;
  21865. } */
  21866. .navBox {
  21867. background: #fff;
  21868. height: calc(100% - 40px);
  21869. overflow-y: auto;
  21870. overflow-x: hidden;
  21871. }
  21872. .worksBox {
  21873. margin: 0 0 10px 25px;
  21874. border-bottom: 1px solid #eeeeee;
  21875. padding: 18px 20px;
  21876. border-radius: 4px;
  21877. width: 90%;
  21878. }
  21879. .worksBTitle {
  21880. font-size: 20px;
  21881. padding-bottom: 15px;
  21882. border-bottom: 1px solid #eeeeee;
  21883. display: flex;
  21884. align-items: center;
  21885. }
  21886. .greenBox {
  21887. width: 5px;
  21888. height: 30px;
  21889. background: #63b6fa;
  21890. margin-right: 5px;
  21891. }
  21892. .worksDetailBox {
  21893. display: flex;
  21894. width: 100%;
  21895. flex-direction: row;
  21896. flex-wrap: wrap;
  21897. align-items: flex-end;
  21898. justify-content: flex-start;
  21899. padding: 15px 5px;
  21900. box-sizing: border-box;
  21901. }
  21902. .works {
  21903. display: flex;
  21904. flex-direction: column;
  21905. flex-wrap: nowrap;
  21906. align-items: flex-start;
  21907. justify-content: flex-start;
  21908. align-content: center;
  21909. max-width: 240px;
  21910. width: calc(100% / 3 - 10px);
  21911. height: auto;
  21912. margin-right: 10px;
  21913. margin-bottom: 10px;
  21914. overflow: hidden;
  21915. height: 140px;
  21916. box-shadow: 0 0 6px 1px #dfdada;
  21917. border-radius: 15px;
  21918. }
  21919. .workImg {
  21920. width: 100%;
  21921. /* height: calc(100% - 40px); */
  21922. height: 105px;
  21923. position: relative;
  21924. }
  21925. .workImg > img {
  21926. width: 100%;
  21927. height: 100%;
  21928. object-fit: contain;
  21929. cursor: pointer;
  21930. }
  21931. .worksName {
  21932. height: 40px;
  21933. line-height: 40px;
  21934. display: flex;
  21935. width: 100%;
  21936. flex-direction: row;
  21937. flex-wrap: nowrap;
  21938. justify-content: space-between;
  21939. align-items: center;
  21940. margin: 0 0 0 10px;
  21941. }
  21942. .worksName > div:nth-child(1) {
  21943. width: 110px;
  21944. white-space: nowrap;
  21945. overflow: hidden;
  21946. text-overflow: ellipsis;
  21947. }
  21948. .worksName > div:nth-child(2) {
  21949. color: #b7b4b5;
  21950. }
  21951. .noWorksS {
  21952. padding: 15px 0;
  21953. display: flex;
  21954. flex-direction: row;
  21955. flex-wrap: wrap;
  21956. align-items: center;
  21957. justify-content: flex-start;
  21958. }
  21959. .noWorksName,
  21960. .isWorksName,
  21961. .isWorksName2 {
  21962. background: #ddebf8;
  21963. color: #000;
  21964. width: 90px;
  21965. height: 25px;
  21966. text-align: center;
  21967. line-height: 25px;
  21968. border-radius: 4px;
  21969. margin: 10px 15px 10px 0;
  21970. white-space: nowrap;
  21971. overflow: hidden;
  21972. padding: 5px;
  21973. text-overflow: ellipsis;
  21974. cursor: pointer;
  21975. border: 1px solid #ddebf8;
  21976. }
  21977. .noWorksName {
  21978. background: #fff;
  21979. color: #0061ff;
  21980. border: 1px solid #0061ff;
  21981. }
  21982. .noWorksName > span{
  21983. max-width: 100%;
  21984. display: block;
  21985. overflow: hidden;
  21986. text-overflow: ellipsis;
  21987. white-space: nowrap;
  21988. }
  21989. .isWorksName2 {
  21990. width: 100px;
  21991. height: 40px;
  21992. line-height: 40px;
  21993. position: relative;
  21994. background: #dae6f9;
  21995. }
  21996. .isWorksName {
  21997. background: #e7ebf1 !important;
  21998. width: 100px;
  21999. height: 40px;
  22000. line-height: 40px;
  22001. position: relative;
  22002. color: #acb4bf;
  22003. border: 1px solid #cad1dc !important;
  22004. }
  22005. .isSelectName,
  22006. .noWorksName:hover {
  22007. background: #3383fa !important;
  22008. color: #fff !important;
  22009. border: 1px solid #3383fa !important;
  22010. }
  22011. .title {
  22012. background: #1e5cc9;
  22013. /* width: 98%; */
  22014. height: 45px;
  22015. color: #fff;
  22016. line-height: 45px;
  22017. padding-left: 20px;
  22018. box-sizing: border-box;
  22019. }
  22020. .textBox {
  22021. font-size: 20px;
  22022. width: 90%;
  22023. display: flex;
  22024. flex-direction: column;
  22025. align-items: center;
  22026. margin: 20px auto 0;
  22027. max-height: calc(100% - 75px);
  22028. overflow: auto;
  22029. }
  22030. .textContent {
  22031. font-size: 18px;
  22032. width: 95%;
  22033. max-width: 95%;
  22034. }
  22035. .answerBg {
  22036. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22037. background-size: 100% 100%;
  22038. width: 100%;
  22039. height: 100%;
  22040. color: #fff;
  22041. text-align: center;
  22042. display: flex;
  22043. flex-direction: column;
  22044. flex-wrap: nowrap;
  22045. align-items: center;
  22046. position: relative;
  22047. justify-content: center;
  22048. }
  22049. .answerBg > div:nth-child(1) {
  22050. /* font-size: 22px;
  22051. padding: 25px 0 10px; */
  22052. }
  22053. .answerContent {
  22054. width: 215px;
  22055. max-height: 60px;
  22056. word-break: break-all;
  22057. text-align: center;
  22058. /* white-space: nowrap; */
  22059. overflow: hidden;
  22060. text-overflow: ellipsis;
  22061. /* padding: 23px 0 0; */
  22062. -webkit-line-clamp: 3;
  22063. -webkit-box-orient: vertical;
  22064. display: -webkit-box;
  22065. font-size: 15px;
  22066. cursor: pointer;
  22067. }
  22068. .elist_input_box {
  22069. display: flex;
  22070. align-items: flex-start;
  22071. flex-wrap: nowrap;
  22072. padding: 10px 0 15px 30px;
  22073. flex-direction: column;
  22074. }
  22075. .elist_input {
  22076. /* width: 40%; */
  22077. width: 45%;
  22078. margin: 20px;
  22079. }
  22080. .elist_input .elist_input_box input {
  22081. font: inherit;
  22082. color: currentColor;
  22083. width: 200px;
  22084. padding: 8px 14px;
  22085. display: block;
  22086. min-width: 0;
  22087. outline: none;
  22088. border: 1px solid rgba(0, 0, 0, 0.23);
  22089. border-radius: 4px;
  22090. box-sizing: border-box;
  22091. background: #fff;
  22092. margin: 0 20px 0 0;
  22093. }
  22094. .elist_input .elist_input_box span {
  22095. height: 36px;
  22096. line-height: 36px;
  22097. color: rgb(82, 82, 82);
  22098. }
  22099. .elist_input .elist_input_box .remove {
  22100. height: 20px;
  22101. width: 20px;
  22102. background-size: 100% 100%;
  22103. background-position: unset;
  22104. margin-left: 5px;
  22105. }
  22106. .elist_input_box >>> .el-rate {
  22107. display: flex;
  22108. height: 36px;
  22109. align-items: center;
  22110. }
  22111. .elist_input_box .elist_inptu_text {
  22112. min-height: 50px;
  22113. /* width: 500px;
  22114. max-height: 150px; */
  22115. width: 100%;
  22116. line-height: 50px;
  22117. color: rgb(82, 82, 82);
  22118. overflow: auto;
  22119. text-indent: 5px;
  22120. background: #f7f6f9;
  22121. border-radius: 10px;
  22122. }
  22123. .elist_input_box .elist_inptu_text input {
  22124. width: 500px;
  22125. }
  22126. .elist_input_box >>> .el-rate__icon {
  22127. font-size: 24px;
  22128. }
  22129. .isClick {
  22130. background: #4d9def;
  22131. }
  22132. .bzBox {
  22133. display: flex;
  22134. flex-direction: row;
  22135. align-items: center;
  22136. }
  22137. .bzBox .yCss {
  22138. width: 7px;
  22139. height: 7px;
  22140. background: #fff;
  22141. margin: 0 16px 0 6px;
  22142. border-radius: 50%;
  22143. border: 5px solid #3681fc;
  22144. z-index: 99;
  22145. }
  22146. .bzBox > div:nth-child(2) {
  22147. font-size: 18px;
  22148. font-weight: bold;
  22149. color: #0e1e33;
  22150. }
  22151. .navTitile {
  22152. padding: 0 0px 0 15px;
  22153. font-size: 16px;
  22154. font-weight: bold;
  22155. color: #0e1e33;
  22156. height: 40px;
  22157. line-height: 40px;
  22158. }
  22159. .isTypeOne {
  22160. width: 240px;
  22161. height: 170px;
  22162. /* border: 1px solid #f8f8f8; */
  22163. border-radius: 10px;
  22164. box-shadow: 0 0 6px 1px #dfdada;
  22165. }
  22166. .e_add_top {
  22167. display: flex;
  22168. justify-content: space-between;
  22169. padding: 10px 20px;
  22170. border-radius: 3px;
  22171. background: #fff;
  22172. }
  22173. .e_add_title2 {
  22174. display: flex;
  22175. align-items: center;
  22176. }
  22177. .e_add_title2 span {
  22178. width: 40px;
  22179. }
  22180. .e_add_title {
  22181. display: flex;
  22182. align-items: center;
  22183. color: #b8b8b8;
  22184. font-size: 18px;
  22185. position: relative;
  22186. height: 40px;
  22187. width: 100%;
  22188. }
  22189. .e_add_title span {
  22190. margin-right: 10px;
  22191. }
  22192. .e_add_title .el_input {
  22193. width: 300px;
  22194. }
  22195. .e_add_title >>> .el-input__inner {
  22196. width: 400px;
  22197. }
  22198. .e_add_btn {
  22199. }
  22200. .e_add_content {
  22201. display: flex;
  22202. width: 100%;
  22203. max-width: 650px;
  22204. height: 550px;
  22205. }
  22206. .e_add_list {
  22207. background: #fff;
  22208. height: 500px;
  22209. width: 210px;
  22210. position: relative;
  22211. margin: 15px 5px 0 0;
  22212. flex-shrink: 0;
  22213. display: flex;
  22214. flex-direction: column;
  22215. }
  22216. .e_add_list_title {
  22217. font-size: 20px;
  22218. width: 100%;
  22219. box-sizing: border-box;
  22220. padding: 15px 40px;
  22221. text-align: center;
  22222. border-bottom: 1px solid #eaeaea;
  22223. position: relative;
  22224. display: flex;
  22225. align-items: center;
  22226. justify-content: center;
  22227. height: 57px;
  22228. background: #f6f6f6;
  22229. }
  22230. .e_add_list_title span {
  22231. overflow: hidden;
  22232. white-space: nowrap;
  22233. text-overflow: ellipsis;
  22234. }
  22235. .e_add_list_title img {
  22236. position: absolute;
  22237. right: 15px;
  22238. width: 25px;
  22239. cursor: pointer;
  22240. top: 50%;
  22241. transform: translateY(-50%);
  22242. }
  22243. .e_add_list_body {
  22244. height: calc(100% - 187px);
  22245. overflow: auto;
  22246. }
  22247. .e_add_list_child {
  22248. width: 100%;
  22249. display: flex;
  22250. align-items: center;
  22251. justify-content: center;
  22252. position: relative;
  22253. box-sizing: border-box;
  22254. padding: 15px 40px;
  22255. text-align: center;
  22256. }
  22257. .e_add_list_child span {
  22258. overflow: hidden;
  22259. white-space: nowrap;
  22260. text-overflow: ellipsis;
  22261. cursor: pointer;
  22262. }
  22263. .e_add_list_child img {
  22264. position: absolute;
  22265. right: 10px;
  22266. width: 21px;
  22267. cursor: pointer;
  22268. top: 50%;
  22269. transform: translateY(-50%);
  22270. }
  22271. .e_add_list_child + .e_add_list_child {
  22272. border-top: 1px solid #eaeaea;
  22273. }
  22274. .e_add_list_child .active {
  22275. color: #409eff;
  22276. }
  22277. .e_add_list_btn {
  22278. position: absolute;
  22279. bottom: 0;
  22280. height: 50px;
  22281. background: rgb(120, 120, 254);
  22282. width: 100%;
  22283. color: #fff;
  22284. font-size: 16px;
  22285. text-align: center;
  22286. line-height: 50px;
  22287. cursor: pointer;
  22288. }
  22289. .e_add_list_detail {
  22290. position: absolute;
  22291. bottom: 0;
  22292. height: 130px;
  22293. background: rgb(120, 120, 254);
  22294. width: 100%;
  22295. color: #fff;
  22296. font-size: 16px;
  22297. display: flex;
  22298. align-items: center;
  22299. justify-content: center;
  22300. }
  22301. .e_add_list_detail textarea {
  22302. height: 90%;
  22303. width: 95%;
  22304. border: none;
  22305. resize: none;
  22306. outline: none;
  22307. padding: 5px;
  22308. box-sizing: border-box;
  22309. }
  22310. .e_add_list_pbox {
  22311. width: 100%;
  22312. max-width: 650px;
  22313. /* height: 600px; */
  22314. }
  22315. .e_add_list_pbox_title {
  22316. height: 50px;
  22317. background: #fff;
  22318. display: flex;
  22319. align-items: center;
  22320. width: 100%;
  22321. box-sizing: border-box;
  22322. padding: 0 20px;
  22323. }
  22324. .type_title {
  22325. font-size: 18px;
  22326. font-weight: 700;
  22327. }
  22328. .type_content {
  22329. font-size: 16px;
  22330. /* margin-left: 30px; */
  22331. }
  22332. .type_content span + span {
  22333. margin-left: 20px;
  22334. }
  22335. .type_content span {
  22336. cursor: pointer;
  22337. padding-bottom: 5px;
  22338. box-sizing: border-box;
  22339. }
  22340. .type_content .active {
  22341. color: #409eff;
  22342. border-bottom: 2px solid #409eff;
  22343. }
  22344. .e_add_list_pbox_content {
  22345. height: calc(100% - 50px);
  22346. display: flex;
  22347. align-items: center;
  22348. width: 100%;
  22349. background: #fff;
  22350. }
  22351. .evaCss {
  22352. display: flex;
  22353. flex-direction: row;
  22354. flex-wrap: nowrap;
  22355. align-items: flex-start;
  22356. padding: 0 0 20px;
  22357. }
  22358. .cru_line {
  22359. position: absolute;
  22360. bottom: 0px;
  22361. transition: all 0.5s;
  22362. left: 0px;
  22363. width: 125px;
  22364. margin-left: -25px;
  22365. }
  22366. .isNoMessage {
  22367. width: 20%;
  22368. margin: 25% auto 0;
  22369. }
  22370. .isNoMessage > img {
  22371. width: 100%;
  22372. height: 100%;
  22373. }
  22374. .fullStyle >>> .el-dialog__body {
  22375. height: 100% !important;
  22376. }
  22377. .fullStyle >>> .el-dialog,
  22378. .fullStyle {
  22379. width: 100% !important;
  22380. max-width: 100% !important;
  22381. height: 100% !important;
  22382. margin: 0 !important;
  22383. }
  22384. .full_diy >>> .el-dialog {
  22385. margin: 0 !important;
  22386. height: 100%;
  22387. padding: 4px;
  22388. }
  22389. .full_diy >>> .el-dialog__body {
  22390. height: calc(100% - 100px);
  22391. }
  22392. .full_diy2 >>> .el-dialog__body {
  22393. height: calc(100% - 50px);
  22394. padding: 0;
  22395. }
  22396. .switchCss {
  22397. /* width: 100%; */
  22398. display: flex;
  22399. flex-direction: row;
  22400. flex-wrap: nowrap;
  22401. align-items: center;
  22402. /* justify-content: center; */
  22403. }
  22404. .isClickNav {
  22405. /* color: #499eef; */
  22406. color: #000;
  22407. }
  22408. .commentImg {
  22409. width: 25px;
  22410. height: 25px;
  22411. cursor: pointer;
  22412. }
  22413. .commentImg > img {
  22414. width: 100%;
  22415. height: 100%;
  22416. }
  22417. .comment {
  22418. background: #f9f9f9;
  22419. border-radius: 0 0 4px 4px;
  22420. display: flex;
  22421. flex-direction: row;
  22422. flex-wrap: nowrap;
  22423. align-items: center;
  22424. justify-content: flex-end;
  22425. height: 35px;
  22426. }
  22427. .commentList {
  22428. display: flex;
  22429. flex-direction: row;
  22430. flex-wrap: nowrap;
  22431. align-items: center;
  22432. justify-content: center;
  22433. align-content: center;
  22434. /* margin-left: 15px; */
  22435. /* margin-left: 8px; */
  22436. }
  22437. .scoreImg {
  22438. width: 17px;
  22439. height: 17px;
  22440. }
  22441. .studentDetail {
  22442. display: flex;
  22443. flex-direction: row;
  22444. flex-wrap: nowrap;
  22445. /* align-items: center; */
  22446. align-items: flex-start;
  22447. }
  22448. .tx {
  22449. width: 50px;
  22450. }
  22451. .tx > img {
  22452. width: 100%;
  22453. height: 100%;
  22454. }
  22455. .nameAndTime {
  22456. display: flex;
  22457. flex-direction: column;
  22458. flex-wrap: nowrap;
  22459. align-items: flex-start;
  22460. margin-left: 10px;
  22461. }
  22462. .worksAnswer {
  22463. color: #4078dd;
  22464. margin: 10px 0;
  22465. font-size: 16px;
  22466. position: relative;
  22467. }
  22468. .worksAnswer > img {
  22469. width: 500px;
  22470. height: 300px;
  22471. object-fit: contain;
  22472. margin: 0 auto;
  22473. display: block;
  22474. }
  22475. .commentTop {
  22476. border-bottom: 1px solid #eaeaea;
  22477. padding-bottom: 10px;
  22478. }
  22479. .commentBox {
  22480. padding-top: 15px;
  22481. }
  22482. .pl {
  22483. font-size: 18px;
  22484. }
  22485. .plPerson {
  22486. width: 100%;
  22487. }
  22488. .plName {
  22489. display: flex;
  22490. flex-direction: row;
  22491. flex-wrap: nowrap;
  22492. align-items: baseline;
  22493. color: #78787a;
  22494. width: 100%;
  22495. }
  22496. .deleteComment {
  22497. cursor: pointer;
  22498. margin-left: auto;
  22499. color: #237ade;
  22500. }
  22501. .plContent {
  22502. margin-top: 5px;
  22503. }
  22504. .evalCss {
  22505. background: #fff;
  22506. font-size: 18px;
  22507. }
  22508. .nav {
  22509. color: #9d9d9d;
  22510. padding: 5px 0 15px 20px;
  22511. }
  22512. .middleBox {
  22513. padding: 5px 0 15px 20px;
  22514. }
  22515. .pfBox {
  22516. padding-bottom: 30px;
  22517. }
  22518. .nameAndrate {
  22519. display: flex;
  22520. flex-direction: row;
  22521. flex-wrap: nowrap;
  22522. align-items: center;
  22523. padding-bottom: 10px;
  22524. height: 30px;
  22525. line-height: 30px;
  22526. }
  22527. .nameAndrate > div {
  22528. margin-left: 10px;
  22529. color: #000;
  22530. height: 30px;
  22531. }
  22532. .nameAndrate >>> .el-rate__icon {
  22533. font-size: 28px !important;
  22534. }
  22535. .pfBox > div:nth-child(2) {
  22536. background: #f7f6f9;
  22537. width: 400px;
  22538. min-height: 45px;
  22539. border-radius: 10px;
  22540. font-size: 16px;
  22541. display: flex;
  22542. flex-wrap: wrap;
  22543. align-items: center;
  22544. padding: 10px 20px;
  22545. box-sizing: border-box;
  22546. color: #000;
  22547. }
  22548. .bz {
  22549. display: flex;
  22550. flex-direction: row;
  22551. flex-wrap: nowrap;
  22552. align-items: flex-start;
  22553. }
  22554. .bz > div {
  22555. padding: 0 10px;
  22556. }
  22557. .select_box2_title {
  22558. background: #fff;
  22559. border-radius: 5px;
  22560. padding: 15px 10px;
  22561. box-sizing: border-box;
  22562. margin-bottom: 10px;
  22563. display: flex;
  22564. flex-direction: row;
  22565. flex-wrap: nowrap;
  22566. align-items: center;
  22567. }
  22568. .select_box2_title > div:nth-child(2) {
  22569. margin-left: 10px;
  22570. color: #c4c4c4;
  22571. }
  22572. .select_box2_box {
  22573. display: flex;
  22574. height: 500px;
  22575. }
  22576. .select_box2_img {
  22577. width: calc(100% - 310px);
  22578. height: 100%;
  22579. overflow: auto;
  22580. background: #fff;
  22581. border-radius: 5px;
  22582. }
  22583. .select_box2_img img {
  22584. width: 100%;
  22585. }
  22586. .select_box2_answer {
  22587. background: #fff;
  22588. margin-left: 10px;
  22589. border-radius: 5px;
  22590. width: 300px;
  22591. overflow: auto;
  22592. height: 90%;
  22593. display: flex;
  22594. flex-direction: column;
  22595. align-items: flex-start;
  22596. padding-top: 10px;
  22597. box-sizing: border-box;
  22598. position: relative;
  22599. }
  22600. .select_answer_title {
  22601. padding: 0 0 15px 20px;
  22602. color: #c4c4c4;
  22603. }
  22604. .select_box2_answer_box {
  22605. margin: 0 0 10px 20px;
  22606. width: 85%;
  22607. display: flex;
  22608. flex-direction: row;
  22609. flex-wrap: nowrap;
  22610. align-items: center;
  22611. }
  22612. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22613. color: #000;
  22614. }
  22615. .upAnswerCss {
  22616. position: absolute;
  22617. bottom: 15px;
  22618. right: 15px;
  22619. }
  22620. .upAnswerCss >>> .el-button {
  22621. width: 95px;
  22622. height: 35px;
  22623. line-height: 35px;
  22624. padding: 0;
  22625. }
  22626. .rightWidthCss {
  22627. width: 60%;
  22628. display: flex;
  22629. flex-direction: row;
  22630. align-items: flex-start;
  22631. }
  22632. .rightAnswer {
  22633. display: flex;
  22634. flex-direction: row;
  22635. flex-wrap: nowrap;
  22636. align-items: center;
  22637. color: red;
  22638. margin-bottom: 31px;
  22639. }
  22640. .rightAnswerCss {
  22641. display: flex;
  22642. flex-direction: column;
  22643. flex-wrap: nowrap;
  22644. padding-top: 60px;
  22645. }
  22646. .blueCss {
  22647. color: #767de1;
  22648. margin-left: 10px;
  22649. }
  22650. .redCss {
  22651. color: red;
  22652. }
  22653. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22654. color: rgb(0 123 255) !important;
  22655. }
  22656. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22657. color: rgb(0 123 255) !important;
  22658. }
  22659. .zuoyeYulan {
  22660. padding-top: 0;
  22661. font-size: 18px;
  22662. display: flex;
  22663. align-items: flex-end;
  22664. }
  22665. .buttonA {
  22666. margin-left: 10px;
  22667. padding: 0;
  22668. }
  22669. .displayBox {
  22670. margin-bottom: 10px;
  22671. display: block;
  22672. border-bottom: 3px solid #eee;
  22673. display: flex;
  22674. align-items: center;
  22675. }
  22676. .easy_comment {
  22677. width: calc(100% - 90px);
  22678. margin-left: 10px;
  22679. display: flex;
  22680. flex-wrap: wrap;
  22681. }
  22682. .easy_comment > div {
  22683. border: 1px solid #4a4a4a;
  22684. color: #666;
  22685. border-radius: 15px;
  22686. padding: 5px 10px;
  22687. font-size: 16px;
  22688. margin-bottom: 10px;
  22689. margin-right: 5px;
  22690. cursor: pointer;
  22691. }
  22692. .easy_comment div:hover {
  22693. border: 1px solid #f7ba2a;
  22694. color: #c69217;
  22695. }
  22696. .xuan_right_box {
  22697. padding: 10px 0;
  22698. background: #f0f4fa;
  22699. margin: 0 15px 0 25px;
  22700. border-bottom-left-radius: 5px;
  22701. border-bottom-right-radius: 5px;
  22702. width: 91.5%;
  22703. }
  22704. .tool_right_box {
  22705. display: flex;
  22706. align-items: center;
  22707. }
  22708. .tool_right_box + .tool_right_box {
  22709. margin-top: 10px;
  22710. }
  22711. .right_box_xuan {
  22712. border-radius: 5px;
  22713. padding: 5px;
  22714. margin-left: 10px;
  22715. min-width: 85px;
  22716. background: #fff;
  22717. color: #0061ff;
  22718. border: 1px solid #0061ff;
  22719. font-size: 14px;
  22720. }
  22721. .pButton:hover {
  22722. opacity: 1 !important;
  22723. }
  22724. .pButton {
  22725. position: fixed;
  22726. text-align: center;
  22727. cursor: pointer;
  22728. z-index: 999;
  22729. right: 20px;
  22730. top: 110px;
  22731. width: 50px;
  22732. height: 50px;
  22733. display: flex;
  22734. align-items: center;
  22735. justify-content: center;
  22736. border-radius: 5px;
  22737. }
  22738. .pzClass {
  22739. width: calc(100% - 340px);
  22740. }
  22741. .newDialogCss {
  22742. /* position: fixed;
  22743. right: 5%;
  22744. top: 50%;
  22745. width: 340px;
  22746. transform: translateY(-50%);
  22747. height: 60%;
  22748. box-shadow: 0px 0 8px 0px #555555;
  22749. border-radius: 15px;
  22750. z-index: 999; */
  22751. position: fixed;
  22752. right: 20px;
  22753. top: 101px;
  22754. width: 330px;
  22755. height: calc(100% - 80px);
  22756. z-index: 999;
  22757. background: #fff;
  22758. border-top-right-radius: 0px;
  22759. border-bottom-right-radius: 0px;
  22760. overflow: hidden;
  22761. }
  22762. .newDialogCss>.scoreList{
  22763. width:100%;
  22764. height:100%;
  22765. box-sizing:border-box;
  22766. padding:10px 15px;
  22767. overflow:auto;
  22768. padding-bottom:80px;
  22769. }
  22770. .pzTop {
  22771. color: #fff;
  22772. background: #000;
  22773. display: flex;
  22774. flex-direction: row;
  22775. flex-wrap: nowrap;
  22776. align-items: center;
  22777. justify-content: space-between;
  22778. height: 40px;
  22779. border-radius: 15px 15px 0 0;
  22780. user-select: none;
  22781. }
  22782. .pzTop2 .checkbox {
  22783. display: flex;
  22784. align-items: center;
  22785. padding: 5px 10px;
  22786. flex: 0 0 auto;
  22787. font-weight: bold;
  22788. border-bottom: 1px solid #eee;
  22789. justify-content: space-between;
  22790. }
  22791. .checkbox>.cb-tabList{
  22792. display:flex;
  22793. align-items:center;
  22794. }
  22795. .cb-tabList>div{
  22796. margin-right:20px;
  22797. font-weight:400;
  22798. cursor:pointer;
  22799. }
  22800. .cb-tabList>.cb-tabItem{
  22801. color:#1684FC;
  22802. position:relative;
  22803. }
  22804. .cb-tabItem::after{
  22805. content:"";
  22806. width:100%;
  22807. height:2px;
  22808. background:#1684FC;
  22809. position:absolute;
  22810. bottom:-5px;
  22811. left:0
  22812. }
  22813. .pzTop2 .check {
  22814. text-align: center;
  22815. cursor: pointer;
  22816. box-sizing: border-box;
  22817. display: flex;
  22818. }
  22819. .pzTop2 img {
  22820. width: 25px;
  22821. cursor: pointer;
  22822. }
  22823. .pzTop > div:nth-child(1) {
  22824. padding-left: 10px;
  22825. }
  22826. .pzTop > div:nth-child(2) {
  22827. width: 15px;
  22828. height: 15px;
  22829. padding-right: 10px;
  22830. cursor: pointer;
  22831. }
  22832. .pzTop > div:nth-child(2) > img {
  22833. width: 100%;
  22834. height: 100%;
  22835. }
  22836. .pzBox,
  22837. .noPzBox {
  22838. height: calc(100% - 60px);
  22839. /* background: #ededed; */
  22840. background: #fff;
  22841. /* border-radius: 0 0 15px 15px; */
  22842. }
  22843. .noPzBox {
  22844. display: flex;
  22845. flex-direction: column;
  22846. flex-wrap: nowrap;
  22847. justify-content: center;
  22848. align-items: center;
  22849. }
  22850. .pzList {
  22851. background: #f7f7f7;
  22852. width: 90%;
  22853. margin: 0 auto 15px;
  22854. border-radius: 5px;
  22855. }
  22856. .pzNavTop {
  22857. display: flex;
  22858. flex-direction: row;
  22859. flex-wrap: nowrap;
  22860. padding: 10px 10px 0 10px;
  22861. align-items: center;
  22862. }
  22863. .pzDelete {
  22864. cursor: pointer;
  22865. margin-left: auto;
  22866. font-size: 14px;
  22867. color: #afafaf;
  22868. }
  22869. .pzNavTop > div:nth-child(1) {
  22870. background: #3760af;
  22871. width: 35px;
  22872. height: 35px;
  22873. color: #fff;
  22874. text-align: center;
  22875. line-height: 35px;
  22876. border-radius: 50%;
  22877. font-size: 14px;
  22878. }
  22879. .pzNavTop > div:nth-child(2) {
  22880. font-size: 18px;
  22881. color: #959595;
  22882. margin-left: 5px;
  22883. }
  22884. .pzContent {
  22885. padding: 10px;
  22886. word-break: break-word;
  22887. }
  22888. .pzContent audio {
  22889. width: 100%;
  22890. }
  22891. .pzContent audio::-webkit-media-controls-panel {
  22892. background: #fff;
  22893. }
  22894. .pzContent >>> img {
  22895. max-width: 100%;
  22896. }
  22897. .pzListBox {
  22898. padding-top: 15px;
  22899. height: calc(100% - 110px);
  22900. overflow: auto;
  22901. }
  22902. .addPzButton {
  22903. position: relative;
  22904. margin-top: 3px;
  22905. width: 100%;
  22906. }
  22907. .addPzButton .img1 {
  22908. position: absolute;
  22909. top: 50%;
  22910. right: 25px;
  22911. transform: translateY(-50%);
  22912. height: 100%;
  22913. display: flex;
  22914. align-items: center;
  22915. }
  22916. .addPzButton .img1 div {
  22917. display: flex;
  22918. }
  22919. .addPzButton .img1 div img {
  22920. width: 28px;
  22921. margin-left: 10px;
  22922. cursor: pointer;
  22923. }
  22924. .addPzButton .img1 div span {
  22925. font-size: 14px;
  22926. margin: 4px 0 0 3px;
  22927. color: #afafaf;
  22928. }
  22929. .addPz {
  22930. background: #4b79ce;
  22931. width: 100px;
  22932. color: #fff;
  22933. font-size: 12px;
  22934. height: 30px;
  22935. margin: 0 auto;
  22936. text-align: center;
  22937. line-height: 30px;
  22938. border-radius: 10px;
  22939. cursor: pointer;
  22940. }
  22941. .addDialogCss {
  22942. position: fixed;
  22943. width: 600px;
  22944. height: 70%;
  22945. min-height: 450px;
  22946. box-shadow: 0px 0 8px 0px #555555;
  22947. border-radius: 15px;
  22948. z-index: 999;
  22949. left: 50%;
  22950. top: 50%;
  22951. margin: -18% 0 0 -300px;
  22952. }
  22953. .teacherPz {
  22954. display: flex;
  22955. flex-direction: row;
  22956. align-items: center;
  22957. flex-wrap: nowrap;
  22958. }
  22959. .teacherPzImg {
  22960. width: 30px;
  22961. height: 30px;
  22962. }
  22963. .teacherPzImg > img {
  22964. width: 100%;
  22965. height: 100%;
  22966. }
  22967. .addPzBox {
  22968. height: calc(100% - 40px);
  22969. background: #ededed;
  22970. border-bottom-left-radius: 15px;
  22971. border-bottom-right-radius: 15px;
  22972. }
  22973. .pzAudioClass {
  22974. margin: 15px 14px;
  22975. background: #fff;
  22976. height: 100%;
  22977. display: flex;
  22978. justify-content: center;
  22979. align-items: center;
  22980. }
  22981. .pzConText {
  22982. width: 95%;
  22983. height: 100%;
  22984. margin: 10px auto 0;
  22985. border: none;
  22986. background: #fff;
  22987. border-radius: 0px;
  22988. }
  22989. .pzConText >>> .text {
  22990. height: calc(100% - 82px);
  22991. }
  22992. .addTextCss {
  22993. background: #4b79ce;
  22994. width: 80px;
  22995. height: 30px;
  22996. text-align: center;
  22997. color: #fff;
  22998. line-height: 30px;
  22999. border-radius: 10px;
  23000. margin: 10px auto 0;
  23001. cursor: pointer;
  23002. }
  23003. .pzConText:focus-visible {
  23004. border: none !important;
  23005. }
  23006. .maxWidth {
  23007. width: 1000px;
  23008. }
  23009. .noPz {
  23010. width: 150px;
  23011. margin: 0 auto 20%;
  23012. }
  23013. .noPz > img {
  23014. width: 100%;
  23015. height: 100%;
  23016. }
  23017. .timeAndReply {
  23018. display: flex;
  23019. flex-direction: row;
  23020. flex-wrap: nowrap;
  23021. justify-content: space-between;
  23022. align-items: center;
  23023. font-size: 14px;
  23024. box-sizing: border-box;
  23025. padding: 0 10px 10px 0px;
  23026. }
  23027. .timeAndReply .time {
  23028. color: #bfbfbf;
  23029. padding: 0 0 0 10px;
  23030. box-sizing: border-box;
  23031. }
  23032. .timeAndReply > div:last-child {
  23033. cursor: pointer;
  23034. color: #777;
  23035. }
  23036. /* table 样式 */
  23037. .cont >>> table {
  23038. border-top: 1px solid #ccc;
  23039. border-left: 1px solid #ccc;
  23040. }
  23041. .cont >>> table td,
  23042. .cont >>> table th {
  23043. border-bottom: 1px solid #ccc;
  23044. border-right: 1px solid #ccc;
  23045. /* padding: 20px 5px; */
  23046. padding: 5px 10px;
  23047. max-width: 0px;
  23048. height: 30px;
  23049. vertical-align: baseline;
  23050. box-sizing: border-box;
  23051. }
  23052. .cont >>> table th {
  23053. border-bottom: 2px solid #ccc;
  23054. text-align: center;
  23055. }
  23056. /* blockquote 样式 */
  23057. .cont >>> blockquote {
  23058. display: block;
  23059. border-left: 8px solid #d0e5f2;
  23060. padding: 5px 10px;
  23061. margin: 10px 0;
  23062. line-height: 1.4;
  23063. font-size: 100%;
  23064. background-color: #f1f1f1;
  23065. }
  23066. /* code 样式 */
  23067. .cont >>> code {
  23068. display: inline-block;
  23069. /* *display: inline; */
  23070. zoom: 1;
  23071. background-color: #f1f1f1;
  23072. border-radius: 3px;
  23073. padding: 3px 5px;
  23074. margin: 0 3px;
  23075. }
  23076. .cont >>> pre code {
  23077. display: block;
  23078. }
  23079. /* ul ol 样式 */
  23080. .cont >>> ul,
  23081. ol {
  23082. margin: 10px 0 10px 20px;
  23083. }
  23084. .addPzCheck {
  23085. display: flex;
  23086. flex-direction: row;
  23087. flex-wrap: nowrap;
  23088. padding: 10px 15px 0;
  23089. }
  23090. .addPzCheck span {
  23091. cursor: pointer;
  23092. padding-bottom: 5px;
  23093. font-weight: bold;
  23094. }
  23095. .addPzCheck span + span {
  23096. margin-left: 10px;
  23097. }
  23098. .addPzCheck .isChooseActive {
  23099. color: #3e88f4;
  23100. border-bottom: 2px solid #2f80f3;
  23101. }
  23102. /* code 样式 */
  23103. .cont {
  23104. /* -webkit-user-modify: read-write; */
  23105. overflow-wrap: break-word;
  23106. -webkit-line-break: after-white-space;
  23107. word-break: break-word;
  23108. white-space: pre-line;
  23109. }
  23110. .scoreBox,
  23111. .scoreDetailBox {
  23112. display: flex;
  23113. align-items: center;
  23114. justify-content: flex-start;
  23115. margin-top: 20px;
  23116. font-size: 18px;
  23117. width: 100%;
  23118. }
  23119. .scoreBox .t,
  23120. .scoreDetailBox .t {
  23121. margin-right: 10px;
  23122. width: 100px;
  23123. text-align: right;
  23124. }
  23125. .scoreDetailBox {
  23126. align-items: flex-start;
  23127. }
  23128. .scoreDetailBox >>> .el-textarea {
  23129. width: calc(100% - 200px);
  23130. }
  23131. .scoreBox >>> .el-input {
  23132. width: 130px;
  23133. font-size: 38px;
  23134. }
  23135. .scoreBox >>> .el-input__inner {
  23136. height: 60px;
  23137. }
  23138. .answerScore {
  23139. position: absolute;
  23140. top: 10px;
  23141. right: 10px;
  23142. background: #0000008f;
  23143. border-radius: 5px;
  23144. padding: 3px 5px;
  23145. font-size: 14px;
  23146. color: #fff;
  23147. cursor: pointer;
  23148. }
  23149. .open_box .switch_box {
  23150. width: 100%;
  23151. margin: 0 auto;
  23152. display: flex;
  23153. justify-content: space-between;
  23154. }
  23155. .open_box .switch_box + .switch_box {
  23156. margin-top: 10px;
  23157. }
  23158. .deleteImg,.deleteImg1 {
  23159. width: 25px !important;
  23160. height: 25px !important;
  23161. cursor: pointer;
  23162. position: absolute;
  23163. top: 10px;
  23164. right: 10px;
  23165. }
  23166. .deleteImg2 {
  23167. width: 23px !important;
  23168. height: 23px !important;
  23169. top: 5px;
  23170. right: 5px;
  23171. }
  23172. .deleteImg1{
  23173. width: 23px !important;
  23174. height: 23px !important;
  23175. top: 5px !important;
  23176. right: 30px !important;
  23177. }
  23178. .rightW {
  23179. right: 40px;
  23180. }
  23181. .drawPBox {
  23182. display: flex;
  23183. flex-direction: column;
  23184. position: relative;
  23185. }
  23186. .drawPBox span {
  23187. font-size: 18px;
  23188. color: #606266;
  23189. padding-bottom: 10px;
  23190. margin: 10px 0;
  23191. border-bottom: 1px solid #eaeaea;
  23192. }
  23193. .drawPBox img {
  23194. width: 500px;
  23195. height: 300px;
  23196. object-fit: contain;
  23197. cursor: pointer;
  23198. margin: 0 auto;
  23199. }
  23200. .sentenBox {
  23201. background: #fff;
  23202. height: 450px;
  23203. overflow: auto;
  23204. background-image: url("../assets/icon/conSentences/stuBg.png");
  23205. background-position: 102%;
  23206. background-repeat: no-repeat;
  23207. background-size: 60%;
  23208. }
  23209. .addSen {
  23210. background: #409efe;
  23211. width: 90px;
  23212. color: #fff;
  23213. height: 35px;
  23214. text-align: center;
  23215. line-height: 35px;
  23216. border-radius: 5px;
  23217. float: right;
  23218. margin: 10px 20px 0 0;
  23219. cursor: pointer;
  23220. }
  23221. .sentenTop {
  23222. display: flex;
  23223. flex-direction: row;
  23224. flex-wrap: nowrap;
  23225. align-items: center;
  23226. padding: 55px 0 0 20px;
  23227. box-sizing: border-box;
  23228. }
  23229. .sentenTop > div:nth-child(2) {
  23230. width: 300px;
  23231. margin: 0 15px;
  23232. }
  23233. .sentenTop > div:nth-child(3) {
  23234. background: #409efe;
  23235. color: #fff;
  23236. width: 65px;
  23237. height: 35px;
  23238. text-align: center;
  23239. line-height: 35px;
  23240. border-radius: 5px;
  23241. cursor: pointer;
  23242. }
  23243. .cardList,
  23244. .cardList1 {
  23245. padding: 10px 0 10px 0;
  23246. display: flex;
  23247. flex-direction: row;
  23248. flex-wrap: wrap;
  23249. align-items: center;
  23250. box-sizing: border-box;
  23251. border-bottom: 1px solid #f4f4f4;
  23252. width: 98%;
  23253. margin: 0 auto;
  23254. min-width: 60%;
  23255. max-width: 85%;
  23256. }
  23257. .cardList1 {
  23258. padding: 10px 0 10px 10px !important;
  23259. margin: 0 !important;
  23260. }
  23261. .cardBox {
  23262. display: flex;
  23263. flex-direction: row;
  23264. flex-wrap: wrap;
  23265. align-items: center;
  23266. align-content: center;
  23267. }
  23268. .cardBox > div {
  23269. margin-bottom: 10px;
  23270. }
  23271. .isCard,
  23272. .isChooseCard,
  23273. .noCard,
  23274. .isCard1 {
  23275. min-width: 130px;
  23276. width: auto;
  23277. height: 60px;
  23278. text-align: center;
  23279. line-height: 60px;
  23280. font-size: 20px;
  23281. cursor: pointer;
  23282. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23283. background-size: cover;
  23284. transition: all 2s;
  23285. margin-right: 20px;
  23286. background-size: 100% 100%;
  23287. padding: 0 20px;
  23288. box-sizing: border-box;
  23289. }
  23290. .isCard > div,
  23291. .noCard > div,
  23292. .isCard1 > div {
  23293. white-space: nowrap;
  23294. overflow: hidden;
  23295. text-overflow: ellipsis;
  23296. width: 100%;
  23297. margin: 0 auto;
  23298. }
  23299. .noCard {
  23300. background-image: none;
  23301. }
  23302. .isCard1 {
  23303. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23304. }
  23305. .isChooseCard {
  23306. background-image: none;
  23307. border: 1px dashed #b9b9b9;
  23308. border-radius: 10px;
  23309. }
  23310. .card {
  23311. width: 130px;
  23312. height: 60px;
  23313. }
  23314. .card > img {
  23315. width: 100%;
  23316. height: 100%;
  23317. }
  23318. .rightCardBox {
  23319. margin: 10px 0 0 10px;
  23320. }
  23321. .rightCardBox > div:nth-child(1) {
  23322. margin-bottom: 10px;
  23323. }
  23324. .cardCss {
  23325. display: flex;
  23326. flex-direction: column;
  23327. flex-wrap: nowrap;
  23328. align-items: center;
  23329. border-bottom: 3px solid #b4c3d3;
  23330. padding: 0 0 5px 0;
  23331. margin-right: 10px;
  23332. }
  23333. .cardCss > div:nth-child(2) {
  23334. background: #5b7b9d;
  23335. color: #fff;
  23336. width: 20px;
  23337. height: 20px;
  23338. border-radius: 50%;
  23339. text-align: center;
  23340. line-height: 20px;
  23341. }
  23342. .isWrong {
  23343. display: flex;
  23344. flex-direction: row;
  23345. flex-wrap: nowrap;
  23346. align-content: center;
  23347. align-items: center;
  23348. }
  23349. .answerRight {
  23350. width: 25%;
  23351. }
  23352. .isTj {
  23353. display: flex;
  23354. flex-direction: row;
  23355. flex-wrap: nowrap;
  23356. align-items: center;
  23357. }
  23358. .isTj > div:nth-child(2) {
  23359. color: #727070;
  23360. margin-left: 10px;
  23361. }
  23362. .isTjImg {
  23363. width: 30px;
  23364. height: 30px;
  23365. }
  23366. .isTjImg > img {
  23367. width: 100%;
  23368. height: 100%;
  23369. }
  23370. .cardAnswerBox {
  23371. font-size: 18px;
  23372. width: 97%;
  23373. border: 5px;
  23374. padding: 0;
  23375. border-radius: 5px;
  23376. margin: 10px auto;
  23377. word-break: break-word;
  23378. }
  23379. .w_name {
  23380. margin-bottom: 10px;
  23381. }
  23382. .w_name span {
  23383. font-size: 16px;
  23384. }
  23385. .w_teachert {
  23386. width: 50px !important;
  23387. position: absolute;
  23388. height: auto !important;
  23389. z-index: 10;
  23390. right: 25px;
  23391. top: -25px;
  23392. }
  23393. .group_workBox {
  23394. }
  23395. .group_workBox + .group_workBox {
  23396. margin-top: 20px;
  23397. }
  23398. .group_box {
  23399. padding-bottom: 20px;
  23400. border-bottom: 2px solid #f0f0f0;
  23401. margin-top: 10px;
  23402. }
  23403. .group_title {
  23404. display: flex;
  23405. align-items: center;
  23406. justify-content: space-between;
  23407. width: 95%;
  23408. }
  23409. .group_name {
  23410. background-image: url(../assets/icon/groupN.png);
  23411. width: 220px;
  23412. background-size: 100% 100%;
  23413. height: 67px;
  23414. padding: 0 20px 0 43px;
  23415. box-sizing: border-box;
  23416. line-height: 63px;
  23417. color: #fff;
  23418. overflow: hidden;
  23419. white-space: nowrap;
  23420. text-overflow: ellipsis;
  23421. }
  23422. .group_work {
  23423. width: 100%;
  23424. padding: 0 10px;
  23425. box-sizing: border-box;
  23426. display: flex;
  23427. flex-wrap: wrap;
  23428. }
  23429. .g_d_box {
  23430. display: flex;
  23431. flex-flow: wrap;
  23432. justify-content: space-around;
  23433. }
  23434. .g_d_box .isChair {
  23435. background-image: url(../assets/avatar.png) !important;
  23436. }
  23437. .g_d_group {
  23438. width: 500px;
  23439. margin-bottom: 80px;
  23440. }
  23441. .g_d_group_chair {
  23442. display: flex;
  23443. align-items: center;
  23444. justify-content: center;
  23445. }
  23446. .g_d_group_chair > div + div {
  23447. margin-left: 30px;
  23448. }
  23449. .g_d_group_chair > div,
  23450. .g_d_group_chair2 > div {
  23451. display: flex;
  23452. flex-direction: column;
  23453. align-items: center;
  23454. }
  23455. .g_d_group_chair > div > span:nth-child(1),
  23456. .g_d_group_chair2 > div > span:nth-child(1) {
  23457. background-image: url(../assets/icon/chair.png);
  23458. width: 50px;
  23459. height: 50px;
  23460. display: block;
  23461. background-size: 100% 100%;
  23462. }
  23463. .g_d_group_tableBox {
  23464. display: flex;
  23465. align-items: center;
  23466. justify-content: center;
  23467. }
  23468. .g_d_group_chair2 {
  23469. display: flex;
  23470. flex-direction: column;
  23471. align-items: center;
  23472. justify-content: center;
  23473. }
  23474. .g_d_group_chair2 > div + div {
  23475. margin-top: 10px;
  23476. }
  23477. .g_d_group_table {
  23478. background-image: url(../assets/icon/groupBg.png);
  23479. width: 354px;
  23480. height: 196px;
  23481. background-size: 100% 100%;
  23482. display: flex;
  23483. align-items: center;
  23484. justify-content: center;
  23485. flex-direction: column;
  23486. color: #fff;
  23487. }
  23488. .g_d_group_table > div:nth-child(1) {
  23489. font-size: 24px;
  23490. margin-bottom: 5px;
  23491. }
  23492. .g_d_group_table > div:nth-child(2) div {
  23493. cursor: pointer;
  23494. background: #2e77bf;
  23495. padding: 4px 10px;
  23496. border-radius: 5px;
  23497. }
  23498. .groupBox {
  23499. }
  23500. .groupContent + .groupContent {
  23501. margin-top: 30px;
  23502. }
  23503. .groupTitle {
  23504. font-size: 24px;
  23505. color: rgb(80, 80, 80);
  23506. margin-bottom: 20px;
  23507. }
  23508. .groupName {
  23509. display: flex;
  23510. align-items: center;
  23511. }
  23512. .groupn {
  23513. font-size: 15px;
  23514. margin-right: 10px;
  23515. }
  23516. .groupName + .groupName {
  23517. margin-top: 15px;
  23518. }
  23519. .groupBtn {
  23520. margin-left: 10px;
  23521. }
  23522. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23523. text-align: left;
  23524. }
  23525. .g_d_btnBox {
  23526. display: flex;
  23527. justify-content: flex-end;
  23528. align-items: center;
  23529. margin-bottom: 20px;
  23530. }
  23531. .updateChair {
  23532. position: relative;
  23533. }
  23534. .updateChairBtn {
  23535. position: absolute;
  23536. width: 50px;
  23537. height: 50px;
  23538. overflow: hidden;
  23539. /* display: flex; */
  23540. align-items: center;
  23541. justify-content: center;
  23542. background: #00000087;
  23543. color: #fff;
  23544. border-radius: 50px;
  23545. display: none;
  23546. cursor: pointer;
  23547. }
  23548. .updateChair:hover .updateChairBtn {
  23549. display: flex;
  23550. }
  23551. .group_staic_box {
  23552. display: flex;
  23553. padding: 30px 40px 10px;
  23554. flex-wrap: wrap;
  23555. }
  23556. .group_staic {
  23557. /* width: 50%; */
  23558. margin-bottom: 20px;
  23559. display: flex;
  23560. align-items: center;
  23561. }
  23562. .group_staic span:nth-child(1) {
  23563. width: 150px;
  23564. text-align: right;
  23565. margin-right: 15px;
  23566. }
  23567. .group_staic span:nth-child(2) {
  23568. background: rgb(0 123 255);
  23569. color: #fff;
  23570. border-radius: 5px;
  23571. padding: 5px;
  23572. }
  23573. .codeFileBox {
  23574. height: 300px;
  23575. background: #fff;
  23576. display: flex;
  23577. align-items: center;
  23578. justify-content: center;
  23579. }
  23580. .codeFileBox img {
  23581. width: 200px;
  23582. margin: 0;
  23583. height: auto;
  23584. }
  23585. .codeFileBox div {
  23586. background: rgb(80, 142, 226);
  23587. color: #fff;
  23588. padding: 10px 20px;
  23589. border-radius: 25px;
  23590. cursor: pointer;
  23591. margin-left: 15px;
  23592. }
  23593. .radioBox {
  23594. display: flex;
  23595. flex-direction: column;
  23596. flex-wrap: nowrap;
  23597. align-items: flex-start;
  23598. }
  23599. .radioBox > div {
  23600. margin: 10px 0 0 10px;
  23601. }
  23602. /* .radioBox >>> .el-radio__input,
  23603. .radioBox >>> .el-checkbox__inner {
  23604. margin-left: 10px;
  23605. } */
  23606. .radioBox >>> .el-radio__label,
  23607. .radioBox >>> .el-checkbox__label {
  23608. display: flex;
  23609. align-items: center;
  23610. width: 100%;
  23611. }
  23612. .radioBox >>> .el-radio__label > span {
  23613. width: 100%;
  23614. display: -webkit-box;
  23615. overflow: hidden;
  23616. white-space: normal !important;
  23617. text-overflow: ellipsis;
  23618. word-wrap: break-word;
  23619. }
  23620. .inImg {
  23621. width: 100px;
  23622. cursor: pointer;
  23623. }
  23624. .inImg > img {
  23625. width: 100%;
  23626. height: 100%;
  23627. object-fit: cover;
  23628. }
  23629. .timuImgBox {
  23630. margin: 10px 0;
  23631. display: flex;
  23632. flex-direction: column;
  23633. flex-wrap: wrap;
  23634. align-items: flex-start;
  23635. }
  23636. .timuImg {
  23637. width: 150px;
  23638. margin: 5px 0;
  23639. cursor: pointer;
  23640. }
  23641. .timuImg > img {
  23642. width: 100%;
  23643. height: 100%;
  23644. object-fit: cover;
  23645. }
  23646. .worksTop {
  23647. display: flex;
  23648. flex-direction: row;
  23649. align-items: flex-end;
  23650. }
  23651. .worksTitle{
  23652. display: flex;
  23653. flex-direction: row;
  23654. flex-wrap: nowrap;
  23655. align-items: center;
  23656. }
  23657. .worksTitle::before,.worksTop::before{
  23658. content: '';
  23659. display: block;
  23660. width: 3px;
  23661. height: 20px;
  23662. background: #0061FF;
  23663. border-radius: 3px;
  23664. margin: 0 5px 0 0;
  23665. }
  23666. .corOpen {
  23667. margin: 0 0 0 10px;
  23668. font-size: 14px;
  23669. cursor: pointer;
  23670. color: #505050;
  23671. }
  23672. .corOpen:hover {
  23673. color: #499eef;
  23674. }
  23675. .navCorOpenBox {
  23676. display: flex;
  23677. flex-direction: row;
  23678. align-items: center;
  23679. justify-content: space-between;
  23680. height: 55px;
  23681. background: #ffffff;
  23682. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23683. border-radius: 8px 8px 0px 0px;
  23684. z-index: 9;
  23685. position: relative;
  23686. }
  23687. .navCorOpen {
  23688. padding-right: 15px;
  23689. cursor: pointer;
  23690. width: 45px;
  23691. display: flex;
  23692. }
  23693. .navCorOpen > img {
  23694. width: 100%;
  23695. height: 100%;
  23696. }
  23697. .mlImg {
  23698. width: 40px !important;
  23699. min-width: 40px;
  23700. cursor: pointer;
  23701. transform: rotate(180deg);
  23702. }
  23703. .mlImg > img {
  23704. width: 100%;
  23705. height: 100%;
  23706. }
  23707. .navLeftCss {
  23708. width: 100% !important;
  23709. left: 0 !important;
  23710. }
  23711. .isContentCss {
  23712. width: 100% !important;
  23713. }
  23714. .isAllWidth {
  23715. width: 100% !important;
  23716. }
  23717. .group_switch {
  23718. margin-right: 10px;
  23719. height: 30px;
  23720. display: flex;
  23721. align-items: center;
  23722. }
  23723. .group_switch > span {
  23724. margin-right: 5px;
  23725. }
  23726. .fileC_box {
  23727. padding-top: 15px;
  23728. }
  23729. .fileC_box > .fileC_title {
  23730. padding: 10px 5px 14px 10px;
  23731. border-top: 1px solid #cad1dc;
  23732. font-size: 14px;
  23733. font-weight: 400;
  23734. color: #cad1dc;
  23735. width: calc(100% - 20px);
  23736. margin: 0 auto;
  23737. box-sizing: border-box;
  23738. }
  23739. .pl_select_box {
  23740. height: 40px;
  23741. line-height: 40px;
  23742. width: 100%;
  23743. cursor: pointer;
  23744. padding: 0 20px;
  23745. box-sizing: border-box;
  23746. border-radius: 5px;
  23747. border: 1px solid #d6d6d6;
  23748. white-space: nowrap;
  23749. overflow: hidden;
  23750. text-overflow: ellipsis;
  23751. background: #fff;
  23752. text-align: left;
  23753. }
  23754. .newButton {
  23755. width: 102px;
  23756. height: 36px;
  23757. background: #e7ebf1;
  23758. border-radius: 4px;
  23759. color: #0e1e33;
  23760. font-weight: 400;
  23761. font-size: 14px;
  23762. border: none;
  23763. float: right;
  23764. margin-left: 10px;
  23765. }
  23766. .el-table >>> .even_row {
  23767. background-color: #f0f4fa;
  23768. }
  23769. .stageBoxCss,
  23770. .stageBoxIsCss {
  23771. display: flex;
  23772. flex-direction: row;
  23773. flex-wrap: nowrap;
  23774. align-items: center;
  23775. height: 50px;
  23776. border-bottom: 1px solid #e2f5fc;
  23777. cursor: pointer;
  23778. width: 100%;
  23779. }
  23780. .stageBoxIsCss {
  23781. background: #0061ff;
  23782. color: #fff;
  23783. border-radius: 8px;
  23784. }
  23785. .stageItemTitle {
  23786. display: flex;
  23787. flex-direction: row;
  23788. flex-wrap: nowrap;
  23789. align-items: center;
  23790. margin-left: 15px;
  23791. width: calc(100% - 50px);
  23792. }
  23793. .stageNav{
  23794. /* font-weight: bold; */
  23795. }
  23796. .stageItemTitle > div:first-child {
  23797. min-width: 55px;
  23798. }
  23799. .stageItemTitle > div:last-child {
  23800. max-width: 242px;
  23801. white-space: nowrap;
  23802. overflow: hidden;
  23803. text-overflow: ellipsis;
  23804. word-break: break-word;
  23805. width: calc(100% - 55px);
  23806. }
  23807. .closeTri,
  23808. .closeTri1 {
  23809. min-width: 15px;
  23810. width: 15px;
  23811. height: 15px;
  23812. transition: all .5s;
  23813. }
  23814. .closeTri1 {
  23815. padding-left: 10px;
  23816. cursor: pointer;
  23817. }
  23818. .closeTri > img,
  23819. .closeTri1 > img {
  23820. width: 100%;
  23821. height: 100%;
  23822. /* transition: all .5s; */
  23823. }
  23824. .noToolBlue {
  23825. min-width: 10px;
  23826. width: 10px;
  23827. height: 10px;
  23828. background: #0061ff;
  23829. border-radius: 50%;
  23830. margin-left: 13px;
  23831. }
  23832. .stageChild,
  23833. .toolChild {
  23834. height: 0;
  23835. overflow: hidden;
  23836. transition: all 0.5s;
  23837. }
  23838. .toolChild {
  23839. /* margin: 0 0 0 17px;
  23840. padding: 0 0 0 20px;
  23841. border-left: 1px solid #d7d7d7; */
  23842. }
  23843. .toolChild > div + div{
  23844. margin-top:5px;
  23845. }
  23846. .gjCss {
  23847. display: flex;
  23848. flex-direction: row;
  23849. flex-wrap: nowrap;
  23850. align-items: center;
  23851. padding: 10px 0 10px 40px;
  23852. box-sizing: border-box;
  23853. font-size: 14px;
  23854. cursor: pointer;
  23855. border-radius:5px;
  23856. }
  23857. .toolChild > div {
  23858. position: relative;
  23859. width:100%;
  23860. }
  23861. .toolChild > div::before {
  23862. /* content: "";
  23863. width: 15px;
  23864. height: 1px;
  23865. background: #cad1dc;
  23866. position: absolute;
  23867. top: 24px;
  23868. left: -20px;
  23869. display: block; */
  23870. }
  23871. .isGjCss {
  23872. /* color: #0061ff; */
  23873. color:#fff;
  23874. background: rgb(55, 129, 252);
  23875. /* background-color: #e0eafb !important;
  23876. color: #0061ff !important; */
  23877. }
  23878. .navItem {
  23879. background: #ffffff;
  23880. border-radius: 4px;
  23881. width: 100%;
  23882. margin: 10px auto;
  23883. position: relative;
  23884. height: 40px;
  23885. display: flex;
  23886. flex-direction: row;
  23887. flex-wrap: nowrap;
  23888. align-items: center;
  23889. }
  23890. .navItemList {
  23891. display: flex;
  23892. flex-direction: row;
  23893. flex-wrap: nowrap;
  23894. align-items: center;
  23895. padding: 0 13px;
  23896. cursor: pointer;
  23897. width: calc(100% - 60px);
  23898. height: 100%;
  23899. }
  23900. .navItemList > div:first-child {
  23901. min-width: 60px;
  23902. }
  23903. .navItemList > div:last-child {
  23904. width: calc(100% - 80px);
  23905. white-space: nowrap;
  23906. overflow: hidden;
  23907. text-overflow: ellipsis;
  23908. word-break: break-word;
  23909. }
  23910. /* .isItemList > div {
  23911. color: #fff !important;
  23912. } */
  23913. .tool_work_box {
  23914. width: 100%;
  23915. padding: 0 37px 0;
  23916. box-sizing: border-box;
  23917. }
  23918. .tool_box {
  23919. width: 100%;
  23920. padding: 0 0 0 20px;
  23921. }
  23922. .tool_type_box {
  23923. display: flex;
  23924. flex-direction: row;
  23925. align-items: baseline;
  23926. flex-wrap: nowrap;
  23927. justify-content: flex-start;
  23928. position: relative;
  23929. }
  23930. .toolSort {
  23931. display: flex;
  23932. flex-direction: row;
  23933. flex-wrap: wrap;
  23934. justify-content: flex-start;
  23935. align-items: flex-start;
  23936. padding: 0 0 15px 0;
  23937. }
  23938. .toolSort > div {
  23939. margin: 0 10px 0 0;
  23940. width: 135px;
  23941. box-sizing: border-box;
  23942. border: 2px solid transparent;
  23943. }
  23944. .tools {
  23945. width: 100%;
  23946. display: flex;
  23947. flex-direction: column;
  23948. flex-wrap: nowrap;
  23949. align-items: flex-start;
  23950. }
  23951. .whiteBIcon {
  23952. width: fit-content;
  23953. cursor: pointer;
  23954. display: flex;
  23955. flex-direction: column;
  23956. flex-wrap: nowrap;
  23957. align-items: center;
  23958. font-size: 14px;
  23959. }
  23960. .tool:hover {
  23961. border: 2px solid #a5c7ff;
  23962. border-radius: 5px;
  23963. }
  23964. .whiteBIcon > img {
  23965. width: 65px;
  23966. height: 100%;
  23967. }
  23968. .whiteBIcon > img {
  23969. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23970. border-radius: 15px;
  23971. }
  23972. .check {
  23973. /* width: 20px;
  23974. height: 20px; */
  23975. cursor: pointer;
  23976. margin: 10px 0;
  23977. position: absolute;
  23978. right: 2px;
  23979. top: -5px;
  23980. }
  23981. .noChoose,
  23982. .isChoose {
  23983. width: 15px;
  23984. height: 15px;
  23985. border-radius: 50%;
  23986. border: 1px solid #adadad;
  23987. }
  23988. .isChoose {
  23989. border: 4px solid #0363ff !important;
  23990. width: 10px;
  23991. height: 10px;
  23992. }
  23993. .isToolChoose {
  23994. border: 2px solid #5394ff !important;
  23995. border-radius: 5px;
  23996. box-shadow: 0 0 6px 0px #5394ff;
  23997. }
  23998. .checkDiv {
  23999. display: flex;
  24000. align-items: center;
  24001. }
  24002. .checkDiv span {
  24003. margin-left: 5px;
  24004. color: #858585;
  24005. }
  24006. .check img {
  24007. width: 20px;
  24008. height: 20px;
  24009. }
  24010. .lockTaskIcon {
  24011. width: 20px;
  24012. height: 20px;
  24013. position: absolute;
  24014. right: 10px;
  24015. top: 5px;
  24016. }
  24017. .lockTaskIcon > img {
  24018. width: 100%;
  24019. height: 100%;
  24020. }
  24021. .pick_box {
  24022. display: flex;
  24023. align-items: flex-start;
  24024. flex-wrap: wrap;
  24025. }
  24026. .selectBox {
  24027. width: 110px;
  24028. margin-left: 10px;
  24029. margin: 0 10px 0 auto;
  24030. }
  24031. .selectBox >>> .el-input__inner {
  24032. height: 30px;
  24033. line-height: 30px;
  24034. }
  24035. .selectBox >>> .el-input__icon {
  24036. line-height: 30px;
  24037. }
  24038. .sentenceTitle {
  24039. display: flex;
  24040. flex-direction: row;
  24041. flex-wrap: nowrap;
  24042. align-items: center;
  24043. }
  24044. .sentenceTitle::before {
  24045. content: attr(index);
  24046. background: #3681fc;
  24047. border-radius: 50%;
  24048. color: #fff;
  24049. width: 25px;
  24050. height: 25px;
  24051. min-width: 25px;
  24052. min-height: 25px;
  24053. text-align: center;
  24054. line-height: 25px;
  24055. margin-right: 5px;
  24056. }
  24057. .hfBox {
  24058. padding: 10px;
  24059. box-sizing: border-box;
  24060. }
  24061. .whoReplyWho {
  24062. display: flex;
  24063. flex-direction: row;
  24064. flex-wrap: nowrap;
  24065. align-items: baseline;
  24066. justify-content: flex-start;
  24067. }
  24068. .hfBottom {
  24069. display: flex;
  24070. flex-direction: row;
  24071. flex-wrap: nowrap;
  24072. align-items: center;
  24073. justify-content: space-between;
  24074. font-size: 14px;
  24075. }
  24076. .deleteHfItem {
  24077. cursor: pointer;
  24078. width: 20px;
  24079. height: 20px;
  24080. }
  24081. .deleteHfItem > img {
  24082. width: 100%;
  24083. height: 100%;
  24084. }
  24085. .whoReplyWho > .hfImg {
  24086. width: 12px;
  24087. height: 12px;
  24088. margin: 0 5px;
  24089. }
  24090. .whoReplyWho > .hfImg > img {
  24091. width: 100%;
  24092. height: 100%;
  24093. }
  24094. .hfContent {
  24095. padding-top: 10px;
  24096. box-sizing: border-box;
  24097. display: -webkit-box;
  24098. overflow: hidden;
  24099. white-space: normal !important;
  24100. text-overflow: ellipsis;
  24101. word-wrap: break-word;
  24102. -webkit-box-orient: vertical;
  24103. }
  24104. .hfTime {
  24105. text-align: left;
  24106. box-sizing: border-box;
  24107. padding: 10px 0 10px 0px;
  24108. color: #bfbfbf;
  24109. font-size: 14px;
  24110. }
  24111. .btnAllNT {
  24112. position: fixed;
  24113. bottom: 100px;
  24114. right: 40px;
  24115. z-index: 999;
  24116. display: flex;
  24117. flex-direction: row;
  24118. }
  24119. .btnAllNT > img {
  24120. cursor: pointer;
  24121. width: 80px;
  24122. }
  24123. .toolMask {
  24124. position: fixed;
  24125. width: 100%;
  24126. height: 100%;
  24127. background: #3f3c3c;
  24128. opacity: 0.5;
  24129. top: 0;
  24130. left: 0;
  24131. z-index: 999;
  24132. }
  24133. .addToolCss {
  24134. position: fixed;
  24135. z-index: 999;
  24136. background: #fff;
  24137. right: 5%;
  24138. bottom: 18%;
  24139. min-width: 1035px;
  24140. min-height: 300px;
  24141. border-radius: 10px;
  24142. box-shadow: 0 0 8px 1px #b2b2b2;
  24143. }
  24144. .toolTop {
  24145. display: flex;
  24146. flex-direction: row;
  24147. flex-wrap: nowrap;
  24148. justify-content: space-between;
  24149. align-items: center;
  24150. padding: 20px;
  24151. }
  24152. .toolTop > div:nth-child(2) {
  24153. width: 15px;
  24154. height: 15px;
  24155. padding-right: 10px;
  24156. cursor: pointer;
  24157. }
  24158. .toolTop > div:nth-child(2) > img {
  24159. width: 100%;
  24160. height: 100%;
  24161. }
  24162. .fullStyle>>>.el-dialog__body {
  24163. height: calc(100% - 125px) !important;
  24164. box-sizing: border-box;
  24165. padding: 30px 0 !important;
  24166. background: #fff !important;
  24167. }
  24168. .fullStyle>>>.el-dialog {
  24169. width: 100% !important;
  24170. max-width: 100% !important;
  24171. height: 100% !important;
  24172. margin: 0 !important;
  24173. }
  24174. .fullStyle {
  24175. width: 100% !important;
  24176. max-width: 100% !important;
  24177. height: 100% !important;
  24178. margin: 0 auto !important;
  24179. }
  24180. .fullStyle>>>.el-dialog__footer{
  24181. background: #fff !important;
  24182. }
  24183. .engUpBox {
  24184. width: 100%;
  24185. height: 100%;
  24186. }
  24187. .engTitle,
  24188. .engText {
  24189. display: flex;
  24190. flex-direction: row;
  24191. flex-wrap: nowrap;
  24192. align-items: flex-start;
  24193. padding: 0 20px 20px 20px;
  24194. box-sizing: border-box;
  24195. }
  24196. .engTitle > .div:first-child,
  24197. .engText > div:first-child {
  24198. min-width: 75px;
  24199. }
  24200. .correctBox{
  24201. width: 100%;
  24202. display: flex;
  24203. flex-direction: row;
  24204. flex-wrap: nowrap;
  24205. align-items: flex-start;
  24206. }
  24207. .oldBox{
  24208. width: 50%;
  24209. height: 100%;
  24210. display: flex;
  24211. flex-direction: column;
  24212. flex-wrap: nowrap;
  24213. align-items: center;
  24214. border-top: 1px solid #d9d9d9;
  24215. border-left: 1px solid #d9d9d9;
  24216. border-right: 1px solid #d9d9d9;
  24217. }
  24218. .oldBox>div:first-child{
  24219. width: 100%;
  24220. text-align: center;
  24221. background: #d9d9d9;
  24222. height: 35px;
  24223. line-height: 35px;
  24224. font-weight: bold;
  24225. }
  24226. .oldText{
  24227. width: 100%;
  24228. height: calc(100% - 35px);
  24229. overflow: auto;
  24230. margin: 10px 0;
  24231. display: flex;
  24232. flex-direction: column;
  24233. flex-wrap: nowrap;
  24234. align-content: center;
  24235. align-items: center;
  24236. }
  24237. .detailBox{
  24238. width: 50%;
  24239. padding: 10px;
  24240. background: #f6f6f6;
  24241. border-radius: 5px;
  24242. }
  24243. .oldDetail,.oldDetail1{
  24244. padding-bottom: 30px;
  24245. }
  24246. .oldImg{
  24247. width:30px;
  24248. height: 30px;
  24249. }
  24250. .oldImg>img{
  24251. width: 100%;
  24252. height: 100%;
  24253. }
  24254. .allName{
  24255. min-width: 200px;
  24256. white-space: nowrap;
  24257. overflow: hidden;
  24258. text-overflow: ellipsis;
  24259. word-break: break-word;
  24260. cursor: pointer;
  24261. text-align: center;
  24262. border: 1px solid #bcc2cc;
  24263. box-sizing: border-box;
  24264. }
  24265. .engUpTop{
  24266. max-height: 300px;
  24267. overflow: auto;
  24268. }
  24269. .isUpdateToolDetailClass{
  24270. padding: 0 !important;
  24271. }
  24272. .isUpdateToolDetailClass textarea{
  24273. padding:12px;
  24274. font-size: 16px;
  24275. min-height:100%;
  24276. width: 100%;
  24277. box-sizing:border-box;
  24278. outline: none;
  24279. border:none;
  24280. line-height: 30px;
  24281. resize: none;
  24282. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24283. color: #838383;
  24284. }
  24285. .show_taskD {
  24286. min-width: fit-content;
  24287. margin-left: 10px;
  24288. display: flex;
  24289. align-items: center;
  24290. font-size: 14px;
  24291. cursor: pointer;
  24292. color: #717c8d;
  24293. }
  24294. .show_taskD > img {
  24295. width: 15px;
  24296. margin-right: 5px;
  24297. transition: 0.2s all;
  24298. transform: rotate(-90deg);
  24299. }
  24300. .show_taskD.show > img {
  24301. transform: rotate(0deg);
  24302. }
  24303. .correctCss{
  24304. position: absolute;
  24305. bottom: -70px;
  24306. background: #409eff;
  24307. color: #fff;
  24308. }
  24309. </style>