studyStudent.vue 832 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031
  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 class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  963. style="position: absolute;right: 33px;top: -30px;">
  964. 作业详细
  965. </div>
  966. </div>
  967. <div v-if="tooC == 8">
  968. <img
  969. src="../assets/icon/secondToolList/library.png"
  970. alt
  971. @click="addTools(tooC, toolIndex, taskCount)"
  972. />
  973. <div style="margin: 5px 0">素材库</div>
  974. </div>
  975. <div v-if="tooC == 17">
  976. <img
  977. src="../assets/icon/secondToolList/library.png"
  978. alt
  979. @click="addTools(tooC, toolIndex, taskCount)"
  980. />
  981. <div style="margin: 5px 0">学习资料</div>
  982. </div>
  983. <div v-if="tooC == 2">
  984. <img
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. src="../assets/icon/secondToolList/note.png"
  987. alt
  988. />
  989. <div style="margin: 5px 0">便签</div>
  990. </div>
  991. <div v-if="tooC == 4">
  992. <img
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. src="../assets/icon/thirdToolList/ask.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">问卷调查</div>
  998. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. 统计分析
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 45">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/thirdToolList/choose.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">选择题</div>
  1010. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. 作业详细
  1013. </div>
  1014. </div>
  1015. <!-- <div v-if="tooC == 5">
  1016. <img
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. src="../assets/icon/thirdToolList/score.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">量规评分</div>
  1022. </div> -->
  1023. <div v-if="tooC == 10">
  1024. <img
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. src="../assets/icon/thirdToolList/time.png"
  1027. alt
  1028. />
  1029. <div style="margin: 5px 0">倒计时</div>
  1030. </div>
  1031. <div v-if="tooC == 15">
  1032. <img
  1033. @click="addTools(tooC, toolIndex, taskCount)"
  1034. src="../assets/icon/thirdToolList/answer.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">问答</div>
  1038. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1039. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1040. 作业详细
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 26">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/courseDesign.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">课程设计</div>
  1050. </div>
  1051. <div v-if="tooC == 18">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/trainPlatform.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">训练服务器</div>
  1058. </div>
  1059. <div v-if="tooC == 16">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/thirdToolList/work.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">作业提交</div>
  1066. </div>
  1067. <div v-if="tooC == 50">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/thirdToolList/plwork.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">批量上传</div>
  1074. </div>
  1075. <div v-if="tooC == 21">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/program.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AIoT Blockly</div>
  1082. </div>
  1083. <!-- <div v-if="tooC == 22">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/program.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI体验</div>
  1090. </div> -->
  1091. <div v-if="tooC == 23">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">AI Python</div>
  1098. </div>
  1099. <div v-if="tooC == 24">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/fourthToolList/AIprogram.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">AI Blockly</div>
  1106. </div>
  1107. <div v-if="tooC == 25">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/thirdToolList/evalua.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">目标管理</div>
  1114. </div>
  1115. <div v-if="tooC == 31">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/networkPanel.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">数学画板</div>
  1122. </div>
  1123. <div v-if="tooC == 28">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/translation.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">翻译</div>
  1130. </div>
  1131. <div v-if="tooC == 37">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/mohe.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">魔盒识字</div>
  1138. </div>
  1139. <div v-if="tooC == 38">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/secondToolList/24game.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">24点</div>
  1146. </div>
  1147. <div v-if="tooC == 39">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../assets/icon/secondToolList/GeoGebra.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">GeoGebra</div>
  1154. </div>
  1155. <div v-if="tooC == 32">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../assets/icon/thirdToolList/code.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">源码编辑</div>
  1162. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1163. style="position: absolute;left: 110px;bottom: 30px;">
  1164. 上传文件
  1165. <input type="file" accept="*" style="display: none"
  1166. @change="beforeUpload1($event, 7, toolIndex)" />
  1167. </div> -->
  1168. </div>
  1169. <div v-if="tooC == 40">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/secondToolList/eval.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">个人评价</div>
  1176. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1177. style="position: absolute;right: 33px;top: -30px;">
  1178. 作业详细
  1179. </div>
  1180. </div>
  1181. <div v-if="tooC == 41">
  1182. <img
  1183. @click="addTools(tooC, toolIndex, taskCount)"
  1184. src="../assets/icon/thirdToolList/select.png"
  1185. alt
  1186. />
  1187. <div style="margin: 5px 0">选择匹配</div>
  1188. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1189. style="position: absolute;right: 33px;top: -30px;">
  1190. 作业详细
  1191. </div>
  1192. </div>
  1193. <div v-if="tooC == 44">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/thirdToolList/hanClass.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">汉字宫</div>
  1200. </div>
  1201. <div v-if="tooC == 47">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/conSentences.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">排序</div>
  1208. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1209. style="position: absolute;right: 33px;top: -30px;">
  1210. 作业详细
  1211. </div>
  1212. </div>
  1213. <div v-if="tooC == 48">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../assets/icon/fourthToolList/table.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">表格</div>
  1220. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 作业详细
  1223. </div>
  1224. </div>
  1225. <div v-if="tooC == 52">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/text.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">文档</div>
  1232. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1233. style="position: absolute;right: 33px;top: -30px;">
  1234. 作业详细
  1235. </div>
  1236. </div>
  1237. <div v-if="tooC == 49">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../assets/icon/fourthToolList/group.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">学生分组</div>
  1244. </div>
  1245. <div v-if="tooC == 57">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../assets/icon/fourthToolList/cocopi.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">CocoPi</div>
  1252. </div>
  1253. <div v-if="tooC == 58">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../assets/icon/fourthToolList/car.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">模拟驾驶</div>
  1260. </div>
  1261. <div v-if="tooC == 59">
  1262. <img
  1263. @click="addTools(tooC, toolIndex, taskCount)"
  1264. src="../assets/icon/fourthToolList/lineSearch.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">路径搜索</div>
  1268. </div>
  1269. <div v-if="tooC == 60">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../assets/icon/fourthToolList/deepLearning.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">深度学习</div>
  1276. </div>
  1277. <div v-if="tooC == 61">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../assets/icon/fourthToolList/allHistory.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">全历史</div>
  1284. </div>
  1285. <div v-if="tooC == 62">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../assets/icon/fourthToolList/interVideo.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">交互视频</div>
  1292. </div>
  1293. <div v-if="tooC == 63">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../assets/icon/fourthToolList/Wood.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">海龟编程</div>
  1300. </div>
  1301. <div v-if="tooC == 71">
  1302. <img
  1303. @click="addTools(tooC, toolIndex, taskCount)"
  1304. src="../assets/icon/fourthToolList/chatgpt.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">AI智能体</div>
  1308. </div>
  1309. <div v-if="tooC == 65">
  1310. <img
  1311. @click="addTools(tooC, toolIndex, taskCount)"
  1312. src="../assets/icon/firstToolList/pickPeople.png"
  1313. alt
  1314. />
  1315. <div style="margin: 5px 0">挑人</div>
  1316. </div>
  1317. <div v-if="tooC == 66">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../assets/icon/secondToolList/formulaEdi.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">公式编辑</div>
  1324. </div>
  1325. <div v-if="tooC == 67">
  1326. <img
  1327. @click="addTools(tooC, toolIndex, taskCount)"
  1328. src="../assets/icon/secondToolList/molStr.png"
  1329. alt
  1330. />
  1331. <div style="margin: 5px 0">分子结构</div>
  1332. </div>
  1333. <div v-if="tooC == 68">
  1334. <img
  1335. @click="addTools(tooC, toolIndex, taskCount)"
  1336. src="../assets/icon/secondToolList/timeAxis.png"
  1337. alt
  1338. />
  1339. <div style="margin: 5px 0">时间轴</div>
  1340. </div>
  1341. <div v-if="tooC == 69">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../assets/icon/secondToolList/english.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">英语写作</div>
  1348. </div>
  1349. <div v-if="tooC == 70">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../assets/icon/thirdToolList/englishVoice.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">英语口语</div>
  1356. </div>
  1357. </div>
  1358. </div>
  1359. </div>
  1360. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1361. <!-- <div class="toolTitle">工具描述</div> -->
  1362. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1363. <div style="height:100%;"
  1364. v-html="contentConvent(tool.toolDetail)"
  1365. v-if="toolDetailIndex != toolIndex"
  1366. ></div>
  1367. <div v-else @click.stop="" style="height:100%;">
  1368. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1369. </div>
  1370. </div>
  1371. <el-button
  1372. type="primary"
  1373. v-if="tool.tool[0] == 32"
  1374. style="position: absolute; right: 30px; top: -45px"
  1375. @click="addImg($event)"
  1376. >上传作业<input
  1377. type="file"
  1378. accept="*"
  1379. style="display: none"
  1380. @change="beforeUpload1($event, 7, toolIndex)"
  1381. /></el-button>
  1382. <el-button
  1383. type="primary"
  1384. v-if="tool.tool[0] == 15"
  1385. style="position: absolute; right: 30px; top: -45px"
  1386. @click="openWordCloud(toolIndex)"
  1387. >生成词云</el-button
  1388. >
  1389. <el-button
  1390. type="primary"
  1391. v-if="
  1392. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1393. "
  1394. style="position: absolute; right: 30px; top: -45px"
  1395. @click="uploadWorks(toolIndex)"
  1396. >导出作业</el-button
  1397. >
  1398. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1399. position: absolute;
  1400. right: 30px;
  1401. transform: translateY(-130%);
  1402. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1403. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1404. </div>
  1405. <div
  1406. v-if="
  1407. tType &&
  1408. tType == 2 &&
  1409. !sIsOpen &&
  1410. tool.tool.indexOf(16) != -1
  1411. "
  1412. class="worksBox"
  1413. >
  1414. <div
  1415. class="zuoyeYulan"
  1416. v-if="workStudent[toolIndex].length > 0"
  1417. >
  1418. <span class="worksTitle">作业预览</span>
  1419. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1420. </div>
  1421. <div
  1422. class="worksDetailBox"
  1423. v-if="workStudent[toolIndex].length > 0"
  1424. >
  1425. <div
  1426. class="works"
  1427. style="
  1428. width: 200px;
  1429. height: 140px;
  1430. margin: 10px 10px 10px 0;
  1431. box-shadow: 0 0 6px 1px #dfdada;
  1432. "
  1433. v-for="(w, wIndex) in workStudent[toolIndex]"
  1434. :key="wIndex"
  1435. >
  1436. <div class="workImg" v-if="w.type == 0">
  1437. <img
  1438. :src="w.works"
  1439. @click="previewImg(w.works,w)"
  1440. alt
  1441. />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 1">
  1475. <img :src="word" @click="openFile(w.works,w)" alt />
  1476. <div
  1477. class="answerScore"
  1478. v-if="w.score"
  1479. @click.stop="openScore(w)"
  1480. :class="{
  1481. rightW:
  1482. w.userid == userid || tType == 1 || tType == 4,
  1483. }"
  1484. >
  1485. {{ JSON.parse(w.score).wScore }}分
  1486. </div>
  1487. <div
  1488. class="answerScore"
  1489. @click.stop="openScore(w)"
  1490. v-else-if="courseDetail.userid == userid"
  1491. :class="{
  1492. rightW:
  1493. w.userid == userid || tType == 1 || tType == 4,
  1494. }"
  1495. >
  1496. 评分
  1497. </div>
  1498. <img
  1499. class="deleteImg"
  1500. src="../assets/deleteworks.png"
  1501. v-if="
  1502. w.userid == userid || tType == 1 || tType == 4
  1503. "
  1504. @click.stop="deleteWorks(w.wid)"
  1505. alt
  1506. />
  1507. </div>
  1508. <div class="workImg" v-if="w.type == 3">
  1509. <img
  1510. style="cursor: pointer"
  1511. :src="video"
  1512. @click="openVideo(w)"
  1513. alt
  1514. />
  1515. <div
  1516. class="answerScore"
  1517. v-if="w.score"
  1518. @click.stop="openScore(w)"
  1519. :class="{
  1520. rightW:
  1521. w.userid == userid || tType == 1 || tType == 4,
  1522. }"
  1523. >
  1524. {{ JSON.parse(w.score).wScore }}分
  1525. </div>
  1526. <div
  1527. class="answerScore"
  1528. @click.stop="openScore(w)"
  1529. v-else-if="courseDetail.userid == userid"
  1530. :class="{
  1531. rightW:
  1532. w.userid == userid || tType == 1 || tType == 4,
  1533. }"
  1534. >
  1535. 评分
  1536. </div>
  1537. <img
  1538. class="deleteImg"
  1539. src="../assets/deleteworks.png"
  1540. v-if="
  1541. w.userid == userid || tType == 1 || tType == 4
  1542. "
  1543. @click.stop="deleteWorks(w.wid)"
  1544. alt
  1545. />
  1546. </div>
  1547. <div class="workImg" v-if="w.type == 12">
  1548. <img
  1549. style="cursor: pointer"
  1550. :src="word2"
  1551. @click="downloadFile(w.works)"
  1552. alt
  1553. />
  1554. <div
  1555. class="answerScore"
  1556. v-if="w.score"
  1557. @click.stop="openScore(w)"
  1558. :class="{
  1559. rightW:
  1560. w.userid == userid || tType == 1 || tType == 4,
  1561. }"
  1562. >
  1563. {{ JSON.parse(w.score).wScore }}分
  1564. </div>
  1565. <div
  1566. class="answerScore"
  1567. @click.stop="openScore(w)"
  1568. v-else-if="courseDetail.userid == userid"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid || tType == 1 || tType == 4,
  1572. }"
  1573. >
  1574. 评分
  1575. </div>
  1576. <img
  1577. class="deleteImg"
  1578. src="../assets/deleteworks.png"
  1579. v-if="
  1580. w.userid == userid || tType == 1 || tType == 4
  1581. "
  1582. @click.stop="deleteWorks(w.wid)"
  1583. alt
  1584. />
  1585. </div>
  1586. <div class="worksName">
  1587. <div>{{ w.sName }}</div>
  1588. </div>
  1589. </div>
  1590. </div>
  1591. </div>
  1592. <div
  1593. v-if="
  1594. tType &&
  1595. tType == 2 &&
  1596. !sIsOpen &&
  1597. tool.tool.indexOf(32) != -1
  1598. "
  1599. class="worksBox"
  1600. >
  1601. <div
  1602. class="zuoyeYulan"
  1603. v-if="workStudent[toolIndex].length > 0"
  1604. >
  1605. <span class="worksTitle">作业预览</span>
  1606. </div>
  1607. <div
  1608. class="worksDetailBox"
  1609. v-if="workStudent[toolIndex].length > 0"
  1610. >
  1611. <div
  1612. class="works"
  1613. style="
  1614. width: 200px;
  1615. height: 140px;
  1616. margin: 10px 10px 10px 0;
  1617. box-shadow: 0 0 6px 1px #dfdada;
  1618. "
  1619. v-for="(w, wIndex) in workStudent[toolIndex]"
  1620. :key="wIndex"
  1621. >
  1622. <div class="workImg">
  1623. <img
  1624. :src="word2"
  1625. @click="downloadFile(w.works)"
  1626. alt
  1627. />
  1628. <div
  1629. class="answerScore"
  1630. v-if="w.score"
  1631. @click.stop="openScore(w)"
  1632. :class="{
  1633. rightW:
  1634. w.userid == userid || tType == 1 || tType == 4,
  1635. }"
  1636. >
  1637. {{ JSON.parse(w.score).wScore }}分
  1638. </div>
  1639. <div
  1640. class="answerScore"
  1641. @click.stop="openScore(w)"
  1642. v-else-if="courseDetail.userid == userid"
  1643. :class="{
  1644. rightW:
  1645. w.userid == userid || tType == 1 || tType == 4,
  1646. }"
  1647. >
  1648. 评分
  1649. </div>
  1650. <img
  1651. class="deleteImg"
  1652. src="../assets/deleteworks.png"
  1653. v-if="
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. "
  1656. @click.stop="deleteWorks(w.wid)"
  1657. alt
  1658. />
  1659. </div>
  1660. <div class="worksName">
  1661. <div>{{ w.sName }}</div>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. <div
  1667. v-if="
  1668. tType &&
  1669. tType == 2 &&
  1670. !sIsOpen &&
  1671. tool.tool.indexOf(57) != -1
  1672. "
  1673. class="worksBox"
  1674. >
  1675. <div
  1676. class="zuoyeYulan"
  1677. v-if="workStudent[toolIndex].length > 0"
  1678. >
  1679. <span class="worksTitle">作业预览</span>
  1680. </div>
  1681. <div
  1682. class="worksDetailBox"
  1683. v-if="workStudent[toolIndex].length > 0"
  1684. >
  1685. <div
  1686. class="works"
  1687. style="
  1688. width: 200px;
  1689. height: 140px;
  1690. margin: 10px 10px 10px 0;
  1691. box-shadow: 0 0 6px 1px #dfdada;
  1692. "
  1693. v-for="(w, wIndex) in workStudent[toolIndex]"
  1694. :key="wIndex"
  1695. >
  1696. <div class="workImg">
  1697. <img
  1698. :src="word2"
  1699. @click="downloadFile(w.works)"
  1700. v-if="w.type == 12"
  1701. alt
  1702. />
  1703. <img
  1704. :src="word2"
  1705. @click="
  1706. openCocoPi(57, toolIndex, w.userid, w.sName)
  1707. "
  1708. v-else-if="w.type == 15"
  1709. alt
  1710. />
  1711. <div
  1712. class="answerScore"
  1713. v-if="w.score"
  1714. @click.stop="openScore(w)"
  1715. :class="{
  1716. rightW:
  1717. w.userid == userid || tType == 1 || tType == 4,
  1718. }"
  1719. >
  1720. {{ JSON.parse(w.score).wScore }}分
  1721. </div>
  1722. <div
  1723. class="answerScore"
  1724. @click.stop="openScore(w)"
  1725. v-else-if="courseDetail.userid == userid"
  1726. :class="{
  1727. rightW:
  1728. w.userid == userid || tType == 1 || tType == 4,
  1729. }"
  1730. >
  1731. 评分
  1732. </div>
  1733. <img
  1734. class="deleteImg"
  1735. src="../assets/deleteworks.png"
  1736. v-if="
  1737. w.userid == userid || tType == 1 || tType == 4
  1738. "
  1739. @click.stop="deleteWorks(w.wid)"
  1740. alt
  1741. />
  1742. </div>
  1743. <div class="worksName">
  1744. <div>{{ w.sName }}</div>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. </div>
  1749. <div
  1750. v-if="
  1751. tType &&
  1752. tType == 2 &&
  1753. !sIsOpen &&
  1754. tool.tool.indexOf(4) != -1
  1755. "
  1756. class="worksBox"
  1757. >
  1758. <div
  1759. class="zuoyeYulan"
  1760. v-if="workStudent[toolIndex].length > 0"
  1761. >
  1762. <span class="worksTitle">作业预览</span>
  1763. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1764. </div>
  1765. <div
  1766. class="worksDetailBox"
  1767. v-if="workStudent[toolIndex].length > 0"
  1768. >
  1769. <div
  1770. class="isWorksName2"
  1771. v-for="(w, wIndex) in workStudent[toolIndex]"
  1772. :key="wIndex"
  1773. @click="
  1774. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1775. "
  1776. >
  1777. {{ w.sName }}
  1778. <img
  1779. class="deleteImg deleteImg2"
  1780. src="../assets/deleteworks.png"
  1781. v-if="w.userid == userid || tType == 1 || tType == 4"
  1782. @click.stop="deleteWorks(w.wid)"
  1783. alt
  1784. />
  1785. </div>
  1786. <!-- <div
  1787. class="works"
  1788. style="
  1789. width: 200px;
  1790. height: 140px;
  1791. border-radius: 10px;
  1792. box-shadow: 0 0 6px 1px #dfdada;
  1793. overflow: hidden;
  1794. "
  1795. v-for="(w, wIndex) in workStudent[toolIndex]"
  1796. :key="wIndex"
  1797. >
  1798. <div class="workImg">
  1799. <img
  1800. src="../assets/icon/works/noImg.png"
  1801. @click="
  1802. openTools(
  1803. 4,
  1804. toolIndex,
  1805. taskCount,
  1806. w.works,
  1807. w.sName
  1808. )
  1809. "
  1810. alt
  1811. />
  1812. </div>
  1813. <div class="worksName">
  1814. <div>{{ w.sName }}</div>
  1815. <div>{{ w.time }}</div>
  1816. </div>
  1817. </div> -->
  1818. </div>
  1819. </div>
  1820. <div
  1821. v-if="
  1822. tType &&
  1823. ((tType == 2 && sIsOpen == true) ||
  1824. tType == 1 ||
  1825. tType == 4) &&
  1826. tool.tool.indexOf(62) != -1
  1827. "
  1828. class="worksBox"
  1829. >
  1830. <div
  1831. class="zuoyeYulan"
  1832. v-if="
  1833. worksStudent.length &&
  1834. worksStudent[toolIndex].length > 0
  1835. "
  1836. >
  1837. <div class="worksTop">
  1838. <div>作业预览</div>
  1839. <div
  1840. class="corOpen"
  1841. @click="contract(toolIndex)"
  1842. v-if="
  1843. (isCloseList[toolIndex].isCloseBoolean) &&
  1844. isCloseList[toolIndex].isClose == 0
  1845. "
  1846. >
  1847. 折叠
  1848. </div>
  1849. <div
  1850. class="corOpen"
  1851. @click="contract(toolIndex)"
  1852. v-if="isCloseList[toolIndex].isClose == 1"
  1853. >
  1854. 展开
  1855. </div>
  1856. </div>
  1857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1858. </div>
  1859. <div>
  1860. <div
  1861. :id="'tool-' + toolIndex"
  1862. :style="{
  1863. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1864. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1865. }"
  1866. class="worksDetailBox"
  1867. v-if="
  1868. worksStudent.length &&
  1869. worksStudent[toolIndex].length > 0
  1870. "
  1871. >
  1872. <div
  1873. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1874. :key="wIndex"
  1875. class="isWorksName2"
  1876. @click="
  1877. openTools(
  1878. 62,
  1879. toolIndex,
  1880. taskCount,
  1881. w.works,
  1882. w.sName
  1883. )
  1884. "
  1885. >
  1886. {{ w.sName }}
  1887. <img
  1888. class="deleteImg deleteImg2"
  1889. src="../assets/deleteworks.png"
  1890. v-if="
  1891. w.userid == userid || tType == 1 || tType == 4
  1892. "
  1893. @click.stop="deleteWorks(w.wid)"
  1894. alt
  1895. />
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1900. 未提交
  1901. </div>
  1902. <div
  1903. class="noWorksS"
  1904. v-if="noWorksS && noWorksS[toolIndex].length"
  1905. >
  1906. <div
  1907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1908. :key="sIndex"
  1909. class="noWorksName"
  1910. >
  1911. <el-tooltip effect="dark" :content="s.student" placement="top">
  1912. <span>{{ s.student }}</span>
  1913. </el-tooltip>
  1914. </div>
  1915. </div>
  1916. </div>
  1917. <div
  1918. v-if="
  1919. tType &&
  1920. tType == 2 &&
  1921. !sIsOpen &&
  1922. tool.tool.indexOf(62) != -1
  1923. "
  1924. class="worksBox"
  1925. >
  1926. <div
  1927. class="zuoyeYulan"
  1928. v-if="workStudent[toolIndex].length > 0"
  1929. >
  1930. <span class="worksTitle">作业预览</span>
  1931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1932. </div>
  1933. <div
  1934. class="worksDetailBox"
  1935. v-if="workStudent[toolIndex].length > 0"
  1936. >
  1937. <div
  1938. class="isWorksName2"
  1939. v-for="(w, wIndex) in workStudent[toolIndex]"
  1940. :key="wIndex"
  1941. @click="
  1942. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1943. "
  1944. >
  1945. {{ w.sName }}
  1946. <img
  1947. class="deleteImg deleteImg2"
  1948. src="../assets/deleteworks.png"
  1949. v-if="w.userid == userid || tType == 1 || tType == 4"
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. </div>
  1955. </div>
  1956. <div
  1957. v-if="
  1958. tType &&
  1959. tType == 2 &&
  1960. !sIsOpen &&
  1961. tool.tool.indexOf(45) != -1
  1962. "
  1963. class="worksBox"
  1964. >
  1965. <div
  1966. class="zuoyeYulan"
  1967. v-if="workStudent[toolIndex].length > 0"
  1968. >
  1969. <span class="worksTitle">作业预览</span>
  1970. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1971. </div>
  1972. <div
  1973. class="worksDetailBox"
  1974. v-if="workStudent[toolIndex].length > 0"
  1975. >
  1976. <div
  1977. class="isWorksName2"
  1978. v-for="(w, wIndex) in workStudent[toolIndex]"
  1979. :key="wIndex"
  1980. @click="
  1981. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1982. "
  1983. >
  1984. {{ w.sName }}
  1985. <img
  1986. class="deleteImg deleteImg2"
  1987. src="../assets/deleteworks.png"
  1988. v-if="w.userid == userid || tType == 1 || tType == 4"
  1989. @click.stop="deleteWorks(w.wid)"
  1990. alt
  1991. />
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div
  1996. v-if="
  1997. tType &&
  1998. tType == 2 &&
  1999. !sIsOpen &&
  2000. tool.tool.indexOf(69) != -1
  2001. "
  2002. class="worksBox"
  2003. >
  2004. <div
  2005. class="zuoyeYulan"
  2006. v-if="workStudent[toolIndex].length > 0"
  2007. >
  2008. <span class="worksTitle">作业预览</span>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div
  2012. class="worksDetailBox"
  2013. v-if="workStudent[toolIndex].length > 0"
  2014. >
  2015. <div
  2016. class="isWorksName2"
  2017. v-for="(w, wIndex) in workStudent[toolIndex]"
  2018. :key="wIndex"
  2019. @click="
  2020. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2021. "
  2022. >
  2023. {{ w.sName }}
  2024. <img
  2025. class="deleteImg deleteImg2"
  2026. src="../assets/deleteworks.png"
  2027. v-if="w.userid == userid || tType == 1 || tType == 4"
  2028. @click.stop="deleteWorks(w.wid)"
  2029. alt
  2030. />
  2031. </div>
  2032. </div>
  2033. </div>
  2034. <div
  2035. v-if="
  2036. tType &&
  2037. tType == 2 &&
  2038. !sIsOpen &&
  2039. tool.tool.indexOf(15) != -1
  2040. "
  2041. class="worksBox"
  2042. >
  2043. <div
  2044. class="zuoyeYulan"
  2045. v-if="workStudent[toolIndex].length > 0"
  2046. >
  2047. <span class="worksTitle">作业预览</span>
  2048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2049. </div>
  2050. <div
  2051. class="worksDetailBox"
  2052. v-if="workStudent[toolIndex].length > 0"
  2053. >
  2054. <div
  2055. class="works"
  2056. v-for="(w, wIndex) in workStudent[toolIndex]"
  2057. :key="wIndex"
  2058. >
  2059. <div class="workImg">
  2060. <!-- <img
  2061. src="../assets/icon/works/noImg.png"
  2062. @click="openTools(15, toolIndex, taskCount, w.works)"
  2063. alt=""
  2064. />-->
  2065. <div class="answerBg">
  2066. <!-- <div>{{ w.sName }}</div> -->
  2067. <el-tooltip
  2068. class="item"
  2069. effect="light"
  2070. :content="JSON.parse(w.works)[0].answer"
  2071. placement="top"
  2072. >
  2073. <div class="answerContent">
  2074. {{ JSON.parse(w.works)[0].answer }}
  2075. </div>
  2076. </el-tooltip>
  2077. <div
  2078. class="answerScore"
  2079. v-if="w.score"
  2080. @click.stop="openScore(w)"
  2081. :class="{
  2082. rightW:
  2083. w.userid == userid ||
  2084. tType == 1 ||
  2085. tType == 4,
  2086. }"
  2087. >
  2088. {{ JSON.parse(w.score).wScore }}分
  2089. </div>
  2090. <div
  2091. class="answerScore"
  2092. @click.stop="openScore(w)"
  2093. v-else-if="courseDetail.userid == userid"
  2094. :class="{
  2095. rightW:
  2096. w.userid == userid ||
  2097. tType == 1 ||
  2098. tType == 4,
  2099. }"
  2100. >
  2101. 评分
  2102. </div>
  2103. <img
  2104. class="deleteImg"
  2105. src="../assets/deleteworks.png"
  2106. v-if="
  2107. w.userid == userid || tType == 1 || tType == 4
  2108. "
  2109. @click.stop="deleteWorks(w.wid)"
  2110. alt
  2111. />
  2112. </div>
  2113. <div class="comment">
  2114. <div class="worksName">
  2115. <div>{{ w.sName }}</div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. </div>
  2122. <div
  2123. v-if="
  2124. tType &&
  2125. tType == 2 &&
  2126. !sIsOpen &&
  2127. tool.tool.indexOf(1) != -1
  2128. "
  2129. class="worksBox"
  2130. >
  2131. <div
  2132. class="zuoyeYulan"
  2133. v-if="workStudent[toolIndex].length > 0"
  2134. >
  2135. <span class="worksTitle">作业预览</span>
  2136. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2137. </div>
  2138. <div
  2139. class="worksDetailBox"
  2140. v-if="workStudent[toolIndex].length > 0"
  2141. >
  2142. <div
  2143. class="works"
  2144. style="
  2145. width: 200px;
  2146. height: 140px;
  2147. margin: 10px 10px 10px 0;
  2148. box-shadow: 0 0 6px 1px #dfdada;
  2149. "
  2150. v-for="(w, wIndex) in workStudent[toolIndex]"
  2151. :key="wIndex"
  2152. >
  2153. <div class="workImg">
  2154. <img
  2155. :src="w.works"
  2156. @click="previewImg(w.works,w)"
  2157. alt
  2158. />
  2159. <div
  2160. class="answerScore"
  2161. v-if="w.score"
  2162. @click.stop="openScore(w)"
  2163. :class="{
  2164. rightW:
  2165. w.userid == userid || tType == 1 || tType == 4,
  2166. }"
  2167. >
  2168. {{ JSON.parse(w.score).wScore }}分
  2169. </div>
  2170. <div
  2171. class="answerScore"
  2172. @click.stop="openScore(w)"
  2173. v-else-if="courseDetail.userid == userid"
  2174. :class="{
  2175. rightW:
  2176. w.userid == userid || tType == 1 || tType == 4,
  2177. }"
  2178. >
  2179. 评分
  2180. </div>
  2181. <img
  2182. class="deleteImg"
  2183. src="../assets/deleteworks.png"
  2184. v-if="
  2185. w.userid == userid || tType == 1 || tType == 4
  2186. "
  2187. @click.stop="deleteWorks(w.wid)"
  2188. alt
  2189. />
  2190. </div>
  2191. <div class="worksName">
  2192. <div>{{ w.sName }}</div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. <div
  2198. v-if="
  2199. tType &&
  2200. tType == 2 &&
  2201. !sIsOpen &&
  2202. tool.tool.indexOf(3) != -1
  2203. "
  2204. class="worksBox"
  2205. >
  2206. <div
  2207. class="zuoyeYulan"
  2208. v-if="workStudent[toolIndex].length > 0"
  2209. >
  2210. <span class="worksTitle">作业预览</span>
  2211. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2212. </div>
  2213. <div
  2214. class="worksDetailBox"
  2215. v-if="workStudent[toolIndex].length > 0"
  2216. >
  2217. <div
  2218. class="works"
  2219. style="
  2220. width: 200px;
  2221. height: 140px;
  2222. margin: 10px 10px 10px 0;
  2223. box-shadow: 0 0 6px 1px #dfdada;
  2224. "
  2225. v-for="(w, wIndex) in workStudent[toolIndex]"
  2226. :key="wIndex"
  2227. >
  2228. <div class="workImg">
  2229. <img
  2230. :src="w.works"
  2231. @click="previewImg(w.works,w)"
  2232. alt
  2233. />
  2234. <div
  2235. class="answerScore"
  2236. v-if="w.score"
  2237. @click.stop="openScore(w)"
  2238. :class="{
  2239. rightW:
  2240. w.userid == userid || tType == 1 || tType == 4,
  2241. }"
  2242. >
  2243. {{ JSON.parse(w.score).wScore }}分
  2244. </div>
  2245. <div
  2246. class="answerScore"
  2247. @click.stop="openScore(w)"
  2248. v-else-if="courseDetail.userid == userid"
  2249. :class="{
  2250. rightW:
  2251. w.userid == userid || tType == 1 || tType == 4,
  2252. }"
  2253. >
  2254. 评分
  2255. </div>
  2256. <img
  2257. class="deleteImg"
  2258. src="../assets/deleteworks.png"
  2259. v-if="
  2260. w.userid == userid || tType == 1 || tType == 4
  2261. "
  2262. @click.stop="deleteWorks(w.wid)"
  2263. alt
  2264. />
  2265. </div>
  2266. <div class="worksName">
  2267. <div>{{ w.sName }}</div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. <div
  2273. v-if="
  2274. tType &&
  2275. tType == 2 &&
  2276. !sIsOpen &&
  2277. tool.tool.indexOf(6) != -1
  2278. "
  2279. class="worksBox"
  2280. >
  2281. <div
  2282. class="zuoyeYulan"
  2283. v-if="workStudent[toolIndex].length > 0"
  2284. >
  2285. <span class="worksTitle">作业预览</span>
  2286. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2287. </div>
  2288. <div
  2289. class="worksDetailBox"
  2290. v-if="workStudent[toolIndex].length > 0"
  2291. >
  2292. <div
  2293. class="works"
  2294. style="
  2295. width: 200px;
  2296. height: 140px;
  2297. margin: 10px 10px 10px 0;
  2298. box-shadow: 0 0 6px 1px #dfdada;
  2299. "
  2300. v-for="(w, wIndex) in workStudent[toolIndex]"
  2301. :key="wIndex"
  2302. >
  2303. <div class="workImg">
  2304. <img
  2305. :src="w.works"
  2306. @click="previewImg(w.works,w)"
  2307. alt
  2308. />
  2309. <div
  2310. class="answerScore"
  2311. v-if="w.score"
  2312. @click.stop="openScore(w)"
  2313. :class="{
  2314. rightW:
  2315. w.userid == userid || tType == 1 || tType == 4,
  2316. }"
  2317. >
  2318. {{ JSON.parse(w.score).wScore }}分
  2319. </div>
  2320. <div
  2321. class="answerScore"
  2322. @click.stop="openScore(w)"
  2323. v-else-if="courseDetail.userid == userid"
  2324. :class="{
  2325. rightW:
  2326. w.userid == userid || tType == 1 || tType == 4,
  2327. }"
  2328. >
  2329. 评分
  2330. </div>
  2331. <img
  2332. class="deleteImg"
  2333. src="../assets/deleteworks.png"
  2334. v-if="
  2335. w.userid == userid || tType == 1 || tType == 4
  2336. "
  2337. @click.stop="deleteWorks(w.wid)"
  2338. alt
  2339. />
  2340. </div>
  2341. <div class="worksName">
  2342. <div>{{ w.sName }}</div>
  2343. </div>
  2344. </div>
  2345. </div>
  2346. </div>
  2347. <div
  2348. v-if="
  2349. tType &&
  2350. tType == 2 &&
  2351. !sIsOpen &&
  2352. tool.tool.indexOf(7) != -1
  2353. "
  2354. class="worksBox"
  2355. >
  2356. <div
  2357. class="zuoyeYulan"
  2358. v-if="workStudent[toolIndex].length > 0"
  2359. >
  2360. <span class="worksTitle">作业预览</span>
  2361. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2362. </div>
  2363. <div
  2364. class="worksDetailBox"
  2365. v-if="workStudent[toolIndex].length > 0"
  2366. >
  2367. <div
  2368. class="works"
  2369. style="
  2370. width: 200px;
  2371. height: 140px;
  2372. margin: 10px 10px 10px 0;
  2373. box-shadow: 0 0 6px 1px #dfdada;
  2374. "
  2375. v-for="(w, wIndex) in workStudent[toolIndex]"
  2376. :key="wIndex"
  2377. >
  2378. <div class="workImg">
  2379. <img
  2380. :src="w.works"
  2381. @click="previewImg(w.works,w)"
  2382. alt
  2383. />
  2384. <div
  2385. class="answerScore"
  2386. v-if="w.score"
  2387. @click.stop="openScore(w)"
  2388. :class="{
  2389. rightW:
  2390. w.userid == userid || tType == 1 || tType == 4,
  2391. }"
  2392. >
  2393. {{ JSON.parse(w.score).wScore }}分
  2394. </div>
  2395. <div
  2396. class="answerScore"
  2397. @click.stop="openScore(w)"
  2398. v-else-if="courseDetail.userid == userid"
  2399. :class="{
  2400. rightW:
  2401. w.userid == userid || tType == 1 || tType == 4,
  2402. }"
  2403. >
  2404. 评分
  2405. </div>
  2406. <img
  2407. class="deleteImg"
  2408. src="../assets/deleteworks.png"
  2409. v-if="
  2410. w.userid == userid || tType == 1 || tType == 4
  2411. "
  2412. @click.stop="deleteWorks(w.wid)"
  2413. alt
  2414. />
  2415. </div>
  2416. <div class="worksName">
  2417. <div>{{ w.sName }}</div>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. </div>
  2422. <div
  2423. v-if="
  2424. tType &&
  2425. tType == 2 &&
  2426. !sIsOpen &&
  2427. tool.tool.indexOf(26) != -1
  2428. "
  2429. class="worksBox"
  2430. >
  2431. <div
  2432. class="zuoyeYulan"
  2433. v-if="workStudent[toolIndex].length > 0"
  2434. >
  2435. <span class="worksTitle">作业预览</span>
  2436. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2437. </div>
  2438. <div
  2439. class="worksDetailBox"
  2440. v-if="workStudent[toolIndex].length > 0"
  2441. >
  2442. <div
  2443. class="works"
  2444. style="
  2445. width: 200px;
  2446. height: 140px;
  2447. margin: 10px 10px 10px 0;
  2448. box-shadow: 0 0 6px 1px #dfdada;
  2449. "
  2450. v-for="(w, wIndex) in workStudent[toolIndex]"
  2451. :key="wIndex"
  2452. >
  2453. <div class="workImg">
  2454. <img
  2455. :src="w.works"
  2456. @click="previewImg(w.works,w)"
  2457. alt
  2458. />
  2459. <img
  2460. class="deleteImg"
  2461. src="../assets/deleteworks.png"
  2462. v-if="
  2463. w.userid == userid || tType == 1 || tType == 4
  2464. "
  2465. @click.stop="deleteWorks(w.wid)"
  2466. alt
  2467. />
  2468. </div>
  2469. <div class="worksName">
  2470. <div>{{ w.sName }}</div>
  2471. </div>
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div
  2476. v-if="
  2477. tType &&
  2478. ((tType == 2 && sIsOpen == true) ||
  2479. tType == 1 ||
  2480. tType == 4) &&
  2481. tool.tool.indexOf(16) != -1
  2482. "
  2483. class="worksBox"
  2484. >
  2485. <div
  2486. class="zuoyeYulan"
  2487. v-if="
  2488. (worksStudent.length &&
  2489. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2490. "
  2491. >
  2492. <div class="worksTop">
  2493. <div>作业预览</div>
  2494. <div
  2495. class="corOpen"
  2496. @click="contract(toolIndex)"
  2497. v-if="
  2498. (isCloseList[toolIndex].isCloseBoolean) &&
  2499. isCloseList[toolIndex].isClose == 0
  2500. "
  2501. >
  2502. 折叠
  2503. </div>
  2504. <div
  2505. class="corOpen"
  2506. @click="contract(toolIndex)"
  2507. v-if="isCloseList[toolIndex].isClose == 1"
  2508. >
  2509. 展开
  2510. </div>
  2511. </div>
  2512. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2513. </div>
  2514. <div
  2515. class="group_workBox"
  2516. v-for="(g, gindex) in courseGroup.group"
  2517. :key="gindex"
  2518. >
  2519. <div class="group_box">
  2520. <div class="group_title">
  2521. <el-tooltip
  2522. class="item"
  2523. effect="light"
  2524. :content="g.name"
  2525. placement="top"
  2526. >
  2527. <div class="group_name">{{ g.name }}</div>
  2528. </el-tooltip>
  2529. </div>
  2530. <div
  2531. class="group_work"
  2532. v-if="
  2533. g.works &&
  2534. g.works.length &&
  2535. g.works[toolIndex].length
  2536. "
  2537. >
  2538. <div
  2539. class="works"
  2540. style="
  2541. width: 200px;
  2542. height: 140px;
  2543. margin: 10px 10px 10px 0;
  2544. border-radius: 15px;
  2545. box-shadow: 0 0 6px 1px #dfdada;
  2546. "
  2547. v-for="(w, wIndex) in g.works[toolIndex]"
  2548. :key="wIndex"
  2549. :class="w.type == 1 ? 'isTypeOne' : ''"
  2550. >
  2551. <div class="workImg" v-if="w.type == 0">
  2552. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2553. <img
  2554. :src="w.works"
  2555. @click="previewImg(w.works,w)"
  2556. alt
  2557. />
  2558. <div
  2559. class="answerScore"
  2560. v-if="w.score"
  2561. @click.stop="openScore(w)"
  2562. :class="{
  2563. rightW:
  2564. w.userid == userid ||
  2565. tType == 1 ||
  2566. tType == 4 ||
  2567. w.ateacher == userid,
  2568. }"
  2569. >
  2570. {{ JSON.parse(w.score).wScore }}分
  2571. </div>
  2572. <div
  2573. class="answerScore"
  2574. @click.stop="openScore(w)"
  2575. v-else-if="courseDetail.userid == userid"
  2576. :class="{
  2577. rightW:
  2578. w.userid == userid ||
  2579. tType == 1 ||
  2580. tType == 4 ||
  2581. w.ateacher == userid,
  2582. }"
  2583. >
  2584. 评分
  2585. </div>
  2586. <img
  2587. class="deleteImg"
  2588. src="../assets/deleteworks.png"
  2589. v-if="
  2590. w.userid == userid || tType == 1 || tType == 4
  2591. "
  2592. @click.stop="deleteWorks(w.wid)"
  2593. alt
  2594. />
  2595. </div>
  2596. <div class="workImg" v-if="w.type == 1">
  2597. <img :src="word" @click="openFile(w.works,w)" alt />
  2598. <!-- @click="openFile(w.works)" -->
  2599. <div
  2600. class="answerScore"
  2601. v-if="w.score"
  2602. @click.stop="openScore(w)"
  2603. :class="{
  2604. rightW:
  2605. w.userid == userid ||
  2606. tType == 1 ||
  2607. tType == 4 ||
  2608. w.ateacher == userid,
  2609. }"
  2610. >
  2611. {{ JSON.parse(w.score).wScore }}分
  2612. </div>
  2613. <div
  2614. class="answerScore"
  2615. @click.stop="openScore(w)"
  2616. v-else-if="courseDetail.userid == userid"
  2617. :class="{
  2618. rightW:
  2619. w.userid == userid ||
  2620. tType == 1 ||
  2621. tType == 4 ||
  2622. w.ateacher == userid,
  2623. }"
  2624. >
  2625. 评分
  2626. </div>
  2627. <img
  2628. class="deleteImg"
  2629. src="../assets/deleteworks.png"
  2630. v-if="
  2631. w.userid == userid || tType == 1 || tType == 4
  2632. "
  2633. @click.stop="deleteWorks(w.wid)"
  2634. alt
  2635. />
  2636. </div>
  2637. <div class="workImg" v-if="w.type == 3">
  2638. <img
  2639. style="cursor: pointer"
  2640. :src="video"
  2641. @click="openVideo(w)"
  2642. alt
  2643. />
  2644. <!-- @click="openVideo(w.works)" -->
  2645. <div
  2646. class="answerScore"
  2647. v-if="w.score"
  2648. @click.stop="openScore(w)"
  2649. :class="{
  2650. rightW:
  2651. w.userid == userid ||
  2652. tType == 1 ||
  2653. tType == 4 ||
  2654. w.ateacher == userid,
  2655. }"
  2656. >
  2657. {{ JSON.parse(w.score).wScore }}分
  2658. </div>
  2659. <div
  2660. class="answerScore"
  2661. @click.stop="openScore(w)"
  2662. v-else-if="courseDetail.userid == userid"
  2663. :class="{
  2664. rightW:
  2665. w.userid == userid ||
  2666. tType == 1 ||
  2667. tType == 4 ||
  2668. w.ateacher == userid,
  2669. }"
  2670. >
  2671. 评分
  2672. </div>
  2673. <img
  2674. class="deleteImg"
  2675. src="../assets/deleteworks.png"
  2676. v-if="
  2677. w.userid == userid || tType == 1 || tType == 4
  2678. "
  2679. @click.stop="deleteWorks(w.wid)"
  2680. alt
  2681. />
  2682. </div>
  2683. <div class="workImg" v-if="w.type == 12">
  2684. <img
  2685. style="cursor: pointer"
  2686. :src="word2"
  2687. @click="downloadFile(w.works)"
  2688. alt
  2689. />
  2690. <!-- @click="openVideo(w.works)" -->
  2691. <div
  2692. class="answerScore"
  2693. v-if="w.score"
  2694. @click.stop="openScore(w)"
  2695. :class="{
  2696. rightW:
  2697. w.userid == userid ||
  2698. tType == 1 ||
  2699. tType == 4 ||
  2700. w.ateacher == userid,
  2701. }"
  2702. >
  2703. {{ JSON.parse(w.score).wScore }}分
  2704. </div>
  2705. <div
  2706. class="answerScore"
  2707. @click.stop="openScore(w)"
  2708. v-else-if="courseDetail.userid == userid"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid ||
  2712. tType == 1 ||
  2713. tType == 4 ||
  2714. w.ateacher == userid,
  2715. }"
  2716. >
  2717. 评分
  2718. </div>
  2719. <img
  2720. class="deleteImg"
  2721. src="../assets/deleteworks.png"
  2722. v-if="
  2723. w.userid == userid || tType == 1 || tType == 4
  2724. "
  2725. @click.stop="deleteWorks(w.wid)"
  2726. alt
  2727. />
  2728. </div>
  2729. <div class="comment" style="min-width: 200px">
  2730. <div class="worksName">
  2731. <div>{{ w.sName }}</div>
  2732. </div>
  2733. <div class="commentList">
  2734. <div class="commentList">
  2735. <div
  2736. class="commentImg"
  2737. @click="
  2738. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2739. "
  2740. >
  2741. <img
  2742. :src="w.isLikes == true ? likes : noLikes"
  2743. alt=""
  2744. />
  2745. </div>
  2746. <div>{{ w.likesCount }}</div>
  2747. </div>
  2748. <div
  2749. class="commentList"
  2750. style="margin-right: 15px"
  2751. >
  2752. <div
  2753. class="commentImg"
  2754. @click="
  2755. commentOther(
  2756. w,
  2757. toolIndex,
  2758. wIndex,
  2759. null,
  2760. g.id
  2761. )
  2762. "
  2763. >
  2764. <img
  2765. src="../assets/icon/comment/comment.png"
  2766. alt=""
  2767. />
  2768. </div>
  2769. <div>{{ w.commentCount }}</div>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. </div>
  2774. </div>
  2775. <div class="group_work" v-else>暂无提交作业</div>
  2776. </div>
  2777. </div>
  2778. <div
  2779. :id="'tool-' + toolIndex"
  2780. :style="{
  2781. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2782. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2783. }"
  2784. class="worksDetailBox"
  2785. v-if="
  2786. worksStudent.length &&
  2787. worksStudent[toolIndex].length > 0
  2788. "
  2789. >
  2790. <div
  2791. class="works"
  2792. style="
  2793. width: 200px;
  2794. height: 140px;
  2795. margin: 10px 10px 10px 0;
  2796. border-radius: 15px;
  2797. box-shadow: 0 0 6px 1px #dfdada;
  2798. "
  2799. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2800. :key="wIndex"
  2801. :class="w.type == 1 ? 'isTypeOne' : ''"
  2802. >
  2803. <div class="workImg" v-if="w.type == 0">
  2804. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2805. <img
  2806. :src="w.works"
  2807. @click="previewImg(w.works,w)"
  2808. alt
  2809. />
  2810. <div
  2811. class="answerScore"
  2812. v-if="w.score"
  2813. @click.stop="openScore(w)"
  2814. :class="{
  2815. rightW:
  2816. w.userid == userid ||
  2817. tType == 1 ||
  2818. tType == 4 ||
  2819. w.ateacher == userid,
  2820. }"
  2821. >
  2822. {{ JSON.parse(w.score).wScore }}分
  2823. </div>
  2824. <div
  2825. class="answerScore"
  2826. @click.stop="openScore(w)"
  2827. v-else-if="courseDetail.userid == userid"
  2828. :class="{
  2829. rightW:
  2830. w.userid == userid ||
  2831. tType == 1 ||
  2832. tType == 4 ||
  2833. w.ateacher == userid,
  2834. }"
  2835. >
  2836. 评分
  2837. </div>
  2838. <img
  2839. class="deleteImg"
  2840. src="../assets/deleteworks.png"
  2841. v-if="
  2842. w.userid == userid || tType == 1 || tType == 4
  2843. "
  2844. @click.stop="deleteWorks(w.wid)"
  2845. alt
  2846. />
  2847. </div>
  2848. <div class="workImg" v-if="w.type == 1">
  2849. <img :src="word" @click="openFile(w.works,w)" alt />
  2850. <!-- @click="openFile(w.works)" -->
  2851. <div
  2852. class="answerScore"
  2853. v-if="w.score"
  2854. @click.stop="openScore(w)"
  2855. :class="{
  2856. rightW:
  2857. w.userid == userid ||
  2858. tType == 1 ||
  2859. tType == 4 ||
  2860. w.ateacher == userid,
  2861. }"
  2862. >
  2863. {{ JSON.parse(w.score).wScore }}分
  2864. </div>
  2865. <div
  2866. class="answerScore"
  2867. @click.stop="openScore(w)"
  2868. v-else-if="courseDetail.userid == userid"
  2869. :class="{
  2870. rightW:
  2871. w.userid == userid ||
  2872. tType == 1 ||
  2873. tType == 4 ||
  2874. w.ateacher == userid,
  2875. }"
  2876. >
  2877. 评分
  2878. </div>
  2879. <img
  2880. class="deleteImg"
  2881. src="../assets/deleteworks.png"
  2882. v-if="
  2883. w.userid == userid || tType == 1 || tType == 4
  2884. "
  2885. @click.stop="deleteWorks(w.wid)"
  2886. alt
  2887. />
  2888. </div>
  2889. <div class="workImg" v-if="w.type == 3">
  2890. <img
  2891. style="cursor: pointer"
  2892. :src="video"
  2893. @click="openVideo(w)"
  2894. alt
  2895. />
  2896. <!-- @click="openVideo(w.works)" -->
  2897. <div
  2898. class="answerScore"
  2899. v-if="w.score"
  2900. @click.stop="openScore(w)"
  2901. :class="{
  2902. rightW:
  2903. w.userid == userid ||
  2904. tType == 1 ||
  2905. tType == 4 ||
  2906. w.ateacher == userid,
  2907. }"
  2908. >
  2909. {{ JSON.parse(w.score).wScore }}分
  2910. </div>
  2911. <div
  2912. class="answerScore"
  2913. @click.stop="openScore(w)"
  2914. v-else-if="courseDetail.userid == userid"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. 评分
  2924. </div>
  2925. <img
  2926. class="deleteImg"
  2927. src="../assets/deleteworks.png"
  2928. v-if="
  2929. w.userid == userid || tType == 1 || tType == 4
  2930. "
  2931. @click.stop="deleteWorks(w.wid)"
  2932. alt
  2933. />
  2934. </div>
  2935. <div class="workImg" v-if="w.type == 12">
  2936. <img
  2937. style="cursor: pointer"
  2938. :src="word2"
  2939. @click="downloadFile(w.works)"
  2940. alt
  2941. />
  2942. <!-- @click="openVideo(w.works)" -->
  2943. <div
  2944. class="answerScore"
  2945. v-if="w.score"
  2946. @click.stop="openScore(w)"
  2947. :class="{
  2948. rightW:
  2949. w.userid == userid ||
  2950. tType == 1 ||
  2951. tType == 4 ||
  2952. w.ateacher == userid,
  2953. }"
  2954. >
  2955. {{ JSON.parse(w.score).wScore }}分
  2956. </div>
  2957. <div
  2958. class="answerScore"
  2959. @click.stop="openScore(w)"
  2960. v-else-if="courseDetail.userid == userid"
  2961. :class="{
  2962. rightW:
  2963. w.userid == userid ||
  2964. tType == 1 ||
  2965. tType == 4 ||
  2966. w.ateacher == userid,
  2967. }"
  2968. >
  2969. 评分
  2970. </div>
  2971. <img
  2972. class="deleteImg"
  2973. src="../assets/deleteworks.png"
  2974. v-if="
  2975. w.userid == userid || tType == 1 || tType == 4
  2976. "
  2977. @click.stop="deleteWorks(w.wid)"
  2978. alt
  2979. />
  2980. </div>
  2981. <div class="comment" style="min-width: 200px">
  2982. <div class="worksName">
  2983. <div>{{ w.sName }}</div>
  2984. </div>
  2985. <div class="commentList">
  2986. <div class="commentList">
  2987. <div
  2988. class="commentImg"
  2989. @click="
  2990. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2991. "
  2992. >
  2993. <img
  2994. :src="w.isLikes == true ? likes : noLikes"
  2995. alt=""
  2996. />
  2997. </div>
  2998. <div>{{ w.likesCount }}</div>
  2999. </div>
  3000. <div class="commentList" style="margin-right: 15px">
  3001. <div
  3002. class="commentImg"
  3003. @click="commentOther(w, toolIndex, wIndex)"
  3004. >
  3005. <img
  3006. src="../assets/icon/comment/comment.png"
  3007. alt=""
  3008. />
  3009. </div>
  3010. <div>{{ w.commentCount }}</div>
  3011. </div>
  3012. </div>
  3013. </div>
  3014. </div>
  3015. </div>
  3016. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3017. 未提交
  3018. </div>
  3019. <div
  3020. class="noWorksS"
  3021. v-if="noWorksS && noWorksS[toolIndex].length"
  3022. >
  3023. <div
  3024. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3025. :key="sIndex"
  3026. class="noWorksName"
  3027. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3028. >
  3029. <el-tooltip effect="dark" :content="s.student" placement="top">
  3030. <span>{{ s.student }}</span>
  3031. </el-tooltip>
  3032. </div>
  3033. </div>
  3034. </div>
  3035. <div
  3036. v-if="
  3037. tType &&
  3038. ((tType == 2 && sIsOpen == true) ||
  3039. tType == 1 ||
  3040. tType == 4) &&
  3041. tool.tool.indexOf(70) != -1
  3042. "
  3043. class="worksBox"
  3044. >
  3045. <div
  3046. class="zuoyeYulan"
  3047. v-if="
  3048. (worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0)
  3050. "
  3051. >
  3052. <div class="worksTop">
  3053. <div>作业预览</div>
  3054. <div
  3055. class="corOpen"
  3056. @click="contract(toolIndex)"
  3057. v-if="
  3058. (isCloseList[toolIndex].isCloseBoolean) &&
  3059. isCloseList[toolIndex].isClose == 0
  3060. "
  3061. >
  3062. 折叠
  3063. </div>
  3064. <div
  3065. class="corOpen"
  3066. @click="contract(toolIndex)"
  3067. v-if="isCloseList[toolIndex].isClose == 1"
  3068. >
  3069. 展开
  3070. </div>
  3071. </div>
  3072. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3073. </div>
  3074. <div
  3075. :id="'tool-' + toolIndex"
  3076. :style="{
  3077. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3078. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3079. }"
  3080. class="worksDetailBox"
  3081. v-if="
  3082. worksStudent.length &&
  3083. worksStudent[toolIndex].length > 0
  3084. "
  3085. >
  3086. <div
  3087. class="works"
  3088. style="
  3089. width: 200px;
  3090. height: 140px;
  3091. margin: 10px 10px 10px 0;
  3092. border-radius: 15px;
  3093. box-shadow: 0 0 6px 1px #dfdada;
  3094. "
  3095. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3096. :key="wIndex"
  3097. :class="w.type == 1 ? 'isTypeOne' : ''"
  3098. >
  3099. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3100. <img :src="word" alt />
  3101. <img
  3102. class="deleteImg"
  3103. src="../assets/deleteworks.png"
  3104. v-if="
  3105. w.userid == userid || tType == 1 || tType == 4
  3106. "
  3107. @click.stop="deleteWorks(w.wid)"
  3108. alt
  3109. />
  3110. </div>
  3111. <div class="comment" style="min-width: 200px">
  3112. <div class="worksName">
  3113. <div>{{ w.sName }}</div>
  3114. </div>
  3115. </div>
  3116. </div>
  3117. </div>
  3118. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3119. 未提交
  3120. </div>
  3121. <div
  3122. class="noWorksS"
  3123. v-if="noWorksS && noWorksS[toolIndex].length"
  3124. >
  3125. <div
  3126. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3127. :key="sIndex"
  3128. class="noWorksName"
  3129. >
  3130. <el-tooltip effect="dark" :content="s.student" placement="top">
  3131. <span>{{ s.student }}</span>
  3132. </el-tooltip>
  3133. </div>
  3134. </div>
  3135. </div>
  3136. <div
  3137. v-if="
  3138. tType &&
  3139. tType == 2 &&
  3140. !sIsOpen &&
  3141. tool.tool.indexOf(70) != -1
  3142. "
  3143. class="worksBox"
  3144. >
  3145. <div
  3146. class="zuoyeYulan"
  3147. v-if="workStudent[toolIndex].length > 0"
  3148. >
  3149. <span class="worksTitle">作业预览</span>
  3150. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3151. </div>
  3152. <div
  3153. class="worksDetailBox"
  3154. v-if="workStudent[toolIndex].length > 0"
  3155. >
  3156. <div
  3157. class="works"
  3158. style="
  3159. width: 200px;
  3160. height: 140px;
  3161. margin: 10px 10px 10px 0;
  3162. box-shadow: 0 0 6px 1px #dfdada;
  3163. "
  3164. v-for="(w, wIndex) in workStudent[toolIndex]"
  3165. :key="wIndex"
  3166. >
  3167. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3168. <img :src="word" alt />
  3169. <img
  3170. class="deleteImg"
  3171. src="../assets/deleteworks.png"
  3172. v-if="
  3173. w.userid == userid || tType == 1 || tType == 4
  3174. "
  3175. @click.stop="deleteWorks(w.wid)"
  3176. alt
  3177. />
  3178. </div>
  3179. <div class="worksName">
  3180. <div>{{ w.sName }}</div>
  3181. </div>
  3182. </div>
  3183. </div>
  3184. </div>
  3185. <div
  3186. v-if="
  3187. tType &&
  3188. ((tType == 2 && sIsOpen == true) ||
  3189. tType == 1 ||
  3190. tType == 4) &&
  3191. tool.tool.indexOf(32) != -1
  3192. "
  3193. class="worksBox"
  3194. >
  3195. <div
  3196. class="zuoyeYulan"
  3197. v-if="
  3198. worksStudent.length &&
  3199. worksStudent[toolIndex].length > 0
  3200. "
  3201. >
  3202. <div class="worksTop">
  3203. <div>作业预览</div>
  3204. <div
  3205. class="corOpen"
  3206. @click="contract(toolIndex)"
  3207. v-if="
  3208. (isCloseList[toolIndex].isCloseBoolean) &&
  3209. isCloseList[toolIndex].isClose == 0
  3210. "
  3211. >
  3212. 折叠
  3213. </div>
  3214. <div
  3215. class="corOpen"
  3216. @click="contract(toolIndex)"
  3217. v-if="isCloseList[toolIndex].isClose == 1"
  3218. >
  3219. 展开
  3220. </div>
  3221. </div>
  3222. </div>
  3223. <div
  3224. :id="'tool-' + toolIndex"
  3225. class="worksDetailBox"
  3226. :style="{
  3227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3229. }"
  3230. v-if="
  3231. worksStudent.length &&
  3232. worksStudent[toolIndex].length > 0
  3233. "
  3234. >
  3235. <div
  3236. class="works"
  3237. style="
  3238. width: 200px;
  3239. height: 140px;
  3240. margin: 10px 10px 10px 0;
  3241. border-radius: 15px;
  3242. box-shadow: 0 0 6px 1px #dfdada;
  3243. "
  3244. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3245. :key="wIndex"
  3246. :class="w.type == 1 ? 'isTypeOne' : ''"
  3247. >
  3248. <div class="workImg">
  3249. <img
  3250. :src="word2"
  3251. @click="downloadFile(w.works)"
  3252. alt
  3253. />
  3254. <div
  3255. class="answerScore"
  3256. v-if="w.score"
  3257. @click.stop="openScore(w)"
  3258. :class="{
  3259. rightW:
  3260. w.userid == userid ||
  3261. tType == 1 ||
  3262. tType == 4 ||
  3263. w.ateacher == userid,
  3264. }"
  3265. >
  3266. {{ JSON.parse(w.score).wScore }}分
  3267. </div>
  3268. <div
  3269. class="answerScore"
  3270. @click.stop="openScore(w)"
  3271. v-else-if="courseDetail.userid == userid"
  3272. :class="{
  3273. rightW:
  3274. w.userid == userid ||
  3275. tType == 1 ||
  3276. tType == 4 ||
  3277. w.ateacher == userid,
  3278. }"
  3279. >
  3280. 评分
  3281. </div>
  3282. <img
  3283. class="deleteImg"
  3284. src="../assets/deleteworks.png"
  3285. v-if="
  3286. w.userid == userid || tType == 1 || tType == 4
  3287. "
  3288. @click.stop="deleteWorks(w.wid)"
  3289. alt
  3290. />
  3291. </div>
  3292. <div class="comment" style="min-width: 200px">
  3293. <div class="worksName">
  3294. <div>{{ w.sName }}</div>
  3295. </div>
  3296. <div class="commentList">
  3297. <div class="commentList">
  3298. <div
  3299. class="commentImg"
  3300. @click="
  3301. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3302. "
  3303. >
  3304. <img
  3305. :src="w.isLikes == true ? likes : noLikes"
  3306. alt=""
  3307. />
  3308. </div>
  3309. <div>{{ w.likesCount }}</div>
  3310. </div>
  3311. <div class="commentList" style="margin-right: 15px">
  3312. <div
  3313. class="commentImg"
  3314. @click="commentOther(w, toolIndex, wIndex)"
  3315. >
  3316. <img
  3317. src="../assets/icon/comment/comment.png"
  3318. alt=""
  3319. />
  3320. </div>
  3321. <div>{{ w.commentCount }}</div>
  3322. </div>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3328. 未提交
  3329. </div>
  3330. <div
  3331. class="noWorksS"
  3332. v-if="noWorksS && noWorksS[toolIndex].length"
  3333. >
  3334. <div
  3335. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3336. :key="sIndex"
  3337. class="noWorksName"
  3338. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3339. >
  3340. <el-tooltip effect="dark" :content="s.student" placement="top">
  3341. <span>{{ s.student }}</span>
  3342. </el-tooltip>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. ((tType == 2 && sIsOpen == true) ||
  3350. tType == 1 ||
  3351. tType == 4) &&
  3352. tool.tool.indexOf(57) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="
  3359. worksStudent.length &&
  3360. worksStudent[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div class="worksTop">
  3364. <div>作业预览</div>
  3365. <div
  3366. class="corOpen"
  3367. @click="contract(toolIndex)"
  3368. v-if="
  3369. (isCloseList[toolIndex].isCloseBoolean) &&
  3370. isCloseList[toolIndex].isClose == 0
  3371. "
  3372. >
  3373. 折叠
  3374. </div>
  3375. <div
  3376. class="corOpen"
  3377. @click="contract(toolIndex)"
  3378. v-if="isCloseList[toolIndex].isClose == 1"
  3379. >
  3380. 展开
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div
  3385. :id="'tool-' + toolIndex"
  3386. class="worksDetailBox"
  3387. :style="{
  3388. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3389. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3390. }"
  3391. v-if="
  3392. worksStudent.length &&
  3393. worksStudent[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div
  3397. class="works"
  3398. style="
  3399. width: 200px;
  3400. height: 140px;
  3401. margin: 10px 10px 10px 0;
  3402. border-radius: 15px;
  3403. box-shadow: 0 0 6px 1px #dfdada;
  3404. "
  3405. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3406. :key="wIndex"
  3407. :class="w.type == 1 ? 'isTypeOne' : ''"
  3408. >
  3409. <div class="workImg">
  3410. <img
  3411. :src="word2"
  3412. @click="downloadFile(w.works)"
  3413. v-if="w.type == 12"
  3414. alt
  3415. />
  3416. <img
  3417. :src="word2"
  3418. @click="
  3419. openCocoPi(57, toolIndex, w.userid, w.sName)
  3420. "
  3421. v-else-if="w.type == 15"
  3422. alt
  3423. />
  3424. <div
  3425. class="answerScore"
  3426. v-if="w.score"
  3427. @click.stop="openScore(w)"
  3428. :class="{
  3429. rightW:
  3430. w.userid == userid ||
  3431. tType == 1 ||
  3432. tType == 4 ||
  3433. w.ateacher == userid,
  3434. }"
  3435. >
  3436. {{ JSON.parse(w.score).wScore }}分
  3437. </div>
  3438. <div
  3439. class="answerScore"
  3440. @click.stop="openScore(w)"
  3441. v-else-if="courseDetail.userid == userid"
  3442. :class="{
  3443. rightW:
  3444. w.userid == userid ||
  3445. tType == 1 ||
  3446. tType == 4 ||
  3447. w.ateacher == userid,
  3448. }"
  3449. >
  3450. 评分
  3451. </div>
  3452. <img
  3453. class="deleteImg"
  3454. src="../assets/deleteworks.png"
  3455. v-if="
  3456. w.userid == userid || tType == 1 || tType == 4
  3457. "
  3458. @click.stop="deleteWorks(w.wid)"
  3459. alt
  3460. />
  3461. </div>
  3462. <div class="comment" style="min-width: 200px">
  3463. <div class="worksName">
  3464. <div>{{ w.sName }}</div>
  3465. </div>
  3466. <div class="commentList">
  3467. <div class="commentList">
  3468. <div
  3469. class="commentImg"
  3470. @click="
  3471. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3472. "
  3473. >
  3474. <img
  3475. :src="w.isLikes == true ? likes : noLikes"
  3476. alt=""
  3477. />
  3478. </div>
  3479. <div>{{ w.likesCount }}</div>
  3480. </div>
  3481. <div class="commentList" style="margin-right: 15px">
  3482. <div
  3483. class="commentImg"
  3484. @click="commentOther(w, toolIndex, wIndex)"
  3485. >
  3486. <img
  3487. src="../assets/icon/comment/comment.png"
  3488. alt=""
  3489. />
  3490. </div>
  3491. <div>{{ w.commentCount }}</div>
  3492. </div>
  3493. </div>
  3494. </div>
  3495. </div>
  3496. </div>
  3497. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3498. 未提交
  3499. </div>
  3500. <div
  3501. class="noWorksS"
  3502. v-if="noWorksS && noWorksS[toolIndex].length"
  3503. >
  3504. <div
  3505. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3506. :key="sIndex"
  3507. class="noWorksName"
  3508. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3509. >
  3510. <el-tooltip effect="dark" :content="s.student" placement="top">
  3511. <span>{{ s.student }}</span>
  3512. </el-tooltip>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3517. <div
  3518. class="zuoyeYulan"
  3519. v-if="
  3520. worksStudent.length &&
  3521. worksStudent[toolIndex].length > 0
  3522. "
  3523. >
  3524. <span class="worksTitle">作业预览</span>
  3525. <div
  3526. class="corOpen"
  3527. @click="contract(toolIndex)"
  3528. v-if="
  3529. (isCloseList[toolIndex].isCloseBoolean) &&
  3530. isCloseList[toolIndex].isClose == 0
  3531. "
  3532. >
  3533. 折叠
  3534. </div>
  3535. <div
  3536. class="corOpen"
  3537. @click="contract(toolIndex)"
  3538. v-if="isCloseList[toolIndex].isClose == 1"
  3539. >
  3540. 展开
  3541. </div>
  3542. </div>
  3543. <div
  3544. :id="'tool-' + toolIndex"
  3545. :style="{
  3546. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3547. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3548. }"
  3549. class="worksDetailBox"
  3550. v-if="
  3551. worksStudent.length &&
  3552. worksStudent[toolIndex].length > 0
  3553. "
  3554. >
  3555. <div
  3556. class="works"
  3557. style="
  3558. width: 200px;
  3559. height: 140px;
  3560. margin: 10px 10px 10px 0;
  3561. border-radius: 15px;
  3562. box-shadow: 0 0 6px 1px #dfdada;
  3563. "
  3564. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3565. :key="wIndex"
  3566. :class="w.type == 1 ? 'isTypeOne' : ''"
  3567. >
  3568. <div class="workImg" v-if="w.type == 0">
  3569. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3570. <img
  3571. :src="w.works"
  3572. @click="previewImg(w.works,w)"
  3573. alt
  3574. />
  3575. <div
  3576. class="answerScore"
  3577. v-if="w.score"
  3578. @click.stop="openScore(w)"
  3579. :class="{
  3580. rightW:
  3581. w.userid == userid ||
  3582. tType == 1 ||
  3583. tType == 4 ||
  3584. w.ateacher == userid,
  3585. }"
  3586. >
  3587. {{ JSON.parse(w.score).wScore }}分
  3588. </div>
  3589. <div
  3590. class="answerScore"
  3591. @click.stop="openScore(w)"
  3592. v-else-if="courseDetail.userid == userid"
  3593. :class="{
  3594. rightW:
  3595. w.userid == userid ||
  3596. tType == 1 ||
  3597. tType == 4 ||
  3598. w.ateacher == userid,
  3599. }"
  3600. >
  3601. 评分
  3602. </div>
  3603. <img
  3604. class="deleteImg"
  3605. src="../assets/deleteworks.png"
  3606. v-if="
  3607. w.userid == userid || tType == 1 || tType == 4
  3608. "
  3609. @click.stop="deleteWorks(w.wid)"
  3610. alt
  3611. />
  3612. </div>
  3613. <div
  3614. class="workImg"
  3615. style="cursor: pointer"
  3616. v-if="w.type == 1"
  3617. >
  3618. <img :src="word" @click="openFile(w.works,w)" alt />
  3619. <!-- @click="openFile(w.works)" -->
  3620. <div
  3621. class="answerScore"
  3622. v-if="w.score"
  3623. @click.stop="openScore(w)"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. {{ JSON.parse(w.score).wScore }}分
  3633. </div>
  3634. <div
  3635. class="answerScore"
  3636. @click.stop="openScore(w)"
  3637. v-else-if="courseDetail.userid == userid"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. 评分
  3647. </div>
  3648. <img
  3649. class="deleteImg"
  3650. src="../assets/deleteworks.png"
  3651. v-if="
  3652. w.userid == userid || tType == 1 || tType == 4
  3653. "
  3654. @click.stop="deleteWorks(w.wid)"
  3655. alt
  3656. />
  3657. </div>
  3658. <div class="workImg" v-if="w.type == 3">
  3659. <img
  3660. style="cursor: pointer"
  3661. :src="video"
  3662. @click="openVideo(w)"
  3663. alt
  3664. />
  3665. <!-- @click="openVideo(w.works)" -->
  3666. <div
  3667. class="answerScore"
  3668. v-if="w.score"
  3669. @click.stop="openScore(w)"
  3670. :class="{
  3671. rightW:
  3672. w.userid == userid ||
  3673. tType == 1 ||
  3674. tType == 4 ||
  3675. w.ateacher == userid,
  3676. }"
  3677. >
  3678. {{ JSON.parse(w.score).wScore }}分
  3679. </div>
  3680. <div
  3681. class="answerScore"
  3682. @click.stop="openScore(w)"
  3683. v-else-if="courseDetail.userid == userid"
  3684. :class="{
  3685. rightW:
  3686. w.userid == userid ||
  3687. tType == 1 ||
  3688. tType == 4 ||
  3689. w.ateacher == userid,
  3690. }"
  3691. >
  3692. 评分
  3693. </div>
  3694. <img
  3695. class="deleteImg"
  3696. src="../assets/deleteworks.png"
  3697. v-if="
  3698. w.userid == userid || tType == 1 || tType == 4
  3699. "
  3700. @click.stop="deleteWorks(w.wid)"
  3701. alt
  3702. />
  3703. </div>
  3704. <div class="comment" style="min-width: 200px">
  3705. <div class="worksName">
  3706. <div
  3707. style="cursor: pointer"
  3708. @click="
  3709. openSname(w.sName, w.wid, toolIndex, w.userid)
  3710. "
  3711. >
  3712. {{ w.sName }}
  3713. </div>
  3714. </div>
  3715. <div class="commentList">
  3716. <div class="commentList">
  3717. <div
  3718. class="commentImg"
  3719. @click="
  3720. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3721. "
  3722. >
  3723. <img
  3724. :src="w.isLikes == true ? likes : noLikes"
  3725. alt=""
  3726. />
  3727. </div>
  3728. <div>{{ w.likesCount }}</div>
  3729. </div>
  3730. <div class="commentList" style="margin-right: 15px">
  3731. <div
  3732. class="commentImg"
  3733. @click="commentOther(w, toolIndex, wIndex)"
  3734. >
  3735. <img
  3736. src="../assets/icon/comment/comment.png"
  3737. alt=""
  3738. />
  3739. </div>
  3740. <div>{{ w.commentCount }}</div>
  3741. </div>
  3742. </div>
  3743. </div>
  3744. </div>
  3745. </div>
  3746. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3747. 未提交
  3748. </div>
  3749. <div
  3750. class="noWorksS"
  3751. v-if="noWorksS && noWorksS[toolIndex].length"
  3752. >
  3753. <div
  3754. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3755. :key="sIndex"
  3756. class="noWorksName"
  3757. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3758. >
  3759. <el-tooltip effect="dark" :content="s.student" placement="top">
  3760. <span>{{ s.student }}</span>
  3761. </el-tooltip>
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. v-if="
  3767. tType &&
  3768. ((tType == 2 && sIsOpen == true) ||
  3769. tType == 1 ||
  3770. tType == 4) &&
  3771. tool.tool.indexOf(4) != -1 &&
  3772. (tool.askJson[0].answer ||
  3773. tool.askJson[0].answer === 0) &&
  3774. checkJson[toolIndex].length
  3775. "
  3776. class="xuan_right_box"
  3777. >
  3778. <div
  3779. class="tool_right_box"
  3780. v-for="(item, index) in tool.askJson"
  3781. :key="index"
  3782. >
  3783. <div style="width: calc(100% - 30px);">
  3784. <el-tooltip
  3785. effect="light"
  3786. :content="index + 1 + '、' + item.askstitle"
  3787. placement="top"
  3788. popper-class="text_tooltip"
  3789. >
  3790. <div
  3791. style="
  3792. width: calc(100% - 130px);
  3793. display: block;
  3794. white-space: nowrap;
  3795. overflow: hidden;
  3796. text-overflow: ellipsis;
  3797. word-break: break-word;
  3798. cursor: pointer;
  3799. "
  3800. >
  3801. {{ index + 1 + "、" + item.askstitle }}
  3802. </div>
  3803. </el-tooltip>
  3804. </div>
  3805. <div class="right_box_xuan">
  3806. <span>正确率</span>
  3807. <span>{{
  3808. (checkJson[toolIndex][index].right
  3809. ? checkJson[toolIndex][index].right
  3810. : 0) + "%"
  3811. }}</span>
  3812. </div>
  3813. </div>
  3814. </div>
  3815. <div
  3816. class="xuan_right_box"
  3817. style="background: unset; padding: 0 10px"
  3818. v-if="
  3819. tType &&
  3820. ((tType == 2 && sIsOpen == true) ||
  3821. tType == 1 ||
  3822. tType == 4) &&
  3823. tool.tool.indexOf(4) != -1
  3824. "
  3825. >
  3826. <AskStatic
  3827. v-if="
  3828. worksStudent.length &&
  3829. worksStudent[toolIndex].length > 0
  3830. "
  3831. :askJSON="tool"
  3832. :checkJson="checkJson[toolIndex]"
  3833. ></AskStatic>
  3834. </div>
  3835. <div
  3836. v-if="
  3837. tType &&
  3838. ((tType == 2 && sIsOpen == true) ||
  3839. tType == 1 ||
  3840. tType == 4) &&
  3841. tool.tool.indexOf(4) != -1
  3842. "
  3843. class="worksBox"
  3844. >
  3845. <div
  3846. class="zuoyeYulan"
  3847. v-if="
  3848. worksStudent.length &&
  3849. worksStudent[toolIndex].length > 0
  3850. "
  3851. >
  3852. <div class="worksTop">
  3853. <div>作业预览</div>
  3854. <div
  3855. class="corOpen"
  3856. @click="contract(toolIndex)"
  3857. v-if="
  3858. (isCloseList[toolIndex].isCloseBoolean) &&
  3859. isCloseList[toolIndex].isClose == 0
  3860. "
  3861. >
  3862. 折叠
  3863. </div>
  3864. <div
  3865. class="corOpen"
  3866. @click="contract(toolIndex)"
  3867. v-if="isCloseList[toolIndex].isClose == 1"
  3868. >
  3869. 展开
  3870. </div>
  3871. </div>
  3872. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3873. </div>
  3874. <div>
  3875. <div
  3876. :id="'tool-' + toolIndex"
  3877. :style="{
  3878. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3879. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3880. }"
  3881. class="worksDetailBox"
  3882. v-if="
  3883. worksStudent.length &&
  3884. worksStudent[toolIndex].length > 0
  3885. "
  3886. >
  3887. <div
  3888. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3889. :key="wIndex"
  3890. class="isWorksName2"
  3891. @click="
  3892. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3893. "
  3894. >
  3895. {{ w.sName }}
  3896. <img
  3897. class="deleteImg deleteImg2"
  3898. src="../assets/deleteworks.png"
  3899. v-if="
  3900. w.userid == userid || tType == 1 || tType == 4
  3901. "
  3902. @click.stop="deleteWorks(w.wid)"
  3903. alt
  3904. />
  3905. </div>
  3906. <!-- <div class="works" style="
  3907. width: 200px;
  3908. height: 140px;
  3909. border-radius: 10px;
  3910. box-shadow: 0 0 6px 1px #dfdada;
  3911. overflow: hidden;
  3912. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3913. <div class="workImg">
  3914. <img src="../assets/icon/works/noImg.png" @click="
  3915. openTools(
  3916. 4,
  3917. toolIndex,
  3918. taskCount,
  3919. w.works,
  3920. w.sName
  3921. )
  3922. " alt />
  3923. </div>
  3924. <div class="worksName">
  3925. <div>{{ w.sName }}</div>
  3926. <div>{{ w.time }}</div>
  3927. </div>
  3928. </div> -->
  3929. </div>
  3930. </div>
  3931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3932. 未提交
  3933. </div>
  3934. <div
  3935. class="noWorksS"
  3936. v-if="noWorksS && noWorksS[toolIndex].length"
  3937. >
  3938. <div
  3939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3940. :key="sIndex"
  3941. class="noWorksName"
  3942. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3943. >
  3944. <el-tooltip effect="dark" :content="s.student" placement="top">
  3945. <span>{{ s.student }}</span>
  3946. </el-tooltip>
  3947. </div>
  3948. </div>
  3949. </div>
  3950. <div
  3951. v-if="
  3952. tType &&
  3953. ((tType == 2 && sIsOpen == true) ||
  3954. tType == 1 ||
  3955. tType == 4) &&
  3956. tool.tool.indexOf(45) != -1 &&
  3957. (tool.testJson.testJson[0].answer ||
  3958. tool.testJson.testJson[0].answer === 0) &&
  3959. checkJson[toolIndex].length
  3960. "
  3961. class="xuan_right_box"
  3962. >
  3963. <div
  3964. class="tool_right_box"
  3965. v-for="(item, index) in tool.testJson.testJson"
  3966. :key="index"
  3967. >
  3968. <div class="right_box_xuan" style="margin-right: 10px">
  3969. <span>正确率</span>
  3970. <span>{{
  3971. (checkJson[toolIndex][index].right
  3972. ? checkJson[toolIndex][index].right
  3973. : 0) + "%"
  3974. }}</span>
  3975. </div>
  3976. <div style="width: calc(100% - 30px);">
  3977. <el-tooltip
  3978. effect="light"
  3979. :content="index + 1 + '、' + item.teststitle"
  3980. placement="top"
  3981. popper-class="text_tooltip"
  3982. >
  3983. <div
  3984. style="
  3985. width: calc(100% - 130px);
  3986. display: block;
  3987. white-space: nowrap;
  3988. overflow: hidden;
  3989. text-overflow: ellipsis;
  3990. word-break: break-word;
  3991. cursor: pointer;
  3992. "
  3993. >
  3994. {{ index + 1 + "、" + item.teststitle }}
  3995. </div>
  3996. </el-tooltip>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. <div
  4001. class="xuan_right_box"
  4002. style="background: unset; padding: 0 10px; width: 91.5%"
  4003. v-if="
  4004. tType &&
  4005. ((tType == 2 && sIsOpen == true) ||
  4006. tType == 1 ||
  4007. tType == 4) &&
  4008. tool.tool.indexOf(45) != -1
  4009. "
  4010. >
  4011. <AskStatic2
  4012. v-if="
  4013. worksStudent.length &&
  4014. worksStudent[toolIndex].length > 0
  4015. "
  4016. :askJSON="tool"
  4017. :checkJson="checkJson[toolIndex]"
  4018. ></AskStatic2>
  4019. </div>
  4020. <div
  4021. v-if="
  4022. tType &&
  4023. ((tType == 2 && sIsOpen == true) ||
  4024. tType == 1 ||
  4025. tType == 4) &&
  4026. tool.tool.indexOf(45) != -1
  4027. "
  4028. class="worksBox"
  4029. >
  4030. <div
  4031. class="zuoyeYulan"
  4032. v-if="
  4033. worksStudent.length &&
  4034. worksStudent[toolIndex].length > 0
  4035. "
  4036. >
  4037. <div class="worksTop">
  4038. <div>作业预览</div>
  4039. <div
  4040. class="corOpen"
  4041. @click="contract(toolIndex)"
  4042. v-if="
  4043. (isCloseList[toolIndex].isCloseBoolean) &&
  4044. isCloseList[toolIndex].isClose == 0
  4045. "
  4046. >
  4047. 折叠
  4048. </div>
  4049. <div
  4050. class="corOpen"
  4051. @click="contract(toolIndex)"
  4052. v-if="isCloseList[toolIndex].isClose == 1"
  4053. >
  4054. 展开
  4055. </div>
  4056. </div>
  4057. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4058. </div>
  4059. <div>
  4060. <div
  4061. :id="'tool-' + toolIndex"
  4062. :style="{
  4063. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4064. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4065. }"
  4066. class="worksDetailBox"
  4067. v-if="
  4068. worksStudent.length &&
  4069. worksStudent[toolIndex].length > 0
  4070. "
  4071. >
  4072. <div
  4073. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4074. :key="wIndex"
  4075. class="isWorksName2"
  4076. @click="
  4077. openTools(
  4078. 45,
  4079. toolIndex,
  4080. taskCount,
  4081. w.works,
  4082. w.sName
  4083. )
  4084. "
  4085. >
  4086. {{ w.sName }}
  4087. <img
  4088. class="deleteImg deleteImg2"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. </div>
  4098. </div>
  4099. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4100. 未提交
  4101. </div>
  4102. <div
  4103. class="noWorksS"
  4104. v-if="noWorksS && noWorksS[toolIndex].length"
  4105. >
  4106. <div
  4107. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4108. :key="sIndex"
  4109. class="noWorksName"
  4110. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4111. >
  4112. <el-tooltip effect="dark" :content="s.student" placement="top">
  4113. <span>{{ s.student }}</span>
  4114. </el-tooltip>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. <div
  4119. v-if="
  4120. tType &&
  4121. ((tType == 2 && sIsOpen == true) ||
  4122. tType == 1 ||
  4123. tType == 4) &&
  4124. tool.tool.indexOf(69) != -1
  4125. "
  4126. class="worksBox"
  4127. >
  4128. <div
  4129. class="zuoyeYulan"
  4130. v-if="
  4131. worksStudent.length &&
  4132. worksStudent[toolIndex].length > 0
  4133. "
  4134. >
  4135. <div class="worksTop">
  4136. <div>作业预览</div>
  4137. <div
  4138. class="corOpen"
  4139. @click="contract(toolIndex)"
  4140. v-if="
  4141. (isCloseList[toolIndex].isCloseBoolean) &&
  4142. isCloseList[toolIndex].isClose == 0
  4143. "
  4144. >
  4145. 折叠
  4146. </div>
  4147. <div
  4148. class="corOpen"
  4149. @click="contract(toolIndex)"
  4150. v-if="isCloseList[toolIndex].isClose == 1"
  4151. >
  4152. 展开
  4153. </div>
  4154. </div>
  4155. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4156. </div>
  4157. <div>
  4158. <div
  4159. :id="'tool-' + toolIndex"
  4160. :style="{
  4161. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4162. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4163. }"
  4164. class="worksDetailBox"
  4165. v-if="
  4166. worksStudent.length &&
  4167. worksStudent[toolIndex].length > 0
  4168. "
  4169. >
  4170. <div
  4171. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4172. :key="wIndex"
  4173. class="isWorksName2"
  4174. style="width: 160px;height: 65px;line-height: 65px;"
  4175. @click="
  4176. openTools(
  4177. 69,
  4178. toolIndex,
  4179. taskCount,
  4180. w.works,
  4181. w.sName,
  4182. w.wid
  4183. )
  4184. "
  4185. >
  4186. {{ w.sName }}
  4187. <img
  4188. class="deleteImg1"
  4189. src="../assets/evaEnglish.png"
  4190. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4191. alt
  4192. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4193. />
  4194. <img
  4195. class="deleteImg deleteImg2"
  4196. src="../assets/deleteworks.png"
  4197. v-if="
  4198. w.userid == userid || tType == 1 || tType == 4
  4199. "
  4200. @click.stop="deleteWorks(w.wid)"
  4201. alt
  4202. />
  4203. </div>
  4204. </div>
  4205. </div>
  4206. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4207. 未提交
  4208. </div>
  4209. <div
  4210. class="noWorksS"
  4211. v-if="noWorksS && noWorksS[toolIndex].length"
  4212. >
  4213. <div
  4214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4215. :key="sIndex"
  4216. class="noWorksName"
  4217. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4218. >
  4219. <el-tooltip effect="dark" :content="s.student" placement="top">
  4220. <span>{{ s.student }}</span>
  4221. </el-tooltip>
  4222. </div>
  4223. </div>
  4224. </div>
  4225. <div
  4226. v-if="
  4227. tType &&
  4228. ((tType == 2 && sIsOpen == true) ||
  4229. tType == 1 ||
  4230. tType == 4) &&
  4231. tool.tool.indexOf(15) != -1
  4232. "
  4233. class="worksBox"
  4234. >
  4235. <div
  4236. class="zuoyeYulan"
  4237. v-if="
  4238. (worksStudent.length &&
  4239. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4240. "
  4241. >
  4242. <div class="worksTop">
  4243. <div>作业预览</div>
  4244. <div
  4245. class="corOpen"
  4246. @click="contract(toolIndex)"
  4247. v-if="
  4248. (isCloseList[toolIndex].isCloseBoolean) &&
  4249. isCloseList[toolIndex].isClose == 0
  4250. "
  4251. >
  4252. 折叠
  4253. </div>
  4254. <div
  4255. class="corOpen"
  4256. @click="contract(toolIndex)"
  4257. v-if="isCloseList[toolIndex].isClose == 1"
  4258. >
  4259. 展开
  4260. </div>
  4261. </div>
  4262. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4263. </div>
  4264. <div
  4265. class="group_workBox"
  4266. v-for="(g, gindex) in courseGroup.group"
  4267. :key="gindex"
  4268. >
  4269. <div class="group_box">
  4270. <div class="group_title">
  4271. <el-tooltip
  4272. class="item"
  4273. effect="light"
  4274. :content="g.name"
  4275. placement="top"
  4276. >
  4277. <div class="group_name">{{ g.name }}</div>
  4278. </el-tooltip>
  4279. </div>
  4280. <div
  4281. class="group_work"
  4282. v-if="
  4283. g.works &&
  4284. g.works.length &&
  4285. g.works[toolIndex].length
  4286. "
  4287. >
  4288. <div
  4289. class="works"
  4290. v-for="(w, wIndex) in g.works[toolIndex]"
  4291. :key="wIndex"
  4292. >
  4293. <div
  4294. class="workImg"
  4295. style="
  4296. border-radius: 15px;
  4297. box-shadow: 0px 0px 5px 5px #eee;
  4298. "
  4299. >
  4300. <div
  4301. class="answerBg"
  4302. style="border-radius: 15px 15px 0 0"
  4303. @click="
  4304. commentOther(w, toolIndex, wIndex, null, g.id)
  4305. "
  4306. >
  4307. <div class="answerContent">
  4308. {{ JSON.parse(w.works)[0].answer }}
  4309. </div>
  4310. <div
  4311. class="answerScore"
  4312. v-if="w.score"
  4313. @click.stop="openScore(w)"
  4314. :class="{
  4315. rightW:
  4316. w.userid == userid ||
  4317. tType == 1 ||
  4318. tType == 4,
  4319. }"
  4320. >
  4321. {{ JSON.parse(w.score).wScore }}分
  4322. </div>
  4323. <div
  4324. class="answerScore"
  4325. @click.stop="openScore(w)"
  4326. v-else-if="courseDetail.userid == userid"
  4327. :class="{
  4328. rightW:
  4329. w.userid == userid ||
  4330. tType == 1 ||
  4331. tType == 4,
  4332. }"
  4333. >
  4334. 评分
  4335. </div>
  4336. <img
  4337. class="deleteImg"
  4338. src="../assets/deleteworks.png"
  4339. v-if="
  4340. w.userid == userid ||
  4341. tType == 1 ||
  4342. tType == 4
  4343. "
  4344. @click.stop="deleteWorks(w.wid)"
  4345. alt
  4346. />
  4347. </div>
  4348. <div class="comment">
  4349. <div class="worksName">
  4350. <div>{{ w.sName }}</div>
  4351. </div>
  4352. <div class="commentList">
  4353. <div
  4354. class="commentImg"
  4355. @click="
  4356. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4357. "
  4358. >
  4359. <img
  4360. :src="w.isLikes == true ? likes : noLikes"
  4361. alt=""
  4362. />
  4363. </div>
  4364. <div>{{ w.likesCount }}</div>
  4365. </div>
  4366. <div
  4367. class="commentList"
  4368. style="margin-right: 15px"
  4369. >
  4370. <div
  4371. class="commentImg"
  4372. @click="
  4373. commentOther(
  4374. w,
  4375. toolIndex,
  4376. wIndex,
  4377. null,
  4378. g.id
  4379. )
  4380. "
  4381. >
  4382. <img
  4383. src="../assets/icon/comment/comment.png"
  4384. alt=""
  4385. />
  4386. </div>
  4387. <div>{{ w.commentCount }}</div>
  4388. </div>
  4389. </div>
  4390. </div>
  4391. </div>
  4392. </div>
  4393. <div class="group_work" v-else>暂无提交作业</div>
  4394. </div>
  4395. </div>
  4396. <div
  4397. :id="'tool-' + toolIndex"
  4398. :style="{
  4399. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4400. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4401. }"
  4402. class="worksDetailBox"
  4403. v-if="
  4404. worksStudent.length &&
  4405. worksStudent[toolIndex].length > 0
  4406. "
  4407. >
  4408. <div
  4409. class="works"
  4410. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4411. :key="wIndex"
  4412. >
  4413. <div
  4414. class="workImg"
  4415. style="
  4416. border-radius: 15px;
  4417. box-shadow: 0px 0px 5px 5px #eee;
  4418. "
  4419. >
  4420. <!-- <img
  4421. src="../assets/icon/works/noImg.png"
  4422. @click="openTools(15, toolIndex, taskCount, w.works)"
  4423. alt=""
  4424. />-->
  4425. <div
  4426. class="answerBg"
  4427. style="border-radius: 15px 15px 0 0"
  4428. @click="commentOther(w, toolIndex, wIndex)"
  4429. >
  4430. <!-- <div>{{ w.sName }}</div> -->
  4431. <div class="answerContent">
  4432. {{ JSON.parse(w.works)[0].answer }}
  4433. </div>
  4434. <div
  4435. class="answerScore"
  4436. v-if="w.score"
  4437. @click.stop="openScore(w)"
  4438. :class="{
  4439. rightW:
  4440. w.userid == userid ||
  4441. tType == 1 ||
  4442. tType == 4,
  4443. }"
  4444. >
  4445. {{ JSON.parse(w.score).wScore }}分
  4446. </div>
  4447. <div
  4448. class="answerScore"
  4449. @click.stop="openScore(w)"
  4450. v-else-if="courseDetail.userid == userid"
  4451. :class="{
  4452. rightW:
  4453. w.userid == userid ||
  4454. tType == 1 ||
  4455. tType == 4,
  4456. }"
  4457. >
  4458. 评分
  4459. </div>
  4460. <img
  4461. class="deleteImg"
  4462. src="../assets/deleteworks.png"
  4463. v-if="
  4464. w.userid == userid || tType == 1 || tType == 4
  4465. "
  4466. @click.stop="deleteWorks(w.wid)"
  4467. alt
  4468. />
  4469. </div>
  4470. <div class="comment">
  4471. <div class="worksName">
  4472. <div>{{ w.sName }}</div>
  4473. </div>
  4474. <div class="commentList">
  4475. <div
  4476. class="commentImg"
  4477. @click="
  4478. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4479. "
  4480. >
  4481. <img
  4482. :src="w.isLikes == true ? likes : noLikes"
  4483. alt=""
  4484. />
  4485. </div>
  4486. <div>{{ w.likesCount }}</div>
  4487. </div>
  4488. <div class="commentList" style="margin-right: 15px">
  4489. <div
  4490. class="commentImg"
  4491. @click="commentOther(w, toolIndex, wIndex)"
  4492. >
  4493. <img
  4494. src="../assets/icon/comment/comment.png"
  4495. alt=""
  4496. />
  4497. </div>
  4498. <div>{{ w.commentCount }}</div>
  4499. </div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4505. 未提交
  4506. </div>
  4507. <div
  4508. class="noWorksS"
  4509. v-if="noWorksS && noWorksS[toolIndex].length"
  4510. >
  4511. <div
  4512. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4513. :key="sIndex"
  4514. class="noWorksName"
  4515. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4516. >
  4517. <el-tooltip effect="dark" :content="s.student" placement="top">
  4518. <span>{{ s.student }}</span>
  4519. </el-tooltip>
  4520. </div>
  4521. </div>
  4522. </div>
  4523. <div
  4524. v-if="
  4525. tType &&
  4526. ((tType == 2 && sIsOpen == true) ||
  4527. tType == 1 ||
  4528. tType == 4) &&
  4529. tool.tool.indexOf(1) != -1
  4530. "
  4531. class="worksBox"
  4532. >
  4533. <div
  4534. class="zuoyeYulan"
  4535. v-if="
  4536. (worksStudent.length &&
  4537. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4538. "
  4539. >
  4540. <div class="worksTop">
  4541. <div>作业预览</div>
  4542. <div
  4543. class="corOpen"
  4544. @click="contract(toolIndex)"
  4545. v-if="
  4546. (isCloseList[toolIndex].isCloseBoolean) &&
  4547. isCloseList[toolIndex].isClose == 0
  4548. "
  4549. >
  4550. 折叠
  4551. </div>
  4552. <div
  4553. class="corOpen"
  4554. @click="contract(toolIndex)"
  4555. v-if="isCloseList[toolIndex].isClose == 1"
  4556. >
  4557. 展开
  4558. </div>
  4559. </div>
  4560. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4561. </div>
  4562. <div
  4563. class="group_workBox"
  4564. v-for="(g, gindex) in courseGroup.group"
  4565. :key="gindex"
  4566. >
  4567. <div class="group_box">
  4568. <div class="group_title">
  4569. <el-tooltip
  4570. class="item"
  4571. effect="light"
  4572. :content="g.name"
  4573. placement="top"
  4574. >
  4575. <div class="group_name">{{ g.name }}</div>
  4576. </el-tooltip>
  4577. </div>
  4578. <div
  4579. class="group_work"
  4580. v-if="
  4581. g.works &&
  4582. g.works.length &&
  4583. g.works[toolIndex].length
  4584. "
  4585. >
  4586. <div
  4587. class="works"
  4588. style="
  4589. width: 200px;
  4590. height: 140px;
  4591. margin: 10px 10px 10px 0;
  4592. border-radius: 15px;
  4593. box-shadow: 0 0 6px 1px #dfdada;
  4594. "
  4595. v-for="(w, wIndex) in g.works[toolIndex]"
  4596. :key="wIndex"
  4597. :class="w.type == 1 ? 'isTypeOne' : ''"
  4598. >
  4599. <div class="workImg">
  4600. <img
  4601. :src="w.works"
  4602. @click="previewImg(w.works,w)"
  4603. alt
  4604. />
  4605. <div
  4606. class="answerScore"
  4607. v-if="w.score"
  4608. @click.stop="openScore(w)"
  4609. :class="{
  4610. rightW:
  4611. w.userid == userid ||
  4612. tType == 1 ||
  4613. tType == 4,
  4614. }"
  4615. >
  4616. {{ JSON.parse(w.score).wScore }}分
  4617. </div>
  4618. <div
  4619. class="answerScore"
  4620. @click.stop="openScore(w)"
  4621. v-else-if="courseDetail.userid == userid"
  4622. :class="{
  4623. rightW:
  4624. w.userid == userid ||
  4625. tType == 1 ||
  4626. tType == 4,
  4627. }"
  4628. >
  4629. 评分
  4630. </div>
  4631. <img
  4632. class="deleteImg"
  4633. src="../assets/deleteworks.png"
  4634. v-if="
  4635. w.userid == userid || tType == 1 || tType == 4
  4636. "
  4637. @click.stop="deleteWorks(w.wid)"
  4638. alt
  4639. />
  4640. </div>
  4641. <div class="comment" style="min-width: 200px">
  4642. <div class="worksName">
  4643. <div>{{ w.sName }}</div>
  4644. </div>
  4645. <div class="commentList">
  4646. <div class="commentList">
  4647. <div
  4648. class="commentImg"
  4649. @click="
  4650. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4651. "
  4652. >
  4653. <img
  4654. :src="w.isLikes == true ? likes : noLikes"
  4655. alt=""
  4656. />
  4657. </div>
  4658. <div>{{ w.likesCount }}</div>
  4659. </div>
  4660. <div
  4661. class="commentList"
  4662. style="margin-right: 15px"
  4663. >
  4664. <div
  4665. class="commentImg"
  4666. @click="
  4667. commentOther(
  4668. w,
  4669. toolIndex,
  4670. wIndex,
  4671. null,
  4672. g.id
  4673. )
  4674. "
  4675. >
  4676. <img
  4677. src="../assets/icon/comment/comment.png"
  4678. alt=""
  4679. />
  4680. </div>
  4681. <div>{{ w.commentCount }}</div>
  4682. </div>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. <div class="group_work" v-else>暂无提交作业</div>
  4688. </div>
  4689. </div>
  4690. <div
  4691. :id="'tool-' + toolIndex"
  4692. :style="{
  4693. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4694. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4695. }"
  4696. class="worksDetailBox"
  4697. v-if="
  4698. worksStudent.length &&
  4699. worksStudent[toolIndex].length > 0
  4700. "
  4701. >
  4702. <div
  4703. class="works"
  4704. style="
  4705. width: 200px;
  4706. height: 140px;
  4707. margin: 10px 10px 10px 0;
  4708. border-radius: 15px;
  4709. box-shadow: 0 0 6px 1px #dfdada;
  4710. "
  4711. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4712. :key="wIndex"
  4713. >
  4714. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4715. <div class="workImg">
  4716. <img
  4717. :src="w.works"
  4718. @click="previewImg(w.works,w)"
  4719. alt
  4720. />
  4721. <div
  4722. class="answerScore"
  4723. v-if="w.score"
  4724. @click.stop="openScore(w)"
  4725. :class="{
  4726. rightW:
  4727. w.userid == userid || tType == 1 || tType == 4,
  4728. }"
  4729. >
  4730. {{ JSON.parse(w.score).wScore }}分
  4731. </div>
  4732. <div
  4733. class="answerScore"
  4734. @click.stop="openScore(w)"
  4735. v-else-if="courseDetail.userid == userid"
  4736. :class="{
  4737. rightW:
  4738. w.userid == userid || tType == 1 || tType == 4,
  4739. }"
  4740. >
  4741. 评分
  4742. </div>
  4743. <img
  4744. class="deleteImg"
  4745. src="../assets/deleteworks.png"
  4746. v-if="
  4747. w.userid == userid || tType == 1 || tType == 4
  4748. "
  4749. @click.stop="deleteWorks(w.wid)"
  4750. alt
  4751. />
  4752. </div>
  4753. <div class="comment" style="min-width: 200px">
  4754. <div class="worksName">
  4755. <div>{{ w.sName }}</div>
  4756. </div>
  4757. <div class="commentList">
  4758. <div class="commentList">
  4759. <div
  4760. class="commentImg"
  4761. @click="
  4762. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4763. "
  4764. >
  4765. <img
  4766. :src="w.isLikes == true ? likes : noLikes"
  4767. alt=""
  4768. />
  4769. </div>
  4770. <div>{{ w.likesCount }}</div>
  4771. </div>
  4772. <div class="commentList" style="margin-right: 15px">
  4773. <div
  4774. class="commentImg"
  4775. @click="commentOther(w, toolIndex, wIndex)"
  4776. >
  4777. <img
  4778. src="../assets/icon/comment/comment.png"
  4779. alt=""
  4780. />
  4781. </div>
  4782. <div>{{ w.commentCount }}</div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4789. 未提交
  4790. </div>
  4791. <div
  4792. class="noWorksS"
  4793. v-if="noWorksS && noWorksS[toolIndex].length"
  4794. >
  4795. <div
  4796. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4797. :key="sIndex"
  4798. class="noWorksName"
  4799. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4800. >
  4801. <el-tooltip effect="dark" :content="s.student" placement="top">
  4802. <span>{{ s.student }}</span>
  4803. </el-tooltip>
  4804. </div>
  4805. </div>
  4806. </div>
  4807. <div
  4808. v-if="
  4809. tType &&
  4810. ((tType == 2 && sIsOpen == true) ||
  4811. tType == 1 ||
  4812. tType == 4) &&
  4813. tool.tool.indexOf(3) != -1
  4814. "
  4815. class="worksBox"
  4816. >
  4817. <div
  4818. class="zuoyeYulan"
  4819. v-if="
  4820. (worksStudent.length &&
  4821. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4822. "
  4823. >
  4824. <div class="worksTop">
  4825. <div>作业预览</div>
  4826. <div
  4827. class="corOpen"
  4828. @click="contract(toolIndex)"
  4829. v-if="
  4830. (isCloseList[toolIndex].isCloseBoolean) &&
  4831. isCloseList[toolIndex].isClose == 0
  4832. "
  4833. >
  4834. 折叠
  4835. </div>
  4836. <div
  4837. class="corOpen"
  4838. @click="contract(toolIndex)"
  4839. v-if="isCloseList[toolIndex].isClose == 1"
  4840. >
  4841. 展开
  4842. </div>
  4843. </div>
  4844. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4845. </div>
  4846. <div
  4847. class="group_workBox"
  4848. v-for="(g, gindex) in courseGroup.group"
  4849. :key="gindex"
  4850. >
  4851. <div class="group_box">
  4852. <div class="group_title">
  4853. <el-tooltip
  4854. class="item"
  4855. effect="light"
  4856. :content="g.name"
  4857. placement="top"
  4858. >
  4859. <div class="group_name">{{ g.name }}</div>
  4860. </el-tooltip>
  4861. </div>
  4862. <div
  4863. class="group_work"
  4864. v-if="
  4865. g.works &&
  4866. g.works.length &&
  4867. g.works[toolIndex].length
  4868. "
  4869. >
  4870. <div
  4871. class="works"
  4872. style="
  4873. width: 200px;
  4874. height: 140px;
  4875. margin: 10px 10px 10px 0;
  4876. border-radius: 15px;
  4877. box-shadow: 0 0 6px 1px #dfdada;
  4878. "
  4879. v-for="(w, wIndex) in g.works[toolIndex]"
  4880. :key="wIndex"
  4881. :class="w.type == 1 ? 'isTypeOne' : ''"
  4882. >
  4883. <div class="workImg">
  4884. <img
  4885. :src="w.works"
  4886. @click="previewImg(w.works,w)"
  4887. alt
  4888. />
  4889. <div
  4890. class="answerScore"
  4891. v-if="w.score"
  4892. @click.stop="openScore(w)"
  4893. :class="{
  4894. rightW:
  4895. w.userid == userid ||
  4896. tType == 1 ||
  4897. tType == 4,
  4898. }"
  4899. >
  4900. {{ JSON.parse(w.score).wScore }}分
  4901. </div>
  4902. <div
  4903. class="answerScore"
  4904. @click.stop="openScore(w)"
  4905. v-else-if="courseDetail.userid == userid"
  4906. :class="{
  4907. rightW:
  4908. w.userid == userid ||
  4909. tType == 1 ||
  4910. tType == 4,
  4911. }"
  4912. >
  4913. 评分
  4914. </div>
  4915. <img
  4916. class="deleteImg"
  4917. src="../assets/deleteworks.png"
  4918. v-if="
  4919. w.userid == userid || tType == 1 || tType == 4
  4920. "
  4921. @click.stop="deleteWorks(w.wid)"
  4922. alt
  4923. />
  4924. </div>
  4925. <div class="comment" style="min-width: 200px">
  4926. <div class="worksName">
  4927. <div>{{ w.sName }}</div>
  4928. </div>
  4929. <div class="commentList">
  4930. <div class="commentList">
  4931. <div
  4932. class="commentImg"
  4933. @click="
  4934. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4935. "
  4936. >
  4937. <img
  4938. :src="w.isLikes == true ? likes : noLikes"
  4939. alt=""
  4940. />
  4941. </div>
  4942. <div>{{ w.likesCount }}</div>
  4943. </div>
  4944. <div
  4945. class="commentList"
  4946. style="margin-right: 15px"
  4947. >
  4948. <div
  4949. class="commentImg"
  4950. @click="
  4951. commentOther(
  4952. w,
  4953. toolIndex,
  4954. wIndex,
  4955. null,
  4956. g.id
  4957. )
  4958. "
  4959. >
  4960. <img
  4961. src="../assets/icon/comment/comment.png"
  4962. alt=""
  4963. />
  4964. </div>
  4965. <div>{{ w.commentCount }}</div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. </div>
  4970. </div>
  4971. <div class="group_work" v-else>暂无提交作业</div>
  4972. </div>
  4973. </div>
  4974. <div
  4975. :id="'tool-' + toolIndex"
  4976. :style="{
  4977. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4978. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4979. }"
  4980. class="worksDetailBox"
  4981. v-if="
  4982. worksStudent.length &&
  4983. worksStudent[toolIndex].length > 0
  4984. "
  4985. >
  4986. <div
  4987. class="works"
  4988. style="
  4989. width: 200px;
  4990. height: 140px;
  4991. margin: 10px 10px 10px 0;
  4992. border-radius: 15px;
  4993. box-shadow: 0 0 6px 1px #dfdada;
  4994. "
  4995. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4996. :key="wIndex"
  4997. >
  4998. <!-- @click="previewImg(w.works)" -->
  4999. <div class="workImg">
  5000. <img
  5001. :src="w.works"
  5002. @click="previewImg(w.works,w)"
  5003. alt
  5004. />
  5005. <div
  5006. class="answerScore"
  5007. v-if="w.score"
  5008. @click.stop="openScore(w)"
  5009. :class="{
  5010. rightW:
  5011. w.userid == userid || tType == 1 || tType == 4,
  5012. }"
  5013. >
  5014. {{ JSON.parse(w.score).wScore }}分
  5015. </div>
  5016. <div
  5017. class="answerScore"
  5018. @click.stop="openScore(w)"
  5019. v-else-if="courseDetail.userid == userid"
  5020. :class="{
  5021. rightW:
  5022. w.userid == userid || tType == 1 || tType == 4,
  5023. }"
  5024. >
  5025. 评分
  5026. </div>
  5027. <img
  5028. class="deleteImg"
  5029. src="../assets/deleteworks.png"
  5030. v-if="
  5031. w.userid == userid || tType == 1 || tType == 4
  5032. "
  5033. @click.stop="deleteWorks(w.wid)"
  5034. alt
  5035. />
  5036. </div>
  5037. <div class="comment" style="min-width: 200px">
  5038. <div class="worksName">
  5039. <div>{{ w.sName }}</div>
  5040. </div>
  5041. <div class="commentList">
  5042. <div class="commentList">
  5043. <div
  5044. class="commentImg"
  5045. @click="
  5046. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5047. "
  5048. >
  5049. <img
  5050. :src="w.isLikes == true ? likes : noLikes"
  5051. alt=""
  5052. />
  5053. </div>
  5054. <div>{{ w.likesCount }}</div>
  5055. </div>
  5056. <div class="commentList" style="margin-right: 15px">
  5057. <div
  5058. class="commentImg"
  5059. @click="commentOther(w, toolIndex, wIndex)"
  5060. >
  5061. <img
  5062. src="../assets/icon/comment/comment.png"
  5063. alt=""
  5064. />
  5065. </div>
  5066. <div>{{ w.commentCount }}</div>
  5067. </div>
  5068. </div>
  5069. </div>
  5070. </div>
  5071. </div>
  5072. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5073. 未提交
  5074. </div>
  5075. <div
  5076. class="noWorksS"
  5077. v-if="noWorksS && noWorksS[toolIndex].length"
  5078. >
  5079. <div
  5080. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5081. :key="sIndex"
  5082. class="noWorksName"
  5083. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5084. >
  5085. <el-tooltip effect="dark" :content="s.student" placement="top">
  5086. <span>{{ s.student }}</span>
  5087. </el-tooltip>
  5088. </div>
  5089. </div>
  5090. </div>
  5091. <div
  5092. v-if="
  5093. tType &&
  5094. ((tType == 2 && sIsOpen == true) ||
  5095. tType == 1 ||
  5096. tType == 4) &&
  5097. tool.tool.indexOf(6) != -1
  5098. "
  5099. class="worksBox"
  5100. >
  5101. <div
  5102. class="zuoyeYulan"
  5103. v-if="
  5104. (worksStudent.length &&
  5105. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5106. "
  5107. >
  5108. <div class="worksTop">
  5109. <div>作业预览</div>
  5110. <div
  5111. class="corOpen"
  5112. @click="contract(toolIndex)"
  5113. v-if="
  5114. (isCloseList[toolIndex].isCloseBoolean) &&
  5115. isCloseList[toolIndex].isClose == 0
  5116. "
  5117. >
  5118. 折叠
  5119. </div>
  5120. <div
  5121. class="corOpen"
  5122. @click="contract(toolIndex)"
  5123. v-if="isCloseList[toolIndex].isClose == 1"
  5124. >
  5125. 展开
  5126. </div>
  5127. </div>
  5128. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5129. </div>
  5130. <div
  5131. class="group_workBox"
  5132. v-for="(g, gindex) in courseGroup.group"
  5133. :key="gindex"
  5134. >
  5135. <div class="group_box">
  5136. <div class="group_title">
  5137. <el-tooltip
  5138. class="item"
  5139. effect="light"
  5140. :content="g.name"
  5141. placement="top"
  5142. >
  5143. <div class="group_name">{{ g.name }}</div>
  5144. </el-tooltip>
  5145. </div>
  5146. <div
  5147. class="group_work"
  5148. v-if="
  5149. g.works &&
  5150. g.works.length &&
  5151. g.works[toolIndex].length
  5152. "
  5153. >
  5154. <div
  5155. class="works"
  5156. style="
  5157. width: 200px;
  5158. height: 140px;
  5159. margin: 10px 10px 10px 0;
  5160. border-radius: 15px;
  5161. box-shadow: 0 0 6px 1px #dfdada;
  5162. "
  5163. v-for="(w, wIndex) in g.works[toolIndex]"
  5164. :key="wIndex"
  5165. :class="w.type == 1 ? 'isTypeOne' : ''"
  5166. >
  5167. <div class="workImg">
  5168. <img
  5169. :src="w.works"
  5170. @click="previewImg(w.works,w)"
  5171. alt
  5172. />
  5173. <div
  5174. class="answerScore"
  5175. v-if="w.score"
  5176. @click.stop="openScore(w)"
  5177. :class="{
  5178. rightW:
  5179. w.userid == userid ||
  5180. tType == 1 ||
  5181. tType == 4,
  5182. }"
  5183. >
  5184. {{ JSON.parse(w.score).wScore }}分
  5185. </div>
  5186. <div
  5187. class="answerScore"
  5188. @click.stop="openScore(w)"
  5189. v-else-if="courseDetail.userid == userid"
  5190. :class="{
  5191. rightW:
  5192. w.userid == userid ||
  5193. tType == 1 ||
  5194. tType == 4,
  5195. }"
  5196. >
  5197. 评分
  5198. </div>
  5199. <img
  5200. class="deleteImg"
  5201. src="../assets/deleteworks.png"
  5202. v-if="
  5203. w.userid == userid || tType == 1 || tType == 4
  5204. "
  5205. @click.stop="deleteWorks(w.wid)"
  5206. alt
  5207. />
  5208. </div>
  5209. <div class="comment" style="min-width: 200px">
  5210. <div class="worksName">
  5211. <div>{{ w.sName }}</div>
  5212. </div>
  5213. <div class="commentList">
  5214. <div class="commentList">
  5215. <div
  5216. class="commentImg"
  5217. @click="
  5218. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5219. "
  5220. >
  5221. <img
  5222. :src="w.isLikes == true ? likes : noLikes"
  5223. alt=""
  5224. />
  5225. </div>
  5226. <div>{{ w.likesCount }}</div>
  5227. </div>
  5228. <div
  5229. class="commentList"
  5230. style="margin-right: 15px"
  5231. >
  5232. <div
  5233. class="commentImg"
  5234. @click="
  5235. commentOther(
  5236. w,
  5237. toolIndex,
  5238. wIndex,
  5239. null,
  5240. g.id
  5241. )
  5242. "
  5243. >
  5244. <img
  5245. src="../assets/icon/comment/comment.png"
  5246. alt=""
  5247. />
  5248. </div>
  5249. <div>{{ w.commentCount }}</div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. </div>
  5254. </div>
  5255. <div class="group_work" v-else>暂无提交作业</div>
  5256. </div>
  5257. </div>
  5258. <div
  5259. :id="'tool-' + toolIndex"
  5260. :style="{
  5261. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5262. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5263. }"
  5264. class="worksDetailBox"
  5265. v-if="
  5266. worksStudent.length &&
  5267. worksStudent[toolIndex].length > 0
  5268. "
  5269. >
  5270. <div
  5271. class="works"
  5272. style="
  5273. width: 200px;
  5274. height: 140px;
  5275. margin: 10px 10px 10px 0;
  5276. border-radius: 15px;
  5277. box-shadow: 0 0 6px 1px #dfdada;
  5278. "
  5279. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5280. :key="wIndex"
  5281. >
  5282. <!-- @click="previewImg(w.works)" -->
  5283. <div class="workImg">
  5284. <img
  5285. :src="w.works"
  5286. @click="previewImg(w.works,w)"
  5287. alt
  5288. />
  5289. <div
  5290. class="answerScore"
  5291. v-if="w.score"
  5292. @click.stop="openScore(w)"
  5293. :class="{
  5294. rightW:
  5295. w.userid == userid || tType == 1 || tType == 4,
  5296. }"
  5297. >
  5298. {{ JSON.parse(w.score).wScore }}分
  5299. </div>
  5300. <div
  5301. class="answerScore"
  5302. @click.stop="openScore(w)"
  5303. v-else-if="courseDetail.userid == userid"
  5304. :class="{
  5305. rightW:
  5306. w.userid == userid || tType == 1 || tType == 4,
  5307. }"
  5308. >
  5309. 评分
  5310. </div>
  5311. <img
  5312. class="deleteImg"
  5313. src="../assets/deleteworks.png"
  5314. v-if="
  5315. w.userid == userid || tType == 1 || tType == 4
  5316. "
  5317. @click.stop="deleteWorks(w.wid)"
  5318. alt
  5319. />
  5320. </div>
  5321. <div class="comment" style="min-width: 200px">
  5322. <div class="worksName">
  5323. <div>{{ w.sName }}</div>
  5324. </div>
  5325. <div class="commentList">
  5326. <div class="commentList">
  5327. <div
  5328. class="commentImg"
  5329. @click="
  5330. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5331. "
  5332. >
  5333. <img
  5334. :src="w.isLikes == true ? likes : noLikes"
  5335. alt=""
  5336. />
  5337. </div>
  5338. <div>{{ w.likesCount }}</div>
  5339. </div>
  5340. <div class="commentList" style="margin-right: 15px">
  5341. <div
  5342. class="commentImg"
  5343. @click="commentOther(w, toolIndex, wIndex)"
  5344. >
  5345. <img
  5346. src="../assets/icon/comment/comment.png"
  5347. alt=""
  5348. />
  5349. </div>
  5350. <div>{{ w.commentCount }}</div>
  5351. </div>
  5352. </div>
  5353. </div>
  5354. </div>
  5355. </div>
  5356. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5357. 未提交
  5358. </div>
  5359. <div
  5360. class="noWorksS"
  5361. v-if="noWorksS && noWorksS[toolIndex].length"
  5362. >
  5363. <div
  5364. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5365. :key="sIndex"
  5366. class="noWorksName"
  5367. >
  5368. <el-tooltip effect="dark" :content="s.student" placement="top">
  5369. <span>{{ s.student }}</span>
  5370. </el-tooltip>
  5371. </div>
  5372. </div>
  5373. </div>
  5374. <div
  5375. v-if="
  5376. tType &&
  5377. ((tType == 2 && sIsOpen == true) ||
  5378. tType == 1 ||
  5379. tType == 4) &&
  5380. tool.tool.indexOf(7) != -1
  5381. "
  5382. class="worksBox"
  5383. >
  5384. <div
  5385. class="zuoyeYulan"
  5386. v-if="
  5387. (worksStudent.length &&
  5388. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5389. "
  5390. >
  5391. <div class="worksTop">
  5392. <div>作业预览</div>
  5393. <div
  5394. class="corOpen"
  5395. @click="contract(toolIndex)"
  5396. v-if="
  5397. (isCloseList[toolIndex].isCloseBoolean) &&
  5398. isCloseList[toolIndex].isClose == 0
  5399. "
  5400. >
  5401. 折叠
  5402. </div>
  5403. <div
  5404. class="corOpen"
  5405. @click="contract(toolIndex)"
  5406. v-if="isCloseList[toolIndex].isClose == 1"
  5407. >
  5408. 展开
  5409. </div>
  5410. </div>
  5411. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5412. </div>
  5413. <div
  5414. class="group_workBox"
  5415. v-for="(g, gindex) in courseGroup.group"
  5416. :key="gindex"
  5417. >
  5418. <div class="group_box">
  5419. <div class="group_title">
  5420. <el-tooltip
  5421. class="item"
  5422. effect="light"
  5423. :content="g.name"
  5424. placement="top"
  5425. >
  5426. <div class="group_name">{{ g.name }}</div>
  5427. </el-tooltip>
  5428. </div>
  5429. <div
  5430. class="group_work"
  5431. v-if="
  5432. g.works &&
  5433. g.works.length &&
  5434. g.works[toolIndex].length
  5435. "
  5436. >
  5437. <div
  5438. class="works"
  5439. style="
  5440. width: 200px;
  5441. height: 140px;
  5442. margin: 10px 10px 10px 0;
  5443. border-radius: 15px;
  5444. box-shadow: 0 0 6px 1px #dfdada;
  5445. "
  5446. v-for="(w, wIndex) in g.works[toolIndex]"
  5447. :key="wIndex"
  5448. :class="w.type == 1 ? 'isTypeOne' : ''"
  5449. >
  5450. <div class="workImg">
  5451. <img
  5452. :src="w.works"
  5453. @click="previewImg(w.works,w)"
  5454. alt
  5455. />
  5456. <div
  5457. class="answerScore"
  5458. v-if="w.score"
  5459. @click.stop="openScore(w)"
  5460. :class="{
  5461. rightW:
  5462. w.userid == userid ||
  5463. tType == 1 ||
  5464. tType == 4,
  5465. }"
  5466. >
  5467. {{ JSON.parse(w.score).wScore }}分
  5468. </div>
  5469. <div
  5470. class="answerScore"
  5471. @click.stop="openScore(w)"
  5472. v-else-if="courseDetail.userid == userid"
  5473. :class="{
  5474. rightW:
  5475. w.userid == userid ||
  5476. tType == 1 ||
  5477. tType == 4,
  5478. }"
  5479. >
  5480. 评分
  5481. </div>
  5482. <img
  5483. class="deleteImg"
  5484. src="../assets/deleteworks.png"
  5485. v-if="
  5486. w.userid == userid || tType == 1 || tType == 4
  5487. "
  5488. @click.stop="deleteWorks(w.wid)"
  5489. alt
  5490. />
  5491. </div>
  5492. <div class="comment" style="min-width: 200px">
  5493. <div class="worksName">
  5494. <div>{{ w.sName }}</div>
  5495. </div>
  5496. <div class="commentList">
  5497. <div class="commentList">
  5498. <div
  5499. class="commentImg"
  5500. @click="
  5501. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5502. "
  5503. >
  5504. <img
  5505. :src="w.isLikes == true ? likes : noLikes"
  5506. alt=""
  5507. />
  5508. </div>
  5509. <div>{{ w.likesCount }}</div>
  5510. </div>
  5511. <div
  5512. class="commentList"
  5513. style="margin-right: 15px"
  5514. >
  5515. <div
  5516. class="commentImg"
  5517. @click="
  5518. commentOther(
  5519. w,
  5520. toolIndex,
  5521. wIndex,
  5522. null,
  5523. g.id
  5524. )
  5525. "
  5526. >
  5527. <img
  5528. src="../assets/icon/comment/comment.png"
  5529. alt=""
  5530. />
  5531. </div>
  5532. <div>{{ w.commentCount }}</div>
  5533. </div>
  5534. </div>
  5535. </div>
  5536. </div>
  5537. </div>
  5538. <div class="group_work" v-else>暂无提交作业</div>
  5539. </div>
  5540. </div>
  5541. <div
  5542. :id="'tool-' + toolIndex"
  5543. :style="{
  5544. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5545. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5546. }"
  5547. class="worksDetailBox"
  5548. v-if="
  5549. worksStudent.length &&
  5550. worksStudent[toolIndex].length > 0
  5551. "
  5552. >
  5553. <div
  5554. class="works"
  5555. style="
  5556. width: 200px;
  5557. height: 140px;
  5558. margin: 10px 10px 10px 0;
  5559. border-radius: 15px;
  5560. box-shadow: 0 0 6px 1px #dfdada;
  5561. "
  5562. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5563. :key="wIndex"
  5564. >
  5565. <!-- @click="previewImg(w.works)" -->
  5566. <div class="workImg">
  5567. <img
  5568. :src="w.works"
  5569. @click="previewImg(w.works,w)"
  5570. alt
  5571. />
  5572. <div
  5573. class="answerScore"
  5574. v-if="w.score"
  5575. @click.stop="openScore(w)"
  5576. :class="{
  5577. rightW:
  5578. w.userid == userid || tType == 1 || tType == 4,
  5579. }"
  5580. >
  5581. {{ JSON.parse(w.score).wScore }}分
  5582. </div>
  5583. <div
  5584. class="answerScore"
  5585. @click.stop="openScore(w)"
  5586. v-else-if="courseDetail.userid == userid"
  5587. :class="{
  5588. rightW:
  5589. w.userid == userid || tType == 1 || tType == 4,
  5590. }"
  5591. >
  5592. 评分
  5593. </div>
  5594. <img
  5595. class="deleteImg"
  5596. src="../assets/deleteworks.png"
  5597. v-if="
  5598. w.userid == userid || tType == 1 || tType == 4
  5599. "
  5600. @click.stop="deleteWorks(w.wid)"
  5601. alt
  5602. />
  5603. </div>
  5604. <div class="comment" style="min-width: 200px">
  5605. <div class="worksName">
  5606. <div>{{ w.sName }}</div>
  5607. </div>
  5608. <div class="commentList">
  5609. <div class="commentList">
  5610. <div
  5611. class="commentImg"
  5612. @click="
  5613. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5614. "
  5615. >
  5616. <img
  5617. :src="w.isLikes == true ? likes : noLikes"
  5618. alt=""
  5619. />
  5620. </div>
  5621. <div>{{ w.likesCount }}</div>
  5622. </div>
  5623. <div class="commentList" style="margin-right: 15px">
  5624. <div
  5625. class="commentImg"
  5626. @click="commentOther(w, toolIndex, wIndex)"
  5627. >
  5628. <img
  5629. src="../assets/icon/comment/comment.png"
  5630. alt=""
  5631. />
  5632. </div>
  5633. <div>{{ w.commentCount }}</div>
  5634. </div>
  5635. </div>
  5636. </div>
  5637. </div>
  5638. </div>
  5639. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5640. 未提交
  5641. </div>
  5642. <div
  5643. class="noWorksS"
  5644. v-if="noWorksS && noWorksS[toolIndex].length"
  5645. >
  5646. <div
  5647. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5648. :key="sIndex"
  5649. class="noWorksName"
  5650. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5651. >
  5652. <el-tooltip effect="dark" :content="s.student" placement="top">
  5653. <span>{{ s.student }}</span>
  5654. </el-tooltip>
  5655. </div>
  5656. </div>
  5657. </div>
  5658. <div
  5659. v-if="
  5660. tType &&
  5661. ((tType == 2 && sIsOpen == true) ||
  5662. tType == 1 ||
  5663. tType == 4) &&
  5664. tool.tool.indexOf(26) != -1
  5665. "
  5666. class="worksBox"
  5667. >
  5668. <div
  5669. class="zuoyeYulan"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div class="worksTop">
  5676. <div>作业预览</div>
  5677. <div
  5678. class="corOpen"
  5679. @click="contract(toolIndex)"
  5680. v-if="
  5681. (isCloseList[toolIndex].isCloseBoolean) &&
  5682. isCloseList[toolIndex].isClose == 0
  5683. "
  5684. >
  5685. 折叠
  5686. </div>
  5687. <div
  5688. class="corOpen"
  5689. @click="contract(toolIndex)"
  5690. v-if="isCloseList[toolIndex].isClose == 1"
  5691. >
  5692. 展开
  5693. </div>
  5694. </div>
  5695. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5696. </div>
  5697. <div
  5698. :id="'tool-' + toolIndex"
  5699. :style="{
  5700. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5701. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5702. }"
  5703. class="worksDetailBox"
  5704. v-if="
  5705. worksStudent.length &&
  5706. worksStudent[toolIndex].length > 0
  5707. "
  5708. >
  5709. <div
  5710. class="works"
  5711. style="width: 240px; height: 140px; overflow: hidden"
  5712. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5713. :key="wIndex"
  5714. :class="w.type == 1 ? 'isTypeOne' : ''"
  5715. >
  5716. <div class="workImg" v-if="w.type == 0">
  5717. <img
  5718. :src="w.works"
  5719. @click="previewImg(w.works,w)"
  5720. alt
  5721. />
  5722. <img
  5723. class="deleteImg"
  5724. src="../assets/deleteworks.png"
  5725. v-if="
  5726. w.userid == userid || tType == 1 || tType == 4
  5727. "
  5728. @click.stop="deleteWorks(w.wid)"
  5729. alt
  5730. />
  5731. </div>
  5732. <div class="workImg" v-if="w.type == 1">
  5733. <img :src="word" @click="openFile(w.works,w)" alt />
  5734. <img
  5735. class="deleteImg"
  5736. src="../assets/deleteworks.png"
  5737. v-if="
  5738. w.userid == userid || tType == 1 || tType == 4
  5739. "
  5740. @click.stop="deleteWorks(w.wid)"
  5741. alt
  5742. />
  5743. </div>
  5744. <div class="worksName">
  5745. <div>{{ w.sName }}</div>
  5746. </div>
  5747. </div>
  5748. </div>
  5749. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5750. 未提交
  5751. </div>
  5752. <div
  5753. class="noWorksS"
  5754. v-if="noWorksS && noWorksS[toolIndex].length"
  5755. >
  5756. <div
  5757. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5758. :key="sIndex"
  5759. class="noWorksName"
  5760. >
  5761. <el-tooltip effect="dark" :content="s.student" placement="top">
  5762. <span>{{ s.student }}</span>
  5763. </el-tooltip>
  5764. </div>
  5765. </div>
  5766. </div>
  5767. <div
  5768. v-if="
  5769. tType &&
  5770. ((tType == 2 && sIsOpen == true) ||
  5771. tType == 1 ||
  5772. tType == 4) &&
  5773. tool.tool.indexOf(40) != -1
  5774. "
  5775. class="worksBox"
  5776. >
  5777. <div
  5778. class="zuoyeYulan"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div class="worksTop">
  5785. <div>作业预览</div>
  5786. <div
  5787. class="corOpen"
  5788. @click="contract(toolIndex)"
  5789. v-if="
  5790. (isCloseList[toolIndex].isCloseBoolean) &&
  5791. isCloseList[toolIndex].isClose == 0
  5792. "
  5793. >
  5794. 折叠
  5795. </div>
  5796. <div
  5797. class="corOpen"
  5798. @click="contract(toolIndex)"
  5799. v-if="isCloseList[toolIndex].isClose == 1"
  5800. >
  5801. 展开
  5802. </div>
  5803. </div>
  5804. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5805. </div>
  5806. <div
  5807. :id="'tool-' + toolIndex"
  5808. :style="{
  5809. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5810. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5811. }"
  5812. class="worksDetailBox"
  5813. v-if="
  5814. worksStudent.length &&
  5815. worksStudent[toolIndex].length > 0
  5816. "
  5817. >
  5818. <div
  5819. class="works"
  5820. style="
  5821. width: 200px;
  5822. height: 140px;
  5823. margin: 10px 10px 10px 0;
  5824. border-radius: 15px;
  5825. box-shadow: 0 0 6px 1px #dfdada;
  5826. "
  5827. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5828. :key="wIndex"
  5829. :class="w.type == 1 ? 'isTypeOne' : ''"
  5830. >
  5831. <div class="workImg">
  5832. <img
  5833. src="../assets/icon/works/noImg.png"
  5834. @click="openPj(w.works, toolIndex)"
  5835. alt
  5836. />
  5837. <img
  5838. class="deleteImg"
  5839. src="../assets/deleteworks.png"
  5840. v-if="
  5841. w.userid == userid || tType == 1 || tType == 4
  5842. "
  5843. @click.stop="deleteWorks(w.wid)"
  5844. alt
  5845. />
  5846. </div>
  5847. <div class="comment" style="min-width: 200px">
  5848. <div class="worksName">
  5849. <div>{{ w.sName }}</div>
  5850. </div>
  5851. <div class="commentList">
  5852. <div class="commentList">
  5853. <div
  5854. class="commentImg"
  5855. @click="
  5856. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5857. "
  5858. >
  5859. <img
  5860. :src="w.isLikes == true ? likes : noLikes"
  5861. alt=""
  5862. />
  5863. </div>
  5864. <div>{{ w.likesCount }}</div>
  5865. </div>
  5866. <div class="commentList" style="margin-right: 15px">
  5867. <div
  5868. class="commentImg"
  5869. @click="commentOther(w, toolIndex, wIndex)"
  5870. >
  5871. <img
  5872. src="../assets/icon/comment/comment.png"
  5873. alt=""
  5874. />
  5875. </div>
  5876. <div>{{ w.commentCount }}</div>
  5877. </div>
  5878. </div>
  5879. </div>
  5880. </div>
  5881. </div>
  5882. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5883. 未提交
  5884. </div>
  5885. <div
  5886. class="noWorksS"
  5887. v-if="noWorksS && noWorksS[toolIndex].length"
  5888. >
  5889. <div
  5890. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5891. :key="sIndex"
  5892. class="noWorksName"
  5893. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5894. >
  5895. <el-tooltip effect="dark" :content="s.student" placement="top">
  5896. <span>{{ s.student }}</span>
  5897. </el-tooltip>
  5898. </div>
  5899. </div>
  5900. </div>
  5901. <div
  5902. v-if="
  5903. tType &&
  5904. tType == 2 &&
  5905. !sIsOpen &&
  5906. tool.tool.indexOf(40) != -1
  5907. "
  5908. class="worksBox"
  5909. >
  5910. <div
  5911. class="zuoyeYulan"
  5912. v-if="workStudent[toolIndex].length > 0"
  5913. >
  5914. <span class="worksTitle">作业预览</span>
  5915. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5916. </div>
  5917. <div
  5918. class="worksDetailBox"
  5919. v-if="workStudent[toolIndex].length > 0"
  5920. >
  5921. <div
  5922. class="works"
  5923. style="
  5924. width: 200px;
  5925. height: 140px;
  5926. margin: 10px 10px 10px 0;
  5927. "
  5928. v-for="(w, wIndex) in workStudent[toolIndex]"
  5929. :key="wIndex"
  5930. >
  5931. <div class="workImg">
  5932. <img
  5933. src="../assets/icon/works/noImg.png"
  5934. @click="openPj(w.works, toolIndex)"
  5935. alt
  5936. />
  5937. <img
  5938. class="deleteImg"
  5939. src="../assets/deleteworks.png"
  5940. v-if="
  5941. w.userid == userid || tType == 1 || tType == 4
  5942. "
  5943. @click.stop="deleteWorks(w.wid)"
  5944. alt
  5945. />
  5946. </div>
  5947. <div class="worksName">
  5948. <div>{{ w.sName }}</div>
  5949. </div>
  5950. </div>
  5951. </div>
  5952. </div>
  5953. <div
  5954. v-if="
  5955. tType &&
  5956. ((tType == 2 && sIsOpen == true) ||
  5957. tType == 1 ||
  5958. tType == 4) &&
  5959. tool.tool.indexOf(41) != -1
  5960. "
  5961. >
  5962. <AnswerData2
  5963. v-if="
  5964. worksStudent.length &&
  5965. worksStudent[toolIndex].length > 0
  5966. "
  5967. :problemJson="tool.selectJson.answer"
  5968. :people="worksStudent[toolIndex]"
  5969. ></AnswerData2>
  5970. </div>
  5971. <div
  5972. v-if="
  5973. tType &&
  5974. ((tType == 2 && sIsOpen == true) ||
  5975. tType == 1 ||
  5976. tType == 4) &&
  5977. tool.tool.indexOf(41) != -1
  5978. "
  5979. class="worksBox"
  5980. >
  5981. <div
  5982. class="zuoyeYulan"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div class="worksTop">
  5989. <div>作业预览</div>
  5990. <div
  5991. class="corOpen"
  5992. @click="contract(toolIndex)"
  5993. v-if="
  5994. (isCloseList[toolIndex].isCloseBoolean) &&
  5995. isCloseList[toolIndex].isClose == 0
  5996. "
  5997. >
  5998. 折叠
  5999. </div>
  6000. <div
  6001. class="corOpen"
  6002. @click="contract(toolIndex)"
  6003. v-if="isCloseList[toolIndex].isClose == 1"
  6004. >
  6005. 展开
  6006. </div>
  6007. </div>
  6008. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6009. </div>
  6010. <div
  6011. :id="'tool-' + toolIndex"
  6012. :style="{
  6013. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6014. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6015. }"
  6016. class="worksDetailBox"
  6017. v-if="
  6018. worksStudent.length &&
  6019. worksStudent[toolIndex].length > 0
  6020. "
  6021. >
  6022. <div
  6023. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6024. :key="wIndex"
  6025. class="isWorksName2"
  6026. @click="openXz(w, toolIndex)"
  6027. >
  6028. {{ w.sName }}
  6029. <img
  6030. class="deleteImg deleteImg2"
  6031. src="../assets/deleteworks.png"
  6032. v-if="w.userid == userid || tType == 1 || tType == 4"
  6033. @click.stop="deleteWorks(w.wid)"
  6034. alt
  6035. />
  6036. </div>
  6037. <!-- <div
  6038. class="works"
  6039. style="
  6040. width: 200px;
  6041. height: 140px;
  6042. margin: 10px 10px 10px 0;
  6043. border-radius: 15px;
  6044. box-shadow: 0 0 6px 1px #dfdada;
  6045. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6046. :class="w.type == 5 ? 'isTypeOne' : ''">
  6047. <div class="workImg">
  6048. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6049. </div>
  6050. <div class="worksName">
  6051. <div>{{ w.sName }}</div>
  6052. </div>
  6053. </div> -->
  6054. </div>
  6055. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6056. 未提交
  6057. </div>
  6058. <div
  6059. class="noWorksS"
  6060. v-if="noWorksS && noWorksS[toolIndex].length"
  6061. >
  6062. <div
  6063. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6064. :key="sIndex"
  6065. class="noWorksName"
  6066. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6067. >
  6068. <el-tooltip effect="dark" :content="s.student" placement="top">
  6069. <span>{{ s.student }}</span>
  6070. </el-tooltip>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. <div
  6075. v-if="
  6076. tType &&
  6077. tType == 2 &&
  6078. !sIsOpen &&
  6079. tool.tool.indexOf(41) != -1
  6080. "
  6081. class="worksBox"
  6082. >
  6083. <div
  6084. class="zuoyeYulan"
  6085. v-if="workStudent[toolIndex].length > 0"
  6086. >
  6087. <span class="worksTitle">作业预览</span>
  6088. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6089. </div>
  6090. <div
  6091. class="worksDetailBox"
  6092. v-if="workStudent[toolIndex].length > 0"
  6093. >
  6094. <div
  6095. class="works"
  6096. style="
  6097. width: 200px;
  6098. height: 140px;
  6099. margin: 10px 10px 10px 0;
  6100. "
  6101. v-for="(w, wIndex) in workStudent[toolIndex]"
  6102. :key="wIndex"
  6103. >
  6104. <div class="workImg">
  6105. <img
  6106. src="../assets/icon/works/noImg.png"
  6107. @click="openXz(w, toolIndex)"
  6108. alt
  6109. />
  6110. <img
  6111. class="deleteImg"
  6112. src="../assets/deleteworks.png"
  6113. v-if="
  6114. w.userid == userid || tType == 1 || tType == 4
  6115. "
  6116. @click.stop="deleteWorks(w.wid)"
  6117. alt
  6118. />
  6119. </div>
  6120. <div class="worksName">
  6121. <div>{{ w.sName }}</div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div v-if="false" class="xuan_right_box">
  6127. <div
  6128. class="tool_right_box"
  6129. v-for="(item, index) in tool.sentenceList"
  6130. :key="index"
  6131. >
  6132. <div>
  6133. <span
  6134. style="word-break: break-all; white-space: normal"
  6135. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6136. >
  6137. </div>
  6138. <div class="right_box_xuan">
  6139. <span>正确率</span>
  6140. <span>{{
  6141. (checkJson[toolIndex][index].right
  6142. ? checkJson[toolIndex][index].right
  6143. : 0) + "%"
  6144. }}</span>
  6145. </div>
  6146. <div class="right_box_xuan">
  6147. <span>答对人数</span>
  6148. <span>{{
  6149. checkJson[toolIndex][index].rightPerson.length
  6150. }}</span>
  6151. </div>
  6152. </div>
  6153. </div>
  6154. <div
  6155. v-if="
  6156. tType &&
  6157. ((tType == 2 && sIsOpen == true) ||
  6158. tType == 1 ||
  6159. tType == 4) &&
  6160. tool.tool.indexOf(47) != -1
  6161. "
  6162. >
  6163. <AnswerData
  6164. v-if="
  6165. checkJson[toolIndex].length &&
  6166. (tool.sentenceList || tool.sentenceList.length > 0)
  6167. "
  6168. :people="checkJson[toolIndex]"
  6169. ></AnswerData>
  6170. </div>
  6171. <div
  6172. v-if="
  6173. tType &&
  6174. tType == 2 &&
  6175. !sIsOpen &&
  6176. tool.tool.indexOf(47) != -1
  6177. "
  6178. class="worksBox"
  6179. >
  6180. <div
  6181. class="zuoyeYulan"
  6182. v-if="workStudent[toolIndex].length > 0"
  6183. >
  6184. <span class="worksTitle">作业预览</span>
  6185. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6186. </div>
  6187. <div
  6188. class="worksDetailBox"
  6189. v-if="workStudent[toolIndex].length > 0"
  6190. >
  6191. <div
  6192. class="works"
  6193. style="
  6194. width: 200px;
  6195. height: 140px;
  6196. margin: 10px 10px 10px 0;
  6197. "
  6198. v-for="(w, wIndex) in workStudent[toolIndex]"
  6199. :key="wIndex"
  6200. >
  6201. <!-- @click="openXz(w, toolIndex)" -->
  6202. <div class="workImg" @click="openSen(w, toolIndex)">
  6203. <img src="../assets/icon/works/noImg.png" alt />
  6204. <img
  6205. class="deleteImg"
  6206. src="../assets/deleteworks.png"
  6207. v-if="
  6208. w.userid == userid || tType == 1 || tType == 4
  6209. "
  6210. @click.stop="deleteWorks(w.wid)"
  6211. alt
  6212. />
  6213. </div>
  6214. <div class="worksName">
  6215. <div>
  6216. {{ w.sName }}
  6217. </div>
  6218. </div>
  6219. </div>
  6220. </div>
  6221. </div>
  6222. <div
  6223. v-if="
  6224. tType &&
  6225. ((tType == 2 && sIsOpen == true) ||
  6226. tType == 1 ||
  6227. tType == 4) &&
  6228. tool.tool.indexOf(47) != -1
  6229. "
  6230. class="worksBox"
  6231. >
  6232. <div
  6233. class="zuoyeYulan"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <div class="worksTop">
  6240. <div>作业预览</div>
  6241. <div
  6242. class="corOpen"
  6243. @click="contract(toolIndex)"
  6244. v-if="
  6245. (isCloseList[toolIndex].isCloseBoolean) &&
  6246. isCloseList[toolIndex].isClose == 0
  6247. "
  6248. >
  6249. 折叠
  6250. </div>
  6251. <div
  6252. class="corOpen"
  6253. @click="contract(toolIndex)"
  6254. v-if="isCloseList[toolIndex].isClose == 1"
  6255. >
  6256. 展开
  6257. </div>
  6258. </div>
  6259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6260. </div>
  6261. <div
  6262. :id="'tool-' + toolIndex"
  6263. :style="{
  6264. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6265. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6266. }"
  6267. class="worksDetailBox"
  6268. v-if="
  6269. worksStudent.length &&
  6270. worksStudent[toolIndex].length > 0
  6271. "
  6272. >
  6273. <!-- @click="openXz(w, toolIndex)" -->
  6274. <div
  6275. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6276. :key="wIndex"
  6277. class="isWorksName2"
  6278. @click="openSen(w, toolIndex)"
  6279. >
  6280. {{ w.sName }}
  6281. <img
  6282. class="deleteImg deleteImg2"
  6283. src="../assets/deleteworks.png"
  6284. v-if="w.userid == userid || tType == 1 || tType == 4"
  6285. @click.stop="deleteWorks(w.wid)"
  6286. alt
  6287. />
  6288. </div>
  6289. </div>
  6290. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6291. 未提交
  6292. </div>
  6293. <div
  6294. class="noWorksS"
  6295. v-if="noWorksS && noWorksS[toolIndex].length"
  6296. >
  6297. <div
  6298. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6299. :key="sIndex"
  6300. class="noWorksName"
  6301. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6302. >
  6303. <el-tooltip effect="dark" :content="s.student" placement="top">
  6304. <span>{{ s.student }}</span>
  6305. </el-tooltip>
  6306. </div>
  6307. </div>
  6308. </div>
  6309. <div
  6310. v-if="
  6311. tType &&
  6312. ((tType == 2 && sIsOpen == true) ||
  6313. tType == 1 ||
  6314. tType == 4) &&
  6315. tool.tool.indexOf(48) != -1
  6316. "
  6317. class="worksBox"
  6318. >
  6319. <div
  6320. class="zuoyeYulan"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div class="worksTop">
  6327. <div>作业预览</div>
  6328. <div
  6329. class="corOpen"
  6330. @click="contract(toolIndex)"
  6331. v-if="
  6332. (isCloseList[toolIndex].isCloseBoolean) &&
  6333. isCloseList[toolIndex].isClose == 0
  6334. "
  6335. >
  6336. 折叠
  6337. </div>
  6338. <div
  6339. class="corOpen"
  6340. @click="contract(toolIndex)"
  6341. v-if="isCloseList[toolIndex].isClose == 1"
  6342. >
  6343. 展开
  6344. </div>
  6345. </div>
  6346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6347. </div>
  6348. <div
  6349. :id="'tool-' + toolIndex"
  6350. :style="{
  6351. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6352. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6353. }"
  6354. class="worksDetailBox"
  6355. v-if="
  6356. worksStudent.length &&
  6357. worksStudent[toolIndex].length > 0
  6358. "
  6359. >
  6360. <div
  6361. class="works"
  6362. style="
  6363. width: 200px;
  6364. height: 140px;
  6365. margin: 10px 10px 10px 0;
  6366. border-radius: 15px;
  6367. box-shadow: 0 0 6px 1px #dfdada;
  6368. "
  6369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6370. :key="wIndex"
  6371. :class="w.type == 1 ? 'isTypeOne' : ''"
  6372. >
  6373. <div class="workImg">
  6374. <img :src="word" @click="openTable(w)" alt />
  6375. <!-- @click="openFile(w.works)" -->
  6376. <div
  6377. class="answerScore"
  6378. v-if="w.score"
  6379. @click.stop="openScore(w)"
  6380. :class="{
  6381. rightW:
  6382. w.userid == userid ||
  6383. tType == 1 ||
  6384. tType == 4 ||
  6385. w.ateacher == userid,
  6386. }"
  6387. >
  6388. {{ JSON.parse(w.score).wScore }}分
  6389. </div>
  6390. <div
  6391. class="answerScore"
  6392. @click.stop="openScore(w)"
  6393. v-else-if="courseDetail.userid == userid"
  6394. :class="{
  6395. rightW:
  6396. w.userid == userid ||
  6397. tType == 1 ||
  6398. tType == 4 ||
  6399. w.ateacher == userid,
  6400. }"
  6401. >
  6402. 评分
  6403. </div>
  6404. <img
  6405. class="deleteImg"
  6406. src="../assets/deleteworks.png"
  6407. v-if="
  6408. w.userid == userid || tType == 1 || tType == 4
  6409. "
  6410. @click.stop="deleteWorks(w.wid)"
  6411. alt
  6412. />
  6413. </div>
  6414. <div class="comment" style="min-width: 200px">
  6415. <div class="worksName">
  6416. <div>{{ w.sName }}</div>
  6417. </div>
  6418. <div class="commentList">
  6419. <div class="commentList">
  6420. <div
  6421. class="commentImg"
  6422. @click="
  6423. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6424. "
  6425. >
  6426. <img
  6427. :src="w.isLikes == true ? likes : noLikes"
  6428. alt=""
  6429. />
  6430. </div>
  6431. <div>{{ w.likesCount }}</div>
  6432. </div>
  6433. <div class="commentList" style="margin-right: 15px">
  6434. <div
  6435. class="commentImg"
  6436. @click="commentOther(w, toolIndex, wIndex)"
  6437. >
  6438. <img
  6439. src="../assets/icon/comment/comment.png"
  6440. alt=""
  6441. />
  6442. </div>
  6443. <div>{{ w.commentCount }}</div>
  6444. </div>
  6445. </div>
  6446. </div>
  6447. </div>
  6448. </div>
  6449. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6450. 未提交
  6451. </div>
  6452. <div
  6453. class="noWorksS"
  6454. v-if="noWorksS && noWorksS[toolIndex].length"
  6455. >
  6456. <div
  6457. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6458. :key="sIndex"
  6459. class="noWorksName"
  6460. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6461. >
  6462. <el-tooltip effect="dark" :content="s.student" placement="top">
  6463. <span>{{ s.student }}</span>
  6464. </el-tooltip>
  6465. </div>
  6466. </div>
  6467. </div>
  6468. <div
  6469. v-if="
  6470. tType &&
  6471. tType == 2 &&
  6472. !sIsOpen &&
  6473. tool.tool.indexOf(48) != -1
  6474. "
  6475. class="worksBox"
  6476. >
  6477. <div
  6478. class="zuoyeYulan"
  6479. v-if="workStudent[toolIndex].length > 0"
  6480. >
  6481. <span class="worksTitle">作业预览</span>
  6482. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6483. </div>
  6484. <div
  6485. class="worksDetailBox"
  6486. v-if="workStudent[toolIndex].length > 0"
  6487. >
  6488. <div
  6489. class="works"
  6490. style="
  6491. width: 200px;
  6492. height: 140px;
  6493. margin: 10px 10px 10px 0;
  6494. box-shadow: 0 0 6px 1px #dfdada;
  6495. "
  6496. v-for="(w, wIndex) in workStudent[toolIndex]"
  6497. :key="wIndex"
  6498. >
  6499. <div class="workImg">
  6500. <img :src="word" @click="openTable(w)" alt />
  6501. <div
  6502. class="answerScore"
  6503. v-if="w.score"
  6504. @click.stop="openScore(w)"
  6505. :class="{
  6506. rightW:
  6507. w.userid == userid || tType == 1 || tType == 4,
  6508. }"
  6509. >
  6510. {{ JSON.parse(w.score).wScore }}分
  6511. </div>
  6512. <div
  6513. class="answerScore"
  6514. @click.stop="openScore(w)"
  6515. v-else-if="courseDetail.userid == userid"
  6516. :class="{
  6517. rightW:
  6518. w.userid == userid || tType == 1 || tType == 4,
  6519. }"
  6520. >
  6521. 评分
  6522. </div>
  6523. <img
  6524. class="deleteImg"
  6525. src="../assets/deleteworks.png"
  6526. v-if="
  6527. w.userid == userid || tType == 1 || tType == 4
  6528. "
  6529. @click.stop="deleteWorks(w.wid)"
  6530. alt
  6531. />
  6532. </div>
  6533. <div class="worksName">
  6534. <div>{{ w.sName }}</div>
  6535. </div>
  6536. </div>
  6537. </div>
  6538. </div>
  6539. <div
  6540. v-if="
  6541. tType &&
  6542. ((tType == 2 && sIsOpen == true) ||
  6543. tType == 1 ||
  6544. tType == 4) &&
  6545. tool.tool.indexOf(52) != -1
  6546. "
  6547. class="worksBox"
  6548. >
  6549. <div
  6550. class="zuoyeYulan"
  6551. v-if="
  6552. worksStudent.length &&
  6553. worksStudent[toolIndex].length > 0
  6554. "
  6555. >
  6556. <div class="worksTop">
  6557. <div>作业预览</div>
  6558. <div
  6559. class="corOpen"
  6560. @click="contract(toolIndex)"
  6561. v-if="
  6562. (isCloseList[toolIndex].isCloseBoolean) &&
  6563. isCloseList[toolIndex].isClose == 0
  6564. "
  6565. >
  6566. 折叠
  6567. </div>
  6568. <div
  6569. class="corOpen"
  6570. @click="contract(toolIndex)"
  6571. v-if="isCloseList[toolIndex].isClose == 1"
  6572. >
  6573. 展开
  6574. </div>
  6575. </div>
  6576. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6577. </div>
  6578. <div
  6579. :id="'tool-' + toolIndex"
  6580. :style="{
  6581. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6582. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6583. }"
  6584. class="worksDetailBox"
  6585. v-if="
  6586. worksStudent.length &&
  6587. worksStudent[toolIndex].length > 0
  6588. "
  6589. >
  6590. <div
  6591. class="works"
  6592. style="
  6593. width: 200px;
  6594. height: 140px;
  6595. margin: 10px 10px 10px 0;
  6596. border-radius: 15px;
  6597. box-shadow: 0 0 6px 1px #dfdada;
  6598. "
  6599. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6600. :key="wIndex"
  6601. :class="w.type == 1 ? 'isTypeOne' : ''"
  6602. >
  6603. <div class="workImg">
  6604. <img :src="word" @click="openWord(w)" alt />
  6605. <!-- @click="openFile(w.works)" -->
  6606. <div
  6607. class="answerScore"
  6608. v-if="w.score"
  6609. @click.stop="openScore(w)"
  6610. :class="{
  6611. rightW:
  6612. w.userid == userid ||
  6613. tType == 1 ||
  6614. tType == 4 ||
  6615. w.ateacher == userid,
  6616. }"
  6617. >
  6618. {{ JSON.parse(w.score).wScore }}分
  6619. </div>
  6620. <div
  6621. class="answerScore"
  6622. @click.stop="openScore(w)"
  6623. v-else-if="courseDetail.userid == userid"
  6624. :class="{
  6625. rightW:
  6626. w.userid == userid ||
  6627. tType == 1 ||
  6628. tType == 4 ||
  6629. w.ateacher == userid,
  6630. }"
  6631. >
  6632. 评分
  6633. </div>
  6634. <img
  6635. class="deleteImg"
  6636. src="../assets/deleteworks.png"
  6637. v-if="
  6638. w.userid == userid || tType == 1 || tType == 4
  6639. "
  6640. @click.stop="deleteWorks(w.wid)"
  6641. alt
  6642. />
  6643. </div>
  6644. <div class="comment" style="min-width: 200px">
  6645. <div class="worksName">
  6646. <div>{{ w.sName }}</div>
  6647. </div>
  6648. <div class="commentList">
  6649. <div class="commentList">
  6650. <div
  6651. class="commentImg"
  6652. @click="
  6653. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6654. "
  6655. >
  6656. <img
  6657. :src="w.isLikes == true ? likes : noLikes"
  6658. alt=""
  6659. />
  6660. </div>
  6661. <div>{{ w.likesCount }}</div>
  6662. </div>
  6663. <div class="commentList" style="margin-right: 15px">
  6664. <div
  6665. class="commentImg"
  6666. @click="commentOther(w, toolIndex, wIndex)"
  6667. >
  6668. <img
  6669. src="../assets/icon/comment/comment.png"
  6670. alt=""
  6671. />
  6672. </div>
  6673. <div>{{ w.commentCount }}</div>
  6674. </div>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. </div>
  6679. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6680. 未提交
  6681. </div>
  6682. <div
  6683. class="noWorksS"
  6684. v-if="noWorksS && noWorksS[toolIndex].length"
  6685. >
  6686. <div
  6687. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6688. :key="sIndex"
  6689. class="noWorksName"
  6690. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6691. >
  6692. <el-tooltip effect="dark" :content="s.student" placement="top">
  6693. <span>{{ s.student }}</span>
  6694. </el-tooltip>
  6695. </div>
  6696. </div>
  6697. </div>
  6698. <div
  6699. v-if="
  6700. tType &&
  6701. tType == 2 &&
  6702. !sIsOpen &&
  6703. tool.tool.indexOf(52) != -1
  6704. "
  6705. class="worksBox"
  6706. >
  6707. <div
  6708. class="zuoyeYulan"
  6709. v-if="workStudent[toolIndex].length > 0"
  6710. >
  6711. <span class="worksTitle">作业预览</span>
  6712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6713. </div>
  6714. <div
  6715. class="worksDetailBox"
  6716. v-if="workStudent[toolIndex].length > 0"
  6717. >
  6718. <div
  6719. class="works"
  6720. style="
  6721. width: 200px;
  6722. height: 140px;
  6723. margin: 10px 10px 10px 0;
  6724. box-shadow: 0 0 6px 1px #dfdada;
  6725. "
  6726. v-for="(w, wIndex) in workStudent[toolIndex]"
  6727. :key="wIndex"
  6728. >
  6729. <div class="workImg">
  6730. <img :src="word" @click="openWord(w)" alt />
  6731. <div
  6732. class="answerScore"
  6733. v-if="w.score"
  6734. @click.stop="openScore(w)"
  6735. :class="{
  6736. rightW:
  6737. w.userid == userid || tType == 1 || tType == 4,
  6738. }"
  6739. >
  6740. {{ JSON.parse(w.score).wScore }}分
  6741. </div>
  6742. <div
  6743. class="answerScore"
  6744. @click.stop="openScore(w)"
  6745. v-else-if="courseDetail.userid == userid"
  6746. :class="{
  6747. rightW:
  6748. w.userid == userid || tType == 1 || tType == 4,
  6749. }"
  6750. >
  6751. 评分
  6752. </div>
  6753. <img
  6754. class="deleteImg"
  6755. src="../assets/deleteworks.png"
  6756. v-if="
  6757. w.userid == userid || tType == 1 || tType == 4
  6758. "
  6759. @click.stop="deleteWorks(w.wid)"
  6760. alt
  6761. />
  6762. </div>
  6763. <div class="worksName">
  6764. <div>{{ w.sName }}</div>
  6765. </div>
  6766. </div>
  6767. </div>
  6768. </div>
  6769. <div
  6770. v-if="tool.tool.indexOf(49) != -1"
  6771. class="xuan_right_box"
  6772. style="margin: 0 15px 0 25px; width: 93%"
  6773. >
  6774. <div
  6775. v-if="courseDetail.userid == userid"
  6776. style="
  6777. display: flex;
  6778. justify-content: flex-end;
  6779. margin-right: 10px;
  6780. "
  6781. >
  6782. <el-button
  6783. type="primary"
  6784. size="small"
  6785. @click="addTools(49, toolIndex, taskCount)"
  6786. >分组设置</el-button
  6787. >
  6788. </div>
  6789. <div
  6790. v-if="groupStudentUid[toolIndex]"
  6791. class="group_staic_box"
  6792. >
  6793. <div
  6794. v-for="(gp, gd) in tool.groupJson.group"
  6795. :key="gd"
  6796. class="group_staic"
  6797. >
  6798. <span> {{ gp.name }}</span>
  6799. <span>
  6800. 目前人数{{
  6801. groupStudentUid[toolIndex][gd].length
  6802. }}人</span
  6803. >
  6804. </div>
  6805. </div>
  6806. </div>
  6807. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6808. <div
  6809. class="zuoyeYulan"
  6810. v-if="
  6811. worksStudent.length &&
  6812. worksStudent[toolIndex].length > 0
  6813. "
  6814. >
  6815. <span class="worksTitle">作业预览</span>
  6816. </div>
  6817. <div>
  6818. <div
  6819. class="group_workBox"
  6820. v-for="(g, gindex) in tool.groupJson.group"
  6821. :key="gindex"
  6822. >
  6823. <div
  6824. class="group_box"
  6825. v-if="
  6826. groupStudentUid[toolIndex] &&
  6827. worksStudent[toolIndex] &&
  6828. (worksStudent[toolIndex][gindex].length ||
  6829. groupStudentUid[toolIndex][gindex].indexOf(
  6830. userid
  6831. ) != -1)
  6832. "
  6833. >
  6834. <div class="group_title">
  6835. <el-tooltip
  6836. class="item"
  6837. effect="light"
  6838. :content="g.name"
  6839. placement="top"
  6840. >
  6841. <div class="group_name">{{ g.name }}</div>
  6842. </el-tooltip>
  6843. <el-button
  6844. type="primary"
  6845. v-if="
  6846. groupStudentUid[toolIndex][gindex].indexOf(
  6847. userid
  6848. ) != -1
  6849. "
  6850. @click="groupUpload(toolIndex, taskCount, gindex)"
  6851. >上传作业</el-button
  6852. >
  6853. </div>
  6854. <div class="group_work">
  6855. <div
  6856. class="works"
  6857. style="
  6858. width: 200px;
  6859. height: 140px;
  6860. margin: 10px 10px 10px 0;
  6861. border-radius: 15px;
  6862. box-shadow: 0 0 6px 1px #dfdada;
  6863. "
  6864. v-for="(w, wIndex) in worksStudent[toolIndex][
  6865. gindex
  6866. ]"
  6867. :key="wIndex"
  6868. :class="w.type == 1 ? 'isTypeOne' : ''"
  6869. >
  6870. <div class="workImg" v-if="w.type == 0">
  6871. <img
  6872. :src="w.works"
  6873. @click="previewImg(w.works,w)"
  6874. alt
  6875. />
  6876. <div
  6877. class="answerScore"
  6878. v-if="w.score"
  6879. @click.stop="openScore(w)"
  6880. :class="{
  6881. rightW:
  6882. w.userid == userid ||
  6883. tType == 1 ||
  6884. tType == 4 ||
  6885. w.ateacher == userid,
  6886. }"
  6887. >
  6888. {{ JSON.parse(w.score).wScore }}分
  6889. </div>
  6890. <div
  6891. class="answerScore"
  6892. @click.stop="openScore(w)"
  6893. v-else-if="courseDetail.userid == userid"
  6894. :class="{
  6895. rightW:
  6896. w.userid == userid ||
  6897. tType == 1 ||
  6898. tType == 4 ||
  6899. w.ateacher == userid,
  6900. }"
  6901. >
  6902. 评分
  6903. </div>
  6904. <img
  6905. class="deleteImg"
  6906. src="../assets/deleteworks.png"
  6907. v-if="
  6908. w.userid == userid ||
  6909. tType == 1 ||
  6910. tType == 4
  6911. "
  6912. @click.stop="deleteWorks(w.wid)"
  6913. alt
  6914. />
  6915. </div>
  6916. <div class="workImg" v-if="w.type == 1">
  6917. <img
  6918. :src="word"
  6919. @click="openFile(w.works,w)"
  6920. alt
  6921. />
  6922. <!-- @click="openFile(w.works)" -->
  6923. <div
  6924. class="answerScore"
  6925. v-if="w.score"
  6926. @click.stop="openScore(w)"
  6927. :class="{
  6928. rightW:
  6929. w.userid == userid ||
  6930. tType == 1 ||
  6931. tType == 4 ||
  6932. w.ateacher == userid,
  6933. }"
  6934. >
  6935. {{ JSON.parse(w.score).wScore }}分
  6936. </div>
  6937. <div
  6938. class="answerScore"
  6939. @click.stop="openScore(w)"
  6940. v-else-if="courseDetail.userid == userid"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4 ||
  6946. w.ateacher == userid,
  6947. }"
  6948. >
  6949. 评分
  6950. </div>
  6951. <img
  6952. class="deleteImg"
  6953. src="../assets/deleteworks.png"
  6954. v-if="
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4
  6958. "
  6959. @click.stop="deleteWorks(w.wid)"
  6960. alt
  6961. />
  6962. </div>
  6963. <div class="workImg" v-if="w.type == 3">
  6964. <img
  6965. style="cursor: pointer"
  6966. :src="video"
  6967. @click="openVideo(w)"
  6968. alt
  6969. />
  6970. <!-- @click="openVideo(w.works)" -->
  6971. <div
  6972. class="answerScore"
  6973. v-if="w.score"
  6974. @click.stop="openScore(w)"
  6975. :class="{
  6976. rightW:
  6977. w.userid == userid ||
  6978. tType == 1 ||
  6979. tType == 4 ||
  6980. w.ateacher == userid,
  6981. }"
  6982. >
  6983. {{ JSON.parse(w.score).wScore }}分
  6984. </div>
  6985. <div
  6986. class="answerScore"
  6987. @click.stop="openScore(w)"
  6988. v-else-if="courseDetail.userid == userid"
  6989. :class="{
  6990. rightW:
  6991. w.userid == userid ||
  6992. tType == 1 ||
  6993. tType == 4 ||
  6994. w.ateacher == userid,
  6995. }"
  6996. >
  6997. 评分
  6998. </div>
  6999. <img
  7000. class="deleteImg"
  7001. src="../assets/deleteworks.png"
  7002. v-if="
  7003. w.userid == userid ||
  7004. tType == 1 ||
  7005. tType == 4
  7006. "
  7007. @click.stop="deleteWorks(w.wid)"
  7008. alt
  7009. />
  7010. </div>
  7011. <div class="workImg" v-if="w.type == 12">
  7012. <img
  7013. style="cursor: pointer"
  7014. :src="word2"
  7015. @click="downloadFile(w.works)"
  7016. alt
  7017. />
  7018. <!-- @click="openVideo(w.works)" -->
  7019. <div
  7020. class="answerScore"
  7021. v-if="w.score"
  7022. @click.stop="openScore(w)"
  7023. :class="{
  7024. rightW:
  7025. w.userid == userid ||
  7026. tType == 1 ||
  7027. tType == 4 ||
  7028. w.ateacher == userid,
  7029. }"
  7030. >
  7031. {{ JSON.parse(w.score).wScore }}分
  7032. </div>
  7033. <div
  7034. class="answerScore"
  7035. @click.stop="openScore(w)"
  7036. v-else-if="courseDetail.userid == userid"
  7037. :class="{
  7038. rightW:
  7039. w.userid == userid ||
  7040. tType == 1 ||
  7041. tType == 4 ||
  7042. w.ateacher == userid,
  7043. }"
  7044. >
  7045. 评分
  7046. </div>
  7047. <img
  7048. class="deleteImg"
  7049. src="../assets/deleteworks.png"
  7050. v-if="
  7051. w.userid == userid ||
  7052. tType == 1 ||
  7053. tType == 4
  7054. "
  7055. @click.stop="deleteWorks(w.wid)"
  7056. alt
  7057. />
  7058. </div>
  7059. <div class="comment" style="min-width: 200px">
  7060. <div class="worksName">
  7061. <div>{{ w.sName }}</div>
  7062. </div>
  7063. <div class="commentList">
  7064. <div class="commentList">
  7065. <div
  7066. class="commentImg"
  7067. @click="
  7068. isLikes(
  7069. w.wid,
  7070. userid,
  7071. 1,
  7072. null,
  7073. w.isLikes,
  7074. w.sName
  7075. )
  7076. "
  7077. >
  7078. <img
  7079. :src="
  7080. w.isLikes == true ? likes : noLikes
  7081. "
  7082. alt=""
  7083. />
  7084. </div>
  7085. <div>{{ w.likesCount }}</div>
  7086. </div>
  7087. <div
  7088. class="commentList"
  7089. style="margin-right: 15px"
  7090. >
  7091. <div
  7092. class="commentImg"
  7093. @click="
  7094. commentOther(
  7095. w,
  7096. toolIndex,
  7097. wIndex,
  7098. gindex
  7099. )
  7100. "
  7101. >
  7102. <img
  7103. src="../assets/icon/comment/comment.png"
  7104. alt=""
  7105. />
  7106. </div>
  7107. <div>{{ w.commentCount }}</div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. </div>
  7112. </div>
  7113. </div>
  7114. </div>
  7115. </div>
  7116. </div>
  7117. </div>
  7118. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7119. 上传文件
  7120. <input
  7121. type="file"
  7122. accept="image/png, image/gif, image/jpeg"
  7123. style="display: none"
  7124. @change="beforeUpload1($event, 2, index)"
  7125. />
  7126. </div>-->
  7127. </div>
  7128. </div>
  7129. <!-- <div
  7130. class="vedioBox"
  7131. style="margin-top: 10px"
  7132. v-if="
  7133. courseDetail.userid == userid ||
  7134. (courseDetail.course_teacher &&
  7135. courseDetail.course_teacher.indexOf(userid) != -1)
  7136. "
  7137. :style="{
  7138. borderRadius:
  7139. !(
  7140. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7141. .toolChoose[0].tool &&
  7142. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7143. .toolChoose[0].tool.length > 0
  7144. ) &&
  7145. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7146. .taskDetail == '' &&
  7147. vChapterData[taskCount].length == 0 &&
  7148. fileC[taskCount].length == 0
  7149. ? '0 0 20px 20px'
  7150. : '20px',
  7151. }"
  7152. >
  7153. <div
  7154. class="queTop"
  7155. @click="isClose = !isClose"
  7156. style="
  7157. padding: 15px 0 15px 37px;
  7158. justify-content: space-between;
  7159. "
  7160. >
  7161. <div class="queTopTitle">新增工具</div>
  7162. <div class="queTopRight">
  7163. <div class="queTopClose" v-if="isClose == 0">
  7164. 展开
  7165. <div class="closeImg">
  7166. <img src="../assets/icon/newIcon/close.png" alt="" />
  7167. </div>
  7168. </div>
  7169. <div class="queTopClose" v-if="isClose == 1">
  7170. 折叠
  7171. <div class="openImg">
  7172. <img src="../assets/icon/newIcon/open.png" alt="" />
  7173. </div>
  7174. </div>
  7175. <el-button
  7176. style="margin: 0 30px 0 auto"
  7177. type="primary"
  7178. size="small"
  7179. v-if="isClose == 1 && checktoolArray.length > 0"
  7180. @click.stop="addToolChoose"
  7181. >确定</el-button
  7182. >
  7183. </div>
  7184. </div>
  7185. <div
  7186. class="tool_work_box"
  7187. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7188. >
  7189. <div class="tool_box">
  7190. <div class="tool_type_box">
  7191. <div class="chooseWho">
  7192. <div
  7193. :class="toolType == 0 ? 'isChooseActive' : ''"
  7194. @click="(toolType = 0), $forceUpdate()"
  7195. >
  7196. 互动类
  7197. </div>
  7198. <div
  7199. :class="toolType == 1 ? 'isChooseActive' : ''"
  7200. @click="(toolType = 1), $forceUpdate()"
  7201. >
  7202. 思维类
  7203. </div>
  7204. <div
  7205. :class="toolType == 2 ? 'isChooseActive' : ''"
  7206. @click="(toolType = 2), $forceUpdate()"
  7207. >
  7208. 测评类
  7209. </div>
  7210. <div
  7211. :class="toolType == 3 ? 'isChooseActive' : ''"
  7212. @click="(toolType = 3), $forceUpdate()"
  7213. >
  7214. 编程类
  7215. </div>
  7216. <div
  7217. :class="toolType == 5 ? 'isChooseActive' : ''"
  7218. @click="(toolType = 5), $forceUpdate()"
  7219. >
  7220. 学科类
  7221. </div>
  7222. </div>
  7223. </div>
  7224. <div>
  7225. <div class="toolSort" v-if="toolType == 0">
  7226. <div class="tool">
  7227. <div class="whiteBIcon" @click="addTools2(10)">
  7228. <img
  7229. src="../assets/icon/thirdToolList/time.png"
  7230. alt
  7231. />
  7232. <div style="margin: 5px 0">倒计时</div>
  7233. </div>
  7234. <div class="check" @click="addTools2(10)">
  7235. <img
  7236. src="../assets/icon/checkNo.png"
  7237. alt
  7238. v-if="checktoolArray.indexOf(10) == -1"
  7239. />
  7240. <div class="checkDiv" v-else>
  7241. <img src="../assets/icon/checkedIs.png" alt /><span
  7242. >已选择</span
  7243. >
  7244. </div>
  7245. </div>
  7246. </div>
  7247. <div class="tool">
  7248. <div class="whiteBIcon" @click="addTools2(65)">
  7249. <img
  7250. src="../assets/icon/firstToolList/pickPeople.png"
  7251. alt
  7252. />
  7253. <div style="margin: 5px 0">挑人</div>
  7254. </div>
  7255. <div class="check" @click="addTools2(65)">
  7256. <img
  7257. src="../assets/icon/checkNo.png"
  7258. alt
  7259. v-if="checktoolArray.indexOf(65) == -1"
  7260. />
  7261. <div class="checkDiv" v-else>
  7262. <img src="../assets/icon/checkedIs.png" alt /><span
  7263. >已选择</span
  7264. >
  7265. </div>
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="toolSort" v-if="toolType == 1">
  7270. <div class="tool">
  7271. <div class="whiteBIcon" @click="addTools2(7)">
  7272. <img
  7273. src="../assets/icon/secondToolList/mindNetwork.png"
  7274. alt
  7275. />
  7276. <div style="margin: 5px 0">思维网格</div>
  7277. </div>
  7278. <div class="check" @click="addTools2(7)">
  7279. <img
  7280. src="../assets/icon/checkNo.png"
  7281. alt
  7282. v-if="checktoolArray.indexOf(7) == -1"
  7283. />
  7284. <div class="checkDiv" v-else>
  7285. <img src="../assets/icon/checkedIs.png" alt /><span
  7286. >已选择</span
  7287. >
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div class="tool">
  7292. <div class="whiteBIcon" @click="addTools2(1)">
  7293. <img
  7294. src="../assets/icon/secondToolList/whiteBoard.png"
  7295. alt
  7296. />
  7297. <div style="margin: 5px 0">电子白板</div>
  7298. </div>
  7299. <div class="check" @click="addTools2(1)">
  7300. <img
  7301. src="../assets/icon/checkNo.png"
  7302. alt
  7303. v-if="checktoolArray.indexOf(1) == -1"
  7304. />
  7305. <div class="checkDiv" v-else>
  7306. <img src="../assets/icon/checkedIs.png" alt /><span
  7307. >已选择</span
  7308. >
  7309. </div>
  7310. </div>
  7311. </div>
  7312. <div class="tool">
  7313. <div class="whiteBIcon" @click="addTools2(52)">
  7314. <img
  7315. src="../assets/icon/fourthToolList/text.png"
  7316. alt
  7317. />
  7318. <div style="margin: 5px 0">文档</div>
  7319. </div>
  7320. <div class="check" @click="addTools2(52)">
  7321. <img
  7322. src="../assets/icon/checkNo.png"
  7323. alt
  7324. v-if="checktoolArray.indexOf(52) == -1"
  7325. />
  7326. <div class="checkDiv" v-else>
  7327. <img src="../assets/icon/checkedIs.png" alt /><span
  7328. >已选择</span
  7329. >
  7330. </div>
  7331. </div>
  7332. </div>
  7333. <div class="tool">
  7334. <div class="whiteBIcon" @click="addTools2(3)">
  7335. <img
  7336. src="../assets/icon/secondToolList/mindMapping.png"
  7337. alt
  7338. />
  7339. <div style="margin: 5px 0">思维导图</div>
  7340. </div>
  7341. <div class="check" @click="addTools2(3)">
  7342. <img
  7343. src="../assets/icon/checkNo.png"
  7344. alt
  7345. v-if="checktoolArray.indexOf(3) == -1"
  7346. />
  7347. <div class="checkDiv" v-else>
  7348. <img src="../assets/icon/checkedIs.png" alt /><span
  7349. >已选择</span
  7350. >
  7351. </div>
  7352. </div>
  7353. </div>
  7354. <div class="tool">
  7355. <div class="whiteBIcon" @click="addTools2(48)">
  7356. <img
  7357. src="../assets/icon/fourthToolList/table.png"
  7358. alt
  7359. />
  7360. <div style="margin: 5px 0">表格</div>
  7361. </div>
  7362. <div class="check" @click="addTools2(48)">
  7363. <img
  7364. src="../assets/icon/checkNo.png"
  7365. alt
  7366. v-if="checktoolArray.indexOf(48) == -1"
  7367. />
  7368. <div class="checkDiv" v-else>
  7369. <img src="../assets/icon/checkedIs.png" alt /><span
  7370. >已选择</span
  7371. >
  7372. </div>
  7373. </div>
  7374. </div>
  7375. </div>
  7376. <div class="toolSort" v-if="toolType == 6">
  7377. <div v-show="tooC == 49">
  7378. <img
  7379. @click="addTools(tooC, toolIndex, taskCount)"
  7380. src="../assets/icon/fourthToolList/group.png"
  7381. alt
  7382. />
  7383. <div style="margin: 5px 0">学生分组</div>
  7384. </div>
  7385. </div>
  7386. <div class="toolSort" v-if="toolType == 2">
  7387. <div class="tool">
  7388. <div class="whiteBIcon" @click="addTools2(16)">
  7389. <img
  7390. src="../assets/icon/thirdToolList/work.png"
  7391. alt
  7392. />
  7393. <div style="margin: 5px 0">作业提交</div>
  7394. </div>
  7395. <div class="check" @click="addTools2(16)">
  7396. <img
  7397. src="../assets/icon/checkNo.png"
  7398. alt
  7399. v-if="checktoolArray.indexOf(16) == -1"
  7400. />
  7401. <div class="checkDiv" v-else>
  7402. <img src="../assets/icon/checkedIs.png" alt /><span
  7403. >已选择</span
  7404. >
  7405. </div>
  7406. </div>
  7407. </div>
  7408. <div class="tool">
  7409. <div class="whiteBIcon" @click="addTools2(50)">
  7410. <img
  7411. src="../assets/icon/thirdToolList/plwork.png"
  7412. alt
  7413. />
  7414. <div style="margin: 5px 0">批量上传</div>
  7415. </div>
  7416. <div class="check" @click="addTools2(50)">
  7417. <img
  7418. src="../assets/icon/checkNo.png"
  7419. alt
  7420. v-if="checktoolArray.indexOf(50) == -1"
  7421. />
  7422. <div class="checkDiv" v-else>
  7423. <img src="../assets/icon/checkedIs.png" alt /><span
  7424. >已选择</span
  7425. >
  7426. </div>
  7427. </div>
  7428. </div>
  7429. </div>
  7430. <div class="toolSort" v-if="toolType == 3">
  7431. <div class="tool">
  7432. <div class="whiteBIcon" @click="addTools2(18)">
  7433. <img
  7434. src="../assets/icon/thirdToolList/trainPlatform.png"
  7435. alt
  7436. />
  7437. <div style="margin: 5px 0">训练平台</div>
  7438. </div>
  7439. <div class="check" @click="addTools2(18)">
  7440. <img
  7441. src="../assets/icon/checkNo.png"
  7442. alt
  7443. v-if="checktoolArray.indexOf(18) == -1"
  7444. />
  7445. <div class="checkDiv" v-else>
  7446. <img src="../assets/icon/checkedIs.png" alt /><span
  7447. >已选择</span
  7448. >
  7449. </div>
  7450. </div>
  7451. </div>
  7452. <div class="tool">
  7453. <div class="whiteBIcon" @click="addTools2(21)">
  7454. <img
  7455. src="../assets/icon/fourthToolList/program.png"
  7456. alt
  7457. />
  7458. <div style="margin: 5px 0">AIoT Blockly</div>
  7459. </div>
  7460. <div class="check" @click="addTools2(21)">
  7461. <img
  7462. src="../assets/icon/checkNo.png"
  7463. alt
  7464. v-if="checktoolArray.indexOf(21) == -1"
  7465. />
  7466. <div class="checkDiv" v-else>
  7467. <img src="../assets/icon/checkedIs.png" alt /><span
  7468. >已选择</span
  7469. >
  7470. </div>
  7471. </div>
  7472. </div>
  7473. <div class="tool">
  7474. <div class="whiteBIcon" @click="addTools2(23)">
  7475. <img
  7476. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7477. alt
  7478. />
  7479. <div style="margin: 5px 0">AI Python</div>
  7480. </div>
  7481. <div class="check" @click="addTools2(23)">
  7482. <img
  7483. src="../assets/icon/checkNo.png"
  7484. alt
  7485. v-if="checktoolArray.indexOf(23) == -1"
  7486. />
  7487. <div class="checkDiv" v-else>
  7488. <img src="../assets/icon/checkedIs.png" alt /><span
  7489. >已选择</span
  7490. >
  7491. </div>
  7492. </div>
  7493. </div>
  7494. <div class="tool">
  7495. <div class="whiteBIcon" @click="addTools2(24)">
  7496. <img
  7497. src="../assets/icon/fourthToolList/AIprogram.png"
  7498. alt
  7499. />
  7500. <div style="margin: 5px 0">AI Blockly</div>
  7501. </div>
  7502. <div class="check" @click="addTools2(24)">
  7503. <img
  7504. src="../assets/icon/checkNo.png"
  7505. alt
  7506. v-if="checktoolArray.indexOf(24) == -1"
  7507. />
  7508. <div class="checkDiv" v-else>
  7509. <img src="../assets/icon/checkedIs.png" alt /><span
  7510. >已选择</span
  7511. >
  7512. </div>
  7513. </div>
  7514. </div>
  7515. <div class="tool">
  7516. <div class="whiteBIcon" @click="addTools2(32)">
  7517. <img
  7518. src="../assets/icon/thirdToolList/code.png"
  7519. alt
  7520. />
  7521. <div style="margin: 5px 0">源码编辑</div>
  7522. </div>
  7523. <div class="check" @click="addTools2(32)">
  7524. <img
  7525. src="../assets/icon/checkNo.png"
  7526. alt
  7527. v-if="checktoolArray.indexOf(32) == -1"
  7528. />
  7529. <div class="checkDiv" v-else>
  7530. <img src="../assets/icon/checkedIs.png" alt /><span
  7531. >已选择</span
  7532. >
  7533. </div>
  7534. </div>
  7535. </div>
  7536. <div class="tool">
  7537. <div class="whiteBIcon" @click="addTools2(57)">
  7538. <img
  7539. src="../assets/icon/fourthToolList/cocopi.png"
  7540. alt
  7541. />
  7542. <div style="margin: 5px 0">CocoPi</div>
  7543. </div>
  7544. <div class="check" @click="addTools2(57)">
  7545. <img
  7546. src="../assets/icon/checkNo.png"
  7547. alt
  7548. v-if="checktoolArray.indexOf(57) == -1"
  7549. />
  7550. <div class="checkDiv" v-else>
  7551. <img src="../assets/icon/checkedIs.png" alt /><span
  7552. >已选择</span
  7553. >
  7554. </div>
  7555. </div>
  7556. </div>
  7557. <div class="tool">
  7558. <div class="whiteBIcon" @click="addTools2(63)">
  7559. <img
  7560. src="../assets/icon/fourthToolList/Wood.png"
  7561. alt
  7562. />
  7563. <div style="margin: 5px 0">海龟编程</div>
  7564. </div>
  7565. <div class="check" @click="addTools2(63)">
  7566. <img
  7567. src="../assets/icon/checkNo.png"
  7568. alt
  7569. v-if="checktoolArray.indexOf(63) == -1"
  7570. />
  7571. <div class="checkDiv" v-else>
  7572. <img src="../assets/icon/checkedIs.png" alt /><span
  7573. >已选择</span
  7574. >
  7575. </div>
  7576. </div>
  7577. </div>
  7578. </div>
  7579. <div class="toolSort" v-if="toolType == 5">
  7580. <div class="tool">
  7581. <div class="whiteBIcon" @click="addTools2(28)">
  7582. <img
  7583. src="../assets/icon/secondToolList/translation.png"
  7584. alt
  7585. />
  7586. <div style="margin: 5px 0">翻译</div>
  7587. </div>
  7588. <div class="check" @click="addTools2(28)">
  7589. <img
  7590. src="../assets/icon/checkNo.png"
  7591. alt
  7592. v-if="checktoolArray.indexOf(28) == -1"
  7593. />
  7594. <div class="checkDiv" v-else>
  7595. <img src="../assets/icon/checkedIs.png" alt /><span
  7596. >已选择</span
  7597. >
  7598. </div>
  7599. </div>
  7600. </div>
  7601. <div class="tool">
  7602. <div class="whiteBIcon" @click="addTools2(31)">
  7603. <img
  7604. src="../assets/icon/secondToolList/networkPanel.png"
  7605. alt
  7606. />
  7607. <div style="margin: 5px 0">数字画板</div>
  7608. </div>
  7609. <div class="check" @click="addTools2(31)">
  7610. <img
  7611. src="../assets/icon/checkNo.png"
  7612. alt
  7613. v-if="checktoolArray.indexOf(31) == -1"
  7614. />
  7615. <div class="checkDiv" v-else>
  7616. <img src="../assets/icon/checkedIs.png" alt /><span
  7617. >已选择</span
  7618. >
  7619. </div>
  7620. </div>
  7621. </div>
  7622. <div class="tool">
  7623. <div class="whiteBIcon" @click="addTools2(39)">
  7624. <img
  7625. src="../assets/icon/secondToolList/GeoGebra.png"
  7626. alt
  7627. />
  7628. <div style="margin: 5px 0">GeoGebra</div>
  7629. </div>
  7630. <div class="check" @click="addTools2(39)">
  7631. <img
  7632. src="../assets/icon/checkNo.png"
  7633. alt
  7634. v-if="checktoolArray.indexOf(39) == -1"
  7635. />
  7636. <div class="checkDiv" v-else>
  7637. <img src="../assets/icon/checkedIs.png" alt /><span
  7638. >已选择</span
  7639. >
  7640. </div>
  7641. </div>
  7642. </div>
  7643. <div class="tool">
  7644. <div class="whiteBIcon" @click="addTools2(66)">
  7645. <img
  7646. src="../assets/icon/secondToolList/formulaEdi.png"
  7647. alt
  7648. />
  7649. <div style="margin: 5px 0">公式编辑</div>
  7650. </div>
  7651. <div class="check" @click="addTools2(66)">
  7652. <img
  7653. src="../assets/icon/checkNo.png"
  7654. alt
  7655. v-if="checktoolArray.indexOf(66) == -1"
  7656. />
  7657. <div class="checkDiv" v-else>
  7658. <img src="../assets/icon/checkedIs.png" alt /><span
  7659. >已选择</span
  7660. >
  7661. </div>
  7662. </div>
  7663. </div>
  7664. <div class="tool">
  7665. <div class="whiteBIcon" @click="addTools2(67)">
  7666. <img
  7667. src="../assets/icon/secondToolList/molStr.png"
  7668. alt
  7669. />
  7670. <div style="margin: 5px 0">分子结构</div>
  7671. </div>
  7672. <div class="check" @click="addTools2(67)">
  7673. <img
  7674. src="../assets/icon/checkNo.png"
  7675. alt
  7676. v-if="checktoolArray.indexOf(67) == -1"
  7677. />
  7678. <div class="checkDiv" v-else>
  7679. <img src="../assets/icon/checkedIs.png" alt /><span
  7680. >已选择</span
  7681. >
  7682. </div>
  7683. </div>
  7684. </div>
  7685. <div class="tool">
  7686. <div class="whiteBIcon" @click="addTools2(68)">
  7687. <img
  7688. src="../assets/icon/secondToolList/timeAxis.png"
  7689. alt
  7690. />
  7691. <div style="margin: 5px 0">时间轴</div>
  7692. </div>
  7693. <div class="check" @click="addTools2(68)">
  7694. <img
  7695. src="../assets/icon/checkNo.png"
  7696. alt
  7697. v-if="checktoolArray.indexOf(68) == -1"
  7698. />
  7699. <div class="checkDiv" v-else>
  7700. <img src="../assets/icon/checkedIs.png" alt /><span
  7701. >已选择</span
  7702. >
  7703. </div>
  7704. </div>
  7705. </div>
  7706. </div>
  7707. <div class="toolSort" v-if="toolType == 7">
  7708. <div class="tool">
  7709. <div class="whiteBIcon" @click="addTools2(40)">
  7710. <img
  7711. src="../assets/icon/secondToolList/eval.png"
  7712. alt
  7713. />
  7714. <div style="margin: 5px 0">个人评价</div>
  7715. </div>
  7716. <div class="check" @click="addTools2(40)">
  7717. <img
  7718. src="../assets/icon/checkNo.png"
  7719. alt
  7720. v-if="checktoolArray.indexOf(40) == -1"
  7721. />
  7722. <div class="checkDiv" v-else>
  7723. <img src="../assets/icon/checkedIs.png" alt /><span
  7724. >已选择</span
  7725. >
  7726. </div>
  7727. </div>
  7728. </div>
  7729. </div>
  7730. <div class="toolSort" v-if="toolType == 4">
  7731. <div class="tool">
  7732. <div class="whiteBIcon" @click="addTools2(26)">
  7733. <img
  7734. src="../assets/icon/thirdToolList/courseDesign.png"
  7735. alt
  7736. />
  7737. <div style="margin: 5px 0">课程设计</div>
  7738. </div>
  7739. <div class="check" @click="addTools2(26)">
  7740. <img
  7741. src="../assets/icon/checkNo.png"
  7742. alt
  7743. v-if="checktoolArray.indexOf(26) == -1"
  7744. />
  7745. <div class="checkDiv" v-else>
  7746. <img src="../assets/icon/checkedIs.png" alt /><span
  7747. >已选择</span
  7748. >
  7749. </div>
  7750. </div>
  7751. </div>
  7752. <div class="tool">
  7753. <div class="whiteBIcon" @click="addTools2(25)">
  7754. <img
  7755. src="../assets/icon/thirdToolList/evalua.png"
  7756. alt
  7757. />
  7758. <div style="margin: 5px 0">目标管理</div>
  7759. </div>
  7760. <div class="check" @click="addTools2(25)">
  7761. <img
  7762. src="../assets/icon/checkNo.png"
  7763. alt
  7764. v-if="checktoolArray.indexOf(25) == -1"
  7765. />
  7766. <div class="checkDiv" v-else>
  7767. <img src="../assets/icon/checkedIs.png" alt /><span
  7768. >已选择</span
  7769. >
  7770. </div>
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div>
  7775. </div>
  7776. </div>
  7777. </div> -->
  7778. <div
  7779. class="vedioBox"
  7780. style="margin-top: 10px; border-radius: 20px"
  7781. v-if="
  7782. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7783. .eList &&
  7784. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7785. .eList.length &&
  7786. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7787. .eList.length > 0 &&
  7788. tType != 2
  7789. "
  7790. >
  7791. <div
  7792. class="queTop"
  7793. style="
  7794. font-size: 20px;
  7795. padding: 15px 0 15px 37px;
  7796. font-weight: bold;
  7797. "
  7798. >
  7799. <!-- <div class="question" style="width: 30px">
  7800. <img src="../assets/icon/toolIcon.png" alt />
  7801. </div>
  7802. <div class="queTitle">
  7803. <div>工具</div>
  7804. </div>-->
  7805. 评一评
  7806. </div>
  7807. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7808. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7809. <el-table
  7810. :data="
  7811. chapInfoList[courseType].chapterInfo[0].taskJson[
  7812. taskCount
  7813. ].eList
  7814. "
  7815. :header-cell-style="{ background: '#F0F4FA' }"
  7816. :row-class-name="tableRowClassName"
  7817. border
  7818. stripe
  7819. style="width: 100%"
  7820. >
  7821. <el-table-column
  7822. label="评价名称"
  7823. align="center"
  7824. >
  7825. <template slot-scope="scope"
  7826. ><div>{{ scope.row.value }}</div></template
  7827. >
  7828. </el-table-column>
  7829. <el-table-column
  7830. label="评价描述"
  7831. align="center"
  7832. >
  7833. <template slot-scope="scope"
  7834. ><div>
  7835. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7836. </div></template
  7837. >
  7838. </el-table-column>
  7839. <el-table-column label="目标" align="center">
  7840. <template slot-scope="scope"
  7841. ><div>
  7842. {{
  7843. scope.row.target
  7844. ? scope.row.target[scope.row.target.length - 1]
  7845. : "-"
  7846. }}
  7847. </div></template
  7848. ></el-table-column
  7849. >
  7850. </el-table>
  7851. <!-- <div
  7852. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7853. .chapterInfo[0].taskJson[taskCount].eList"
  7854. :key="eIndex"
  7855. class="elist_input_box"
  7856. >
  7857. <div style="width: 95%">
  7858. <div
  7859. style="
  7860. display: flex;
  7861. flex-direction: row;
  7862. flex-wrap: nowrap;
  7863. align-items: center;
  7864. "
  7865. >
  7866. <div style="max-width: calc(100% - 285px)">
  7867. <span>{{ eItem.value }}</span>
  7868. </div>
  7869. <div
  7870. style="
  7871. padding-left: 25px;
  7872. display: flex;
  7873. flex-direction: row;
  7874. align-items: center;
  7875. "
  7876. >
  7877. <el-rate
  7878. v-model="eItem.score"
  7879. :colors="colors"
  7880. disabled
  7881. ></el-rate>
  7882. </div>
  7883. </div>
  7884. <div class="elist_inptu_text" style="padding-left: 10px">
  7885. <span v-if="eItem.detail != ''">{{
  7886. eItem.detail
  7887. }}</span>
  7888. <span v-else style="color: #b2b1b3; font-size: 14px"
  7889. >暂无描述...</span
  7890. >
  7891. </div>
  7892. </div>
  7893. </div> -->
  7894. </div>
  7895. <div
  7896. v-if="evalua"
  7897. style="
  7898. border: 1px solid #e5e5e5;
  7899. max-width: 650px;
  7900. width: 100%;
  7901. margin-top: 20px;
  7902. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7903. "
  7904. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7905. >
  7906. <div class="e_add_top">
  7907. <div class="e_add_title" style="width: 100%">
  7908. <!-- <span>目标管理名称</span> -->
  7909. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7910. <img
  7911. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7912. src="../assets/line.png"
  7913. class="cru_line"
  7914. style="
  7915. width: 125px;
  7916. height: 20px;
  7917. bottom: -10px;
  7918. left: 5px;
  7919. "
  7920. />
  7921. <!-- <el-input
  7922. v-model="eTitle"
  7923. placeholder="请输入名称"
  7924. @change="setMindData"
  7925. ></el-input>-->
  7926. <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>
  7927. <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>
  7928. </div>
  7929. </div>
  7930. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7931. <div class="e_add_list_pbox">
  7932. <div class="e_add_list_pbox_title">
  7933. <!-- <span class="type_title">切换模式</span> -->
  7934. <div class="type_content">
  7935. <span
  7936. :class="{ active: typeMode == 1 }"
  7937. @click="typeMode = 1"
  7938. >目标树</span
  7939. >
  7940. <span
  7941. :class="{ active: typeMode == 2 }"
  7942. @click="typeMode = 2"
  7943. >目标罗盘</span
  7944. >
  7945. <!-- <span
  7946. :class="{ active: typeMode == 3 }"
  7947. @click="typeMode = 3"
  7948. >目标看板</span
  7949. > -->
  7950. </div>
  7951. </div>
  7952. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7953. <Mind
  7954. :showBar="false"
  7955. :mindData="data"
  7956. style="width: 100%"
  7957. v-show="typeMode == 1"
  7958. ></Mind>
  7959. <Sunburst
  7960. :Josn="eJson"
  7961. :num="eJSONNum"
  7962. style="width: 100%"
  7963. v-if="typeMode == 2"
  7964. ></Sunburst>
  7965. <SeeBoard
  7966. :Josn="eJson"
  7967. :num="eJSONNum"
  7968. :ename="eTitle"
  7969. style="width: 100%"
  7970. v-if="typeMode == 3"
  7971. >
  7972. </SeeBoard>
  7973. </div>
  7974. </div>
  7975. </div>
  7976. </div>
  7977. </div>
  7978. </div>
  7979. <!-- <div
  7980. class="project_box"
  7981. style="margin-top: 15px; padding-bottom: 30px"
  7982. >
  7983. <div
  7984. style="
  7985. display: flex;
  7986. flex-wrap: nowrap;
  7987. flex-direction: column;
  7988. position: relative;
  7989. "
  7990. >
  7991. <div class="queTop">
  7992. <div class="question">
  7993. <img src="../assets/icon/homeWork.png" alt="" />
  7994. </div>
  7995. <div class="queTitle">
  7996. <div>作业提交<span>(提交图文视频等)</span></div>
  7997. <div>:任务:{{ task.task }}</div>
  7998. </div>
  7999. </div>
  8000. <div class="ediBottom">
  8001. <div
  8002. class="addEditor"
  8003. style="margin-top: 23px"
  8004. @click="openAddWork"
  8005. v-if="!isNoHomeWork"
  8006. >
  8007. 选择文件
  8008. </div>
  8009. <div
  8010. class="addEditor"
  8011. style="margin-top: 23px"
  8012. @click="openAddWork"
  8013. v-else
  8014. >
  8015. 已提交
  8016. </div>
  8017. </div>
  8018. </div>
  8019. </div>-->
  8020. </div>
  8021. </div>
  8022. <el-dialog
  8023. title="作业提交"
  8024. :visible.sync="dialogVisible"
  8025. :append-to-body="true"
  8026. width="500px"
  8027. :before-close="handleClose"
  8028. class="dialog_change"
  8029. >
  8030. <div class="marginT">
  8031. <div>上传文件</div>
  8032. <div
  8033. class="chapter_add"
  8034. @click="addImg($event)"
  8035. v-if="studyJuri[0].cover.length == 0"
  8036. >
  8037. <div class="up_photo">
  8038. <img src="../assets/icon/uploadImg.png" alt />
  8039. </div>
  8040. <!-- <input
  8041. type="file"
  8042. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8043. style="display: none"
  8044. @change="beforeUpload1($event, 1)"
  8045. /> -->
  8046. <input
  8047. type="file"
  8048. accept="*"
  8049. style="display: none"
  8050. @change="beforeUpload1($event, 1)"
  8051. />
  8052. <!-- <input
  8053. type="file"
  8054. accept="image/*"
  8055. capture="camera"
  8056. style="display: none"
  8057. @change="beforeUpload1($event, 1)"
  8058. /> -->
  8059. </div>
  8060. <div
  8061. class="chapter_add"
  8062. style="
  8063. display: flex;
  8064. width: 100%;
  8065. flex-direction: row;
  8066. flex-wrap: wrap;
  8067. justify-content: flex-start;
  8068. padding: 15px 0;
  8069. "
  8070. v-if="studyJuri[0].cover.length > 0"
  8071. >
  8072. <div class="upCover">
  8073. <img
  8074. :src="studyJuri[0].cover[0].url"
  8075. alt
  8076. v-if="fileType == 0"
  8077. />
  8078. <img :src="word" alt v-else-if="fileType == 1" />
  8079. <img :src="video" alt v-else-if="fileType == 2" />
  8080. <img :src="word2" alt v-else-if="fileType == 3" />
  8081. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8082. <div class="deleteWord" @click="clean(1)">
  8083. <img src="../assets/icon/deleteWorks.png" alt />
  8084. </div>
  8085. </div>
  8086. </div>
  8087. </div>
  8088. <div
  8089. class="upload_send"
  8090. @click="addCourseWorks(taskCount)"
  8091. v-if="!proVisible"
  8092. >
  8093. 提交
  8094. </div>
  8095. </el-dialog>
  8096. </div>
  8097. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8098. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8099. '/courseDetail?userid=' +
  8100. userid +
  8101. '&oid=' +
  8102. oid +
  8103. '&org=' +
  8104. org +
  8105. '&cid=' +
  8106. classId +
  8107. '&courseId=' +
  8108. id +
  8109. '&tType=' +
  8110. tType +
  8111. '&screenType=' +
  8112. screenType
  8113. )"></classRoomHelper>
  8114. </div>
  8115. <div
  8116. class="pButton"
  8117. @click="(pzDialog = true), selectPz()"
  8118. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8119. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8120. >
  8121. <!-- 批 -->
  8122. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8123. </div>
  8124. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8125. <div class="pzTop2">
  8126. <!-- <div>评论</div>
  8127. <div @click="pzDialog = false">
  8128. <img src="../assets/close1.png" alt="" />
  8129. </div> -->
  8130. <div class="checkbox">
  8131. <!-- <div class="check" style="font-size: 25px; position: unset">
  8132. 评论
  8133. </div> -->
  8134. <div class="cb-tabList">
  8135. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8136. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8137. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8138. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8139. </div>
  8140. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8141. <el-option label="时间降序" :value="1"></el-option>
  8142. <el-option label="时间升序" :value="2"></el-option>
  8143. <el-option label="我的评课" :value="3"></el-option>
  8144. </el-select>
  8145. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8146. </div>
  8147. </div>
  8148. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8149. <div class="pzListBox" v-if="pzList && pzList.length">
  8150. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8151. <div class="pzNavTop">
  8152. <div>评</div>
  8153. <div>
  8154. {{
  8155. pz.username && pz.username.length > 5
  8156. ? pz.username.substring(0, 5) + "..."
  8157. : pz.username
  8158. }}的评论
  8159. </div>
  8160. <div
  8161. class="pzDelete"
  8162. v-if="pz.userid == userid"
  8163. @click="deletePz(pz.id)"
  8164. >
  8165. 删除
  8166. </div>
  8167. </div>
  8168. <div
  8169. @click="checkImg(getImgList(pz.content))"
  8170. class="pzContent cont"
  8171. v-html="pz.content"
  8172. v-if="pz.type == '1'"
  8173. ></div>
  8174. <div class="pzContent" v-if="pz.type == '2'">
  8175. <audio :src="pz.content" controls="controls" ref="audio">
  8176. Your browser does not support the audio element.
  8177. </audio>
  8178. </div>
  8179. <div class="pzContent" v-if="pz.type == '3'">
  8180. <img
  8181. :src="pz.content"
  8182. style="width: 90%; margin: 0 auto; display: block"
  8183. @click="previewImg(pz.content)"
  8184. />
  8185. </div>
  8186. <div class="timeAndReply">
  8187. <div class="time">
  8188. {{ pz.time }}
  8189. </div>
  8190. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8191. </div>
  8192. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8193. <div
  8194. v-for="(h, hIndex) in pz.hfList"
  8195. :key="hIndex"
  8196. class="hfItem"
  8197. >
  8198. <div class="whoReplyWho">
  8199. <div class="hfName">{{ h.username }}</div>
  8200. <div class="hfImg">
  8201. <img src="../assets/icon/newIcons/right.png" alt="" />
  8202. </div>
  8203. <div class="hfName">{{ pz.username }}</div>
  8204. </div>
  8205. <div class="hfContent" v-html="h.content"></div>
  8206. <div class="hfBottom">
  8207. <div class="hfTime">{{ h.time }}</div>
  8208. <div
  8209. class="deleteHfItem"
  8210. @click="deleteReply(h.id)"
  8211. v-if="userid == h.userid"
  8212. >
  8213. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8214. </div>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8219. <div class="replyInput">
  8220. <el-input v-model="reply[pzIndex]"></el-input>
  8221. </div>
  8222. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8223. </div> -->
  8224. </div>
  8225. </div>
  8226. <div class="noPz" v-else>
  8227. <img src="../assets/icon/noPz.png" alt="" />
  8228. </div>
  8229. <div class="addPzButton">
  8230. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8231. 添加评论
  8232. </div>
  8233. <!-- <div class="img1">
  8234. <div @click="(addPzDialog = true), (pzType = 2)">
  8235. <img src="../assets/audio.png" /><span>音频</span>
  8236. </div>
  8237. </div> -->
  8238. </div>
  8239. </div>
  8240. <div class="scoreList" v-if="commentTagShow==1">
  8241. <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"/>
  8242. </div>
  8243. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8244. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8245. </div>
  8246. </div>
  8247. <div
  8248. v-if="toolDialogVisible == true"
  8249. class="toolMask"
  8250. @click="toolDialogVisible = false"
  8251. ></div>
  8252. <div v-if="toolDialogVisible == true" class="addToolCss">
  8253. <div class="toolTop">
  8254. <div style="font-weight: bold">新增工具</div>
  8255. <div @click="toolDialogVisible = false">
  8256. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8257. </div>
  8258. </div>
  8259. <div class="tool_box">
  8260. <div class="tool_type_box">
  8261. <div class="chooseWho">
  8262. <div
  8263. :class="toolType == 0 ? 'isChooseActive' : ''"
  8264. @click="(toolType = 0), $forceUpdate()"
  8265. >
  8266. 互动类
  8267. </div>
  8268. <div
  8269. :class="toolType == 1 ? 'isChooseActive' : ''"
  8270. @click="(toolType = 1), $forceUpdate()"
  8271. >
  8272. 思维类
  8273. </div>
  8274. <div
  8275. :class="toolType == 2 ? 'isChooseActive' : ''"
  8276. @click="(toolType = 2), $forceUpdate()"
  8277. >
  8278. 测评类
  8279. </div>
  8280. <div
  8281. :class="toolType == 3 ? 'isChooseActive' : ''"
  8282. @click="(toolType = 3), $forceUpdate()"
  8283. >
  8284. 编程类
  8285. </div>
  8286. <div
  8287. :class="toolType == 5 ? 'isChooseActive' : ''"
  8288. @click="(toolType = 5), $forceUpdate()"
  8289. >
  8290. 学科类
  8291. </div>
  8292. </div>
  8293. </div>
  8294. <div>
  8295. <div class="toolSort" v-if="toolType == 0">
  8296. <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8299. @click="addTools2(10)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../assets/icon/thirdToolList/time.png" alt />
  8303. <div style="margin: 5px 0">倒计时</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(10) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div>
  8313. <div
  8314. class="tool"
  8315. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8316. @click="addTools2(65)"
  8317. >
  8318. <div class="whiteBIcon">
  8319. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8320. <div style="margin: 5px 0">挑人</div>
  8321. </div>
  8322. <div class="check">
  8323. <div
  8324. v-if="checktoolArray.indexOf(65) == -1"
  8325. class="noChoose"
  8326. ></div>
  8327. <div v-else class="isChoose"></div>
  8328. </div>
  8329. </div>
  8330. </div>
  8331. <div class="toolSort" v-if="toolType == 1">
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8335. @click="addTools2(7)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8339. <div style="margin: 5px 0">思维网格</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(7) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. <div
  8350. class="tool"
  8351. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8352. @click="addTools2(1)"
  8353. >
  8354. <div class="whiteBIcon">
  8355. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8356. <div style="margin: 5px 0">电子白板</div>
  8357. </div>
  8358. <div class="check">
  8359. <div
  8360. v-if="checktoolArray.indexOf(1) == -1"
  8361. class="noChoose"
  8362. ></div>
  8363. <div v-else class="isChoose"></div>
  8364. </div>
  8365. </div>
  8366. <div
  8367. class="tool"
  8368. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8369. @click="addTools2(52)"
  8370. >
  8371. <div class="whiteBIcon">
  8372. <img src="../assets/icon/fourthToolList/text.png" alt />
  8373. <div style="margin: 5px 0">文档</div>
  8374. </div>
  8375. <div class="check">
  8376. <div
  8377. v-if="checktoolArray.indexOf(52) == -1"
  8378. class="noChoose"
  8379. ></div>
  8380. <div v-else class="isChoose"></div>
  8381. </div>
  8382. </div>
  8383. <div
  8384. class="tool"
  8385. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8386. @click="addTools2(3)"
  8387. >
  8388. <div class="whiteBIcon">
  8389. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8390. <div style="margin: 5px 0">思维导图</div>
  8391. </div>
  8392. <div class="check">
  8393. <div
  8394. v-if="checktoolArray.indexOf(3) == -1"
  8395. class="noChoose"
  8396. ></div>
  8397. <div v-else class="isChoose"></div>
  8398. </div>
  8399. </div>
  8400. <div
  8401. class="tool"
  8402. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8403. @click="addTools2(48)"
  8404. >
  8405. <div class="whiteBIcon">
  8406. <img src="../assets/icon/fourthToolList/table.png" alt />
  8407. <div style="margin: 5px 0">表格</div>
  8408. </div>
  8409. <div class="check">
  8410. <div
  8411. v-if="checktoolArray.indexOf(48) == -1"
  8412. class="noChoose"
  8413. ></div>
  8414. <div v-else class="isChoose"></div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. <div class="toolSort" v-if="toolType == 6">
  8419. <div v-show="tooC == 49">
  8420. <img
  8421. @click="addTools(tooC, toolIndex, taskCount)"
  8422. src="../assets/icon/fourthToolList/group.png"
  8423. alt
  8424. />
  8425. <div style="margin: 5px 0">学生分组</div>
  8426. </div>
  8427. </div>
  8428. <div class="toolSort" v-if="toolType == 2">
  8429. <div
  8430. class="tool"
  8431. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8432. @click="addTools2(16)"
  8433. >
  8434. <div class="whiteBIcon">
  8435. <img src="../assets/icon/thirdToolList/work.png" alt />
  8436. <div style="margin: 5px 0">作业提交</div>
  8437. </div>
  8438. <div class="check">
  8439. <div
  8440. v-if="checktoolArray.indexOf(16) == -1"
  8441. class="noChoose"
  8442. ></div>
  8443. <div v-else class="isChoose"></div>
  8444. </div>
  8445. </div>
  8446. <div
  8447. class="tool"
  8448. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8449. @click="addTools2(50)"
  8450. >
  8451. <div class="whiteBIcon">
  8452. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8453. <div style="margin: 5px 0">批量上传</div>
  8454. </div>
  8455. <div class="check">
  8456. <div
  8457. v-if="checktoolArray.indexOf(50) == -1"
  8458. class="noChoose"
  8459. ></div>
  8460. <div v-else class="isChoose"></div>
  8461. </div>
  8462. </div>
  8463. </div>
  8464. <div class="toolSort" v-if="toolType == 3">
  8465. <div
  8466. class="tool"
  8467. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8468. @click="addTools2(18)"
  8469. >
  8470. <div class="whiteBIcon">
  8471. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8472. <div style="margin: 5px 0">训练平台</div>
  8473. </div>
  8474. <div class="check">
  8475. <div
  8476. v-if="checktoolArray.indexOf(18) == -1"
  8477. class="noChoose"
  8478. ></div>
  8479. <div v-else class="isChoose"></div>
  8480. </div>
  8481. </div>
  8482. <div
  8483. class="tool"
  8484. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8485. @click="addTools2(21)"
  8486. >
  8487. <div class="whiteBIcon">
  8488. <img src="../assets/icon/fourthToolList/program.png" alt />
  8489. <div style="margin: 5px 0">AIoT Blockly</div>
  8490. </div>
  8491. <div class="check">
  8492. <div
  8493. v-if="checktoolArray.indexOf(21) == -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(23) != -1 }"
  8502. @click="addTools2(23)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img
  8506. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8507. alt
  8508. />
  8509. <div style="margin: 5px 0">AI Python</div>
  8510. </div>
  8511. <div class="check">
  8512. <div
  8513. v-if="checktoolArray.indexOf(23) == -1"
  8514. class="noChoose"
  8515. ></div>
  8516. <div v-else class="isChoose"></div>
  8517. </div>
  8518. </div>
  8519. <div
  8520. class="tool"
  8521. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8522. @click="addTools2(24)"
  8523. >
  8524. <div class="whiteBIcon">
  8525. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8526. <div style="margin: 5px 0">AI Blockly</div>
  8527. </div>
  8528. <div class="check">
  8529. <div
  8530. v-if="checktoolArray.indexOf(24) == -1"
  8531. class="noChoose"
  8532. ></div>
  8533. <div v-else class="isChoose"></div>
  8534. </div>
  8535. </div>
  8536. <div
  8537. class="tool"
  8538. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8539. @click="addTools2(32)"
  8540. >
  8541. <div class="whiteBIcon">
  8542. <img src="../assets/icon/thirdToolList/code.png" alt />
  8543. <div style="margin: 5px 0">源码编辑</div>
  8544. </div>
  8545. <div class="check">
  8546. <div
  8547. v-if="checktoolArray.indexOf(32) == -1"
  8548. class="noChoose"
  8549. ></div>
  8550. <div v-else class="isChoose"></div>
  8551. </div>
  8552. </div>
  8553. <div
  8554. class="tool"
  8555. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8556. @click="addTools2(57)"
  8557. >
  8558. <div class="whiteBIcon">
  8559. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8560. <div style="margin: 5px 0">CocoPi</div>
  8561. </div>
  8562. <div class="check">
  8563. <div
  8564. v-if="checktoolArray.indexOf(57) == -1"
  8565. class="noChoose"
  8566. ></div>
  8567. <div v-else class="isChoose"></div>
  8568. </div>
  8569. </div>
  8570. <div
  8571. class="tool"
  8572. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8573. @click="addTools2(63)"
  8574. >
  8575. <div class="whiteBIcon">
  8576. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8577. <div style="margin: 5px 0">海龟编程</div>
  8578. </div>
  8579. <div class="check">
  8580. <div
  8581. v-if="checktoolArray.indexOf(63) == -1"
  8582. class="noChoose"
  8583. ></div>
  8584. <div v-else class="isChoose"></div>
  8585. </div>
  8586. </div>
  8587. <div
  8588. class="tool"
  8589. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8590. @click="addTools2(71)"
  8591. >
  8592. <div class="whiteBIcon">
  8593. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8594. <div style="margin: 5px 0">AI智能体</div>
  8595. </div>
  8596. <div class="check">
  8597. <div
  8598. v-if="checktoolArray.indexOf(71) == -1"
  8599. class="noChoose"
  8600. ></div>
  8601. <div v-else class="isChoose"></div>
  8602. </div>
  8603. </div>
  8604. </div>
  8605. <div class="toolSort" v-if="toolType == 7">
  8606. <div
  8607. class="tool"
  8608. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8609. @click="addTools2(40)"
  8610. >
  8611. <div class="whiteBIcon">
  8612. <img src="../assets/icon/secondToolList/eval.png" alt />
  8613. <div style="margin: 5px 0">个人评价</div>
  8614. </div>
  8615. <div class="check">
  8616. <div
  8617. v-if="checktoolArray.indexOf(40) == -1"
  8618. class="noChoose"
  8619. ></div>
  8620. <div v-else class="isChoose"></div>
  8621. </div>
  8622. </div>
  8623. </div>
  8624. <div class="toolSort" v-if="toolType == 5">
  8625. <div
  8626. class="tool"
  8627. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8628. @click="addTools2(28)"
  8629. >
  8630. <div class="whiteBIcon">
  8631. <img src="../assets/icon/secondToolList/translation.png" alt />
  8632. <div style="margin: 5px 0">翻译</div>
  8633. </div>
  8634. <div class="check">
  8635. <div
  8636. v-if="checktoolArray.indexOf(28) == -1"
  8637. class="noChoose"
  8638. ></div>
  8639. <div v-else class="isChoose"></div>
  8640. </div>
  8641. </div>
  8642. <div
  8643. class="tool"
  8644. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8645. @click="addTools2(31)"
  8646. >
  8647. <div class="whiteBIcon">
  8648. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8649. <div style="margin: 5px 0">数字画板</div>
  8650. </div>
  8651. <div class="check">
  8652. <div
  8653. v-if="checktoolArray.indexOf(31) == -1"
  8654. class="noChoose"
  8655. ></div>
  8656. <div v-else class="isChoose"></div>
  8657. </div>
  8658. </div>
  8659. <div
  8660. class="tool"
  8661. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8662. @click="addTools2(39)"
  8663. >
  8664. <div class="whiteBIcon">
  8665. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8666. <div style="margin: 5px 0">GeoGebra</div>
  8667. </div>
  8668. <div class="check">
  8669. <div
  8670. v-if="checktoolArray.indexOf(39) == -1"
  8671. class="noChoose"
  8672. ></div>
  8673. <div v-else class="isChoose"></div>
  8674. </div>
  8675. </div>
  8676. <div
  8677. class="tool"
  8678. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8679. @click="addTools2(66)"
  8680. >
  8681. <div class="whiteBIcon">
  8682. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8683. <div style="margin: 5px 0">公式编辑</div>
  8684. </div>
  8685. <div class="check">
  8686. <div
  8687. v-if="checktoolArray.indexOf(66) == -1"
  8688. class="noChoose"
  8689. ></div>
  8690. <div v-else class="isChoose"></div>
  8691. </div>
  8692. </div>
  8693. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8694. <div class="whiteBIcon" @click="addTools2(67)">
  8695. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8696. <div style="margin: 5px 0">分子结构</div>
  8697. </div>
  8698. <div class="check" @click="addTools2(67)">
  8699. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8700. <div v-else class="isChoose"></div>
  8701. </div>
  8702. </div> -->
  8703. <div
  8704. class="tool"
  8705. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8706. @click="addTools2(68)"
  8707. >
  8708. <div class="whiteBIcon">
  8709. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8710. <div style="margin: 5px 0">时间轴</div>
  8711. </div>
  8712. <div class="check">
  8713. <div
  8714. v-if="checktoolArray.indexOf(68) == -1"
  8715. class="noChoose"
  8716. ></div>
  8717. <div v-else class="isChoose"></div>
  8718. </div>
  8719. </div>
  8720. <!-- <div
  8721. class="tool"
  8722. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8723. @click="addTools2(69)"
  8724. >
  8725. <div class="whiteBIcon">
  8726. <img src="../assets/icon/secondToolList/english.png" alt />
  8727. <div style="margin: 5px 0">英语写作</div>
  8728. </div>
  8729. <div class="check">
  8730. <div
  8731. v-if="checktoolArray.indexOf(69) == -1"
  8732. class="noChoose"
  8733. ></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div> -->
  8737. </div>
  8738. <div class="toolSort" v-if="toolType == 4">
  8739. <div
  8740. class="tool"
  8741. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8742. @click="addTools2(26)"
  8743. >
  8744. <div class="whiteBIcon">
  8745. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8746. <div style="margin: 5px 0">课程设计</div>
  8747. </div>
  8748. <div class="check">
  8749. <div
  8750. v-if="checktoolArray.indexOf(26) == -1"
  8751. class="noChoose"
  8752. ></div>
  8753. <div v-else class="isChoose"></div>
  8754. </div>
  8755. </div>
  8756. <div
  8757. class="tool"
  8758. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8759. @click="addTools2(25)"
  8760. >
  8761. <div class="whiteBIcon">
  8762. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8763. <div style="margin: 5px 0">目标管理</div>
  8764. </div>
  8765. <div class="check">
  8766. <div
  8767. v-if="checktoolArray.indexOf(25) == -1"
  8768. class="noChoose"
  8769. ></div>
  8770. <div v-else class="isChoose"></div>
  8771. </div>
  8772. </div>
  8773. </div>
  8774. </div>
  8775. </div>
  8776. <span
  8777. slot="footer"
  8778. class="dialog-footer"
  8779. style="display: block; text-align: center; padding: 0 0 10px 0"
  8780. >
  8781. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8782. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8783. </span>
  8784. </div>
  8785. <div
  8786. v-if="replyDialogVisible == true"
  8787. class="addDialogCss"
  8788. v-el-drag-dialog
  8789. >
  8790. <div class="pzTop">
  8791. <div class="teacherPz">
  8792. <div class="teacherPzImg">
  8793. <img src="../assets/icon/teacherPz.png" alt="" />
  8794. </div>
  8795. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8796. </div>
  8797. <div @click="replyDialogVisible = false">
  8798. <img src="../assets/close1.png" class="pzClose" alt="" />
  8799. </div>
  8800. </div>
  8801. <div class="addPzBox">
  8802. <!-- <div class="addPzCheck">
  8803. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8804. >文本</span
  8805. >
  8806. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8807. >音频</span
  8808. >
  8809. </div> -->
  8810. <div style="height: calc(100% - 50px)">
  8811. <editor-bar
  8812. class="binfo_input pzConText"
  8813. style="width: 100% !important; margin: 0 auto"
  8814. placeholder="请输入回复描述"
  8815. v-model="reply"
  8816. @change="change"
  8817. ></editor-bar>
  8818. </div>
  8819. <div class="addTextCss" @click="addHf">确定</div>
  8820. </div>
  8821. </div>
  8822. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8823. <div class="pzTop">
  8824. <div class="teacherPz">
  8825. <div class="teacherPzImg">
  8826. <img src="../assets/icon/teacherPz.png" alt="" />
  8827. </div>
  8828. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8829. </div>
  8830. <div @click="addPzDialog = false">
  8831. <img src="../assets/close1.png" class="pzClose" alt="" />
  8832. </div>
  8833. </div>
  8834. <div class="addPzBox">
  8835. <div class="addPzCheck">
  8836. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8837. >文本</span
  8838. >
  8839. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8840. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8841. >音频</span
  8842. >
  8843. </div>
  8844. <div style="height: calc(100% - 95px)">
  8845. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8846. v-if="pzType == 1"></textarea> -->
  8847. <editor-bar
  8848. class="binfo_input pzConText"
  8849. style="width: 100% !important"
  8850. placeholder="请输入任务描述"
  8851. v-model="pzConText"
  8852. @change="change"
  8853. v-if="pzType == 1"
  8854. ></editor-bar>
  8855. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8856. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8857. <div @click="addImg($event)">
  8858. <el-button type="primary">上传图片</el-button>
  8859. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8860. @change="beforeUpload1($event, 4)" />
  8861. </div>
  8862. </div> -->
  8863. </div>
  8864. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8865. 确定
  8866. </div>
  8867. </div>
  8868. </div>
  8869. <div v-if="proVisible" class="mask">
  8870. <div class="progressBox">
  8871. <!-- <div id="closePro" class="closeCss">
  8872. <img src="../assets/icon/close.png" alt />
  8873. </div> -->
  8874. <div class="lbox">
  8875. <img src="../assets/loading.gif" />上传中,请稍后
  8876. </div>
  8877. <div style="margin-bottom: 10px">
  8878. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8879. </div>
  8880. <el-progress
  8881. :text-inside="true"
  8882. :stroke-width="20"
  8883. :percentage="progress"
  8884. style="width: 80%"
  8885. ></el-progress>
  8886. </div>
  8887. </div>
  8888. <div v-if="proVisible2" class="mask">
  8889. <div class="progressBox">
  8890. <div class="lbox">
  8891. <img src="../assets/loading.gif" />上传中,请稍后
  8892. </div>
  8893. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8894. </div>
  8895. </div>
  8896. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8897. <img width="100%" :src="dialogImageUrl" alt />
  8898. </el-dialog>
  8899. <el-dialog
  8900. :title="noteName != '' ? noteName : '查看问卷'"
  8901. :visible.sync="dialogVisible5"
  8902. :append-to-body="true"
  8903. width="1000px"
  8904. :before-close="handleClose"
  8905. class="dialog_diy dialog_diy3"
  8906. >
  8907. <div>
  8908. <div
  8909. class="a_add_title"
  8910. style="
  8911. display: flex;
  8912. flex-direction: row;
  8913. align-items: center;
  8914. justify-content: center;
  8915. "
  8916. >
  8917. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8918. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8919. </div>
  8920. <div class="a_addBox">
  8921. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8922. 题目内容
  8923. </div>
  8924. <div
  8925. class="a_add_box"
  8926. v-for="(item1, index1) in askJson.askCount"
  8927. :key="index1"
  8928. >
  8929. <div class="a_add_head">
  8930. <div style="display: flex">
  8931. <span class="askIndex"> {{ index1 + 1 }}</span>
  8932. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8933. </div>
  8934. <img
  8935. v-if="askJson.askJson[index1].img"
  8936. :src="askJson.askJson[index1].img"
  8937. style="height: 300px; margin-top: 10px; max-width: 100%"
  8938. />
  8939. </div>
  8940. <div class="a_add_body">
  8941. <div class="a_add_input">
  8942. <el-radio-group
  8943. v-model="radio[index1]"
  8944. v-if="
  8945. askJson.askJson[index1].type == '1' ||
  8946. !askJson.askJson[index1].type
  8947. "
  8948. >
  8949. <el-radio
  8950. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8951. .checkList"
  8952. :key="checkIndex"
  8953. :label="checkIndex"
  8954. :disabled="isAnswer"
  8955. class="redioStyle"
  8956. ><span v-html="item2"></span
  8957. ></el-radio>
  8958. </el-radio-group>
  8959. <el-checkbox-group
  8960. v-model="radio[index1]"
  8961. v-if="askJson.askJson[index1].type == '2'"
  8962. >
  8963. <el-checkbox
  8964. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8965. .checkList"
  8966. :key="checkIndex1"
  8967. :label="checkIndex1"
  8968. :disabled="isAnswer"
  8969. class="redioStyle"
  8970. ><span v-html="item2"></span>
  8971. </el-checkbox>
  8972. </el-checkbox-group>
  8973. </div>
  8974. </div>
  8975. </div>
  8976. </div>
  8977. </div>
  8978. <span slot="footer" class="dialog-footer">
  8979. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8980. >取 消</el-button
  8981. >
  8982. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8983. >确 定</el-button
  8984. >
  8985. </span>
  8986. </el-dialog>
  8987. <el-dialog
  8988. :title="noteName != '' ? noteName : '查看问卷'"
  8989. :visible.sync="dialogVisible5Teacher"
  8990. :append-to-body="true"
  8991. width="1000px"
  8992. :before-close="handleClose"
  8993. class="dialog_diy dialog_diy3"
  8994. >
  8995. <div>
  8996. <div class="w_name">
  8997. 学生姓名:<span>{{ sStudent.student }}</span>
  8998. </div>
  8999. <div
  9000. class="a_add_title"
  9001. style="
  9002. display: flex;
  9003. flex-direction: row;
  9004. align-items: center;
  9005. justify-content: center;
  9006. "
  9007. >
  9008. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9009. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9010. </div>
  9011. <div class="a_addBox">
  9012. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9013. 题目内容
  9014. </div>
  9015. <div
  9016. class="a_add_box"
  9017. v-for="(item1, index1) in askJson.askCount"
  9018. :key="index1"
  9019. >
  9020. <div class="a_add_head">
  9021. <div style="display: flex">
  9022. <span class="askIndex">{{ index1 + 1 }}</span>
  9023. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9024. </div>
  9025. <img
  9026. v-if="askJson.askJson[index1].img"
  9027. :src="askJson.askJson[index1].img"
  9028. style="height: 300px; margin-top: 10px; max-width: 100%"
  9029. />
  9030. </div>
  9031. <div class="a_add_body">
  9032. <div class="a_add_input">
  9033. <el-radio-group
  9034. v-model="radio[index1]"
  9035. v-if="
  9036. askJson.askJson[index1].type == '1' ||
  9037. !askJson.askJson[index1].type
  9038. "
  9039. >
  9040. <el-radio
  9041. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9042. .checkList"
  9043. :key="checkIndex"
  9044. :label="checkIndex"
  9045. :disabled="isAnswer"
  9046. class="redioStyle"
  9047. ><span v-html="item2"></span
  9048. ></el-radio>
  9049. </el-radio-group>
  9050. <el-checkbox-group
  9051. v-model="radio[index1]"
  9052. v-if="askJson.askJson[index1].type == '2'"
  9053. >
  9054. <el-checkbox
  9055. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9056. .checkList"
  9057. :key="checkIndex1"
  9058. :label="checkIndex1"
  9059. :disabled="isAnswer"
  9060. class="redioStyle"
  9061. ><span v-html="item2"></span>
  9062. </el-checkbox>
  9063. </el-checkbox-group>
  9064. </div>
  9065. </div>
  9066. </div>
  9067. </div>
  9068. </div>
  9069. <span slot="footer" class="dialog-footer">
  9070. <el-button
  9071. @click="dialogVisible5Teacher = false"
  9072. v-show="noteName == ''"
  9073. >取 消</el-button
  9074. >
  9075. <el-button
  9076. type="primary"
  9077. @click="addStudentAskTeacher"
  9078. v-show="noteName == ''"
  9079. >确 定</el-button
  9080. >
  9081. </span>
  9082. </el-dialog>
  9083. <el-dialog
  9084. :title="noteName != '' ? noteName : '查看选择题'"
  9085. :visible.sync="dialogVisibleChoice"
  9086. :append-to-body="true"
  9087. width="1000px"
  9088. :before-close="handleClose"
  9089. class="dialog_diy dialog_diy3"
  9090. >
  9091. <div>
  9092. <!-- <div class="a_add_title" style="
  9093. display: flex;
  9094. flex-direction: row;
  9095. align-items: center;
  9096. justify-content: center;
  9097. ">
  9098. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9099. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9100. </div> -->
  9101. <div class="a_addBox">
  9102. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9103. 题目内容
  9104. </div>
  9105. <div
  9106. class="a_add_box"
  9107. v-for="(item1, index1) in testJson.testCount"
  9108. :key="index1"
  9109. >
  9110. <div class="a_add_head">
  9111. <div style="display: flex">
  9112. <span class="askIndex">{{ index1 + 1 }}</span>
  9113. <div
  9114. v-if="testJson.testJson[index1].type == '1'"
  9115. style="margin-right: 5px; min-width: 70px"
  9116. >
  9117. (单选题)
  9118. </div>
  9119. <div
  9120. v-if="testJson.testJson[index1].type == '2'"
  9121. style="margin-right: 5px; min-width: 70px"
  9122. >
  9123. (多选题)
  9124. </div>
  9125. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9126. </div>
  9127. <img
  9128. v-if="testJson.testJson[index1].img"
  9129. :src="testJson.testJson[index1].img"
  9130. style="height: 300px; margin-top: 10px; max-width: 100%"
  9131. />
  9132. </div>
  9133. <div
  9134. class="timuImgBox"
  9135. v-if="
  9136. testJson.testJson[index1].timuList &&
  9137. testJson.testJson[index1].timuList.length
  9138. "
  9139. >
  9140. <div
  9141. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9142. :key="tIndex"
  9143. class="timuImg"
  9144. @click.stop="previewImg(timg.src)"
  9145. >
  9146. <img :src="timg.src" alt="" />
  9147. </div>
  9148. </div>
  9149. <div class="a_add_body">
  9150. <div class="a_add_input">
  9151. <el-radio-group
  9152. v-model="radio[index1]"
  9153. v-if="testJson.testJson[index1].type == '1'"
  9154. >
  9155. <div class="radioBox">
  9156. <el-radio
  9157. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9158. .checkList"
  9159. :key="checkIndex"
  9160. :label="checkIndex"
  9161. :disabled="isAnswer"
  9162. class="redioStyle"
  9163. >
  9164. <div
  9165. style="margin-right: 10px"
  9166. v-if="item2 && item2.imgType && item2.imgType == 1"
  9167. >
  9168. <div class="inImg" @click.stop="previewImg(item2.src)">
  9169. <img :src="item2.src" alt="" />
  9170. </div>
  9171. </div>
  9172. <span v-else v-html="item2"></span>
  9173. </el-radio>
  9174. </div>
  9175. </el-radio-group>
  9176. <el-checkbox-group
  9177. v-model="radio[index1]"
  9178. v-if="testJson.testJson[index1].type == '2'"
  9179. >
  9180. <div class="radioBox">
  9181. <el-checkbox
  9182. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9183. .checkList"
  9184. :key="checkIndex"
  9185. :label="checkIndex"
  9186. :disabled="isAnswer"
  9187. class="redioStyle"
  9188. >
  9189. <div
  9190. style="margin-right: 10px"
  9191. v-if="item2 && item2.imgType && item2.imgType == 1"
  9192. >
  9193. <div class="inImg" @click.stop="previewImg(item2.src)">
  9194. <img :src="item2.src" alt="" />
  9195. </div>
  9196. </div>
  9197. <span v-else v-html="item2"></span>
  9198. </el-checkbox>
  9199. </div>
  9200. </el-checkbox-group>
  9201. </div>
  9202. </div>
  9203. </div>
  9204. </div>
  9205. </div>
  9206. <span slot="footer" class="dialog-footer">
  9207. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9208. >取 消</el-button
  9209. >
  9210. <el-button
  9211. type="primary"
  9212. @click="addStudentTest"
  9213. v-show="noteName == ''"
  9214. >确 定</el-button
  9215. >
  9216. </span>
  9217. </el-dialog>
  9218. <el-dialog
  9219. :title="noteName != '' ? noteName : '查看选择题'"
  9220. :visible.sync="dialogVisibleChoiceTeacher"
  9221. :append-to-body="true"
  9222. width="1000px"
  9223. :before-close="handleClose"
  9224. class="dialog_diy dialog_diy3"
  9225. >
  9226. <div>
  9227. <div class="w_name">
  9228. 学生姓名:<span>{{ sStudent.student }}</span>
  9229. </div>
  9230. <div class="a_addBox">
  9231. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9232. 题目内容
  9233. </div>
  9234. <div
  9235. class="a_add_box"
  9236. v-for="(item1, index1) in testJson.testCount"
  9237. :key="index1"
  9238. >
  9239. <div class="a_add_head">
  9240. <div style="display: flex">
  9241. <span class="askIndex">{{ index1 + 1 }}</span>
  9242. <div
  9243. v-if="testJson.testJson[index1].type == '1'"
  9244. style="margin-right: 5px; min-width: 70px"
  9245. >
  9246. (单选题)
  9247. </div>
  9248. <div
  9249. v-if="testJson.testJson[index1].type == '2'"
  9250. style="margin-right: 5px; min-width: 70px"
  9251. >
  9252. (多选题)
  9253. </div>
  9254. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9255. </div>
  9256. <img
  9257. v-if="testJson.testJson[index1].img"
  9258. :src="testJson.testJson[index1].img"
  9259. style="height: 300px; margin-top: 10px; max-width: 100%"
  9260. />
  9261. </div>
  9262. <div
  9263. class="timuImgBox"
  9264. v-if="
  9265. testJson.testJson[index1].timuList &&
  9266. testJson.testJson[index1].timuList.length
  9267. "
  9268. >
  9269. <div
  9270. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9271. :key="tIndex"
  9272. class="timuImg"
  9273. @click.stop="previewImg(timg.src)"
  9274. >
  9275. <img :src="timg.src" alt="" />
  9276. </div>
  9277. </div>
  9278. <div class="a_add_body">
  9279. <div class="a_add_input">
  9280. <el-radio-group
  9281. v-model="radio[index1]"
  9282. v-if="testJson.testJson[index1].type == '1'"
  9283. >
  9284. <div class="radioBox">
  9285. <el-radio
  9286. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9287. .checkList"
  9288. :key="checkIndex"
  9289. :label="checkIndex"
  9290. :disabled="isAnswer"
  9291. class="redioStyle"
  9292. >
  9293. <div
  9294. style="margin-right: 10px"
  9295. v-if="item2 && item2.imgType && item2.imgType == 1"
  9296. >
  9297. <div class="inImg" @click.stop="previewImg(item2.src)">
  9298. <img :src="item2.src" alt="" />
  9299. </div>
  9300. </div>
  9301. <span v-else v-html="item2"></span>
  9302. </el-radio>
  9303. </div>
  9304. </el-radio-group>
  9305. <el-checkbox-group
  9306. v-model="radio[index1]"
  9307. v-if="testJson.testJson[index1].type == '2'"
  9308. >
  9309. <div class="radioBox">
  9310. <el-checkbox
  9311. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9312. .checkList"
  9313. :key="checkIndex"
  9314. :label="checkIndex"
  9315. :disabled="isAnswer"
  9316. class="redioStyle"
  9317. >
  9318. <div
  9319. style="margin-right: 10px"
  9320. v-if="item2 && item2.imgType && item2.imgType == 1"
  9321. >
  9322. <div class="inImg" @click.stop="previewImg(item2.src)">
  9323. <img :src="item2.src" alt="" />
  9324. </div>
  9325. </div>
  9326. <span v-else v-html="item2"></span>
  9327. </el-checkbox>
  9328. </div>
  9329. </el-checkbox-group>
  9330. </div>
  9331. </div>
  9332. </div>
  9333. </div>
  9334. </div>
  9335. <span slot="footer" class="dialog-footer">
  9336. <el-button
  9337. @click="dialogVisibleChoiceTeacher = false"
  9338. v-show="noteName == ''"
  9339. >取 消</el-button
  9340. >
  9341. <el-button
  9342. type="primary"
  9343. @click="addStudentTestTeacher"
  9344. v-show="noteName == ''"
  9345. >确 定</el-button
  9346. >
  9347. </span>
  9348. </el-dialog>
  9349. <el-dialog
  9350. title="查看富文本"
  9351. :visible.sync="dialogVisible1"
  9352. :append-to-body="true"
  9353. width="500px"
  9354. :before-close="handleClose"
  9355. class="dialog_diy textCss"
  9356. >
  9357. <el-form style="font-size: 20px">
  9358. <el-form-item label="文本标题" class="textTitle">
  9359. <div style="font-size: 20px">{{ text.name }}</div>
  9360. </el-form-item>
  9361. <div>富文本内容</div>
  9362. <div
  9363. v-html="text.url"
  9364. style="font-size: 18px; padding: 40px 0 0 0"
  9365. ></div>
  9366. </el-form>
  9367. <span slot="footer" class="dialog-footer">
  9368. <el-button type="primary" @click="dialogVisible1 = false"
  9369. >确定</el-button
  9370. >
  9371. </span>
  9372. </el-dialog>
  9373. <el-dialog
  9374. title="文件预览"
  9375. :visible.sync="dialogVisible3"
  9376. width="50%"
  9377. :before-close="handleClose"
  9378. class="dialog_diy"
  9379. :class="{ fullStyle: full }"
  9380. >
  9381. <div slot="title" class="header-title">
  9382. <div style="color: #fff">文件预览</div>
  9383. <div style="position: absolute; top: 19px; right: 50px">
  9384. <img
  9385. src="../assets/full.png"
  9386. style="height: 16px; cursor: pointer"
  9387. alt=""
  9388. @click="fullTools"
  9389. />
  9390. </div>
  9391. </div>
  9392. <pdf
  9393. v-if="showPDF"
  9394. :pdfUrl="pptImgUrl"
  9395. style="width: 100%; height: 520px; overflow: auto"
  9396. :class="{ fullStyle: full }"
  9397. ></pdf>
  9398. <iframe
  9399. v-else
  9400. :src="pptImgUrl"
  9401. frameborder="0"
  9402. width="100%"
  9403. height="600"
  9404. :class="{ fullStyle: full }"
  9405. ></iframe>
  9406. </el-dialog>
  9407. <el-dialog
  9408. title="文件预览"
  9409. :visible.sync="dialogVisible6"
  9410. width="50%"
  9411. :before-close="handleClose"
  9412. class="dialog_diy"
  9413. >
  9414. <iframe
  9415. :src="pptImgUrl1"
  9416. frameborder="0"
  9417. width="100%"
  9418. height="600"
  9419. ></iframe>
  9420. </el-dialog>
  9421. <el-dialog
  9422. title="提示"
  9423. :visible.sync="dialogVisible4"
  9424. :append-to-body="true"
  9425. width="800px"
  9426. :before-close="handleClose"
  9427. class="dialog_diy notice"
  9428. >
  9429. <div>此功能暂未开放!</div>
  9430. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9431. </el-dialog>
  9432. <el-dialog
  9433. title="问答"
  9434. :visible.sync="answerDialogVisible"
  9435. :append-to-body="true"
  9436. width="800px"
  9437. :before-close="handleClose"
  9438. class="dialog_diy"
  9439. >
  9440. <div>
  9441. <div
  9442. style="
  9443. display: flex;
  9444. flex-wrap: nowrap;
  9445. flex-direction: column;
  9446. position: relative;
  9447. "
  9448. >
  9449. <div class="queTop" style="padding: 20px 0 20px 0">
  9450. <div class="question">
  9451. <img src="../assets/icon/question.png" alt />
  9452. </div>
  9453. <div class="queTitle">
  9454. <div style="width: 90px; min-width: 90px">提问:</div>
  9455. <div>{{ answerQ }}</div>
  9456. </div>
  9457. </div>
  9458. <div class="ediBottom">
  9459. <textarea
  9460. rows="6"
  9461. class="binfo_input"
  9462. cols
  9463. style="width: 95%; height: 120px"
  9464. v-model="questionAnswer"
  9465. ></textarea>
  9466. </div>
  9467. </div>
  9468. </div>
  9469. <div slot="footer">
  9470. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9471. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9472. </div>
  9473. </el-dialog>
  9474. <el-dialog
  9475. title="问答"
  9476. :visible.sync="answerDialogVisibleTeacher"
  9477. :append-to-body="true"
  9478. width="800px"
  9479. :before-close="handleClose"
  9480. class="dialog_diy"
  9481. >
  9482. <div>
  9483. <div class="w_name">
  9484. 学生姓名:<span>{{ sStudent.student }}</span>
  9485. </div>
  9486. <div
  9487. style="
  9488. display: flex;
  9489. flex-wrap: nowrap;
  9490. flex-direction: column;
  9491. position: relative;
  9492. "
  9493. >
  9494. <div class="queTop" style="padding: 20px 0 20px 0">
  9495. <div class="question">
  9496. <img src="../assets/icon/question.png" alt />
  9497. </div>
  9498. <div class="queTitle">
  9499. <div style="width: 90px; min-width: 90px">提问:</div>
  9500. <div>{{ answerQ }}</div>
  9501. </div>
  9502. </div>
  9503. <div class="ediBottom">
  9504. <textarea
  9505. rows="6"
  9506. class="binfo_input"
  9507. cols
  9508. style="width: 95%; height: 120px"
  9509. v-model="questionAnswer"
  9510. ></textarea>
  9511. </div>
  9512. </div>
  9513. </div>
  9514. <div slot="footer">
  9515. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9516. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9517. </div>
  9518. </el-dialog>
  9519. <el-dialog
  9520. title="倒计时"
  9521. :visible.sync="timeDialogVisible"
  9522. :append-to-body="true"
  9523. width="800px"
  9524. :before-close="handleClose"
  9525. class="dialog_diy"
  9526. >
  9527. <div>
  9528. <div style="margin-bottom: 20px; color: #999">
  9529. 提示:点击“+”或“-”修改倒计时时长。
  9530. </div>
  9531. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9532. </div>
  9533. <div slot="footer">
  9534. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9535. </div>
  9536. </el-dialog>
  9537. <el-dialog
  9538. title="权限设置"
  9539. :visible.sync="juriVisible"
  9540. :append-to-body="true"
  9541. width="400px"
  9542. :before-close="handleClose"
  9543. class="dialog_diy"
  9544. >
  9545. <div>
  9546. <div class="open_box">
  9547. <div class="switch_box">
  9548. <span>允许学生查看所有作业</span>
  9549. <el-switch
  9550. v-model="sIsOpen"
  9551. active-text=""
  9552. class="switchCss"
  9553. @change="updateSLook"
  9554. ></el-switch>
  9555. </div>
  9556. <div
  9557. class="switch_box"
  9558. v-if="
  9559. courseDetail.userid == userid ||
  9560. (courseDetail.course_teacher &&
  9561. courseDetail.course_teacher.indexOf(userid) != -1)
  9562. "
  9563. >
  9564. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9565. <span>禁止学生查看所有阶段</span>
  9566. <el-switch
  9567. v-model="IsLookOpen"
  9568. active-text=""
  9569. class="switchCss"
  9570. @change="updateLookOpen"
  9571. ></el-switch>
  9572. </div>
  9573. <div class="switch_box" v-if="courseDetail.userid == userid">
  9574. <span>开启跟随模式</span>
  9575. <el-switch
  9576. v-model="IsFollow"
  9577. active-text=""
  9578. class="switchCss"
  9579. @change="updateFollow"
  9580. ></el-switch>
  9581. </div>
  9582. </div>
  9583. </div>
  9584. <div slot="footer">
  9585. <el-button
  9586. style="background: #409efe; color: #fff"
  9587. @click="juriVisible = false"
  9588. >关 闭</el-button
  9589. >
  9590. </div>
  9591. </el-dialog>
  9592. <el-dialog
  9593. title="查看视频"
  9594. :visible.sync="videoVisible"
  9595. :append-to-body="true"
  9596. width="1000px"
  9597. :before-close="handleClose"
  9598. class="dialog_diy1"
  9599. >
  9600. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9601. <video-player
  9602. class="video-player vjs-custom-skin"
  9603. :playsinline="true"
  9604. :options="videoDetail"
  9605. @play="onPlayerPlay($event)"
  9606. style="width: 100%; height: 100%"
  9607. ></video-player>
  9608. </div>
  9609. <div slot="footer">
  9610. <el-button
  9611. style="background: #409efe; color: #fff"
  9612. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9613. >
  9614. 关 闭</el-button
  9615. >
  9616. </div>
  9617. </el-dialog>
  9618. <el-dialog
  9619. title="查看详情"
  9620. :visible.sync="commentDialogVisible"
  9621. :append-to-body="true"
  9622. width="800px"
  9623. :before-close="handleClose"
  9624. class="dialog_diy"
  9625. >
  9626. <div class="commentTop">
  9627. <div class="studentDetail">
  9628. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9629. <div class="nameAndTime">
  9630. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9631. <div>{{ commentDetail.time }}</div>
  9632. </div>
  9633. <div
  9634. class="returnBtn"
  9635. style="margin-left: auto; width: 80px"
  9636. v-if="
  9637. commentDetail.works &&
  9638. commentDetail.type == 0 &&
  9639. (tType == 1 || tType == 4)
  9640. "
  9641. @click="
  9642. showPicturePaint(
  9643. commentDetail.img ? commentDetail.img : commentDetail.works
  9644. )
  9645. "
  9646. >
  9647. 教师批注
  9648. </div>
  9649. </div>
  9650. <div
  9651. class="worksAnswer"
  9652. v-if="commentDetail.works && commentDetail.type == 2"
  9653. >
  9654. {{ JSON.parse(commentDetail.works)[0].answer }}
  9655. </div>
  9656. <div
  9657. class="worksAnswer"
  9658. v-if="commentDetail.works && commentDetail.type == 1"
  9659. >
  9660. <img
  9661. src="../assets/teacherWork.png"
  9662. v-if="commentDetail.ateacher"
  9663. class="w_teachert"
  9664. />
  9665. <pdf
  9666. v-if="showPDF"
  9667. :pdfUrl="pptImgUrl"
  9668. style="width: 100%; height: 520px; overflow: auto"
  9669. :class="{ fullStyle: full }"
  9670. ></pdf>
  9671. <iframe
  9672. v-else
  9673. :src="pptImgUrl"
  9674. frameborder="0"
  9675. width="100%"
  9676. height="600"
  9677. :class="{ fullStyle: full }"
  9678. ></iframe>
  9679. </div>
  9680. <div
  9681. class="worksAnswer"
  9682. v-if="commentDetail.works && commentDetail.type == 0"
  9683. >
  9684. <img
  9685. src="../assets/teacherWork.png"
  9686. v-if="commentDetail.ateacher"
  9687. class="w_teachert"
  9688. style="right: 105px"
  9689. />
  9690. <img
  9691. :src="commentDetail.works"
  9692. alt=""
  9693. @click="previewImg(commentDetail.works)"
  9694. />
  9695. </div>
  9696. <div
  9697. class="worksAnswer"
  9698. v-if="commentDetail.works && commentDetail.type == 3"
  9699. >
  9700. <img
  9701. src="../assets/teacherWork.png"
  9702. v-if="commentDetail.ateacher"
  9703. class="w_teachert"
  9704. />
  9705. <video-player
  9706. class="video-player vjs-custom-skin"
  9707. :playsinline="true"
  9708. :options="videoDetail"
  9709. @play="onPlayerPlay($event)"
  9710. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9711. ></video-player>
  9712. </div>
  9713. <div
  9714. class="worksAnswer"
  9715. v-if="commentDetail.works && commentDetail.type == 10"
  9716. >
  9717. <div class="cont" v-html="commentDetail.works.text"></div>
  9718. </div>
  9719. <div
  9720. class="worksAnswer codeFileBox"
  9721. v-if="commentDetail.works && commentDetail.type == 12"
  9722. @click="downloadFile(commentDetail.works)"
  9723. >
  9724. <img src="../assets/icon/codeFile.png" />
  9725. <div>点击下载文件</div>
  9726. </div>
  9727. <div
  9728. class="worksAnswer codeFileBox"
  9729. v-if="commentDetail.works && commentDetail.type == 15"
  9730. @click="
  9731. openCocoPi(
  9732. 57,
  9733. commentIndexJson.toolIndex,
  9734. commentDetail.userid,
  9735. commentDetail.sName
  9736. )
  9737. "
  9738. >
  9739. <img src="../assets/icon/codeFile.png" />
  9740. <div>点击打开CocoPi</div>
  9741. </div>
  9742. <div
  9743. class="worksAnswer"
  9744. v-if="commentDetail.works && commentDetail.type == 13"
  9745. >
  9746. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9747. </div>
  9748. <div
  9749. class="worksAnswer"
  9750. v-if="commentDetail.works && commentDetail.type == 4"
  9751. >
  9752. <div class="evalCss">
  9753. <div class="nav">请选择星星进行评分</div>
  9754. <div class="middleBox" v-if="eScore.eStar">
  9755. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9756. <div class="nameAndrate">
  9757. <div>{{ e.value }}</div>
  9758. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9759. </div>
  9760. <div v-if="e.detail">{{ e.detail }}</div>
  9761. </div>
  9762. <div class="bz">
  9763. <textarea
  9764. disabled
  9765. rows="4"
  9766. class="pj"
  9767. style="
  9768. padding: 10px 5px;
  9769. width: 70%;
  9770. background: #f7f6f9;
  9771. font-size: 14px;
  9772. text-indent: 10px;
  9773. color: #000;
  9774. "
  9775. cols
  9776. v-model="eScore.eBzText"
  9777. placeholder="请输入评价内容..."
  9778. ></textarea>
  9779. </div>
  9780. </div>
  9781. </div>
  9782. </div>
  9783. <div class="comment">
  9784. <div class="commentList">
  9785. <div class="commentImg">
  9786. <img
  9787. @click="
  9788. isLikes(
  9789. commentDetail.wid,
  9790. userid,
  9791. 1,
  9792. null,
  9793. commentDetail.isLikes,
  9794. commentDetail.sName
  9795. )
  9796. "
  9797. :src="commentDetail.isLikes == true ? likes : noLikes"
  9798. alt=""
  9799. />
  9800. </div>
  9801. <div>{{ commentDetail.likesCount }}</div>
  9802. </div>
  9803. <div class="commentList">
  9804. <div class="commentImg">
  9805. <img src="../assets/icon/comment/comment.png" alt="" />
  9806. </div>
  9807. <div>{{ commentDetail.commentCount }}</div>
  9808. </div>
  9809. </div>
  9810. <div class="drawPBox" v-if="commentDetail.img">
  9811. <span>教师批注</span>
  9812. <img
  9813. :src="commentDetail.img"
  9814. alt=""
  9815. @click="previewImg(commentDetail.img)"
  9816. />
  9817. <span
  9818. class="deleteImg"
  9819. v-if="tType == 1 || tType == 4"
  9820. @click.stop="deletePicturePaint(commentDetail.wid)"
  9821. style="
  9822. font-size: 14px;
  9823. width: auto !important;
  9824. color: #b4b4b4;
  9825. top: unset;
  9826. bottom: 0;
  9827. border: none;
  9828. padding: 0;
  9829. height: auto !important;
  9830. margin: 0;
  9831. "
  9832. >删除</span
  9833. >
  9834. </div>
  9835. </div>
  9836. <div class="commentBox">
  9837. <div class="pl">评论:</div>
  9838. <div style="max-height: 200px; overflow: auto">
  9839. <div
  9840. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9841. style="padding: 10px 0 0 0"
  9842. >
  9843. <div
  9844. class="studentDetail"
  9845. style="padding-top: 10px"
  9846. v-for="(co, coIndex) in commentDetail.commentJson"
  9847. :key="coIndex"
  9848. >
  9849. <div class="tx" style="min-width: 50px">
  9850. <img src="../assets/avatar.png" alt="" />
  9851. </div>
  9852. <div class="plPerson">
  9853. <div class="plName">
  9854. <div>{{ co.commentPeople }}</div>
  9855. <div style="margin-left: 5px">
  9856. {{ co.commentTime }}
  9857. </div>
  9858. <div
  9859. class="deleteComment"
  9860. v-if="userid == co.userid"
  9861. @click="deleteComment(co.wid)"
  9862. >
  9863. 删除
  9864. </div>
  9865. </div>
  9866. <div class="plContent">{{ co.commentText }}</div>
  9867. </div>
  9868. </div>
  9869. </div>
  9870. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9871. </div>
  9872. </div>
  9873. <div style="margin-top: 10px">
  9874. <div class="displayBox">
  9875. <div
  9876. style="
  9877. color: #556db4;
  9878. font-size: 14px;
  9879. font-weight: bold;
  9880. padding-bottom: 10px;
  9881. "
  9882. >
  9883. 评价
  9884. </div>
  9885. <div class="easy_comment" v-if="false">
  9886. <div
  9887. v-for="(p, pIndex) in PlTextList"
  9888. :key="pIndex"
  9889. @click="fastText(p, 1)"
  9890. >
  9891. {{ p }}
  9892. </div>
  9893. </div>
  9894. </div>
  9895. <div>
  9896. <textarea
  9897. rows="3"
  9898. class="pj"
  9899. style="padding: 10px 5px"
  9900. cols
  9901. v-model="commentText"
  9902. placeholder="请输入评论"
  9903. ></textarea>
  9904. </div>
  9905. </div>
  9906. <div slot="footer">
  9907. <el-button
  9908. @click="
  9909. (commentDialogVisible = false),
  9910. (commentIndexJson = {}),
  9911. videoDetail.sources && videoDetail.sources[0]
  9912. ? (videoDetail.sources[0].src = '')
  9913. : ''
  9914. "
  9915. >取 消</el-button
  9916. >
  9917. <el-button
  9918. type="primary"
  9919. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9920. >确 定</el-button
  9921. >
  9922. </div>
  9923. </el-dialog>
  9924. <el-dialog
  9925. title="查看文档"
  9926. :visible.sync="fullDialogVisible"
  9927. :append-to-body="true"
  9928. width="100%"
  9929. :before-close="handleClose"
  9930. :show-close="false"
  9931. class="dialog_diy full_diy"
  9932. :class="{ full_diy2: fulltype == 3 }"
  9933. >
  9934. <div slot="title" class="header-title">
  9935. <div style="color: #fff">查看文档</div>
  9936. <div
  9937. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9938. style="
  9939. cursor: pointer;
  9940. position: absolute;
  9941. top: 20px;
  9942. right: 20px;
  9943. color: #fff;
  9944. "
  9945. >
  9946. 退出全屏
  9947. </div>
  9948. </div>
  9949. <div style="height: 100%">
  9950. <div
  9951. class="wheel"
  9952. v-if="
  9953. fulltype == 2 &&
  9954. fullUrl.indexOf(
  9955. 'https://view.officeapps.live.com/op/view.aspx?src='
  9956. ) != -1
  9957. "
  9958. style="width: 100%;height:100%; margin: 0 auto"
  9959. >
  9960. <iframe
  9961. style="width: 100%; height: 100%; border: none"
  9962. :src="fullUrl"
  9963. ></iframe>
  9964. </div>
  9965. <iframe
  9966. v-else-if="fulltype == 2"
  9967. style="width: 100%; height: 100%; border: none"
  9968. :src="fullUrl"
  9969. security="restricted"
  9970. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9971. ></iframe>
  9972. <pdf
  9973. v-else-if="fulltype == 3"
  9974. :pdfUrl="fullUrl"
  9975. style="width: 100%; height: 100%; overflow: auto"
  9976. ></pdf>
  9977. <div
  9978. class="wheel"
  9979. v-if="fulltype == 1"
  9980. style="
  9981. box-shadow: 0 0 6px 1px #f2f2f2;
  9982. width: 100%;
  9983. height:100%;
  9984. background: #f1f1f1;
  9985. "
  9986. >
  9987. <div class="title" style="width: 100%; box-sizing: border-box">
  9988. 查看文档
  9989. </div>
  9990. <el-form class="textBox" style="height: 90%">
  9991. <el-form-item class="textTitle">
  9992. <div style="font-size: 22px">
  9993. {{ fullUrl.name }}
  9994. </div>
  9995. </el-form-item>
  9996. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9997. <div
  9998. v-html="fullUrl.url"
  9999. class="textContent"
  10000. style="height: auto"
  10001. ></div>
  10002. </el-form>
  10003. </div>
  10004. </div>
  10005. <!-- <div slot="footer">
  10006. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10007. </div> -->
  10008. </el-dialog>
  10009. <el-dialog
  10010. title="个人评价"
  10011. :visible.sync="studentEvalDialogVisible"
  10012. :append-to-body="true"
  10013. width="800px"
  10014. :before-close="handleClose"
  10015. class="dialog_diy"
  10016. >
  10017. <div class="evalCss">
  10018. <div class="nav">请选择星星进行评分</div>
  10019. <div class="middleBox" v-if="eScore.eStar">
  10020. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10021. <div class="nameAndrate">
  10022. <div>{{ e.value }}</div>
  10023. <el-rate
  10024. v-model="eScore.eStar[eIndex]"
  10025. :disabled="isStar"
  10026. ></el-rate>
  10027. </div>
  10028. <div v-if="e.detail">{{ e.detail }}</div>
  10029. </div>
  10030. <div class="easy_comment" v-if="false">
  10031. <div
  10032. v-for="(p, pIndex) in PlTextList"
  10033. :key="pIndex"
  10034. @click="fastText(p, 2)"
  10035. >
  10036. {{ p }}
  10037. </div>
  10038. </div>
  10039. <div class="bz">
  10040. <textarea
  10041. :disabled="isStar"
  10042. rows="4"
  10043. class="pj"
  10044. style="
  10045. padding: 10px 5px;
  10046. width: 70%;
  10047. background: #f7f6f9;
  10048. font-size: 14px;
  10049. text-indent: 10px;
  10050. "
  10051. cols
  10052. v-model="eScore.eBzText"
  10053. placeholder="请输入评价内容..."
  10054. ></textarea>
  10055. </div>
  10056. </div>
  10057. </div>
  10058. <div slot="footer">
  10059. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10060. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10061. >确 定</el-button
  10062. >
  10063. </div>
  10064. </el-dialog>
  10065. <el-dialog
  10066. title="个人评价"
  10067. :visible.sync="studentEvalDialogVisibleTeacher"
  10068. :append-to-body="true"
  10069. width="800px"
  10070. :before-close="handleClose"
  10071. class="dialog_diy"
  10072. >
  10073. <div class="w_name">
  10074. 学生姓名:<span>{{ sStudent.student }}</span>
  10075. </div>
  10076. <div class="evalCss">
  10077. <div class="nav">请选择星星进行评分</div>
  10078. <div class="middleBox" v-if="eScore.eStar">
  10079. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10080. <div class="nameAndrate">
  10081. <div>{{ e.value }}</div>
  10082. <el-rate
  10083. v-model="eScore.eStar[eIndex]"
  10084. :disabled="isStar"
  10085. ></el-rate>
  10086. </div>
  10087. <div v-if="e.detail">{{ e.detail }}</div>
  10088. </div>
  10089. <div class="easy_comment" v-if="false">
  10090. <div
  10091. v-for="(p, pIndex) in PlTextList"
  10092. :key="pIndex"
  10093. @click="fastText(p, 2)"
  10094. >
  10095. {{ p }}
  10096. </div>
  10097. </div>
  10098. <div class="bz">
  10099. <textarea
  10100. :disabled="isStar"
  10101. rows="4"
  10102. class="pj"
  10103. style="
  10104. padding: 10px 5px;
  10105. width: 70%;
  10106. background: #f7f6f9;
  10107. font-size: 14px;
  10108. text-indent: 10px;
  10109. "
  10110. cols
  10111. v-model="eScore.eBzText"
  10112. placeholder="请输入评价内容..."
  10113. ></textarea>
  10114. </div>
  10115. </div>
  10116. </div>
  10117. <div slot="footer">
  10118. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10119. >取 消</el-button
  10120. >
  10121. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10122. >确 定</el-button
  10123. >
  10124. </div>
  10125. </el-dialog>
  10126. <el-dialog
  10127. title="选择匹配"
  10128. :visible.sync="dialogVisibleSelect"
  10129. :append-to-body="true"
  10130. width="90%"
  10131. :before-close="handleClose"
  10132. class="dialog_diy dialog_diy3"
  10133. >
  10134. <div v-if="selectJson">
  10135. <div class="select_box2">
  10136. <div class="select_box2_title">
  10137. <div>选择匹配</div>
  10138. <div>请选择对应的答案进行答题!</div>
  10139. </div>
  10140. <div class="select_box2_box">
  10141. <div class="select_box2_img">
  10142. <img
  10143. :src="selectJson.url"
  10144. @click="previewImg(selectJson.url)"
  10145. alt=""
  10146. />
  10147. </div>
  10148. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10149. <div style="padding-top: 15px">
  10150. <div class="select_answer_title" v-if="isSelect">
  10151. {{ selectAnswer.stu }}
  10152. </div>
  10153. <div class="select_answer_title" v-else>
  10154. 根据题目选择对应答案
  10155. </div>
  10156. <div
  10157. class="select_box2_answer_box"
  10158. v-for="(item2, checkIndex) in selectJson.select"
  10159. :key="checkIndex"
  10160. >
  10161. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10162. <el-select
  10163. :disabled="isSelect"
  10164. v-model="selectAnswer.answer[checkIndex]"
  10165. placeholder="请选择正确答案"
  10166. >
  10167. <el-option
  10168. v-for="(e, eIndex) in selectJson.select"
  10169. :key="eIndex"
  10170. :label="e"
  10171. :value="eIndex"
  10172. >
  10173. </el-option>
  10174. </el-select>
  10175. </div>
  10176. </div>
  10177. <div
  10178. class="rightAnswerCss"
  10179. v-if="isSelect && (tType == 1 || tType == 4)"
  10180. >
  10181. <div
  10182. v-for="(a, aIndex) in selectJson.answer"
  10183. :key="aIndex"
  10184. class="rightAnswer"
  10185. >
  10186. <div
  10187. v-if="selectAnswer.answer[aIndex] === a"
  10188. style="color: #767de1"
  10189. >
  10190. 回答正确
  10191. </div>
  10192. <div v-else>回答错误</div>
  10193. <div
  10194. style="margin-left: 10px"
  10195. v-if="selectAnswer.answer[aIndex] !== a"
  10196. >
  10197. 正确答案:
  10198. </div>
  10199. <div
  10200. :class="
  10201. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10202. "
  10203. >
  10204. {{ selectJson.select[a] }}
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="upAnswerCss">
  10210. <el-button
  10211. type="primary"
  10212. @click="addSelectAnswer"
  10213. v-if="!isSelect"
  10214. >提交答案</el-button
  10215. >
  10216. </div>
  10217. </div>
  10218. </div>
  10219. </div>
  10220. </el-dialog>
  10221. <el-dialog
  10222. title="选择匹配"
  10223. :visible.sync="dialogVisibleSelectTeacher"
  10224. :append-to-body="true"
  10225. width="90%"
  10226. :before-close="handleClose"
  10227. class="dialog_diy dialog_diy3"
  10228. >
  10229. <div v-if="selectJson">
  10230. <div class="w_name">
  10231. 学生姓名:<span>{{ sStudent.student }}</span>
  10232. </div>
  10233. <div class="select_box2">
  10234. <div class="select_box2_title">
  10235. <div>选择匹配</div>
  10236. <div>请选择对应的答案进行答题!</div>
  10237. </div>
  10238. <div class="select_box2_box">
  10239. <div class="select_box2_img">
  10240. <img
  10241. :src="selectJson.url"
  10242. @click="previewImg(selectJson.url)"
  10243. alt=""
  10244. />
  10245. </div>
  10246. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10247. <div style="padding-top: 15px">
  10248. <div class="select_answer_title" v-if="isSelect">
  10249. {{ selectAnswer.stu }}
  10250. </div>
  10251. <div class="select_answer_title" v-else>
  10252. 根据题目选择对应答案
  10253. </div>
  10254. <div
  10255. class="select_box2_answer_box"
  10256. v-for="(item2, checkIndex) in selectJson.select"
  10257. :key="checkIndex"
  10258. >
  10259. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10260. <el-select
  10261. :disabled="isSelect"
  10262. v-model="selectAnswer.answer[checkIndex]"
  10263. placeholder="请选择正确答案"
  10264. >
  10265. <el-option
  10266. v-for="(e, eIndex) in selectJson.select"
  10267. :key="eIndex"
  10268. :label="e"
  10269. :value="eIndex"
  10270. >
  10271. </el-option>
  10272. </el-select>
  10273. </div>
  10274. </div>
  10275. <div
  10276. class="rightAnswerCss"
  10277. v-if="isSelect && (tType == 1 || tType == 4)"
  10278. >
  10279. <div
  10280. v-for="(a, aIndex) in selectJson.answer"
  10281. :key="aIndex"
  10282. class="rightAnswer"
  10283. >
  10284. <div
  10285. v-if="selectAnswer.answer[aIndex] === a"
  10286. style="color: #767de1"
  10287. >
  10288. 回答正确
  10289. </div>
  10290. <div v-else>回答错误</div>
  10291. <div
  10292. style="margin-left: 10px"
  10293. v-if="selectAnswer.answer[aIndex] !== a"
  10294. >
  10295. 正确答案:
  10296. </div>
  10297. <div
  10298. :class="
  10299. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10300. "
  10301. >
  10302. {{ selectJson.select[a] }}
  10303. </div>
  10304. </div>
  10305. </div>
  10306. </div>
  10307. <div class="upAnswerCss">
  10308. <el-button
  10309. type="primary"
  10310. @click="addSelectAnswerTeacher"
  10311. v-if="!isSelect"
  10312. >提交答案</el-button
  10313. >
  10314. </div>
  10315. </div>
  10316. </div>
  10317. </div>
  10318. </el-dialog>
  10319. <el-dialog
  10320. title="教师评分"
  10321. :visible.sync="dialogVisibleScore"
  10322. :append-to-body="true"
  10323. width="800px"
  10324. :before-close="handleClose"
  10325. class="dialog_diy"
  10326. >
  10327. <div>
  10328. <div class="studentDetail">
  10329. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10330. <div class="nameAndTime">
  10331. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10332. <div>{{ commentDetail.time }}</div>
  10333. </div>
  10334. </div>
  10335. <div
  10336. class="worksAnswer"
  10337. v-if="commentDetail.works && commentDetail.type == 2"
  10338. >
  10339. {{ JSON.parse(commentDetail.works)[0].answer }}
  10340. </div>
  10341. <div
  10342. class="worksAnswer"
  10343. v-if="commentDetail.works && commentDetail.type == 1"
  10344. >
  10345. <pdf
  10346. v-if="showPDF"
  10347. :pdfUrl="pptImgUrl"
  10348. style="width: 100%; height: 520px; overflow: auto"
  10349. :class="{ fullStyle: full }"
  10350. ></pdf>
  10351. <iframe
  10352. v-else
  10353. :src="pptImgUrl"
  10354. frameborder="0"
  10355. width="100%"
  10356. height="600"
  10357. :class="{ fullStyle: full }"
  10358. ></iframe>
  10359. </div>
  10360. <div
  10361. class="worksAnswer"
  10362. v-if="commentDetail.works && commentDetail.type == 0"
  10363. >
  10364. <img
  10365. :src="commentDetail.works"
  10366. alt=""
  10367. @click="previewImg(commentDetail.works)"
  10368. />
  10369. </div>
  10370. <div
  10371. class="worksAnswer"
  10372. v-if="commentDetail.works && commentDetail.type == 3"
  10373. >
  10374. <video-player
  10375. class="video-player vjs-custom-skin"
  10376. :playsinline="true"
  10377. :options="videoDetail"
  10378. @play="onPlayerPlay($event)"
  10379. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10380. ></video-player>
  10381. </div>
  10382. <div
  10383. class="worksAnswer codeFileBox"
  10384. v-if="commentDetail.works && commentDetail.type == 12"
  10385. @click="downloadFile(commentDetail.works)"
  10386. >
  10387. <img src="../assets/icon/codeFile.png" />
  10388. <div>点击下载文件</div>
  10389. </div>
  10390. <div
  10391. class="worksAnswer codeFileBox"
  10392. v-if="commentDetail.works && commentDetail.type == 15"
  10393. @click="
  10394. openCocoPi(
  10395. 57,
  10396. commentIndexJson.toolIndex,
  10397. commentDetail.userid,
  10398. commentDetail.sName
  10399. )
  10400. "
  10401. >
  10402. <img src="../assets/icon/codeFile.png" />
  10403. <div>点击打开CocoPi</div>
  10404. </div>
  10405. <div
  10406. class="worksAnswer"
  10407. v-if="commentDetail.works && commentDetail.type == 13"
  10408. >
  10409. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10410. </div>
  10411. <div class="scoreBox">
  10412. <span class="t">请输入分数</span>
  10413. <el-input-number
  10414. :disabled="courseDetail.userid != userid"
  10415. v-model="wScore"
  10416. :controls="false"
  10417. :min="0"
  10418. :max="100"
  10419. ></el-input-number>
  10420. </div>
  10421. <div class="scoreDetailBox">
  10422. <span class="t">评分评论</span>
  10423. <el-input
  10424. type="textarea"
  10425. :rows="5"
  10426. :disabled="courseDetail.userid != userid"
  10427. resize="none"
  10428. v-model="scoreDetail"
  10429. placeholder="请输入对学生的评价"
  10430. >
  10431. </el-input>
  10432. </div>
  10433. </div>
  10434. <span slot="footer" class="dialog-footer">
  10435. <el-button
  10436. @click="
  10437. (dialogVisibleScore = false),
  10438. (commentIndexJson = {}),
  10439. videoDetail.sources && videoDetail.sources[0]
  10440. ? (videoDetail.sources[0].src = '')
  10441. : ''
  10442. "
  10443. >取 消</el-button
  10444. >
  10445. <el-button
  10446. type="primary"
  10447. v-if="courseDetail.userid == userid"
  10448. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10449. >确 定
  10450. </el-button>
  10451. </span>
  10452. </el-dialog>
  10453. <el-dialog
  10454. title="排序"
  10455. :visible.sync="dialogVisibleSentence"
  10456. :append-to-body="true"
  10457. width="1000px"
  10458. :before-close="handleClose"
  10459. class="dialog_diy dialog_diy3"
  10460. >
  10461. <div>
  10462. <div class="sentenBox">
  10463. <div
  10464. v-for="(st, stIndex) in sentenceList"
  10465. :key="stIndex"
  10466. style="padding-bottom: 20px"
  10467. >
  10468. <div
  10469. style="padding: 15px 0 10px 20px"
  10470. class="sentenceTitle"
  10471. :index="stIndex + 1"
  10472. >
  10473. 题目{{ stIndex + 1 }}:请选择正确顺序
  10474. </div>
  10475. <div class="cardList" v-if="st.chooseSenList">
  10476. <div class="cardBox">
  10477. <div
  10478. v-for="(r, rIndex) in st.chooseSenList"
  10479. :key="rIndex"
  10480. @click="returnCard(r, stIndex, rIndex)"
  10481. >
  10482. <el-tooltip
  10483. class="item"
  10484. effect="light"
  10485. :content="r"
  10486. placement="top"
  10487. v-if="r != '' && r != undefined"
  10488. >
  10489. <div
  10490. :class="{
  10491. isCard: r,
  10492. isChooseCard: r == '' || r == undefined,
  10493. }"
  10494. >
  10495. <div>{{ r }}</div>
  10496. </div>
  10497. </el-tooltip>
  10498. <div
  10499. :class="{
  10500. isCard: r,
  10501. isChooseCard: r == '' || r == undefined,
  10502. }"
  10503. v-else
  10504. >
  10505. <div>{{ r }}</div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. <div class="cardList" v-if="st.addChangeSen">
  10511. <div class="cardBox">
  10512. <div
  10513. v-for="(s, sIndex) in st.addChangeSen"
  10514. :key="sIndex"
  10515. @click="setRightAnswer(s, stIndex, sIndex)"
  10516. >
  10517. <el-tooltip
  10518. class="item"
  10519. effect="light"
  10520. :content="s"
  10521. placement="top"
  10522. v-if="s != '' && s != undefined"
  10523. >
  10524. <div
  10525. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10526. >
  10527. <div>{{ s }}</div>
  10528. </div>
  10529. </el-tooltip>
  10530. <div
  10531. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10532. v-else
  10533. >
  10534. <div>{{ s }}</div>
  10535. </div>
  10536. </div>
  10537. </div>
  10538. </div>
  10539. </div>
  10540. </div>
  10541. </div>
  10542. <span slot="footer" class="dialog-footer">
  10543. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10544. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10545. </span>
  10546. </el-dialog>
  10547. <el-dialog
  10548. title="排序"
  10549. :visible.sync="dialogVisibleSentenceTeacher"
  10550. :append-to-body="true"
  10551. width="1000px"
  10552. :before-close="handleClose"
  10553. class="dialog_diy dialog_diy3"
  10554. >
  10555. <div>
  10556. <div class="w_name">
  10557. 学生姓名:<span>{{ sStudent.student }}</span>
  10558. </div>
  10559. <div class="sentenBox">
  10560. <div
  10561. v-for="(st, stIndex) in sentenceList"
  10562. :key="stIndex"
  10563. style="padding-bottom: 20px"
  10564. >
  10565. <div
  10566. style="padding: 15px 0 10px 20px"
  10567. class="sentenceTitle"
  10568. :index="stIndex + 1"
  10569. >
  10570. 题目{{ stIndex + 1 }}:请选择正确顺序
  10571. </div>
  10572. <div class="cardList" v-if="st.chooseSenList">
  10573. <div class="cardBox">
  10574. <div
  10575. v-for="(r, rIndex) in st.chooseSenList"
  10576. :key="rIndex"
  10577. @click="returnCard(r, stIndex, rIndex)"
  10578. >
  10579. <el-tooltip
  10580. class="item"
  10581. effect="light"
  10582. :content="r"
  10583. placement="top"
  10584. v-if="r != '' && r != undefined"
  10585. >
  10586. <div
  10587. :class="{
  10588. isCard: r,
  10589. isChooseCard: r == '' || r == undefined,
  10590. }"
  10591. >
  10592. <div>{{ r }}</div>
  10593. </div>
  10594. </el-tooltip>
  10595. <div
  10596. :class="{
  10597. isCard: r,
  10598. isChooseCard: r == '' || r == undefined,
  10599. }"
  10600. v-else
  10601. >
  10602. <div>{{ r }}</div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. </div>
  10607. <div class="cardList" v-if="st.addChangeSen">
  10608. <div class="cardBox">
  10609. <div
  10610. v-for="(s, sIndex) in st.addChangeSen"
  10611. :key="sIndex"
  10612. @click="setRightAnswer(s, stIndex, sIndex)"
  10613. >
  10614. <el-tooltip
  10615. class="item"
  10616. effect="light"
  10617. :content="s"
  10618. placement="top"
  10619. v-if="s != '' && s != undefined"
  10620. >
  10621. <div
  10622. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10623. >
  10624. <div>{{ s }}</div>
  10625. </div>
  10626. </el-tooltip>
  10627. <div
  10628. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10629. v-else
  10630. >
  10631. <div>{{ s }}</div>
  10632. </div>
  10633. </div>
  10634. </div>
  10635. </div>
  10636. </div>
  10637. </div>
  10638. </div>
  10639. <span slot="footer" class="dialog-footer">
  10640. <el-button @click="dialogVisibleSentenceTeacher = false"
  10641. >取 消</el-button
  10642. >
  10643. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10644. </span>
  10645. </el-dialog>
  10646. <el-dialog
  10647. title="排序"
  10648. :visible.sync="dialogVisibleSentence1"
  10649. :append-to-body="true"
  10650. width="1000px"
  10651. :before-close="handleClose"
  10652. class="dialog_diy dialog_diy3"
  10653. >
  10654. <div>
  10655. <div class="sentenBox">
  10656. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10657. {{ sentenceList1.stuName }}的作业
  10658. </div>
  10659. <div
  10660. v-for="(st, stIndex) in sentenceList1"
  10661. :key="stIndex"
  10662. style="padding-bottom: 20px"
  10663. >
  10664. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10665. 第{{ stIndex + 1 }}题
  10666. </div>
  10667. <div class="isWrong">
  10668. <div class="cardList1" v-if="st.chooseSenList">
  10669. <div class="cardBox">
  10670. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10671. <el-tooltip
  10672. class="item"
  10673. effect="light"
  10674. :content="s"
  10675. placement="top"
  10676. >
  10677. <div class="isCard">
  10678. <div>{{ s }}</div>
  10679. </div>
  10680. </el-tooltip>
  10681. </div>
  10682. </div>
  10683. <div class="cardAnswerBox">
  10684. 组成句子:{{ st.chooseSenList.join(" ") }}
  10685. </div>
  10686. </div>
  10687. <div v-if="tType == 2" class="isTj">
  10688. <div class="isTjImg">
  10689. <img src="../assets/icon/conSentences/right.png" alt="" />
  10690. </div>
  10691. <div>已提交</div>
  10692. </div>
  10693. <div
  10694. class="answerRight isTj"
  10695. v-if="
  10696. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10697. (tType == 1 || tType == 4)
  10698. "
  10699. >
  10700. <div class="isTjImg">
  10701. <img src="../assets/icon/conSentences/right.png" alt="" />
  10702. </div>
  10703. <div>回答正确</div>
  10704. </div>
  10705. <div
  10706. class="answerRight isTj"
  10707. v-if="
  10708. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10709. (tType == 1 || tType == 4)
  10710. "
  10711. >
  10712. <div class="isTjImg">
  10713. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10714. </div>
  10715. <div>回答错误</div>
  10716. </div>
  10717. </div>
  10718. <div
  10719. v-if="
  10720. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10721. (tType == 1 || tType == 4)
  10722. "
  10723. >
  10724. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10725. <div
  10726. class="cardList"
  10727. v-if="st.rightAnswer"
  10728. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10729. >
  10730. <div class="cardBox">
  10731. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10732. <el-tooltip
  10733. class="item"
  10734. effect="light"
  10735. :content="r"
  10736. placement="top"
  10737. >
  10738. <div class="isCard1">
  10739. <div>{{ r }}</div>
  10740. </div>
  10741. </el-tooltip>
  10742. </div>
  10743. </div>
  10744. <div class="cardAnswerBox">
  10745. 组成句子:{{ st.rightAnswer.join(" ") }}
  10746. </div>
  10747. </div>
  10748. </div>
  10749. </div>
  10750. </div>
  10751. </div>
  10752. <span slot="footer" class="dialog-footer">
  10753. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10754. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10755. >确 定</el-button
  10756. >
  10757. </span>
  10758. </el-dialog>
  10759. <el-dialog
  10760. title="教师提交作业"
  10761. :visible.sync="dialogVisibleWorks"
  10762. :append-to-body="true"
  10763. width="500px"
  10764. :before-close="handleClose"
  10765. class="dialog_change"
  10766. >
  10767. <div class="marginT">
  10768. <div class="w_name">
  10769. 学生姓名:<span>{{ sStudent.student }}</span>
  10770. </div>
  10771. <div>上传文件</div>
  10772. <div
  10773. class="chapter_add"
  10774. @click="addImg($event)"
  10775. v-if="studyJuri[0].cover.length == 0"
  10776. >
  10777. <div class="up_photo">
  10778. <img src="../assets/uploadImg2.png" alt />
  10779. </div>
  10780. <!-- <input
  10781. type="file"
  10782. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10783. style="display: none"
  10784. @change="beforeUpload1($event, 1)"
  10785. /> -->
  10786. <input
  10787. type="file"
  10788. accept="*"
  10789. style="display: none"
  10790. @change="beforeUpload1($event, 1)"
  10791. />
  10792. </div>
  10793. <!-- capture="camera" -->
  10794. <div
  10795. class="chapter_add"
  10796. style="
  10797. display: flex;
  10798. width: 100%;
  10799. flex-direction: row;
  10800. flex-wrap: wrap;
  10801. justify-content: flex-start;
  10802. padding: 15px 0;
  10803. "
  10804. v-if="studyJuri[0].cover.length > 0"
  10805. >
  10806. <div class="upCover">
  10807. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10808. <img :src="word" alt v-else-if="fileType == 1" />
  10809. <img :src="video" alt v-else-if="fileType == 2" />
  10810. <img :src="word2" alt v-else-if="fileType == 3" />
  10811. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10812. <div class="deleteWord" @click="clean(1)">
  10813. <img src="../assets/icon/deleteWorks.png" alt />
  10814. </div>
  10815. </div>
  10816. </div>
  10817. </div>
  10818. <div
  10819. class="upload_send"
  10820. @click="addCourseWorksTeacher(taskCount)"
  10821. v-if="!proVisible"
  10822. >
  10823. 提交
  10824. </div>
  10825. </el-dialog>
  10826. <ImgDraw
  10827. :drawShow="drawShow"
  10828. @closeDraw="closeDraw"
  10829. @addImgDraw="addImgDraw"
  10830. :bg="bg"
  10831. ></ImgDraw>
  10832. <el-dialog
  10833. title="表格"
  10834. :visible.sync="dialogVisibleTable"
  10835. :append-to-body="true"
  10836. width="95%"
  10837. :before-close="handleClose"
  10838. class="dialog_diy"
  10839. >
  10840. <el-form>
  10841. <div
  10842. style="
  10843. display: flex;
  10844. align-items: center;
  10845. justify-content: space-between;
  10846. "
  10847. >
  10848. <span>表格内容</span>
  10849. <el-button type="primary" size="small" @click="returnTableText"
  10850. >还原模板</el-button
  10851. >
  10852. </div>
  10853. <Table
  10854. v-model="tableJson.text"
  10855. @change="change"
  10856. v-if="dialogVisibleTable"
  10857. ></Table>
  10858. </el-form>
  10859. <span slot="footer" class="dialog-footer">
  10860. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10861. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10862. </span>
  10863. </el-dialog>
  10864. <el-dialog
  10865. title="表格"
  10866. :visible.sync="dialogVisibleTableTeacher"
  10867. :append-to-body="true"
  10868. width="95%"
  10869. :before-close="handleClose"
  10870. class="dialog_diy"
  10871. >
  10872. <el-form>
  10873. <div class="w_name">
  10874. 学生姓名:<span>{{ sStudent.student }}</span>
  10875. </div>
  10876. <div>表格内容</div>
  10877. <Table
  10878. v-model="tableJson.text"
  10879. @change="change"
  10880. v-if="dialogVisibleTableTeacher"
  10881. ></Table>
  10882. </el-form>
  10883. <span slot="footer" class="dialog-footer">
  10884. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10885. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10886. </span>
  10887. </el-dialog>
  10888. <el-dialog
  10889. title="文档"
  10890. :visible.sync="dialogVisibleWord"
  10891. :append-to-body="true"
  10892. width="95%"
  10893. :before-close="handleClose"
  10894. class="dialog_diy"
  10895. >
  10896. <el-form>
  10897. <div
  10898. style="
  10899. display: flex;
  10900. align-items: center;
  10901. justify-content: space-between;
  10902. "
  10903. >
  10904. <span>文档内容</span>
  10905. <el-button type="primary" size="small" @click="returnWordText"
  10906. >还原模板</el-button
  10907. >
  10908. </div>
  10909. <editor-bar
  10910. v-model="wordJson.text"
  10911. v-if="dialogVisibleWord"
  10912. ></editor-bar>
  10913. </el-form>
  10914. <span slot="footer" class="dialog-footer">
  10915. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10916. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10917. </span>
  10918. </el-dialog>
  10919. <el-dialog
  10920. title="文档"
  10921. :visible.sync="dialogVisibleWordTeacher"
  10922. :append-to-body="true"
  10923. width="95%"
  10924. :before-close="handleClose"
  10925. class="dialog_diy"
  10926. >
  10927. <el-form>
  10928. <div class="w_name">
  10929. 学生姓名:<span>{{ sStudent.student }}</span>
  10930. </div>
  10931. <div>文档内容</div>
  10932. <editor-bar
  10933. v-model="wordJson.text"
  10934. v-if="dialogVisibleWordTeacher"
  10935. ></editor-bar>
  10936. </el-form>
  10937. <span slot="footer" class="dialog-footer">
  10938. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10939. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10940. </span>
  10941. </el-dialog>
  10942. <el-dialog
  10943. title="表格"
  10944. :visible.sync="dialogVisibleTable2"
  10945. :append-to-body="true"
  10946. width="95%"
  10947. :before-close="handleClose"
  10948. class="dialog_diy"
  10949. >
  10950. <el-form>
  10951. <div class="cont" v-html="tableJson.text"></div>
  10952. </el-form>
  10953. <span slot="footer" class="dialog-footer">
  10954. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10955. </span>
  10956. </el-dialog>
  10957. <el-dialog
  10958. title="文档"
  10959. :visible.sync="dialogVisibleTable3"
  10960. :append-to-body="true"
  10961. width="95%"
  10962. :before-close="handleClose"
  10963. class="dialog_diy"
  10964. >
  10965. <el-form>
  10966. <div class="cont" v-html="tableJson.text"></div>
  10967. </el-form>
  10968. <span slot="footer" class="dialog-footer">
  10969. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10970. </span>
  10971. </el-dialog>
  10972. <el-dialog
  10973. title="分组设置"
  10974. :visible.sync="dialogVisibleGroup"
  10975. :append-to-body="true"
  10976. width="95%"
  10977. :before-close="handleClose"
  10978. class="dialog_diy"
  10979. >
  10980. <div v-if="dialogVisibleGroup">
  10981. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10982. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10983. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10984. </div>
  10985. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10986. @click="lockChair">
  10987. 锁定位置
  10988. </div>
  10989. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10990. 解锁位置
  10991. </div> -->
  10992. <div class="group_switch">
  10993. <span>开放选座</span>
  10994. <el-switch
  10995. v-model="islock"
  10996. active-text=""
  10997. class="switchCss"
  10998. @change="lockChair"
  10999. ></el-switch>
  11000. </div>
  11001. <div
  11002. type="primary"
  11003. @click="updateGroup"
  11004. class="returnBtn"
  11005. style="background-color: #225bc7"
  11006. >
  11007. 分组设置
  11008. </div>
  11009. </div>
  11010. <div>
  11011. <div
  11012. class="g_d_box"
  11013. v-if="groupJson.group && groupStudent[toolindex]"
  11014. >
  11015. <div
  11016. class="g_d_group"
  11017. v-for="(g, gindex) in groupJson.group"
  11018. :key="gindex"
  11019. >
  11020. <div class="g_d_group_chair">
  11021. <div v-if="groupJson.number > 1">
  11022. <span
  11023. :class="{
  11024. isChair:
  11025. groupStudent[toolindex][gindex] &&
  11026. groupStudent[toolindex][gindex][0],
  11027. updateChair:
  11028. courseDetail.userid == userid &&
  11029. groupStudent[toolindex][gindex] &&
  11030. groupStudent[toolindex][gindex][0] &&
  11031. groupJson.islock == 2,
  11032. }"
  11033. ><span
  11034. class="updateChairBtn"
  11035. @click="
  11036. updateGroupChair(
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][0]
  11039. )
  11040. "
  11041. >修改</span
  11042. ></span
  11043. ><span>{{
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][0]
  11046. ? groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][0].name
  11048. : "空位置"
  11049. }}</span>
  11050. </div>
  11051. <div v-if="groupJson.number > 4">
  11052. <span
  11053. :class="{
  11054. isChair:
  11055. groupStudent[toolindex][gindex] &&
  11056. groupStudent[toolindex][gindex][4],
  11057. updateChair:
  11058. courseDetail.userid == userid &&
  11059. groupStudent[toolindex][gindex] &&
  11060. groupStudent[toolindex][gindex][4] &&
  11061. groupJson.islock == 2,
  11062. }"
  11063. ><span
  11064. class="updateChairBtn"
  11065. @click="
  11066. updateGroupChair(
  11067. groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][4]
  11069. )
  11070. "
  11071. >修改</span
  11072. ></span
  11073. ><span>{{
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][4]
  11076. ? groupStudent[toolindex][gindex] &&
  11077. groupStudent[toolindex][gindex][4].name
  11078. : "空位置"
  11079. }}</span>
  11080. </div>
  11081. <div v-if="groupJson.number > 8">
  11082. <span
  11083. :class="{
  11084. isChair:
  11085. groupStudent[toolindex][gindex] &&
  11086. groupStudent[toolindex][gindex][8],
  11087. updateChair:
  11088. courseDetail.userid == userid &&
  11089. groupStudent[toolindex][gindex] &&
  11090. groupStudent[toolindex][gindex][8] &&
  11091. groupJson.islock == 2,
  11092. }"
  11093. ><span
  11094. class="updateChairBtn"
  11095. @click="
  11096. updateGroupChair(
  11097. groupStudent[toolindex][gindex] &&
  11098. groupStudent[toolindex][gindex][8]
  11099. )
  11100. "
  11101. >修改</span
  11102. ></span
  11103. ><span>{{
  11104. groupStudent[toolindex][gindex] &&
  11105. groupStudent[toolindex][gindex][8]
  11106. ? groupStudent[toolindex][gindex] &&
  11107. groupStudent[toolindex][gindex][8].name
  11108. : "空位置"
  11109. }}</span>
  11110. </div>
  11111. </div>
  11112. <div class="g_d_group_tableBox">
  11113. <div class="g_d_group_chair2">
  11114. <div v-if="groupJson.number > 2">
  11115. <span
  11116. :class="{
  11117. isChair:
  11118. groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][2],
  11120. updateChair:
  11121. courseDetail.userid == userid &&
  11122. groupStudent[toolindex][gindex] &&
  11123. groupStudent[toolindex][gindex][2] &&
  11124. groupJson.islock == 2,
  11125. }"
  11126. ><span
  11127. class="updateChairBtn"
  11128. @click="
  11129. updateGroupChair(
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][2]
  11132. )
  11133. "
  11134. >修改</span
  11135. ></span
  11136. ><span>{{
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][2]
  11139. ? groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][2].name
  11141. : "空位置"
  11142. }}</span>
  11143. </div>
  11144. <div v-if="groupJson.number > 6">
  11145. <span
  11146. :class="{
  11147. isChair:
  11148. groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][6],
  11150. updateChair:
  11151. courseDetail.userid == userid &&
  11152. groupStudent[toolindex][gindex] &&
  11153. groupStudent[toolindex][gindex][6] &&
  11154. groupJson.islock == 2,
  11155. }"
  11156. ><span
  11157. class="updateChairBtn"
  11158. @click="
  11159. updateGroupChair(
  11160. groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][6]
  11162. )
  11163. "
  11164. >修改</span
  11165. ></span
  11166. ><span>{{
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][6]
  11169. ? groupStudent[toolindex][gindex] &&
  11170. groupStudent[toolindex][gindex][6].name
  11171. : "空位置"
  11172. }}</span>
  11173. </div>
  11174. </div>
  11175. <div class="g_d_group_table">
  11176. <div>
  11177. {{ g.name }}
  11178. </div>
  11179. <div>
  11180. <div
  11181. v-if="
  11182. courseDetail.userid == userid && groupJson.islock == 2
  11183. "
  11184. @click="deleteGroupChair(gindex)"
  11185. >
  11186. 移除组员
  11187. </div>
  11188. <div
  11189. @click="selectGroup(gindex)"
  11190. v-else-if="
  11191. groupStudentUid[toolindex] &&
  11192. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11193. "
  11194. >
  11195. 加入分组
  11196. </div>
  11197. <div
  11198. @click="
  11199. exitGroup(
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][
  11202. groupStudentUid[toolindex][gindex].indexOf(userid)
  11203. ].id
  11204. )
  11205. "
  11206. v-else-if="
  11207. groupStudentUid[toolindex] &&
  11208. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11209. "
  11210. >
  11211. 退出分组
  11212. </div>
  11213. </div>
  11214. </div>
  11215. <div class="g_d_group_chair2">
  11216. <div v-if="groupJson.number > 3">
  11217. <span
  11218. :class="{
  11219. isChair:
  11220. groupStudent[toolindex][gindex] &&
  11221. groupStudent[toolindex][gindex][3],
  11222. updateChair:
  11223. courseDetail.userid == userid &&
  11224. groupStudent[toolindex][gindex] &&
  11225. groupStudent[toolindex][gindex][3] &&
  11226. groupJson.islock == 2,
  11227. }"
  11228. ><span
  11229. class="updateChairBtn"
  11230. @click="
  11231. updateGroupChair(
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][3]
  11234. )
  11235. "
  11236. >修改</span
  11237. ></span
  11238. ><span>{{
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][3]
  11241. ? groupStudent[toolindex][gindex] &&
  11242. groupStudent[toolindex][gindex][3].name
  11243. : "空位置"
  11244. }}</span>
  11245. </div>
  11246. <div v-if="groupJson.number > 7">
  11247. <span
  11248. :class="{
  11249. isChair:
  11250. groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][7],
  11252. updateChair:
  11253. courseDetail.userid == userid &&
  11254. groupStudent[toolindex][gindex] &&
  11255. groupStudent[toolindex][gindex][7] &&
  11256. groupJson.islock == 2,
  11257. }"
  11258. ><span
  11259. class="updateChairBtn"
  11260. @click="
  11261. updateGroupChair(
  11262. groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][7]
  11264. )
  11265. "
  11266. >修改</span
  11267. ></span
  11268. ><span>{{
  11269. groupStudent[toolindex][gindex] &&
  11270. groupStudent[toolindex][gindex][7]
  11271. ? groupStudent[toolindex][gindex] &&
  11272. groupStudent[toolindex][gindex][7].name
  11273. : "空位置"
  11274. }}</span>
  11275. </div>
  11276. </div>
  11277. </div>
  11278. <div class="g_d_group_chair">
  11279. <div v-if="groupJson.number > 1">
  11280. <span
  11281. :class="{
  11282. isChair:
  11283. groupStudent[toolindex][gindex] &&
  11284. groupStudent[toolindex][gindex][1],
  11285. updateChair:
  11286. courseDetail.userid == userid &&
  11287. groupStudent[toolindex][gindex] &&
  11288. groupStudent[toolindex][gindex][1] &&
  11289. groupJson.islock == 2,
  11290. }"
  11291. ><span
  11292. class="updateChairBtn"
  11293. @click="
  11294. updateGroupChair(
  11295. groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][1]
  11297. )
  11298. "
  11299. >修改</span
  11300. ></span
  11301. ><span>{{
  11302. groupStudent[toolindex][gindex] &&
  11303. groupStudent[toolindex][gindex][1]
  11304. ? groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][1].name
  11306. : "空位置"
  11307. }}</span>
  11308. </div>
  11309. <div v-if="groupJson.number > 5">
  11310. <span
  11311. :class="{
  11312. isChair:
  11313. groupStudent[toolindex][gindex] &&
  11314. groupStudent[toolindex][gindex][5],
  11315. updateChair:
  11316. courseDetail.userid == userid &&
  11317. groupStudent[toolindex][gindex] &&
  11318. groupStudent[toolindex][gindex][5] &&
  11319. groupJson.islock == 2,
  11320. }"
  11321. ><span
  11322. class="updateChairBtn"
  11323. @click="
  11324. updateGroupChair(
  11325. groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][5]
  11327. )
  11328. "
  11329. >修改</span
  11330. ></span
  11331. ><span>{{
  11332. groupStudent[toolindex][gindex] &&
  11333. groupStudent[toolindex][gindex][5]
  11334. ? groupStudent[toolindex][gindex] &&
  11335. groupStudent[toolindex][gindex][5].name
  11336. : "空位置"
  11337. }}</span>
  11338. </div>
  11339. <div v-if="groupJson.number > 9">
  11340. <span
  11341. :class="{
  11342. isChair:
  11343. groupStudent[toolindex][gindex] &&
  11344. groupStudent[toolindex][gindex][9],
  11345. updateChair:
  11346. courseDetail.userid == userid &&
  11347. groupStudent[toolindex][gindex] &&
  11348. groupStudent[toolindex][gindex][9] &&
  11349. groupJson.islock == 2,
  11350. }"
  11351. ><span
  11352. class="updateChairBtn"
  11353. @click="
  11354. updateGroupChair(
  11355. groupStudent[toolindex][gindex] &&
  11356. groupStudent[toolindex][gindex][9]
  11357. )
  11358. "
  11359. >修改</span
  11360. ></span
  11361. ><span>{{
  11362. groupStudent[toolindex][gindex] &&
  11363. groupStudent[toolindex][gindex][9]
  11364. ? groupStudent[toolindex][gindex] &&
  11365. groupStudent[toolindex][gindex][9].name
  11366. : "空位置"
  11367. }}</span>
  11368. </div>
  11369. </div>
  11370. </div>
  11371. </div>
  11372. </div>
  11373. </div>
  11374. <span slot="footer" class="dialog-footer">
  11375. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11376. </span>
  11377. </el-dialog>
  11378. <el-dialog
  11379. title="分组设置"
  11380. :visible.sync="dialogVisibleGroup2"
  11381. :append-to-body="true"
  11382. width="650px"
  11383. :before-close="handleClose"
  11384. class="dialog_diy"
  11385. >
  11386. <div class="groupBox">
  11387. <div v-if="groupJson2.group" class="groupContent">
  11388. <div class="groupTitle">请设置小组数量及名称</div>
  11389. <div
  11390. v-for="(item, index) in groupJson2.group"
  11391. :key="index"
  11392. class="groupName"
  11393. >
  11394. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11395. <el-input
  11396. v-model="item.name"
  11397. placeholder="请输入名称..."
  11398. style="width: 250px"
  11399. ></el-input>
  11400. <!-- <div class="groupBtn">
  11401. <el-button type="primary" size="small" @click="addGroup(index)">
  11402. 添加</el-button>
  11403. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11404. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11405. </div> -->
  11406. </div>
  11407. </div>
  11408. <div class="groupContent">
  11409. <div class="groupTitle">请设置每组人数</div>
  11410. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11411. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11412. <el-input
  11413. v-model="groupJson.number"
  11414. style="width: 150px"
  11415. placeholder="请输入2-10的数字"
  11416. @change="numberPan"
  11417. ></el-input>
  11418. </div>
  11419. </div>
  11420. <span slot="footer" class="dialog-footer">
  11421. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11422. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11423. </span>
  11424. </el-dialog>
  11425. <el-dialog
  11426. title="作业提交"
  11427. :visible.sync="dialogVisibleGroupWork"
  11428. :append-to-body="true"
  11429. width="500px"
  11430. :before-close="handleClose"
  11431. class="dialog_change"
  11432. >
  11433. <div class="marginT">
  11434. <div>上传文件</div>
  11435. <div
  11436. class="chapter_add"
  11437. @click="addImg($event)"
  11438. v-if="studyJuri[0].cover.length == 0"
  11439. >
  11440. <div class="up_photo">
  11441. <img src="../assets/icon/uploadImg.png" alt />
  11442. </div>
  11443. <!-- <input
  11444. type="file"
  11445. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11446. style="display: none"
  11447. @change="beforeUpload1($event, 1)"
  11448. /> -->
  11449. <input
  11450. type="file"
  11451. accept="*"
  11452. style="display: none"
  11453. @change="beforeUpload1($event, 1)"
  11454. />
  11455. </div>
  11456. <!-- capture="camera" -->
  11457. <div
  11458. class="chapter_add"
  11459. style="
  11460. display: flex;
  11461. width: 100%;
  11462. flex-direction: row;
  11463. flex-wrap: wrap;
  11464. justify-content: flex-start;
  11465. padding: 15px 0;
  11466. "
  11467. v-if="studyJuri[0].cover.length > 0"
  11468. >
  11469. <div class="upCover">
  11470. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11471. <img :src="word" alt v-else-if="fileType == 1" />
  11472. <img :src="video" alt v-else-if="fileType == 2" />
  11473. <img :src="word2" alt v-else-if="fileType == 3" />
  11474. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11475. <div class="deleteWord" @click="clean(1)">
  11476. <img src="../assets/icon/deleteWorks.png" alt />
  11477. </div>
  11478. </div>
  11479. </div>
  11480. </div>
  11481. <div
  11482. class="upload_send"
  11483. @click="addCourseWorks2(taskCount)"
  11484. v-if="!proVisible"
  11485. >
  11486. 提交
  11487. </div>
  11488. </el-dialog>
  11489. <el-dialog
  11490. title="修改分组"
  11491. :visible.sync="dialogVisibleUpdateGroup"
  11492. :append-to-body="true"
  11493. width="350px"
  11494. :before-close="handleClose"
  11495. class="dialog_diy"
  11496. >
  11497. <div>
  11498. <h2>
  11499. {{ this.updateGroupUser.name }}
  11500. </h2>
  11501. <div style="color: rgb(171 171 171); margin-top: 10px">
  11502. 请选择要进入的分组
  11503. </div>
  11504. <el-radio-group v-model="checkChair">
  11505. <el-radio
  11506. style="display: block; margin-top: 20px"
  11507. v-for="(item, index) in updateGroupArray"
  11508. :label="item.label"
  11509. :key="index"
  11510. >{{ item.name }}</el-radio
  11511. >
  11512. </el-radio-group>
  11513. </div>
  11514. <span slot="footer" class="dialog-footer">
  11515. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11516. <el-button type="primary" @click="updateChair">确定</el-button>
  11517. </span>
  11518. </el-dialog>
  11519. <el-dialog
  11520. title="移除组员"
  11521. :visible.sync="dialogVisibleDeleteGroup"
  11522. :append-to-body="true"
  11523. width="350px"
  11524. :before-close="handleClose"
  11525. class="dialog_diy"
  11526. >
  11527. <div>
  11528. <h2>
  11529. {{ this.deleteGroupArray.name }}
  11530. </h2>
  11531. <div style="color: rgb(171 171 171); margin-top: 10px">
  11532. 请选择要删除的组员
  11533. </div>
  11534. <el-checkbox-group v-model="checkDeleteGroup">
  11535. <el-checkbox
  11536. style="display: flex; margin-top: 20px"
  11537. v-for="(item, index) in deleteGroupUser"
  11538. :label="item.userid"
  11539. :key="index"
  11540. >{{ item.name }}</el-checkbox
  11541. >
  11542. </el-checkbox-group>
  11543. </div>
  11544. <span slot="footer" class="dialog-footer">
  11545. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11546. <el-button type="primary" @click="deleteChair">确定</el-button>
  11547. </span>
  11548. </el-dialog>
  11549. <el-dialog
  11550. title="批量上传"
  11551. :visible.sync="dialogVisiblePl"
  11552. :append-to-body="true"
  11553. width="700px"
  11554. :before-close="handleClose"
  11555. class="dialog_change"
  11556. >
  11557. <div class="marginT">
  11558. <div class="plworkBox">
  11559. <div
  11560. class="chapter_add"
  11561. style="
  11562. display: flex;
  11563. width: 150px;
  11564. flex-direction: row;
  11565. flex-wrap: wrap;
  11566. justify-content: flex-start;
  11567. margin: 0 10px 10px 0;
  11568. "
  11569. v-for="(item, index) in plworkFile"
  11570. :key="index"
  11571. >
  11572. <div class="upCover2">
  11573. <img
  11574. :src="item.url"
  11575. alt
  11576. v-if="item.fileType == 1"
  11577. @click="previewImg(item.url)"
  11578. />
  11579. <img :src="word" alt v-else-if="item.fileType == 4" />
  11580. <img :src="video" alt v-else />
  11581. <!-- <span class="picName">{{ item.name }}</span> -->
  11582. <!-- <el-input
  11583. v-model="item.username"
  11584. placeholder="请输入学生名字"
  11585. style="margin-top: 10px"
  11586. ></el-input> -->
  11587. <div
  11588. class="pl_select_box"
  11589. @click="
  11590. getUpdateMore(true, checkUpload(), item.username, index)
  11591. "
  11592. >
  11593. {{ getSName(item.username) }}
  11594. </div>
  11595. <!-- <el-select
  11596. style="margin-top: 10px"
  11597. v-model="item.username"
  11598. filterable
  11599. allow-create
  11600. placeholder="请选择学生"
  11601. >
  11602. <el-option
  11603. v-for="item1 in checkUpload()"
  11604. :key="item1.userid"
  11605. :label="item1.name ? item1.name : item1.username"
  11606. :value="item1.userid"
  11607. >
  11608. </el-option>
  11609. </el-select> -->
  11610. <div class="deleteWord" @click="clean2(index)">
  11611. <img src="../assets/icon/deleteWorks.png" alt />
  11612. </div>
  11613. </div>
  11614. </div>
  11615. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11616. <div class="up_photo2">
  11617. <img src="../assets/icon/plwork.png" alt />
  11618. <span>点击上传文件</span>
  11619. </div>
  11620. <input
  11621. type="file"
  11622. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11623. multiple="multiple"
  11624. style="display: none"
  11625. @change="beforeUpload3($event, 6)"
  11626. />
  11627. </div>
  11628. </div>
  11629. </div>
  11630. <!-- capture="camera" -->
  11631. <div
  11632. class="upload_send"
  11633. @click="addCourseWorksPl(taskCount)"
  11634. v-if="!proVisible2"
  11635. >
  11636. 提交
  11637. </div>
  11638. </el-dialog>
  11639. <el-dialog
  11640. title="修改名称"
  11641. :visible.sync="dialogVisibleSname"
  11642. width="500px"
  11643. :before-close="handleClose"
  11644. class="dialog_diy"
  11645. center
  11646. >
  11647. <div
  11648. style="
  11649. text-align: center;
  11650. display: flex;
  11651. align-items: center;
  11652. justify-content: center;
  11653. "
  11654. >
  11655. <span class="tian1">名称</span>
  11656. <div
  11657. class="pl_select_box"
  11658. style="margin-left: 10px; width: 200px"
  11659. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11660. >
  11661. {{ getSName(worksSName) }}
  11662. </div>
  11663. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11664. placeholder="请选择学生">
  11665. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11666. :value="item.userid">
  11667. </el-option>
  11668. </el-select> -->
  11669. <!-- <el-input
  11670. v-model="worksSName"
  11671. style="width: 250px; margin: 15px 0px"
  11672. ></el-input> -->
  11673. </div>
  11674. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11675. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11676. <el-button type="primary" @click="updateName">确 定</el-button>
  11677. </span>
  11678. </el-dialog>
  11679. <el-dialog
  11680. title="英语写作"
  11681. :visible.sync="engDialogVisible"
  11682. :append-to-body="true"
  11683. width="800px"
  11684. :before-close="handleClose"
  11685. class="dialog_diy"
  11686. >
  11687. <onlineWrite
  11688. v-if="engDialogVisible"
  11689. :englishList="englishList"
  11690. :myAnswerList1="myAnswerList1"
  11691. :userid="userid"
  11692. ref="engJson"
  11693. ></onlineWrite>
  11694. <span slot="footer" class="dialog-footer">
  11695. <el-button @click="engDialogVisible = false">取 消</el-button>
  11696. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11697. </span>
  11698. </el-dialog>
  11699. <el-dialog
  11700. title="英语写作"
  11701. :visible.sync="engUpdateDialogVisible"
  11702. :append-to-body="true"
  11703. width="800px"
  11704. :before-close="handleClose"
  11705. class="dialog_diy fullStyle"
  11706. >
  11707. <div class="engUpBox">
  11708. <div class="engUpTop">
  11709. <div class="engTitle">
  11710. <div>作文题目:</div>
  11711. <div>{{ englishList1.engTitle }}</div>
  11712. </div>
  11713. <div class="engText">
  11714. <div>作文内容:</div>
  11715. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11716. </div>
  11717. </div>
  11718. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11719. <div class="oldBox">
  11720. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11721. <div class="oldText">
  11722. <div class="detailBox">
  11723. <div class="oldDetail">
  11724. <div>标题:</div>
  11725. <div>{{ oldEnglishJson.engTitle }} </div>
  11726. </div>
  11727. <div class="oldDetail1">
  11728. <div>正文:</div>
  11729. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11730. </div>
  11731. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11732. <div>图片:</div>
  11733. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11734. </div>
  11735. </div>
  11736. </div>
  11737. </div>
  11738. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11739. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11740. <div class="oldText">
  11741. <div class="detailBox" style="position: relative;">
  11742. <div class="oldDetail">
  11743. <div>标题:</div>
  11744. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11745. <div v-else v-html="newEnglishList.engTitle"></div>
  11746. </div>
  11747. <div class="oldDetail">
  11748. <div>正文:</div>
  11749. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11750. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11751. </div>
  11752. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11753. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11754. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11755. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11756. </div>
  11757. </div>
  11758. </div>
  11759. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11760. <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">
  11761. <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>
  11762. <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>
  11763. </div>
  11764. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11765. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11766. <div class="detailBox" style="position: relative;">
  11767. <div class="oldDetail">
  11768. <div>标题:</div>
  11769. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11770. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11771. </div>
  11772. <div class="oldDetail">
  11773. <div>正文:</div>
  11774. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11775. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11776. </div>
  11777. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11778. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11779. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11780. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11781. </div>
  11782. </div>
  11783. <div class="oldText" v-else-if="newEngIndex == -1">
  11784. <div class="detailBox" style="position: relative;">
  11785. <div class="oldDetail">
  11786. <div>标题:</div>
  11787. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11788. <div v-else v-html="newEnglishList.engTitle"></div>
  11789. </div>
  11790. <div class="oldDetail">
  11791. <div>正文:</div>
  11792. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11793. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11794. </div>
  11795. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11796. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11797. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11798. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11799. </div>
  11800. </div>
  11801. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11802. <div class="detailBox" style="position: relative;">
  11803. <div class="oldDetail">
  11804. <div>标题:</div>
  11805. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11806. <div v-else>
  11807. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11808. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11809. </div>
  11810. </div>
  11811. <div class="oldDetail">
  11812. <div>正文:</div>
  11813. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11814. <div v-else>
  11815. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11816. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11817. </div>
  11818. </div>
  11819. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11820. <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>
  11821. <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>
  11822. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11823. </div>
  11824. </div>
  11825. </div>
  11826. </div>
  11827. </div>
  11828. <span slot="footer" class="dialog-footer">
  11829. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11830. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11831. </span>
  11832. </el-dialog>
  11833. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11834. <interVideo
  11835. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11836. :videoJson="videoJson"
  11837. :userid="userid"
  11838. :id="id"
  11839. :courseType="courseType"
  11840. :taskCount="taskCount"
  11841. :toolindex="toolindex"
  11842. :videoType="videoType"
  11843. ></interVideo>
  11844. <UpdateMore
  11845. :dialogVisibleMember.sync="dialogVisibleMember"
  11846. :cList="uploadStudentJuri"
  11847. :userid="userid"
  11848. :searchTN="worksSName2"
  11849. @setPlname="setPlname"
  11850. ></UpdateMore>
  11851. <wordCloud
  11852. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11853. :data="wordCloudData"
  11854. ></wordCloud>
  11855. <el-dialog
  11856. title="挑人"
  11857. :visible.sync="dialogVisiblePickPeople"
  11858. width="650px"
  11859. :before-close="handleClose"
  11860. class="dialog_diy"
  11861. center
  11862. >
  11863. <div class="pick_box">
  11864. <div
  11865. class="noWorksName"
  11866. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11867. v-for="(item, index) in uploadStudentJuri"
  11868. :key="index"
  11869. @click="pickStudent(item)"
  11870. >
  11871. {{ item.name }}
  11872. </div>
  11873. </div>
  11874. </el-dialog>
  11875. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11876. :englishVoiceJson='englishVoiceJson'
  11877. :userid="userid"
  11878. :id="id"
  11879. :courseType="courseType"
  11880. :taskCount="taskCount"
  11881. :toolindex="toolindex"
  11882. @selectSWorks="selectSWorks"
  11883. @selectStudent="selectStudent"
  11884. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11885. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11886. :userid="userid"
  11887. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11888. :commentDetail="commentDetail"
  11889. :courseDetail="courseDetail"
  11890. :wScore="wScore"
  11891. :scoreDetail="scoreDetail"
  11892. @selectSWorks="selectSWorks"
  11893. @selectStudent="selectStudent"></checkEnglishVoice>
  11894. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11895. <choseWorksDetailDialog
  11896. ref="choseWorksDetailDialogRef"
  11897. :worksStudentData="this.worksStudent"
  11898. :noWorksSData="noWorksS"
  11899. :chapInfoListData="chapInfoList"
  11900. :courseType="courseType"
  11901. :taskCount="taskCount"
  11902. @deleteWorks="deleteWorks"
  11903. @openTools="openTools"
  11904. @openWord="openWord"
  11905. @openScore="openScore"
  11906. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11907. />
  11908. </div>
  11909. </template>
  11910. <script>
  11911. import "../common/aws-sdk-2.235.1.min.js";
  11912. // import pdf from "./components/pdf3";
  11913. import pdf from "./components/vpdf";
  11914. import AskStatic from "./components/askStatic";
  11915. import AskStatic2 from "./components/askStatic2";
  11916. import AnswerData2 from "./components/answerData2";
  11917. import AnswerData from "./components/answerData";
  11918. import EditorBar from "./tools/wangEnduit.vue";
  11919. import Table from "./tools/table.vue";
  11920. import Time from "./tools/time.vue";
  11921. import Mind from "./tools/jsmind.vue";
  11922. import Sunburst from "./tools/sunburst";
  11923. import SeeBoard from "./tools/seeBoard";
  11924. import * as imageConversion from "image-conversion";
  11925. import Audio from "./components/audio.vue";
  11926. import ImgDraw from "./tools/imgDraw/imgDraw";
  11927. import { Empty } from "element-ui";
  11928. import RecordRTC from "recordrtc";
  11929. import interVideo from "./interVideo/index.vue";
  11930. import UpdateMore from "./updateMore/updateMore.vue";
  11931. import wordCloud from "./wordCloud/index.vue";
  11932. import axios from "axios";
  11933. import JSZip from "jszip";
  11934. import FileSaver from "file-saver";
  11935. import onlineWrite from "./components/onlineWrite";
  11936. import englishEva from "./components/englishEva";
  11937. import * as Diff from 'diff'
  11938. import EnglishVoice from './EnglishVoice2/index.vue'
  11939. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11940. import correctText from './components/correctText.vue'
  11941. import scoreItem from './scoreList/scoreItem.vue'
  11942. import scoreZong from './scoreZong/index.vue'
  11943. import classRoomHelper from './classRoomHelper/index.vue'
  11944. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11945. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11946. import { v4 as uuidv4 } from "uuid";
  11947. const getFile = (url) => {
  11948. return new Promise((resolve, reject) => {
  11949. var credentials = {
  11950. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11951. secretAccessKey: "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",
  11952. }; //秘钥形式的登录上传
  11953. window.AWS.config.update(credentials);
  11954. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11955. let url2 = url;
  11956. let _url2 = "";
  11957. if (
  11958. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11959. ) {
  11960. _url2 = url2.split(
  11961. "https://view.officeapps.live.com/op/view.aspx?src="
  11962. )[1];
  11963. } else {
  11964. _url2 = url2;
  11965. }
  11966. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11967. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11968. var params = {
  11969. Bucket: "ccrb",
  11970. Key: name
  11971. };
  11972. s3.getObject(params, function (err, data) {
  11973. if (err) {
  11974. console.log(err, err.stack)
  11975. resolve({ data: 1 });
  11976. }else {
  11977. resolve({ data: data.Body });
  11978. console.log(data);
  11979. } // sxuccessful response
  11980. });
  11981. // axios({
  11982. // method: "get",
  11983. // url,
  11984. // responseType: "blob",
  11985. // })
  11986. // .then((data) => {
  11987. // resolve({ data: data.data });
  11988. // })
  11989. // .catch((error) => {
  11990. // resolve({ data: 1 });
  11991. // // reject(error.toString());
  11992. // });
  11993. });
  11994. };
  11995. export default {
  11996. components: {
  11997. EditorBar,
  11998. Time,
  11999. pdf,
  12000. AskStatic,
  12001. AskStatic2,
  12002. Mind,
  12003. Sunburst,
  12004. SeeBoard,
  12005. AnswerData2,
  12006. AnswerData,
  12007. Audio,
  12008. ImgDraw,
  12009. Table,
  12010. interVideo,
  12011. UpdateMore,
  12012. wordCloud,
  12013. onlineWrite,
  12014. englishEva,
  12015. EnglishVoice,
  12016. checkEnglishVoice,
  12017. correctText,
  12018. scoreItem,
  12019. classRoomHelper,
  12020. scoreZong,
  12021. statisticalAnalysis,
  12022. choseWorksDetailDialog
  12023. },
  12024. data() {
  12025. return {
  12026. bg: null,
  12027. drawShow: false,
  12028. dialogVisible: false,
  12029. dialogVisiblePl: false,
  12030. commentDialogVisible: false,
  12031. dialogVisibleMember: false,
  12032. dialogVisibleWordCloud: false,
  12033. videoVisible: false,
  12034. isStar: false,
  12035. studentEvalDialogVisible: false,
  12036. studentEvalDialogVisibleTeacher: false,
  12037. dialogVisibleSelect: false,
  12038. dialogVisibleSelectTeacher: false,
  12039. dialogVisibleScore: false,
  12040. dialogVisibleENScore: false,
  12041. dialogVisibleSentence: false,
  12042. dialogVisibleSentenceTeacher: false,
  12043. dialogVisibleSentence1: false,
  12044. dialogVisibleWorks: false,
  12045. dialogVisibleTable: false,
  12046. dialogVisibleTableTeacher: false,
  12047. dialogVisibleWord: false,
  12048. dialogVisibleWordTeacher: false,
  12049. dialogVisibleTable2: false,
  12050. dialogVisibleTable3: false,
  12051. dialogVisibleGroupWork: false,
  12052. dialogVisibleUpdateGroup: false,
  12053. dialogVisibleDeleteGroup: false,
  12054. dialogVisibleSname: false,
  12055. dialogVisibleVideo: false,
  12056. dialogVisiblePickPeople: false,
  12057. engDialogVisible: false,
  12058. engUpdateDialogVisible: false,
  12059. engEvaDialogVisible: false,
  12060. evaEngJson: {
  12061. teacherJson: {},
  12062. studentJson: {},
  12063. message: {},
  12064. },
  12065. isNoUserid:false,
  12066. engListLength:0,
  12067. engWid:"",
  12068. newEnglishList:{
  12069. engTitle:"",
  12070. engText:"",
  12071. },
  12072. newEnglishList1:[],
  12073. oldEnglishJson:{},
  12074. oldEnglishJson1:{},
  12075. englishList1:{},
  12076. englishList:{},
  12077. myAnswerList1:{},
  12078. topHeight:0,
  12079. newEngIndex:-1,
  12080. englishToolIndex:0,
  12081. worksSName: "",
  12082. classJuri: [],
  12083. uploadStudentJuri: [],
  12084. uploadCid: "",
  12085. snameWid: "",
  12086. sStudent: {},
  12087. sTool: "",
  12088. bzText: "",
  12089. commentDetail: [],
  12090. selectAnswer: [],
  12091. videoDetail: {},
  12092. selectJson: {},
  12093. eScore: { eBzText: "", eStar: [] },
  12094. id: this.$route.query.courseId,
  12095. userid: this.$route.query.userid,
  12096. classId: this.$route.query.cid,
  12097. // courseTypeLine: this.$route.query.type,
  12098. oid: this.$route.query.oid,
  12099. org: this.$route.query.org,
  12100. tType: this.$route.query.tType,
  12101. courseType: this.$route.query.type,
  12102. screenType: this.$route.query.screenType,
  12103. tcid2: this.$route.query.tcid,
  12104. tcid: "",
  12105. pptImgUrl: "",
  12106. pptImgUrl1: "",
  12107. commentText: "",
  12108. full: false,
  12109. sIsOpen: false,
  12110. IsLookOpen: false,
  12111. IsFollow: false,
  12112. pzDialog: false,
  12113. contentDialog: false,
  12114. mlDialog: false,
  12115. type: 1,
  12116. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12117. sentenceList1: [],
  12118. tableJson: [],
  12119. tableJsonO: [],
  12120. wordJson: [],
  12121. wordJsonO: [],
  12122. vedio: [],
  12123. text: [],
  12124. textList: [],
  12125. line: [],
  12126. lineList: [],
  12127. chapTools: [],
  12128. chapToolList: [],
  12129. file: [],
  12130. fileC: [],
  12131. vedioTime: [],
  12132. upToolImg: "",
  12133. preTime: 0,
  12134. rateList: {
  12135. ca: 0,
  12136. },
  12137. rateParams: [],
  12138. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12139. studyJuri: [
  12140. {
  12141. content: "",
  12142. cover: [],
  12143. upVedio: [],
  12144. upFile: [],
  12145. },
  12146. ],
  12147. isClose: 0,
  12148. plworkFile: [],
  12149. mr: require("../assets/vedioPic.png"),
  12150. word: require("../assets/icon/isWord.png"),
  12151. word2: require("../assets/icon/word2.png"),
  12152. video: require("../assets/icon/isVideo.png"),
  12153. noLikes: require("../assets/icon/comment/noLikes.png"),
  12154. likes: require("../assets/icon/comment/likes.png"),
  12155. scoreImg: require("../assets/score.png"),
  12156. courseDetail: {},
  12157. reply: "",
  12158. isSelect: false,
  12159. chapInfo: [],
  12160. chapInfoList: [],
  12161. taskCount: 0,
  12162. imgList: [],
  12163. noImgList: [],
  12164. pzList: [],
  12165. timeWorkList: [],
  12166. PlTextList: [
  12167. "Excellent!",
  12168. "nice!",
  12169. "很有创意!",
  12170. "还不错哦~",
  12171. "继续努力哦~",
  12172. ],
  12173. isClickNav: "",
  12174. navId: "",
  12175. playerOptions: {
  12176. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12177. autoplay: false, //如果true,浏览器准备好时开始回放。
  12178. muted: false, // 默认情况下将会消除任何音频。
  12179. loop: false, // 导致视频一结束就重新开始。
  12180. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12181. language: "zh-CN",
  12182. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12183. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12184. sources: [
  12185. {
  12186. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12187. src: "", //url地址require("../../assets/media/aaa.mp4")
  12188. },
  12189. ],
  12190. // poster: require("../../assets/tu31.png"), //你的封面地址
  12191. // poster: dataRes.imgUrl, //你的封面地址
  12192. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12193. controlBar: {
  12194. timeDivider: true, //当前时间和持续时间的分隔符
  12195. durationDisplay: true, //显示持续时间
  12196. remainingTimeDisplay: false, //是否显示剩余时间功能
  12197. fullscreenToggle: true, //全屏按钮
  12198. },
  12199. },
  12200. playerOptions1: {
  12201. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12202. autoplay: false, //如果true,浏览器准备好时开始回放。
  12203. muted: false, // 默认情况下将会消除任何音频。
  12204. loop: false, // 导致视频一结束就重新开始。
  12205. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12206. language: "zh-CN",
  12207. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12208. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12209. sources: [
  12210. {
  12211. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12212. src: "", //url地址require("../../assets/media/aaa.mp4")
  12213. },
  12214. ],
  12215. // poster: require("../../assets/tu31.png"), //你的封面地址
  12216. // poster: dataRes.imgUrl, //你的封面地址
  12217. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12218. controlBar: {
  12219. timeDivider: true, //当前时间和持续时间的分隔符
  12220. durationDisplay: true, //显示持续时间
  12221. remainingTimeDisplay: false, //是否显示剩余时间功能
  12222. fullscreenToggle: true, //全屏按钮
  12223. },
  12224. },
  12225. playerO: {},
  12226. noneBtnImg: false,
  12227. proVisible: false,
  12228. proVisible2: false,
  12229. progress: 0,
  12230. isFinishSize: 0,
  12231. isAllSize: 0,
  12232. questionAnswer: "",
  12233. answerQ: "", //问答标题
  12234. rateJson: [],
  12235. wbCount: 0,
  12236. wordCount: 0,
  12237. mindCount: 0,
  12238. askCount: 0,
  12239. noteCount: 0,
  12240. mindNetWorkCount: 0,
  12241. libraryCount: 0,
  12242. workCount: 0,
  12243. timeCount: 0,
  12244. answerCount: 0,
  12245. trainCount: 0,
  12246. evalCount: 0,
  12247. dialogImageUrl: "",
  12248. pictureDialog: false,
  12249. toolTypeList: [],
  12250. dialogVisible1: false,
  12251. dialogVisible2: false,
  12252. dialogVisible3: false,
  12253. dialogVisible6: false,
  12254. dialogVisible4: false,
  12255. isNoHomeWork: false,
  12256. dialogVisible5: false,
  12257. dialogVisible5Teacher: false,
  12258. dialogVisibleChoice: false,
  12259. dialogVisibleChoiceTeacher: false,
  12260. answerDialogVisible: false,
  12261. answerDialogVisibleTeacher: false,
  12262. juriVisible: false,
  12263. timeDialogVisible: false,
  12264. replyDialogVisible: false,
  12265. toolDialogVisible: false,
  12266. replyIndex: 0,
  12267. replyPid: "",
  12268. radio: [],
  12269. isAsk: false,
  12270. askJson: {
  12271. askCount: 1,
  12272. askTitle: "",
  12273. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12274. },
  12275. testJson: {},
  12276. videoType:0,
  12277. checkJson: [],
  12278. askList: [],
  12279. answerList: [],
  12280. navList: [],
  12281. addPzDialog: false,
  12282. pzConText: "",
  12283. worksStudent: [],
  12284. isCloseList: [],
  12285. workStudent: [],
  12286. groupStudent: [],
  12287. groupStudentUid: [],
  12288. noWorksS: [],
  12289. isWorksS: [],
  12290. noWorksStudent: [],
  12291. toolindex: 0,
  12292. toolDetailIndex: null,
  12293. groupIndex: 0,
  12294. workTypeB: false,
  12295. workTypeC: false,
  12296. isAnswer: false,
  12297. isHovered: false,
  12298. isHovered1: false,
  12299. isHovered2: false,
  12300. commentTagShow:0,
  12301. timer: null,
  12302. opertimer: null,
  12303. showType: 0,
  12304. fileType: 0,
  12305. showPDF: false,
  12306. noteName: "",
  12307. evaJuri: [],
  12308. evalua: "",
  12309. eTitle: "",
  12310. eName: "",
  12311. eJson: {},
  12312. fid: "", //一级
  12313. sid: "", //二级
  12314. tid: "", //二级
  12315. typeMode: 1,
  12316. eJSONNum: 0,
  12317. Etype: 1,
  12318. data: {
  12319. meta: {
  12320. name: "example",
  12321. author: "dd@163.com",
  12322. version: "0.2",
  12323. },
  12324. format: "node_array",
  12325. data: [{ id: "root", isroot: true, topic: "" }],
  12326. },
  12327. fullDialogVisible: false,
  12328. fulltype: "",
  12329. fullUrl: "",
  12330. commentIndexJson: {},
  12331. Stbodywidth: 0,
  12332. ispzType: 0,
  12333. pzType: 1,
  12334. wScore: 0,
  12335. scoreDetail: "",
  12336. videoStart: false,
  12337. recorder: null,
  12338. groupJson: {},
  12339. islock: false,
  12340. groupJson2: {},
  12341. dialogVisibleGroup: false,
  12342. dialogVisibleGroup2: false,
  12343. updateGroupArray: [],
  12344. updateGroupUser: {},
  12345. deleteGroupUser: [],
  12346. deleteGroupArray: {},
  12347. checkChair: "",
  12348. checkDeleteGroup: [],
  12349. inviteCode: "",
  12350. courseGroupStudent: [],
  12351. courseGroupStudentUid: [],
  12352. courseGroup: {},
  12353. isGroup: false,
  12354. // toolIndex: null,
  12355. tool: {},
  12356. isWorkTool: [
  12357. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12358. ], //, 40
  12359. videoJson: {},
  12360. toolType: 0,
  12361. checktoolArray: [],
  12362. vChapterData: [],
  12363. isUpdateToolDetail: false,
  12364. isUpdateToolDetail1: false,
  12365. updateToolDetailInner: "",
  12366. checkboxList: [],
  12367. plIndex: "",
  12368. worksSName2: "",
  12369. worksSid: "",
  12370. wordCloudData: [],
  12371. isPickStudent: [],
  12372. pzStype: 1,
  12373. myAnList: {},
  12374. userMes:{},
  12375. downLoading: false,
  12376. greyType: false,
  12377. correctWord: [],
  12378. isUpdateText: "",
  12379. EnglishVoiceDialog: false,
  12380. englishVoiceJson: {},
  12381. englishVoiceJsonWork:[],
  12382. scoreList:{
  12383. listdata:[],
  12384. isScoreList:[],
  12385. },
  12386. classRoomHelperWidth: '85px',
  12387. orgArray:[],
  12388. oidArray:[],
  12389. toolsList:{
  12390. 58: "模拟驾驶",
  12391. 59: "路径搜索",
  12392. 60: "深度学习",
  12393. 10: "倒计时",
  12394. 65: "挑人",
  12395. 7: "思维网格",
  12396. 1: "电子白板",
  12397. 52: "文档",
  12398. 3: "思维导图",
  12399. 48: "表格",
  12400. 49: "学生分组",
  12401. 4: "卷调查",
  12402. 45: "选择题",
  12403. 15: "问答",
  12404. 16: "作业提交",
  12405. 50: "批量上传",
  12406. 41: "选择匹配",
  12407. 47: "排序",
  12408. 40: "个人评价",
  12409. 18: "训练平台",
  12410. 21: "AIoT Blockly",
  12411. 23: "AI Python",
  12412. 24: "AI Blockly",
  12413. 32: "源码编辑",
  12414. 57: "CocoPi",
  12415. 63: "海龟编程",
  12416. 28: "翻译",
  12417. 31: "数字画板",
  12418. 39: "GeoGebra",
  12419. 66: "公式编辑",
  12420. 67: "分子结构",
  12421. 68: "时间轴",
  12422. 69: "英语写作",
  12423. 70: "英语口语",
  12424. 25: "目标管理",
  12425. 26: "课程设计",
  12426. 62: "交互视频",
  12427. 71: "AI智能体"
  12428. },
  12429. splitScreenData:{
  12430. isOpen:false,
  12431. userId:"",
  12432. uid:"",
  12433. myUid:"",
  12434. loading:false,
  12435. behavior:null,
  12436. }
  12437. };
  12438. },
  12439. methods: {
  12440. getAIJ(){
  12441. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12442. let oid = res.data[0];
  12443. let org = res.data[1];
  12444. let oidArray = [];
  12445. let orgArray = [];
  12446. oid.forEach(i=>oidArray.push(i.oid))
  12447. org.forEach(i=>orgArray.push(i.oid))
  12448. this.orgArray = orgArray;
  12449. this.oidArray = oidArray;
  12450. })
  12451. },
  12452. insertMemorandum(_html){//保存行为操作
  12453. //variable
  12454. //btn
  12455. let params = [{
  12456. uid:this.userid,
  12457. courseId:this.id+(this.tcid2?this.tcid2:''),
  12458. content:_html
  12459. }]
  12460. console.log("👇👇")
  12461. console.log(params)
  12462. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12463. if(res.data==1){
  12464. console.log('保存操作成功')
  12465. }else{
  12466. console.log('保存操作失败')
  12467. }
  12468. }).catch(e=>{
  12469. console.log('保存操作失败')
  12470. console.log(e)
  12471. })
  12472. },
  12473. gx(){
  12474. this.$forceUpdate();
  12475. },
  12476. isUpdateCorrect(t,p){
  12477. if(this.greyType == false){
  12478. this.isUpdateText = t;
  12479. this.greyType = true;
  12480. }else{
  12481. if(p == 1){
  12482. this.newEnglishList.engText = this.isUpdateText;
  12483. }else if(p == 2){
  12484. this.oldEnglishJson1.engText = this.isUpdateText;
  12485. }else if(p == 3){
  12486. this.newEnglishList.engText = this.isUpdateText;
  12487. }else{
  12488. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12489. }
  12490. this.greyType = false
  12491. }
  12492. },
  12493. aiCorrect(t,p){
  12494. let aiText = "";
  12495. const loading = this.$loading.service({
  12496. background: "rgba(255, 255, 255)",
  12497. target: document.querySelectorAll(".loadingText")[0],
  12498. });
  12499. let param = {
  12500. model: "gpt-3.5-turbo",
  12501. temperature: 0,
  12502. max_tokens: 2048,
  12503. top_p: 1,
  12504. frequency_penalty: 0,
  12505. presence_penalty: 0,
  12506. messages: [
  12507. {
  12508. role: "user",
  12509. content:
  12510.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12511. },
  12512. ],
  12513. uid: this.userid,
  12514. stream: false,
  12515. };
  12516. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12517. (res) => {
  12518. if (
  12519. res.data.FunctionResponse &&
  12520. res.data.FunctionResponse.result &&
  12521. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12522. ) {
  12523. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12524. return;
  12525. }
  12526. aiText =
  12527. res.data.FunctionResponse.choices[0].message.content;
  12528. aiText = aiText.replace(/%/g,"%25");
  12529. // let w = "";
  12530. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12531. // for(var k = 0;k<a.length;k++){
  12532. // //diffWordsWithSpace
  12533. // if(a.length > 1){
  12534. // if(a[k].added == true){
  12535. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12536. // }else if(a[k].removed == true){
  12537. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12538. // }else{
  12539. // w += '<span>' + a[k].value + '</span>';
  12540. // }
  12541. // }else{
  12542. // if(p == 1){
  12543. // w = this.newEnglishList.engText;
  12544. // }else if(p == 2){
  12545. // w = this.oldEnglishJson1.engText;
  12546. // }else if(p == 3){
  12547. // w = this.newEnglishList.engText;
  12548. // }else{
  12549. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12550. // }
  12551. // }
  12552. // }
  12553. if(p == 1){
  12554. this.newEnglishList.engText = aiText;
  12555. }else if(p == 2){
  12556. this.oldEnglishJson1.engText = aiText;
  12557. }else if(p == 3){
  12558. this.newEnglishList.engText = aiText;
  12559. }else{
  12560. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12561. }
  12562. loading.close();
  12563. },
  12564. (err) => {
  12565. console.log(err);
  12566. loading.close();
  12567. }
  12568. );
  12569. },
  12570. addToolChoose() {
  12571. if (!this.checktoolArray.length) {
  12572. this.$message.error("请选择要添加的任务");
  12573. return;
  12574. }
  12575. if (
  12576. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12577. this.taskCount
  12578. ].toolChoose[0].tool.length
  12579. ) {
  12580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12581. this.taskCount
  12582. ].toolChoose[0].tool = this.checktoolArray;
  12583. } else {
  12584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12585. this.taskCount
  12586. ].toolChoose.push({
  12587. tool: this.checktoolArray,
  12588. toolDetail: "",
  12589. toolType: 0,
  12590. askCount: 1,
  12591. askTitle: "",
  12592. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12593. });
  12594. }
  12595. let params = [
  12596. {
  12597. cid: this.id,
  12598. chapters: JSON.stringify(this.chapInfoList),
  12599. uid: this.userid,
  12600. unitIndex: this.courseType,
  12601. },
  12602. ];
  12603. this.ajax
  12604. .post(this.$store.state.api + "updateWorkNew4", params)
  12605. .then((res) => {
  12606. this.$message({
  12607. message: "添加成功",
  12608. type: "success",
  12609. });
  12610. this.checktoolArray = [];
  12611. this.getCourseDetail(2);
  12612. this.checkBz(
  12613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12614. this.taskCount
  12615. ].toolChoose.length - 1
  12616. );
  12617. this.toolDialogVisible = false;
  12618. this.refreshCourse();
  12619. this.$forceUpdate();
  12620. })
  12621. .catch((err) => {
  12622. console.error(err);
  12623. });
  12624. },
  12625. checkBz(index) {
  12626. this.isUpdateToolDetail = false;
  12627. this.$forceUpdate();
  12628. setTimeout(() => {
  12629. document.scrollingElement.scrollTop =
  12630. document.querySelectorAll(".filebox")[index].offsetTop +
  12631. document.querySelector(".student_body").offsetTop;
  12632. }, 500);
  12633. },
  12634. updateToolDetail(i, type) {
  12635. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12636. this.toolDetailIndex = i
  12637. this.isUpdateToolDetail1 = true;
  12638. setTimeout(() => {
  12639. this.updateToolDetailInner = JSON.parse(
  12640. JSON.stringify(
  12641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12642. this.taskCount
  12643. ].toolChoose[i].toolDetail
  12644. )
  12645. );
  12646. document.querySelector(".checkTextArea").focus();
  12647. }, 0);
  12648. } else if((this.isUpdateToolDetail1 && type != 2)){
  12649. // this.toolDetailIndex = i;
  12650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12651. this.taskCount
  12652. ].toolChoose[i].toolDetail = JSON.parse(
  12653. JSON.stringify(this.updateToolDetailInner)
  12654. );
  12655. let params = [
  12656. {
  12657. cid: this.id,
  12658. chapters: JSON.stringify(this.chapInfoList),
  12659. uid: this.userid,
  12660. unitIndex: this.courseType,
  12661. },
  12662. ];
  12663. this.ajax
  12664. .post(this.$store.state.api + "updateWorkNew4", params)
  12665. .then((res) => {
  12666. this.isUpdateToolDetail1 = false;
  12667. this.$message({
  12668. message: "修改成功",
  12669. type: "success",
  12670. });
  12671. this.toolDetailIndex = null;
  12672. this.updateToolDetailInner = "";
  12673. this.getCourseDetail(2);
  12674. this.$forceUpdate();
  12675. })
  12676. .catch((err) => {
  12677. console.error(err);
  12678. });
  12679. } else if((this.isUpdateToolDetail1 && type == 2)){
  12680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12681. this.taskCount
  12682. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12683. JSON.stringify(this.updateToolDetailInner)
  12684. );
  12685. let params = [
  12686. {
  12687. cid: this.id,
  12688. chapters: JSON.stringify(this.chapInfoList),
  12689. uid: this.userid,
  12690. unitIndex: this.courseType,
  12691. },
  12692. ];
  12693. this.ajax
  12694. .post(this.$store.state.api + "updateWorkNew4", params)
  12695. .then((res) => {
  12696. this.$message({
  12697. message: "修改成功",
  12698. type: "success",
  12699. });
  12700. this.toolDetailIndex = i;
  12701. this.isUpdateToolDetail1 = true;
  12702. setTimeout(() => {
  12703. this.updateToolDetailInner = JSON.parse(
  12704. JSON.stringify(
  12705. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12706. this.taskCount
  12707. ].toolChoose[i].toolDetail
  12708. )
  12709. );
  12710. document.querySelector(".checkTextArea").focus();
  12711. }, 0);
  12712. this.getCourseDetail(2);
  12713. this.$forceUpdate();
  12714. })
  12715. .catch((err) => {
  12716. console.error(err);
  12717. });
  12718. }
  12719. },
  12720. jumpGj(i, j, k, l) {
  12721. for (var z = 0; z < this.navList.length; z++) {
  12722. for (var q = 0; q < this.navList[z].task.length; q++) {
  12723. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12724. this.navList[z].task[q].tool[w].isTool = false;
  12725. }
  12726. }
  12727. }
  12728. this.navList[i].task[j].tool[k].isTool =
  12729. !this.navList[i].task[j].tool[k].isTool;
  12730. var a = document.scrollingElement;
  12731. this.navId = ""
  12732. let target = document.querySelector(`#gj${k}`);
  12733. if (target) {
  12734. target.scrollIntoView(true);
  12735. setTimeout(() => {
  12736. a.scrollTop = a.scrollTop - 150;
  12737. }, 0);
  12738. }
  12739. let flag = this.courseType == i;
  12740. let flag2 = this.taskCount == j
  12741. if (l) {
  12742. this.courseType = i;
  12743. // this.navId = l;
  12744. this.taskCount = j;
  12745. this.selectPz();
  12746. this.getHomeWork();
  12747. this.getCourseDetail(2);
  12748. if(flag){
  12749. if(flag2){
  12750. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12751. }else{
  12752. 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>`)
  12753. }
  12754. }else{
  12755. 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>`)
  12756. }
  12757. }
  12758. // var b = this.$refs["bz" + k][0];
  12759. // a.scrollTop = b.offsetTop;
  12760. },
  12761. addTools2(i) {
  12762. if (i == 4) {
  12763. // this.openTools2(4);
  12764. this.$message.error("暂未开放");
  12765. return;
  12766. }
  12767. if (i == 45) {
  12768. // this.openTools2(45);
  12769. this.$message.error("暂未开放");
  12770. return;
  12771. }
  12772. if (i == 47) {
  12773. // this.openTools2(47);
  12774. this.$message.error("暂未开放");
  12775. return;
  12776. }
  12777. if (i == 49) {
  12778. // this.openTools2(49);
  12779. this.$message.error("暂未开放");
  12780. return;
  12781. }
  12782. if (i == 62) {
  12783. // this.openTools(itemTaskIndex, 62, toolIndex);
  12784. this.$message.error("暂未开放");
  12785. return;
  12786. }
  12787. if (i == 15) {
  12788. // this.openTools(itemTaskIndex, 15, toolIndex);
  12789. this.$message.error("暂未开放");
  12790. return;
  12791. }
  12792. if (i == 40) {
  12793. // this.openTools(itemTaskIndex, 40, toolIndex);
  12794. this.$message.error("暂未开放");
  12795. return;
  12796. }
  12797. if (i == 41) {
  12798. // this.openTools(itemTaskIndex, 41, toolIndex);
  12799. this.$message.error("暂未开放");
  12800. return;
  12801. }
  12802. if (i == 42) {
  12803. // this.openTools(itemTaskIndex, 42, toolIndex);
  12804. this.$message.error("暂未开放");
  12805. return;
  12806. }
  12807. if (this.checktoolArray.length > 0) {
  12808. if (this.checktoolArray.indexOf(i) != -1) {
  12809. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12810. } else {
  12811. this.checktoolArray = [];
  12812. this.checktoolArray.push(i);
  12813. }
  12814. } else {
  12815. this.checktoolArray.push(i);
  12816. }
  12817. this.$forceUpdate();
  12818. },
  12819. jump() {
  12820. window.parent.postMessage({ tools: "43" }, "*");
  12821. },
  12822. getUpdateMore(f, checkboxList, searchTN, index) {
  12823. this.dialogVisibleMember = f;
  12824. this.checkboxList = checkboxList;
  12825. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12826. this.plIndex = index;
  12827. },
  12828. setPlname(a) {
  12829. if (this.plworkFile.length) {
  12830. this.plworkFile[this.plIndex].username = a;
  12831. } else {
  12832. this.worksSName = a;
  12833. }
  12834. this.dialogVisibleMember = false;
  12835. },
  12836. previewImg(url,w=null) {
  12837. this.$hevueImgPreview(url);
  12838. if(w){
  12839. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12840. }
  12841. },
  12842. checkImg(list) {
  12843. if (!list.length) {
  12844. return;
  12845. }
  12846. this.$hevueImgPreview({
  12847. multiple: true, // 开启多图预览模式
  12848. imgList: list, // 需要预览的多图数组
  12849. });
  12850. },
  12851. change(val) {
  12852. console.log(val);
  12853. },
  12854. goTo(path) {
  12855. this.$router.push(path);
  12856. },
  12857. handlePictureCardPreview(url) {
  12858. this.dialogImageUrl = url;
  12859. this.pictureDialog = true;
  12860. },
  12861. clean(type) {
  12862. if (type == 1) {
  12863. this.studyJuri[0].cover.splice(0, 1);
  12864. } else if (type == 2) {
  12865. this.studyJuri[0].upVedio.splice(0, 1);
  12866. } else {
  12867. this.studyJuri[0].upFile.splice(0, 1);
  12868. }
  12869. },
  12870. clean2(index) {
  12871. this.plworkFile.splice(index, 1);
  12872. },
  12873. handleClose(done) {
  12874. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12875. this.videoDetail.sources[0].src = "";
  12876. }
  12877. this.commentIndexJson = {};
  12878. done();
  12879. },
  12880. fullTools() {
  12881. this.full = !this.full;
  12882. },
  12883. imgChange(file, fileList, type) {
  12884. if (type == 1) {
  12885. var _tmp = this.studyJuri[0].cover;
  12886. } else if (type == 2) {
  12887. var _tmp = this.studyJuri[0].upVedio;
  12888. } else {
  12889. var _tmp = this.studyJuri[0].upFile;
  12890. }
  12891. this.noneBtnImg = _tmp.length >= 1;
  12892. },
  12893. setContent(bool) {
  12894. this.contentDialog = bool;
  12895. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12896. document.querySelector(".workd_media").style.height = "650px";
  12897. } else if (document.querySelector(".workd_media")) {
  12898. document.querySelector(".workd_media").style.height = "auto";
  12899. }
  12900. },
  12901. setContent2(bool) {
  12902. this.mlDialog = bool;
  12903. if (
  12904. bool &&
  12905. this.contentDialog &&
  12906. document.querySelector(".workd_media")
  12907. ) {
  12908. document.querySelector(".workd_media").style.height = "650px";
  12909. } else if (document.querySelector(".workd_media")) {
  12910. document.querySelector(".workd_media").style.height = "auto";
  12911. }
  12912. this.$forceUpdate();
  12913. },
  12914. openToolAll() {
  12915. this.toolDialogVisible = true;
  12916. },
  12917. addImg(e) {
  12918. var el = e.currentTarget;
  12919. // this.$message.success('触发上传')
  12920. el.getElementsByTagName("input")[0].click();
  12921. e.target.value = "";
  12922. },
  12923. addSelectAnswer() {
  12924. let params = [
  12925. {
  12926. uid: this.userid,
  12927. cid: this.id,
  12928. stage: this.courseType,
  12929. task: this.taskCount,
  12930. tool: this.toolindex,
  12931. content: this.selectAnswer.answer,
  12932. type: 7,
  12933. },
  12934. ];
  12935. this.ajax
  12936. .post(this.$store.state.api + "addCourseWorks", params)
  12937. .then((res) => {
  12938. this.$message({
  12939. message: "提交成功",
  12940. type: "success",
  12941. });
  12942. this.dialogVisibleSelect = false;
  12943. // this.selectAnswer = {};
  12944. this.selectSWorks();
  12945. this.selectStudent();
  12946. })
  12947. .catch((err) => {
  12948. this.$message.error("提交失败");
  12949. console.error(err);
  12950. });
  12951. },
  12952. addSelectAnswerTeacher() {
  12953. let params = [
  12954. {
  12955. uid: this.sStudent.userid,
  12956. cid: this.id,
  12957. stage: this.courseType,
  12958. task: this.taskCount,
  12959. tool: this.toolindex,
  12960. content: this.selectAnswer.answer,
  12961. type: 7,
  12962. },
  12963. ];
  12964. this.ajax
  12965. .post(this.$store.state.api + "addCourseWorks", params)
  12966. .then((res) => {
  12967. this.$message({
  12968. message: "提交成功",
  12969. type: "success",
  12970. });
  12971. this.dialogVisibleSelectTeacher = false;
  12972. // this.selectAnswer = {};
  12973. this.selectSWorks();
  12974. this.selectStudent();
  12975. })
  12976. .catch((err) => {
  12977. this.$message.error("提交失败");
  12978. console.error(err);
  12979. });
  12980. },
  12981. addSenWorks() {
  12982. for (var i = 0; i < this.sentenceList.length; i++) {
  12983. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12984. if (
  12985. this.sentenceList[i].chooseSenList[j] == undefined ||
  12986. this.sentenceList[i].chooseSenList[j] == ""
  12987. ) {
  12988. this.$message.error("请将答案填写完整!");
  12989. return;
  12990. }
  12991. }
  12992. }
  12993. let params = [
  12994. {
  12995. uid: this.userid,
  12996. cid: this.id,
  12997. stage: this.courseType,
  12998. task: this.taskCount,
  12999. tool: this.toolindex,
  13000. content: JSON.stringify(this.sentenceList),
  13001. type: 9,
  13002. },
  13003. ];
  13004. this.ajax
  13005. .post(this.$store.state.api + "addCourseWorks", params)
  13006. .then((res) => {
  13007. this.$message({
  13008. message: "提交成功",
  13009. type: "success",
  13010. });
  13011. this.dialogVisibleSentence = false;
  13012. // this.selectAnswer = {};
  13013. this.selectSWorks();
  13014. this.selectStudent();
  13015. })
  13016. .catch((err) => {
  13017. this.$message.error("提交失败");
  13018. console.error(err);
  13019. });
  13020. },
  13021. addSenWorksTeacher() {
  13022. for (var i = 0; i < this.sentenceList.length; i++) {
  13023. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13024. if (
  13025. this.sentenceList[i].chooseSenList[j] == undefined ||
  13026. this.sentenceList[i].chooseSenList[j] == ""
  13027. ) {
  13028. this.$message.error("请将答案填写完整!");
  13029. return;
  13030. }
  13031. }
  13032. }
  13033. let params = [
  13034. {
  13035. uid: this.sStudent.userid,
  13036. cid: this.id,
  13037. stage: this.courseType,
  13038. task: this.taskCount,
  13039. tool: this.toolindex,
  13040. content: JSON.stringify(this.sentenceList),
  13041. type: 9,
  13042. },
  13043. ];
  13044. this.ajax
  13045. .post(this.$store.state.api + "addCourseWorks", params)
  13046. .then((res) => {
  13047. this.$message({
  13048. message: "提交成功",
  13049. type: "success",
  13050. });
  13051. this.dialogVisibleSentenceTeacher = false;
  13052. // this.selectAnswer = {};
  13053. this.selectSWorks();
  13054. this.selectStudent();
  13055. })
  13056. .catch((err) => {
  13057. this.$message.error("提交失败");
  13058. console.error(err);
  13059. });
  13060. },
  13061. returnTableText() {
  13062. this.$confirm("确定还原此模板吗?", "提示", {
  13063. confirmButtonText: "确定",
  13064. cancelButtonText: "取消",
  13065. type: "warning",
  13066. })
  13067. .then(() => {
  13068. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13069. })
  13070. .catch(() => {});
  13071. },
  13072. addTableWorks() {
  13073. let params = [
  13074. {
  13075. uid: this.userid,
  13076. cid: this.id,
  13077. stage: this.courseType,
  13078. task: this.taskCount,
  13079. tool: this.toolindex,
  13080. content: JSON.stringify(this.tableJson),
  13081. type: 10,
  13082. },
  13083. ];
  13084. this.ajax
  13085. .post(this.$store.state.api + "addCourseWorks", params)
  13086. .then((res) => {
  13087. this.$message({
  13088. message: "提交成功",
  13089. type: "success",
  13090. });
  13091. this.dialogVisibleTable = false;
  13092. // this.selectAnswer = {};
  13093. this.selectSWorks();
  13094. this.selectStudent();
  13095. })
  13096. .catch((err) => {
  13097. this.$message.error("提交失败");
  13098. console.error(err);
  13099. });
  13100. },
  13101. tableRowClassName({ row, rowIndex }) {
  13102. if ((rowIndex + 1) % 2 === 0) {
  13103. return "even_row";
  13104. } else {
  13105. return "";
  13106. }
  13107. },
  13108. addTableWorksTeacher() {
  13109. let params = [
  13110. {
  13111. uid: this.sStudent.userid,
  13112. cid: this.id,
  13113. stage: this.courseType,
  13114. task: this.taskCount,
  13115. tool: this.toolindex,
  13116. content: JSON.stringify(this.tableJson),
  13117. type: 10,
  13118. },
  13119. ];
  13120. this.ajax
  13121. .post(this.$store.state.api + "addCourseWorks", params)
  13122. .then((res) => {
  13123. this.$message({
  13124. message: "提交成功",
  13125. type: "success",
  13126. });
  13127. this.dialogVisibleTableTeacher = false;
  13128. // this.selectAnswer = {};
  13129. this.selectSWorks();
  13130. this.selectStudent();
  13131. })
  13132. .catch((err) => {
  13133. this.$message.error("提交失败");
  13134. console.error(err);
  13135. });
  13136. },
  13137. returnWordText() {
  13138. this.$confirm("确定还原此模板吗?", "提示", {
  13139. confirmButtonText: "确定",
  13140. cancelButtonText: "取消",
  13141. type: "warning",
  13142. })
  13143. .then(() => {
  13144. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13145. })
  13146. .catch(() => {});
  13147. },
  13148. addWordWorks() {
  13149. let params = [
  13150. {
  13151. uid: this.userid,
  13152. cid: this.id,
  13153. stage: this.courseType,
  13154. task: this.taskCount,
  13155. tool: this.toolindex,
  13156. content: JSON.stringify(this.wordJson),
  13157. type: 13,
  13158. atool: 52,
  13159. },
  13160. ];
  13161. this.ajax
  13162. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13163. .then((res) => {
  13164. this.$message({
  13165. message: "提交成功",
  13166. type: "success",
  13167. });
  13168. this.dialogVisibleWord = false;
  13169. // this.selectAnswer = {};
  13170. this.selectSWorks();
  13171. this.selectStudent();
  13172. })
  13173. .catch((err) => {
  13174. this.$message.error("提交失败");
  13175. console.error(err);
  13176. });
  13177. },
  13178. addWordWorksTeacher() {
  13179. let params = [
  13180. {
  13181. uid: this.sStudent.userid,
  13182. cid: this.id,
  13183. stage: this.courseType,
  13184. task: this.taskCount,
  13185. tool: this.toolindex,
  13186. content: JSON.stringify(this.wordJson),
  13187. type: 13,
  13188. atool: 52,
  13189. },
  13190. ];
  13191. this.ajax
  13192. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13193. .then((res) => {
  13194. this.$message({
  13195. message: "提交成功",
  13196. type: "success",
  13197. });
  13198. this.dialogVisibleWordTeacher = false;
  13199. // this.selectAnswer = {};
  13200. this.selectSWorks();
  13201. this.selectStudent();
  13202. })
  13203. .catch((err) => {
  13204. this.$message.error("提交失败");
  13205. console.error(err);
  13206. });
  13207. },
  13208. addCourseWorks(i) {
  13209. var typesql;
  13210. if (this.fileType === 0) {
  13211. typesql = 1;
  13212. } else if (this.fileType === 1) {
  13213. typesql = 4;
  13214. } else if (this.fileType === 2) {
  13215. typesql = 5;
  13216. } else if (this.fileType === 3) {
  13217. typesql = 12;
  13218. }
  13219. if (!this.studyJuri[0].cover[0].url) {
  13220. this.$message.error("请上传文件");
  13221. return;
  13222. }
  13223. let params = [
  13224. {
  13225. uid: this.userid,
  13226. cid: this.id,
  13227. stage: this.courseType,
  13228. task: i,
  13229. tool: this.toolindex,
  13230. content: this.studyJuri[0].cover[0].url,
  13231. type: typesql,
  13232. },
  13233. ];
  13234. this.ajax
  13235. .post(this.$store.state.api + "addCourseWorksR", params)
  13236. .then((res) => {
  13237. this.$message({
  13238. message: "提交成功",
  13239. type: "success",
  13240. });
  13241. this.studyJuri[0].cover = [];
  13242. this.dialogVisible = false;
  13243. this.getCourseDetail(2);
  13244. })
  13245. .catch((err) => {
  13246. this.$message.error("提交失败");
  13247. console.error(err);
  13248. });
  13249. },
  13250. addCourseWorksPl(i) {
  13251. let _files = this.plworkFile;
  13252. var c = 1;
  13253. for (var k = 0; k < _files.length; k++) {
  13254. if (!_files[k].username) {
  13255. c = 2;
  13256. }
  13257. }
  13258. if (c == 2) {
  13259. this.$message.error("请填写学生姓名");
  13260. return;
  13261. }
  13262. let params = [
  13263. {
  13264. ateacher: this.userid,
  13265. cid: this.id,
  13266. stage: this.courseType,
  13267. task: i,
  13268. tool: this.toolindex,
  13269. content: JSON.stringify(_files),
  13270. },
  13271. ];
  13272. this.ajax
  13273. .post(this.$store.state.api + "addCourseWorksPl", params)
  13274. .then((res) => {
  13275. this.$message({
  13276. message: "提交成功",
  13277. type: "success",
  13278. });
  13279. this.plworkFile = [];
  13280. this.dialogVisiblePl = false;
  13281. this.getCourseDetail(2);
  13282. })
  13283. .catch((err) => {
  13284. this.$message.error("提交失败");
  13285. console.error(err);
  13286. });
  13287. },
  13288. addCourseWorks2(i) {
  13289. var typesql;
  13290. if (this.fileType === 0) {
  13291. typesql = 0;
  13292. } else if (this.fileType === 1) {
  13293. typesql = 1;
  13294. } else if (this.fileType === 2) {
  13295. typesql = 3;
  13296. } else if (this.fileType === 3) {
  13297. typesql = 12;
  13298. }
  13299. if (!this.studyJuri[0].cover[0].url) {
  13300. this.$message.error("请上传文件");
  13301. return;
  13302. }
  13303. let params = [
  13304. {
  13305. uid: this.userid,
  13306. cid: this.id,
  13307. stage: this.courseType,
  13308. task: i,
  13309. tool: this.toolindex,
  13310. content: JSON.stringify({
  13311. type: typesql,
  13312. groupIndex: this.groupIndex,
  13313. url: this.studyJuri[0].cover[0].url,
  13314. }),
  13315. type: 11,
  13316. atool: 49,
  13317. text: "",
  13318. },
  13319. ];
  13320. this.ajax
  13321. .post(this.$store.state.api + "addCourseWorks5", params)
  13322. .then((res) => {
  13323. this.$message({
  13324. message: "提交成功",
  13325. type: "success",
  13326. });
  13327. this.studyJuri[0].cover = [];
  13328. this.dialogVisibleGroupWork = false;
  13329. this.getCourseDetail(2);
  13330. })
  13331. .catch((err) => {
  13332. this.$message.error("提交失败");
  13333. console.error(err);
  13334. });
  13335. },
  13336. addEnglishWork() {
  13337. this.myAnList = this.$refs['engJson'].myAnswerList;
  13338. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13339. this.$message.error("请输入作文标题和正文!");
  13340. return;
  13341. }
  13342. let params = [
  13343. {
  13344. uid: this.userid,
  13345. cid: this.id,
  13346. stage: this.courseType,
  13347. task: this.taskCount,
  13348. tool: this.englishToolIndex,
  13349. content: JSON.stringify(this.myAnList),
  13350. type: 16,
  13351. atool: 69,
  13352. text: "",
  13353. },
  13354. ];
  13355. this.ajax
  13356. .post(this.$store.state.api + "addCourseWorks5", params)
  13357. .then((res) => {
  13358. this.$message({
  13359. message: "提交成功",
  13360. type: "success",
  13361. });
  13362. this.myAnList = {};
  13363. this.englishList = {};
  13364. this.englishToolIndex = 0;
  13365. this.engDialogVisible = false;
  13366. this.selectSWorks();
  13367. this.selectStudent();
  13368. })
  13369. .catch((err) => {
  13370. this.$message.error("提交失败");
  13371. console.error(err);
  13372. });
  13373. },
  13374. addCourseWorksGong(i, data, tool) {
  13375. let params = [
  13376. {
  13377. uid: this.userid,
  13378. cid: this.id,
  13379. stage: this.courseType,
  13380. task: this.taskCount,
  13381. tool: i,
  13382. content: data,
  13383. type: 12,
  13384. atool: tool,
  13385. text: "",
  13386. },
  13387. ];
  13388. this.ajax
  13389. .post(this.$store.state.api + "addCourseWorks5", params)
  13390. .then((res) => {
  13391. this.$message({
  13392. message: "提交成功",
  13393. type: "success",
  13394. });
  13395. this.studyJuri[0].cover = [];
  13396. this.selectSWorks();
  13397. this.selectStudent();
  13398. })
  13399. .catch((err) => {
  13400. this.$message.error("提交失败");
  13401. console.error(err);
  13402. });
  13403. },
  13404. addCourseWorksGongTeacher(i, data, tool) {
  13405. let params = [
  13406. {
  13407. uid: this.sStudent.userid,
  13408. cid: this.id,
  13409. stage: this.courseType,
  13410. task: this.taskCount,
  13411. tool: i,
  13412. content: data,
  13413. type: 12,
  13414. atool: tool,
  13415. text: "",
  13416. },
  13417. ];
  13418. this.ajax
  13419. .post(this.$store.state.api + "addCourseWorks5", params)
  13420. .then((res) => {
  13421. this.$message({
  13422. message: "提交成功",
  13423. type: "success",
  13424. });
  13425. this.studyJuri[0].cover = [];
  13426. this.dialogVisibleWorks = false;
  13427. this.selectSWorks();
  13428. this.selectStudent();
  13429. })
  13430. .catch((err) => {
  13431. this.$message.error("提交失败");
  13432. console.error(err);
  13433. });
  13434. },
  13435. addCourseWorksGongPl(i, data, tool, type) {
  13436. let params = [
  13437. {
  13438. uid: this.sStudent.userid,
  13439. cid: this.id,
  13440. stage: this.courseType,
  13441. task: this.taskCount,
  13442. tool: i,
  13443. content: data,
  13444. type: type,
  13445. atool: tool,
  13446. text: "",
  13447. },
  13448. ];
  13449. this.ajax
  13450. .post(this.$store.state.api + "addCourseWorks5", params)
  13451. .then((res) => {
  13452. this.$message({
  13453. message: "提交成功",
  13454. type: "success",
  13455. });
  13456. this.studyJuri[0].cover = [];
  13457. this.dialogVisibleWorks = false;
  13458. this.selectSWorks();
  13459. this.selectStudent();
  13460. })
  13461. .catch((err) => {
  13462. this.$message.error("提交失败");
  13463. console.error(err);
  13464. });
  13465. },
  13466. addCourseWorksTeacher(i) {
  13467. var typesql;
  13468. if (this.sTool == 32) {
  13469. this.addCourseWorksGongTeacher(
  13470. this.toolindex,
  13471. this.studyJuri[0].cover[0].url,
  13472. this.sTool
  13473. );
  13474. return;
  13475. }
  13476. if (this.fileType === 0) {
  13477. typesql = 1;
  13478. } else if (this.fileType === 1) {
  13479. typesql = 4;
  13480. } else if (this.fileType === 2) {
  13481. typesql = 5;
  13482. } else if (this.fileType === 3) {
  13483. typesql = 12;
  13484. }
  13485. if (this.sTool == 50) {
  13486. this.addCourseWorksGongPl(
  13487. this.toolindex,
  13488. this.studyJuri[0].cover[0].url,
  13489. this.sTool,
  13490. typesql
  13491. );
  13492. return;
  13493. }
  13494. if (!this.studyJuri[0].cover[0].url) {
  13495. this.$message.error("请上传文件");
  13496. return;
  13497. }
  13498. let params = [
  13499. {
  13500. uid: this.sStudent.userid,
  13501. cid: this.id,
  13502. stage: this.courseType,
  13503. task: i,
  13504. tool: this.toolindex,
  13505. content: this.studyJuri[0].cover[0].url,
  13506. type: typesql,
  13507. ateacher: this.userid,
  13508. },
  13509. ];
  13510. this.ajax
  13511. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13512. .then((res) => {
  13513. this.$message({
  13514. message: "提交成功",
  13515. type: "success",
  13516. });
  13517. this.studyJuri[0].cover = [];
  13518. this.dialogVisibleWorks = false;
  13519. this.getCourseDetail(2);
  13520. })
  13521. .catch((err) => {
  13522. this.$message.error("提交失败");
  13523. console.error(err);
  13524. });
  13525. },
  13526. selectUploadStudent(type) {
  13527. const loading = this.$loading.service({
  13528. background: "rgba(255, 255, 255, 0.7)",
  13529. target: document.body,
  13530. });
  13531. let params = {
  13532. cid: this.uploadCid,
  13533. oid: this.oid,
  13534. cn: "",
  13535. };
  13536. this.ajax
  13537. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13538. .then((res) => {
  13539. loading.close();
  13540. var studentK = [];
  13541. if (this.isWorksS[this.toolindex].length > 0) {
  13542. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13543. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13544. }
  13545. studentK = studentK.join(",");
  13546. }
  13547. this.uploadStudentJuri = res.data[0].filter((el) => {
  13548. return studentK.indexOf(el.userid) == -1;
  13549. });
  13550. if (this.worksSName && this.worksSid) {
  13551. this.uploadStudentJuri.push({
  13552. userid: this.worksSid,
  13553. name: this.worksSName,
  13554. });
  13555. }
  13556. if (type == 1) {
  13557. this.plworkFile = [];
  13558. this.dialogVisibleSname = true;
  13559. } else if (type == 2) {
  13560. this.dialogVisiblePl = true;
  13561. }
  13562. })
  13563. .catch((err) => {
  13564. loading.close();
  13565. console.error(err);
  13566. });
  13567. },
  13568. selectPickStudent() {
  13569. const loading = this.$loading.service({
  13570. background: "rgba(255, 255, 255, 0.7)",
  13571. target: document.body,
  13572. });
  13573. let params = {
  13574. cid: this.uploadCid,
  13575. oid: this.oid,
  13576. cn: "",
  13577. };
  13578. this.ajax
  13579. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13580. .then((res) => {
  13581. loading.close();
  13582. this.uploadStudentJuri = res.data[0];
  13583. this.dialogVisiblePickPeople = true;
  13584. })
  13585. .catch((err) => {
  13586. loading.close();
  13587. console.error(err);
  13588. });
  13589. },
  13590. arrayToArray(arrayo, arrayt) {
  13591. let array1 = arrayo;
  13592. let array2 = arrayt;
  13593. let commonElements = [];
  13594. for (let i = 0; i < array1.length; i++) {
  13595. for (let j = 0; j < array2.length; j++) {
  13596. if (array1[i] === array2[j]) {
  13597. commonElements.push(array1[i]);
  13598. }
  13599. }
  13600. }
  13601. return commonElements;
  13602. },
  13603. selectWorksStudent() {
  13604. let params = {
  13605. oid: this.oid,
  13606. cid: this.courseDetail.juri,
  13607. };
  13608. this.ajax
  13609. .get(this.$store.state.api + "selectWorksStudent", params)
  13610. .then((res) => {
  13611. var a = res.data[0];
  13612. for (var i = 0; i < this.isWorksS.length; i++) {
  13613. this.noWorksS[i] = [];
  13614. var studentK = [];
  13615. if (this.isWorksS[i].length > 0) {
  13616. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13617. studentK.push(this.isWorksS[i][z].uid);
  13618. }
  13619. studentK = studentK.join(",");
  13620. for (var j = 0; j < a.length; j++) {
  13621. if (studentK.indexOf(a[j].userid) == -1) {
  13622. if (this.tcid) {
  13623. // a[j].classid.indexOf(this.tcid) != -1
  13624. if (
  13625. this.arrayToArray(
  13626. a[j].classid.split(","),
  13627. this.tcid.split(",")
  13628. ).length
  13629. ) {
  13630. this.noWorksS[i].push({
  13631. student: a[j].name,
  13632. userid: a[j].userid,
  13633. });
  13634. }
  13635. } else {
  13636. this.noWorksS[i].push({
  13637. student: a[j].name,
  13638. userid: a[j].userid,
  13639. });
  13640. }
  13641. }
  13642. }
  13643. } else {
  13644. for (var k = 0; k < a.length; k++) {
  13645. if (this.tcid) {
  13646. if (
  13647. this.arrayToArray(
  13648. a[k].classid.split(","),
  13649. this.tcid.split(",")
  13650. ).length
  13651. ) {
  13652. this.noWorksS[i].push({
  13653. student: a[k].name,
  13654. userid: a[k].userid,
  13655. });
  13656. }
  13657. } else {
  13658. this.noWorksS[i].push({
  13659. student: a[k].name,
  13660. userid: a[k].userid,
  13661. });
  13662. }
  13663. }
  13664. }
  13665. }
  13666. this.$forceUpdate();
  13667. if (
  13668. Object.keys(this.commentDetail).length &&
  13669. Object.keys(this.commentIndexJson).length &&
  13670. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13671. ) {
  13672. let a = 1;
  13673. let c = this.commentIndexJson;
  13674. if (
  13675. this.commentIndexJson.gindex ||
  13676. this.commentIndexJson.gindex === 0
  13677. ) {
  13678. for (
  13679. var i = 0;
  13680. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13681. i++
  13682. ) {
  13683. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13684. groupA: for (var k = 0; k < _el.length; k++) {
  13685. let el = _el[k];
  13686. if (el.wid == this.commentDetail.wid) {
  13687. a = 2;
  13688. this.commentOther(
  13689. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13690. this.commentIndexJson.toolIndex,
  13691. k,
  13692. this.commentIndexJson.gindex
  13693. );
  13694. break groupA;
  13695. }
  13696. }
  13697. }
  13698. if (a === 1) {
  13699. this.commentDetail = [];
  13700. this.commentIndexJson = {};
  13701. this.commentDialogVisible = false;
  13702. this.$message("此作业已被删除");
  13703. }
  13704. } else {
  13705. if (this.isGroup && this.commentIndexJson.gid) {
  13706. groupA: for (
  13707. var i = 0;
  13708. i < this.courseGroup.group.length;
  13709. i++
  13710. ) {
  13711. let _group = this.courseGroup.group[i];
  13712. if (_group.id == this.commentIndexJson.gid) {
  13713. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13714. for (var k = 0; k < _el2.length; k++) {
  13715. let el2 = _el2[k];
  13716. if (el2.wid == this.commentDetail.wid) {
  13717. a = 2;
  13718. this.commentOther(
  13719. _el2[k],
  13720. this.commentIndexJson.toolIndex,
  13721. k,
  13722. null,
  13723. this.commentIndexJson.gid
  13724. );
  13725. break groupA;
  13726. }
  13727. }
  13728. }
  13729. }
  13730. }
  13731. if (a == 1) {
  13732. for (
  13733. var i = 0;
  13734. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13735. i++
  13736. ) {
  13737. let el =
  13738. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13739. if (el.wid == this.commentDetail.wid) {
  13740. a = 2;
  13741. this.commentOther(
  13742. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13743. this.commentIndexJson.toolIndex,
  13744. i
  13745. );
  13746. break;
  13747. }
  13748. }
  13749. }
  13750. if (a === 1) {
  13751. this.commentDetail = [];
  13752. this.commentIndexJson = {};
  13753. this.commentDialogVisible = false;
  13754. this.$message("此作业已被删除");
  13755. }
  13756. }
  13757. }
  13758. })
  13759. .catch((err) => {
  13760. console.error(err);
  13761. });
  13762. },
  13763. selectStudent() {
  13764. //学生查看自己作业
  13765. let params = {
  13766. uid: this.userid,
  13767. cid: this.id,
  13768. s: this.courseType,
  13769. t: this.taskCount,
  13770. };
  13771. this.ajax
  13772. .get(this.$store.state.api + "selectStudentWorks", params)
  13773. .then((res) => {
  13774. var a =
  13775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13776. this.taskCount
  13777. ].toolChoose;
  13778. var b = res.data[0];
  13779. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13780. var y = [
  13781. "AVI",
  13782. "NAVI",
  13783. "MPEG",
  13784. "ASF",
  13785. "MOV",
  13786. "WMV",
  13787. "3GP",
  13788. "RM",
  13789. "RMVB",
  13790. "FLV",
  13791. "F4V",
  13792. "H.264",
  13793. "H.265",
  13794. "REAL VIDEO",
  13795. "MKV",
  13796. "WebM",
  13797. "HDDVD",
  13798. "MP4",
  13799. "MPG",
  13800. "M4V",
  13801. "MGV",
  13802. "OGV",
  13803. "QTM",
  13804. "STR",
  13805. "AMC",
  13806. "DVX",
  13807. "EVO",
  13808. "DAT",
  13809. "OGG",
  13810. "OGM",
  13811. ];
  13812. for (var i = 0; i < a.length; i++) {
  13813. this.workStudent[i] = [];
  13814. for (var j = 0; j < b.length; j++) {
  13815. if (i == b[j].tool) {
  13816. if (
  13817. (b[j].type == 1 ||
  13818. b[j].type == 4 ||
  13819. b[j].type == 5 ||
  13820. b[j].type == 6 ||
  13821. b[j].type == 12 ||
  13822. b[j].type == 7) &&
  13823. a[i].tool[0] != 15 &&
  13824. a[i].tool[0] != 4 &&
  13825. a[i].tool[0] != 45 &&
  13826. a[i].tool[0] != 50 &&
  13827. a[i].tool[0] != 32 &&
  13828. a[i].tool[0] != 57 &&
  13829. a[i].tool[0] != 52 &&
  13830. a[i].tool[0] != 69
  13831. ) {
  13832. if (
  13833. c.indexOf(
  13834. b[j].content
  13835. .split(".")
  13836. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13837. ) != -1 &&
  13838. a[i].tool[0] == 16 &&
  13839. b[j].atool != 50
  13840. ) {
  13841. this.workStudent[i].push({
  13842. works: b[j].content,
  13843. sName: b[j].name,
  13844. score: b[j].score,
  13845. img: b[j].img,
  13846. type: 1,
  13847. time: b[j].time,
  13848. userid: b[j].userid,
  13849. wid: b[j].id,
  13850. });
  13851. } else if (
  13852. y.indexOf(
  13853. b[j].content
  13854. .split(".")
  13855. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13856. ) != -1 &&
  13857. a[i].tool[0] == 16 &&
  13858. b[j].atool != 50
  13859. ) {
  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: 3,
  13868. time: b[j].time,
  13869. });
  13870. } else if (b[j].type == 6 && b[j].atool != 50) {
  13871. this.workStudent[i].push({
  13872. userid: b[j].userid,
  13873. wid: b[j].id,
  13874. works: b[j].content,
  13875. sName: b[j].name,
  13876. score: b[j].score,
  13877. img: b[j].img,
  13878. type: 4,
  13879. time: b[j].time,
  13880. });
  13881. } else if (b[j].type == 7 && b[j].atool != 50) {
  13882. this.workStudent[i].push({
  13883. userid: b[j].userid,
  13884. wid: b[j].id,
  13885. works: b[j].content,
  13886. sName: b[j].name,
  13887. score: b[j].score,
  13888. img: b[j].img,
  13889. type: 5,
  13890. time: b[j].time,
  13891. });
  13892. } else if (b[j].type == 12 && a[i].tool[0] == 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: 12,
  13899. time: b[j].time,
  13900. userid: b[j].userid,
  13901. wid: b[j].id,
  13902. });
  13903. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13904. this.workStudent[i].push({
  13905. works: b[j].content,
  13906. sName: b[j].name,
  13907. score: b[j].score,
  13908. img: b[j].img,
  13909. type: 0,
  13910. time: b[j].time,
  13911. userid: b[j].userid,
  13912. wid: b[j].id,
  13913. });
  13914. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13915. this.workStudent[i].push({
  13916. works: b[j].content,
  13917. sName: b[j].name,
  13918. score: b[j].score,
  13919. img: b[j].img,
  13920. type: 0,
  13921. time: b[j].time,
  13922. userid: b[j].userid,
  13923. wid: b[j].id,
  13924. });
  13925. }
  13926. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13927. this.workStudent[i].push({
  13928. works: b[j].content,
  13929. sName: b[j].name,
  13930. score: b[j].score,
  13931. img: b[j].img,
  13932. type: 2,
  13933. time: b[j].time,
  13934. userid: b[j].userid,
  13935. wid: b[j].id,
  13936. });
  13937. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13938. //问卷
  13939. this.workStudent[i].push({
  13940. works: b[j].content,
  13941. sName: b[j].name,
  13942. score: b[j].score,
  13943. img: b[j].img,
  13944. type: 2,
  13945. time: b[j].time,
  13946. userid: b[j].userid,
  13947. wid: b[j].id,
  13948. });
  13949. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13950. //选择题
  13951. this.workStudent[i].push({
  13952. works: b[j].content,
  13953. sName: b[j].name,
  13954. score: b[j].score,
  13955. img: b[j].img,
  13956. type: 8,
  13957. time: b[j].time,
  13958. userid: b[j].userid,
  13959. wid: b[j].id,
  13960. });
  13961. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13962. //选择题
  13963. this.workStudent[i].push({
  13964. works: b[j].content,
  13965. sName: b[j].name,
  13966. score: b[j].score,
  13967. img: b[j].img,
  13968. type: 9,
  13969. time: b[j].time,
  13970. userid: b[j].userid,
  13971. wid: b[j].id,
  13972. });
  13973. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13974. //选择题
  13975. this.workStudent[i].push({
  13976. works: b[j].content,
  13977. sName: b[j].name,
  13978. score: b[j].score,
  13979. img: b[j].img,
  13980. type: 10,
  13981. time: b[j].time,
  13982. userid: b[j].userid,
  13983. wid: b[j].id,
  13984. });
  13985. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13986. //选择题
  13987. this.workStudent[i].push({
  13988. works: b[j].content,
  13989. sName: b[j].name,
  13990. score: b[j].score,
  13991. img: b[j].img,
  13992. type: 13,
  13993. time: b[j].time,
  13994. userid: b[j].userid,
  13995. wid: b[j].id,
  13996. });
  13997. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13998. //选择题
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 12,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14010. //选择题
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 12,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14022. //选择题
  14023. this.workStudent[i].push({
  14024. works: b[j].content,
  14025. sName: b[j].name,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. type: 15,
  14029. time: b[j].time,
  14030. userid: b[j].userid,
  14031. wid: b[j].id,
  14032. });
  14033. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14034. //英语写作
  14035. this.workStudent[i].push({
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 16,
  14041. time: b[j].time,
  14042. userid: b[j].userid,
  14043. wid: b[j].id,
  14044. aiCode: b[j].aiCode,
  14045. teacherCode: b[j].teacherCode
  14046. });
  14047. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14048. //英语口语
  14049. this.workStudent[i].push({
  14050. works: b[j].content,
  14051. sName: b[j].name,
  14052. score: b[j].score,
  14053. img: b[j].img,
  14054. type: 17,
  14055. time: b[j].time,
  14056. userid: b[j].userid,
  14057. wid: b[j].id,
  14058. });
  14059. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14060. //英语口语
  14061. this.workStudent[i].push({
  14062. works: b[j].content,
  14063. sName: b[j].name,
  14064. score: b[j].score,
  14065. img: b[j].img,
  14066. type: 14,
  14067. time: b[j].time,
  14068. userid: b[j].userid,
  14069. wid: b[j].id,
  14070. });
  14071. }
  14072. }
  14073. }
  14074. }
  14075. })
  14076. .catch((err) => {
  14077. console.error(err);
  14078. });
  14079. },
  14080. openVideo(w) {
  14081. this.videoDetail = {};
  14082. this.playerOptions1.sources[0].src = w.works;
  14083. this.videoDetail = this.playerOptions1;
  14084. this.videoVisible = true;
  14085. },
  14086. isLikes(wid, uid, t, c, isLikes,sName) {
  14087. if (isLikes == false) {
  14088. let params = [
  14089. {
  14090. wid: wid,
  14091. lid: uid,
  14092. t: t,
  14093. c: c,
  14094. },
  14095. ];
  14096. this.ajax
  14097. .post(this.$store.state.api + "insertComment", params)
  14098. .then((res) => {
  14099. this.$message({
  14100. message: "点赞成功",
  14101. type: "success",
  14102. });
  14103. this.selectSWorks();
  14104. this.selectStudent();
  14105. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("点赞失败");
  14109. console.error(err);
  14110. });
  14111. } else {
  14112. let params = {
  14113. wid: wid,
  14114. lid: uid,
  14115. type: t,
  14116. };
  14117. this.ajax
  14118. .get(this.$store.state.api + "deleteComment", params)
  14119. .then((res) => {
  14120. this.$message({
  14121. message: "取消点赞成功",
  14122. type: "success",
  14123. });
  14124. this.selectSWorks();
  14125. this.selectStudent();
  14126. })
  14127. .catch((err) => {
  14128. console.error(err);
  14129. });
  14130. }
  14131. },
  14132. deleteComment(wid) {
  14133. this.$confirm("确定删除此评论吗?", "提示", {
  14134. confirmButtonText: "确定",
  14135. cancelButtonText: "取消",
  14136. type: "warning",
  14137. })
  14138. .then(() => {
  14139. let params = {
  14140. id: wid,
  14141. };
  14142. this.ajax
  14143. .get(this.$store.state.api + "deleteComment2", params)
  14144. .then((res) => {
  14145. this.$message({
  14146. message: "删除评论成功",
  14147. type: "success",
  14148. });
  14149. this.selectSWorks();
  14150. this.selectStudent();
  14151. })
  14152. .catch((err) => {
  14153. console.error(err);
  14154. });
  14155. })
  14156. .catch(() => {});
  14157. },
  14158. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14159. this.commentIndexJson = {
  14160. toolIndex: toolIndex,
  14161. wIndex: wIndex,
  14162. gindex: gindex,
  14163. gid: gid,
  14164. };
  14165. this.commentDetail = [];
  14166. this.commentDialogVisible = true;
  14167. this.commentDetail = w;
  14168. if (w.works && w.type == 1) {
  14169. // this.pptImgUrl = "";
  14170. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14171. if (
  14172. a.indexOf(
  14173. w.works
  14174. .split(".")
  14175. [w.works.split(".").length - 1].toLocaleUpperCase()
  14176. ) != -1
  14177. ) {
  14178. let _uuurl = await this.checkLink(w.works);
  14179. this.pptImgUrl =
  14180. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14181. this.showPDF = false;
  14182. } else if (
  14183. w.works
  14184. .split(".")
  14185. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14186. ) {
  14187. this.pptImgUrl = w.works;
  14188. this.showPDF = true;
  14189. }
  14190. } else if (w.works && w.type == 3) {
  14191. this.videoDetail = {};
  14192. this.playerOptions1.sources[0].src = w.works;
  14193. this.videoDetail = this.playerOptions1;
  14194. // this.videoVisible = true;
  14195. } else if (w.works && w.type == 4) {
  14196. this.eScore = JSON.parse(w.works);
  14197. this.rateJson =
  14198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14199. this.taskCount
  14200. ].toolChoose[toolIndex].rateJson;
  14201. } else if (w.works && w.type == 10) {
  14202. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14203. } else if (w.works && w.type == 13) {
  14204. this.wordJson =
  14205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14206. this.taskCount
  14207. ].toolChoose[toolIndex].wordJson;
  14208. }
  14209. },
  14210. async openScore(w, index) {
  14211. this.wScore = 0;
  14212. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14213. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14214. this.commentDetail = [];
  14215. if(w.type == 17){
  14216. this.dialogVisibleENScore = true;
  14217. }else{
  14218. this.dialogVisibleScore = true;
  14219. }
  14220. this.commentDetail = w;
  14221. if (w.works && w.type == 1) {
  14222. this.pptImgUrl = "";
  14223. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14224. if (
  14225. a.indexOf(
  14226. w.works
  14227. .split(".")
  14228. [w.works.split(".").length - 1].toLocaleUpperCase()
  14229. ) != -1
  14230. ) {
  14231. let _uuurl = await this.checkLink(w.works);
  14232. this.pptImgUrl =
  14233. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14234. this.showPDF = false;
  14235. } else if (
  14236. w.works
  14237. .split(".")
  14238. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14239. ) {
  14240. this.pptImgUrl = w.works;
  14241. this.showPDF = true;
  14242. }
  14243. } else if (w.works && w.type == 3) {
  14244. this.videoDetail = {};
  14245. this.playerOptions1.sources[0].src = w.works;
  14246. this.videoDetail = this.playerOptions1;
  14247. }else if(w.type == 17){
  14248. let englishVoiceJson = {}
  14249. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14250. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14251. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14252. .toolChoose[index].englishVoiceJson
  14253. : {};
  14254. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14255. }
  14256. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14257. },
  14258. addComment(wid, uid, t,detail) {
  14259. if (this.commentText == "") {
  14260. this.$message.error("请输入评论");
  14261. return;
  14262. }
  14263. let params2 = [
  14264. {
  14265. wid: wid,
  14266. lid: uid,
  14267. t: t,
  14268. },
  14269. ];
  14270. this.ajax
  14271. .post(this.$store.state.api + "getComment", params2)
  14272. .then((res) => {
  14273. if (res.data[0].length > 0) {
  14274. this.$message.error("一个作业只能评论一条");
  14275. } else {
  14276. let params = [
  14277. {
  14278. wid: wid,
  14279. lid: uid,
  14280. t: t,
  14281. c: this.commentText,
  14282. },
  14283. ];
  14284. this.ajax
  14285. .post(this.$store.state.api + "insertComment", params)
  14286. .then((res) => {
  14287. this.$message({
  14288. message: "评论成功",
  14289. type: "success",
  14290. });
  14291. this.commentText = "";
  14292. this.selectSWorks();
  14293. this.selectStudent();
  14294. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14295. })
  14296. .catch((err) => {
  14297. this.$message.error("评论失败");
  14298. console.error(err);
  14299. });
  14300. }
  14301. })
  14302. .catch((err) => {
  14303. // this.$message.error("评论失败");
  14304. console.error(err);
  14305. });
  14306. },
  14307. scoreWork(wid,sName) {
  14308. if (this.wScore == 0) {
  14309. this.$message.error("请评分");
  14310. return;
  14311. }
  14312. let params = [
  14313. {
  14314. wid: wid,
  14315. score: JSON.stringify({
  14316. wScore: this.wScore,
  14317. detail: this.scoreDetail,
  14318. }),
  14319. },
  14320. ];
  14321. this.ajax
  14322. .post(this.$store.state.api + "scoreWork", params)
  14323. .then((res) => {
  14324. this.$message({
  14325. message: "评分成功",
  14326. type: "success",
  14327. });
  14328. this.wScore = 0;
  14329. this.scoreDetail = "";
  14330. this.dialogVisibleScore = false;
  14331. this.selectSWorks();
  14332. this.selectStudent();
  14333. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14334. })
  14335. .catch((err) => {
  14336. this.$message.error("评分失败");
  14337. console.error(err);
  14338. });
  14339. },
  14340. openXz(w, i) {
  14341. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14342. .taskJson[this.taskCount].toolChoose[i].selectJson
  14343. ? JSON.parse(
  14344. JSON.stringify(
  14345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14346. this.taskCount
  14347. ].toolChoose[i].selectJson
  14348. )
  14349. )
  14350. : { url: "", select: [], answer: [] };
  14351. var a = w.works.split(",");
  14352. for (var k = 0; k < a.length; k++) {
  14353. a[k] = parseInt(a[k]);
  14354. }
  14355. this.selectAnswer = { answer: a, stu: w.sName };
  14356. this.isSelect = true;
  14357. this.dialogVisibleSelect = true;
  14358. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14359. },
  14360. openSen(w, i) {
  14361. console.log("openSen")
  14362. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14363. this.sentenceList1 = JSON.parse(w.works);
  14364. this.sentenceList1.stuName = w.sName;
  14365. this.dialogVisibleSentence1 = true;
  14366. },
  14367. openPj(w, toolindex) {
  14368. console.log("openPJ")
  14369. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14370. this.isStar = true;
  14371. this.eScore = JSON.parse(w);
  14372. this.rateJson =
  14373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14374. this.taskCount
  14375. ].toolChoose[toolindex].rateJson;
  14376. this.studentEvalDialogVisible = true;
  14377. },
  14378. openEnglishEva(id,i){
  14379. let params = {
  14380. wid: id
  14381. };
  14382. this.ajax
  14383. .get(this.$store.state.api + "selectEngWork", params)
  14384. .then((res) => {
  14385. this.evaEngJson.message = res.data[0][0];
  14386. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14387. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14388. .toolChoose[i].englishList;
  14389. this.engEvaDialogVisible = true;
  14390. })
  14391. .catch((err) => {
  14392. console.error(err);
  14393. });
  14394. },
  14395. deleteWorks(id) {
  14396. this.$confirm("确定删除此作业吗?", "提示", {
  14397. confirmButtonText: "确定",
  14398. cancelButtonText: "取消",
  14399. type: "warning",
  14400. })
  14401. .then(() => {
  14402. let params = [
  14403. {
  14404. id: id,
  14405. },
  14406. ];
  14407. this.ajax
  14408. .post(this.$store.state.api + "deleteCourseWork", params)
  14409. .then((res) => {
  14410. this.$message({
  14411. message: "删除成功",
  14412. type: "success",
  14413. });
  14414. this.selectStudent();
  14415. this.selectSWorks();
  14416. this.selectSLook();
  14417. })
  14418. .catch((err) => {
  14419. this.$message.error("网络异常");
  14420. console.error(err);
  14421. });
  14422. })
  14423. .catch(() => {});
  14424. },
  14425. selectSWorks(gindex) {
  14426. //教师查看全部作业
  14427. let params = {
  14428. cid: this.id,
  14429. s: this.courseType,
  14430. t: this.taskCount,
  14431. };
  14432. this.ajax
  14433. .get(this.$store.state.api + "selectSWorks", params)
  14434. .then((res) => {
  14435. var a =
  14436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14437. this.taskCount
  14438. ].toolChoose;
  14439. var b = res.data[0];
  14440. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14441. var y = [
  14442. "AVI",
  14443. "NAVI",
  14444. "MPEG",
  14445. "ASF",
  14446. "MOV",
  14447. "WMV",
  14448. "3GP",
  14449. "RM",
  14450. "RMVB",
  14451. "FLV",
  14452. "F4V",
  14453. "H.264",
  14454. "H.265",
  14455. "REAL VIDEO",
  14456. "MKV",
  14457. "WebM",
  14458. "HDDVD",
  14459. "MP4",
  14460. "MPG",
  14461. "M4V",
  14462. "MGV",
  14463. "OGV",
  14464. "QTM",
  14465. "STR",
  14466. "AMC",
  14467. "DVX",
  14468. "EVO",
  14469. "DAT",
  14470. "OGG",
  14471. "OGM",
  14472. ];
  14473. var d = res.data[1];
  14474. var e = res.data[2];
  14475. var f = res.data[3];
  14476. let _worksStudent = [];
  14477. var _worksStudent2 = [];
  14478. for (var i = 0; i < a.length; i++) {
  14479. _worksStudent[i] = [];
  14480. _worksStudent2[i] = [];
  14481. if (
  14482. !this.isCloseList[i] ||
  14483. this.isCloseList[i].isClose == undefined
  14484. ) {
  14485. this.isCloseList[i] = { isClose: 0 };
  14486. }
  14487. this.groupStudent[i] = [];
  14488. this.groupStudentUid[i] = [];
  14489. if (this.isGroup) {
  14490. for (
  14491. var groupI = 0;
  14492. groupI < this.courseGroup.group.length;
  14493. groupI++
  14494. ) {
  14495. this.courseGroup.group[groupI].works[i] = [];
  14496. }
  14497. }
  14498. this.isWorksS[i] = [];
  14499. this.checkJson[i] = [];
  14500. if (a[i].tool[0] == 49) {
  14501. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14502. this.groupStudent[i][gA] = [];
  14503. this.groupStudentUid[i][gA] = [];
  14504. _worksStudent[i][gA] = [];
  14505. _worksStudent2[i][gA] = [];
  14506. this.isCloseList[i][gA] = [];
  14507. // debugger
  14508. for (var g = 0; g < f.length; g++) {
  14509. if (
  14510. f[g].ttype == 2 &&
  14511. this.tcid &&
  14512. this.arrayToArray(
  14513. (f[g].classid ? f[g].classid.split(",") : []),
  14514. this.tcid.split(",")
  14515. ).length == 0
  14516. ) {
  14517. continue;
  14518. }
  14519. let _classId = this.arrayToArray(
  14520. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14521. this.classId ? this.classId.split(",") : []
  14522. )
  14523. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14524. (f[g].classid ? f[g].classid.split(",") : []),
  14525. this.tcid.split(",")
  14526. ).length !== 0 || this.arrayToArray(
  14527. (f[g].classid ? f[g].classid.split(",") : []),
  14528. _classId
  14529. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14530. this.groupStudent[i][gA].push(f[g]);
  14531. this.groupStudentUid[i][gA].push(f[g].userid);
  14532. }
  14533. }
  14534. }
  14535. this.$forceUpdate();
  14536. }
  14537. for (var j = 0; j < b.length; j++) {
  14538. if (
  14539. b[j].ttype == 2 &&
  14540. this.tcid &&
  14541. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14542. .length == 0
  14543. ) {
  14544. continue;
  14545. }
  14546. var likesCount = 0;
  14547. var commentCount = 0;
  14548. var isLikes = false;
  14549. var commentJson = [];
  14550. var likeJson = [];
  14551. var data = b[j];
  14552. if (i == b[j].tool) {
  14553. if (data.type == 2 && a[i].tool[0] == 4) {
  14554. // if(JSON.parse(data.content)[0].anwer){
  14555. var checkL =
  14556. JSON.parse(data.content)[0].anwer instanceof Array
  14557. ? JSON.parse(data.content)[0].anwer
  14558. : JSON.parse(data.content)[0].anwer.split(",");
  14559. for (var z = 0; z < checkL.length; z++) {
  14560. if (!this.checkJson[i][z]) {
  14561. this.checkJson[i].push({
  14562. checkCount: [],
  14563. checkPerson: [],
  14564. rightPerson: [],
  14565. });
  14566. }
  14567. if (!this.checkJson[i][z].checkCount.length) {
  14568. this.checkJson[i][z].checkCount = [];
  14569. let _askItemCount = JSON.parse(data.content)[0].askJson
  14570. .askJson[z].askItem;
  14571. for (var aic = 0; aic < _askItemCount; aic++) {
  14572. this.checkJson[i][z].checkCount.push(0);
  14573. }
  14574. }
  14575. if (checkL[z] instanceof Array) {
  14576. if (
  14577. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14578. checkL[z].sort().join(",")
  14579. ) {
  14580. this.checkJson[i][z].rightPerson.push(data.name);
  14581. }
  14582. for (var q = 0; q < checkL[z].length; q++) {
  14583. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14584. ? this.checkJson[i][z].checkPerson[
  14585. parseInt(checkL[z][q])
  14586. ].push(data.name)
  14587. : (this.checkJson[i][z].checkPerson[
  14588. parseInt(checkL[z][q])
  14589. ] = [data.name]);
  14590. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14591. ? this.checkJson[i][z].checkCount[
  14592. parseInt(checkL[z][q])
  14593. ]++
  14594. : (this.checkJson[i][z].checkCount[
  14595. parseInt(checkL[z][q])
  14596. ] = 1);
  14597. }
  14598. } else {
  14599. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14600. this.checkJson[i][z].rightPerson.push(data.name);
  14601. }
  14602. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14603. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14604. ? this.checkJson[i][z].checkPerson[
  14605. parseInt(checkL[z])
  14606. ].push(data.name)
  14607. : (this.checkJson[i][z].checkPerson[
  14608. parseInt(checkL[z])
  14609. ] = [data.name]);
  14610. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14611. ? this.checkJson[i][z].checkCount[
  14612. parseInt(checkL[z])
  14613. ]++
  14614. : (this.checkJson[i][z].checkCount[
  14615. parseInt(checkL[z])
  14616. ] = 1);
  14617. }
  14618. }
  14619. }
  14620. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14621. var checkL = JSON.parse(data.content)[0].anwer;
  14622. for (var z = 0; z < checkL.length; z++) {
  14623. if (!this.checkJson[i][z]) {
  14624. this.checkJson[i].push({
  14625. checkCount: [],
  14626. checkPerson: [],
  14627. rightPerson: [],
  14628. });
  14629. }
  14630. if (!this.checkJson[i][z].checkCount.length) {
  14631. this.checkJson[i][z].checkCount = [];
  14632. let _askItemCount = JSON.parse(data.content)[0].testJson
  14633. .testJson[z].testItem;
  14634. for (var aic = 0; aic < _askItemCount; aic++) {
  14635. this.checkJson[i][z].checkCount.push(0);
  14636. }
  14637. }
  14638. if (checkL[z] instanceof Array) {
  14639. if (
  14640. JSON.parse(data.content)[0]
  14641. .testJson.testJson[z].answer.sort()
  14642. .join(",") == checkL[z].sort().join(",")
  14643. ) {
  14644. this.checkJson[i][z].rightPerson.push(data.name);
  14645. }
  14646. for (var q = 0; q < checkL[z].length; q++) {
  14647. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14648. ? this.checkJson[i][z].checkPerson[
  14649. parseInt(checkL[z][q])
  14650. ].push(data.name)
  14651. : (this.checkJson[i][z].checkPerson[
  14652. parseInt(checkL[z][q])
  14653. ] = [data.name]);
  14654. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14655. ? this.checkJson[i][z].checkCount[
  14656. parseInt(checkL[z][q])
  14657. ]++
  14658. : (this.checkJson[i][z].checkCount[
  14659. parseInt(checkL[z][q])
  14660. ] = 1);
  14661. }
  14662. } else {
  14663. if (
  14664. JSON.parse(data.content)[0].testJson.testJson[z]
  14665. .answer == checkL[z]
  14666. ) {
  14667. this.checkJson[i][z].rightPerson.push(data.name);
  14668. }
  14669. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14670. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14671. ? this.checkJson[i][z].checkPerson[
  14672. parseInt(checkL[z])
  14673. ].push(data.name)
  14674. : (this.checkJson[i][z].checkPerson[
  14675. parseInt(checkL[z])
  14676. ] = [data.name]);
  14677. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14678. ? this.checkJson[i][z].checkCount[
  14679. parseInt(checkL[z])
  14680. ]++
  14681. : (this.checkJson[i][z].checkCount[
  14682. parseInt(checkL[z])
  14683. ] = 1);
  14684. }
  14685. }
  14686. }
  14687. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14688. var checkL = JSON.parse(data.content);
  14689. for (var z = 0; z < checkL.length; z++) {
  14690. if (!this.checkJson[i][z]) {
  14691. this.checkJson[i].push({
  14692. checkCount: [],
  14693. checkPerson: [],
  14694. rightPerson: [],
  14695. });
  14696. }
  14697. this.checkJson[i][z].checkPerson.push(data.name);
  14698. if (
  14699. checkL[z].chooseSenList.toString() ==
  14700. checkL[z].rightAnswer.toString()
  14701. ) {
  14702. this.checkJson[i][z].rightPerson.push(data.name);
  14703. }
  14704. }
  14705. }
  14706. for (var k = 0; k < d.length; k++) {
  14707. //点赞
  14708. if (d[k].workId == b[j].id) {
  14709. likesCount++;
  14710. likeJson.push(d[k])
  14711. if (d[k].likesId == this.userid) {
  14712. isLikes = true;
  14713. }
  14714. }
  14715. }
  14716. for (var l = 0; l < e.length; l++) {
  14717. //评论
  14718. if (e[l].workId == b[j].id) {
  14719. if (e[l].comment != "") {
  14720. commentCount++;
  14721. commentJson.push({
  14722. commentText: e[l].comment,
  14723. commentTime: e[l].commentTime,
  14724. commentPeople: e[l].commentPeople,
  14725. userid: e[l].userid,
  14726. wid: e[l].id,
  14727. });
  14728. }
  14729. }
  14730. }
  14731. if (
  14732. (b[j].type == 1 ||
  14733. b[j].type == 4 ||
  14734. b[j].type == 5 ||
  14735. b[j].type == 6 ||
  14736. b[j].type == 12 ||
  14737. b[j].type == 7) &&
  14738. a[i].tool[0] != 15 &&
  14739. a[i].tool[0] != 4 &&
  14740. a[i].tool[0] != 45 &&
  14741. a[i].tool[0] != 50 &&
  14742. a[i].tool[0] != 32 &&
  14743. a[i].tool[0] != 57 &&
  14744. a[i].tool[0] != 52
  14745. ) {
  14746. if (
  14747. c.indexOf(
  14748. b[j].content
  14749. .split(".")
  14750. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14751. ) != -1 &&
  14752. a[i].tool[0] == 16 &&
  14753. b[j].atool != 50
  14754. ) {
  14755. let _works = {
  14756. userid: b[j].userid,
  14757. ateacher: b[j].ateacher,
  14758. wid: b[j].id,
  14759. works: b[j].content,
  14760. sName: b[j].name,
  14761. type: 1,
  14762. ttype:b[j].ttype,
  14763. time: b[j].time,
  14764. score: b[j].score,
  14765. img: b[j].img,
  14766. likesCount: likesCount,
  14767. commentCount: commentCount,
  14768. isLikes: isLikes,
  14769. commentJson: commentJson,
  14770. likeJson:likeJson
  14771. };
  14772. if (this.isGroup) {
  14773. let isGw = 1;
  14774. for (
  14775. var groupI = 0;
  14776. groupI < this.courseGroup.group.length;
  14777. groupI++
  14778. ) {
  14779. let gid = this.courseGroup.group[groupI].id;
  14780. if (
  14781. this.courseGroupStudentUid[gid].indexOf(
  14782. b[j].userid
  14783. ) != -1
  14784. ) {
  14785. isGw = 2;
  14786. this.courseGroup.group[groupI].works[i].push(_works);
  14787. break;
  14788. }
  14789. }
  14790. if (isGw == 1) {
  14791. _worksStudent[i].push(_works);
  14792. }
  14793. } else {
  14794. _worksStudent[i].push(_works);
  14795. }
  14796. _worksStudent2[i].push(_works);
  14797. this.isWorksS[i].push({
  14798. uid: b[j].userid,
  14799. sName: b[j].name,
  14800. });
  14801. } else if (
  14802. y.indexOf(
  14803. b[j].content
  14804. .split(".")
  14805. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14806. ) != -1 &&
  14807. a[i].tool[0] == 16 &&
  14808. b[j].atool != 50
  14809. ) {
  14810. let _works = {
  14811. userid: b[j].userid,
  14812. ateacher: b[j].ateacher,
  14813. wid: b[j].id,
  14814. works: b[j].content,
  14815. sName: b[j].name,
  14816. type: 3,
  14817. ttype:b[j].ttype,
  14818. time: b[j].time,
  14819. score: b[j].score,
  14820. img: b[j].img,
  14821. likesCount: likesCount,
  14822. commentCount: commentCount,
  14823. isLikes: isLikes,
  14824. commentJson: commentJson,
  14825. likeJson:likeJson
  14826. };
  14827. if (this.isGroup) {
  14828. let isGw = 1;
  14829. for (
  14830. var groupI = 0;
  14831. groupI < this.courseGroup.group.length;
  14832. groupI++
  14833. ) {
  14834. let gid = this.courseGroup.group[groupI].id;
  14835. if (
  14836. this.courseGroupStudentUid[gid].indexOf(
  14837. b[j].userid
  14838. ) != -1
  14839. ) {
  14840. isGw = 2;
  14841. this.courseGroup.group[groupI].works[i].push(_works);
  14842. break;
  14843. }
  14844. }
  14845. if (isGw == 1) {
  14846. _worksStudent[i].push(_works);
  14847. }
  14848. } else {
  14849. _worksStudent[i].push(_works);
  14850. }
  14851. _worksStudent2[i].push(_works);
  14852. this.isWorksS[i].push({
  14853. uid: b[j].userid,
  14854. sName: b[j].name,
  14855. });
  14856. } else if (b[j].type == 6 && b[j].atool != 50) {
  14857. let _works = {
  14858. userid: b[j].userid,
  14859. ateacher: b[j].ateacher,
  14860. wid: b[j].id,
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. type: 4,
  14864. ttype:b[j].ttype,
  14865. time: b[j].time,
  14866. score: b[j].score,
  14867. img: b[j].img,
  14868. likesCount: likesCount,
  14869. commentCount: commentCount,
  14870. isLikes: isLikes,
  14871. commentJson: commentJson,
  14872. likeJson:likeJson
  14873. };
  14874. _worksStudent[i].push(_works);
  14875. _worksStudent2[i].push(_works);
  14876. this.isWorksS[i].push({
  14877. uid: b[j].userid,
  14878. sName: b[j].name,
  14879. });
  14880. } else if (b[j].type == 7 && b[j].atool != 50) {
  14881. let _work = {
  14882. userid: b[j].userid,
  14883. ateacher: b[j].ateacher,
  14884. wid: b[j].id,
  14885. works: b[j].content,
  14886. sName: b[j].name,
  14887. type: 5,
  14888. ttype:b[j].ttype,
  14889. time: b[j].time,
  14890. score: b[j].score,
  14891. img: b[j].img,
  14892. likesCount: likesCount,
  14893. commentCount: commentCount,
  14894. isLikes: isLikes,
  14895. commentJson: commentJson,
  14896. likeJson:likeJson
  14897. };
  14898. _worksStudent[i].push(_work);
  14899. _worksStudent2[i].push(_work);
  14900. this.isWorksS[i].push({
  14901. uid: b[j].userid,
  14902. sName: b[j].name,
  14903. });
  14904. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14905. let _works = {
  14906. userid: b[j].userid,
  14907. ateacher: b[j].ateacher,
  14908. wid: b[j].id,
  14909. works: b[j].content,
  14910. sName: b[j].name,
  14911. type: 12,
  14912. ttype:b[j].ttype,
  14913. time: b[j].time,
  14914. score: b[j].score,
  14915. img: b[j].img,
  14916. likesCount: likesCount,
  14917. commentCount: commentCount,
  14918. isLikes: isLikes,
  14919. commentJson: commentJson,
  14920. likeJson:likeJson
  14921. };
  14922. if (this.isGroup) {
  14923. let isGw = 1;
  14924. for (
  14925. var groupI = 0;
  14926. groupI < this.courseGroup.group.length;
  14927. groupI++
  14928. ) {
  14929. let gid = this.courseGroup.group[groupI].id;
  14930. if (
  14931. this.courseGroupStudentUid[gid].indexOf(
  14932. b[j].userid
  14933. ) != -1
  14934. ) {
  14935. isGw = 2;
  14936. this.courseGroup.group[groupI].works[i].push(_works);
  14937. break;
  14938. }
  14939. }
  14940. if (isGw == 1) {
  14941. _worksStudent[i].push(_works);
  14942. }
  14943. } else {
  14944. _worksStudent[i].push(_works);
  14945. }
  14946. _worksStudent2[i].push(_works);
  14947. this.isWorksS[i].push({
  14948. uid: b[j].userid,
  14949. sName: b[j].name,
  14950. });
  14951. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14952. let _works = {
  14953. userid: b[j].userid,
  14954. ateacher: b[j].ateacher,
  14955. wid: b[j].id,
  14956. works: b[j].content,
  14957. sName: b[j].name,
  14958. type: 0,
  14959. ttype:b[j].ttype,
  14960. time: b[j].time,
  14961. score: b[j].score,
  14962. img: b[j].img,
  14963. likesCount: likesCount,
  14964. commentCount: commentCount,
  14965. isLikes: isLikes,
  14966. commentJson: commentJson,
  14967. likeJson:likeJson
  14968. };
  14969. if (this.isGroup) {
  14970. let isGw = 1;
  14971. for (
  14972. var groupI = 0;
  14973. groupI < this.courseGroup.group.length;
  14974. groupI++
  14975. ) {
  14976. let gid = this.courseGroup.group[groupI].id;
  14977. if (
  14978. this.courseGroupStudentUid[gid].indexOf(
  14979. b[j].userid
  14980. ) != -1
  14981. ) {
  14982. isGw = 2;
  14983. this.courseGroup.group[groupI].works[i].push(_works);
  14984. break;
  14985. }
  14986. }
  14987. if (isGw == 1) {
  14988. _worksStudent[i].push(_works);
  14989. }
  14990. } else {
  14991. _worksStudent[i].push(_works);
  14992. }
  14993. _worksStudent2[i].push(_works);
  14994. this.isWorksS[i].push({
  14995. uid: b[j].userid,
  14996. sName: b[j].name,
  14997. });
  14998. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14999. let _works = {
  15000. userid: b[j].userid,
  15001. ateacher: b[j].ateacher,
  15002. wid: b[j].id,
  15003. works: b[j].content,
  15004. sName: b[j].name,
  15005. type: 0,
  15006. ttype:b[j].ttype,
  15007. time: b[j].time,
  15008. score: b[j].score,
  15009. img: b[j].img,
  15010. likesCount: likesCount,
  15011. commentCount: commentCount,
  15012. isLikes: isLikes,
  15013. commentJson: commentJson,
  15014. likeJson:likeJson
  15015. };
  15016. if (this.isGroup) {
  15017. let isGw = 1;
  15018. for (
  15019. var groupI = 0;
  15020. groupI < this.courseGroup.group.length;
  15021. groupI++
  15022. ) {
  15023. let gid = this.courseGroup.group[groupI].id;
  15024. if (
  15025. this.courseGroupStudentUid[gid].indexOf(
  15026. b[j].userid
  15027. ) != -1
  15028. ) {
  15029. isGw = 2;
  15030. this.courseGroup.group[groupI].works[i].push(_works);
  15031. break;
  15032. }
  15033. }
  15034. if (isGw == 1) {
  15035. _worksStudent[i].push(_works);
  15036. }
  15037. } else {
  15038. _worksStudent[i].push(_works);
  15039. }
  15040. _worksStudent2[i].push(_works);
  15041. this.isWorksS[i].push({
  15042. uid: b[j].userid,
  15043. sName: b[j].name,
  15044. });
  15045. }
  15046. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15047. let _works = {
  15048. userid: b[j].userid,
  15049. ateacher: b[j].ateacher,
  15050. wid: b[j].id,
  15051. works: b[j].content,
  15052. sName: b[j].name,
  15053. type: 2,
  15054. ttype:b[j].ttype,
  15055. time: b[j].time,
  15056. score: b[j].score,
  15057. img: b[j].img,
  15058. likesCount: likesCount,
  15059. commentCount: commentCount,
  15060. isLikes: isLikes,
  15061. commentJson: commentJson,
  15062. likeJson:likeJson
  15063. };
  15064. if (this.isGroup) {
  15065. let isGw = 1;
  15066. for (
  15067. var groupI = 0;
  15068. groupI < this.courseGroup.group.length;
  15069. groupI++
  15070. ) {
  15071. let gid = this.courseGroup.group[groupI].id;
  15072. if (
  15073. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15074. -1
  15075. ) {
  15076. isGw = 2;
  15077. this.courseGroup.group[groupI].works[i].push(_works);
  15078. break;
  15079. }
  15080. }
  15081. if (isGw == 1) {
  15082. _worksStudent[i].push(_works);
  15083. }
  15084. } else {
  15085. _worksStudent[i].push(_works);
  15086. }
  15087. _worksStudent2[i].push(_works);
  15088. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15089. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  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: 2,
  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 == 8 && a[i].tool[0] == 45) {
  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: 8,
  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 == 9 && a[i].tool[0] == 47) {
  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: 9,
  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 == 10 && a[i].tool[0] == 48) {
  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: 10,
  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 == 13 && a[i].tool[0] == 52) {
  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: 13,
  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. likeJson:likeJson
  15195. };
  15196. _worksStudent[i].push(_work);
  15197. _worksStudent2[i].push(_work);
  15198. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15199. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15200. //选择题
  15201. let _work = {
  15202. userid: b[j].userid,
  15203. ateacher: b[j].ateacher,
  15204. wid: b[j].id,
  15205. works: b[j].content,
  15206. sName: b[j].name,
  15207. type: 16,
  15208. ttype:b[j].ttype,
  15209. time: b[j].time,
  15210. score: b[j].score,
  15211. img: b[j].img,
  15212. likesCount: likesCount,
  15213. commentCount: commentCount,
  15214. isLikes: isLikes,
  15215. commentJson: commentJson,
  15216. aiCode: b[j].aiCode,
  15217. teacherCode: b[j].teacherCode,
  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 == 17 && a[i].tool[0] == 70) {
  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: 17,
  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 == 14 && a[i].tool[0] == 62) {
  15246. //交互视频
  15247. let _work = {
  15248. userid: b[j].userid,
  15249. ateacher: b[j].ateacher,
  15250. wid: b[j].id,
  15251. works: b[j].content,
  15252. sName: b[j].name,
  15253. type: 14,
  15254. ttype:b[j].ttype,
  15255. time: b[j].time,
  15256. score: b[j].score,
  15257. img: b[j].img,
  15258. likesCount: likesCount,
  15259. commentCount: commentCount,
  15260. isLikes: isLikes,
  15261. commentJson: commentJson,
  15262. likeJson:likeJson
  15263. };
  15264. _worksStudent[i].push(_work);
  15265. _worksStudent2[i].push(_work);
  15266. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15267. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15268. let _gindex = JSON.parse(b[j].content);
  15269. if (
  15270. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15271. b[j].userid
  15272. ) != -1
  15273. ) {
  15274. let _work = {
  15275. userid: b[j].userid,
  15276. ateacher: b[j].ateacher,
  15277. wid: b[j].id,
  15278. works: _gindex.url,
  15279. sName: b[j].name,
  15280. type: _gindex.type,
  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][_gindex.groupIndex].push(_work);
  15292. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15293. }
  15294. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15295. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15296. let _work = {
  15297. userid: b[j].userid,
  15298. ateacher: b[j].ateacher,
  15299. wid: b[j].id,
  15300. works: b[j].content,
  15301. sName: b[j].name ? b[j].name : b[j].userid,
  15302. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15303. ttype:b[j].ttype,
  15304. time: b[j].time,
  15305. score: b[j].score,
  15306. img: b[j].img,
  15307. likesCount: likesCount,
  15308. commentCount: commentCount,
  15309. isLikes: isLikes,
  15310. commentJson: commentJson,
  15311. likeJson:likeJson
  15312. };
  15313. _worksStudent[i].push(_work);
  15314. _worksStudent2[i].push(_work);
  15315. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15316. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15317. let _work = {
  15318. userid: b[j].userid,
  15319. ateacher: b[j].ateacher,
  15320. wid: b[j].id,
  15321. works: b[j].content,
  15322. sName: b[j].name ? b[j].name : b[j].userid,
  15323. type: 12,
  15324. ttype:b[j].ttype,
  15325. time: b[j].time,
  15326. score: b[j].score,
  15327. img: b[j].img,
  15328. likesCount: likesCount,
  15329. commentCount: commentCount,
  15330. isLikes: isLikes,
  15331. commentJson: commentJson,
  15332. likeJson:likeJson
  15333. };
  15334. _worksStudent[i].push(_work);
  15335. _worksStudent2[i].push(_work);
  15336. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15337. } else if (
  15338. a[i].tool[0] == 57 &&
  15339. b[j].atool == 57 &&
  15340. b[j].type == 12
  15341. ) {
  15342. let _work = {
  15343. userid: b[j].userid,
  15344. ateacher: b[j].ateacher,
  15345. wid: b[j].id,
  15346. works: b[j].content,
  15347. sName: b[j].name ? b[j].name : b[j].userid,
  15348. type: 12,
  15349. ttype:b[j].ttype,
  15350. time: b[j].time,
  15351. score: b[j].score,
  15352. img: b[j].img,
  15353. likesCount: likesCount,
  15354. commentCount: commentCount,
  15355. isLikes: isLikes,
  15356. commentJson: commentJson,
  15357. likeJson:likeJson
  15358. };
  15359. _worksStudent[i].push(_work);
  15360. _worksStudent2[i].push(_work);
  15361. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15362. } else if (
  15363. a[i].tool[0] == 57 &&
  15364. b[j].atool == 57 &&
  15365. b[j].type == 15
  15366. ) {
  15367. let _work = {
  15368. userid: b[j].userid,
  15369. ateacher: b[j].ateacher,
  15370. wid: b[j].id,
  15371. works: b[j].content,
  15372. sName: b[j].name ? b[j].name : b[j].userid,
  15373. type: 15,
  15374. ttype:b[j].ttype,
  15375. time: b[j].time,
  15376. score: b[j].score,
  15377. img: b[j].img,
  15378. likesCount: likesCount,
  15379. commentCount: commentCount,
  15380. isLikes: isLikes,
  15381. commentJson: commentJson,
  15382. likeJson:likeJson
  15383. };
  15384. _worksStudent[i].push(_work);
  15385. _worksStudent2[i].push(_work);
  15386. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15387. }
  15388. }
  15389. }
  15390. if (_worksStudent[i] && _worksStudent[i].length) {
  15391. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15392. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15393. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15394. var scoreA = parseFloat(jscoreA);
  15395. var scoreB = parseFloat(jscoreB);
  15396. if (scoreA == scoreB) {
  15397. return b.likesCount - a.likesCount;
  15398. }
  15399. return scoreB - scoreA;
  15400. });
  15401. if (this.isGroup) {
  15402. for (
  15403. var groupI = 0;
  15404. groupI < this.courseGroup.group.length;
  15405. groupI++
  15406. ) {
  15407. this.courseGroup.group[groupI].works[i] =
  15408. this.courseGroup.group[groupI].works[i].sort(function (
  15409. a,
  15410. b
  15411. ) {
  15412. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15413. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15414. var scoreA = parseFloat(jscoreA);
  15415. var scoreB = parseFloat(jscoreB);
  15416. if (scoreA == scoreB) {
  15417. return b.likesCount - a.likesCount;
  15418. }
  15419. return scoreB - scoreA;
  15420. });
  15421. }
  15422. }
  15423. }
  15424. }
  15425. this.timeWorkList = _worksStudent2;
  15426. for (var i = 0; i < a.length; i++) {
  15427. for (var j = 0; j < b.length; j++) {
  15428. var data = b[j];
  15429. if (i == b[j].tool) {
  15430. if (data.type == 2 || data.type == 8) {
  15431. for (var z = 0; z < this.checkJson[i].length; z++) {
  15432. this.checkJson[i][z].checkPerent = [];
  15433. this.checkJson[i][z].right = Math.round(
  15434. (this.checkJson[i][z].rightPerson.length /
  15435. parseInt(_worksStudent[i].length)) *
  15436. 100
  15437. );
  15438. let aaaa = this.checkJson[i][z];
  15439. for (
  15440. var k = 0;
  15441. k < this.checkJson[i][z].checkCount.length;
  15442. k++
  15443. ) {
  15444. this.checkJson[i][z].checkPerent.push(
  15445. Math.round(
  15446. (this.checkJson[i][z].checkCount[k] /
  15447. parseInt(_worksStudent[i].length)) *
  15448. 100
  15449. )
  15450. );
  15451. }
  15452. }
  15453. } else if (data.type == 9) {
  15454. for (var z = 0; z < this.checkJson[i].length; z++) {
  15455. this.checkJson[i][z].checkPerent = [];
  15456. this.checkJson[i][z].right = Math.round(
  15457. (this.checkJson[i][z].rightPerson.length /
  15458. this.checkJson[i][z].checkPerson.length) *
  15459. 100
  15460. );
  15461. }
  15462. }
  15463. }
  15464. }
  15465. }
  15466. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15467. this.joinGroup(gindex);
  15468. }
  15469. this.worksStudent = _worksStudent;
  15470. this.selectWorksStudent();
  15471. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15472. this.$nextTick(()=>{
  15473. setTimeout(()=>{
  15474. setTimeout(()=>{
  15475. this.panToolHeight('tool-'+ci);
  15476. }, 500)
  15477. }, 0)
  15478. })
  15479. }
  15480. })
  15481. .catch((err) => {
  15482. console.error(err);
  15483. });
  15484. },
  15485. pngToWhiteBg(file) {
  15486. const _file = file;
  15487. let read = new FileReader();
  15488. read.readAsDataURL(file); // 文件转base64
  15489. return new Promise((resolve, reject) => {
  15490. read.onload = (e) => {
  15491. let img = new Image();
  15492. img.src = e.target.result;
  15493. img.onload = async () => {
  15494. // 生成canvas
  15495. let canvas = document.createElement("canvas");
  15496. let context = canvas.getContext("2d");
  15497. // 绘制图片到canvas上
  15498. canvas.width = img.width;
  15499. canvas.height = img.height;
  15500. // 在canvas绘制前填充白色背景
  15501. context.fillStyle = "#fff";
  15502. context.fillRect(0, 0, canvas.width, canvas.height);
  15503. context.drawImage(img, 0, 0);
  15504. let base64 = canvas.toDataURL(file["type"], 1);
  15505. let newFile = this.dataUrlToFile(base64, _file);
  15506. resolve(newFile);
  15507. };
  15508. };
  15509. });
  15510. },
  15511. dataUrlToFile(dataurl, file) {
  15512. let arr = dataurl.split(","),
  15513. mime = arr[0].match(/:(.*?);/)[1],
  15514. bstr = atob(arr[1]),
  15515. n = bstr.length,
  15516. u8arr = new Uint8Array(n);
  15517. while (n--) {
  15518. u8arr[n] = bstr.charCodeAt(n);
  15519. }
  15520. // return new Blob([u8arr], { type: mime });
  15521. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15522. type: mime,
  15523. });
  15524. },
  15525. async beforeUpload1(event, type, i) {
  15526. // this.$message.success('进入上传')
  15527. var file = "";
  15528. if (type == 5) {
  15529. file = event;
  15530. } else {
  15531. file = event.target.files[0];
  15532. }
  15533. var credentials = {
  15534. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15535. secretAccessKey: "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",
  15536. }; //秘钥形式的登录上传
  15537. window.AWS.config.update(credentials);
  15538. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15539. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15540. var _this = this;
  15541. _this.progress = 0;
  15542. _this.proVisible = true;
  15543. _this.isFinishSize = 0;
  15544. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15545. var b = [
  15546. "DOC",
  15547. "DOCX",
  15548. "DOCM",
  15549. "DOTM",
  15550. "DOTX",
  15551. "PPTX",
  15552. "PPSX",
  15553. "PPT",
  15554. "PPS",
  15555. "PPTM",
  15556. "POTM",
  15557. "PPAM",
  15558. "POTX",
  15559. "PPSM",
  15560. ];
  15561. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15562. var photoA = [
  15563. "BMP",
  15564. "GIF",
  15565. "PNG",
  15566. "JPEG",
  15567. "JPEG",
  15568. "JPG",
  15569. "TIF",
  15570. "PCX",
  15571. "TGA",
  15572. "EXIF",
  15573. "FPX",
  15574. "SVG",
  15575. "APNG",
  15576. ];
  15577. // if (
  15578. // b.indexOf(
  15579. // file.name
  15580. // .split(".")
  15581. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15582. // ) != -1
  15583. // ) {
  15584. // if (file.size / 1024 / 1024 > 10) {
  15585. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15586. // return;
  15587. // }
  15588. // } else if (
  15589. // excelA.indexOf(
  15590. // file.name
  15591. // .split(".")
  15592. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15593. // ) != "-1"
  15594. // ) {
  15595. // if (file.size / 1024 / 1024 > 5) {
  15596. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15597. // return;
  15598. // }
  15599. // }
  15600. if (
  15601. photoA.indexOf(
  15602. file.name
  15603. .split(".")
  15604. [file.name.split(".").length - 1].toLocaleUpperCase()
  15605. ) != -1 &&
  15606. type != 4
  15607. ) {
  15608. // const blob = await imageConversion.compress(file, 0.8)
  15609. file = await this.pngToWhiteBg(file);
  15610. const blob = await imageConversion.compressAccurately(file, 256);
  15611. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15612. file = new File([blob], file.name, { type: file.type });
  15613. }
  15614. if (file) {
  15615. var params = {
  15616. Key:
  15617. file.name.split(".")[0] +
  15618. new Date().getTime() +
  15619. "." +
  15620. file.name.split(".")[file.name.split(".").length - 1],
  15621. ContentType: file.type,
  15622. Body: file,
  15623. "Access-Control-Allow-Credentials": "*",
  15624. ACL: "public-read",
  15625. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15626. var options = {
  15627. // partSize: 2048 * 1024 * 1024,
  15628. partSize: 1024 * 1024 * 1024,
  15629. queueSize: 2,
  15630. leavePartsOnError: true,
  15631. };
  15632. bucket
  15633. .upload(params, options)
  15634. .on("httpUploadProgress", function (evt) {
  15635. //这里可以写进度条
  15636. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15637. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15638. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15639. })
  15640. .send(function (err, data) {
  15641. _this.progress = 100;
  15642. _this.isFinishSize = _this.isAllSize;
  15643. setTimeout(() => {
  15644. _this.proVisible = false;
  15645. }, 1000);
  15646. if (err) {
  15647. var a = _this.$refs.upload1.uploadFiles;
  15648. a.splice(a.length - 1, a.length);
  15649. _this.$message.error("上传失败");
  15650. } else {
  15651. // _this.$message.success('上传成功')
  15652. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15653. var c = [
  15654. "AVI",
  15655. "NAVI",
  15656. "MPEG",
  15657. "ASF",
  15658. "MOV",
  15659. "WMV",
  15660. "3GP",
  15661. "RM",
  15662. "RMVB",
  15663. "FLV",
  15664. "F4V",
  15665. "H.264",
  15666. "H.265",
  15667. "REAL VIDEO",
  15668. "MKV",
  15669. "WebM",
  15670. "HDDVD",
  15671. "MP4",
  15672. "MPG",
  15673. "M4V",
  15674. "MGV",
  15675. "OGV",
  15676. "QTM",
  15677. "STR",
  15678. "AMC",
  15679. "DVX",
  15680. "EVO",
  15681. "DAT",
  15682. "OGG",
  15683. "OGM",
  15684. ];
  15685. if (type == 1) {
  15686. _this.studyJuri[0].cover.push({
  15687. name: file.name,
  15688. url: data.Location,
  15689. uid: file.uid,
  15690. });
  15691. if (
  15692. c.indexOf(
  15693. _this.studyJuri[0].cover[0].url
  15694. .split(".")
  15695. [
  15696. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15697. ].toLocaleUpperCase()
  15698. ) != -1
  15699. ) {
  15700. _this.fileType = 2;
  15701. } else if (
  15702. b.indexOf(
  15703. _this.studyJuri[0].cover[0].url
  15704. .split(".")
  15705. [
  15706. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15707. ].toLocaleUpperCase()
  15708. ) != -1
  15709. ) {
  15710. _this.fileType = 1;
  15711. } else if (
  15712. photoA.indexOf(
  15713. _this.studyJuri[0].cover[0].url
  15714. .split(".")
  15715. [
  15716. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15717. ].toLocaleUpperCase()
  15718. ) != -1
  15719. ) {
  15720. _this.fileType = 0;
  15721. } else {
  15722. _this.fileType = 3;
  15723. }
  15724. _this.imgChange(null, null, type);
  15725. } else if (type == 2) {
  15726. _this.upToolImg = data.Location;
  15727. _this.imgChange(null, null, type);
  15728. _this.addCourseWorks(i);
  15729. } else if (type == 4) {
  15730. _this.addPz("3", data.Location);
  15731. } else if (type == 5) {
  15732. _this.addImgDrawImG(data.Location);
  15733. } else if (type == 6) {
  15734. var _ftype = 1;
  15735. if (
  15736. c.indexOf(
  15737. data.Location.split(".")[
  15738. data.Location.split(".").length - 1
  15739. ].toLocaleUpperCase()
  15740. ) != -1
  15741. ) {
  15742. _ftype = 5;
  15743. } else if (
  15744. b.indexOf(
  15745. data.Location.split(".")[
  15746. data.Location.split(".").length - 1
  15747. ].toLocaleUpperCase()
  15748. ) != -1
  15749. ) {
  15750. _ftype = 4;
  15751. } else {
  15752. _ftype = 1;
  15753. }
  15754. _this.plworkFile.push({
  15755. name: file.name,
  15756. url: data.Location,
  15757. uid: file.uid,
  15758. fileType: _ftype,
  15759. username:
  15760. _this.plworkFile.length > 10
  15761. ? _this.plworkFile.length + 1
  15762. : "0" + (_this.plworkFile.length + 1),
  15763. });
  15764. } else if (type == 7) {
  15765. _this.addCourseWorksGong(i, data.Location, 32);
  15766. } else if (type == 8) {
  15767. _this.addCourseWorksGong(i, data.Location, 57);
  15768. }
  15769. _this.imgChange(null, null, type);
  15770. console.log(data.Location);
  15771. // _this.$message.success('上传成功'+data.Location)
  15772. }
  15773. });
  15774. }
  15775. },
  15776. async beforeUpload3(event, type, i) {
  15777. // this.$message.success('进入上传')
  15778. let file = "";
  15779. let cfindex2 = 0;
  15780. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15781. file = event.target.files[cfindex];
  15782. var credentials = {
  15783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15784. secretAccessKey: "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",
  15785. }; //秘钥形式的登录上传
  15786. window.AWS.config.update(credentials);
  15787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15789. var _this = this;
  15790. // _this.progress = 0;
  15791. _this.proVisible2 = true;
  15792. var b = [
  15793. "DOC",
  15794. "DOCX",
  15795. "DOCM",
  15796. "DOTM",
  15797. "DOTX",
  15798. "PPTX",
  15799. "PPSX",
  15800. "PPT",
  15801. "PPS",
  15802. "PPTM",
  15803. "POTM",
  15804. "PPAM",
  15805. "POTX",
  15806. "PPSM",
  15807. ];
  15808. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15809. var photoA = [
  15810. "BMP",
  15811. "GIF",
  15812. "PNG",
  15813. "JPEG",
  15814. "JPG",
  15815. "TIF",
  15816. "PCX",
  15817. "TGA",
  15818. "EXIF",
  15819. "FPX",
  15820. "SVG",
  15821. "APNG",
  15822. ];
  15823. if (
  15824. photoA.indexOf(
  15825. file.name
  15826. .split(".")
  15827. [file.name.split(".").length - 1].toLocaleUpperCase()
  15828. ) != -1 &&
  15829. type != 4
  15830. ) {
  15831. // const blob = await imageConversion.compress(file, 0.8)
  15832. file = await this.pngToWhiteBg(file);
  15833. const blob = await imageConversion.compressAccurately(file, 256);
  15834. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15835. file = new File([blob], file.name, { type: file.type });
  15836. }
  15837. if (file) {
  15838. var params = {
  15839. Key:
  15840. file.name.split(".")[0] +
  15841. new Date().getTime() +
  15842. "." +
  15843. file.name.split(".")[file.name.split(".").length - 1],
  15844. ContentType: file.type,
  15845. Body: file,
  15846. "Access-Control-Allow-Credentials": "*",
  15847. ACL: "public-read",
  15848. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15849. var options = {
  15850. // partSize: 2048 * 1024 * 1024,
  15851. partSize: 1024 * 1024 * 1024,
  15852. queueSize: 2,
  15853. leavePartsOnError: true,
  15854. };
  15855. bucket
  15856. .upload(params, options)
  15857. .on("httpUploadProgress", function (evt) {
  15858. //这里可以写进度条
  15859. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15860. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15861. })
  15862. .send(function (err, data) {
  15863. // _this.progress = 100;
  15864. cfindex2++;
  15865. setTimeout(() => {
  15866. if (
  15867. cfindex2 == event.target.files.length - 1 ||
  15868. cfindex2 > event.target.files.length - 1
  15869. ) {
  15870. _this.proVisible2 = false;
  15871. }
  15872. }, 1000);
  15873. if (err) {
  15874. var a = _this.$refs.upload1.uploadFiles;
  15875. a.splice(a.length - 1, a.length);
  15876. _this.$message.error("上传失败");
  15877. } else {
  15878. // _this.$message.success('上传成功')
  15879. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15880. var c = [
  15881. "AVI",
  15882. "NAVI",
  15883. "MPEG",
  15884. "ASF",
  15885. "MOV",
  15886. "WMV",
  15887. "3GP",
  15888. "RM",
  15889. "RMVB",
  15890. "FLV",
  15891. "F4V",
  15892. "H.264",
  15893. "H.265",
  15894. "REAL VIDEO",
  15895. "MKV",
  15896. "WebM",
  15897. "HDDVD",
  15898. "MP4",
  15899. "MPG",
  15900. "M4V",
  15901. "MGV",
  15902. "OGV",
  15903. "QTM",
  15904. "STR",
  15905. "AMC",
  15906. "DVX",
  15907. "EVO",
  15908. "DAT",
  15909. "OGG",
  15910. "OGM",
  15911. ];
  15912. if (type == 1) {
  15913. _this.studyJuri[0].cover.push({
  15914. name: file.name,
  15915. url: data.Location,
  15916. uid: file.uid,
  15917. });
  15918. if (
  15919. c.indexOf(
  15920. _this.studyJuri[0].cover[0].url
  15921. .split(".")
  15922. [
  15923. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15924. ].toLocaleUpperCase()
  15925. ) != -1
  15926. ) {
  15927. _this.fileType = 2;
  15928. } else if (
  15929. b.indexOf(
  15930. _this.studyJuri[0].cover[0].url
  15931. .split(".")
  15932. [
  15933. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15934. ].toLocaleUpperCase()
  15935. ) != -1
  15936. ) {
  15937. _this.fileType = 1;
  15938. } else {
  15939. _this.fileType = 0;
  15940. }
  15941. _this.imgChange(null, null, type);
  15942. } else if (type == 2) {
  15943. _this.upToolImg = data.Location;
  15944. _this.imgChange(null, null, type);
  15945. _this.addCourseWorks(i);
  15946. } else if (type == 4) {
  15947. _this.addPz("3", data.Location);
  15948. } else if (type == 5) {
  15949. _this.addImgDrawImG(data.Location);
  15950. } else if (type == 6) {
  15951. var _ftype = 1;
  15952. if (
  15953. c.indexOf(
  15954. data.Location.split(".")[
  15955. data.Location.split(".").length - 1
  15956. ].toLocaleUpperCase()
  15957. ) != -1
  15958. ) {
  15959. _ftype = 5;
  15960. } else if (
  15961. b.indexOf(
  15962. data.Location.split(".")[
  15963. data.Location.split(".").length - 1
  15964. ].toLocaleUpperCase()
  15965. ) != -1
  15966. ) {
  15967. _ftype = 4;
  15968. } else {
  15969. _ftype = 1;
  15970. }
  15971. _this.plworkFile.push({
  15972. name: file.name,
  15973. url: data.Location,
  15974. uid: file.uid,
  15975. fileType: _ftype,
  15976. username:
  15977. _this.plworkFile.length + 1 > 9
  15978. ? _this.plworkFile.length + 1
  15979. : "0" + (_this.plworkFile.length + 1),
  15980. });
  15981. }
  15982. _this.imgChange(null, null, type);
  15983. console.log(data.Location);
  15984. // _this.$message.success('上传成功'+data.Location)
  15985. }
  15986. });
  15987. }
  15988. }
  15989. },
  15990. beforeUpload2(event, type) {
  15991. var file = event.target.files[0];
  15992. var credentials = {
  15993. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15994. secretAccessKey: "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",
  15995. }; //秘钥形式的登录上传
  15996. window.AWS.config.update(credentials);
  15997. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15998. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15999. var _this = this;
  16000. _this.progress = 0;
  16001. _this.proVisible = true;
  16002. if (file) {
  16003. var params = {
  16004. Key:
  16005. file.name.split(".")[0] +
  16006. new Date().getTime() +
  16007. "." +
  16008. file.name.split(".")[file.name.split(".").length - 1],
  16009. ContentType: file.type,
  16010. Body: file,
  16011. "Access-Control-Allow-Credentials": "*",
  16012. ACL: "public-read",
  16013. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16014. var options = {
  16015. partSize: 2048 * 1024 * 1024,
  16016. queueSize: 2,
  16017. leavePartsOnError: true,
  16018. };
  16019. bucket
  16020. .upload(params, options)
  16021. .on("httpUploadProgress", function (evt) {
  16022. //这里可以写进度条
  16023. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16024. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16025. })
  16026. .send(function (err, data) {
  16027. _this.progress = 100;
  16028. setTimeout(() => {
  16029. _this.proVisible = false;
  16030. }, 1000);
  16031. if (err) {
  16032. var a = _this.$refs.upload1.uploadFiles;
  16033. a.splice(a.length - 1, a.length);
  16034. _this.$message.error("上传失败");
  16035. } else {
  16036. if (type == 2) {
  16037. _this.studyJuri[0].upVedio.push({
  16038. name: file.name,
  16039. url: data.Location,
  16040. uid: file.uid,
  16041. });
  16042. _this.imgChange(null, null, type);
  16043. } else if (type == 3) {
  16044. _this.studyJuri[0].upFile.push({
  16045. name: file.name,
  16046. url: data.Location,
  16047. uid: file.uid,
  16048. });
  16049. _this.imgChange(null, null, type);
  16050. }
  16051. console.log(data.Location);
  16052. }
  16053. });
  16054. }
  16055. },
  16056. allScrell() {
  16057. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16058. },
  16059. nextOrpreSteps(t) {
  16060. if (this.IsFollow && this.tType == 2) {
  16061. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16062. return;
  16063. }
  16064. var b = this.chapInfoList.length - 1;
  16065. if (t == 0) {
  16066. if (this.courseType == 0) {
  16067. if (this.taskCount == 0) {
  16068. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16069. if (this.IsLookOpen) {
  16070. if (
  16071. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16072. ) {
  16073. if (
  16074. this.courseDetail.userid != this.userid &&
  16075. (!this.courseDetail.course_teacher ||
  16076. (this.courseDetail.course_teacher &&
  16077. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16078. ) {
  16079. this.$message.error("任务未解锁");
  16080. } else {
  16081. this.$message.error("上一任务未解锁");
  16082. }
  16083. return;
  16084. }
  16085. }
  16086. this.navList[this.courseType].isOpen = false;
  16087. this.courseType = b;
  16088. this.taskCount =
  16089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16090. .length - 1;
  16091. this.navList[this.courseType].isOpen = true;
  16092. } else {
  16093. this.taskCount--;
  16094. }
  16095. } else {
  16096. if (this.taskCount == 0) {
  16097. this.navList[this.courseType].isOpen = false;
  16098. this.courseType--;
  16099. this.taskCount =
  16100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16101. .length - 1;
  16102. this.navList[this.courseType].isOpen = true;
  16103. } else {
  16104. this.taskCount--;
  16105. }
  16106. }
  16107. } else {
  16108. if (this.courseType == b) {
  16109. if (
  16110. this.taskCount ==
  16111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16112. 1
  16113. ) {
  16114. this.navList[this.courseType].isOpen = false;
  16115. this.courseType = 0;
  16116. this.taskCount = 0;
  16117. this.navList[this.courseType].isOpen = true;
  16118. } else {
  16119. var bbb = parseInt(this.taskCount) + 1;
  16120. if (
  16121. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16122. .isLook &&
  16123. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16124. (this.courseDetail.course_teacher &&
  16125. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16126. this.IsLookOpen
  16127. ) {
  16128. this.$message.error("任务未解锁");
  16129. return;
  16130. }
  16131. this.taskCount++;
  16132. if (this.IsLookOpen) {
  16133. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16134. this.taskCount
  16135. ].isLook = true;
  16136. this.addCourseState(3);
  16137. }
  16138. }
  16139. } else {
  16140. if (
  16141. this.taskCount ==
  16142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16143. 1
  16144. ) {
  16145. var bbb = parseInt(this.courseType) + 1;
  16146. if (
  16147. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16148. this.courseDetail.userid != this.userid &&
  16149. (!this.courseDetail.course_teacher ||
  16150. (this.courseDetail.course_teacher &&
  16151. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16152. this.IsLookOpen
  16153. ) {
  16154. this.$message.error("任务未解锁");
  16155. return;
  16156. }
  16157. this.navList[this.courseType].isOpen = false;
  16158. this.courseType++;
  16159. this.taskCount = 0;
  16160. this.navList[this.courseType].isOpen = true;
  16161. } else {
  16162. var bbb = parseInt(this.taskCount) + 1;
  16163. if (
  16164. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16165. .isLook &&
  16166. this.courseDetail.userid != this.userid &&
  16167. (!this.courseDetail.course_teacher ||
  16168. (this.courseDetail.course_teacher &&
  16169. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16170. this.IsLookOpen
  16171. ) {
  16172. this.$message.error("任务未解锁");
  16173. return;
  16174. }
  16175. this.taskCount++;
  16176. }
  16177. if (this.IsLookOpen) {
  16178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16179. this.taskCount
  16180. ].isLook = true;
  16181. this.addCourseState(3);
  16182. }
  16183. }
  16184. // if (
  16185. // this.taskCount ==
  16186. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16187. // ) {
  16188. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16189. // } else {
  16190. // this.taskCount++;
  16191. // }
  16192. }
  16193. document.scrollingElement.scrollTop = 0;
  16194. this.showType = 7;
  16195. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16196. // if (this.vedio[this.taskCount].length > 0) {
  16197. // var a =
  16198. // document.getElementsByClassName("box_course")[this.taskCount]
  16199. // .offsetHeight;
  16200. // document.getElementsByClassName("vedioList")[
  16201. // this.taskCount
  16202. // ].style.height = a + "px";
  16203. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16204. // a - 40 + "px";
  16205. // }
  16206. this.isNoHomeWork = false;
  16207. (this.studyJuri = [
  16208. {
  16209. content: "",
  16210. cover: [],
  16211. upVedio: [],
  16212. upFile: [],
  16213. },
  16214. ]),
  16215. (this.radio = []);
  16216. this.isClickNav = "";
  16217. this.selectPz();
  16218. this.getHomeWork();
  16219. this.getCourseDetail(2);
  16220. this.$forceUpdate();
  16221. },
  16222. openTask(s, n, i,ctype) {
  16223. console.log(s, n, i,ctype)
  16224. if (this.IsFollow && this.tType == 2) {
  16225. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16226. return;
  16227. }
  16228. if (this.IsLookOpen) {
  16229. if (
  16230. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16231. this.courseDetail.userid != this.userid &&
  16232. (!this.courseDetail.course_teacher ||
  16233. (this.courseDetail.course_teacher &&
  16234. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16235. ) {
  16236. this.$message.error("任务未解锁");
  16237. return;
  16238. }
  16239. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16240. if (
  16241. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16242. .isLook
  16243. ) {
  16244. this.$message.error("上一任务未解锁");
  16245. return;
  16246. }
  16247. } else if (s > this.courseType) {
  16248. if (n > 0) {
  16249. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16250. this.$message.error("上一任务未解锁");
  16251. return;
  16252. }
  16253. } else {
  16254. if (
  16255. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16256. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16257. ].isLook
  16258. ) {
  16259. this.$message.error("上一任务未解锁");
  16260. return;
  16261. }
  16262. }
  16263. }
  16264. }
  16265. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16266. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16267. return;
  16268. }
  16269. let flag = this.courseType==s;
  16270. this.courseType = s;
  16271. this.navId = i;
  16272. this.taskCount = n;
  16273. if(ctype == 2){
  16274. this.navList[s].task[n].isOpen = true
  16275. }else{
  16276. this.navList[this.courseType].task[this.taskCount].isOpen =
  16277. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16278. }
  16279. if (this.IsLookOpen) {
  16280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16281. this.taskCount
  16282. ].isLook = true;
  16283. this.addCourseState(3);
  16284. }
  16285. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16286. this.isCloseList[ci].isClose = 0;
  16287. this.isCloseList[ci].isCloseBoolean = false;
  16288. this.$nextTick(()=>{
  16289. setTimeout(()=>{
  16290. setTimeout(()=>{
  16291. this.panToolHeight('tool-'+ci);
  16292. }, 0)
  16293. }, 0)
  16294. })
  16295. }
  16296. this.showType = 0;
  16297. this.isNoHomeWork = false;
  16298. (this.studyJuri = [
  16299. {
  16300. content: "",
  16301. cover: [],
  16302. upVedio: [],
  16303. upFile: [],
  16304. },
  16305. ]),
  16306. (this.radio = []);
  16307. document.scrollingElement.scrollTop = 0;
  16308. // setTimeout(() => {
  16309. // let a = document.getElementById(i);
  16310. // if (a.offsetTop - 110 == 0) {
  16311. // window.scrollTo(0, 0);
  16312. // } else {
  16313. // window.scrollTo(0, a.offsetTop);
  16314. // }
  16315. // }, 0);
  16316. for (var z = 0; z < this.navList.length; z++) {
  16317. for (var q = 0; q < this.navList[z].task.length; q++) {
  16318. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16319. this.navList[z].task[q].tool[w].isTool = false;
  16320. }
  16321. }
  16322. }
  16323. this.selectPz();
  16324. this.getHomeWork();
  16325. this.getCourseDetail(2);
  16326. if(flag){
  16327. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16328. }else{
  16329. 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>`)
  16330. }
  16331. },
  16332. get(i) {
  16333. if (this.IsFollow && this.tType == 2) {
  16334. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16335. return;
  16336. }
  16337. // for(var k=0;k<this.navList.length;k++){
  16338. // this.navList[k].isOpen = false;
  16339. // }
  16340. // this.navList[i].isOpen = true;
  16341. let a = this.navList[i].isOpen
  16342. this.navList[i].isOpen = !this.navList[i].isOpen;
  16343. this.$forceUpdate()
  16344. if (this.navList[i].isOpen) {
  16345. this.openTask(i, 0, (i + "-0"),2);
  16346. }
  16347. },
  16348. addQuestion() {
  16349. this.answerList.push({
  16350. answerTitle: this.answerQ,
  16351. answer: this.questionAnswer,
  16352. });
  16353. let params = [
  16354. {
  16355. uid: this.userid,
  16356. cid: this.id,
  16357. stage: this.courseType,
  16358. task: this.taskCount,
  16359. tool: this.toolindex,
  16360. content: JSON.stringify(this.answerList),
  16361. type: 3,
  16362. },
  16363. ];
  16364. this.ajax
  16365. .post(this.$store.state.api + "addCourseWorks", params)
  16366. .then((res) => {
  16367. this.$message({
  16368. message: "提交成功",
  16369. type: "success",
  16370. });
  16371. this.answerList = [];
  16372. this.answerDialogVisible = false;
  16373. this.selectStudent();
  16374. this.selectSWorks();
  16375. this.selectSLook();
  16376. })
  16377. .catch((err) => {
  16378. this.$message.error("提交失败");
  16379. console.error(err);
  16380. });
  16381. },
  16382. addQuestionTeacher() {
  16383. this.answerList.push({
  16384. answerTitle: this.answerQ,
  16385. answer: this.questionAnswer,
  16386. });
  16387. let params = [
  16388. {
  16389. uid: this.sStudent.userid,
  16390. cid: this.id,
  16391. stage: this.courseType,
  16392. task: this.taskCount,
  16393. tool: this.toolindex,
  16394. content: JSON.stringify(this.answerList),
  16395. type: 3,
  16396. ateacher: this.userid,
  16397. },
  16398. ];
  16399. this.ajax
  16400. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16401. .then((res) => {
  16402. this.$message({
  16403. message: "提交成功",
  16404. type: "success",
  16405. });
  16406. this.answerList = [];
  16407. this.questionAnswer = "";
  16408. this.answerDialogVisibleTeacher = false;
  16409. this.selectStudent();
  16410. this.selectSWorks();
  16411. this.selectSLook();
  16412. })
  16413. .catch((err) => {
  16414. this.$message.error("提交失败");
  16415. console.error(err);
  16416. });
  16417. },
  16418. refreshCourse() {
  16419. // window.location.reload();
  16420. this.navList = [];
  16421. this.getCourseDetail(1);
  16422. },
  16423. getCourseDetail(type, gindex) {
  16424. let loading;
  16425. if (type != 2) {
  16426. loading = this.$loading.service({
  16427. background: "rgba(255, 255, 255, 0.7)",
  16428. target: document.querySelector(".student_table"),
  16429. });
  16430. }
  16431. this.downLoading = false
  16432. // this.navList[0].isOpen = false;
  16433. // this.navList[this.courseType].isOpen = true;
  16434. // this.courseType = this.courseTypeLine;
  16435. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16436. let params = {
  16437. courseId: this.id,
  16438. };
  16439. this.ajax
  16440. .get(this.$store.state.api + "selectCourseDetail3", params)
  16441. .then((res) => {
  16442. if (type != 2) {
  16443. loading.close();
  16444. if (
  16445. this.courseType >
  16446. JSON.parse(res.data[0][0].chapters).length - 1
  16447. ) {
  16448. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16449. }
  16450. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16451. .chapterInfo[0].taskJson;
  16452. var b = [
  16453. "AVI",
  16454. "NAVI",
  16455. "MPEG",
  16456. "ASF",
  16457. "MOV",
  16458. "WMV",
  16459. "3GP",
  16460. "RM",
  16461. "RMVB",
  16462. "FLV",
  16463. "F4V",
  16464. "H.264",
  16465. "H.265",
  16466. "REAL VIDEO",
  16467. "MKV",
  16468. "WebM",
  16469. "HDDVD",
  16470. "MP4",
  16471. "MPG",
  16472. "M4V",
  16473. "MGV",
  16474. "OGV",
  16475. "QTM",
  16476. "STR",
  16477. "AMC",
  16478. "DVX",
  16479. "EVO",
  16480. "DAT",
  16481. "OGG",
  16482. "OGM",
  16483. "MP3",
  16484. ];
  16485. let _chapterData = [];
  16486. for (var i = 0; i < a.length; i++) {
  16487. var c = a[i].chapterData;
  16488. this.vedio[i] = [];
  16489. this.textList[i] = [];
  16490. this.lineList[i] = [];
  16491. this.chapToolList[i] = [];
  16492. this.file[i] = [];
  16493. this.fileC[i] = [];
  16494. _chapterData[i] = c.filter((el) => {
  16495. return el.type != 12;
  16496. });
  16497. this.fileC[i] = c.filter((el) => {
  16498. return el.type == 12;
  16499. });
  16500. // else if (c[j].type == 12) {
  16501. // this.fileC[i].push(c[j]);
  16502. // }
  16503. for (var j = 0; j < c.length; j++) {
  16504. if (c[j].type == 7) {
  16505. this.chapToolList[i].push(c[j]);
  16506. } else if (c[j].type == 8 || c[j].type == 14) {
  16507. this.lineList[i].push(c[j]);
  16508. } else if (c[j].type == 6) {
  16509. this.textList[i].push(c[j]);
  16510. } else {
  16511. if (
  16512. b.indexOf(
  16513. c[j].url
  16514. .split(".")
  16515. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16516. ) != -1
  16517. ) {
  16518. this.vedio[i].push(c[j]);
  16519. } else {
  16520. this.file[i].push(c[j]);
  16521. }
  16522. }
  16523. }
  16524. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16525. d.sources[0].src =
  16526. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16527. this.playerO[i] = d;
  16528. }
  16529. this.courseDetail = res.data[0][0];
  16530. this.tcid = this.arrayToArray(
  16531. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16532. this.tcid2 ? this.tcid2.split(",") : []
  16533. ).join(",");
  16534. this.evalua = res.data[0][0].evaId;
  16535. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16536. this.courseType
  16537. ];
  16538. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16539. if (this.tcid && res.data[1].length) {
  16540. let _inviteA = [];
  16541. for (var ik = 0; ik < res.data[1].length; ik++) {
  16542. _inviteA.push({
  16543. cid: res.data[1][ik].classid,
  16544. ic: res.data[1][ik].code,
  16545. });
  16546. }
  16547. for (var ik = 0; ik < _inviteA.length; ik++) {
  16548. if (
  16549. this.arrayToArray(
  16550. _inviteA[ik].cid.split(","),
  16551. this.tcid.split(",")
  16552. ).length
  16553. ) {
  16554. this.inviteCode = _inviteA[ik].ic;
  16555. break;
  16556. }
  16557. }
  16558. }
  16559. for (var l = 0; l < this.chapInfoList.length; l++) {
  16560. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16561. for (var m = 0; m < w.length; m++) {
  16562. w[m].id = l + "-" + m;
  16563. }
  16564. }
  16565. if (
  16566. _chapterData[this.taskCount].length &&
  16567. _chapterData[this.taskCount][0].type == 2
  16568. ) {
  16569. this.showType = 0;
  16570. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16571. } else {
  16572. if (_chapterData[this.taskCount].length > 0) {
  16573. let _url = _chapterData[this.taskCount][0].url;
  16574. if (
  16575. _chapterData[this.taskCount][0].type == 8 ||
  16576. _chapterData[this.taskCount][0].type == 14
  16577. ) {
  16578. this.showType = 2;
  16579. if (
  16580. _url.indexOf("https://") == -1 &&
  16581. _url.indexOf("http://") == -1
  16582. ) {
  16583. _url = "https://" + _url;
  16584. }
  16585. this.pptImgUrl1 = _url;
  16586. } else if (_chapterData[this.taskCount][0].type == 3) {
  16587. if (
  16588. _url
  16589. .split(".")
  16590. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16591. ) {
  16592. this.showType = 3;
  16593. this.pptImgUrl1 = _url;
  16594. } else if (
  16595. this.isAssetTypeAnImage(
  16596. _url
  16597. .split(".")
  16598. [_url.split(".").length - 1].toLocaleLowerCase()
  16599. )
  16600. ) {
  16601. this.showType = 4;
  16602. this.pptImgUrl1 = _url;
  16603. } else {
  16604. this.showType = 2;
  16605. this.pptImgUrl1 =
  16606. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16607. encodeURIComponent(_url);
  16608. }
  16609. } else if (_chapterData[this.taskCount][0].type == 13) {
  16610. this.showType = 4;
  16611. this.pptImgUrl1 = _url;
  16612. } else if (_chapterData[this.taskCount][0].type == 6) {
  16613. this.showType = 1;
  16614. this.text = this.textList[this.taskCount][0];
  16615. }
  16616. }
  16617. }
  16618. this.isClickNav = 0;
  16619. if (
  16620. !_chapterData[this.taskCount].length ||
  16621. _chapterData[this.taskCount][0].type == 12
  16622. ) {
  16623. this.isClickNav = "";
  16624. this.showType = "";
  16625. }
  16626. this.vChapterData = _chapterData;
  16627. } else {
  16628. this.showType = 0;
  16629. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16630. .chapterInfo[0].taskJson;
  16631. var b = [
  16632. "AVI",
  16633. "NAVI",
  16634. "MPEG",
  16635. "ASF",
  16636. "MOV",
  16637. "WMV",
  16638. "3GP",
  16639. "RM",
  16640. "RMVB",
  16641. "FLV",
  16642. "F4V",
  16643. "H.264",
  16644. "H.265",
  16645. "REAL VIDEO",
  16646. "MKV",
  16647. "WebM",
  16648. "HDDVD",
  16649. "MP4",
  16650. "MPG",
  16651. "M4V",
  16652. "MGV",
  16653. "OGV",
  16654. "QTM",
  16655. "STR",
  16656. "AMC",
  16657. "DVX",
  16658. "EVO",
  16659. "DAT",
  16660. "OGG",
  16661. "OGM",
  16662. "MP3",
  16663. ];
  16664. let _chapterData = [];
  16665. for (var i = 0; i < a.length; i++) {
  16666. var c = a[i].chapterData;
  16667. this.vedio[i] = [];
  16668. this.textList[i] = [];
  16669. this.lineList[i] = [];
  16670. this.chapToolList[i] = [];
  16671. this.file[i] = [];
  16672. this.fileC[i] = [];
  16673. _chapterData[i] = c.filter((el) => {
  16674. return el.type != 12;
  16675. });
  16676. this.fileC[i] = c.filter((el) => {
  16677. return el.type == 12;
  16678. });
  16679. for (var j = 0; j < c.length; j++) {
  16680. if (c[j].type == 7) {
  16681. this.chapToolList[i].push(c[j]);
  16682. } else if (c[j].type == 8 || c[j].type == 14) {
  16683. this.lineList[i].push(c[j]);
  16684. } else if (c[j].type == 6) {
  16685. this.textList[i].push(c[j]);
  16686. } else {
  16687. if (
  16688. b.indexOf(
  16689. c[j].url
  16690. .split(".")
  16691. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16692. ) != -1
  16693. ) {
  16694. this.vedio[i].push(c[j]);
  16695. } else {
  16696. this.file[i].push(c[j]);
  16697. }
  16698. }
  16699. }
  16700. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16701. d.sources[0].src =
  16702. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16703. this.playerO[i] = d;
  16704. }
  16705. if (
  16706. _chapterData[this.taskCount].length &&
  16707. _chapterData[this.taskCount][0].type == 2
  16708. ) {
  16709. this.showType = 0;
  16710. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16711. } else {
  16712. if (_chapterData[this.taskCount].length > 0) {
  16713. let _url = _chapterData[this.taskCount][0].url;
  16714. if (
  16715. _chapterData[this.taskCount][0].type == 8 ||
  16716. _chapterData[this.taskCount][0].type == 14
  16717. ) {
  16718. this.showType = 2;
  16719. if (
  16720. _url.indexOf("https://") == -1 &&
  16721. _url.indexOf("http://") == -1
  16722. ) {
  16723. _url = "https://" + _url;
  16724. }
  16725. this.pptImgUrl1 = _url;
  16726. } else if (_chapterData[this.taskCount][0].type == 3) {
  16727. if (
  16728. _url
  16729. .split(".")
  16730. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16731. ) {
  16732. this.showType = 3;
  16733. this.pptImgUrl1 = _url;
  16734. } else if (
  16735. this.isAssetTypeAnImage(
  16736. _url
  16737. .split(".")
  16738. [_url.split(".").length - 1].toLocaleLowerCase()
  16739. )
  16740. ) {
  16741. this.showType = 4;
  16742. this.pptImgUrl1 = _url;
  16743. } else {
  16744. this.showType = 2;
  16745. this.pptImgUrl1 =
  16746. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16747. encodeURIComponent(_url);
  16748. }
  16749. } else if (_chapterData[this.taskCount][0].type == 13) {
  16750. this.showType = 4;
  16751. this.pptImgUrl1 = _url;
  16752. } else if (_chapterData[this.taskCount][0].type == 6) {
  16753. this.showType = 1;
  16754. this.text = this.textList[this.taskCount][0];
  16755. }
  16756. }
  16757. }
  16758. this.isClickNav = 0;
  16759. if (
  16760. !_chapterData[this.taskCount].length ||
  16761. _chapterData[this.taskCount][0].type == 12
  16762. ) {
  16763. this.isClickNav = "";
  16764. this.showType = "";
  16765. }
  16766. this.vChapterData = _chapterData;
  16767. this.$forceUpdate();
  16768. }
  16769. // else {
  16770. // this.courseDetail = res.data[0][0];
  16771. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16772. // }
  16773. let _this = this;
  16774. if (_this.timer) {
  16775. clearInterval(_this.timer);
  16776. _this.timer = null;
  16777. }
  16778. if (_this.tcid) {
  16779. _this.getCourseGroup(gindex);
  16780. } else {
  16781. _this.selectSWorks(gindex);
  16782. }
  16783. _this.selectStudent();
  16784. _this.selectSLook();
  16785. _this.getPick();
  16786. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16787. _this.setCTask();
  16788. }
  16789. if (_this.dialogVisibleGroup) {
  16790. _this.groupJson =
  16791. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16792. _this.taskCount
  16793. ].toolChoose[_this.toolindex].groupJson;
  16794. }
  16795. _this.$nextTick(() => {
  16796. setTimeout(() => {
  16797. _this.checkEva();
  16798. }, 1000);
  16799. });
  16800. _this.timer = setInterval(function () {
  16801. // _this.getCourseDetail(2);
  16802. if (_this.tcid) {
  16803. _this.getCourseGroup(gindex);
  16804. } else {
  16805. _this.selectSWorks(gindex);
  16806. }
  16807. _this.selectStudent();
  16808. _this.selectSLook();
  16809. _this.getPick();
  16810. _this.getSplitScreenData();
  16811. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16812. _this.setCTask();
  16813. }
  16814. if (_this.dialogVisibleGroup) {
  16815. _this.groupJson =
  16816. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16817. _this.taskCount
  16818. ].toolChoose[_this.toolindex].groupJson;
  16819. }
  16820. if (_this.tType == 4 || _this.ispzType == 4) {
  16821. _this.selectPz();
  16822. }
  16823. }, 5000);
  16824. _this.$nextTick(function () {
  16825. setTimeout(() => {
  16826. // var a =
  16827. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16828. // document.getElementsByClassName("vedioList")[0].style.height =
  16829. // a + "px";
  16830. // document.getElementsByClassName("navBox")[0].style.height =
  16831. // a - 40 + "px";
  16832. // if (_this.vedio[_this.taskCount].length > 0) {
  16833. // _this.vedioTime = [];
  16834. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16835. // _this.vedioTime[i] = document.getElementsByClassName(
  16836. // "vjs-duration-display"
  16837. // )[i].textContent;
  16838. // }
  16839. // }
  16840. }, 1000);
  16841. });
  16842. })
  16843. .catch((err) => {
  16844. loading.close();
  16845. console.error(err);
  16846. });
  16847. },
  16848. getCourseGroup(gindex) {
  16849. let params = {
  16850. cid: this.id,
  16851. classid: this.tcid ? this.tcid : "1",
  16852. };
  16853. this.ajax
  16854. .get(this.$store.state.api + "getCourseGroup", params)
  16855. .then((res) => {
  16856. if (res.data && res.data[0].length) {
  16857. if (!this.isGroup) {
  16858. let courseGroup = JSON.parse(res.data[0][0].group);
  16859. courseGroup.group = courseGroup.group.filter((el) => {
  16860. el.works = [];
  16861. return el;
  16862. });
  16863. if (courseGroup.isopen == 2) {
  16864. this.isGroup = false;
  16865. this.selectSWorks(gindex);
  16866. return;
  16867. }
  16868. this.courseGroup = courseGroup;
  16869. let groupPerson = res.data[1];
  16870. let group = JSON.parse(res.data[0][0].group).group;
  16871. let courseGroupStudent = {};
  16872. let courseGroupStudentUid = {};
  16873. for (var i = 0; i < group.length; i++) {
  16874. courseGroupStudent[group[i].id] = [];
  16875. courseGroupStudentUid[group[i].id] = [];
  16876. for (var j = 0; j < groupPerson.length; j++) {
  16877. if (groupPerson[j].groupCid == group[i].id) {
  16878. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16879. courseGroupStudentUid[group[i].id].push(
  16880. groupPerson[j].userid
  16881. );
  16882. }
  16883. }
  16884. }
  16885. this.courseGroupStudent = courseGroupStudent;
  16886. this.courseGroupStudentUid = courseGroupStudentUid;
  16887. }
  16888. if (this.courseGroup.isopen == 2) {
  16889. this.isGroup = false;
  16890. } else {
  16891. this.isGroup = true;
  16892. }
  16893. this.selectSWorks(gindex);
  16894. } else {
  16895. this.selectSWorks(gindex);
  16896. this.isGroup = false;
  16897. }
  16898. })
  16899. .catch((err) => {
  16900. // this.$message.error("网络不佳");
  16901. console.error(err);
  16902. });
  16903. },
  16904. setOperationTime() {
  16905. let _this = this;
  16906. if (_this.opertimer) {
  16907. clearInterval(_this.opertimer);
  16908. _this.opertimer = null;
  16909. }
  16910. _this.opertimer = setInterval(() => {
  16911. _this.setoTime("600");
  16912. }, 600000);
  16913. },
  16914. setoTime(time) {
  16915. let params = [
  16916. {
  16917. uid: this.userid,
  16918. cid: this.id,
  16919. type: "2",
  16920. time: time,
  16921. },
  16922. ];
  16923. this.ajax
  16924. .post(this.$store.state.api + "addOperationTimeT2", params)
  16925. .then((res) => {})
  16926. .catch((err) => {
  16927. console.error(err);
  16928. });
  16929. },
  16930. addPz(type, content) {
  16931. if (type == "1" && this.pzConText == "") {
  16932. this.$message.error("评论不能为空!");
  16933. return;
  16934. }
  16935. let params = [
  16936. {
  16937. cid: this.id,
  16938. uid: this.userid,
  16939. s: this.courseType,
  16940. t: this.taskCount,
  16941. c: type == "1" ? this.pzConText : content,
  16942. type: type,
  16943. },
  16944. ];
  16945. this.ajax
  16946. .post(this.$store.state.api + "addPz2", params)
  16947. .then((res) => {
  16948. this.$message({
  16949. message: "添加成功",
  16950. type: "success",
  16951. });
  16952. this.pzConText = "";
  16953. this.addPzDialog = false;
  16954. this.selectPz();
  16955. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16956. })
  16957. .catch((err) => {
  16958. this.$message.error("添加失败");
  16959. console.error(err);
  16960. });
  16961. },
  16962. setReplyIndex(id, i) {
  16963. this.replyIndex = i;
  16964. this.replyPid = id;
  16965. this.replyDialogVisible = true;
  16966. },
  16967. addHf() {
  16968. if (this.reply == "") {
  16969. this.$message.error("回复不能为空!");
  16970. return;
  16971. }
  16972. let params = [
  16973. {
  16974. cid: this.id,
  16975. uid: this.userid,
  16976. s: this.courseType,
  16977. t: this.taskCount,
  16978. type: "1",
  16979. ct: 2,
  16980. pid: this.replyPid,
  16981. c: this.reply,
  16982. },
  16983. ];
  16984. this.ajax
  16985. .post(this.$store.state.api + "addHf", params)
  16986. .then((res) => {
  16987. this.reply = "";
  16988. this.$message({
  16989. message: "回复成功",
  16990. type: "success",
  16991. });
  16992. this.replyDialogVisible = false;
  16993. this.selectPz();
  16994. })
  16995. .catch((err) => {
  16996. this.$message.error("回复失败");
  16997. console.error(err);
  16998. });
  16999. },
  17000. deletePz(id) {
  17001. this.$confirm("确定删除此评论吗?", "提示", {
  17002. confirmButtonText: "确定",
  17003. cancelButtonText: "取消",
  17004. type: "warning",
  17005. })
  17006. .then(() => {
  17007. let params = [
  17008. {
  17009. id: id,
  17010. },
  17011. ];
  17012. this.ajax
  17013. .post(this.$store.state.api + "deletePz", params)
  17014. .then((res) => {
  17015. this.$message({
  17016. message: "删除成功",
  17017. type: "success",
  17018. });
  17019. this.selectPz();
  17020. })
  17021. .catch((err) => {
  17022. this.$message.error("网络异常");
  17023. console.error(err);
  17024. });
  17025. })
  17026. .catch(() => {});
  17027. },
  17028. deleteReply(id) {
  17029. this.$confirm("确定删除此回复吗?", "提示", {
  17030. confirmButtonText: "确定",
  17031. cancelButtonText: "取消",
  17032. type: "warning",
  17033. })
  17034. .then(() => {
  17035. let params = [
  17036. {
  17037. id: id,
  17038. },
  17039. ];
  17040. this.ajax
  17041. .post(this.$store.state.api + "deleteReply", params)
  17042. .then((res) => {
  17043. this.$message({
  17044. message: "删除成功",
  17045. type: "success",
  17046. });
  17047. this.selectPz();
  17048. })
  17049. .catch((err) => {
  17050. this.$message.error("网络异常");
  17051. console.error(err);
  17052. });
  17053. })
  17054. .catch(() => {});
  17055. },
  17056. setPz() {
  17057. if (this.ispzType == 4) {
  17058. this.ispzType = 0;
  17059. this.pzDialog = false;
  17060. return;
  17061. }
  17062. this.ispzType = 4;
  17063. this.pzDialog = true;
  17064. this.selectPz();
  17065. },
  17066. selectPz() {
  17067. let params = {
  17068. cid: this.id,
  17069. s: this.courseType,
  17070. t: this.taskCount,
  17071. type: this.pzStype,
  17072. uid: this.userid,
  17073. };
  17074. this.ajax
  17075. .get(this.$store.state.api + "selectPzListType", params)
  17076. .then((res) => {
  17077. this.pzList = res.data[0];
  17078. var a = res.data[1];
  17079. for (var i = 0; i < a.length; i++) {
  17080. for (var j = 0; j < this.pzList.length; j++) {
  17081. if (!this.pzList[j].hfList) {
  17082. this.pzList[j].hfList = [];
  17083. }
  17084. if (a[i].pid == this.pzList[j].id) {
  17085. this.pzList[j].hfList.push(a[i]);
  17086. }
  17087. }
  17088. }
  17089. })
  17090. .catch((err) => {
  17091. console.error(err);
  17092. });
  17093. },
  17094. // selectHf() {
  17095. // let params = {
  17096. // cid: this.id,
  17097. // s: this.courseType,
  17098. // t: this.taskCount,
  17099. // };
  17100. // this.ajax
  17101. // .get(this.$store.state.api + "selectHfList", params)
  17102. // .then((res) => {
  17103. // var a = res.data[0];
  17104. // for (var i = 0; i < a.length; i++) {
  17105. // for (var j = 0; j < this.pzList.length; j++) {
  17106. // if (!this.pzList[i].hfList) {
  17107. // this.pzList[i].hfList = [];
  17108. // }
  17109. // if (a[i].pid == this.pzList[j].id) {
  17110. // this.pzList[i].hfList.push(a[i]);
  17111. // }
  17112. // }
  17113. // }
  17114. // })
  17115. // .catch((err) => {
  17116. // console.error(err);
  17117. // });
  17118. // },
  17119. updateSLook() {
  17120. let params = {
  17121. sopen: this.sIsOpen == false ? 1 : 2,
  17122. cid: this.id,
  17123. };
  17124. this.ajax
  17125. .get(this.$store.state.api + "updateCourseSLook", params)
  17126. .then((res) => {
  17127. if (this.sIsOpen == true) {
  17128. this.$message({
  17129. message: "权限设置成功",
  17130. type: "success",
  17131. });
  17132. } else {
  17133. this.$message({
  17134. message: "权限关闭成功",
  17135. type: "success",
  17136. });
  17137. }
  17138. })
  17139. .catch((err) => {
  17140. console.error(err);
  17141. });
  17142. },
  17143. updateFollow() {
  17144. let params = [
  17145. {
  17146. sopen: this.IsFollow == false ? 1 : 2,
  17147. cid: this.id,
  17148. },
  17149. ];
  17150. this.ajax
  17151. .post(this.$store.state.api + "updateCourseFollow", params)
  17152. .then((res) => {
  17153. if (this.IsFollow == true) {
  17154. this.$message({
  17155. message: "开启成功",
  17156. type: "success",
  17157. });
  17158. } else {
  17159. this.$message({
  17160. message: "关闭成功",
  17161. type: "success",
  17162. });
  17163. }
  17164. this.setCTask();
  17165. })
  17166. .catch((err) => {
  17167. console.error(err);
  17168. });
  17169. },
  17170. setCTask() {
  17171. let params = [
  17172. {
  17173. sopen: this.courseType + "-" + this.taskCount,
  17174. cid: this.id,
  17175. },
  17176. ];
  17177. this.ajax
  17178. .post(this.$store.state.api + "updateCourseFollowC", params)
  17179. .then((res) => {})
  17180. .catch((err) => {
  17181. console.error(err);
  17182. });
  17183. },
  17184. updateLookOpen() {
  17185. let params = [
  17186. {
  17187. sopen: this.IsLookOpen == false ? 1 : 2,
  17188. cid: this.id,
  17189. },
  17190. ];
  17191. this.ajax
  17192. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17193. .then((res) => {
  17194. if (this.IsLookOpen == true) {
  17195. // if (this.courseType != 0 && this.taskCount != 0) {
  17196. // this.openTask(0, 0, "0-0");
  17197. // }
  17198. this.$message({
  17199. message: "权限设置成功",
  17200. type: "success",
  17201. });
  17202. } else {
  17203. this.$message({
  17204. message: "权限关闭成功",
  17205. type: "success",
  17206. });
  17207. }
  17208. this.getCourseState(2);
  17209. })
  17210. .catch((err) => {
  17211. console.error(err);
  17212. });
  17213. },
  17214. selectSLook() {
  17215. let params = {
  17216. cid: this.id,
  17217. };
  17218. this.ajax
  17219. .get(this.$store.state.api + "selectCourseSLook", params)
  17220. .then((res) => {
  17221. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17222. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17223. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17224. if (!this.IsLookOpen) {
  17225. this.setNavList();
  17226. } else {
  17227. this.getCourseState(1);
  17228. }
  17229. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  17230. this.setContent2(false);
  17231. let _followC = res.data[0][0].followC.split("-");
  17232. if (
  17233. this.courseType != _followC[0] ||
  17234. this.taskCount != _followC[1]
  17235. ) {
  17236. this.navList[this.courseType].isOpen = false;
  17237. this.courseType = _followC[0];
  17238. this.navList[this.courseType].isOpen = true;
  17239. this.taskCount = parseInt(_followC[1]);
  17240. this.navId = res.data[0][0].followC;
  17241. document.scrollingElement.scrollTop = 0;
  17242. this.getCourseDetail(2);
  17243. }
  17244. }
  17245. })
  17246. .catch((err) => {
  17247. console.error(err);
  17248. });
  17249. },
  17250. setNavList() {
  17251. if (this.navList.length == 0) {
  17252. this.navList = [];
  17253. var copyList = [];
  17254. for (var l = 0; l < this.chapInfoList.length; l++) {
  17255. var q = this.chapInfoList[l].dyName;
  17256. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17257. var e;
  17258. copyList.push({
  17259. dyName: q,
  17260. isOpen: l === 0 ? true : false,
  17261. task: [],
  17262. });
  17263. for (var r = 0; r < w.length; r++) {
  17264. e = w[r].task;
  17265. if (this.chapInfoList[l].easy == 1) {
  17266. copyList[l].task.push({
  17267. taskName: q,
  17268. id: l + "-" + r,
  17269. isLook: w[r].isLook,
  17270. isOpen: r === 0 ? true : false,
  17271. tool: [],
  17272. });
  17273. } else {
  17274. copyList[l].task.push({
  17275. taskName: e,
  17276. id: l + "-" + r,
  17277. isLook: w[r].isLook,
  17278. isOpen: r === 0 ? true : false,
  17279. tool: [],
  17280. });
  17281. }
  17282. var t = w[r].toolChoose;
  17283. for (var k = 0; k < t.length; k++) {
  17284. var tool = t[k].tool[0];
  17285. copyList[l].task[r].tool.push({
  17286. tool: tool,
  17287. isTool: false,
  17288. });
  17289. }
  17290. // this.navId = this.navId ? this.navId : l + "-" + r;
  17291. // this.navId = l + "-" + r;
  17292. }
  17293. }
  17294. this.navList = copyList;
  17295. this.navList[0].isOpen = false;
  17296. this.navList[this.courseType].isOpen = true;
  17297. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17298. } else {
  17299. this.setNavList2();
  17300. }
  17301. },
  17302. setNavList2() {
  17303. for (var l = 0; l < this.chapInfoList.length; l++) {
  17304. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17305. for (var r = 0; r < w.length; r++) {
  17306. this.navList[l].task[r].isLook = w[r].isLook;
  17307. }
  17308. }
  17309. if (
  17310. this.IsLookOpen &&
  17311. !this.navList[this.courseType].task[this.taskCount].isLook
  17312. ) {
  17313. this.openTask(0, 0, "0-0");
  17314. }
  17315. this.$forceUpdate();
  17316. },
  17317. getCourseState(type) {
  17318. let params = {
  17319. cid: this.id,
  17320. };
  17321. this.ajax
  17322. .get(this.$store.state.api + "getCourseState", params)
  17323. .then((res) => {
  17324. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17325. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17326. this.setNavList();
  17327. this.$forceUpdate();
  17328. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17329. this.addCourseState(2);
  17330. } else {
  17331. this.addCourseState(1);
  17332. }
  17333. })
  17334. .catch((err) => {
  17335. console.error(err);
  17336. });
  17337. },
  17338. addCourseState(type) {
  17339. let _state = this.chapInfoList;
  17340. // this.courseType this.taskCount
  17341. if (type == 1 || type == 2) {
  17342. for (var i = 0; i < _state.length; i++) {
  17343. let el = _state[i].chapterInfo[0].taskJson;
  17344. for (var j = 0; j < el.length; j++) {
  17345. // if (i == 0 && j == 0) {
  17346. // el[j].isLook = true;
  17347. // } else {
  17348. // el[j].isLook = false;
  17349. // }
  17350. if (
  17351. this.courseType > i ||
  17352. (this.courseType == i && this.taskCount + 1 > j)
  17353. ) {
  17354. el[j].isLook = true;
  17355. } else {
  17356. el[j].isLook = false;
  17357. }
  17358. }
  17359. }
  17360. }
  17361. let params = [
  17362. {
  17363. cid: this.id,
  17364. state: JSON.stringify(_state),
  17365. },
  17366. ];
  17367. this.ajax
  17368. .post(
  17369. this.$store.state.api +
  17370. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17371. params
  17372. )
  17373. .then((res) => {
  17374. if (this.IsLookOpen) {
  17375. this.setNavList();
  17376. }
  17377. if (type == 3 && type == 2) {
  17378. this.getCourseState(1);
  17379. }
  17380. })
  17381. .catch((err) => {
  17382. console.error(err);
  17383. });
  17384. },
  17385. getHomeWork() {
  17386. let params = {
  17387. cid: this.id,
  17388. stage: this.courseType,
  17389. task: this.taskCount,
  17390. uid: this.userid,
  17391. };
  17392. this.ajax
  17393. .get(this.$store.state.api + "selectWork", params)
  17394. .then((res) => {
  17395. if (res.data[0].length > 0) {
  17396. this.studyJuri = JSON.parse(res.data[0][0].content);
  17397. this.isNoHomeWork = true;
  17398. }
  17399. })
  17400. .catch((err) => {
  17401. console.error(err);
  17402. });
  17403. },
  17404. isAssetTypeAnImage(ext) {
  17405. return (
  17406. [
  17407. "png",
  17408. "jpg",
  17409. "jpeg",
  17410. "bmp",
  17411. "gif",
  17412. "webp",
  17413. "psd",
  17414. "svg",
  17415. "tiff",
  17416. ].indexOf(ext) !== -1
  17417. );
  17418. },
  17419. switchVideo(media) {
  17420. this.playerO = {};
  17421. this.playerOptions.poster = "";
  17422. this.playerOptions.sources[0].src = media;
  17423. this.playerO = this.playerOptions;
  17424. },
  17425. onPlayerPlay() {},
  17426. onPlayerTimeupdate(player) {
  17427. let gklog = player.cache_.currentTime; //当前播放的秒数
  17428. let a = player.cache_.duration; //视频的总时长
  17429. let gklog2 = parseInt(gklog);
  17430. // if(gklog2 == '3'){
  17431. // player.pause()
  17432. // setTimeout(()=>{
  17433. // player.currentTime(gklog2+1)
  17434. // player.play()
  17435. // },1000)
  17436. // }
  17437. console.log(" onPlayerTimeupdate!", gklog);
  17438. console.log(" onPlayerTimeupdate!", gklog2);
  17439. },
  17440. lookVedio(u, i) {
  17441. this.isClickNav = "";
  17442. // this.playerOptions.sources[0].src = u;
  17443. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17444. d.sources[0].src = u;
  17445. this.playerO[this.taskCount] = d;
  17446. this.showType = 0;
  17447. // this.isClickNav = "video" + i;
  17448. this.isClickNav = i;
  17449. this.$forceUpdate();
  17450. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17451. },
  17452. lookText(i, t) {
  17453. this.isClickNav = "";
  17454. // this.text = this.textList[i][t];
  17455. this.text = this.vChapterData[i][t];
  17456. // this.dialogVisible1 = true;
  17457. this.showType = 1;
  17458. // this.isClickNav = "text" + t;
  17459. this.isClickNav = t;
  17460. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17461. },
  17462. lookTools(i, t) {
  17463. this.chapTools = this.chapToolList[i][t];
  17464. this.dialogVisible2 = true;
  17465. },
  17466. async openFile(f,w) {
  17467. this.pptImgUrl = "";
  17468. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17469. if (
  17470. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17471. -1
  17472. ) {
  17473. let _uuurl = await this.checkLink(f);
  17474. this.pptImgUrl =
  17475. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17476. this.showPDF = false;
  17477. this.dialogVisible3 = true;
  17478. } else if (
  17479. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17480. ) {
  17481. this.pptImgUrl = f;
  17482. this.showPDF = true;
  17483. this.dialogVisible3 = true;
  17484. }
  17485. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17486. },
  17487. openTable(f) {
  17488. this.tableJson = JSON.parse(f.works);
  17489. this.dialogVisibleTable2 = true;
  17490. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17491. },
  17492. openWord(f) {
  17493. this.tableJson = JSON.parse(f.works);
  17494. this.dialogVisibleTable3 = true;
  17495. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17496. },
  17497. doUrl(url, i) {
  17498. this.isClickNav = "";
  17499. this.pptImgUrl1 = "";
  17500. this.showType = 2;
  17501. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17502. url = "https://" + url;
  17503. }
  17504. this.pptImgUrl1 = "";
  17505. setTimeout(() => {
  17506. this.pptImgUrl1 = url;
  17507. }, 500);
  17508. // this.isClickNav = "line" + i;
  17509. this.isClickNav = i;
  17510. this.$forceUpdate();
  17511. },
  17512. checkPhoto(f, i) {
  17513. this.showType = 4;
  17514. this.pptImgUrl1 = f.url;
  17515. this.isClickNav = i;
  17516. this.$forceUpdate();
  17517. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17518. },
  17519. async downFile(f, i) {
  17520. this.isClickNav = "";
  17521. this.pptImgUrl1 = "";
  17522. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17523. if (
  17524. a.indexOf(
  17525. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17526. ) != -1
  17527. ) {
  17528. let _uuurl = await this.checkLink(f.url);
  17529. this.pptImgUrl1 =
  17530. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17531. // this.dialogVisible3 = true;
  17532. this.showType = 2;
  17533. } else if (
  17534. this.isAssetTypeAnImage(
  17535. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17536. )
  17537. ) {
  17538. this.showType = 4;
  17539. this.pptImgUrl1 = f.url;
  17540. } else if (
  17541. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17542. "PDF"
  17543. ) {
  17544. this.pptImgUrl1 = f.url;
  17545. // this.dialogVisible3 = true;
  17546. this.showType = 3;
  17547. } else {
  17548. window.open(this.file[i].url);
  17549. }
  17550. // this.isClickNav = "word" + i;
  17551. this.isClickNav = i;
  17552. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17553. },
  17554. downFileList(i) {
  17555. window.open(this.noImgList[i].url);
  17556. },
  17557. openAddWork() {
  17558. this.dialogVisible = true;
  17559. },
  17560. addBzWorks() {
  17561. let params = [
  17562. {
  17563. uid: this.userid,
  17564. cid: this.id,
  17565. stage: this.courseType,
  17566. task: this.taskCount,
  17567. tool: this.toolindex,
  17568. content: JSON.stringify(this.eScore),
  17569. type: 6,
  17570. },
  17571. ];
  17572. this.ajax
  17573. .post(this.$store.state.api + "addCourseWorks", params)
  17574. .then((res) => {
  17575. this.$message({
  17576. message: "提交成功",
  17577. type: "success",
  17578. });
  17579. this.eScore = { eBzText: "", eStar: [] };
  17580. this.studentEvalDialogVisible = false;
  17581. this.selectSWorks();
  17582. })
  17583. .catch((err) => {
  17584. this.$message.error("提交失败");
  17585. console.error(err);
  17586. });
  17587. },
  17588. addBzWorksTeacher() {
  17589. let params = [
  17590. {
  17591. uid: this.sStudent.userid,
  17592. cid: this.id,
  17593. stage: this.courseType,
  17594. task: this.taskCount,
  17595. tool: this.toolindex,
  17596. content: JSON.stringify(this.eScore),
  17597. type: 6,
  17598. },
  17599. ];
  17600. this.ajax
  17601. .post(this.$store.state.api + "addCourseWorks", params)
  17602. .then((res) => {
  17603. this.$message({
  17604. message: "提交成功",
  17605. type: "success",
  17606. });
  17607. this.eScore = { eBzText: "", eStar: [] };
  17608. this.studentEvalDialogVisibleTeacher = false;
  17609. this.selectSWorks();
  17610. })
  17611. .catch((err) => {
  17612. this.$message.error("提交失败");
  17613. console.error(err);
  17614. });
  17615. },
  17616. addStudentAsk() {
  17617. if (!this.radio.length) {
  17618. this.$message.error("请选择选项");
  17619. return;
  17620. }
  17621. for (var i = 0; i < this.askJson.askCount; i++) {
  17622. if (
  17623. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17624. (this.radio[i] !== 0 && !this.radio[i])
  17625. ) {
  17626. this.$message.error("请选择选项");
  17627. return;
  17628. }
  17629. }
  17630. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17631. let params = [
  17632. {
  17633. uid: this.userid,
  17634. cid: this.id,
  17635. stage: this.courseType,
  17636. task: this.taskCount,
  17637. tool: this.toolindex,
  17638. content: JSON.stringify(this.askList),
  17639. type: 2,
  17640. },
  17641. ];
  17642. this.ajax
  17643. .post(this.$store.state.api + "addCourseWorks", params)
  17644. .then((res) => {
  17645. this.$message({
  17646. message: "提交成功",
  17647. type: "success",
  17648. });
  17649. this.askList = [];
  17650. this.dialogVisible5 = false;
  17651. this.selectStudent();
  17652. this.selectSWorks();
  17653. this.selectSLook();
  17654. })
  17655. .catch((err) => {
  17656. this.$message.error("提交失败");
  17657. console.error(err);
  17658. });
  17659. },
  17660. addStudentAskTeacher() {
  17661. if (!this.radio.length) {
  17662. this.$message.error("请选择选项");
  17663. return;
  17664. }
  17665. for (var i = 0; i < this.askJson.askCount; i++) {
  17666. if (
  17667. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17668. (this.radio[i] !== 0 && !this.radio[i])
  17669. ) {
  17670. this.$message.error("请选择选项");
  17671. return;
  17672. }
  17673. }
  17674. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17675. let params = [
  17676. {
  17677. uid: this.sStudent.userid,
  17678. cid: this.id,
  17679. stage: this.courseType,
  17680. task: this.taskCount,
  17681. tool: this.toolindex,
  17682. content: JSON.stringify(this.askList),
  17683. type: 2,
  17684. },
  17685. ];
  17686. this.ajax
  17687. .post(this.$store.state.api + "addCourseWorks", params)
  17688. .then((res) => {
  17689. this.$message({
  17690. message: "提交成功",
  17691. type: "success",
  17692. });
  17693. this.askList = [];
  17694. this.dialogVisible5Teacher = false;
  17695. this.selectStudent();
  17696. this.selectSWorks();
  17697. this.selectSLook();
  17698. })
  17699. .catch((err) => {
  17700. this.$message.error("提交失败");
  17701. console.error(err);
  17702. });
  17703. },
  17704. addStudentTest() {
  17705. if (!this.radio.length) {
  17706. this.$message.error("请选择选项");
  17707. return;
  17708. }
  17709. for (var i = 0; i < this.testJson.testCount; i++) {
  17710. if (
  17711. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17712. (this.radio[i] !== 0 && !this.radio[i])
  17713. ) {
  17714. this.$message.error("请选择选项");
  17715. return;
  17716. }
  17717. }
  17718. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17719. let params = [
  17720. {
  17721. uid: this.userid,
  17722. cid: this.id,
  17723. stage: this.courseType,
  17724. task: this.taskCount,
  17725. tool: this.toolindex,
  17726. content: JSON.stringify(this.askList),
  17727. type: 8,
  17728. },
  17729. ];
  17730. this.ajax
  17731. .post(this.$store.state.api + "addCourseWorks", params)
  17732. .then((res) => {
  17733. this.$message({
  17734. message: "提交成功",
  17735. type: "success",
  17736. });
  17737. this.askList = [];
  17738. this.dialogVisibleChoice = false;
  17739. this.selectStudent();
  17740. this.selectSWorks();
  17741. this.selectSLook();
  17742. })
  17743. .catch((err) => {
  17744. this.$message.error("提交失败");
  17745. console.error(err);
  17746. });
  17747. },
  17748. addStudentTestTeacher() {
  17749. if (!this.radio.length) {
  17750. this.$message.error("请选择选项");
  17751. return;
  17752. }
  17753. for (var i = 0; i < this.testJson.testCount; i++) {
  17754. if (
  17755. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17756. (this.radio[i] !== 0 && !this.radio[i])
  17757. ) {
  17758. this.$message.error("请选择选项");
  17759. return;
  17760. }
  17761. }
  17762. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17763. let params = [
  17764. {
  17765. uid: this.sStudent.userid,
  17766. cid: this.id,
  17767. stage: this.courseType,
  17768. task: this.taskCount,
  17769. tool: this.toolindex,
  17770. content: JSON.stringify(this.askList),
  17771. type: 8,
  17772. },
  17773. ];
  17774. this.ajax
  17775. .post(this.$store.state.api + "addCourseWorks", params)
  17776. .then((res) => {
  17777. this.$message({
  17778. message: "提交成功",
  17779. type: "success",
  17780. });
  17781. this.askList = [];
  17782. this.dialogVisibleChoiceTeacher = false;
  17783. this.selectStudent();
  17784. this.selectSWorks();
  17785. this.selectSLook();
  17786. })
  17787. .catch((err) => {
  17788. this.$message.error("提交失败");
  17789. console.error(err);
  17790. });
  17791. },
  17792. addWork() {
  17793. if (this.studyJuri[0].content == "") {
  17794. this.$message.error("请将信息填写完整");
  17795. return;
  17796. } else if (this.studyJuri[0].cover.length == 0) {
  17797. this.$message.error("请将信息填写完整");
  17798. return;
  17799. } else if (this.studyJuri[0].upVedio.length == 0) {
  17800. this.$message.error("请将信息填写完整");
  17801. return;
  17802. }
  17803. if (this.isNoHomeWork) {
  17804. this.$confirm(
  17805. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17806. "提示",
  17807. {
  17808. confirmButtonText: "确定",
  17809. cancelButtonText: "取消",
  17810. type: "warning",
  17811. }
  17812. )
  17813. .then(() => {
  17814. let params = [
  17815. {
  17816. uid: this.userid,
  17817. cid: this.id,
  17818. stage: this.courseType,
  17819. task: this.taskCount,
  17820. content: JSON.stringify(this.studyJuri),
  17821. },
  17822. ];
  17823. this.ajax
  17824. .post(this.$store.state.api + "addWorks", params)
  17825. .then((res) => {
  17826. this.$message({
  17827. message: "提交成功",
  17828. type: "success",
  17829. });
  17830. this.isNoHomeWork = true;
  17831. this.dialogVisible = false;
  17832. })
  17833. .catch((err) => {
  17834. this.$message.error("提交失败");
  17835. console.error(err);
  17836. });
  17837. })
  17838. .catch(() => {});
  17839. } else {
  17840. let params = [
  17841. {
  17842. uid: this.userid,
  17843. cid: this.id,
  17844. stage: this.courseType,
  17845. task: this.taskCount,
  17846. content: JSON.stringify(this.studyJuri),
  17847. },
  17848. ];
  17849. this.ajax
  17850. .post(this.$store.state.api + "addWorks", params)
  17851. .then((res) => {
  17852. this.$message({
  17853. message: "提交成功",
  17854. type: "success",
  17855. });
  17856. this.isNoHomeWork = true;
  17857. this.dialogVisible = false;
  17858. })
  17859. .catch((err) => {
  17860. this.$message.error("提交失败");
  17861. console.error(err);
  17862. });
  17863. }
  17864. },
  17865. selectCount() {
  17866. let params = {
  17867. cid: this.id,
  17868. chid: this.courseType,
  17869. uid: this.userid,
  17870. };
  17871. this.ajax
  17872. .get(this.$store.state.api + "selectToolsCount", params)
  17873. .then((res) => {
  17874. for (var i = 0; i < res.data[0].length; i++) {
  17875. if (res.data[0][i].tools == 1) {
  17876. this.wbCount = res.data[0][i].count;
  17877. } else if (res.data[0][i].tools == 2) {
  17878. this.wordCount = res.data[0][i].count;
  17879. } else if (res.data[0][i].tools == 3) {
  17880. this.mindCount = res.data[0][i].count;
  17881. } else if (res.data[0][i].tools == 4) {
  17882. this.askCount = res.data[0][i].count;
  17883. } else if (res.data[0][i].tools == 6) {
  17884. this.noteCount = res.data[0][i].count;
  17885. } else if (res.data[0][i].tools == 7) {
  17886. this.mindNetWorkCount = res.data[0][i].count;
  17887. } else if (res.data[0][i].tools == 8) {
  17888. this.libraryCount = res.data[0][i].count;
  17889. } else if (res.data[0][i].tools == 16) {
  17890. this.workCount = res.data[0][i].count;
  17891. } else if (res.data[0][i].tools == 10) {
  17892. this.timeCount = res.data[0][i].count;
  17893. } else if (res.data[0][i].tools == 15) {
  17894. this.answerCount = res.data[0][i].count;
  17895. } else if (res.data[0][i].tools == 18) {
  17896. this.trainCount = res.data[0][i].count;
  17897. }
  17898. }
  17899. })
  17900. .catch((err) => {
  17901. console.error(err);
  17902. });
  17903. },
  17904. openTools(t, i, index, c, sName,id) {
  17905. var z = JSON.parse(c);
  17906. this.noteName = sName;
  17907. if (t == 4) {
  17908. this.radio = [];
  17909. this.isAnswer = false;
  17910. let b = z[0].anwer;
  17911. this.radio = b;
  17912. this.askJson = z[0].askJson;
  17913. this.isAnswer = true;
  17914. this.dialogVisible5 = true;
  17915. } else if (t == 45) {
  17916. this.radio = [];
  17917. this.isAnswer = false;
  17918. let b = z[0].anwer;
  17919. this.radio = b;
  17920. this.testJson = z[0].testJson;
  17921. this.isAnswer = true;
  17922. this.dialogVisibleChoice = true;
  17923. }else if(t == 69){
  17924. this.oldEnglishJson1 = {}
  17925. this.oldEnglishJson = {}
  17926. this.englishList1 = {}
  17927. this.newEngIndex = -1;
  17928. this.isNoUserid = false;
  17929. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17930. .toolChoose[i].englishList;
  17931. this.oldEnglishJson = z;
  17932. this.engWid = id;
  17933. this.newEnglishList = { engTitle:"",engText:"" }
  17934. this.newEnglishList1 = []
  17935. this.selectEngC(id,z);
  17936. }else if(t == 62){
  17937. this.videoType = 1;
  17938. this.videoJson = {};
  17939. this.videoJson = JSON.parse(c);
  17940. // this.videoJson =
  17941. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17942. // index
  17943. // ].toolChoose[i].videoJson;
  17944. this.dialogVisibleVideo = true;
  17945. //this.dialog
  17946. }
  17947. // else if (t == 15) {
  17948. // this.answerQ = "";
  17949. // this.questionAnswer = "";
  17950. // this.answerQ = z[0].answerTitle;
  17951. // this.questionAnswer = z[0].answer;
  17952. // this.answerDialogVisible = true;
  17953. // }
  17954. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17955. },
  17956. fastText(p, t) {
  17957. if (t == 1) {
  17958. this.commentText += p;
  17959. } else {
  17960. this.eScore.eBzText += p;
  17961. }
  17962. },
  17963. addTools(t, i, index) {
  17964. var a = 0;
  17965. // this.taskCount = index;
  17966. this.toolindex = i;
  17967. if (t == 1) {
  17968. if (this.wbCount > 0) {
  17969. this.updateCount(this.wbCount, t);
  17970. } else {
  17971. this.wbCount++;
  17972. a = this.wbCount;
  17973. this.toolsCount(a, t);
  17974. }
  17975. window.parent.postMessage(
  17976. {
  17977. tools: "1",
  17978. cid: this.id,
  17979. stage: this.courseType,
  17980. task: this.taskCount,
  17981. tool: i,
  17982. },
  17983. "*"
  17984. );
  17985. } else if (t == 2) {
  17986. if (this.wordCount > 0) {
  17987. this.updateCount(this.wordCount, t);
  17988. } else {
  17989. this.wordCount++;
  17990. a = this.wordCount;
  17991. this.toolsCount(a, t);
  17992. }
  17993. window.parent.postMessage({ tools: "2" }, "*");
  17994. } else if (t == 3) {
  17995. if (this.mindCount > 0) {
  17996. this.updateCount(this.mindCount, t);
  17997. } else {
  17998. this.mindCount++;
  17999. a = this.mindCount;
  18000. this.toolsCount(a, t);
  18001. }
  18002. window.parent.postMessage(
  18003. {
  18004. tools: "3",
  18005. cid: this.id,
  18006. stage: this.courseType,
  18007. task: this.taskCount,
  18008. tool: i,
  18009. },
  18010. "*"
  18011. );
  18012. } else if (t == 4) {
  18013. this.radio = [];
  18014. this.noteName = "";
  18015. this.isAnswer = false;
  18016. if (this.askCount > 0) {
  18017. this.updateCount(this.askCount, t);
  18018. } else {
  18019. this.askCount++;
  18020. a = this.askCount;
  18021. this.toolsCount(a, t);
  18022. }
  18023. if (!this.dialogVisible2) {
  18024. this.askJson.askJson =
  18025. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18026. index
  18027. ].toolChoose[i].askJson;
  18028. this.askJson.askTitle =
  18029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18030. index
  18031. ].toolChoose[i].askTitle;
  18032. this.askJson.askCount =
  18033. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18034. index
  18035. ].toolChoose[i].askCount;
  18036. } else {
  18037. this.askJson.askJson = this.chapTools.askJson.askJson;
  18038. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18039. this.askJson.askCount = this.chapTools.askJson.askCount;
  18040. }
  18041. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18042. if (this.askJson.askJson[k].type == "2") {
  18043. this.radio.push([]);
  18044. } else {
  18045. this.radio.push("");
  18046. }
  18047. }
  18048. this.dialogVisible5 = true;
  18049. // window.parent.postMessage({ tools: "4" }, "*");
  18050. } else if (t == 45) {
  18051. this.noteName = "";
  18052. this.radio = [];
  18053. this.isAnswer = false;
  18054. if (this.askCount > 0) {
  18055. this.updateCount(this.askCount, t);
  18056. } else {
  18057. this.askCount++;
  18058. a = this.askCount;
  18059. this.toolsCount(a, t);
  18060. }
  18061. this.testJson =
  18062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18063. index
  18064. ].toolChoose[i].testJson;
  18065. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18066. if (this.testJson.testJson[k].type == "2") {
  18067. this.radio.push([]);
  18068. } else {
  18069. this.radio.push("");
  18070. }
  18071. }
  18072. this.dialogVisibleChoice = true;
  18073. // window.parent.postMessage({ tools: "4" }, "*");
  18074. } else if (t == 5) {
  18075. if (this.scoreCount > 0) {
  18076. this.updateCount(this.scoreCount, t);
  18077. } else {
  18078. this.scoreCount++;
  18079. a = this.scoreCount;
  18080. this.toolsCount(a, t);
  18081. }
  18082. this.dialogVisible4 = true;
  18083. // window.parent.postMessage({ tools: "5" }, "*");
  18084. } else if (t == 6) {
  18085. if (this.noteCount > 0) {
  18086. this.updateCount(this.noteCount, t);
  18087. } else {
  18088. this.noteCount++;
  18089. a = this.noteCount;
  18090. this.toolsCount(a, t);
  18091. }
  18092. window.parent.postMessage(
  18093. {
  18094. tools: "6",
  18095. cid: this.id,
  18096. stage: this.courseType,
  18097. task: this.taskCount,
  18098. tool: i,
  18099. },
  18100. "*"
  18101. );
  18102. } else if (t == 7) {
  18103. if (this.mindNetWorkCount > 0) {
  18104. this.updateCount(this.mindNetWorkCount, t);
  18105. } else {
  18106. this.mindNetWorkCount++;
  18107. a = this.mindNetWorkCount;
  18108. this.toolsCount(a, t);
  18109. }
  18110. window.parent.postMessage(
  18111. {
  18112. tools: "7",
  18113. cid: this.id,
  18114. stage: this.courseType,
  18115. task: this.taskCount,
  18116. tool: i,
  18117. },
  18118. "*"
  18119. );
  18120. } else if (t == 16) {
  18121. if (this.workCount > 0) {
  18122. this.updateCount(this.workCount, t);
  18123. } else {
  18124. this.workCount++;
  18125. a = this.workCount;
  18126. this.toolsCount(a, t);
  18127. }
  18128. this.dialogVisible = true;
  18129. } else if (t == 50) {
  18130. if (this.tType == 2) {
  18131. this.$message.error("不支持学生使用");
  18132. return;
  18133. }
  18134. this.plworkFile = [];
  18135. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18136. if (!this.uploadCid) {
  18137. this.$message.error(
  18138. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18139. );
  18140. return;
  18141. }
  18142. // this.uploadCid =
  18143. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18144. // index
  18145. // ].toolChoose[i].uploadJson[0];
  18146. this.selectUploadStudent(2);
  18147. } else if (t == 8) {
  18148. if (this.libraryCount > 0) {
  18149. this.updateCount(this.libraryCount, t);
  18150. } else {
  18151. this.libraryCount++;
  18152. a = this.libraryCount;
  18153. this.toolsCount(a, t);
  18154. }
  18155. window.parent.postMessage({ tools: "8" }, "*");
  18156. } else if (t == 17) {
  18157. if (this.libraryCount > 0) {
  18158. this.updateCount(this.libraryCount, t);
  18159. } else {
  18160. this.libraryCount++;
  18161. a = this.libraryCount;
  18162. this.toolsCount(a, t);
  18163. }
  18164. window.parent.postMessage({ tools: "17" }, "*");
  18165. } else if (t == 18) {
  18166. if (this.trainCount > 0) {
  18167. this.updateCount(this.trainCount, t);
  18168. } else {
  18169. this.trainCount++;
  18170. a = this.trainCount;
  18171. this.toolsCount(a, t);
  18172. }
  18173. window.parent.postMessage({ tools: "18" }, "*");
  18174. } else if (t == 10) {
  18175. if (this.timeCount > 0) {
  18176. this.updateCount(this.timeCount, t);
  18177. } else {
  18178. this.timeCount++;
  18179. a = this.timeCount;
  18180. this.toolsCount(a, t);
  18181. }
  18182. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18183. .taskJson[index].toolChoose[i].preTime
  18184. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18185. .toolChoose[i].preTime
  18186. : "";
  18187. this.timeDialogVisible = true;
  18188. } else if (t == 15) {
  18189. this.answerQ = "";
  18190. this.questionAnswer = "";
  18191. if (this.answerCount > 0) {
  18192. this.updateCount(this.answerCount, t);
  18193. } else {
  18194. this.answerCount++;
  18195. a = this.answerCount;
  18196. this.toolsCount(a, t);
  18197. }
  18198. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18199. .taskJson[index].toolChoose[i].answerQ
  18200. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18201. .toolChoose[i].answerQ
  18202. : "";
  18203. this.answerDialogVisible = true;
  18204. } else if (t == 21) {
  18205. window.parent.postMessage({ tools: "21" }, "*");
  18206. } else if (t == 22) {
  18207. window.parent.postMessage({ tools: "22" }, "*");
  18208. } else if (t == 23) {
  18209. window.parent.postMessage({ tools: "23" }, "*");
  18210. } else if (t == 24) {
  18211. window.parent.postMessage({ tools: "24" }, "*");
  18212. } else if (t == 25) {
  18213. window.parent.postMessage({ tools: "25" }, "*");
  18214. } else if (t == 31) {
  18215. window.parent.postMessage({ tools: "31" }, "*");
  18216. } else if (t == 28) {
  18217. window.parent.postMessage({ tools: "28" }, "*");
  18218. } else if (t == 37) {
  18219. window.parent.postMessage({ tools: "37" }, "*");
  18220. } else if (t == 38) {
  18221. window.parent.postMessage({ tools: "38" }, "*");
  18222. } else if (t == 39) {
  18223. window.parent.postMessage({ tools: "39" }, "*");
  18224. } else if (t == 32) {
  18225. window.parent.postMessage({ tools: "32" }, "*");
  18226. } else if (t == 66) {
  18227. window.parent.postMessage({ tools: "66" }, "*");
  18228. } else if (t == 67) {
  18229. window.parent.postMessage({ tools: "67" }, "*");
  18230. } else if (t == 68) {
  18231. window.parent.postMessage({ tools: "68" }, "*");
  18232. } else if (t == 57) {
  18233. // window.parent.postMessage({ tools: "57" }, "*");
  18234. window.parent.postMessage(
  18235. {
  18236. tools: "57u",
  18237. cid: this.id,
  18238. stage: this.courseType,
  18239. task: this.taskCount,
  18240. tool: i,
  18241. },
  18242. "*"
  18243. );
  18244. } else if (t == 58) {
  18245. window.parent.postMessage({ tools: "58" }, "*");
  18246. } else if (t == 59) {
  18247. window.parent.postMessage({ tools: "59" }, "*");
  18248. } else if (t == 60) {
  18249. window.parent.postMessage({ tools: "60" }, "*");
  18250. } else if (t == 61) {
  18251. window.parent.postMessage({ tools: "61" }, "*");
  18252. } else if (t == 63) {
  18253. window.parent.postMessage({ tools: "63" }, "*");
  18254. } else if (t == 71) {
  18255. window.parent.postMessage({ tools: "71" }, "*");
  18256. } else if (t == 69) {
  18257. if (this.worksStudent[i].length) {
  18258. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18259. if (this.userid == this.worksStudent[i][k].userid) {
  18260. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18261. break;
  18262. } else {
  18263. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18264. }
  18265. }
  18266. } else {
  18267. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18268. }
  18269. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18270. .taskJson[index].toolChoose[i].englishList
  18271. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18272. .toolChoose[i].englishList
  18273. : {};
  18274. this.englishToolIndex = i;
  18275. this.myAnList = this.myAnswerList1;
  18276. this.engDialogVisible = true;
  18277. } else if (t == 70) {
  18278. if (this.worksStudent[i].length) {
  18279. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18280. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18281. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18282. break;
  18283. } else {
  18284. this.englishVoiceJsonWork = [];
  18285. }
  18286. }
  18287. } else {
  18288. this.englishVoiceJsonWork = [];
  18289. }
  18290. let englishVoiceJson = {}
  18291. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18292. .taskJson[index].toolChoose[i].englishVoiceJson
  18293. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18294. .toolChoose[i].englishVoiceJson
  18295. : {};
  18296. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18297. this.EnglishVoiceDialog = true;
  18298. } else if (t == 65) {
  18299. if (this.tType == 2) {
  18300. this.$message.error("不支持学生使用");
  18301. return;
  18302. }
  18303. this.uploadCid = this.tcid;
  18304. if (!this.uploadCid) {
  18305. this.$message.error(
  18306. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18307. );
  18308. return;
  18309. }
  18310. this.selectPickStudent();
  18311. } else if (t == 26) {
  18312. window.parent.postMessage(
  18313. {
  18314. tools: "26",
  18315. cid: this.id,
  18316. stage: this.courseType,
  18317. task: this.taskCount,
  18318. tool: i,
  18319. },
  18320. "*"
  18321. );
  18322. } else if (t == 40) {
  18323. if (this.evalCount > 0) {
  18324. this.updateCount(this.evalCount, t);
  18325. } else {
  18326. this.evalCount++;
  18327. a = this.evalCount;
  18328. this.toolsCount(a, t);
  18329. }
  18330. this.eScore = { eBzText: "", eStar: [] };
  18331. if (this.worksStudent[i].length) {
  18332. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18333. if (this.userid == this.worksStudent[i][k].userid) {
  18334. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18335. this.rateJson =
  18336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18337. index
  18338. ].toolChoose[i].rateJson;
  18339. break;
  18340. } else {
  18341. this.rateJson =
  18342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18343. index
  18344. ].toolChoose[i].rateJson;
  18345. }
  18346. }
  18347. } else {
  18348. this.rateJson =
  18349. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18350. index
  18351. ].toolChoose[i].rateJson;
  18352. }
  18353. this.isStar = false;
  18354. this.studentEvalDialogVisible = true;
  18355. } else if (t == 41) {
  18356. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18357. .taskJson[index].toolChoose[i].selectJson
  18358. ? JSON.parse(
  18359. JSON.stringify(
  18360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18361. index
  18362. ].toolChoose[i].selectJson
  18363. )
  18364. )
  18365. : { url: "", select: [], answer: [] };
  18366. if (this.worksStudent[i].length) {
  18367. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18368. if (this.userid == this.worksStudent[i][k].userid) {
  18369. var a = this.worksStudent[i][k].works.split(",");
  18370. for (var ki = 0; ki < a.length; ki++) {
  18371. a[ki] = parseInt(a[ki]);
  18372. }
  18373. this.selectAnswer = {
  18374. answer: a,
  18375. stu: this.worksStudent[i][k].sName,
  18376. };
  18377. break;
  18378. } else {
  18379. this.selectAnswer = { answer: [], stu: "" };
  18380. }
  18381. }
  18382. } else {
  18383. this.selectAnswer = { answer: [], stu: "" };
  18384. }
  18385. this.isSelect = false;
  18386. this.dialogVisibleSelect = true;
  18387. } else if (t == 44) {
  18388. window.parent.postMessage({ tools: "44" }, "*");
  18389. } else if (t == 47) {
  18390. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18391. .taskJson[index].toolChoose[i].sentenceList
  18392. ? JSON.parse(
  18393. JSON.stringify(
  18394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18395. index
  18396. ].toolChoose[i].sentenceList
  18397. )
  18398. )
  18399. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18400. for (var q = 0; q < this.sentenceList.length; q++) {
  18401. this.sentenceList[q].chooseSenList = [];
  18402. this.sentenceList[q].addChangeSen = [];
  18403. this.sentenceList[q].addChangeSen = JSON.parse(
  18404. JSON.stringify(this.sentenceList[q].addSentence)
  18405. );
  18406. this.sentenceList[q].chooseSenList.length =
  18407. this.sentenceList[q].rightAnswer.length;
  18408. }
  18409. this.dialogVisibleSentence = true;
  18410. } else if (t == 48) {
  18411. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18412. .taskJson[index].toolChoose[i].tableJson
  18413. ? JSON.parse(
  18414. JSON.stringify(
  18415. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18416. index
  18417. ].toolChoose[i].tableJson
  18418. )
  18419. )
  18420. : { text: "" };
  18421. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18422. if (this.worksStudent[i].length) {
  18423. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18424. if (this.userid == this.worksStudent[i][k].userid) {
  18425. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18426. break;
  18427. }
  18428. }
  18429. }
  18430. this.dialogVisibleTable = true;
  18431. } else if (t == 52) {
  18432. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18433. .taskJson[index].toolChoose[i].wordJson
  18434. ? JSON.parse(
  18435. JSON.stringify(
  18436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18437. index
  18438. ].toolChoose[i].wordJson
  18439. )
  18440. )
  18441. : { text: "" };
  18442. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18443. if (this.worksStudent[i].length) {
  18444. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18445. if (this.userid == this.worksStudent[i][k].userid) {
  18446. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18447. break;
  18448. }
  18449. }
  18450. }
  18451. this.dialogVisibleWord = true;
  18452. } else if (t == 49) {
  18453. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18454. return
  18455. }
  18456. this.groupJson =
  18457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18458. index
  18459. ].toolChoose[i].groupJson;
  18460. this.islock = this.groupJson.islock == 1 ? true : false;
  18461. this.dialogVisibleGroup = true;
  18462. } else if (t == 62) {
  18463. this.videoType = 0;
  18464. this.videoJson = {};
  18465. this.videoJson =
  18466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18467. index
  18468. ].toolChoose[i].videoJson;
  18469. this.dialogVisibleVideo = true;
  18470. }
  18471. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18472. },
  18473. teacherWorkSubmit(t, i, index, s) {
  18474. this.sStudent = s;
  18475. this.toolindex = i;
  18476. this.sTool = t;
  18477. if (this.tType !== "1" && this.tType !== "4") {
  18478. return;
  18479. }
  18480. if (t == 16 || t == 32 || t == 50) {
  18481. this.dialogVisibleWorks = true;
  18482. } else if (t == 15) {
  18483. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18484. .taskJson[index].toolChoose[i].answerQ
  18485. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18486. .toolChoose[i].answerQ
  18487. : "";
  18488. this.questionAnswer = "";
  18489. this.answerDialogVisibleTeacher = true; //问答
  18490. } else if (t == 52) {
  18491. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18492. .taskJson[index].toolChoose[i].wordJson
  18493. ? JSON.parse(
  18494. JSON.stringify(
  18495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18496. index
  18497. ].toolChoose[i].wordJson
  18498. )
  18499. )
  18500. : { text: "" };
  18501. if (this.worksStudent[i].length) {
  18502. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18503. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18504. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18505. break;
  18506. }
  18507. }
  18508. }
  18509. this.dialogVisibleWordTeacher = true; //文档
  18510. } else if (t == 4) {
  18511. this.radio = [];
  18512. this.noteName = "";
  18513. this.isAnswer = false;
  18514. if (this.askCount > 0) {
  18515. this.updateCount(this.askCount, t);
  18516. } else {
  18517. this.askCount++;
  18518. a = this.askCount;
  18519. this.toolsCount(a, t);
  18520. }
  18521. if (!this.dialogVisible2) {
  18522. this.askJson.askJson =
  18523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18524. index
  18525. ].toolChoose[i].askJson;
  18526. this.askJson.askTitle =
  18527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18528. index
  18529. ].toolChoose[i].askTitle;
  18530. this.askJson.askCount =
  18531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18532. index
  18533. ].toolChoose[i].askCount;
  18534. } else {
  18535. this.askJson.askJson = this.chapTools.askJson.askJson;
  18536. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18537. this.askJson.askCount = this.chapTools.askJson.askCount;
  18538. }
  18539. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18540. if (this.askJson.askJson[k].type == "2") {
  18541. this.radio.push([]);
  18542. } else {
  18543. this.radio.push("");
  18544. }
  18545. }
  18546. this.dialogVisible5Teacher = true;
  18547. } else if (t == 45) {
  18548. this.noteName = "";
  18549. this.radio = [];
  18550. this.isAnswer = false;
  18551. if (this.askCount > 0) {
  18552. this.updateCount(this.askCount, t);
  18553. } else {
  18554. this.askCount++;
  18555. a = this.askCount;
  18556. this.toolsCount(a, t);
  18557. }
  18558. this.testJson =
  18559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18560. index
  18561. ].toolChoose[i].testJson;
  18562. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18563. if (this.testJson.testJson[k].type == "2") {
  18564. this.radio.push([]);
  18565. } else {
  18566. this.radio.push("");
  18567. }
  18568. }
  18569. this.dialogVisibleChoiceTeacher = true;
  18570. } else if (t == 41) {
  18571. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18572. .taskJson[index].toolChoose[i].selectJson
  18573. ? JSON.parse(
  18574. JSON.stringify(
  18575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18576. index
  18577. ].toolChoose[i].selectJson
  18578. )
  18579. )
  18580. : { url: "", select: [], answer: [] };
  18581. if (this.worksStudent[i].length) {
  18582. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18583. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18584. var a = this.worksStudent[i][k].works.split(",");
  18585. for (var ki = 0; ki < a.length; ki++) {
  18586. a[ki] = parseInt(a[ki]);
  18587. }
  18588. this.selectAnswer = {
  18589. answer: a,
  18590. stu: this.worksStudent[i][k].sName,
  18591. };
  18592. break;
  18593. } else {
  18594. this.selectAnswer = { answer: [], stu: "" };
  18595. }
  18596. }
  18597. } else {
  18598. this.selectAnswer = { answer: [], stu: "" };
  18599. }
  18600. this.isSelect = false;
  18601. this.dialogVisibleSelectTeacher = true;
  18602. } else if (t == 47) {
  18603. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18604. .taskJson[index].toolChoose[i].sentenceList
  18605. ? JSON.parse(
  18606. JSON.stringify(
  18607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18608. index
  18609. ].toolChoose[i].sentenceList
  18610. )
  18611. )
  18612. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18613. for (var q = 0; q < this.sentenceList.length; q++) {
  18614. this.sentenceList[q].chooseSenList = [];
  18615. this.sentenceList[q].addChangeSen = [];
  18616. this.sentenceList[q].addChangeSen = JSON.parse(
  18617. JSON.stringify(this.sentenceList[q].addSentence)
  18618. );
  18619. this.sentenceList[q].chooseSenList.length =
  18620. this.sentenceList[q].rightAnswer.length;
  18621. }
  18622. this.dialogVisibleSentenceTeacher = true;
  18623. } else if (t == 48) {
  18624. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18625. .taskJson[index].toolChoose[i].tableJson
  18626. ? JSON.parse(
  18627. JSON.stringify(
  18628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18629. index
  18630. ].toolChoose[i].tableJson
  18631. )
  18632. )
  18633. : { text: "" };
  18634. if (this.worksStudent[i].length) {
  18635. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18636. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18637. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18638. break;
  18639. }
  18640. }
  18641. }
  18642. this.dialogVisibleTableTeacher = true;
  18643. } else if (t == 40) {
  18644. if (this.evalCount > 0) {
  18645. this.updateCount(this.evalCount, t);
  18646. } else {
  18647. this.evalCount++;
  18648. a = this.evalCount;
  18649. this.toolsCount(a, t);
  18650. }
  18651. this.eScore = { eBzText: "", eStar: [] };
  18652. if (this.worksStudent[i].length) {
  18653. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18654. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18655. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18656. this.rateJson =
  18657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18658. index
  18659. ].toolChoose[i].rateJson;
  18660. break;
  18661. } else {
  18662. this.rateJson =
  18663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18664. index
  18665. ].toolChoose[i].rateJson;
  18666. }
  18667. }
  18668. } else {
  18669. this.rateJson =
  18670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18671. index
  18672. ].toolChoose[i].rateJson;
  18673. }
  18674. this.isStar = false;
  18675. this.studentEvalDialogVisibleTeacher = true;
  18676. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18677. window.parent.postMessage(
  18678. {
  18679. tools: t + "teacher",
  18680. cid: this.id,
  18681. stage: this.courseType,
  18682. task: this.taskCount,
  18683. tool: i,
  18684. student: this.sStudent,
  18685. },
  18686. "*"
  18687. );
  18688. }
  18689. },
  18690. openCocoPi(tool, i, uid, uname) {
  18691. let student = {
  18692. userid: uid,
  18693. student: uname,
  18694. };
  18695. if (tool == 57) {
  18696. window.parent.postMessage(
  18697. {
  18698. tools: tool + "teacher",
  18699. cid: this.id,
  18700. stage: this.courseType,
  18701. task: this.taskCount,
  18702. tool: i,
  18703. student: student,
  18704. },
  18705. "*"
  18706. );
  18707. }
  18708. },
  18709. setRightAnswer(s, i, j) {
  18710. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18711. if (
  18712. this.sentenceList[i].chooseSenList[q] == undefined ||
  18713. this.sentenceList[i].chooseSenList[q] == ""
  18714. ) {
  18715. this.sentenceList[i].chooseSenList[q] = s;
  18716. this.sentenceList[i].addChangeSen[j] = "";
  18717. break;
  18718. }
  18719. }
  18720. this.$forceUpdate();
  18721. },
  18722. returnCard(r, i, j) {
  18723. var a = this.sentenceList[i].addSentence.indexOf(r);
  18724. this.sentenceList[i].chooseSenList[j] = "";
  18725. this.sentenceList[i].addChangeSen[a] = r;
  18726. this.$forceUpdate();
  18727. },
  18728. // addSentenceTool() {
  18729. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18730. // this.taskCount
  18731. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18732. // this.sentenceList = [
  18733. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18734. // ];
  18735. // this.dialogVisibleSentence = false;
  18736. // },
  18737. toolsCount(a, t) {
  18738. let params = {
  18739. cid: this.id,
  18740. chid: this.courseType,
  18741. uid: this.userid,
  18742. tid: t,
  18743. count: a,
  18744. };
  18745. this.ajax
  18746. .get(this.$store.state.api + "insertToolsCount", params)
  18747. .then((res) => {
  18748. this.selectCount();
  18749. })
  18750. .catch((err) => {
  18751. console.error(err);
  18752. });
  18753. },
  18754. updateCount(c, t) {
  18755. c++;
  18756. let params = {
  18757. cid: this.id,
  18758. chid: this.courseType,
  18759. uid: this.userid,
  18760. tid: t,
  18761. count: c,
  18762. };
  18763. this.ajax
  18764. .get(this.$store.state.api + "updateToolsCount", params)
  18765. .then((res) => {
  18766. this.selectCount();
  18767. })
  18768. .catch((err) => {
  18769. console.error(err);
  18770. });
  18771. },
  18772. checkEva() {
  18773. if (this.evalua != "") {
  18774. for (var i = 0; i < this.evaJuri.length; i++) {
  18775. if (this.evalua == this.evaJuri[i].id) {
  18776. this.eTitle = this.evaJuri[i].title;
  18777. this.eJson = JSON.parse(this.evaJuri[i].content);
  18778. }
  18779. }
  18780. this.$forceUpdate();
  18781. setTimeout(() => {
  18782. this.setMindData();
  18783. }, 0);
  18784. }
  18785. },
  18786. selectEva() {
  18787. let params = {
  18788. oid: this.oid,
  18789. };
  18790. this.ajax
  18791. .get(this.$store.state.api + "selectAllEvaluation", params)
  18792. .then((res) => {
  18793. this.evaJuri = res.data[0];
  18794. })
  18795. .catch((err) => {
  18796. console.error(err);
  18797. });
  18798. },
  18799. setMindData() {
  18800. this.data.data = [];
  18801. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18802. let _eJson = Object.keys(this.eJson);
  18803. let _e = this.eJson;
  18804. for (let i = 0; i < _eJson.length; i++) {
  18805. let element = _e[_eJson[i]];
  18806. this.data.data.push({
  18807. id: element.id,
  18808. parentid: "root",
  18809. topic: element.name,
  18810. });
  18811. let _eJsonc = Object.keys(element.child);
  18812. let _e2 = element.child;
  18813. for (let j = 0; j < _eJsonc.length; j++) {
  18814. let _ec = _e2[_eJsonc[j]];
  18815. this.data.data.push({
  18816. id: _ec.id,
  18817. parentid: element.id,
  18818. topic: _ec.name,
  18819. });
  18820. let _eJsonz = Object.keys(_ec.child);
  18821. let _e3 = _ec.child;
  18822. for (let z = 0; z < _eJsonz.length; z++) {
  18823. let _ez = _e3[_eJsonz[z]];
  18824. this.data.data.push({
  18825. id: _ez.id,
  18826. parentid: _ec.id,
  18827. topic: _ez.name,
  18828. });
  18829. }
  18830. }
  18831. }
  18832. this.$forceUpdate();
  18833. },
  18834. checkFileFull(type, url) {
  18835. this.fullDialogVisible = true;
  18836. this.fulltype = type;
  18837. this.fullUrl = url;
  18838. },
  18839. async checkFileFull1(t, f) {
  18840. this.fullDialogVisible = true;
  18841. if (t == 6) {
  18842. this.fulltype = 1;
  18843. this.fullUrl = JSON.parse(JSON.stringify(f));
  18844. } else if (t == 8) {
  18845. this.fulltype = 2;
  18846. this.fullUrl = f.url;
  18847. } else if (
  18848. t == 3 &&
  18849. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18850. "PDF"
  18851. ) {
  18852. this.fulltype = 3;
  18853. this.fullUrl = f.url;
  18854. } else if (t == 3) {
  18855. this.fulltype = 2;
  18856. let _uuurl = await this.checkLink(f.url);
  18857. this.fullUrl =
  18858. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18859. }
  18860. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18861. },
  18862. openSname(n, id, i, uid) {
  18863. this.snameWid = id;
  18864. this.worksSName = n;
  18865. this.worksSid = uid == n ? "" : uid;
  18866. this.toolindex = i;
  18867. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18868. if (!this.uploadCid) {
  18869. this.$message.error(
  18870. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18871. );
  18872. return;
  18873. }
  18874. this.selectUploadStudent(1);
  18875. },
  18876. updateName() {
  18877. let params = {
  18878. n: this.worksSName,
  18879. cid: this.snameWid,
  18880. };
  18881. this.ajax
  18882. .get(this.$store.state.api + "updateCourseWorksName", params)
  18883. .then((res) => {
  18884. this.$message({
  18885. message: "修改成功",
  18886. type: "success",
  18887. });
  18888. this.dialogVisibleSname = false;
  18889. this.getCourseDetail(2);
  18890. this.snameWid = "";
  18891. this.worksSName = "";
  18892. })
  18893. .catch((err) => {
  18894. console.error(err);
  18895. });
  18896. },
  18897. downloadFile2(f) {
  18898. // const loading = this.$loading.service({
  18899. // background: "rgba(255, 255, 255, 0.7)",
  18900. // target: document.body,
  18901. // text: "文件加载中...",
  18902. // });
  18903. // let url2 = f.url;
  18904. // let _url2 = "";
  18905. // if (
  18906. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18907. // ) {
  18908. // _url2 = url2.split(
  18909. // "https://view.officeapps.live.com/op/view.aspx?src="
  18910. // )[1];
  18911. // } else {
  18912. // _url2 = url2;
  18913. // }
  18914. // let params = {
  18915. // url: _url2,
  18916. // name: f.name,
  18917. // };
  18918. // this.ajax
  18919. // .get(this.$store.state.api + "download", params)
  18920. // .then((res) => {
  18921. // loading.close();
  18922. // let content = res.data.data.data;
  18923. // let ab = new ArrayBuffer(content.length);
  18924. // let view = new Uint8Array(ab);
  18925. // for (var i = 0; i < content.length; ++i) {
  18926. // view[i] = content[i];
  18927. // }
  18928. // let elink = document.createElement("a");
  18929. // elink.download = f.name;
  18930. // elink.style.display = "none";
  18931. // let blob = new Blob([ab], {
  18932. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18933. // });
  18934. // elink.href = URL.createObjectURL(blob);
  18935. // document.body.appendChild(elink);
  18936. // elink.click();
  18937. // document.body.removeChild(elink);
  18938. // })
  18939. // .catch((err) => {
  18940. // loading.close();
  18941. // console.error(err);
  18942. // });
  18943. var credentials = {
  18944. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18945. secretAccessKey: "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",
  18946. }; //秘钥形式的登录上传
  18947. window.AWS.config.update(credentials);
  18948. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18949. let url2 = f.url;
  18950. let _url2 = "";
  18951. if (
  18952. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18953. ) {
  18954. _url2 = url2.split(
  18955. "https://view.officeapps.live.com/op/view.aspx?src="
  18956. )[1];
  18957. } else {
  18958. _url2 = url2;
  18959. }
  18960. let _this = this;
  18961. _this.downLoading = true
  18962. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18963. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18964. var params = {
  18965. Bucket: "ccrb",
  18966. Key: name
  18967. };
  18968. s3.getObject(params, function (err, data) {
  18969. _this.downLoading = false
  18970. if (err) console.log(err, err.stack); // an error occurred
  18971. else {
  18972. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18973. let a = document.createElement("a");
  18974. a.name = f.name;
  18975. a.href = url;
  18976. a.download = f.name;
  18977. a.click();
  18978. console.log(data);
  18979. } // sxuccessful response
  18980. });
  18981. return;
  18982. let url = f.url;
  18983. let _url = "";
  18984. if (
  18985. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18986. ) {
  18987. _url = url.split(
  18988. "https://view.officeapps.live.com/op/view.aspx?src="
  18989. )[1];
  18990. } else {
  18991. _url = url;
  18992. }
  18993. _this.downLoading = true
  18994. let x = new XMLHttpRequest();
  18995. x.open("GET", _url, true);
  18996. x.responseType = "blob";
  18997. x.onload = function () {
  18998. _this.downLoading = false
  18999. let url = window.URL.createObjectURL(new Blob([x.response]));
  19000. let a = document.createElement("a");
  19001. a.name = f.name;
  19002. a.href = url;
  19003. a.download = f.name;
  19004. a.click();
  19005. };
  19006. x.send();
  19007. },
  19008. downloadFile(url) {
  19009. // this.$message.info("查看作业-下载文件")
  19010. var credentials = {
  19011. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19012. secretAccessKey: "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",
  19013. }; //秘钥形式的登录上传
  19014. window.AWS.config.update(credentials);
  19015. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19016. let url2 = url;
  19017. let _url2 = "";
  19018. if (
  19019. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19020. ) {
  19021. _url2 = url2.split(
  19022. "https://view.officeapps.live.com/op/view.aspx?src="
  19023. )[1];
  19024. } else {
  19025. _url2 = url2;
  19026. }
  19027. const loading2 = this.$loading.service({
  19028. background: "rgba(255, 255, 255, 0.7)",
  19029. target: document.body,
  19030. text: "文件加载中...",
  19031. });
  19032. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19033. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19034. var params = {
  19035. Bucket: "ccrb",
  19036. Key: name
  19037. };
  19038. s3.getObject(params, function (err, data) {
  19039. loading2.close();
  19040. if (err) console.log(err, err.stack); // an error occurred
  19041. else {
  19042. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19043. let a = document.createElement("a");
  19044. a.name = name;
  19045. a.href = url;
  19046. a.download = name;
  19047. a.click();
  19048. console.log(data);
  19049. } // sxuccessful response
  19050. });
  19051. return;
  19052. let _this = this;
  19053. let _url = "";
  19054. if (
  19055. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19056. ) {
  19057. _url = url.split(
  19058. "https://view.officeapps.live.com/op/view.aspx?src="
  19059. )[1];
  19060. } else {
  19061. _url = url;
  19062. }
  19063. const x = new XMLHttpRequest();
  19064. x.open("GET", _url, true);
  19065. x.responseType = "blob";
  19066. // this.downLoading = true
  19067. const loading = _this.$loading.service({
  19068. background: "rgba(255, 255, 255, 0.7)",
  19069. target: document.body,
  19070. text: "文件加载中...",
  19071. });
  19072. // _this.$message.success("文件下载中...");
  19073. x.onload = function (e) {
  19074. loading.close();
  19075. let content = x.response;
  19076. let elink = document.createElement("a");
  19077. elink.download = decodeURI(
  19078. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19079. );
  19080. elink.style.display = "none";
  19081. let blob = new Blob([content]);
  19082. elink.href = URL.createObjectURL(blob);
  19083. document.body.appendChild(elink);
  19084. elink.click();
  19085. document.body.removeChild(elink);
  19086. };
  19087. x.send();
  19088. },
  19089. openLine(url) {
  19090. window.open(url);
  19091. },
  19092. resize() {
  19093. if (document.getElementsByClassName("box_course").length) {
  19094. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19095. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19096. if (this.showType == 2 || this.showType == 3) {
  19097. document.getElementsByClassName("navBox")[0].style.height =
  19098. a - 40 + 0+ "px";
  19099. } else {
  19100. document.getElementsByClassName("navBox")[0].style.height =
  19101. a - 40 + "px";
  19102. }
  19103. }
  19104. this.Stbodywidth =
  19105. document.getElementsByClassName("student_body").length &&
  19106. document.getElementsByClassName("student_body")[0].offsetWidth;
  19107. },
  19108. closeDraw() {
  19109. this.bg = null;
  19110. this.drawShow = false;
  19111. },
  19112. showPicturePaint(url) {
  19113. let params = {
  19114. img: url,
  19115. };
  19116. this.ajax
  19117. .get(this.$store.state.api + "imgToBase64", params)
  19118. .then((res) => {
  19119. this.drawShow = true;
  19120. this.bg = res.data[0].img;
  19121. })
  19122. .catch((err) => {
  19123. console.error(err);
  19124. });
  19125. },
  19126. addImgDraw(base64) {
  19127. let file = { name: "批注图.png" };
  19128. let img = this.dataUrlToFile(base64, file);
  19129. this.beforeUpload1(img, 5);
  19130. },
  19131. addImgDrawImG(url) {
  19132. // console.log(url);
  19133. let params = [
  19134. {
  19135. wid: this.commentDetail.wid,
  19136. img: url,
  19137. },
  19138. ];
  19139. this.ajax
  19140. .post(this.$store.state.api + "updateCourseWorks", params)
  19141. .then((res) => {
  19142. this.$message({
  19143. message: "提交成功",
  19144. type: "success",
  19145. });
  19146. this.drawShow = false;
  19147. this.bg = "";
  19148. this.selectSWorks();
  19149. this.selectStudent();
  19150. })
  19151. .catch((err) => {
  19152. this.$message.error("提交失败");
  19153. console.error(err);
  19154. });
  19155. },
  19156. deletePicturePaint() {
  19157. this.$confirm("确定删除此批注吗?", "提示", {
  19158. confirmButtonText: "确定",
  19159. cancelButtonText: "取消",
  19160. type: "warning",
  19161. })
  19162. .then(() => {
  19163. let params = [
  19164. {
  19165. wid: this.commentDetail.wid,
  19166. img: "",
  19167. },
  19168. ];
  19169. this.ajax
  19170. .post(this.$store.state.api + "updateCourseWorks", params)
  19171. .then((res) => {
  19172. this.$message({
  19173. message: "删除成功",
  19174. type: "success",
  19175. });
  19176. this.selectSWorks();
  19177. this.selectStudent();
  19178. })
  19179. .catch((err) => {
  19180. this.$message.error("删除失败");
  19181. console.error(err);
  19182. });
  19183. })
  19184. .catch(() => {});
  19185. },
  19186. getAudioVideo(constraintsData) {
  19187. if (navigator.mediaDevices === undefined) {
  19188. navigator.mediaDevices = {};
  19189. }
  19190. if (navigator.mediaDevices.getUserMedia === undefined) {
  19191. navigator.mediaDevices.getUserMedia = function (constraints) {
  19192. // 首先,如果有getUserMedia的话,就获得它
  19193. var getUserMedia =
  19194. navigator.getUserMedia ||
  19195. navigator.webkitGetUserMedia ||
  19196. navigator.mozGetUserMedia ||
  19197. navigator.msGetUserMedia;
  19198. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19199. if (!getUserMedia) {
  19200. return Promise.reject({ code: 404 });
  19201. }
  19202. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19203. return new Promise(function (resolve, reject) {
  19204. getUserMedia.call(navigator, constraints, resolve, reject);
  19205. });
  19206. };
  19207. }
  19208. return navigator.mediaDevices.getUserMedia(constraintsData);
  19209. },
  19210. /**
  19211. * 开始录制
  19212. */
  19213. startRecording(callback) {
  19214. let _function = (screenStream) => {
  19215. this.addStreamStopListener(screenStream, () => {
  19216. console.log("流停止监听");
  19217. this.stopRecording();
  19218. this.$emit("streamStop", {});
  19219. // this.stopRecording();
  19220. });
  19221. var options = {
  19222. type: "video",
  19223. mimeType: "video/webm",
  19224. disableLogs: false,
  19225. getNativeBlob: false, // enable it for longer recordings
  19226. ignoreMutedMedia: false,
  19227. };
  19228. // this.video.srcObject = screenStream;
  19229. this.recorder = RecordRTC(screenStream, options);
  19230. this.recorder.startRecording();
  19231. this.recorder.screen = screenStream;
  19232. this.videoStart = true;
  19233. // callback(true);
  19234. };
  19235. this.getAudioVideo({ audio: true })
  19236. .then((res) => {
  19237. this.captureScreen(_function, true);
  19238. console.log("已点击允许,开启成功");
  19239. })
  19240. .catch((err) => {
  19241. // console.log('浏览器不支持,请更换浏览器')
  19242. // } else {
  19243. this.captureScreen(_function, false);
  19244. console.log("请检查是否存在麦克风");
  19245. });
  19246. },
  19247. /**
  19248. * 停止录制
  19249. */
  19250. stopRecording(callback) {
  19251. this.recorder.stopRecording(() => {
  19252. // this.video.src = this.video.srcObject = null;
  19253. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19254. const url = URL.createObjectURL(this.recorder.getBlob());
  19255. const a = document.createElement("a"); //this.fileName+
  19256. let videoFile = new File(
  19257. [this.recorder.getBlob()],
  19258. this.courseDetail.title + "录屏.mp4",
  19259. {
  19260. type: "video/mp4",
  19261. }
  19262. );
  19263. let downloadUrl = URL.createObjectURL(videoFile);
  19264. if(this.$refs.classRoomHelperRef){
  19265. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19266. }
  19267. document.body.appendChild(a);
  19268. a.style.display = "none";
  19269. a.href = url;
  19270. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19271. a.click();
  19272. this.recorder.screen.stop();
  19273. this.recorder.destroy();
  19274. this.recorder = null;
  19275. this.videoStart = false;
  19276. // callback(false);
  19277. });
  19278. },
  19279. //初始化
  19280. captureScreen(callback, type) {
  19281. if (navigator.getDisplayMedia) {
  19282. //录制结束,文件下载
  19283. navigator
  19284. .getDisplayMedia({
  19285. video: true,
  19286. })
  19287. .then((screenStream) => {
  19288. if (type) {
  19289. navigator.mediaDevices
  19290. .getUserMedia({ audio: true })
  19291. .then((mic) => {
  19292. screenStream.addTrack(mic.getTracks()[0]);
  19293. callback(screenStream);
  19294. });
  19295. } else {
  19296. callback(screenStream);
  19297. }
  19298. })
  19299. .catch(function (error) {
  19300. console.log("error", error);
  19301. });
  19302. } else if (navigator.mediaDevices.getDisplayMedia) {
  19303. navigator.mediaDevices
  19304. .getDisplayMedia({
  19305. video: true,
  19306. })
  19307. .then((screenStream) => {
  19308. if (type) {
  19309. navigator.mediaDevices
  19310. .getUserMedia({ audio: true })
  19311. .then((mic) => {
  19312. screenStream.addTrack(mic.getTracks()[0]);
  19313. callback(screenStream);
  19314. });
  19315. } else {
  19316. callback(screenStream);
  19317. }
  19318. })
  19319. .catch(function (error) {
  19320. console.log("error", error);
  19321. });
  19322. } else {
  19323. var error = "getDisplayMedia API are not supported in this browser.";
  19324. console.log("error", error);
  19325. alert(error);
  19326. }
  19327. },
  19328. //流监听
  19329. addStreamStopListener(stream, callback) {
  19330. stream.addEventListener(
  19331. "ended",
  19332. function () {
  19333. callback();
  19334. callback = function () {};
  19335. },
  19336. false
  19337. );
  19338. stream.addEventListener(
  19339. "inactive",
  19340. function () {
  19341. callback();
  19342. callback = function () {};
  19343. },
  19344. false
  19345. );
  19346. stream.getTracks().forEach(function (track) {
  19347. track.addEventListener(
  19348. "ended",
  19349. function () {
  19350. callback();
  19351. callback = function () {};
  19352. },
  19353. false
  19354. );
  19355. track.addEventListener(
  19356. "inactive",
  19357. function () {
  19358. callback();
  19359. callback = function () {};
  19360. },
  19361. false
  19362. );
  19363. });
  19364. },
  19365. updateGroup() {
  19366. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19367. this.dialogVisibleGroup2 = true;
  19368. },
  19369. numberPan() {
  19370. if (
  19371. /[^\d]/.test(this.groupJson.number) ||
  19372. this.groupJson.number < 2 ||
  19373. this.groupJson.number > 10
  19374. ) {
  19375. this.$message.error("请输入2-10的数字");
  19376. this.groupJson.number = "";
  19377. }
  19378. },
  19379. updateGroupJson() {
  19380. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19381. if (
  19382. this.groupStudentUid[this.toolindex][i].length >
  19383. this.groupJson2.number
  19384. ) {
  19385. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19386. return;
  19387. }
  19388. }
  19389. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19390. this.islock = this.groupJson.islock == 1 ? true : false;
  19391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19392. this.taskCount
  19393. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19394. let params = [
  19395. {
  19396. cid: this.id,
  19397. chapters: JSON.stringify(this.chapInfoList),
  19398. uid: this.userid,
  19399. unitIndex: this.courseType,
  19400. },
  19401. ];
  19402. this.ajax
  19403. .post(this.$store.state.api + "updateWorkNew4", params)
  19404. .then((res) => {
  19405. this.$message.success("设置成功");
  19406. this.getCourseDetail(2);
  19407. this.dialogVisibleGroup2 = false;
  19408. this.groupJson2 = {};
  19409. this.$forceUpdate();
  19410. })
  19411. .catch((err) => {
  19412. this.$message.error("网络不佳");
  19413. console.error(err);
  19414. });
  19415. },
  19416. lockChair() {
  19417. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19418. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19419. this.updateGroupJson();
  19420. },
  19421. selectGroup(index) {
  19422. this.getCourseDetail(2, index);
  19423. },
  19424. joinGroup(index) {
  19425. if (this.groupJson.islock == 2) {
  19426. this.$message.error("位置已被锁定,无法加入");
  19427. return;
  19428. }
  19429. if (
  19430. this.groupStudent[this.toolindex][index].length >
  19431. this.groupJson.number ||
  19432. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19433. ) {
  19434. this.$message.error("位置已满,无法加入");
  19435. return;
  19436. }
  19437. let params = [
  19438. {
  19439. cid: this.id,
  19440. stage: this.courseType,
  19441. task: this.taskCount,
  19442. tool: this.toolindex,
  19443. g: index,
  19444. uid: this.userid,
  19445. },
  19446. ];
  19447. this.ajax
  19448. .post(this.$store.state.api + "joinGroup", params)
  19449. .then((res) => {
  19450. this.$message.success("加入成功");
  19451. this.getCourseDetail(2);
  19452. })
  19453. .catch((err) => {
  19454. this.$message.error("网络不佳");
  19455. console.error(err);
  19456. });
  19457. },
  19458. exitGroup(id) {
  19459. if (this.groupJson.islock == 2) {
  19460. this.$message.error("位置已被锁定,无法退出");
  19461. return;
  19462. }
  19463. let params = [
  19464. {
  19465. gid: id,
  19466. },
  19467. ];
  19468. this.ajax
  19469. .post(this.$store.state.api + "exitGroup", params)
  19470. .then((res) => {
  19471. this.$message.success("退出成功");
  19472. this.getCourseDetail(2);
  19473. })
  19474. .catch((err) => {
  19475. this.$message.error("网络不佳");
  19476. console.error(err);
  19477. });
  19478. },
  19479. groupUpload(index, task, gindex) {
  19480. this.taskCount = task;
  19481. this.toolindex = index;
  19482. this.groupIndex = gindex;
  19483. this.dialogVisibleGroupWork = true;
  19484. },
  19485. updateGroupChair(user) {
  19486. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19487. el.label = index;
  19488. return index != user.group;
  19489. });
  19490. this.updateGroupUser = user;
  19491. this.dialogVisibleUpdateGroup = true;
  19492. },
  19493. updateChair() {
  19494. if (
  19495. this.groupStudent[this.toolindex][this.checkChair].length >
  19496. this.groupJson.number ||
  19497. this.groupStudent[this.toolindex][this.checkChair].length ==
  19498. this.groupJson.number
  19499. ) {
  19500. this.$message.error("位置已满,无法加入");
  19501. return;
  19502. }
  19503. let params = [
  19504. {
  19505. cid: this.id,
  19506. stage: this.courseType,
  19507. task: this.taskCount,
  19508. tool: this.toolindex,
  19509. g: this.checkChair,
  19510. uid: this.updateGroupUser.userid,
  19511. },
  19512. ];
  19513. this.ajax
  19514. .post(this.$store.state.api + "joinGroup", params)
  19515. .then((res) => {
  19516. this.$message.success("修改成功");
  19517. this.updateGroupUser = {};
  19518. this.checkChair = "";
  19519. this.updateGroupArray = {};
  19520. this.dialogVisibleUpdateGroup = false;
  19521. this.getCourseDetail(2);
  19522. })
  19523. .catch((err) => {
  19524. this.$message.error("网络不佳");
  19525. console.error(err);
  19526. });
  19527. },
  19528. deleteGroupChair(gindex) {
  19529. this.checkDeleteGroup = [];
  19530. this.deleteGroupUser = JSON.parse(
  19531. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19532. );
  19533. this.deleteGroupArray = this.groupJson.group[gindex];
  19534. this.groupIndex = gindex;
  19535. this.dialogVisibleDeleteGroup = true;
  19536. },
  19537. async deleteChair() {
  19538. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19539. const gid =
  19540. this.groupStudent[this.toolindex][this.groupIndex][
  19541. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19542. this.checkDeleteGroup[i]
  19543. )
  19544. ];
  19545. let params = [
  19546. {
  19547. gid: gid.id,
  19548. },
  19549. ];
  19550. var a = await this.deleteChairA(params);
  19551. if (i == this.checkDeleteGroup.length - 1) {
  19552. this.$message.success("退出成功");
  19553. this.dialogVisibleDeleteGroup = false;
  19554. this.deleteGroupUser = [];
  19555. this.deleteGroupArray = {};
  19556. this.groupIndex = "";
  19557. this.checkDeleteGroup = [];
  19558. this.getCourseDetail(2);
  19559. }
  19560. }
  19561. },
  19562. deleteChairA(params) {
  19563. return new Promise((resolve, reject) => {
  19564. this.ajax
  19565. .post(this.$store.state.api + "exitGroup", params)
  19566. .then((res) => {
  19567. resolve(1);
  19568. })
  19569. .catch((err) => {
  19570. this.$message.error("网络不佳");
  19571. console.error(err);
  19572. });
  19573. });
  19574. },
  19575. contract(i) {
  19576. if (this.isCloseList[i].isClose == 0) {
  19577. this.isCloseList[i].isClose = 1;
  19578. } else {
  19579. this.isCloseList[i].isClose = 0;
  19580. }
  19581. this.$forceUpdate();
  19582. },
  19583. openWordCloud(toolindex) {
  19584. let array = [];
  19585. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19586. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19587. array.push({ name: works });
  19588. }
  19589. if (this.isGroup) {
  19590. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19591. let works = this.courseGroup.group[i].works[toolindex];
  19592. for (var j = 0; j < works.length; j++) {
  19593. let answer = JSON.parse(works[j].works)[0].answer;
  19594. array.push({ name: answer });
  19595. }
  19596. }
  19597. }
  19598. this.wordCloudData = array;
  19599. this.dialogVisibleWordCloud = true;
  19600. },
  19601. uploadWorks(i) {
  19602. this.$confirm("确定导出作业吗?", "提示", {
  19603. confirmButtonText: "确定",
  19604. cancelButtonText: "取消",
  19605. type: "warning",
  19606. })
  19607. .then(() => {
  19608. const loading = this.$loading.service({
  19609. background: "rgba(255, 255, 255, 0.7)",
  19610. target: document.body,
  19611. text: "文件加载中...",
  19612. });
  19613. const _worksStudent = this.worksStudent;
  19614. let url = [];
  19615. var counts = {};
  19616. for (var l = 0; l < _worksStudent[i].length; l++) {
  19617. var item = _worksStudent[i][l];
  19618. var name = item.sName;
  19619. if (!counts.hasOwnProperty(name)) {
  19620. counts[name] = 0;
  19621. } else {
  19622. counts[name]++;
  19623. }
  19624. if (counts[name] > 0) {
  19625. item.sName += " (" + counts[name] + ")";
  19626. }
  19627. }
  19628. for (var l = 0; l < _worksStudent[i].length; l++) {
  19629. var item = _worksStudent[i][l];
  19630. if (
  19631. item.works.indexOf(
  19632. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19633. ) !== -1 &&
  19634. item.works.indexOf("img") === -1
  19635. ) {
  19636. url.push({ name: item.sName, url: item.works });
  19637. }
  19638. }
  19639. // var toolList = [
  19640. // { name: "电子白板", tool: 1 },
  19641. // { name: "思维导图", tool: 3 },
  19642. // { name: "协同文档", tool: 6 },
  19643. // { name: "思维网格", tool: 7 },
  19644. // { name: "素材库", tool: 8 },
  19645. // { name: "学习资料", tool: 17 },
  19646. // { name: "便签", tool: 2 },
  19647. // { name: "问卷调查", tool: 4 },
  19648. // { name: "选择题", tool: 45 },
  19649. // { name: "倒计时", tool: 10 },
  19650. // { name: "问答", tool: 15 },
  19651. // { name: "课程设计", tool: 26 },
  19652. // { name: "训练服务器", tool: 18 },
  19653. // { name: "作业提交", tool: 16 },
  19654. // { name: "批量上传", tool: 50 },
  19655. // { name: "AIoT Blockly", tool: 21 },
  19656. // { name: "AI Python", tool: 23 },
  19657. // { name: "AI Blockly", tool: 24 },
  19658. // { name: "目标管理", tool: 25 },
  19659. // { name: "数学画板", tool: 31 },
  19660. // { name: "翻译", tool: 28 },
  19661. // { name: "魔盒识字", tool: 37 },
  19662. // { name: "数学画板", tool: 31 },
  19663. // { name: "24点", tool: 38 },
  19664. // { name: "GeoGebra", tool: 39 },
  19665. // { name: "源码编辑", tool: 32 },
  19666. // { name: "个人评价", tool: 40 },
  19667. // { name: "选择匹配", tool: 41 },
  19668. // { name: "汉字宫", tool: 44 },
  19669. // { name: "排序", tool: 47 },
  19670. // { name: "表格", tool: 48 },
  19671. // { name: "文档", tool: 52 },
  19672. // { name: "学生分组", tool: 49 },
  19673. // { name: "CocoPi", tool: 57 },
  19674. // { name: "模拟驾驶", tool: 58 },
  19675. // { name: "路径搜索", tool: 59 },
  19676. // { name: "深度学习", tool: 60 },
  19677. // { name: "全历史", tool: 61 },
  19678. // { name: "交互视频", tool: 62 },
  19679. // { name: "海龟编程", tool: 63 },
  19680. // { name: "挑人", tool: 65 },
  19681. // { name: "公式编辑", tool: 66 },
  19682. // { name: "分子结构", tool: 67 },
  19683. // { name: "时间轴", tool: 68 },
  19684. // ];
  19685. // var toolName = "";
  19686. // for(var w = 0;w<toolList.length;w++){
  19687. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19688. // toolName = toolList[w].name;
  19689. // }
  19690. // }
  19691. console.log(url);
  19692. this.downLoadAll(url, loading);
  19693. })
  19694. .catch(() => {});
  19695. },
  19696. downLoadAll(url, loading) {
  19697. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19698. const zip = new JSZip();
  19699. const cache = {};
  19700. const promises = [];
  19701. data.forEach((item) => {
  19702. const promise = getFile(item.url).then((data) => {
  19703. if (data.data != 1) {
  19704. // 下载文件, 并存成ArrayBuffer对象
  19705. const file_name =
  19706. item.name +
  19707. "." +
  19708. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19709. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19710. cache[file_name] = data.data;
  19711. }
  19712. });
  19713. promises.push(promise);
  19714. });
  19715. Promise.all(promises).then(() => {
  19716. zip.generateAsync({ type: "blob" }).then((content) => {
  19717. // 生成二进制流
  19718. FileSaver.saveAs(
  19719. content,
  19720. this.courseDetail.title + "-" + "作业提交工具.zip"
  19721. ); // 利用file-saver保存文件 自定义文件名
  19722. setTimeout(() => {
  19723. loading.close();
  19724. }, 2000);
  19725. });
  19726. });
  19727. },
  19728. pickStudent(stu) {
  19729. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19730. return;
  19731. }
  19732. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19733. confirmButtonText: "确定",
  19734. cancelButtonText: "取消",
  19735. type: "warning",
  19736. })
  19737. .then(() => {
  19738. let params = [
  19739. {
  19740. uid: stu.userid,
  19741. cid: this.id,
  19742. stage: this.courseType,
  19743. task: this.taskCount,
  19744. tool: this.toolindex,
  19745. },
  19746. ];
  19747. this.ajax
  19748. .post(this.$store.state.api + "updateCoursePick", params)
  19749. .then((res) => {
  19750. this.$message.success("操作成功");
  19751. this.getPick();
  19752. })
  19753. .catch((err) => {
  19754. this.$message.error("网络不佳");
  19755. console.error(err);
  19756. });
  19757. })
  19758. .catch(() => {});
  19759. },
  19760. selectUser(){
  19761. let params = {
  19762. userid: this.userid,
  19763. };
  19764. this.ajax
  19765. .get(this.$store.state.api + "selectUser", params)
  19766. .then((res) => {
  19767. this.userMes = res.data[0];
  19768. })
  19769. .catch((err) => {
  19770. console.error(err);
  19771. });
  19772. },
  19773. setEngText(i){
  19774. this.newEngIndex = i;
  19775. this.$forceUpdate();
  19776. },
  19777. addCorrect(){
  19778. this.$confirm("你确定提交批改嘛?", "提示", {
  19779. confirmButtonText: "确定",
  19780. showCancelButton: false,
  19781. closeOnClickModal: false,
  19782. type: "warning",
  19783. })
  19784. .then(() => {
  19785. let params = {
  19786. cid: this.id,
  19787. s: parseInt(this.courseType),
  19788. t: this.taskCount,
  19789. tool: this.toolindex,
  19790. wid: this.engWid,
  19791. c: this.userid,
  19792. 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) : "",
  19793. };
  19794. this.ajax
  19795. .get(this.$store.state.api + "addEngC", params)
  19796. .then((res) => {
  19797. this.$message.success("提交成功");
  19798. this.engUpdateDialogVisible = false;
  19799. })
  19800. .catch((err) => {
  19801. console.error(err);
  19802. });
  19803. })
  19804. .catch(() => {});
  19805. },
  19806. selectEngC(id,z){
  19807. let params = {
  19808. workid: id,
  19809. };
  19810. this.ajax
  19811. .get(this.$store.state.api + "selectEngC", params)
  19812. .then((res) => {
  19813. if(res.data[0].length == 0){
  19814. this.newEnglishList.engTitle = z.engTitle;
  19815. this.newEnglishList.engText = z.engText;
  19816. }else{
  19817. var a = res.data[0];
  19818. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19819. if(this.userMes[0].type == 2){
  19820. var snum = 0;
  19821. for(var i = 0;i<a.length;i++){
  19822. if(this.userMes[0].userid == a[i].correct){
  19823. this.newEnglishList = JSON.parse(a[i].cWork);
  19824. snum = 1;
  19825. }
  19826. }
  19827. if(snum == 0){
  19828. this.newEnglishList = { engTitle:"",engText:"" };
  19829. this.newEnglishList.engTitle = z.engTitle;
  19830. this.newEnglishList.engText = z.engText;
  19831. }
  19832. }else if(this.userMes[0].type == 1){
  19833. var num = 0;
  19834. for(var w= 0;w<a.length;w++){
  19835. if(this.userMes[0].userid == a[w].correct){
  19836. num = 1;
  19837. }
  19838. }
  19839. if(num == 0){
  19840. this.isNoUserid = true;
  19841. var c = JSON.parse(JSON.stringify(z));
  19842. this.oldEnglishJson1 = c;
  19843. }else{
  19844. this.isNoUserid = false;
  19845. }
  19846. var b = a.sort((item, index) => {
  19847. console.log(item)
  19848. if (item.correct === this.userMes[0].userid) {
  19849. return -1; // 将a移到前面
  19850. } else if (index.correct === this.userMes[0].userid) {
  19851. return 1; // 将b移到前面
  19852. } else {
  19853. return 0; // 保持默认顺序
  19854. }
  19855. });
  19856. for(var p = 0;p<b.length;p++){
  19857. for(var y = 0;y<ppp.length;y++){
  19858. if(b[p].id == ppp[y].id){
  19859. b[p].cWork = JSON.parse(ppp[y].cWork);
  19860. break
  19861. }
  19862. }
  19863. }
  19864. this.newEnglishList1 = b;
  19865. }
  19866. }
  19867. this.greyType = false;
  19868. setTimeout(() => {
  19869. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19870. if(this.newEnglishList1.length > 0){
  19871. if(this.isNoUserid == true){
  19872. this.engListLength = this.newEnglishList1.length + 1;
  19873. this.newEngIndex = -1;
  19874. }else{
  19875. this.engListLength = this.newEnglishList1.length;
  19876. this.newEngIndex = 0;
  19877. }
  19878. }
  19879. if(this.userMes[0].type == 2){
  19880. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19881. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19882. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19883. }else if(this.newEngIndex == -1){
  19884. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19885. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19886. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19887. }
  19888. }, 500);
  19889. this.engUpdateDialogVisible = true;
  19890. this.$forceUpdate();
  19891. })
  19892. .catch((err) => {
  19893. console.error(err);
  19894. });
  19895. },
  19896. getPick() {
  19897. let params = {
  19898. cid: this.id,
  19899. };
  19900. this.ajax
  19901. .get(this.$store.state.api + "getPick", params)
  19902. .then((res) => {
  19903. let array = [];
  19904. for (var i = 0; i < res.data[0].length; i++) {
  19905. array.push(res.data[0][i].userid);
  19906. }
  19907. this.isPickStudent = array;
  19908. if (array.indexOf(this.userid) !== -1) {
  19909. this.$confirm("你被老师选到啦!", "提示", {
  19910. confirmButtonText: "确定",
  19911. showCancelButton: false,
  19912. closeOnClickModal: false,
  19913. type: "warning",
  19914. })
  19915. .then(() => {
  19916. let pa = [
  19917. {
  19918. uid: this.userid,
  19919. cid: this.id,
  19920. },
  19921. ];
  19922. this.ajax
  19923. .post(this.$store.state.api + "deletePick", pa)
  19924. .then((res) => {
  19925. this.getPick();
  19926. })
  19927. .catch((err) => {
  19928. this.$message.error("网络不佳");
  19929. console.error(err);
  19930. });
  19931. })
  19932. .catch(() => {});
  19933. }
  19934. })
  19935. .catch((err) => {
  19936. this.$message.error("网络不佳");
  19937. console.error(err);
  19938. });
  19939. },
  19940. foldEva() {
  19941. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19943. } else {
  19944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19945. setTimeout(() => {
  19946. this.checkEva();
  19947. setTimeout(() => {
  19948. this.checkEva();
  19949. }, 500);
  19950. }, 0);
  19951. }
  19952. this.$forceUpdate();
  19953. },
  19954. panToolHeight(tool) {
  19955. var _tool = document.querySelectorAll('#'+tool)[0]
  19956. var _toolA = _tool ? _tool.offsetHeight : 0
  19957. var _toolC = 0
  19958. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19959. let boolean2 = (_toolA > _toolC) ? true : false
  19960. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19961. this.$forceUpdate();
  19962. },
  19963. async checkLink(url) {
  19964. console.log(url)
  19965. let _url = url
  19966. try {
  19967. const response = await fetch(url);
  19968. if(!response.ok){
  19969. _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]))
  19970. }
  19971. console.log(response.ok)
  19972. } catch (error) {
  19973. console.error('Error checking link:', error);
  19974. // console.log(false)
  19975. _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]))
  19976. }
  19977. // console.log(_url)
  19978. return _url
  19979. },
  19980. getScoreList(){
  19981. let params = {
  19982. cid: this.id,
  19983. };
  19984. this.ajax
  19985. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19986. .then((res) => {
  19987. let result = res.data;
  19988. this.scoreList.datalist = result[0];
  19989. this.scoreList.isScoreList = result[1];
  19990. })
  19991. .catch((err) => {
  19992. console.error(err);
  19993. });
  19994. },
  19995. setClassRoomHelperWidth(width){
  19996. this.classRoomHelperWidth = width
  19997. },
  19998. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  19999. this.$refs.choseWorksDetailDialogRef.open({
  20000. toolType:tooc,
  20001. tType: this.tType,
  20002. toolIndex: toolIndex
  20003. });
  20004. this.changeSplitScreenBehavior({
  20005. code: 1,
  20006. form: {
  20007. toolType:tooc,
  20008. toolIndex: toolIndex,
  20009. courseType: this.courseType,
  20010. taskCount: this.taskCount,
  20011. type: 0
  20012. }
  20013. });
  20014. },
  20015. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20016. this.$refs.statisticalAnalysisRef.open({
  20017. worksStudent: this.worksStudent[toolIndex],
  20018. tType: this.tType,
  20019. toolIndex: toolIndex
  20020. });
  20021. this.changeSplitScreenBehavior({
  20022. code: 2,
  20023. form: {
  20024. toolType:4,
  20025. courseType: this.courseType,
  20026. taskCount: this.taskCount,
  20027. toolIndex: toolIndex,
  20028. type: 0
  20029. }
  20030. });
  20031. },
  20032. statisticalAnalysisRefresh(toolIndex) {
  20033. this.$refs.statisticalAnalysisRef.refreshData({
  20034. worksStudent: this.worksStudent[toolIndex],
  20035. tType: this.tType,
  20036. toolIndex: toolIndex
  20037. });
  20038. },
  20039. async splitScreenBehavior(type = 0) {
  20040. // return;
  20041. if (this.splitScreenData.loading)
  20042. return this.$message.info("操作过快,请稍等");
  20043. if (type == 0) {
  20044. //关闭分屏
  20045. this.splitScreenData.isOpen = false;
  20046. // this.splitScreenData.userId = "";
  20047. // this.splitScreenData.uid = "";
  20048. this.splitScreenData.behavior = null;
  20049. await this.updateSplitScreenData(1);
  20050. this.$message.success("已关闭分屏模式");
  20051. this.studentFreePreview(false);
  20052. this.OpenJobPreview(false);
  20053. // this.followingMode(false);
  20054. } else if (type == 1) {
  20055. //开启分屏
  20056. this.splitScreenData.isOpen = true;
  20057. this.splitScreenData.userId = this.userid;
  20058. this.splitScreenData.uid = this.splitScreenData.myUid;
  20059. this.splitScreenData.behavior = null;
  20060. let status = await this.updateSplitScreenData(0);
  20061. if (status == 1) {
  20062. this.$message.success("已开启分屏");
  20063. this.studentFreePreview(true);
  20064. this.OpenJobPreview(true);
  20065. // this.followingMode(true);
  20066. } else {
  20067. this.splitScreenData.isOpen = false;
  20068. this.splitScreenData.userId = "";
  20069. this.splitScreenData.uid = "";
  20070. this.splitScreenData.behavior = null;
  20071. this.$message.success("分屏开启失败");
  20072. }
  20073. }
  20074. },
  20075. getSplitScreenData() {
  20076. // return;
  20077. if (this.tType != 1) return;
  20078. let params = {
  20079. cid: this.id
  20080. };
  20081. this.ajax
  20082. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20083. .then(async res => {
  20084. let data = res.data[0][0]["splitScreenData"];
  20085. console.log("获取了分屏数:", data);
  20086. if (data) {
  20087. data = JSON.parse(data);
  20088. if (
  20089. !this.splitScreenData.isOpen &&
  20090. data.isOpen &&
  20091. this.splitScreenData.myUid == data.uid
  20092. ) {
  20093. this.splitScreenData.isOpen = false;
  20094. this.splitScreenData.userId = "";
  20095. this.splitScreenData.uid = "";
  20096. this.splitScreenData.behavior = null;
  20097. await this.updateSplitScreenData(1);
  20098. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20099. this.splitScreenData.isOpen = true;
  20100. this.splitScreenData.uid = data.uid;
  20101. this.splitScreenData.userId = data.userId;
  20102. this.splitScreenData.behavior = data.behavior;
  20103. this.$message.success("分屏模式已开启");
  20104. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20105. this.splitScreenData.isOpen = false;
  20106. this.splitScreenData.userId = "";
  20107. this.splitScreenData.uid = "";
  20108. this.splitScreenData.behavior = null;
  20109. this.$message.error("已结束分屏模式");
  20110. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20111. this.splitScreenData.isOpen = true;
  20112. this.splitScreenData.uid = data.uid;
  20113. this.splitScreenData.userId = data.userId;
  20114. this.splitScreenData.behavior = data.behavior;
  20115. }
  20116. this.doSplitScreenBehavior();
  20117. } else {
  20118. if (this.splitScreenData.isOpen) {
  20119. this.splitScreenData.isOpen = false;
  20120. this.splitScreenData.userId = "";
  20121. this.splitScreenData.uid = "";
  20122. this.splitScreenData.behavior = null;
  20123. this.$message.error("已结束分屏模式");
  20124. }
  20125. }
  20126. })
  20127. .catch(e => {
  20128. console.log("获取分屏数出错:", e);
  20129. });
  20130. },
  20131. doSplitScreenBehavior() {
  20132. if (
  20133. this.splitScreenData.isOpen &&
  20134. this.splitScreenData.uid != this.splitScreenData.myUid
  20135. ) {
  20136. let behavior = this.splitScreenData.behavior;
  20137. if (behavior) {
  20138. if (behavior.code === 99) {
  20139. //初始化
  20140. this.fullDialogVisible = false;
  20141. if(this.$refs.choseWorksDetailDialogRef.show){
  20142. this.$refs.choseWorksDetailDialogRef.close();
  20143. }
  20144. if(this.$refs.statisticalAnalysisRef.show){
  20145. this.$refs.statisticalAnalysisRef.close();
  20146. }
  20147. } else if (behavior.code === 0) {
  20148. //开启内容列表弹窗
  20149. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20150. } else if (behavior.code === 1) {
  20151. //关于选择题的作业详细的操作
  20152. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20153. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20154. this.courseType = behavior.form.courseType;
  20155. this.taskCount = behavior.form.taskCount;
  20156. }
  20157. this.$nextTick(() => {
  20158. if (this.$refs.choseWorksDetailDialogRef.show) {
  20159. //已经打开了
  20160. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20161. } else {
  20162. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20163. }
  20164. });
  20165. }else if(behavior.code === 2){
  20166. if(this.$refs.statisticalAnalysisRef.show){
  20167. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20168. }else{
  20169. this.$refs.statisticalAnalysisRef.open({
  20170. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20171. tType: this.tType,
  20172. toolIndex: behavior.form.toolIndex
  20173. });
  20174. }
  20175. }
  20176. } else {
  20177. }
  20178. }
  20179. },
  20180. updateSplitScreenData(empty = 0) {
  20181. return new Promise(resolve => {
  20182. if(this.userid!==this.courseDetail.userid){
  20183. if(!this.courseDetail.userid){
  20184. return setTimeout(()=>{
  20185. this.updateSplitScreenData(empty)
  20186. },2000)
  20187. }
  20188. return;
  20189. };
  20190. if (
  20191. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20192. this.splitScreenData.userId == this.userid
  20193. ) {
  20194. this.splitScreenData.loading = true;
  20195. let params = [
  20196. {
  20197. cid: this.id,
  20198. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20199. }
  20200. ];
  20201. this.ajax
  20202. .post(
  20203. this.$store.state.api + "update_courseSplitScreenData",
  20204. params
  20205. )
  20206. .then(res => {
  20207. this.splitScreenData.loading = false;
  20208. if (res.data == 1) {
  20209. resolve(1);
  20210. console.log("修改分屏数据成功");
  20211. }
  20212. })
  20213. .catch(e => {
  20214. this.splitScreenData.loading = false;
  20215. console.log("修改分屏数据失败", e);
  20216. resoleve(0);
  20217. });
  20218. } else if (empty == 2 && this.tType == 1) {
  20219. console.log("清空清空清空清空")
  20220. let params = [
  20221. {
  20222. cid: this.id,
  20223. nData: ""
  20224. }
  20225. ];
  20226. return this.ajax
  20227. .post(
  20228. this.$store.state.api + "update_courseSplitScreenData",
  20229. params
  20230. )
  20231. .then(_ => resolve(1))
  20232. .catch(_ => resolve(0));
  20233. } else {
  20234. return resolve(0);
  20235. }
  20236. });
  20237. },
  20238. changeSplitScreenBehavior(newValue) {
  20239. if (
  20240. this.splitScreenData.isOpen &&
  20241. this.splitScreenData.uid == this.splitScreenData.myUid
  20242. ) {
  20243. this.splitScreenData.behavior = newValue;
  20244. this.updateSplitScreenData(0);
  20245. }
  20246. },
  20247. studentFreePreview(flag) {
  20248. this.IsLookOpen = flag;
  20249. this.updateLookOpen();
  20250. this.followingMode(flag)
  20251. },
  20252. OpenJobPreview(flag) {
  20253. this.sIsOpen = flag;
  20254. this.updateSLook();
  20255. },
  20256. followingMode(flag) {
  20257. this.IsFollow = flag;
  20258. this.updateFollow();
  20259. }
  20260. },
  20261. directives: {
  20262. // 使用局部注册指令的方式
  20263. resize: {
  20264. // 指令的名称
  20265. bind(el, binding) {
  20266. // el为绑定的元素,binding为绑定给指令的对象
  20267. let width = "",
  20268. height = "";
  20269. function isReize() {
  20270. const style = document.defaultView.getComputedStyle(el);
  20271. if (width !== style.width || height !== style.height) {
  20272. binding.value(); // 关键
  20273. }
  20274. width = style.width;
  20275. height = style.height;
  20276. }
  20277. el.__vueSetInterval__ = setInterval(isReize, 300);
  20278. },
  20279. unbind(el) {
  20280. clearInterval(el.__vueSetInterval__);
  20281. },
  20282. },
  20283. autoHeight: {
  20284. update(el, binding) {
  20285. const { value } = binding
  20286. if (value && typeof value === 'number') {
  20287. el.style.height = `${value}px`
  20288. } else {
  20289. el.style.height = 'auto'
  20290. }
  20291. },
  20292. componentUpdated(el) {
  20293. el.style.height = `${el.scrollHeight}px`
  20294. },
  20295. },
  20296. },
  20297. beforeDestroy() {
  20298. window.onresize = null;
  20299. clearInterval(this.timer);
  20300. this.timer = null;
  20301. clearInterval(this.opertimer);
  20302. this.opertimer = null;
  20303. this.updateSplitScreenData(1);
  20304. },
  20305. computed: {
  20306. contentConvent() {
  20307. return function (c) {
  20308. return c
  20309. ? c
  20310. .replaceAll(/\r\n/g, "<br/>")
  20311. .replaceAll(/\n/g, "<br/>")
  20312. .replaceAll(/\s/g, " &nbsp")
  20313. : "";
  20314. };
  20315. },
  20316. commentRight(){
  20317. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20318. return "35px";
  20319. }
  20320. return `calc(${this.classRoomHelperWidth} + 5px)`
  20321. // if(this.$refs["classRoomHelperRef"].type==0){
  20322. // return "100px";
  20323. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20324. // return "502px"
  20325. // }else{
  20326. // return "0px"
  20327. // }
  20328. },
  20329. checkUpload() {
  20330. return function () {
  20331. var studentK = [];
  20332. if (this.plworkFile.length > 0) {
  20333. for (var z = 0; z < this.plworkFile.length; z++) {
  20334. studentK.push(this.plworkFile[z].username);
  20335. }
  20336. studentK = studentK.join(",");
  20337. }
  20338. var a = this.uploadStudentJuri.filter((el) => {
  20339. return studentK.indexOf(el.userid) == -1;
  20340. });
  20341. return a;
  20342. };
  20343. },
  20344. getSName() {
  20345. return function (name) {
  20346. var check = name;
  20347. this.uploadStudentJuri.forEach((el) => {
  20348. if (el.userid == check) {
  20349. check = el.name ? el.name : el.username;
  20350. }
  20351. });
  20352. return check;
  20353. };
  20354. },
  20355. getImgList() {
  20356. return function (val) {
  20357. let srcList = []; // 定义一个数组用来接收后面的img地址
  20358. val.replace(
  20359. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20360. function (match, capture) {
  20361. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20362. srcList.push(capture);
  20363. }
  20364. );
  20365. return srcList;
  20366. };
  20367. },
  20368. retrnToolHeight(){
  20369. return function (tool) {
  20370. var _tool = document.querySelectorAll('#'+tool)[0]
  20371. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20372. };
  20373. },
  20374. Correct() {
  20375. return function (c) {
  20376. let w = "";
  20377. let a = this.correctWord;
  20378. for(var k = 0;k<a.length;k++){
  20379. //diffWordsWithSpace
  20380. if(a.length > 1){
  20381. if(a[k].added == true){
  20382. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20383. }else if(a[k].removed == true){
  20384. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20385. }else{
  20386. w += '<span>' + a[k].value + '</span>';
  20387. }
  20388. }else{
  20389. w = c
  20390. }
  20391. //diffChars方法
  20392. // if(a.length > 1){
  20393. // if(w == ""){
  20394. // if(a[k].added == true){
  20395. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20396. // }else if(a[k].removed == true){
  20397. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20398. // }
  20399. // }else{
  20400. // if(k == a.length - 1){
  20401. // if(a[k].added == true){
  20402. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20403. // }else if(a[k].removed == true){
  20404. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20405. // }
  20406. // }else{
  20407. // if(a[k].added == true){
  20408. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20409. // }else if(a[k].removed == true){
  20410. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20411. // }
  20412. // }
  20413. // }
  20414. // }else{
  20415. // w = c
  20416. // }
  20417. }
  20418. c = w;
  20419. return c;
  20420. };
  20421. },
  20422. },
  20423. mounted() {
  20424. document.body.addEventListener("click", (e) => {
  20425. if (this.isUpdateToolDetail1) {
  20426. this.updateToolDetail(this.toolDetailIndex);
  20427. }
  20428. });
  20429. if (this.screenType == 2) {
  20430. window.parent.postMessage({ allScreen: 4 }, "*");
  20431. } else if (this.screenType == 3) {
  20432. window.parent.postMessage({ allScreen: 5 }, "*");
  20433. } else if (this.screenType == 1) {
  20434. window.parent.postMessage({ allScreen: 6 }, "*");
  20435. }
  20436. this.setOperationTime();
  20437. this.selectEva();
  20438. this.getCourseDetail();
  20439. this.selectCount();
  20440. this.getHomeWork();
  20441. this.selectUser();
  20442. this.getAIJ();
  20443. this.updateSplitScreenData(2);
  20444. this.splitScreenData.myUid = uuidv4();
  20445. this.contentDialog = true;
  20446. this.setContent2(true);
  20447. if (this.tType == 4) {
  20448. this.pzDialog = true;
  20449. this.selectPz();
  20450. }
  20451. // 获取评分列表
  20452. this.getScoreList()
  20453. document.scrollingElement.scrollTop = 0;
  20454. window.addEventListener("resize", () => {
  20455. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20456. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20457. if (this.showType == 2 || this.showType == 3) {
  20458. document.getElementsByClassName("navBox")[0].style.height =
  20459. a - 40 + 0+ "px";
  20460. } else {
  20461. document.getElementsByClassName("navBox")[0].style.height =
  20462. a - 40 + "px";
  20463. }
  20464. });
  20465. let _this = this;
  20466. setTimeout(() => {
  20467. // _this.vedioTime = [];
  20468. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20469. // _this.vedioTime[i] = document.getElementsByClassName(
  20470. // "vjs-duration-display"
  20471. // )[i].textContent;
  20472. // }
  20473. }, 1000);
  20474. },
  20475. };
  20476. </script>
  20477. <style scoped>
  20478. @media screen and (max-width: 1280px) {
  20479. /* .courseIndex > div:first-child(2) {
  20480. width: 15% !important;
  20481. } */
  20482. /* .navText {
  20483. width: 120px !important;
  20484. } */
  20485. .evaCss {
  20486. flex-direction: column !important;
  20487. align-items: center !important;
  20488. }
  20489. .elist_input {
  20490. width: 90% !important;
  20491. }
  20492. .dialog_diy1 >>> .el-dialog {
  20493. width: 100% !important;
  20494. }
  20495. .rightWidthCss {
  20496. width: 100% !important;
  20497. }
  20498. .dialog_diy3 >>> .el-dialog {
  20499. width: 100% !important;
  20500. }
  20501. .addToolCss {
  20502. right: 0 !important;
  20503. width: 100% !important;
  20504. min-width: unset !important;
  20505. }
  20506. }
  20507. .evaCssMax {
  20508. flex-direction: column !important;
  20509. align-items: center !important;
  20510. }
  20511. .dialog_diy >>> .el-dialog {
  20512. margin-top: 10vh !important;
  20513. }
  20514. .body_student {
  20515. width: 77%;
  20516. height: 100%;
  20517. position: absolute;
  20518. left: 22%;
  20519. top: 0;
  20520. }
  20521. .student_head {
  20522. width: 100%;
  20523. margin: 20px auto 0;
  20524. padding-bottom: 20px;
  20525. display: flex;
  20526. flex-direction: column;
  20527. flex-wrap: nowrap;
  20528. align-items: flex-start;
  20529. justify-content: flex-start;
  20530. }
  20531. .pb_left {
  20532. width: 20%;
  20533. margin-right: 10px;
  20534. background: rgb(255, 255, 255);
  20535. position: fixed;
  20536. height: calc(100% - 40px);
  20537. border-radius: 20px;
  20538. padding-bottom: 15px;
  20539. box-sizing: border-box;
  20540. }
  20541. .wheel > img,
  20542. .project > img,
  20543. .star > img,
  20544. .evaluate > img,
  20545. .up_photo > img,
  20546. .chapter_add > img,
  20547. .deleteWord > img,
  20548. .question > img,
  20549. .homework > img {
  20550. width: 100%;
  20551. height: 100%;
  20552. }
  20553. .upCover > img {
  20554. width: 131px;
  20555. height: 69px;
  20556. object-fit: cover;
  20557. }
  20558. .upCover {
  20559. width: calc(100% / 3.5);
  20560. position: relative;
  20561. margin: 0 15px 10px 0;
  20562. display: flex;
  20563. flex-direction: column;
  20564. flex-wrap: nowrap;
  20565. justify-content: center;
  20566. align-content: center;
  20567. align-items: center;
  20568. height: fit-content;
  20569. }
  20570. .upCover2 {
  20571. width: 100%;
  20572. position: relative;
  20573. margin: 0 15px 10px 0;
  20574. display: flex;
  20575. flex-direction: column;
  20576. flex-wrap: nowrap;
  20577. justify-content: center;
  20578. align-content: center;
  20579. align-items: center;
  20580. }
  20581. .upCover2 > img {
  20582. width: 100%;
  20583. height: 90px;
  20584. object-fit: contain;
  20585. }
  20586. .chapter_add {
  20587. width: 120px;
  20588. position: relative;
  20589. text-align: center;
  20590. }
  20591. .isAddThings {
  20592. margin-top: 20px;
  20593. position: relative;
  20594. text-align: center;
  20595. background: #f7f8fa;
  20596. height: 90px;
  20597. width: 90px;
  20598. display: flex;
  20599. flex-direction: column;
  20600. justify-content: center;
  20601. }
  20602. .deleteWord {
  20603. width: 22px;
  20604. height: 22px;
  20605. position: absolute;
  20606. right: -5px;
  20607. top: -5px;
  20608. cursor: pointer;
  20609. }
  20610. .box_course {
  20611. /* width: 60%; */
  20612. width: calc(100% - 300px);
  20613. }
  20614. .wheel {
  20615. width: 100%;
  20616. /* height: 100%; */
  20617. height: 650px;
  20618. }
  20619. .right_box {
  20620. display: flex;
  20621. flex-direction: column;
  20622. margin-left: 30px;
  20623. justify-content: space-around;
  20624. }
  20625. .right_box_title {
  20626. font-size: 23px;
  20627. }
  20628. .people {
  20629. display: flex;
  20630. }
  20631. .student_body {
  20632. width: 100%;
  20633. margin: 0 auto;
  20634. margin-top: 10px;
  20635. padding: 0 0 20px;
  20636. }
  20637. .study_top {
  20638. margin-top: 100px;
  20639. width: 100%;
  20640. height: auto;
  20641. padding-bottom: 20px;
  20642. }
  20643. .study_top .checkbox {
  20644. display: flex;
  20645. align-items: center;
  20646. padding: 15px 0 15px 30px;
  20647. flex: 0 0 auto;
  20648. font-weight: bold;
  20649. border-bottom: 1px solid #eee;
  20650. }
  20651. .study_top .check {
  20652. padding-bottom: 5px;
  20653. text-align: center;
  20654. cursor: pointer;
  20655. height: 30px;
  20656. box-sizing: border-box;
  20657. display: flex;
  20658. }
  20659. .study_top .checked {
  20660. border-bottom: 4px solid #3fc6a0;
  20661. padding-bottom: 5px;
  20662. color: #3fc6a0;
  20663. display: flex;
  20664. height: 35px;
  20665. }
  20666. .study_top .checked > div,
  20667. .study_top .check > div {
  20668. margin-right: 5px;
  20669. }
  20670. .videoTop {
  20671. display: flex;
  20672. flex-direction: row;
  20673. justify-content: space-between;
  20674. background: #fff;
  20675. align-items: center;
  20676. width: 95%;
  20677. padding: 20px;
  20678. }
  20679. .filebox {
  20680. display: flex;
  20681. flex-wrap: wrap;
  20682. flex-direction: column;
  20683. padding: 0 0 5px;
  20684. position: relative;
  20685. }
  20686. .filebox:before {
  20687. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20688. position: absolute;
  20689. top: 20px;
  20690. left: 13px;
  20691. border-left: 2px dotted #cad1dc;
  20692. height: calc(100% - 15px);
  20693. }
  20694. .toolHeng2 > div:last-child::before {
  20695. height: calc(100% - 43px);
  20696. }
  20697. .filebox .tooldetail {
  20698. width: calc(100%);
  20699. margin: 0px 12px;
  20700. padding: 12px;
  20701. line-height: 30px;
  20702. word-break: break-word;
  20703. background: #ffffff;
  20704. border-radius: 8px 8px 8px 8px;
  20705. opacity: 1;
  20706. border: 1px solid #cad1dc;
  20707. overflow:hidden;
  20708. box-sizing:border-box;
  20709. }
  20710. .file {
  20711. display: flex;
  20712. flex-direction: column;
  20713. align-items: center;
  20714. justify-content: center;
  20715. cursor: pointer;
  20716. width: 200px;
  20717. }
  20718. .file div {
  20719. margin-top: 10px;
  20720. width: 150px;
  20721. text-align: center;
  20722. overflow: hidden;
  20723. white-space: nowrap;
  20724. text-overflow: ellipsis;
  20725. }
  20726. .media {
  20727. display: flex;
  20728. flex-direction: column;
  20729. align-items: center;
  20730. justify-content: center;
  20731. margin: 0 20px 20px 0;
  20732. cursor: pointer;
  20733. margin: 12px 0 5px 15px;
  20734. overflow: hidden;
  20735. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20736. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20737. box-sizing: border-box;
  20738. }
  20739. .media img {
  20740. height: 90px;
  20741. width: 160px;
  20742. object-fit: cover;
  20743. }
  20744. .media .title {
  20745. padding: 5px;
  20746. text-align: left;
  20747. width: 100%;
  20748. box-sizing: border-box;
  20749. }
  20750. .media .btn {
  20751. width: 100%;
  20752. height: 35px;
  20753. line-height: 35px;
  20754. color: #fff;
  20755. background: #606060;
  20756. text-align: center;
  20757. overflow: hidden;
  20758. white-space: nowrap;
  20759. text-overflow: ellipsis;
  20760. }
  20761. .detail_content_top {
  20762. width: 100%;
  20763. padding: 25px 0 25px 0;
  20764. }
  20765. .detail_title {
  20766. text-align: center;
  20767. font-size: 24px;
  20768. }
  20769. .detail_time {
  20770. font-size: 13px;
  20771. padding: 15px 0 0 40px;
  20772. }
  20773. .detail_content {
  20774. line-height: 2pc;
  20775. width: 90%;
  20776. margin: 0 auto;
  20777. padding-top: 30px;
  20778. text-indent: 30px;
  20779. overflow: auto;
  20780. height: 200px;
  20781. }
  20782. .score_box >>> .el-rate {
  20783. margin-left: 10px;
  20784. }
  20785. .dialog_change >>> .el-dialog {
  20786. border-radius: 5px;
  20787. }
  20788. .dialog_change >>> .el-dialog__header {
  20789. background: #f2f2f2;
  20790. text-align: center;
  20791. }
  20792. .dialog_change >>> .el-dialog__title {
  20793. line-height: 5px;
  20794. }
  20795. .dialog_change >>> .el-dialog__body {
  20796. background: #fff;
  20797. padding: 10px 20px;
  20798. }
  20799. .score_box {
  20800. display: flex;
  20801. align-items: center;
  20802. margin-bottom: 18px;
  20803. margin-top: 20px;
  20804. }
  20805. .up_photo {
  20806. width: 120px;
  20807. cursor: pointer;
  20808. margin-top: 10px;
  20809. }
  20810. .up_photo2 {
  20811. width: 180px;
  20812. box-sizing: border-box;
  20813. min-width: 180px;
  20814. height: 180px;
  20815. max-height: 180px;
  20816. min-height: 180px;
  20817. cursor: pointer;
  20818. display: flex;
  20819. flex-direction: column;
  20820. align-items: center;
  20821. justify-content: center;
  20822. background: rgb(242, 246, 255);
  20823. /* padding: 25px; */
  20824. margin-bottom: 10px;
  20825. }
  20826. .up_photo2 img {
  20827. width: 50%;
  20828. height: auto;
  20829. }
  20830. .up_photo2 span {
  20831. color: #898989;
  20832. }
  20833. .plworkBox {
  20834. display: flex;
  20835. align-items: center;
  20836. margin-top: 10px;
  20837. flex-wrap: wrap;
  20838. }
  20839. .upload_send {
  20840. margin: 30px auto 30px;
  20841. width: 60%;
  20842. background: #3681fc;
  20843. text-align: center;
  20844. height: 35px;
  20845. line-height: 35px;
  20846. color: #fff;
  20847. border-radius: 5px;
  20848. cursor: pointer;
  20849. }
  20850. .marginT {
  20851. margin-top: 20px;
  20852. }
  20853. .cd_content_steps {
  20854. display: flex;
  20855. width: 90%;
  20856. justify-content: space-around;
  20857. border-top: 1px solid #eeeeee;
  20858. }
  20859. .cd_steps_box {
  20860. display: flex;
  20861. justify-content: center;
  20862. align-items: center;
  20863. flex-direction: column;
  20864. cursor: pointer;
  20865. }
  20866. .first {
  20867. display: flex;
  20868. align-items: center;
  20869. margin: 15px 0 20px 0;
  20870. font-size: 20px;
  20871. }
  20872. .first > div:nth-child(2) {
  20873. font-size: 16px !important;
  20874. padding-left: 10px;
  20875. line-height: 26px;
  20876. box-sizing: border-box;
  20877. }
  20878. .blue_box_one {
  20879. text-align: center;
  20880. color: #fff;
  20881. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20882. border-radius: 7px;
  20883. margin: 10px;
  20884. cursor: pointer;
  20885. width: 95%;
  20886. height: 45px;
  20887. display: flex;
  20888. flex-direction: row;
  20889. justify-content: flex-start;
  20890. align-items: center;
  20891. }
  20892. .blue_box_one > div:nth-child(1) {
  20893. line-height: 30px;
  20894. margin: 0 5px 0 10px;
  20895. width: 30%;
  20896. min-width: 70px;
  20897. border-radius: 4px;
  20898. }
  20899. .blue_box_one > div:nth-child(2) {
  20900. white-space: nowrap;
  20901. text-overflow: ellipsis;
  20902. overflow: hidden;
  20903. word-break: break-all;
  20904. width: 70%;
  20905. text-align: left;
  20906. margin-right: 10px;
  20907. max-width: calc(100% - 85px);
  20908. }
  20909. .blue_box_one > div:nth-child(2):hover {
  20910. overflow: hidden;
  20911. text-overflow: ellipsis;
  20912. white-space: nowrap;
  20913. cursor: pointer;
  20914. }
  20915. .upFile {
  20916. margin: 0 auto;
  20917. width: 120px;
  20918. background: #3681fc;
  20919. color: #fff;
  20920. height: 30px;
  20921. text-align: center;
  20922. line-height: 30px;
  20923. border-radius: 5px;
  20924. font-size: 14px;
  20925. cursor: pointer;
  20926. }
  20927. .courseTitle {
  20928. width: 85%;
  20929. margin: 10px auto 26px auto;
  20930. display: flex;
  20931. flex-direction: row;
  20932. align-items: center;
  20933. justify-content: space-between;
  20934. text-align: center;
  20935. }
  20936. .courseTitle .ctitle {
  20937. font-size: 20px;
  20938. font-weight: bold;
  20939. color: #0e1e33;
  20940. white-space: nowrap;
  20941. overflow: hidden;
  20942. text-overflow: ellipsis;
  20943. }
  20944. .inviteBox {
  20945. font-size: 14px;
  20946. /* margin-top: 5px; */
  20947. color: #00000099;
  20948. text-align: center;
  20949. }
  20950. .courseTitle >>> .el-tooltip {
  20951. width: 100%;
  20952. white-space: nowrap;
  20953. overflow: hidden;
  20954. text-overflow: ellipsis;
  20955. word-break: break-word;
  20956. }
  20957. .ml {
  20958. margin-left: 20px;
  20959. color: #5b7dba;
  20960. border-left: 3px solid #5b7dba;
  20961. padding-left: 5px;
  20962. font-weight: bold;
  20963. }
  20964. .return {
  20965. width: 2rem;
  20966. height: 2rem;
  20967. cursor: pointer;
  20968. }
  20969. .return > img {
  20970. width: 100%;
  20971. height: 100%;
  20972. }
  20973. .returnBtn {
  20974. width: 86px;
  20975. height: 36px;
  20976. background: #3681fc;
  20977. border-radius: 4px;
  20978. color: #fff;
  20979. text-align: center;
  20980. line-height: 36px;
  20981. margin-right: 20px;
  20982. cursor: pointer;
  20983. font-size: 14px;
  20984. font-weight: 400;
  20985. display: flex;
  20986. flex-direction: row;
  20987. flex-wrap: nowrap;
  20988. align-items: center;
  20989. justify-content: center;
  20990. }
  20991. .reBtnIcon,
  20992. .commentIcon,
  20993. .vedioIcon,
  20994. .vedioIcon1 {
  20995. /* width: 36px; */
  20996. height: 36px;
  20997. border-radius: 4px;
  20998. position: relative;
  20999. /* background: #e0eafb; */
  21000. background: #0061ff;
  21001. cursor: pointer;
  21002. margin-right: 12px;
  21003. display: flex;
  21004. align-items: center;
  21005. padding: 0 10px;
  21006. box-sizing: border-box;
  21007. font-size: 14px;
  21008. color: #fff;
  21009. }
  21010. .reBtnIcon::before,
  21011. .commentIcon::before,
  21012. .vedioIcon::before,
  21013. .vedioIcon1::before {
  21014. content: "";
  21015. display: block;
  21016. background-size: 100% 100%;
  21017. background-repeat: no-repeat;
  21018. width: 20px;
  21019. height: 20px;
  21020. margin-right: 5px;
  21021. /* position: absolute; */
  21022. /* top: 8px;
  21023. left: 8px; */
  21024. }
  21025. .vedioIcon1 {
  21026. background: #f63564;
  21027. }
  21028. .reBtnIcon::before {
  21029. background-image: url("../assets/icon/newIcons/refresh.png");
  21030. }
  21031. .commentIcon::before {
  21032. background-image: url("../assets/icon/newIcons/comment.png");
  21033. }
  21034. .vedioIcon::before {
  21035. background-image: url("../assets/icon/newIcons/transcribe.png");
  21036. }
  21037. .vedioIcon1::before {
  21038. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21039. background-image: url("../assets/icon/newIcons/transcribe.png");
  21040. }
  21041. .tool {
  21042. display: flex;
  21043. flex-direction: column;
  21044. flex-wrap: nowrap;
  21045. width: 13%;
  21046. margin: 0 30px;
  21047. align-items: center;
  21048. position: relative;
  21049. padding: 10px 25px;
  21050. cursor: pointer;
  21051. }
  21052. .whiteBIcon {
  21053. width: 150px;
  21054. }
  21055. .whiteBIcon > img {
  21056. width: 100%;
  21057. height: 100%;
  21058. }
  21059. .mask {
  21060. background-color: rgba(0, 0, 0, 0);
  21061. position: fixed;
  21062. top: 0;
  21063. left: 0;
  21064. width: 100%;
  21065. height: 100%;
  21066. z-index: 20000;
  21067. display: flex;
  21068. align-items: center;
  21069. justify-content: center;
  21070. }
  21071. .progressBox {
  21072. width: 500px;
  21073. height: 180px;
  21074. background: #fff;
  21075. border-radius: 10px;
  21076. box-shadow: 0 0 6px 1px #bfbfbf;
  21077. display: flex;
  21078. align-items: center;
  21079. justify-content: center;
  21080. flex-direction: column;
  21081. position: relative;
  21082. color: #6c6c6c;
  21083. }
  21084. .progressBox >>> .el-progress-bar__outer {
  21085. background-color: #d1dfff !important;
  21086. }
  21087. .progressBox .lbox {
  21088. height: 50px;
  21089. font-size: 19px;
  21090. display: flex;
  21091. align-items: center;
  21092. color: #747474;
  21093. }
  21094. .progressBox .lbox img {
  21095. width: 40px;
  21096. margin-right: 20px;
  21097. }
  21098. .closeCss {
  21099. position: absolute;
  21100. top: 8px;
  21101. right: 8px;
  21102. cursor: pointer;
  21103. width: 20px;
  21104. height: 20px;
  21105. }
  21106. .closeCss > img {
  21107. width: 100%;
  21108. height: 100%;
  21109. }
  21110. .uploadVedio {
  21111. display: flex;
  21112. flex-direction: column;
  21113. flex-wrap: nowrap;
  21114. justify-content: center;
  21115. align-items: center;
  21116. margin: 0 15px 10px 0;
  21117. }
  21118. .uploadVedio > img {
  21119. width: 30px;
  21120. height: 30px;
  21121. }
  21122. .uploadVedio > span {
  21123. white-space: nowrap;
  21124. overflow: hidden;
  21125. text-overflow: ellipsis;
  21126. width: 75px;
  21127. margin-top: 7px;
  21128. }
  21129. .picName {
  21130. white-space: nowrap;
  21131. overflow: hidden;
  21132. text-overflow: ellipsis;
  21133. width: 75px;
  21134. margin-top: 7px;
  21135. }
  21136. .new_top {
  21137. display: flex;
  21138. background: #fff;
  21139. flex-direction: row;
  21140. justify-content: flex-start;
  21141. align-items: center;
  21142. height: 60px;
  21143. position: fixed;
  21144. top: 20px;
  21145. left: 22%;
  21146. width: 77%;
  21147. z-index: 999;
  21148. border-radius: 12px 12px 0 0;
  21149. border-bottom: 1px solid #cad1dc;
  21150. padding: 10px 0;
  21151. }
  21152. .new_topFixed {
  21153. width: 100%;
  21154. height: 40px;
  21155. position: fixed;
  21156. top: 0px;
  21157. display: block;
  21158. background: #f2f2f2;
  21159. z-index: 998;
  21160. }
  21161. .before {
  21162. position: absolute;
  21163. background: #c3dad4;
  21164. width: 6px;
  21165. height: 100%;
  21166. }
  21167. .courseIndex {
  21168. display: flex;
  21169. flex-direction: row;
  21170. align-items: center;
  21171. width: calc(100% - 745px);
  21172. }
  21173. .courseIndex > div:nth-child(1) {
  21174. margin: 0 0 0 10px;
  21175. font-size: 20px;
  21176. min-width: 100px;
  21177. font-weight: bold;
  21178. border-left: 4px solid #3363b9;
  21179. height: 32px;
  21180. text-align: center;
  21181. line-height: 35px;
  21182. }
  21183. .courseIndex > div:nth-child(2) {
  21184. font-size: 20px;
  21185. /* width: 300px; */
  21186. max-width: calc(100% - 105px);
  21187. white-space: nowrap;
  21188. overflow: hidden;
  21189. text-overflow: ellipsis;
  21190. }
  21191. .courseIndex > div:nth-child(3) {
  21192. border-bottom: 1px solid #d7d7d7;
  21193. padding-bottom: 5px;
  21194. background: #3681fc;
  21195. width: 55px;
  21196. min-width: 55px;
  21197. border-radius: 5px;
  21198. color: #fff;
  21199. text-align: center;
  21200. height: 20px;
  21201. line-height: 26px;
  21202. font-size: 14px;
  21203. margin: 0 0 0 10px;
  21204. }
  21205. .course_text {
  21206. padding: 20px 0 0 15px;
  21207. text-indent: 30px;
  21208. width: 80%;
  21209. min-height: 20px;
  21210. }
  21211. .vedioList {
  21212. background: #f2f2f2;
  21213. border: 1px solid #ececec;
  21214. /* width: 38.8%; */
  21215. /* width: 300px; */
  21216. width: 100%;
  21217. height: 445px;
  21218. border-radius: 10px;
  21219. overflow: hidden;
  21220. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21221. }
  21222. .vedioNav {
  21223. margin: 10px 0 0 15px;
  21224. border-bottom: 1px solid #d7d7d7;
  21225. padding-bottom: 5px;
  21226. background: #3681fc;
  21227. width: 55px;
  21228. min-width: 55px;
  21229. border-radius: 5px;
  21230. color: #fff;
  21231. text-align: center;
  21232. height: 20px;
  21233. line-height: 26px;
  21234. font-size: 14px;
  21235. }
  21236. .queTop {
  21237. display: flex;
  21238. padding: 20px 0 20px 30px;
  21239. width: 100%;
  21240. flex-direction: row;
  21241. justify-content: flex-start;
  21242. align-items: center;
  21243. box-sizing: border-box;
  21244. }
  21245. .queTopTitle {
  21246. display: flex;
  21247. flex-direction: row;
  21248. flex-wrap: nowrap;
  21249. align-items: center;
  21250. font-weight: bold;
  21251. font-size: 20px;
  21252. color: rgb(14, 30, 51);
  21253. }
  21254. .queTopTitle::before {
  21255. content: "";
  21256. width: 2px;
  21257. height: 22px;
  21258. background: #3681fc;
  21259. border-radius: 3px;
  21260. display: block;
  21261. margin: 2px 6px 0 0;
  21262. }
  21263. .queTopRight {
  21264. display: flex;
  21265. flex-direction: row;
  21266. flex-wrap: nowrap;
  21267. align-items: center;
  21268. }
  21269. .queTopClose {
  21270. margin-right: 20px;
  21271. cursor: pointer;
  21272. position: relative;
  21273. display: flex;
  21274. }
  21275. .closeImg,
  21276. .openImg {
  21277. width: 25px;
  21278. height: 25px;
  21279. position: absolute;
  21280. left: -20px;
  21281. top: -1px;
  21282. }
  21283. .closeImg > img,
  21284. .openImg > img {
  21285. width: 100%;
  21286. height: 100%;
  21287. }
  21288. .question {
  21289. width: 40px;
  21290. margin-right: 10px;
  21291. margin-top: 7px;
  21292. }
  21293. .queTitle {
  21294. margin-left: 5px;
  21295. font-size: 25px;
  21296. display: flex;
  21297. align-items: center;
  21298. }
  21299. .addEditor {
  21300. width: 100px;
  21301. height: 30px;
  21302. background: #42cda6;
  21303. color: #fff;
  21304. border-radius: 5px;
  21305. text-align: center;
  21306. line-height: 30px;
  21307. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21308. cursor: pointer;
  21309. }
  21310. /* .vedioName {
  21311. cursor: pointer;
  21312. margin: 0px 0px 10px 5px;
  21313. white-space: nowrap;
  21314. overflow: hidden;
  21315. text-overflow: ellipsis;
  21316. width: 100%;
  21317. } */
  21318. .vedioTime {
  21319. width: 35px;
  21320. position: absolute;
  21321. color: #fff;
  21322. bottom: 0px;
  21323. right: 0px;
  21324. text-align: center;
  21325. background: #46411f;
  21326. height: 20px;
  21327. font-size: 14px;
  21328. line-height: 20px;
  21329. }
  21330. .homework {
  21331. width: 200px;
  21332. display: flex;
  21333. flex-direction: column;
  21334. flex-wrap: nowrap;
  21335. align-items: center;
  21336. cursor: pointer;
  21337. }
  21338. .homebox {
  21339. display: flex;
  21340. flex-wrap: wrap;
  21341. flex-direction: row;
  21342. justify-content: flex-start;
  21343. align-items: center;
  21344. padding: 15px 0;
  21345. }
  21346. .isChooseActive {
  21347. color: #3681fc !important;
  21348. font-weight: bold !important;
  21349. }
  21350. .chooseWho {
  21351. display: flex;
  21352. width: 100%;
  21353. flex-direction: row;
  21354. flex-wrap: nowrap;
  21355. justify-content: flex-start;
  21356. padding-bottom: 10px;
  21357. }
  21358. .chooseWho > div {
  21359. cursor: pointer;
  21360. padding-bottom: 10px;
  21361. margin: 0 30px 0 0;
  21362. font-weight: 400;
  21363. color: #0e1e33;
  21364. }
  21365. .addPoint > div > img {
  21366. cursor: pointer;
  21367. width: 85px;
  21368. border-radius: 15px;
  21369. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21370. }
  21371. .addPoint > div {
  21372. display: flex;
  21373. flex-direction: column;
  21374. flex-wrap: nowrap;
  21375. align-items: center;
  21376. }
  21377. .isBorder > div {
  21378. margin: 0 0 10px 0;
  21379. align-items: flex-start !important;
  21380. }
  21381. .noiframeBox {
  21382. display: flex;
  21383. flex-wrap: wrap;
  21384. }
  21385. .iframeBox iframe {
  21386. width: 100%;
  21387. height: 800px;
  21388. border: none;
  21389. margin-bottom: 20px;
  21390. border: 1px solid #ccc;
  21391. }
  21392. .upload_toolBtn {
  21393. background: #3681fc;
  21394. color: #fff;
  21395. width: 110px;
  21396. text-align: center;
  21397. height: 35px;
  21398. line-height: 35px;
  21399. font-size: 14px;
  21400. border-radius: 5px;
  21401. cursor: pointer;
  21402. position: absolute;
  21403. right: 10px;
  21404. bottom: 0;
  21405. }
  21406. .binfo_input,
  21407. .pj {
  21408. font: inherit;
  21409. color: currentColor;
  21410. width: 100%;
  21411. margin: 0;
  21412. padding: 15px 14px;
  21413. display: block;
  21414. min-width: 0;
  21415. outline: none;
  21416. box-sizing: content-box;
  21417. background: none;
  21418. -webkit-tap-highlight-color: transparent;
  21419. border: 1px solid rgba(0, 0, 0, 0.23);
  21420. border-radius: 4px;
  21421. box-sizing: border-box;
  21422. resize: none;
  21423. }
  21424. .binfo_input:focus-visible {
  21425. border: 1px solid rgba(61, 103, 188);
  21426. }
  21427. .dialog_diy >>> .el-dialog__header,
  21428. .dialog_diy1 >>> .el-dialog__header {
  21429. background: #454545 !important;
  21430. padding: 15px 20px;
  21431. }
  21432. .dialog_diy >>> .el-dialog__title,
  21433. .dialog_diy1 >>> .el-dialog__title {
  21434. color: #fff;
  21435. }
  21436. .dialog_diy >>> .el-dialog__headerbtn,
  21437. .dialog_diy1 >>> .el-dialog__headerbtn {
  21438. top: 19px;
  21439. }
  21440. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21441. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21442. color: #fff;
  21443. }
  21444. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21445. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21446. color: #fff;
  21447. }
  21448. .dialog_diy1 >>> .el-dialog__body {
  21449. padding: 0;
  21450. }
  21451. .dialog_diy >>> .el-dialog__body,
  21452. .dialog_diy >>> .el-dialog__footer,
  21453. .dialog_diy1 >>> .el-dialog__footer {
  21454. background: #fafafa;
  21455. }
  21456. .a_addBox {
  21457. padding: 0 0 0 15px;
  21458. }
  21459. .a_add_box {
  21460. padding: 10px;
  21461. background: #fff;
  21462. margin-bottom: 10px;
  21463. border-radius: 5px;
  21464. box-shadow: 0 0 5px 0 #d5d5d5;
  21465. }
  21466. .a_add_head {
  21467. display: flex;
  21468. align-items: flex-start;
  21469. /* justify-content: space-between; */
  21470. flex-direction: column;
  21471. /* flex-direction: row; */
  21472. margin: 10px 0 20px 0;
  21473. font-size: 18px;
  21474. width: 100%;
  21475. }
  21476. .askIndex {
  21477. background: #3681fc;
  21478. border-radius: 50%;
  21479. color: #fff;
  21480. width: 25px;
  21481. height: 25px;
  21482. min-width: 25px;
  21483. min-height: 25px;
  21484. text-align: center;
  21485. line-height: 25px;
  21486. margin-right: 5px;
  21487. }
  21488. .a_add_head .a_add_head_input {
  21489. width: 300px;
  21490. }
  21491. .a_add_head .a_add_head_div {
  21492. display: flex;
  21493. align-items: center;
  21494. justify-content: space-between;
  21495. }
  21496. .a_add_body {
  21497. display: flex;
  21498. align-items: center;
  21499. }
  21500. .a_add_input {
  21501. display: flex;
  21502. align-items: center;
  21503. flex-wrap: wrap;
  21504. width: 100%;
  21505. }
  21506. .a_add_input >>> .el-radio-group,
  21507. .a_add_input >>> .el-checkbox-group {
  21508. width: 100%;
  21509. }
  21510. .a_add_input >>> .el-radio,
  21511. .a_add_input >>> .el-checkbox {
  21512. display: flex;
  21513. flex-direction: row;
  21514. flex-wrap: nowrap;
  21515. align-items: center;
  21516. padding: 15px 0;
  21517. }
  21518. .a_add_input >>> .el-radio:not(:last-child),
  21519. .a_add_input >>> .el-checkbox:not(:last-child) {
  21520. width: 100%;
  21521. border-bottom: 1px solid #efefef;
  21522. }
  21523. .redioStyle >>> .el-radio__label {
  21524. font-size: 18px;
  21525. }
  21526. .redioStyle >>> .el-radio__label > span,
  21527. .redioStyle >>> .el-checkbox__label > span {
  21528. word-break: break-all;
  21529. white-space: normal;
  21530. }
  21531. .redioStyle >>> .el-checkbox__label {
  21532. font-size: 18px;
  21533. }
  21534. .toolHeng2 {
  21535. width: 100%;
  21536. padding-left: 15px;
  21537. box-sizing: border-box;
  21538. }
  21539. .workNav {
  21540. font-size: 20px;
  21541. font-weight: bold;
  21542. color: #0e1e33;
  21543. display: flex;
  21544. flex-direction: row;
  21545. flex-wrap: nowrap;
  21546. align-items: center;
  21547. padding: 15px 0 15px 0;
  21548. }
  21549. .workNav::before {
  21550. content: "";
  21551. width: 2px;
  21552. height: 22px;
  21553. background: #3681fc;
  21554. border-radius: 3px;
  21555. display: block;
  21556. margin: 2px 6px 0 0;
  21557. }
  21558. .toolHeng {
  21559. display: flex;
  21560. flex-direction: row;
  21561. flex-wrap: wrap;
  21562. justify-content: flex-start;
  21563. align-items: center;
  21564. width: 100%;
  21565. }
  21566. .toolHeng > div {
  21567. padding-left: 20px;
  21568. }
  21569. .isWidth {
  21570. width: 20%;
  21571. }
  21572. .textTitle {
  21573. display: flex;
  21574. flex-direction: row;
  21575. flex-wrap: nowrap;
  21576. align-items: center;
  21577. width: 95%;
  21578. }
  21579. .textTitle >>> .el-form-item__label {
  21580. font-size: 22px;
  21581. color: #918f8f;
  21582. width: 100px;
  21583. }
  21584. .textTitle >>> .el-form-item__content {
  21585. width: calc(100% - 100px);
  21586. }
  21587. .textCss >>> .el-dialog {
  21588. width: 800px !important;
  21589. height: 400px;
  21590. background: #fafafa;
  21591. }
  21592. .textCss >>> .el-dialog__body {
  21593. margin: 55px 8% 0 8%;
  21594. padding: 0 !important;
  21595. }
  21596. .textCss >>> .el-dialog__footer {
  21597. padding-top: 38px;
  21598. }
  21599. .toolsCss >>> .el-dialog__body {
  21600. padding: 20px;
  21601. }
  21602. .lineCss >>> .el-dialog__body {
  21603. display: flex;
  21604. flex-direction: row;
  21605. align-items: center;
  21606. justify-content: center;
  21607. }
  21608. .newNav {
  21609. display: flex;
  21610. flex-direction: row;
  21611. align-items: baseline;
  21612. justify-content: flex-start;
  21613. }
  21614. .navListItem {
  21615. width: calc(100% - 20px);
  21616. height: 50px;
  21617. margin: 0px auto 10px;
  21618. display: flex;
  21619. flex-direction: row;
  21620. flex-wrap: nowrap;
  21621. align-items: center;
  21622. justify-content: space-between;
  21623. background: #f0f4fa;
  21624. border-radius: 6px 6px 6px 6px;
  21625. }
  21626. .navText {
  21627. cursor: pointer;
  21628. white-space: nowrap;
  21629. overflow: hidden;
  21630. text-overflow: ellipsis;
  21631. width: 220px;
  21632. padding: 0 10px;
  21633. font-weight: 400;
  21634. color: #0e1e33;
  21635. }
  21636. .downIcon {
  21637. width: 20px;
  21638. min-width: 20px;
  21639. height: 20px;
  21640. margin-right: 15px;
  21641. cursor: pointer;
  21642. }
  21643. .downIcon > img {
  21644. width: 100%;
  21645. height: 100%;
  21646. }
  21647. .noVedio {
  21648. display: flex;
  21649. flex-direction: row;
  21650. justify-content: center;
  21651. align-content: center;
  21652. }
  21653. .noNavText {
  21654. cursor: pointer;
  21655. margin: 0px 0px 10px 5px;
  21656. width: 112px;
  21657. }
  21658. .listNoVedio {
  21659. margin: 0 0 0 30px;
  21660. width: 97%;
  21661. }
  21662. .video-player >>> .video-js {
  21663. height: 100%;
  21664. }
  21665. .hangVedioList {
  21666. width: 90% !important;
  21667. height: 150px !important;
  21668. margin: 20px 0 0 30px;
  21669. }
  21670. .hangVedio {
  21671. width: 100%;
  21672. height: 170px !important;
  21673. align-items: flex-start !important;
  21674. }
  21675. .hangHand {
  21676. height: 150px !important;
  21677. }
  21678. .twoChild {
  21679. width: 95%;
  21680. margin: 10px;
  21681. border-radius: 5px;
  21682. background: #f2f2f2;
  21683. display: flex;
  21684. flex-direction: column;
  21685. flex-wrap: nowrap;
  21686. justify-content: flex-start;
  21687. align-items: flex-start;
  21688. transition: all 0.5s;
  21689. overflow: hidden;
  21690. height: 0;
  21691. background: #e7f3ff;
  21692. }
  21693. .twoChild > div:nth-child(1) {
  21694. margin-top: 5px;
  21695. }
  21696. .navChild {
  21697. width: 100%;
  21698. cursor: pointer;
  21699. margin-bottom: 10px;
  21700. position: relative;
  21701. }
  21702. .navChild img {
  21703. position: absolute;
  21704. right: 11px;
  21705. width: 15px;
  21706. top: 50%;
  21707. transform: translateY(-50%);
  21708. }
  21709. .navActive,
  21710. .toolActive {
  21711. height: auto !important;
  21712. overflow: auto !important;
  21713. /* padding-bottom: 16px; */
  21714. }
  21715. .toolActive {
  21716. padding: 0;
  21717. }
  21718. .navTask {
  21719. display: flex;
  21720. flex-direction: row;
  21721. flex-wrap: nowrap;
  21722. align-items: center;
  21723. align-content: flex-start;
  21724. height: 40px;
  21725. justify-content: flex-start;
  21726. padding: 0 10px;
  21727. width: 100%;
  21728. box-sizing: border-box;
  21729. }
  21730. .navTaskname {
  21731. white-space: nowrap;
  21732. text-overflow: ellipsis;
  21733. overflow: hidden;
  21734. word-break: break-all;
  21735. padding-left: 5px;
  21736. }
  21737. .openTaskActive {
  21738. /* background-color: #e0eafb !important;
  21739. color: #0061ff; */
  21740. color:#fff;
  21741. background: rgb(55, 129, 252) !important;
  21742. }
  21743. .iframeName {
  21744. margin: 5px 0;
  21745. border-left: 4px solid #41c4a4;
  21746. padding-left: 4px;
  21747. }
  21748. .toolTitle {
  21749. margin: 0px 0px 20px;
  21750. font-size: 20px;
  21751. font-weight: 500;
  21752. border-left: 4px solid #41c4a4;
  21753. padding-left: 4px;
  21754. }
  21755. .cru_selectBox {
  21756. overflow: auto;
  21757. width: 95%;
  21758. margin: 17px auto 0;
  21759. height: calc(100% - 40px - 21px - 20px - 17px);
  21760. background: #fff;
  21761. border-radius: 8px;
  21762. }
  21763. .cru_selectBox::-webkit-scrollbar,
  21764. .study_top::-webkit-scrollbar,
  21765. .textContent::-webkit-scrollbar {
  21766. /*滚动条整体样式*/
  21767. width: 6px;
  21768. /*高宽分别对应横竖滚动条的尺寸*/
  21769. height: 6px;
  21770. }
  21771. /*定义滚动条轨道 内阴影+圆角*/
  21772. .cru_selectBox::-webkit-scrollbar-track,
  21773. .study_top::-webkit-scrollbar-track,
  21774. .textContent::-webkit-scrollbar {
  21775. border-radius: 10px;
  21776. background-color: #b8bdc9;
  21777. }
  21778. /*定义滑块 内阴影+圆角*/
  21779. .cru_selectBox::-webkit-scrollbar-thumb,
  21780. .study_top::-webkit-scrollbar-thumb,
  21781. .textContent::-webkit-scrollbar-thumb {
  21782. border-radius: 10px;
  21783. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21784. background-color: #2c5ab3;
  21785. }
  21786. .vedioBox {
  21787. border-radius: 0 0 20px 20px;
  21788. background: #fff;
  21789. overflow: auto;
  21790. }
  21791. .taskBox {
  21792. width: 98%;
  21793. background: #f0f4fa;
  21794. margin: 10px auto;
  21795. padding: 0 10px;
  21796. border-radius: 4px;
  21797. box-sizing: border-box;
  21798. }
  21799. .vedioTaskBox {
  21800. width: 100%;
  21801. display: flex;
  21802. flex-direction: row;
  21803. flex-wrap: nowrap;
  21804. align-items: flex-start;
  21805. position: relative;
  21806. }
  21807. .toolBox {
  21808. margin: 15px 0 0 25px;
  21809. display: flex;
  21810. position: relative;
  21811. padding: 18px 20px;
  21812. border-top-left-radius: 5px;
  21813. border-top-right-radius: 5px;
  21814. width: 90%;
  21815. }
  21816. .btnAll {
  21817. position: absolute;
  21818. right: 0;
  21819. display: flex;
  21820. flex-direction: row;
  21821. flex-wrap: nowrap;
  21822. align-items: center;
  21823. }
  21824. .btnLeft,
  21825. .btnRight {
  21826. display: flex;
  21827. flex-direction: row;
  21828. flex-wrap: nowrap;
  21829. align-items: center;
  21830. padding: 5px 0;
  21831. }
  21832. .btnLeft {
  21833. border-right: 1px solid #cad1dc;
  21834. }
  21835. .btnLeft > .custom-tooltip {
  21836. background: #3681fc;
  21837. color: #fff;
  21838. }
  21839. .last:hover {
  21840. background: #3383fa !important;
  21841. color: #fff;
  21842. border: 1px solid #3383fa !important;
  21843. }
  21844. .last,
  21845. .returnBtn1 {
  21846. width: 90px;
  21847. height: 36px;
  21848. background: #ffffff;
  21849. border-radius: 4px;
  21850. border: 1px solid #0061ff;
  21851. color: #0061ff;
  21852. cursor: pointer;
  21853. display: flex;
  21854. flex-direction: row;
  21855. flex-wrap: nowrap;
  21856. align-items: center;
  21857. justify-content: center;
  21858. margin-left: 12px;
  21859. }
  21860. .returnBtn1 {
  21861. background: #f0f4fa;
  21862. border-radius: 4px;
  21863. border: 1px solid #cad1dc;
  21864. margin: 0 12px;
  21865. }
  21866. .lastImg {
  21867. min-width: 15px;
  21868. width: 15px;
  21869. height: 15px;
  21870. display: flex;
  21871. }
  21872. .lastText {
  21873. padding: 0 5px 0 5px;
  21874. box-sizing: border-box;
  21875. font-size: 14px;
  21876. }
  21877. .lastImg > img {
  21878. width: 100%;
  21879. height: 100%;
  21880. }
  21881. /* .vedioTimeBox {
  21882. display: flex;
  21883. flex-direction: row;
  21884. align-items: center;
  21885. flex-wrap: nowrap;
  21886. position: relative;
  21887. } */
  21888. .navBox {
  21889. background: #fff;
  21890. height: calc(100% - 40px);
  21891. overflow-y: auto;
  21892. overflow-x: hidden;
  21893. }
  21894. .worksBox {
  21895. margin: 0 0 10px 25px;
  21896. border-bottom: 1px solid #eeeeee;
  21897. padding: 18px 20px;
  21898. border-radius: 4px;
  21899. width: 90%;
  21900. }
  21901. .worksBTitle {
  21902. font-size: 20px;
  21903. padding-bottom: 15px;
  21904. border-bottom: 1px solid #eeeeee;
  21905. display: flex;
  21906. align-items: center;
  21907. }
  21908. .greenBox {
  21909. width: 5px;
  21910. height: 30px;
  21911. background: #63b6fa;
  21912. margin-right: 5px;
  21913. }
  21914. .worksDetailBox {
  21915. display: flex;
  21916. width: 100%;
  21917. flex-direction: row;
  21918. flex-wrap: wrap;
  21919. align-items: flex-end;
  21920. justify-content: flex-start;
  21921. padding: 15px 5px;
  21922. box-sizing: border-box;
  21923. }
  21924. .works {
  21925. display: flex;
  21926. flex-direction: column;
  21927. flex-wrap: nowrap;
  21928. align-items: flex-start;
  21929. justify-content: flex-start;
  21930. align-content: center;
  21931. max-width: 240px;
  21932. width: calc(100% / 3 - 10px);
  21933. height: auto;
  21934. margin-right: 10px;
  21935. margin-bottom: 10px;
  21936. overflow: hidden;
  21937. height: 140px;
  21938. box-shadow: 0 0 6px 1px #dfdada;
  21939. border-radius: 15px;
  21940. }
  21941. .workImg {
  21942. width: 100%;
  21943. /* height: calc(100% - 40px); */
  21944. height: 105px;
  21945. position: relative;
  21946. }
  21947. .workImg > img {
  21948. width: 100%;
  21949. height: 100%;
  21950. object-fit: contain;
  21951. cursor: pointer;
  21952. }
  21953. .worksName {
  21954. height: 40px;
  21955. line-height: 40px;
  21956. display: flex;
  21957. width: 100%;
  21958. flex-direction: row;
  21959. flex-wrap: nowrap;
  21960. justify-content: space-between;
  21961. align-items: center;
  21962. margin: 0 0 0 10px;
  21963. }
  21964. .worksName > div:nth-child(1) {
  21965. width: 110px;
  21966. white-space: nowrap;
  21967. overflow: hidden;
  21968. text-overflow: ellipsis;
  21969. }
  21970. .worksName > div:nth-child(2) {
  21971. color: #b7b4b5;
  21972. }
  21973. .noWorksS {
  21974. padding: 15px 0;
  21975. display: flex;
  21976. flex-direction: row;
  21977. flex-wrap: wrap;
  21978. align-items: center;
  21979. justify-content: flex-start;
  21980. }
  21981. .noWorksName,
  21982. .isWorksName,
  21983. .isWorksName2 {
  21984. background: #ddebf8;
  21985. color: #000;
  21986. width: 90px;
  21987. height: 25px;
  21988. text-align: center;
  21989. line-height: 25px;
  21990. border-radius: 4px;
  21991. margin: 10px 15px 10px 0;
  21992. white-space: nowrap;
  21993. overflow: hidden;
  21994. padding: 5px;
  21995. text-overflow: ellipsis;
  21996. cursor: pointer;
  21997. border: 1px solid #ddebf8;
  21998. }
  21999. .noWorksName {
  22000. background: #fff;
  22001. color: #0061ff;
  22002. border: 1px solid #0061ff;
  22003. }
  22004. .noWorksName > span{
  22005. max-width: 100%;
  22006. display: block;
  22007. overflow: hidden;
  22008. text-overflow: ellipsis;
  22009. white-space: nowrap;
  22010. }
  22011. .isWorksName2 {
  22012. width: 100px;
  22013. height: 40px;
  22014. line-height: 40px;
  22015. position: relative;
  22016. background: #dae6f9;
  22017. }
  22018. .isWorksName {
  22019. background: #e7ebf1 !important;
  22020. width: 100px;
  22021. height: 40px;
  22022. line-height: 40px;
  22023. position: relative;
  22024. color: #acb4bf;
  22025. border: 1px solid #cad1dc !important;
  22026. }
  22027. .isSelectName,
  22028. .noWorksName:hover {
  22029. background: #3383fa !important;
  22030. color: #fff !important;
  22031. border: 1px solid #3383fa !important;
  22032. }
  22033. .title {
  22034. background: #1e5cc9;
  22035. /* width: 98%; */
  22036. height: 45px;
  22037. color: #fff;
  22038. line-height: 45px;
  22039. padding-left: 20px;
  22040. box-sizing: border-box;
  22041. }
  22042. .textBox {
  22043. font-size: 20px;
  22044. width: 90%;
  22045. display: flex;
  22046. flex-direction: column;
  22047. align-items: center;
  22048. margin: 20px auto 0;
  22049. max-height: calc(100% - 75px);
  22050. overflow: auto;
  22051. }
  22052. .textContent {
  22053. font-size: 18px;
  22054. width: 95%;
  22055. max-width: 95%;
  22056. }
  22057. .answerBg {
  22058. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22059. background-size: 100% 100%;
  22060. width: 100%;
  22061. height: 100%;
  22062. color: #fff;
  22063. text-align: center;
  22064. display: flex;
  22065. flex-direction: column;
  22066. flex-wrap: nowrap;
  22067. align-items: center;
  22068. position: relative;
  22069. justify-content: center;
  22070. }
  22071. .answerBg > div:nth-child(1) {
  22072. /* font-size: 22px;
  22073. padding: 25px 0 10px; */
  22074. }
  22075. .answerContent {
  22076. width: 215px;
  22077. max-height: 60px;
  22078. word-break: break-all;
  22079. text-align: center;
  22080. /* white-space: nowrap; */
  22081. overflow: hidden;
  22082. text-overflow: ellipsis;
  22083. /* padding: 23px 0 0; */
  22084. -webkit-line-clamp: 3;
  22085. -webkit-box-orient: vertical;
  22086. display: -webkit-box;
  22087. font-size: 15px;
  22088. cursor: pointer;
  22089. }
  22090. .elist_input_box {
  22091. display: flex;
  22092. align-items: flex-start;
  22093. flex-wrap: nowrap;
  22094. padding: 10px 0 15px 30px;
  22095. flex-direction: column;
  22096. }
  22097. .elist_input {
  22098. /* width: 40%; */
  22099. width: 45%;
  22100. margin: 20px;
  22101. }
  22102. .elist_input .elist_input_box input {
  22103. font: inherit;
  22104. color: currentColor;
  22105. width: 200px;
  22106. padding: 8px 14px;
  22107. display: block;
  22108. min-width: 0;
  22109. outline: none;
  22110. border: 1px solid rgba(0, 0, 0, 0.23);
  22111. border-radius: 4px;
  22112. box-sizing: border-box;
  22113. background: #fff;
  22114. margin: 0 20px 0 0;
  22115. }
  22116. .elist_input .elist_input_box span {
  22117. height: 36px;
  22118. line-height: 36px;
  22119. color: rgb(82, 82, 82);
  22120. }
  22121. .elist_input .elist_input_box .remove {
  22122. height: 20px;
  22123. width: 20px;
  22124. background-size: 100% 100%;
  22125. background-position: unset;
  22126. margin-left: 5px;
  22127. }
  22128. .elist_input_box >>> .el-rate {
  22129. display: flex;
  22130. height: 36px;
  22131. align-items: center;
  22132. }
  22133. .elist_input_box .elist_inptu_text {
  22134. min-height: 50px;
  22135. /* width: 500px;
  22136. max-height: 150px; */
  22137. width: 100%;
  22138. line-height: 50px;
  22139. color: rgb(82, 82, 82);
  22140. overflow: auto;
  22141. text-indent: 5px;
  22142. background: #f7f6f9;
  22143. border-radius: 10px;
  22144. }
  22145. .elist_input_box .elist_inptu_text input {
  22146. width: 500px;
  22147. }
  22148. .elist_input_box >>> .el-rate__icon {
  22149. font-size: 24px;
  22150. }
  22151. .isClick {
  22152. background: #4d9def;
  22153. }
  22154. .bzBox {
  22155. display: flex;
  22156. flex-direction: row;
  22157. align-items: center;
  22158. }
  22159. .bzBox .yCss {
  22160. width: 7px;
  22161. height: 7px;
  22162. background: #fff;
  22163. margin: 0 16px 0 6px;
  22164. border-radius: 50%;
  22165. border: 5px solid #3681fc;
  22166. z-index: 99;
  22167. }
  22168. .bzBox > div:nth-child(2) {
  22169. font-size: 18px;
  22170. font-weight: bold;
  22171. color: #0e1e33;
  22172. }
  22173. .navTitile {
  22174. padding: 0 0px 0 15px;
  22175. font-size: 16px;
  22176. font-weight: bold;
  22177. color: #0e1e33;
  22178. height: 40px;
  22179. line-height: 40px;
  22180. }
  22181. .isTypeOne {
  22182. width: 240px;
  22183. height: 170px;
  22184. /* border: 1px solid #f8f8f8; */
  22185. border-radius: 10px;
  22186. box-shadow: 0 0 6px 1px #dfdada;
  22187. }
  22188. .e_add_top {
  22189. display: flex;
  22190. justify-content: space-between;
  22191. padding: 10px 20px;
  22192. border-radius: 3px;
  22193. background: #fff;
  22194. }
  22195. .e_add_title2 {
  22196. display: flex;
  22197. align-items: center;
  22198. }
  22199. .e_add_title2 span {
  22200. width: 40px;
  22201. }
  22202. .e_add_title {
  22203. display: flex;
  22204. align-items: center;
  22205. color: #b8b8b8;
  22206. font-size: 18px;
  22207. position: relative;
  22208. height: 40px;
  22209. width: 100%;
  22210. }
  22211. .e_add_title span {
  22212. margin-right: 10px;
  22213. }
  22214. .e_add_title .el_input {
  22215. width: 300px;
  22216. }
  22217. .e_add_title >>> .el-input__inner {
  22218. width: 400px;
  22219. }
  22220. .e_add_btn {
  22221. }
  22222. .e_add_content {
  22223. display: flex;
  22224. width: 100%;
  22225. max-width: 650px;
  22226. height: 550px;
  22227. }
  22228. .e_add_list {
  22229. background: #fff;
  22230. height: 500px;
  22231. width: 210px;
  22232. position: relative;
  22233. margin: 15px 5px 0 0;
  22234. flex-shrink: 0;
  22235. display: flex;
  22236. flex-direction: column;
  22237. }
  22238. .e_add_list_title {
  22239. font-size: 20px;
  22240. width: 100%;
  22241. box-sizing: border-box;
  22242. padding: 15px 40px;
  22243. text-align: center;
  22244. border-bottom: 1px solid #eaeaea;
  22245. position: relative;
  22246. display: flex;
  22247. align-items: center;
  22248. justify-content: center;
  22249. height: 57px;
  22250. background: #f6f6f6;
  22251. }
  22252. .e_add_list_title span {
  22253. overflow: hidden;
  22254. white-space: nowrap;
  22255. text-overflow: ellipsis;
  22256. }
  22257. .e_add_list_title img {
  22258. position: absolute;
  22259. right: 15px;
  22260. width: 25px;
  22261. cursor: pointer;
  22262. top: 50%;
  22263. transform: translateY(-50%);
  22264. }
  22265. .e_add_list_body {
  22266. height: calc(100% - 187px);
  22267. overflow: auto;
  22268. }
  22269. .e_add_list_child {
  22270. width: 100%;
  22271. display: flex;
  22272. align-items: center;
  22273. justify-content: center;
  22274. position: relative;
  22275. box-sizing: border-box;
  22276. padding: 15px 40px;
  22277. text-align: center;
  22278. }
  22279. .e_add_list_child span {
  22280. overflow: hidden;
  22281. white-space: nowrap;
  22282. text-overflow: ellipsis;
  22283. cursor: pointer;
  22284. }
  22285. .e_add_list_child img {
  22286. position: absolute;
  22287. right: 10px;
  22288. width: 21px;
  22289. cursor: pointer;
  22290. top: 50%;
  22291. transform: translateY(-50%);
  22292. }
  22293. .e_add_list_child + .e_add_list_child {
  22294. border-top: 1px solid #eaeaea;
  22295. }
  22296. .e_add_list_child .active {
  22297. color: #409eff;
  22298. }
  22299. .e_add_list_btn {
  22300. position: absolute;
  22301. bottom: 0;
  22302. height: 50px;
  22303. background: rgb(120, 120, 254);
  22304. width: 100%;
  22305. color: #fff;
  22306. font-size: 16px;
  22307. text-align: center;
  22308. line-height: 50px;
  22309. cursor: pointer;
  22310. }
  22311. .e_add_list_detail {
  22312. position: absolute;
  22313. bottom: 0;
  22314. height: 130px;
  22315. background: rgb(120, 120, 254);
  22316. width: 100%;
  22317. color: #fff;
  22318. font-size: 16px;
  22319. display: flex;
  22320. align-items: center;
  22321. justify-content: center;
  22322. }
  22323. .e_add_list_detail textarea {
  22324. height: 90%;
  22325. width: 95%;
  22326. border: none;
  22327. resize: none;
  22328. outline: none;
  22329. padding: 5px;
  22330. box-sizing: border-box;
  22331. }
  22332. .e_add_list_pbox {
  22333. width: 100%;
  22334. max-width: 650px;
  22335. /* height: 600px; */
  22336. }
  22337. .e_add_list_pbox_title {
  22338. height: 50px;
  22339. background: #fff;
  22340. display: flex;
  22341. align-items: center;
  22342. width: 100%;
  22343. box-sizing: border-box;
  22344. padding: 0 20px;
  22345. }
  22346. .type_title {
  22347. font-size: 18px;
  22348. font-weight: 700;
  22349. }
  22350. .type_content {
  22351. font-size: 16px;
  22352. /* margin-left: 30px; */
  22353. }
  22354. .type_content span + span {
  22355. margin-left: 20px;
  22356. }
  22357. .type_content span {
  22358. cursor: pointer;
  22359. padding-bottom: 5px;
  22360. box-sizing: border-box;
  22361. }
  22362. .type_content .active {
  22363. color: #409eff;
  22364. border-bottom: 2px solid #409eff;
  22365. }
  22366. .e_add_list_pbox_content {
  22367. height: calc(100% - 50px);
  22368. display: flex;
  22369. align-items: center;
  22370. width: 100%;
  22371. background: #fff;
  22372. }
  22373. .evaCss {
  22374. display: flex;
  22375. flex-direction: row;
  22376. flex-wrap: nowrap;
  22377. align-items: flex-start;
  22378. padding: 0 0 20px;
  22379. }
  22380. .cru_line {
  22381. position: absolute;
  22382. bottom: 0px;
  22383. transition: all 0.5s;
  22384. left: 0px;
  22385. width: 125px;
  22386. margin-left: -25px;
  22387. }
  22388. .isNoMessage {
  22389. width: 20%;
  22390. margin: 25% auto 0;
  22391. }
  22392. .isNoMessage > img {
  22393. width: 100%;
  22394. height: 100%;
  22395. }
  22396. .fullStyle >>> .el-dialog__body {
  22397. height: 100% !important;
  22398. }
  22399. .fullStyle >>> .el-dialog,
  22400. .fullStyle {
  22401. width: 100% !important;
  22402. max-width: 100% !important;
  22403. height: 100% !important;
  22404. margin: 0 !important;
  22405. }
  22406. .full_diy >>> .el-dialog {
  22407. margin: 0 !important;
  22408. height: 100%;
  22409. padding: 4px;
  22410. }
  22411. .full_diy >>> .el-dialog__body {
  22412. height: calc(100% - 100px);
  22413. }
  22414. .full_diy2 >>> .el-dialog__body {
  22415. height: calc(100% - 50px);
  22416. padding: 0;
  22417. }
  22418. .switchCss {
  22419. /* width: 100%; */
  22420. display: flex;
  22421. flex-direction: row;
  22422. flex-wrap: nowrap;
  22423. align-items: center;
  22424. /* justify-content: center; */
  22425. }
  22426. .isClickNav {
  22427. /* color: #499eef; */
  22428. color: #000;
  22429. }
  22430. .commentImg {
  22431. width: 25px;
  22432. height: 25px;
  22433. cursor: pointer;
  22434. }
  22435. .commentImg > img {
  22436. width: 100%;
  22437. height: 100%;
  22438. }
  22439. .comment {
  22440. background: #f9f9f9;
  22441. border-radius: 0 0 4px 4px;
  22442. display: flex;
  22443. flex-direction: row;
  22444. flex-wrap: nowrap;
  22445. align-items: center;
  22446. justify-content: flex-end;
  22447. height: 35px;
  22448. }
  22449. .commentList {
  22450. display: flex;
  22451. flex-direction: row;
  22452. flex-wrap: nowrap;
  22453. align-items: center;
  22454. justify-content: center;
  22455. align-content: center;
  22456. /* margin-left: 15px; */
  22457. /* margin-left: 8px; */
  22458. }
  22459. .scoreImg {
  22460. width: 17px;
  22461. height: 17px;
  22462. }
  22463. .studentDetail {
  22464. display: flex;
  22465. flex-direction: row;
  22466. flex-wrap: nowrap;
  22467. /* align-items: center; */
  22468. align-items: flex-start;
  22469. }
  22470. .tx {
  22471. width: 50px;
  22472. }
  22473. .tx > img {
  22474. width: 100%;
  22475. height: 100%;
  22476. }
  22477. .nameAndTime {
  22478. display: flex;
  22479. flex-direction: column;
  22480. flex-wrap: nowrap;
  22481. align-items: flex-start;
  22482. margin-left: 10px;
  22483. }
  22484. .worksAnswer {
  22485. color: #4078dd;
  22486. margin: 10px 0;
  22487. font-size: 16px;
  22488. position: relative;
  22489. }
  22490. .worksAnswer > img {
  22491. width: 500px;
  22492. height: 300px;
  22493. object-fit: contain;
  22494. margin: 0 auto;
  22495. display: block;
  22496. }
  22497. .commentTop {
  22498. border-bottom: 1px solid #eaeaea;
  22499. padding-bottom: 10px;
  22500. }
  22501. .commentBox {
  22502. padding-top: 15px;
  22503. }
  22504. .pl {
  22505. font-size: 18px;
  22506. }
  22507. .plPerson {
  22508. width: 100%;
  22509. }
  22510. .plName {
  22511. display: flex;
  22512. flex-direction: row;
  22513. flex-wrap: nowrap;
  22514. align-items: baseline;
  22515. color: #78787a;
  22516. width: 100%;
  22517. }
  22518. .deleteComment {
  22519. cursor: pointer;
  22520. margin-left: auto;
  22521. color: #237ade;
  22522. }
  22523. .plContent {
  22524. margin-top: 5px;
  22525. }
  22526. .evalCss {
  22527. background: #fff;
  22528. font-size: 18px;
  22529. }
  22530. .nav {
  22531. color: #9d9d9d;
  22532. padding: 5px 0 15px 20px;
  22533. }
  22534. .middleBox {
  22535. padding: 5px 0 15px 20px;
  22536. }
  22537. .pfBox {
  22538. padding-bottom: 30px;
  22539. }
  22540. .nameAndrate {
  22541. display: flex;
  22542. flex-direction: row;
  22543. flex-wrap: nowrap;
  22544. align-items: center;
  22545. padding-bottom: 10px;
  22546. height: 30px;
  22547. line-height: 30px;
  22548. }
  22549. .nameAndrate > div {
  22550. margin-left: 10px;
  22551. color: #000;
  22552. height: 30px;
  22553. }
  22554. .nameAndrate >>> .el-rate__icon {
  22555. font-size: 28px !important;
  22556. }
  22557. .pfBox > div:nth-child(2) {
  22558. background: #f7f6f9;
  22559. width: 400px;
  22560. min-height: 45px;
  22561. border-radius: 10px;
  22562. font-size: 16px;
  22563. display: flex;
  22564. flex-wrap: wrap;
  22565. align-items: center;
  22566. padding: 10px 20px;
  22567. box-sizing: border-box;
  22568. color: #000;
  22569. }
  22570. .bz {
  22571. display: flex;
  22572. flex-direction: row;
  22573. flex-wrap: nowrap;
  22574. align-items: flex-start;
  22575. }
  22576. .bz > div {
  22577. padding: 0 10px;
  22578. }
  22579. .select_box2_title {
  22580. background: #fff;
  22581. border-radius: 5px;
  22582. padding: 15px 10px;
  22583. box-sizing: border-box;
  22584. margin-bottom: 10px;
  22585. display: flex;
  22586. flex-direction: row;
  22587. flex-wrap: nowrap;
  22588. align-items: center;
  22589. }
  22590. .select_box2_title > div:nth-child(2) {
  22591. margin-left: 10px;
  22592. color: #c4c4c4;
  22593. }
  22594. .select_box2_box {
  22595. display: flex;
  22596. height: 500px;
  22597. }
  22598. .select_box2_img {
  22599. width: calc(100% - 310px);
  22600. height: 100%;
  22601. overflow: auto;
  22602. background: #fff;
  22603. border-radius: 5px;
  22604. }
  22605. .select_box2_img img {
  22606. width: 100%;
  22607. }
  22608. .select_box2_answer {
  22609. background: #fff;
  22610. margin-left: 10px;
  22611. border-radius: 5px;
  22612. width: 300px;
  22613. overflow: auto;
  22614. height: 90%;
  22615. display: flex;
  22616. flex-direction: column;
  22617. align-items: flex-start;
  22618. padding-top: 10px;
  22619. box-sizing: border-box;
  22620. position: relative;
  22621. }
  22622. .select_answer_title {
  22623. padding: 0 0 15px 20px;
  22624. color: #c4c4c4;
  22625. }
  22626. .select_box2_answer_box {
  22627. margin: 0 0 10px 20px;
  22628. width: 85%;
  22629. display: flex;
  22630. flex-direction: row;
  22631. flex-wrap: nowrap;
  22632. align-items: center;
  22633. }
  22634. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22635. color: #000;
  22636. }
  22637. .upAnswerCss {
  22638. position: absolute;
  22639. bottom: 15px;
  22640. right: 15px;
  22641. }
  22642. .upAnswerCss >>> .el-button {
  22643. width: 95px;
  22644. height: 35px;
  22645. line-height: 35px;
  22646. padding: 0;
  22647. }
  22648. .rightWidthCss {
  22649. width: 60%;
  22650. display: flex;
  22651. flex-direction: row;
  22652. align-items: flex-start;
  22653. }
  22654. .rightAnswer {
  22655. display: flex;
  22656. flex-direction: row;
  22657. flex-wrap: nowrap;
  22658. align-items: center;
  22659. color: red;
  22660. margin-bottom: 31px;
  22661. }
  22662. .rightAnswerCss {
  22663. display: flex;
  22664. flex-direction: column;
  22665. flex-wrap: nowrap;
  22666. padding-top: 60px;
  22667. }
  22668. .blueCss {
  22669. color: #767de1;
  22670. margin-left: 10px;
  22671. }
  22672. .redCss {
  22673. color: red;
  22674. }
  22675. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22676. color: rgb(0 123 255) !important;
  22677. }
  22678. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22679. color: rgb(0 123 255) !important;
  22680. }
  22681. .zuoyeYulan {
  22682. padding-top: 0;
  22683. font-size: 18px;
  22684. display: flex;
  22685. align-items: flex-end;
  22686. }
  22687. .buttonA {
  22688. margin-left: 10px;
  22689. padding: 0;
  22690. }
  22691. .displayBox {
  22692. margin-bottom: 10px;
  22693. display: block;
  22694. border-bottom: 3px solid #eee;
  22695. display: flex;
  22696. align-items: center;
  22697. }
  22698. .easy_comment {
  22699. width: calc(100% - 90px);
  22700. margin-left: 10px;
  22701. display: flex;
  22702. flex-wrap: wrap;
  22703. }
  22704. .easy_comment > div {
  22705. border: 1px solid #4a4a4a;
  22706. color: #666;
  22707. border-radius: 15px;
  22708. padding: 5px 10px;
  22709. font-size: 16px;
  22710. margin-bottom: 10px;
  22711. margin-right: 5px;
  22712. cursor: pointer;
  22713. }
  22714. .easy_comment div:hover {
  22715. border: 1px solid #f7ba2a;
  22716. color: #c69217;
  22717. }
  22718. .xuan_right_box {
  22719. padding: 10px 0;
  22720. background: #f0f4fa;
  22721. margin: 0 15px 0 25px;
  22722. border-bottom-left-radius: 5px;
  22723. border-bottom-right-radius: 5px;
  22724. width: 91.5%;
  22725. }
  22726. .tool_right_box {
  22727. display: flex;
  22728. align-items: center;
  22729. }
  22730. .tool_right_box + .tool_right_box {
  22731. margin-top: 10px;
  22732. }
  22733. .right_box_xuan {
  22734. border-radius: 5px;
  22735. padding: 5px;
  22736. margin-left: 10px;
  22737. min-width: 85px;
  22738. background: #fff;
  22739. color: #0061ff;
  22740. border: 1px solid #0061ff;
  22741. font-size: 14px;
  22742. }
  22743. .pButton:hover {
  22744. opacity: 1 !important;
  22745. }
  22746. .pButton {
  22747. position: fixed;
  22748. text-align: center;
  22749. cursor: pointer;
  22750. z-index: 999;
  22751. right: 20px;
  22752. top: 110px;
  22753. width: 50px;
  22754. height: 50px;
  22755. display: flex;
  22756. align-items: center;
  22757. justify-content: center;
  22758. border-radius: 5px;
  22759. }
  22760. .pzClass {
  22761. width: calc(100% - 340px);
  22762. }
  22763. .newDialogCss {
  22764. /* position: fixed;
  22765. right: 5%;
  22766. top: 50%;
  22767. width: 340px;
  22768. transform: translateY(-50%);
  22769. height: 60%;
  22770. box-shadow: 0px 0 8px 0px #555555;
  22771. border-radius: 15px;
  22772. z-index: 999; */
  22773. position: fixed;
  22774. right: 20px;
  22775. top: 101px;
  22776. width: 330px;
  22777. height: calc(100% - 80px);
  22778. z-index: 999;
  22779. background: #fff;
  22780. border-top-right-radius: 0px;
  22781. border-bottom-right-radius: 0px;
  22782. overflow: hidden;
  22783. }
  22784. .newDialogCss>.scoreList{
  22785. width:100%;
  22786. height:100%;
  22787. box-sizing:border-box;
  22788. padding:10px 15px;
  22789. overflow:auto;
  22790. padding-bottom:80px;
  22791. }
  22792. .pzTop {
  22793. color: #fff;
  22794. background: #000;
  22795. display: flex;
  22796. flex-direction: row;
  22797. flex-wrap: nowrap;
  22798. align-items: center;
  22799. justify-content: space-between;
  22800. height: 40px;
  22801. border-radius: 15px 15px 0 0;
  22802. user-select: none;
  22803. }
  22804. .pzTop2 .checkbox {
  22805. display: flex;
  22806. align-items: center;
  22807. padding: 5px 10px;
  22808. flex: 0 0 auto;
  22809. font-weight: bold;
  22810. border-bottom: 1px solid #eee;
  22811. justify-content: space-between;
  22812. }
  22813. .checkbox>.cb-tabList{
  22814. display:flex;
  22815. align-items:center;
  22816. }
  22817. .cb-tabList>div{
  22818. margin-right:20px;
  22819. font-weight:400;
  22820. cursor:pointer;
  22821. }
  22822. .cb-tabList>.cb-tabItem{
  22823. color:#1684FC;
  22824. position:relative;
  22825. }
  22826. .cb-tabItem::after{
  22827. content:"";
  22828. width:100%;
  22829. height:2px;
  22830. background:#1684FC;
  22831. position:absolute;
  22832. bottom:-5px;
  22833. left:0
  22834. }
  22835. .pzTop2 .check {
  22836. text-align: center;
  22837. cursor: pointer;
  22838. box-sizing: border-box;
  22839. display: flex;
  22840. }
  22841. .pzTop2 img {
  22842. width: 25px;
  22843. cursor: pointer;
  22844. }
  22845. .pzTop > div:nth-child(1) {
  22846. padding-left: 10px;
  22847. }
  22848. .pzTop > div:nth-child(2) {
  22849. width: 15px;
  22850. height: 15px;
  22851. padding-right: 10px;
  22852. cursor: pointer;
  22853. }
  22854. .pzTop > div:nth-child(2) > img {
  22855. width: 100%;
  22856. height: 100%;
  22857. }
  22858. .pzBox,
  22859. .noPzBox {
  22860. height: calc(100% - 60px);
  22861. /* background: #ededed; */
  22862. background: #fff;
  22863. /* border-radius: 0 0 15px 15px; */
  22864. }
  22865. .noPzBox {
  22866. display: flex;
  22867. flex-direction: column;
  22868. flex-wrap: nowrap;
  22869. justify-content: center;
  22870. align-items: center;
  22871. }
  22872. .pzList {
  22873. background: #f7f7f7;
  22874. width: 90%;
  22875. margin: 0 auto 15px;
  22876. border-radius: 5px;
  22877. }
  22878. .pzNavTop {
  22879. display: flex;
  22880. flex-direction: row;
  22881. flex-wrap: nowrap;
  22882. padding: 10px 10px 0 10px;
  22883. align-items: center;
  22884. }
  22885. .pzDelete {
  22886. cursor: pointer;
  22887. margin-left: auto;
  22888. font-size: 14px;
  22889. color: #afafaf;
  22890. }
  22891. .pzNavTop > div:nth-child(1) {
  22892. background: #3760af;
  22893. width: 35px;
  22894. height: 35px;
  22895. color: #fff;
  22896. text-align: center;
  22897. line-height: 35px;
  22898. border-radius: 50%;
  22899. font-size: 14px;
  22900. }
  22901. .pzNavTop > div:nth-child(2) {
  22902. font-size: 18px;
  22903. color: #959595;
  22904. margin-left: 5px;
  22905. }
  22906. .pzContent {
  22907. padding: 10px;
  22908. word-break: break-word;
  22909. }
  22910. .pzContent audio {
  22911. width: 100%;
  22912. }
  22913. .pzContent audio::-webkit-media-controls-panel {
  22914. background: #fff;
  22915. }
  22916. .pzContent >>> img {
  22917. max-width: 100%;
  22918. }
  22919. .pzListBox {
  22920. padding-top: 15px;
  22921. height: calc(100% - 110px);
  22922. overflow: auto;
  22923. }
  22924. .addPzButton {
  22925. position: relative;
  22926. margin-top: 3px;
  22927. width: 100%;
  22928. }
  22929. .addPzButton .img1 {
  22930. position: absolute;
  22931. top: 50%;
  22932. right: 25px;
  22933. transform: translateY(-50%);
  22934. height: 100%;
  22935. display: flex;
  22936. align-items: center;
  22937. }
  22938. .addPzButton .img1 div {
  22939. display: flex;
  22940. }
  22941. .addPzButton .img1 div img {
  22942. width: 28px;
  22943. margin-left: 10px;
  22944. cursor: pointer;
  22945. }
  22946. .addPzButton .img1 div span {
  22947. font-size: 14px;
  22948. margin: 4px 0 0 3px;
  22949. color: #afafaf;
  22950. }
  22951. .addPz {
  22952. background: #4b79ce;
  22953. width: 100px;
  22954. color: #fff;
  22955. font-size: 12px;
  22956. height: 30px;
  22957. margin: 0 auto;
  22958. text-align: center;
  22959. line-height: 30px;
  22960. border-radius: 10px;
  22961. cursor: pointer;
  22962. }
  22963. .addDialogCss {
  22964. position: fixed;
  22965. width: 600px;
  22966. height: 70%;
  22967. min-height: 450px;
  22968. box-shadow: 0px 0 8px 0px #555555;
  22969. border-radius: 15px;
  22970. z-index: 999;
  22971. left: 50%;
  22972. top: 50%;
  22973. margin: -18% 0 0 -300px;
  22974. }
  22975. .teacherPz {
  22976. display: flex;
  22977. flex-direction: row;
  22978. align-items: center;
  22979. flex-wrap: nowrap;
  22980. }
  22981. .teacherPzImg {
  22982. width: 30px;
  22983. height: 30px;
  22984. }
  22985. .teacherPzImg > img {
  22986. width: 100%;
  22987. height: 100%;
  22988. }
  22989. .addPzBox {
  22990. height: calc(100% - 40px);
  22991. background: #ededed;
  22992. border-bottom-left-radius: 15px;
  22993. border-bottom-right-radius: 15px;
  22994. }
  22995. .pzAudioClass {
  22996. margin: 15px 14px;
  22997. background: #fff;
  22998. height: 100%;
  22999. display: flex;
  23000. justify-content: center;
  23001. align-items: center;
  23002. }
  23003. .pzConText {
  23004. width: 95%;
  23005. height: 100%;
  23006. margin: 10px auto 0;
  23007. border: none;
  23008. background: #fff;
  23009. border-radius: 0px;
  23010. }
  23011. .pzConText >>> .text {
  23012. height: calc(100% - 82px);
  23013. }
  23014. .addTextCss {
  23015. background: #4b79ce;
  23016. width: 80px;
  23017. height: 30px;
  23018. text-align: center;
  23019. color: #fff;
  23020. line-height: 30px;
  23021. border-radius: 10px;
  23022. margin: 10px auto 0;
  23023. cursor: pointer;
  23024. }
  23025. .pzConText:focus-visible {
  23026. border: none !important;
  23027. }
  23028. .maxWidth {
  23029. width: 1000px;
  23030. }
  23031. .noPz {
  23032. width: 150px;
  23033. margin: 0 auto 20%;
  23034. }
  23035. .noPz > img {
  23036. width: 100%;
  23037. height: 100%;
  23038. }
  23039. .timeAndReply {
  23040. display: flex;
  23041. flex-direction: row;
  23042. flex-wrap: nowrap;
  23043. justify-content: space-between;
  23044. align-items: center;
  23045. font-size: 14px;
  23046. box-sizing: border-box;
  23047. padding: 0 10px 10px 0px;
  23048. }
  23049. .timeAndReply .time {
  23050. color: #bfbfbf;
  23051. padding: 0 0 0 10px;
  23052. box-sizing: border-box;
  23053. }
  23054. .timeAndReply > div:last-child {
  23055. cursor: pointer;
  23056. color: #777;
  23057. }
  23058. /* table 样式 */
  23059. .cont >>> table {
  23060. border-top: 1px solid #ccc;
  23061. border-left: 1px solid #ccc;
  23062. }
  23063. .cont >>> table td,
  23064. .cont >>> table th {
  23065. border-bottom: 1px solid #ccc;
  23066. border-right: 1px solid #ccc;
  23067. /* padding: 20px 5px; */
  23068. padding: 5px 10px;
  23069. max-width: 0px;
  23070. height: 30px;
  23071. vertical-align: baseline;
  23072. box-sizing: border-box;
  23073. }
  23074. .cont >>> table th {
  23075. border-bottom: 2px solid #ccc;
  23076. text-align: center;
  23077. }
  23078. /* blockquote 样式 */
  23079. .cont >>> blockquote {
  23080. display: block;
  23081. border-left: 8px solid #d0e5f2;
  23082. padding: 5px 10px;
  23083. margin: 10px 0;
  23084. line-height: 1.4;
  23085. font-size: 100%;
  23086. background-color: #f1f1f1;
  23087. }
  23088. /* code 样式 */
  23089. .cont >>> code {
  23090. display: inline-block;
  23091. /* *display: inline; */
  23092. zoom: 1;
  23093. background-color: #f1f1f1;
  23094. border-radius: 3px;
  23095. padding: 3px 5px;
  23096. margin: 0 3px;
  23097. }
  23098. .cont >>> pre code {
  23099. display: block;
  23100. }
  23101. /* ul ol 样式 */
  23102. .cont >>> ul,
  23103. ol {
  23104. margin: 10px 0 10px 20px;
  23105. }
  23106. .addPzCheck {
  23107. display: flex;
  23108. flex-direction: row;
  23109. flex-wrap: nowrap;
  23110. padding: 10px 15px 0;
  23111. }
  23112. .addPzCheck span {
  23113. cursor: pointer;
  23114. padding-bottom: 5px;
  23115. font-weight: bold;
  23116. }
  23117. .addPzCheck span + span {
  23118. margin-left: 10px;
  23119. }
  23120. .addPzCheck .isChooseActive {
  23121. color: #3e88f4;
  23122. border-bottom: 2px solid #2f80f3;
  23123. }
  23124. /* code 样式 */
  23125. .cont {
  23126. /* -webkit-user-modify: read-write; */
  23127. overflow-wrap: break-word;
  23128. -webkit-line-break: after-white-space;
  23129. word-break: break-word;
  23130. white-space: pre-line;
  23131. }
  23132. .scoreBox,
  23133. .scoreDetailBox {
  23134. display: flex;
  23135. align-items: center;
  23136. justify-content: flex-start;
  23137. margin-top: 20px;
  23138. font-size: 18px;
  23139. width: 100%;
  23140. }
  23141. .scoreBox .t,
  23142. .scoreDetailBox .t {
  23143. margin-right: 10px;
  23144. width: 100px;
  23145. text-align: right;
  23146. }
  23147. .scoreDetailBox {
  23148. align-items: flex-start;
  23149. }
  23150. .scoreDetailBox >>> .el-textarea {
  23151. width: calc(100% - 200px);
  23152. }
  23153. .scoreBox >>> .el-input {
  23154. width: 130px;
  23155. font-size: 38px;
  23156. }
  23157. .scoreBox >>> .el-input__inner {
  23158. height: 60px;
  23159. }
  23160. .answerScore {
  23161. position: absolute;
  23162. top: 10px;
  23163. right: 10px;
  23164. background: #0000008f;
  23165. border-radius: 5px;
  23166. padding: 3px 5px;
  23167. font-size: 14px;
  23168. color: #fff;
  23169. cursor: pointer;
  23170. }
  23171. .open_box .switch_box {
  23172. width: 100%;
  23173. margin: 0 auto;
  23174. display: flex;
  23175. justify-content: space-between;
  23176. }
  23177. .open_box .switch_box + .switch_box {
  23178. margin-top: 10px;
  23179. }
  23180. .deleteImg,.deleteImg1 {
  23181. width: 25px !important;
  23182. height: 25px !important;
  23183. cursor: pointer;
  23184. position: absolute;
  23185. top: 10px;
  23186. right: 10px;
  23187. }
  23188. .deleteImg2 {
  23189. width: 23px !important;
  23190. height: 23px !important;
  23191. top: 5px;
  23192. right: 5px;
  23193. }
  23194. .deleteImg1{
  23195. width: 23px !important;
  23196. height: 23px !important;
  23197. top: 5px !important;
  23198. right: 30px !important;
  23199. }
  23200. .rightW {
  23201. right: 40px;
  23202. }
  23203. .drawPBox {
  23204. display: flex;
  23205. flex-direction: column;
  23206. position: relative;
  23207. }
  23208. .drawPBox span {
  23209. font-size: 18px;
  23210. color: #606266;
  23211. padding-bottom: 10px;
  23212. margin: 10px 0;
  23213. border-bottom: 1px solid #eaeaea;
  23214. }
  23215. .drawPBox img {
  23216. width: 500px;
  23217. height: 300px;
  23218. object-fit: contain;
  23219. cursor: pointer;
  23220. margin: 0 auto;
  23221. }
  23222. .sentenBox {
  23223. background: #fff;
  23224. height: 450px;
  23225. overflow: auto;
  23226. background-image: url("../assets/icon/conSentences/stuBg.png");
  23227. background-position: 102%;
  23228. background-repeat: no-repeat;
  23229. background-size: 60%;
  23230. }
  23231. .addSen {
  23232. background: #409efe;
  23233. width: 90px;
  23234. color: #fff;
  23235. height: 35px;
  23236. text-align: center;
  23237. line-height: 35px;
  23238. border-radius: 5px;
  23239. float: right;
  23240. margin: 10px 20px 0 0;
  23241. cursor: pointer;
  23242. }
  23243. .sentenTop {
  23244. display: flex;
  23245. flex-direction: row;
  23246. flex-wrap: nowrap;
  23247. align-items: center;
  23248. padding: 55px 0 0 20px;
  23249. box-sizing: border-box;
  23250. }
  23251. .sentenTop > div:nth-child(2) {
  23252. width: 300px;
  23253. margin: 0 15px;
  23254. }
  23255. .sentenTop > div:nth-child(3) {
  23256. background: #409efe;
  23257. color: #fff;
  23258. width: 65px;
  23259. height: 35px;
  23260. text-align: center;
  23261. line-height: 35px;
  23262. border-radius: 5px;
  23263. cursor: pointer;
  23264. }
  23265. .cardList,
  23266. .cardList1 {
  23267. padding: 10px 0 10px 0;
  23268. display: flex;
  23269. flex-direction: row;
  23270. flex-wrap: wrap;
  23271. align-items: center;
  23272. box-sizing: border-box;
  23273. border-bottom: 1px solid #f4f4f4;
  23274. width: 98%;
  23275. margin: 0 auto;
  23276. min-width: 60%;
  23277. max-width: 85%;
  23278. }
  23279. .cardList1 {
  23280. padding: 10px 0 10px 10px !important;
  23281. margin: 0 !important;
  23282. }
  23283. .cardBox {
  23284. display: flex;
  23285. flex-direction: row;
  23286. flex-wrap: wrap;
  23287. align-items: center;
  23288. align-content: center;
  23289. }
  23290. .cardBox > div {
  23291. margin-bottom: 10px;
  23292. }
  23293. .isCard,
  23294. .isChooseCard,
  23295. .noCard,
  23296. .isCard1 {
  23297. min-width: 130px;
  23298. width: auto;
  23299. height: 60px;
  23300. text-align: center;
  23301. line-height: 60px;
  23302. font-size: 20px;
  23303. cursor: pointer;
  23304. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23305. background-size: cover;
  23306. transition: all 2s;
  23307. margin-right: 20px;
  23308. background-size: 100% 100%;
  23309. padding: 0 20px;
  23310. box-sizing: border-box;
  23311. }
  23312. .isCard > div,
  23313. .noCard > div,
  23314. .isCard1 > div {
  23315. white-space: nowrap;
  23316. overflow: hidden;
  23317. text-overflow: ellipsis;
  23318. width: 100%;
  23319. margin: 0 auto;
  23320. }
  23321. .noCard {
  23322. background-image: none;
  23323. }
  23324. .isCard1 {
  23325. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23326. }
  23327. .isChooseCard {
  23328. background-image: none;
  23329. border: 1px dashed #b9b9b9;
  23330. border-radius: 10px;
  23331. }
  23332. .card {
  23333. width: 130px;
  23334. height: 60px;
  23335. }
  23336. .card > img {
  23337. width: 100%;
  23338. height: 100%;
  23339. }
  23340. .rightCardBox {
  23341. margin: 10px 0 0 10px;
  23342. }
  23343. .rightCardBox > div:nth-child(1) {
  23344. margin-bottom: 10px;
  23345. }
  23346. .cardCss {
  23347. display: flex;
  23348. flex-direction: column;
  23349. flex-wrap: nowrap;
  23350. align-items: center;
  23351. border-bottom: 3px solid #b4c3d3;
  23352. padding: 0 0 5px 0;
  23353. margin-right: 10px;
  23354. }
  23355. .cardCss > div:nth-child(2) {
  23356. background: #5b7b9d;
  23357. color: #fff;
  23358. width: 20px;
  23359. height: 20px;
  23360. border-radius: 50%;
  23361. text-align: center;
  23362. line-height: 20px;
  23363. }
  23364. .isWrong {
  23365. display: flex;
  23366. flex-direction: row;
  23367. flex-wrap: nowrap;
  23368. align-content: center;
  23369. align-items: center;
  23370. }
  23371. .answerRight {
  23372. width: 25%;
  23373. }
  23374. .isTj {
  23375. display: flex;
  23376. flex-direction: row;
  23377. flex-wrap: nowrap;
  23378. align-items: center;
  23379. }
  23380. .isTj > div:nth-child(2) {
  23381. color: #727070;
  23382. margin-left: 10px;
  23383. }
  23384. .isTjImg {
  23385. width: 30px;
  23386. height: 30px;
  23387. }
  23388. .isTjImg > img {
  23389. width: 100%;
  23390. height: 100%;
  23391. }
  23392. .cardAnswerBox {
  23393. font-size: 18px;
  23394. width: 97%;
  23395. border: 5px;
  23396. padding: 0;
  23397. border-radius: 5px;
  23398. margin: 10px auto;
  23399. word-break: break-word;
  23400. }
  23401. .w_name {
  23402. margin-bottom: 10px;
  23403. }
  23404. .w_name span {
  23405. font-size: 16px;
  23406. }
  23407. .w_teachert {
  23408. width: 50px !important;
  23409. position: absolute;
  23410. height: auto !important;
  23411. z-index: 10;
  23412. right: 25px;
  23413. top: -25px;
  23414. }
  23415. .group_workBox {
  23416. }
  23417. .group_workBox + .group_workBox {
  23418. margin-top: 20px;
  23419. }
  23420. .group_box {
  23421. padding-bottom: 20px;
  23422. border-bottom: 2px solid #f0f0f0;
  23423. margin-top: 10px;
  23424. }
  23425. .group_title {
  23426. display: flex;
  23427. align-items: center;
  23428. justify-content: space-between;
  23429. width: 95%;
  23430. }
  23431. .group_name {
  23432. background-image: url(../assets/icon/groupN.png);
  23433. width: 220px;
  23434. background-size: 100% 100%;
  23435. height: 67px;
  23436. padding: 0 20px 0 43px;
  23437. box-sizing: border-box;
  23438. line-height: 63px;
  23439. color: #fff;
  23440. overflow: hidden;
  23441. white-space: nowrap;
  23442. text-overflow: ellipsis;
  23443. }
  23444. .group_work {
  23445. width: 100%;
  23446. padding: 0 10px;
  23447. box-sizing: border-box;
  23448. display: flex;
  23449. flex-wrap: wrap;
  23450. }
  23451. .g_d_box {
  23452. display: flex;
  23453. flex-flow: wrap;
  23454. justify-content: space-around;
  23455. }
  23456. .g_d_box .isChair {
  23457. background-image: url(../assets/avatar.png) !important;
  23458. }
  23459. .g_d_group {
  23460. width: 500px;
  23461. margin-bottom: 80px;
  23462. }
  23463. .g_d_group_chair {
  23464. display: flex;
  23465. align-items: center;
  23466. justify-content: center;
  23467. }
  23468. .g_d_group_chair > div + div {
  23469. margin-left: 30px;
  23470. }
  23471. .g_d_group_chair > div,
  23472. .g_d_group_chair2 > div {
  23473. display: flex;
  23474. flex-direction: column;
  23475. align-items: center;
  23476. }
  23477. .g_d_group_chair > div > span:nth-child(1),
  23478. .g_d_group_chair2 > div > span:nth-child(1) {
  23479. background-image: url(../assets/icon/chair.png);
  23480. width: 50px;
  23481. height: 50px;
  23482. display: block;
  23483. background-size: 100% 100%;
  23484. }
  23485. .g_d_group_tableBox {
  23486. display: flex;
  23487. align-items: center;
  23488. justify-content: center;
  23489. }
  23490. .g_d_group_chair2 {
  23491. display: flex;
  23492. flex-direction: column;
  23493. align-items: center;
  23494. justify-content: center;
  23495. }
  23496. .g_d_group_chair2 > div + div {
  23497. margin-top: 10px;
  23498. }
  23499. .g_d_group_table {
  23500. background-image: url(../assets/icon/groupBg.png);
  23501. width: 354px;
  23502. height: 196px;
  23503. background-size: 100% 100%;
  23504. display: flex;
  23505. align-items: center;
  23506. justify-content: center;
  23507. flex-direction: column;
  23508. color: #fff;
  23509. }
  23510. .g_d_group_table > div:nth-child(1) {
  23511. font-size: 24px;
  23512. margin-bottom: 5px;
  23513. }
  23514. .g_d_group_table > div:nth-child(2) div {
  23515. cursor: pointer;
  23516. background: #2e77bf;
  23517. padding: 4px 10px;
  23518. border-radius: 5px;
  23519. }
  23520. .groupBox {
  23521. }
  23522. .groupContent + .groupContent {
  23523. margin-top: 30px;
  23524. }
  23525. .groupTitle {
  23526. font-size: 24px;
  23527. color: rgb(80, 80, 80);
  23528. margin-bottom: 20px;
  23529. }
  23530. .groupName {
  23531. display: flex;
  23532. align-items: center;
  23533. }
  23534. .groupn {
  23535. font-size: 15px;
  23536. margin-right: 10px;
  23537. }
  23538. .groupName + .groupName {
  23539. margin-top: 15px;
  23540. }
  23541. .groupBtn {
  23542. margin-left: 10px;
  23543. }
  23544. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23545. text-align: left;
  23546. }
  23547. .g_d_btnBox {
  23548. display: flex;
  23549. justify-content: flex-end;
  23550. align-items: center;
  23551. margin-bottom: 20px;
  23552. }
  23553. .updateChair {
  23554. position: relative;
  23555. }
  23556. .updateChairBtn {
  23557. position: absolute;
  23558. width: 50px;
  23559. height: 50px;
  23560. overflow: hidden;
  23561. /* display: flex; */
  23562. align-items: center;
  23563. justify-content: center;
  23564. background: #00000087;
  23565. color: #fff;
  23566. border-radius: 50px;
  23567. display: none;
  23568. cursor: pointer;
  23569. }
  23570. .updateChair:hover .updateChairBtn {
  23571. display: flex;
  23572. }
  23573. .group_staic_box {
  23574. display: flex;
  23575. padding: 30px 40px 10px;
  23576. flex-wrap: wrap;
  23577. }
  23578. .group_staic {
  23579. /* width: 50%; */
  23580. margin-bottom: 20px;
  23581. display: flex;
  23582. align-items: center;
  23583. }
  23584. .group_staic span:nth-child(1) {
  23585. width: 150px;
  23586. text-align: right;
  23587. margin-right: 15px;
  23588. }
  23589. .group_staic span:nth-child(2) {
  23590. background: rgb(0 123 255);
  23591. color: #fff;
  23592. border-radius: 5px;
  23593. padding: 5px;
  23594. }
  23595. .codeFileBox {
  23596. height: 300px;
  23597. background: #fff;
  23598. display: flex;
  23599. align-items: center;
  23600. justify-content: center;
  23601. }
  23602. .codeFileBox img {
  23603. width: 200px;
  23604. margin: 0;
  23605. height: auto;
  23606. }
  23607. .codeFileBox div {
  23608. background: rgb(80, 142, 226);
  23609. color: #fff;
  23610. padding: 10px 20px;
  23611. border-radius: 25px;
  23612. cursor: pointer;
  23613. margin-left: 15px;
  23614. }
  23615. .radioBox {
  23616. display: flex;
  23617. flex-direction: column;
  23618. flex-wrap: nowrap;
  23619. align-items: flex-start;
  23620. }
  23621. .radioBox > div {
  23622. margin: 10px 0 0 10px;
  23623. }
  23624. /* .radioBox >>> .el-radio__input,
  23625. .radioBox >>> .el-checkbox__inner {
  23626. margin-left: 10px;
  23627. } */
  23628. .radioBox >>> .el-radio__label,
  23629. .radioBox >>> .el-checkbox__label {
  23630. display: flex;
  23631. align-items: center;
  23632. width: 100%;
  23633. }
  23634. .radioBox >>> .el-radio__label > span {
  23635. width: 100%;
  23636. display: -webkit-box;
  23637. overflow: hidden;
  23638. white-space: normal !important;
  23639. text-overflow: ellipsis;
  23640. word-wrap: break-word;
  23641. }
  23642. .inImg {
  23643. width: 100px;
  23644. cursor: pointer;
  23645. }
  23646. .inImg > img {
  23647. width: 100%;
  23648. height: 100%;
  23649. object-fit: cover;
  23650. }
  23651. .timuImgBox {
  23652. margin: 10px 0;
  23653. display: flex;
  23654. flex-direction: column;
  23655. flex-wrap: wrap;
  23656. align-items: flex-start;
  23657. }
  23658. .timuImg {
  23659. width: 150px;
  23660. margin: 5px 0;
  23661. cursor: pointer;
  23662. }
  23663. .timuImg > img {
  23664. width: 100%;
  23665. height: 100%;
  23666. object-fit: cover;
  23667. }
  23668. .worksTop {
  23669. display: flex;
  23670. flex-direction: row;
  23671. align-items: flex-end;
  23672. }
  23673. .worksTitle{
  23674. display: flex;
  23675. flex-direction: row;
  23676. flex-wrap: nowrap;
  23677. align-items: center;
  23678. }
  23679. .worksTitle::before,.worksTop::before{
  23680. content: '';
  23681. display: block;
  23682. width: 3px;
  23683. height: 20px;
  23684. background: #0061FF;
  23685. border-radius: 3px;
  23686. margin: 0 5px 0 0;
  23687. }
  23688. .corOpen {
  23689. margin: 0 0 0 10px;
  23690. font-size: 14px;
  23691. cursor: pointer;
  23692. color: #505050;
  23693. }
  23694. .corOpen:hover {
  23695. color: #499eef;
  23696. }
  23697. .navCorOpenBox {
  23698. display: flex;
  23699. flex-direction: row;
  23700. align-items: center;
  23701. justify-content: space-between;
  23702. height: 55px;
  23703. background: #ffffff;
  23704. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23705. border-radius: 8px 8px 0px 0px;
  23706. z-index: 9;
  23707. position: relative;
  23708. }
  23709. .navCorOpen {
  23710. padding-right: 15px;
  23711. cursor: pointer;
  23712. width: 45px;
  23713. display: flex;
  23714. }
  23715. .navCorOpen > img {
  23716. width: 100%;
  23717. height: 100%;
  23718. }
  23719. .mlImg {
  23720. width: 40px !important;
  23721. min-width: 40px;
  23722. cursor: pointer;
  23723. transform: rotate(180deg);
  23724. }
  23725. .mlImg > img {
  23726. width: 100%;
  23727. height: 100%;
  23728. }
  23729. .navLeftCss {
  23730. width: 100% !important;
  23731. left: 0 !important;
  23732. }
  23733. .isContentCss {
  23734. width: 100% !important;
  23735. }
  23736. .isAllWidth {
  23737. width: 100% !important;
  23738. }
  23739. .group_switch {
  23740. margin-right: 10px;
  23741. height: 30px;
  23742. display: flex;
  23743. align-items: center;
  23744. }
  23745. .group_switch > span {
  23746. margin-right: 5px;
  23747. }
  23748. .fileC_box {
  23749. padding-top: 15px;
  23750. }
  23751. .fileC_box > .fileC_title {
  23752. padding: 10px 5px 14px 10px;
  23753. border-top: 1px solid #cad1dc;
  23754. font-size: 14px;
  23755. font-weight: 400;
  23756. color: #cad1dc;
  23757. width: calc(100% - 20px);
  23758. margin: 0 auto;
  23759. box-sizing: border-box;
  23760. }
  23761. .pl_select_box {
  23762. height: 40px;
  23763. line-height: 40px;
  23764. width: 100%;
  23765. cursor: pointer;
  23766. padding: 0 20px;
  23767. box-sizing: border-box;
  23768. border-radius: 5px;
  23769. border: 1px solid #d6d6d6;
  23770. white-space: nowrap;
  23771. overflow: hidden;
  23772. text-overflow: ellipsis;
  23773. background: #fff;
  23774. text-align: left;
  23775. }
  23776. .newButton {
  23777. width: 102px;
  23778. height: 36px;
  23779. background: #e7ebf1;
  23780. border-radius: 4px;
  23781. color: #0e1e33;
  23782. font-weight: 400;
  23783. font-size: 14px;
  23784. border: none;
  23785. float: right;
  23786. margin-left: 10px;
  23787. }
  23788. .el-table >>> .even_row {
  23789. background-color: #f0f4fa;
  23790. }
  23791. .stageBoxCss,
  23792. .stageBoxIsCss {
  23793. display: flex;
  23794. flex-direction: row;
  23795. flex-wrap: nowrap;
  23796. align-items: center;
  23797. height: 50px;
  23798. border-bottom: 1px solid #e2f5fc;
  23799. cursor: pointer;
  23800. width: 100%;
  23801. }
  23802. .stageBoxIsCss {
  23803. background: #0061ff;
  23804. color: #fff;
  23805. border-radius: 8px;
  23806. }
  23807. .stageItemTitle {
  23808. display: flex;
  23809. flex-direction: row;
  23810. flex-wrap: nowrap;
  23811. align-items: center;
  23812. margin-left: 15px;
  23813. width: calc(100% - 50px);
  23814. }
  23815. .stageNav{
  23816. /* font-weight: bold; */
  23817. }
  23818. .stageItemTitle > div:first-child {
  23819. min-width: 55px;
  23820. }
  23821. .stageItemTitle > div:last-child {
  23822. max-width: 242px;
  23823. white-space: nowrap;
  23824. overflow: hidden;
  23825. text-overflow: ellipsis;
  23826. word-break: break-word;
  23827. width: calc(100% - 55px);
  23828. }
  23829. .closeTri,
  23830. .closeTri1 {
  23831. min-width: 15px;
  23832. width: 15px;
  23833. height: 15px;
  23834. transition: all .5s;
  23835. }
  23836. .closeTri1 {
  23837. padding-left: 10px;
  23838. cursor: pointer;
  23839. }
  23840. .closeTri > img,
  23841. .closeTri1 > img {
  23842. width: 100%;
  23843. height: 100%;
  23844. /* transition: all .5s; */
  23845. }
  23846. .noToolBlue {
  23847. min-width: 10px;
  23848. width: 10px;
  23849. height: 10px;
  23850. background: #0061ff;
  23851. border-radius: 50%;
  23852. margin-left: 13px;
  23853. }
  23854. .stageChild,
  23855. .toolChild {
  23856. height: 0;
  23857. overflow: hidden;
  23858. transition: all 0.5s;
  23859. }
  23860. .toolChild {
  23861. /* margin: 0 0 0 17px;
  23862. padding: 0 0 0 20px;
  23863. border-left: 1px solid #d7d7d7; */
  23864. }
  23865. .toolChild > div + div{
  23866. margin-top:5px;
  23867. }
  23868. .gjCss {
  23869. display: flex;
  23870. flex-direction: row;
  23871. flex-wrap: nowrap;
  23872. align-items: center;
  23873. padding: 10px 0 10px 40px;
  23874. box-sizing: border-box;
  23875. font-size: 14px;
  23876. cursor: pointer;
  23877. border-radius:5px;
  23878. }
  23879. .toolChild > div {
  23880. position: relative;
  23881. width:100%;
  23882. }
  23883. .toolChild > div::before {
  23884. /* content: "";
  23885. width: 15px;
  23886. height: 1px;
  23887. background: #cad1dc;
  23888. position: absolute;
  23889. top: 24px;
  23890. left: -20px;
  23891. display: block; */
  23892. }
  23893. .isGjCss {
  23894. /* color: #0061ff; */
  23895. color:#fff;
  23896. background: rgb(55, 129, 252);
  23897. /* background-color: #e0eafb !important;
  23898. color: #0061ff !important; */
  23899. }
  23900. .navItem {
  23901. background: #ffffff;
  23902. border-radius: 4px;
  23903. width: 100%;
  23904. margin: 10px auto;
  23905. position: relative;
  23906. height: 40px;
  23907. display: flex;
  23908. flex-direction: row;
  23909. flex-wrap: nowrap;
  23910. align-items: center;
  23911. }
  23912. .navItemList {
  23913. display: flex;
  23914. flex-direction: row;
  23915. flex-wrap: nowrap;
  23916. align-items: center;
  23917. padding: 0 13px;
  23918. cursor: pointer;
  23919. width: calc(100% - 60px);
  23920. height: 100%;
  23921. }
  23922. .navItemList > div:first-child {
  23923. /* min-width: 60px; */
  23924. min-width:fit-content;
  23925. }
  23926. .navItemList > div:last-child {
  23927. width: calc(100% - 80px);
  23928. white-space: nowrap;
  23929. overflow: hidden;
  23930. text-overflow: ellipsis;
  23931. word-break: break-word;
  23932. }
  23933. /* .isItemList > div {
  23934. color: #fff !important;
  23935. } */
  23936. .tool_work_box {
  23937. width: 100%;
  23938. padding: 0 37px 0;
  23939. box-sizing: border-box;
  23940. }
  23941. .tool_box {
  23942. width: 100%;
  23943. padding: 0 0 0 20px;
  23944. }
  23945. .tool_type_box {
  23946. display: flex;
  23947. flex-direction: row;
  23948. align-items: baseline;
  23949. flex-wrap: nowrap;
  23950. justify-content: flex-start;
  23951. position: relative;
  23952. }
  23953. .toolSort {
  23954. display: flex;
  23955. flex-direction: row;
  23956. flex-wrap: wrap;
  23957. justify-content: flex-start;
  23958. align-items: flex-start;
  23959. padding: 0 0 15px 0;
  23960. }
  23961. .toolSort > div {
  23962. margin: 0 10px 0 0;
  23963. width: 135px;
  23964. box-sizing: border-box;
  23965. border: 2px solid transparent;
  23966. }
  23967. .tools {
  23968. width: 100%;
  23969. display: flex;
  23970. flex-direction: column;
  23971. flex-wrap: nowrap;
  23972. align-items: flex-start;
  23973. }
  23974. .whiteBIcon {
  23975. width: fit-content;
  23976. cursor: pointer;
  23977. display: flex;
  23978. flex-direction: column;
  23979. flex-wrap: nowrap;
  23980. align-items: center;
  23981. font-size: 14px;
  23982. }
  23983. .tool:hover {
  23984. border: 2px solid #a5c7ff;
  23985. border-radius: 5px;
  23986. }
  23987. .whiteBIcon > img {
  23988. width: 65px;
  23989. height: 100%;
  23990. }
  23991. .whiteBIcon > img {
  23992. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23993. border-radius: 15px;
  23994. }
  23995. .check {
  23996. /* width: 20px;
  23997. height: 20px; */
  23998. cursor: pointer;
  23999. margin: 10px 0;
  24000. position: absolute;
  24001. right: 2px;
  24002. top: -5px;
  24003. }
  24004. .noChoose,
  24005. .isChoose {
  24006. width: 15px;
  24007. height: 15px;
  24008. border-radius: 50%;
  24009. border: 1px solid #adadad;
  24010. }
  24011. .isChoose {
  24012. border: 4px solid #0363ff !important;
  24013. width: 10px;
  24014. height: 10px;
  24015. }
  24016. .isToolChoose {
  24017. border: 2px solid #5394ff !important;
  24018. border-radius: 5px;
  24019. box-shadow: 0 0 6px 0px #5394ff;
  24020. }
  24021. .checkDiv {
  24022. display: flex;
  24023. align-items: center;
  24024. }
  24025. .checkDiv span {
  24026. margin-left: 5px;
  24027. color: #858585;
  24028. }
  24029. .check img {
  24030. width: 20px;
  24031. height: 20px;
  24032. }
  24033. .lockTaskIcon {
  24034. width: 20px;
  24035. height: 20px;
  24036. position: absolute;
  24037. right: 10px;
  24038. top: 5px;
  24039. }
  24040. .lockTaskIcon > img {
  24041. width: 100%;
  24042. height: 100%;
  24043. }
  24044. .pick_box {
  24045. display: flex;
  24046. align-items: flex-start;
  24047. flex-wrap: wrap;
  24048. }
  24049. .selectBox {
  24050. width: 110px;
  24051. margin-left: 10px;
  24052. margin: 0 10px 0 auto;
  24053. }
  24054. .selectBox >>> .el-input__inner {
  24055. height: 30px;
  24056. line-height: 30px;
  24057. }
  24058. .selectBox >>> .el-input__icon {
  24059. line-height: 30px;
  24060. }
  24061. .sentenceTitle {
  24062. display: flex;
  24063. flex-direction: row;
  24064. flex-wrap: nowrap;
  24065. align-items: center;
  24066. }
  24067. .sentenceTitle::before {
  24068. content: attr(index);
  24069. background: #3681fc;
  24070. border-radius: 50%;
  24071. color: #fff;
  24072. width: 25px;
  24073. height: 25px;
  24074. min-width: 25px;
  24075. min-height: 25px;
  24076. text-align: center;
  24077. line-height: 25px;
  24078. margin-right: 5px;
  24079. }
  24080. .hfBox {
  24081. padding: 10px;
  24082. box-sizing: border-box;
  24083. }
  24084. .whoReplyWho {
  24085. display: flex;
  24086. flex-direction: row;
  24087. flex-wrap: nowrap;
  24088. align-items: baseline;
  24089. justify-content: flex-start;
  24090. }
  24091. .hfBottom {
  24092. display: flex;
  24093. flex-direction: row;
  24094. flex-wrap: nowrap;
  24095. align-items: center;
  24096. justify-content: space-between;
  24097. font-size: 14px;
  24098. }
  24099. .deleteHfItem {
  24100. cursor: pointer;
  24101. width: 20px;
  24102. height: 20px;
  24103. }
  24104. .deleteHfItem > img {
  24105. width: 100%;
  24106. height: 100%;
  24107. }
  24108. .whoReplyWho > .hfImg {
  24109. width: 12px;
  24110. height: 12px;
  24111. margin: 0 5px;
  24112. }
  24113. .whoReplyWho > .hfImg > img {
  24114. width: 100%;
  24115. height: 100%;
  24116. }
  24117. .hfContent {
  24118. padding-top: 10px;
  24119. box-sizing: border-box;
  24120. display: -webkit-box;
  24121. overflow: hidden;
  24122. white-space: normal !important;
  24123. text-overflow: ellipsis;
  24124. word-wrap: break-word;
  24125. -webkit-box-orient: vertical;
  24126. }
  24127. .hfTime {
  24128. text-align: left;
  24129. box-sizing: border-box;
  24130. padding: 10px 0 10px 0px;
  24131. color: #bfbfbf;
  24132. font-size: 14px;
  24133. }
  24134. .btnAllNT {
  24135. position: fixed;
  24136. bottom: 100px;
  24137. right: 40px;
  24138. z-index: 999;
  24139. display: flex;
  24140. flex-direction: row;
  24141. }
  24142. .btnAllNT > img {
  24143. cursor: pointer;
  24144. width: 80px;
  24145. }
  24146. .toolMask {
  24147. position: fixed;
  24148. width: 100%;
  24149. height: 100%;
  24150. background: #3f3c3c;
  24151. opacity: 0.5;
  24152. top: 0;
  24153. left: 0;
  24154. z-index: 999;
  24155. }
  24156. .addToolCss {
  24157. position: fixed;
  24158. z-index: 999;
  24159. background: #fff;
  24160. right: 5%;
  24161. bottom: 18%;
  24162. min-width: 1035px;
  24163. min-height: 300px;
  24164. border-radius: 10px;
  24165. box-shadow: 0 0 8px 1px #b2b2b2;
  24166. }
  24167. .toolTop {
  24168. display: flex;
  24169. flex-direction: row;
  24170. flex-wrap: nowrap;
  24171. justify-content: space-between;
  24172. align-items: center;
  24173. padding: 20px;
  24174. }
  24175. .toolTop > div:nth-child(2) {
  24176. width: 15px;
  24177. height: 15px;
  24178. padding-right: 10px;
  24179. cursor: pointer;
  24180. }
  24181. .toolTop > div:nth-child(2) > img {
  24182. width: 100%;
  24183. height: 100%;
  24184. }
  24185. .fullStyle>>>.el-dialog__body {
  24186. height: calc(100% - 125px) !important;
  24187. box-sizing: border-box;
  24188. padding: 30px 0 !important;
  24189. background: #fff !important;
  24190. }
  24191. .fullStyle>>>.el-dialog {
  24192. width: 100% !important;
  24193. max-width: 100% !important;
  24194. height: 100% !important;
  24195. margin: 0 !important;
  24196. }
  24197. .fullStyle {
  24198. width: 100% !important;
  24199. max-width: 100% !important;
  24200. height: 100% !important;
  24201. margin: 0 auto !important;
  24202. }
  24203. .fullStyle>>>.el-dialog__footer{
  24204. background: #fff !important;
  24205. }
  24206. .engUpBox {
  24207. width: 100%;
  24208. height: 100%;
  24209. }
  24210. .engTitle,
  24211. .engText {
  24212. display: flex;
  24213. flex-direction: row;
  24214. flex-wrap: nowrap;
  24215. align-items: flex-start;
  24216. padding: 0 20px 20px 20px;
  24217. box-sizing: border-box;
  24218. }
  24219. .engTitle > .div:first-child,
  24220. .engText > div:first-child {
  24221. min-width: 75px;
  24222. }
  24223. .correctBox{
  24224. width: 100%;
  24225. display: flex;
  24226. flex-direction: row;
  24227. flex-wrap: nowrap;
  24228. align-items: flex-start;
  24229. }
  24230. .oldBox{
  24231. width: 50%;
  24232. height: 100%;
  24233. display: flex;
  24234. flex-direction: column;
  24235. flex-wrap: nowrap;
  24236. align-items: center;
  24237. border-top: 1px solid #d9d9d9;
  24238. border-left: 1px solid #d9d9d9;
  24239. border-right: 1px solid #d9d9d9;
  24240. }
  24241. .oldBox>div:first-child{
  24242. width: 100%;
  24243. text-align: center;
  24244. background: #d9d9d9;
  24245. height: 35px;
  24246. line-height: 35px;
  24247. font-weight: bold;
  24248. }
  24249. .oldText{
  24250. width: 100%;
  24251. height: calc(100% - 35px);
  24252. overflow: auto;
  24253. margin: 10px 0;
  24254. display: flex;
  24255. flex-direction: column;
  24256. flex-wrap: nowrap;
  24257. align-content: center;
  24258. align-items: center;
  24259. }
  24260. .detailBox{
  24261. width: 50%;
  24262. padding: 10px;
  24263. background: #f6f6f6;
  24264. border-radius: 5px;
  24265. }
  24266. .oldDetail,.oldDetail1{
  24267. padding-bottom: 30px;
  24268. }
  24269. .oldImg{
  24270. width:30px;
  24271. height: 30px;
  24272. }
  24273. .oldImg>img{
  24274. width: 100%;
  24275. height: 100%;
  24276. }
  24277. .allName{
  24278. min-width: 200px;
  24279. white-space: nowrap;
  24280. overflow: hidden;
  24281. text-overflow: ellipsis;
  24282. word-break: break-word;
  24283. cursor: pointer;
  24284. text-align: center;
  24285. border: 1px solid #bcc2cc;
  24286. box-sizing: border-box;
  24287. }
  24288. .engUpTop{
  24289. max-height: 300px;
  24290. overflow: auto;
  24291. }
  24292. .isUpdateToolDetailClass{
  24293. padding: 0 !important;
  24294. }
  24295. .isUpdateToolDetailClass textarea{
  24296. padding:12px;
  24297. font-size: 16px;
  24298. min-height:100%;
  24299. width: 100%;
  24300. box-sizing:border-box;
  24301. outline: none;
  24302. border:none;
  24303. line-height: 30px;
  24304. resize: none;
  24305. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24306. color: #838383;
  24307. }
  24308. .show_taskD {
  24309. min-width: fit-content;
  24310. margin-left: 10px;
  24311. display: flex;
  24312. align-items: center;
  24313. font-size: 14px;
  24314. cursor: pointer;
  24315. color: #717c8d;
  24316. }
  24317. .show_taskD > img {
  24318. width: 15px;
  24319. margin-right: 5px;
  24320. transition: 0.2s all;
  24321. transform: rotate(-90deg);
  24322. }
  24323. .show_taskD.show > img {
  24324. transform: rotate(0deg);
  24325. }
  24326. .correctCss{
  24327. position: absolute;
  24328. bottom: -70px;
  24329. background: #409eff;
  24330. color: #fff;
  24331. }
  24332. </style>