studyStudent.vue 882 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <span>随机码:{{ inviteCode }}</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="cru_selectBox">
  83. <div
  84. style="background: #fff; margin: 0 10px; border-radius: 8px"
  85. v-for="(item, stageIndex) in navList"
  86. :key="stageIndex"
  87. >
  88. <div
  89. class="stageBoxCss"
  90. @click="get(stageIndex)"
  91. :class="{
  92. // stageBoxIsCss: stageIndex == courseType,
  93. }"
  94. >
  95. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  96. <div>阶段{{ stageIndex + 1 }}</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="item.dyName"
  100. placement="top"
  101. >
  102. <div>
  103. {{ item.dyName }}
  104. </div>
  105. </el-tooltip>
  106. </div>
  107. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  108. <img src="../assets/icon/newIcons/downC.png" alt />
  109. </div> -->
  110. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  111. <img src="../assets/icon/newIcons/right.png" alt />
  112. </div>
  113. </div>
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType,
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  132. </div>
  133. <div
  134. class="closeTri1"
  135. v-else
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. >
  138. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  139. </div>
  140. </div>
  141. <div v-else class="noToolBlue"></div>
  142. <div
  143. @click="openTask(stageIndex, navIndex, nav.id)"
  144. class="navItemList"
  145. :class="{
  146. isItemList:
  147. navIndex == taskCount &&
  148. nav.id == navId &&
  149. stageIndex == courseType,
  150. }"
  151. >
  152. <div>任务{{ navIndex + 1 }}:</div>
  153. <el-tooltip
  154. effect="light"
  155. :content="nav.taskName"
  156. placement="top"
  157. >
  158. <div
  159. :style="{
  160. width:
  161. IsLookOpen &&
  162. !(
  163. navIndex == taskCount &&
  164. nav.id == navId &&
  165. stageIndex == courseType
  166. )
  167. ? 'calc(100% - 75px)'
  168. : 'auto',
  169. }"
  170. >
  171. {{ nav.taskName }}
  172. </div>
  173. </el-tooltip>
  174. </div>
  175. <div class="lockTaskIcon">
  176. <img
  177. src="../assets/lock.png"
  178. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  179. courseDetail.course_teacher.indexOf(userid) ==-1"
  180. alt=""
  181. />
  182. </div>
  183. </div>
  184. <div
  185. v-if="nav.tool[0].tool != undefined"
  186. class="toolChild"
  187. :class="{ toolActive: nav.isOpen }"
  188. >
  189. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  190. <div
  191. class="gjCss"
  192. :class="{ isGjCss: t.isTool }"
  193. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  194. >
  195. <div>工具{{ toolIndex + 1 }}:</div>
  196. <div v-if="t.tool == 58">模拟驾驶</div>
  197. <div v-if="t.tool == 59">路径搜索</div>
  198. <div v-if="t.tool == 60">深度学习</div>
  199. <div v-if="t.tool == 10">倒计时</div>
  200. <div v-if="t.tool == 65">挑人</div>
  201. <div v-if="t.tool == 7">思维网格</div>
  202. <div v-if="t.tool == 1">电子白板</div>
  203. <div v-if="t.tool == 52">文档</div>
  204. <div v-if="t.tool == 3">思维导图</div>
  205. <div v-if="t.tool == 48">表格</div>
  206. <div v-if="t.tool == 49">学生分组</div>
  207. <div v-if="t.tool == 4">问卷调查</div>
  208. <div v-if="t.tool == 45">选择题</div>
  209. <div v-if="t.tool == 15">问答</div>
  210. <div v-if="t.tool == 16">作业提交</div>
  211. <div v-if="t.tool == 50">批量上传</div>
  212. <div v-if="t.tool == 41">选择匹配</div>
  213. <div v-if="t.tool == 47">排序</div>
  214. <div v-if="t.tool == 40">个人评价</div>
  215. <div v-if="t.tool == 18">训练平台</div>
  216. <div v-if="t.tool == 21">AIoT Blockly</div>
  217. <div v-if="t.tool == 23">AI Python</div>
  218. <div v-if="t.tool == 24">AI Blockly</div>
  219. <div v-if="t.tool == 32">源码编辑</div>
  220. <div v-if="t.tool == 57">CocoPi</div>
  221. <div v-if="t.tool == 63">海龟编程</div>
  222. <div v-if="t.tool == 28">翻译</div>
  223. <div v-if="t.tool == 31">数字画板</div>
  224. <div v-if="t.tool == 39">GeoGebra</div>
  225. <div v-if="t.tool == 66">公式编辑</div>
  226. <div v-if="t.tool == 67">分子结构</div>
  227. <div v-if="t.tool == 68">时间轴</div>
  228. <div v-if="t.tool == 69">英语写作</div>
  229. <div v-if="t.tool == 70">英语口语</div>
  230. <div v-if="t.tool == 25">目标管理</div>
  231. <div v-if="t.tool == 26">课程设计</div>
  232. <div v-if="t.tool == 62">交互视频</div>
  233. <div v-if="t.tool == 71">AI智能体</div>
  234. <div v-if="t.tool == 72">应用中心</div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- :class="{ navLeftCss: !mlDialog }" -->
  244. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  245. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  246. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  247. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  248. <div>任务{{ taskCount + 1 }}</div>
  249. <el-tooltip
  250. effect="light"
  251. :content="
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  253. "
  254. placement="top"
  255. >
  256. <div>
  257. {{
  258. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  259. .task
  260. }}
  261. </div>
  262. </el-tooltip>
  263. </div>
  264. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  265. <div class="btnLeft">
  266. <el-tooltip effect="light" content="刷新" placement="top">
  267. <div class="reBtnIcon" @click="refreshCourse">
  268. <span>刷新</span>
  269. </div>
  270. </el-tooltip>
  271. <el-tooltip effect="light" content="评论" placement="top">
  272. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  273. <span>评论</span>
  274. </div>
  275. </el-tooltip>
  276. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  277. <el-tooltip effect="light" content="录制" placement="top">
  278. <div class="vedioIcon" @click="startRecording">
  279. <span>录制</span>
  280. </div>
  281. </el-tooltip>
  282. </div>
  283. <div v-else-if="tType == 1 || tType == 4">
  284. <el-tooltip effect="light" content="下载" placement="top">
  285. <div class="vedioIcon1" @click="stopRecording">
  286. <span>下载</span>
  287. </div>
  288. </el-tooltip>
  289. </div>
  290. </div>
  291. <div class="btnRight">
  292. <div
  293. class="last"
  294. @click="nextOrpreSteps(0)"
  295. v-if="!(IsFollow && tType == 2)"
  296. @mouseover="isHovered = true"
  297. @mouseout="isHovered = false"
  298. >
  299. <div class="lastImg">
  300. <img
  301. :src="
  302. isHovered
  303. ? require('../assets/icon/newIcons/whiteLast.png')
  304. : require('../assets/icon/newIcons/last.png')
  305. "
  306. alt=""
  307. />
  308. </div>
  309. <div class="lastText">上一步</div>
  310. </div>
  311. <div
  312. class="last"
  313. @click="nextOrpreSteps(1)"
  314. v-if="!(IsFollow && tType == 2)"
  315. @mouseover="isHovered1 = true"
  316. @mouseout="isHovered1 = false"
  317. >
  318. <div class="lastText">下一步</div>
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered1
  323. ? require('../assets/icon/newIcons/whiteNext.png')
  324. : require('../assets/icon/newIcons/next.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. </div>
  330. <div
  331. class="last"
  332. @click="juriVisible = true"
  333. v-if="tType == 1"
  334. @mouseover="isHovered2 = true"
  335. @mouseout="isHovered2 = false"
  336. >
  337. <div class="lastImg">
  338. <img
  339. :src="
  340. isHovered2
  341. ? require('../assets/icon/newIcons/whiteLock.png')
  342. : require('../assets/icon/newIcons/lock.png')
  343. "
  344. alt=""
  345. />
  346. </div>
  347. <div class="lastText">权限</div>
  348. </div>
  349. <div
  350. class="returnBtn1 returnIcon"
  351. @click.stop="
  352. goTo(
  353. '/courseDetail?userid=' +
  354. userid +
  355. '&oid=' +
  356. oid +
  357. '&org=' +
  358. org +
  359. '&cid=' +
  360. classId +
  361. '&courseId=' +
  362. id +
  363. '&tType=' +
  364. tType +
  365. '&screenType=' +
  366. screenType
  367. )
  368. "
  369. >
  370. <div class="lastImg">
  371. <img src="../assets/icon/newIcon/return.png" alt="" />
  372. </div>
  373. <div class="lastText" style="color: #000">返回</div>
  374. </div>
  375. </div>
  376. <!-- <div
  377. class="returnBtn lockIcon"
  378. @click="juriVisible = true"
  379. v-if="tType == 1"
  380. >
  381. 权限
  382. </div>
  383. <div
  384. class="returnBtn vedioIcon"
  385. @click="startRecording"
  386. v-if="!videoStart && (tType == 1 || tType == 4)"
  387. >
  388. 录制
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="stopRecording"
  393. v-else-if="tType == 1 || tType == 4"
  394. style="background: #ee5255"
  395. >
  396. 下载
  397. </div>
  398. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  399. 评论
  400. </div>
  401. <div
  402. class="returnBtn"
  403. @click="nextOrpreSteps(0)"
  404. v-if="!(IsFollow && tType == 2)"
  405. >
  406. 上一步
  407. </div>
  408. <div
  409. class="returnBtn"
  410. @click="nextOrpreSteps(1)"
  411. v-if="!(IsFollow && tType == 2)"
  412. >
  413. 下一步
  414. </div>
  415. <div class="returnBtn" @click="refreshCourse">刷新</div>
  416. <div
  417. class="returnBtn returnIcon"
  418. @click.stop="
  419. goTo(
  420. '/courseDetail?userid=' +
  421. userid +
  422. '&oid=' +
  423. oid +
  424. '&org=' +
  425. org +
  426. '&cid=' +
  427. classId +
  428. '&courseId=' +
  429. id +
  430. '&tType=' +
  431. tType +
  432. '&screenType=' +
  433. screenType
  434. )
  435. "
  436. >
  437. 返回
  438. </div> -->
  439. </div>
  440. </div>
  441. <div
  442. class="isNoMessage"
  443. v-if="
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .chapterData.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .toolChoose[0].tool.length == 0 &&
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail == '' &&
  450. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .eList &&
  452. !(
  453. courseDetail.userid == userid ||
  454. (courseDetail.course_teacher &&
  455. courseDetail.course_teacher.indexOf(userid) != -1)
  456. )
  457. "
  458. >
  459. <img src="../assets/icon/isNoMessage.png" alt />
  460. </div>
  461. <div class="study_top" :class="{ pzClass: pzDialog }">
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[taskCount].length > 0 ||
  468. fileC[taskCount].length > 0
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail != ''
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail
  502. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div>
  510. <div
  511. class="student_head"
  512. v-if="
  513. vChapterData[taskCount].length > 0 ||
  514. fileC[taskCount].length > 0
  515. "
  516. >
  517. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  518. <div
  519. :class="
  520. contentDialog == false
  521. ? 'box_course isContentCss'
  522. : 'box_course'
  523. "
  524. v-if="
  525. vChapterData.length > 0 &&
  526. vChapterData[taskCount] &&
  527. showType !== ''
  528. "
  529. >
  530. <div class="wheel" style="height: auto" v-if="showType === 0">
  531. <div
  532. class="workd_media"
  533. style="height: 650px; width: calc(100% - 50px)"
  534. >
  535. <video-player
  536. class="video-player vjs-custom-skin"
  537. :class="contentDialog == false ? 'isAllWidth' : ''"
  538. :playsinline="true"
  539. :options="playerO[taskCount]"
  540. @play="onPlayerPlay($event)"
  541. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  542. ></video-player>
  543. </div>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="showType == 1"
  548. style="
  549. box-shadow: 0 0 6px 1px #f2f2f2;
  550. width: 95%;
  551. margin: 0 auto;
  552. background: #f1f1f1;
  553. "
  554. >
  555. <div class="title">查看文档</div>
  556. <el-form class="textBox">
  557. <el-form-item class="textTitle">
  558. <div style="font-size: 22px">
  559. {{ text.name }}
  560. </div>
  561. </el-form-item>
  562. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  563. <div v-html="text.url" class="textContent cont"></div>
  564. </el-form>
  565. </div>
  566. <div
  567. class="wheel"
  568. v-if="
  569. pptImgUrl1.indexOf(
  570. 'https://view.officeapps.live.com/op/view.aspx?src='
  571. ) != -1 && showType == 2
  572. "
  573. style="width: 95%; margin: 0 auto"
  574. >
  575. <iframe
  576. style="width: 100%; height: 100%; border: none"
  577. :src="pptImgUrl1"
  578. ></iframe>
  579. </div>
  580. <div
  581. class="wheel"
  582. v-else-if="showType == 2"
  583. style="width: 95%; margin: 0 auto"
  584. >
  585. <iframe
  586. style="width: 100%; height: 100%; border: none"
  587. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  588. :key="diffKey"
  589. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  590. :src="pptImgUrl1"
  591. ></iframe>
  592. <iframe
  593. style="width: 100%; height: 100%; border: none"
  594. security="restricted"
  595. v-else
  596. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  597. :src="pptImgUrl1"
  598. ></iframe>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="showType === 16"
  603. style="width: 95%; margin: 0 auto"
  604. >
  605. <iframe
  606. style="width: 100%; height: 100%; border: none"
  607. :src="pptImgUrl1"
  608. ></iframe>
  609. </div>
  610. <div
  611. class="wheel"
  612. v-if="showType == 3"
  613. style="width: 95%; margin: 0 auto"
  614. >
  615. <pdf
  616. :pdfUrl="pptImgUrl1"
  617. style="width: 100%; height: 100%; overflow: auto"
  618. ></pdf>
  619. </div>
  620. <div
  621. class="wheel"
  622. v-if="showType == 4"
  623. style="width: 95%; margin: 0 auto"
  624. >
  625. <el-image
  626. :src="pptImgUrl1"
  627. fit="contain"
  628. style="width: 100%; height: 100%; cursor: pointer"
  629. @click="previewImg(pptImgUrl1)"
  630. ></el-image>
  631. </div>
  632. </div>
  633. <div
  634. class="pButton"
  635. style="position: absolute; right: 20px; top: 0; z-index: 998"
  636. v-if="!contentDialog"
  637. @click="setContent(true)"
  638. >
  639. <!-- 批 -->
  640. <img
  641. src="../assets/icon/newIcons/isLeft.png"
  642. style="width: 45px"
  643. alt=""
  644. />
  645. </div>
  646. <div
  647. v-if="contentDialog == true"
  648. :style="{
  649. width:
  650. (vChapterData[taskCount].length > 0 ||
  651. fileC[taskCount].length > 0) &&
  652. showType === ''
  653. ? 'calc(100%)'
  654. : '300px',
  655. margin:
  656. (vChapterData[taskCount].length > 0 ||
  657. fileC[taskCount].length > 0) &&
  658. showType === ''
  659. ? '0 15px'
  660. : '0 15px 0 0',
  661. }"
  662. >
  663. <div
  664. class="vedioList"
  665. v-if="
  666. vChapterData[taskCount].length > 0 ||
  667. fileC[taskCount].length > 0
  668. "
  669. style="height: 650px"
  670. >
  671. <div class="navCorOpenBox">
  672. <div class="navTitile">内容列表:</div>
  673. <div class="navCorOpen" @click="setContent(false)">
  674. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  675. </div>
  676. </div>
  677. <div class="navBox">
  678. <div
  679. v-show="
  680. vChapterData[taskCount].length > 0 ||
  681. fileC[taskCount].length > 0
  682. "
  683. style="padding: 10px 0 25px 0"
  684. >
  685. <div
  686. class="vedioTimeBox"
  687. v-for="(vitem, vindex) in vChapterData[taskCount]"
  688. :key="vindex + '1'"
  689. >
  690. <div class="navListItem" v-if="vitem.type == 2">
  691. <div
  692. @click="lookVedio(vitem.url, vindex)"
  693. class="navText"
  694. :class="isClickNav == vindex ? 'isClickNav' : ''"
  695. >
  696. <span v-if="vitem.text">{{ vitem.text }}-</span
  697. >{{ vitem.name }}
  698. </div>
  699. <div class="downIcon" @click="downloadFile2(vitem)">
  700. <img src="../assets/icon/newIcon/down.png" alt />
  701. </div>
  702. </div>
  703. <div class="navListItem" v-if="vitem.type == 6">
  704. <div
  705. @click="lookText(taskCount, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. {{ vitem.name }}.doc
  710. </div>
  711. <div
  712. class="downIcon"
  713. @click="checkFileFull1(vitem.type, vitem)"
  714. >
  715. <img
  716. src="../assets/icon/newIcon/allScreen.png"
  717. alt
  718. />
  719. </div>
  720. </div>
  721. <div
  722. class="navListItem"
  723. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  724. >
  725. <div
  726. @click="doUrl(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. {{ vitem.title ? vitem.title : vitem.url }}
  731. </div>
  732. <div
  733. class="downIcon"
  734. @click="checkFileFull1(vitem.type, vitem)"
  735. >
  736. <img
  737. src="../assets/icon/newIcon/allScreen.png"
  738. alt
  739. />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 3">
  743. <div
  744. @click="downFile(vitem, vindex)"
  745. class="navText"
  746. :class="isClickNav == vindex ? 'isClickNav' : ''"
  747. >
  748. <span v-if="vitem.text">{{ vitem.text }}-</span
  749. >{{ vitem.name }}
  750. </div>
  751. <div
  752. class="downIcon"
  753. @click="checkFileFull1(vitem.type, vitem)"
  754. >
  755. <img
  756. src="../assets/icon/newIcon/allScreen.png"
  757. alt
  758. />
  759. </div>
  760. <div class="downIcon" @click="downloadFile2(vitem)">
  761. <img src="../assets/icon/newIcon/down.png" alt />
  762. </div>
  763. </div>
  764. <div class="navListItem" v-if="vitem.type == 12">
  765. <div class="navText" @click="downloadFile2(vitem)">
  766. <span v-if="vitem.text">{{ vitem.text }}-</span
  767. >{{ vitem.name }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. <div class="downIcon" @click="downloadFile2(vitem)">
  779. <img src="../assets/icon/newIcon/down.png" alt />
  780. </div>
  781. </div>
  782. <div class="navListItem" v-if="vitem.type == 13">
  783. <div
  784. class="navText"
  785. @click="checkPhoto(vitem, vindex)"
  786. :class="isClickNav == vindex ? 'isClickNav' : ''"
  787. >
  788. {{ vitem.name }}
  789. </div>
  790. <div class="downIcon" @click="downloadFile2(vitem)">
  791. <img src="../assets/icon/newIcon/down.png" alt />
  792. </div>
  793. </div>
  794. <div class="navListItem" v-if="vitem.type == 16">
  795. <div
  796. class="navText"
  797. @click="checkHtml(vitem, vindex)"
  798. :class="isClickNav == vindex ? 'isClickNav' : ''"
  799. >
  800. {{ vitem.name }}
  801. </div>
  802. <div
  803. class="downIcon"
  804. @click="checkFileFull1(vitem.type, vitem)"
  805. >
  806. <img
  807. src="../assets/icon/newIcon/allScreen.png"
  808. alt
  809. />
  810. </div>
  811. </div>
  812. </div>
  813. <div
  814. class="fileC_box"
  815. v-if="fileC[taskCount].length > 0"
  816. >
  817. <div class="fileC_title">以下文件不支持预览</div>
  818. <div
  819. class="vedioTimeBox"
  820. v-for="(vitem, vindex) in fileC[taskCount]"
  821. :key="vindex + '1'"
  822. >
  823. <div class="navListItem" v-if="vitem.type == 12">
  824. <div class="navText" style="color: #acb4bf">
  825. <span v-if="vitem.text">{{ vitem.text }}-</span
  826. >{{ vitem.name }}
  827. </div>
  828. <div
  829. class="downIcon"
  830. @click="downloadFile2(vitem)"
  831. >
  832. <img
  833. src="../assets/icon/newIcon/down.png"
  834. alt
  835. />
  836. </div>
  837. </div>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. <div style="width: calc(100% - 315px)">
  846. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  847. <!-- <el-button
  848. type="primary"
  849. class="newButton"
  850. @click="checkFileFull(showType, pptImgUrl1)"
  851. >全屏查看</el-button
  852. >
  853. <el-button
  854. type="primary"
  855. class="newButton"
  856. @click="downloadFile(pptImgUrl1)"
  857. v-if="showType != 2"
  858. >文件下载</el-button
  859. > -->
  860. <el-button
  861. class="newButton"
  862. v-if="
  863. showType == 2 &&
  864. pptImgUrl1.indexOf(
  865. 'https://view.officeapps.live.com/op/view.aspx?src='
  866. ) == -1
  867. "
  868. type="primary"
  869. @click="openLine(pptImgUrl1)"
  870. >打开链接
  871. </el-button>
  872. </div>
  873. <!-- <div
  874. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  875. v-if="showType == 1"
  876. >
  877. <el-button
  878. type="primary"
  879. class="newButton"
  880. @click="checkFileFull(showType, text)"
  881. >全屏查看</el-button
  882. >
  883. </div> -->
  884. </div>
  885. </div>
  886. </div>
  887. <div class="student_body" v-resize="resize">
  888. <div
  889. class="vedioBox"
  890. :style="{
  891. borderRadius:
  892. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  893. .taskDetail == '' &&
  894. vChapterData[taskCount].length == 0 &&
  895. fileC[taskCount].length == 0
  896. ? '0 0 20px 20px'
  897. : '20px',
  898. }"
  899. v-if="
  900. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  901. .toolChoose[0].tool &&
  902. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  903. .toolChoose[0].tool.length > 0
  904. "
  905. >
  906. <div
  907. class="toolHeng2"
  908. style="position: relative"
  909. v-if="
  910. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  911. .toolChoose[0].tool &&
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool.length &&
  914. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  915. .toolChoose[0].tool.length > 0
  916. "
  917. >
  918. <div class="workNav">工作区</div>
  919. <div
  920. class="filebox"
  921. style="flex-wrap: nowrap"
  922. v-for="(tool, toolIndex) in chapInfoList[courseType]
  923. .chapterInfo[0].taskJson[taskCount].toolChoose"
  924. :key="toolIndex"
  925. >
  926. <div class="bzBox">
  927. <div class="yCss"></div>
  928. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  929. 工具{{ toolIndex + 1 }}
  930. </div>
  931. <div
  932. v-if="timeWorkList[toolIndex].length > 0"
  933. style="margin: 0 0 0 10px"
  934. >
  935. {{
  936. timeWorkList[toolIndex][0].time
  937. ? "时间:" + timeWorkList[toolIndex][0].time
  938. : ""
  939. }}
  940. </div>
  941. </div>
  942. <div class="toolBox">
  943. <div>
  944. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  945. :key="indexTool"-->
  946. <!-- <div class="iframeBox">
  947. <div
  948. class="addPoint isBorder"
  949. v-for="(tooC, toolCIndex) in tool.tool"
  950. :key="toolCIndex"
  951. >
  952. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  953. <div
  954. class="iframeName"
  955. >
  956. 电子白板
  957. </div>
  958. <iframe
  959. src="https://iwb.cocorobo.cn/"
  960. ref="whiteBoard"
  961. ></iframe>
  962. </div>
  963. </div>
  964. </div>-->
  965. <div class="noiframeBox">
  966. <div
  967. class="addPoint"
  968. v-for="(tooC, toolCIndex) in tool.tool"
  969. :key="toolCIndex"
  970. >
  971. <div v-if="tooC == 1">
  972. <img
  973. src="../assets/icon/secondToolList/whiteBoard.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">电子白板</div>
  978. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  979. style="position: absolute;right: 33px;top: -30px;">
  980. 分析
  981. </div>
  982. </div>
  983. <div v-if="tooC == 3">
  984. <img
  985. src="../assets/icon/secondToolList/mindMapping.png"
  986. alt
  987. @click="addTools(tooC, toolIndex, taskCount)"
  988. />
  989. <div style="margin: 5px 0">思维导图</div>
  990. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  991. style="position: absolute;right: 33px;top: -30px;">
  992. 分析
  993. </div>
  994. </div>
  995. <div v-if="tooC == 6">
  996. <img
  997. src="../assets/icon/secondToolList/doc.png"
  998. alt
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. />
  1001. <div style="margin: 5px 0">协同文档</div>
  1002. </div>
  1003. <div v-if="tooC == 7">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindNetwork.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">思维网格</div>
  1010. <!-- && worksStudent[toolIndex].length>0 -->
  1011. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1012. style="position: absolute;right: 33px;top: -30px;">
  1013. 分析
  1014. </div>
  1015. </div>
  1016. <div v-if="tooC == 8">
  1017. <img
  1018. src="../assets/icon/secondToolList/library.png"
  1019. alt
  1020. @click="addTools(tooC, toolIndex, taskCount)"
  1021. />
  1022. <div style="margin: 5px 0">素材库</div>
  1023. </div>
  1024. <div v-if="tooC == 17">
  1025. <img
  1026. src="../assets/icon/secondToolList/library.png"
  1027. alt
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. />
  1030. <div style="margin: 5px 0">学习资料</div>
  1031. </div>
  1032. <div v-if="tooC == 2">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../assets/icon/secondToolList/note.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">便签</div>
  1039. </div>
  1040. <div v-if="tooC == 4">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../assets/icon/thirdToolList/ask.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">问卷调查</div>
  1047. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1048. style="position: absolute;right: 153px;top: -30px;">
  1049. 分析
  1050. </div>
  1051. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 统计分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 45">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../assets/icon/thirdToolList/choose.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">选择题</div>
  1063. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1064. style="position: absolute;right: 33px;top: -30px;">
  1065. 分析
  1066. </div>
  1067. </div>
  1068. <!-- <div v-if="tooC == 5">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../assets/icon/thirdToolList/score.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">量规评分</div>
  1075. </div> -->
  1076. <div v-if="tooC == 10">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/time.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">倒计时</div>
  1083. </div>
  1084. <div v-if="tooC == 15">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../assets/icon/thirdToolList/answer.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">问答</div>
  1091. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1092. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1093. 分析
  1094. </div>
  1095. </div>
  1096. <div v-if="tooC == 26">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/courseDesign.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">课程设计</div>
  1103. </div>
  1104. <div v-if="tooC == 18">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/trainPlatform.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">训练服务器</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1112. style="position: absolute;right: 33px;top: -30px;">
  1113. 分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 16">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../assets/icon/thirdToolList/work.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">作业提交</div>
  1123. </div>
  1124. <div v-if="tooC == 50">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../assets/icon/thirdToolList/plwork.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">批量上传</div>
  1131. </div>
  1132. <div v-if="tooC == 21">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../assets/icon/fourthToolList/program.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">AIoT Blockly</div>
  1139. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1140. style="position: absolute;right: 33px;top: -30px;">
  1141. 分析
  1142. </div>
  1143. </div>
  1144. <!-- <div v-if="tooC == 22">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../assets/icon/fourthToolList/program.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">AI体验</div>
  1151. </div> -->
  1152. <div v-if="tooC == 23">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">AI Python</div>
  1159. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1160. style="position: absolute;right: 33px;top: -30px;">
  1161. 分析
  1162. </div>
  1163. </div>
  1164. <div v-if="tooC == 24">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/fourthToolList/AIprogram.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">AI Blockly</div>
  1171. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1172. style="position: absolute;right: 33px;top: -30px;">
  1173. 分析
  1174. </div>
  1175. </div>
  1176. <div v-if="tooC == 25">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../assets/icon/thirdToolList/evalua.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">目标管理</div>
  1183. </div>
  1184. <div v-if="tooC == 31">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../assets/icon/secondToolList/networkPanel.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">数学画板</div>
  1191. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1192. style="position: absolute;right: 33px;top: -30px;">
  1193. 分析
  1194. </div>
  1195. </div>
  1196. <div v-if="tooC == 28">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/secondToolList/translation.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">翻译</div>
  1203. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1204. style="position: absolute;right: 33px;top: -30px;">
  1205. 分析
  1206. </div>
  1207. </div>
  1208. <div v-if="tooC == 37">
  1209. <img
  1210. @click="addTools(tooC, toolIndex, taskCount)"
  1211. src="../assets/icon/secondToolList/mohe.png"
  1212. alt
  1213. />
  1214. <div style="margin: 5px 0">魔盒识字</div>
  1215. </div>
  1216. <div v-if="tooC == 38">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../assets/icon/secondToolList/24game.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">24点</div>
  1223. </div>
  1224. <div v-if="tooC == 39">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../assets/icon/secondToolList/GeoGebra.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">GeoGebra</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 32">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/thirdToolList/code.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">源码编辑</div>
  1243. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1244. style="position: absolute;right: 153px;top: -42px;">
  1245. 分析
  1246. </div>
  1247. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1248. style="position: absolute;left: 110px;bottom: 30px;">
  1249. 上传文件
  1250. <input type="file" accept="*" style="display: none"
  1251. @change="beforeUpload1($event, 7, toolIndex)" />
  1252. </div> -->
  1253. </div>
  1254. <div v-if="tooC == 40">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../assets/icon/secondToolList/eval.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">个人评价</div>
  1261. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1262. style="position: absolute;right: 33px;top: -30px;">
  1263. 分析
  1264. </div>
  1265. </div>
  1266. <div v-if="tooC == 41">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../assets/icon/thirdToolList/select.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">选择匹配</div>
  1273. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1274. style="position: absolute;right: 33px;top: -30px;">
  1275. 分析
  1276. </div>
  1277. </div>
  1278. <div v-if="tooC == 44">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../assets/icon/thirdToolList/hanClass.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">汉字宫</div>
  1285. </div>
  1286. <div v-if="tooC == 47">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../assets/icon/fourthToolList/conSentences.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">排序</div>
  1293. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1294. style="position: absolute;right: 33px;top: -30px;">
  1295. 分析
  1296. </div>
  1297. </div>
  1298. <div v-if="tooC == 48">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../assets/icon/fourthToolList/table.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">表格</div>
  1305. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1306. style="position: absolute;right: 33px;top: -30px;">
  1307. 分析
  1308. </div>
  1309. </div>
  1310. <div v-if="tooC == 52">
  1311. <img
  1312. @click="addTools(tooC, toolIndex, taskCount)"
  1313. src="../assets/icon/fourthToolList/text.png"
  1314. alt
  1315. />
  1316. <div style="margin: 5px 0">文档</div>
  1317. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1318. style="position: absolute;right: 33px;top: -30px;">
  1319. 分析
  1320. </div>
  1321. </div>
  1322. <div v-if="tooC == 49">
  1323. <img
  1324. @click="addTools(tooC, toolIndex, taskCount)"
  1325. src="../assets/icon/fourthToolList/group.png"
  1326. alt
  1327. />
  1328. <div style="margin: 5px 0">学生分组</div>
  1329. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1330. style="position: absolute;right: 33px;top: -30px;">
  1331. 分析
  1332. </div>
  1333. </div>
  1334. <div v-if="tooC == 57">
  1335. <img
  1336. @click="addTools(tooC, toolIndex, taskCount)"
  1337. src="../assets/icon/fourthToolList/cocopi.png"
  1338. alt
  1339. />
  1340. <div style="margin: 5px 0">CocoPi</div>
  1341. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1342. style="position: absolute;right: 33px;top: -30px;">
  1343. 分析
  1344. </div>
  1345. </div>
  1346. <div v-if="tooC == 58">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../assets/icon/fourthToolList/car.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">模拟驾驶</div>
  1353. </div>
  1354. <div v-if="tooC == 59">
  1355. <img
  1356. @click="addTools(tooC, toolIndex, taskCount)"
  1357. src="../assets/icon/fourthToolList/lineSearch.png"
  1358. alt
  1359. />
  1360. <div style="margin: 5px 0">路径搜索</div>
  1361. </div>
  1362. <div v-if="tooC == 60">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../assets/icon/fourthToolList/deepLearning.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">深度学习</div>
  1369. </div>
  1370. <div v-if="tooC == 61">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../assets/icon/fourthToolList/allHistory.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">全历史</div>
  1377. </div>
  1378. <div v-if="tooC == 62">
  1379. <img
  1380. @click="addTools(tooC, toolIndex, taskCount)"
  1381. src="../assets/icon/fourthToolList/interVideo.png"
  1382. alt
  1383. />
  1384. <div style="margin: 5px 0">交互视频</div>
  1385. </div>
  1386. <div v-if="tooC == 63">
  1387. <img
  1388. @click="addTools(tooC, toolIndex, taskCount)"
  1389. src="../assets/icon/fourthToolList/Wood.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">海龟编程</div>
  1393. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1394. style="position: absolute;right: 33px;top: -30px;">
  1395. 分析
  1396. </div>
  1397. </div>
  1398. <div v-if="tooC == 71">
  1399. <img
  1400. @click="addTools(tooC, toolIndex, taskCount)"
  1401. src="../assets/icon/fourthToolList/chatgpt.png"
  1402. alt
  1403. />
  1404. <div style="margin: 5px 0">AI智能体</div>
  1405. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1406. style="position: absolute;right: 33px;top: -30px;">
  1407. 分析
  1408. </div>
  1409. </div>
  1410. <div v-if="tooC == 72">
  1411. <img
  1412. style="height: 85px;object-fit: cover;"
  1413. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1414. @click="addTools(tooC, toolIndex, taskCount)"
  1415. :src="tool.appJson.json.icon"
  1416. alt
  1417. />
  1418. <img
  1419. v-else
  1420. @click="addTools(tooC, toolIndex, taskCount)"
  1421. src="../assets/icon/firstToolList/appStore.png"
  1422. alt
  1423. />
  1424. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1425. <!-- content to trigger tooltip here -->
  1426. <div class="Ovh">
  1427. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1428. </div>
  1429. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1430. style="position: absolute;right: 33px;top: -30px;">
  1431. 分析
  1432. </div>
  1433. </el-tooltip>
  1434. </div>
  1435. <div v-if="tooC == 65">
  1436. <img
  1437. @click="addTools(tooC, toolIndex, taskCount)"
  1438. src="../assets/icon/firstToolList/pickPeople.png"
  1439. alt
  1440. />
  1441. <div style="margin: 5px 0">挑人</div>
  1442. </div>
  1443. <div v-if="tooC == 66">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../assets/icon/secondToolList/formulaEdi.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">公式编辑</div>
  1450. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1451. style="position: absolute;right: 33px;top: -30px;">
  1452. 分析
  1453. </div>
  1454. </div>
  1455. <div v-if="tooC == 67">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../assets/icon/secondToolList/molStr.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">分子结构</div>
  1462. </div>
  1463. <div v-if="tooC == 68">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../assets/icon/secondToolList/timeAxis.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">时间轴</div>
  1470. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div> -->
  1474. </div>
  1475. <div v-if="tooC == 69">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../assets/icon/secondToolList/english.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">英语写作</div>
  1482. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1483. style="position: absolute;right: 33px;top: -30px;">
  1484. 分析
  1485. </div>
  1486. </div>
  1487. <div v-if="tooC == 70">
  1488. <img
  1489. @click="addTools(tooC, toolIndex, taskCount)"
  1490. src="../assets/icon/thirdToolList/englishVoice.png"
  1491. alt
  1492. />
  1493. <div style="margin: 5px 0">英语口语</div>
  1494. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1495. style="position: absolute;right: 33px;top: -30px;">
  1496. 分析
  1497. </div>
  1498. </div>
  1499. </div>
  1500. </div>
  1501. </div>
  1502. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1503. <!-- <div class="toolTitle">工具描述</div> -->
  1504. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1505. <div style="height:100%;"
  1506. v-html="renderedFormula(tool.toolDetail)"
  1507. v-if="toolDetailIndex != toolIndex"
  1508. ></div>
  1509. <div v-else @click.stop="" style="height:100%;">
  1510. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1511. </div>
  1512. </div>
  1513. <el-button
  1514. type="primary"
  1515. v-if="tool.tool[0] == 32"
  1516. style="position: absolute; right: 30px; top: -45px"
  1517. @click="addImg($event)"
  1518. >上传作业<input
  1519. type="file"
  1520. accept="*"
  1521. style="display: none"
  1522. @change="beforeUpload1($event, 7, toolIndex)"
  1523. /></el-button>
  1524. <el-button
  1525. type="primary"
  1526. v-if="tool.tool[0] == 15"
  1527. style="position: absolute; right: 30px; top: -45px"
  1528. @click="openWordCloud(toolIndex)"
  1529. >生成词云</el-button
  1530. >
  1531. <el-button
  1532. type="primary"
  1533. v-if="
  1534. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1535. "
  1536. style="position: absolute; right: 30px; top: -45px"
  1537. @click="uploadWorks(toolIndex)"
  1538. >导出作业</el-button
  1539. >
  1540. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1541. position: absolute;
  1542. right: 30px;
  1543. transform: translateY(-130%);
  1544. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1545. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1546. </div>
  1547. <div
  1548. v-if="
  1549. tType &&
  1550. tType == 2 &&
  1551. !sIsOpen &&
  1552. tool.tool.indexOf(16) != -1
  1553. "
  1554. class="worksBox"
  1555. >
  1556. <div
  1557. class="zuoyeYulan"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <span class="worksTitle">作业预览</span>
  1561. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1562. </div>
  1563. <div
  1564. class="worksDetailBox"
  1565. v-if="workStudent[toolIndex].length > 0"
  1566. >
  1567. <div
  1568. class="works"
  1569. style="
  1570. width: 200px;
  1571. height: 140px;
  1572. margin: 10px 10px 10px 0;
  1573. box-shadow: 0 0 6px 1px #dfdada;
  1574. "
  1575. v-for="(w, wIndex) in workStudent[toolIndex]"
  1576. :key="wIndex"
  1577. >
  1578. <div class="workImg" v-if="w.type == 0">
  1579. <img
  1580. :src="w.works"
  1581. @click="previewImg(w.works,w)"
  1582. alt
  1583. />
  1584. <div
  1585. class="answerScore"
  1586. v-if="w.score"
  1587. @click.stop="openScore(w)"
  1588. :class="{
  1589. rightW:
  1590. w.userid == userid || tType == 1 || tType == 4,
  1591. }"
  1592. >
  1593. {{ JSON.parse(w.score).wScore }}分
  1594. </div>
  1595. <div
  1596. class="answerScore"
  1597. @click.stop="openScore(w)"
  1598. v-else-if="courseDetail.userid == userid"
  1599. :class="{
  1600. rightW:
  1601. w.userid == userid || tType == 1 || tType == 4,
  1602. }"
  1603. >
  1604. 评分
  1605. </div>
  1606. <img
  1607. class="deleteImg"
  1608. src="../assets/deleteworks.png"
  1609. v-if="
  1610. w.userid == userid || tType == 1 || tType == 4
  1611. "
  1612. @click.stop="deleteWorks(w.wid)"
  1613. alt
  1614. />
  1615. </div>
  1616. <div class="workImg" v-if="w.type == 1">
  1617. <img :src="word" @click="openFile(w.works,w)" alt />
  1618. <div
  1619. class="answerScore"
  1620. v-if="w.score"
  1621. @click.stop="openScore(w)"
  1622. :class="{
  1623. rightW:
  1624. w.userid == userid || tType == 1 || tType == 4,
  1625. }"
  1626. >
  1627. {{ JSON.parse(w.score).wScore }}分
  1628. </div>
  1629. <div
  1630. class="answerScore"
  1631. @click.stop="openScore(w)"
  1632. v-else-if="courseDetail.userid == userid"
  1633. :class="{
  1634. rightW:
  1635. w.userid == userid || tType == 1 || tType == 4,
  1636. }"
  1637. >
  1638. 评分
  1639. </div>
  1640. <img
  1641. class="deleteImg"
  1642. src="../assets/deleteworks.png"
  1643. v-if="
  1644. w.userid == userid || tType == 1 || tType == 4
  1645. "
  1646. @click.stop="deleteWorks(w.wid)"
  1647. alt
  1648. />
  1649. </div>
  1650. <div class="workImg" v-if="w.type == 3">
  1651. <img
  1652. style="cursor: pointer"
  1653. :src="video"
  1654. @click="openVideo(w)"
  1655. alt
  1656. />
  1657. <div
  1658. class="answerScore"
  1659. v-if="w.score"
  1660. @click.stop="openScore(w)"
  1661. :class="{
  1662. rightW:
  1663. w.userid == userid || tType == 1 || tType == 4,
  1664. }"
  1665. >
  1666. {{ JSON.parse(w.score).wScore }}分
  1667. </div>
  1668. <div
  1669. class="answerScore"
  1670. @click.stop="openScore(w)"
  1671. v-else-if="courseDetail.userid == userid"
  1672. :class="{
  1673. rightW:
  1674. w.userid == userid || tType == 1 || tType == 4,
  1675. }"
  1676. >
  1677. 评分
  1678. </div>
  1679. <img
  1680. class="deleteImg"
  1681. src="../assets/deleteworks.png"
  1682. v-if="
  1683. w.userid == userid || tType == 1 || tType == 4
  1684. "
  1685. @click.stop="deleteWorks(w.wid)"
  1686. alt
  1687. />
  1688. </div>
  1689. <div class="workImg" v-if="w.type == 12">
  1690. <img
  1691. style="cursor: pointer"
  1692. :src="word2"
  1693. @click="downloadFile(w.works,w.userid)"
  1694. alt
  1695. />
  1696. <div
  1697. class="answerScore"
  1698. v-if="w.score"
  1699. @click.stop="openScore(w)"
  1700. :class="{
  1701. rightW:
  1702. w.userid == userid || tType == 1 || tType == 4,
  1703. }"
  1704. >
  1705. {{ JSON.parse(w.score).wScore }}分
  1706. </div>
  1707. <div
  1708. class="answerScore"
  1709. @click.stop="openScore(w)"
  1710. v-else-if="courseDetail.userid == userid"
  1711. :class="{
  1712. rightW:
  1713. w.userid == userid || tType == 1 || tType == 4,
  1714. }"
  1715. >
  1716. 评分
  1717. </div>
  1718. <img
  1719. class="deleteImg"
  1720. src="../assets/deleteworks.png"
  1721. v-if="
  1722. w.userid == userid || tType == 1 || tType == 4
  1723. "
  1724. @click.stop="deleteWorks(w.wid)"
  1725. alt
  1726. />
  1727. </div>
  1728. <div class="worksName">
  1729. <div>{{ w.sName }}</div>
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. <div
  1735. v-if="
  1736. tType &&
  1737. tType == 2 &&
  1738. !sIsOpen &&
  1739. tool.tool.indexOf(32) != -1
  1740. "
  1741. class="worksBox"
  1742. >
  1743. <div
  1744. class="zuoyeYulan"
  1745. v-if="workStudent[toolIndex].length > 0"
  1746. >
  1747. <span class="worksTitle">作业预览</span>
  1748. </div>
  1749. <div
  1750. class="worksDetailBox"
  1751. v-if="workStudent[toolIndex].length > 0"
  1752. >
  1753. <div
  1754. class="works"
  1755. style="
  1756. width: 200px;
  1757. height: 140px;
  1758. margin: 10px 10px 10px 0;
  1759. box-shadow: 0 0 6px 1px #dfdada;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. :src="word2"
  1767. @click="downloadFile(w.works,w.userid)"
  1768. alt
  1769. />
  1770. <div
  1771. class="answerScore"
  1772. v-if="w.score"
  1773. @click.stop="openScore(w)"
  1774. :class="{
  1775. rightW:
  1776. w.userid == userid || tType == 1 || tType == 4,
  1777. }"
  1778. >
  1779. {{ JSON.parse(w.score).wScore }}分
  1780. </div>
  1781. <div
  1782. class="answerScore"
  1783. @click.stop="openScore(w)"
  1784. v-else-if="courseDetail.userid == userid"
  1785. :class="{
  1786. rightW:
  1787. w.userid == userid || tType == 1 || tType == 4,
  1788. }"
  1789. >
  1790. 评分
  1791. </div>
  1792. <img
  1793. class="deleteImg"
  1794. src="../assets/deleteworks.png"
  1795. v-if="
  1796. w.userid == userid || tType == 1 || tType == 4
  1797. "
  1798. @click.stop="deleteWorks(w.wid)"
  1799. alt
  1800. />
  1801. </div>
  1802. <div class="worksName">
  1803. <div>{{ w.sName }}</div>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(57) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. </div>
  1823. <div
  1824. class="worksDetailBox"
  1825. v-if="workStudent[toolIndex].length > 0"
  1826. >
  1827. <div
  1828. class="works"
  1829. style="
  1830. width: 200px;
  1831. height: 140px;
  1832. margin: 10px 10px 10px 0;
  1833. box-shadow: 0 0 6px 1px #dfdada;
  1834. "
  1835. v-for="(w, wIndex) in workStudent[toolIndex]"
  1836. :key="wIndex"
  1837. >
  1838. <div class="workImg">
  1839. <img
  1840. :src="word2"
  1841. @click="downloadFile(w.works,w.userid)"
  1842. v-if="w.type == 12"
  1843. alt
  1844. />
  1845. <img
  1846. :src="word2"
  1847. @click="
  1848. openCocoPi(57, toolIndex, w.userid, w.sName)
  1849. "
  1850. v-else-if="w.type == 15"
  1851. alt
  1852. />
  1853. <div
  1854. class="answerScore"
  1855. v-if="w.score"
  1856. @click.stop="openScore(w)"
  1857. :class="{
  1858. rightW:
  1859. w.userid == userid || tType == 1 || tType == 4,
  1860. }"
  1861. >
  1862. {{ JSON.parse(w.score).wScore }}分
  1863. </div>
  1864. <div
  1865. class="answerScore"
  1866. @click.stop="openScore(w)"
  1867. v-else-if="courseDetail.userid == userid"
  1868. :class="{
  1869. rightW:
  1870. w.userid == userid || tType == 1 || tType == 4,
  1871. }"
  1872. >
  1873. 评分
  1874. </div>
  1875. <img
  1876. class="deleteImg"
  1877. src="../assets/deleteworks.png"
  1878. v-if="
  1879. w.userid == userid || tType == 1 || tType == 4
  1880. "
  1881. @click.stop="deleteWorks(w.wid)"
  1882. alt
  1883. />
  1884. </div>
  1885. <div class="worksName">
  1886. <div>{{ w.sName }}</div>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. <div
  1892. v-if="
  1893. tType &&
  1894. tType == 2 &&
  1895. !sIsOpen &&
  1896. tool.tool.indexOf(4) != -1
  1897. "
  1898. class="worksBox"
  1899. >
  1900. <div
  1901. class="zuoyeYulan"
  1902. v-if="workStudent[toolIndex].length > 0"
  1903. >
  1904. <span class="worksTitle">作业预览</span>
  1905. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1906. </div>
  1907. <div
  1908. class="worksDetailBox"
  1909. v-if="workStudent[toolIndex].length > 0"
  1910. >
  1911. <div
  1912. class="isWorksName2"
  1913. v-for="(w, wIndex) in workStudent[toolIndex]"
  1914. :key="wIndex"
  1915. @click="
  1916. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1917. "
  1918. >
  1919. {{ w.sName }}
  1920. <img
  1921. class="deleteImg deleteImg2"
  1922. src="../assets/deleteworks.png"
  1923. v-if="w.userid == userid || tType == 1 || tType == 4"
  1924. @click.stop="deleteWorks(w.wid)"
  1925. alt
  1926. />
  1927. </div>
  1928. <!-- <div
  1929. class="works"
  1930. style="
  1931. width: 200px;
  1932. height: 140px;
  1933. border-radius: 10px;
  1934. box-shadow: 0 0 6px 1px #dfdada;
  1935. overflow: hidden;
  1936. "
  1937. v-for="(w, wIndex) in workStudent[toolIndex]"
  1938. :key="wIndex"
  1939. >
  1940. <div class="workImg">
  1941. <img
  1942. src="../assets/icon/works/noImg.png"
  1943. @click="
  1944. openTools(
  1945. 4,
  1946. toolIndex,
  1947. taskCount,
  1948. w.works,
  1949. w.sName
  1950. )
  1951. "
  1952. alt
  1953. />
  1954. </div>
  1955. <div class="worksName">
  1956. <div>{{ w.sName }}</div>
  1957. <div>{{ w.time }}</div>
  1958. </div>
  1959. </div> -->
  1960. </div>
  1961. </div>
  1962. <div
  1963. v-if="
  1964. tType &&
  1965. ((tType == 2 && sIsOpen == true) ||
  1966. tType == 1 ||
  1967. tType == 4) &&
  1968. tool.tool.indexOf(62) != -1
  1969. "
  1970. class="worksBox"
  1971. >
  1972. <div
  1973. class="zuoyeYulan"
  1974. v-if="
  1975. worksStudent.length &&
  1976. worksStudent[toolIndex].length > 0
  1977. "
  1978. >
  1979. <div class="worksTop">
  1980. <div>作业预览</div>
  1981. <div
  1982. class="corOpen"
  1983. @click="contract(toolIndex)"
  1984. v-if="
  1985. (isCloseList[toolIndex].isCloseBoolean) &&
  1986. isCloseList[toolIndex].isClose == 0
  1987. "
  1988. >
  1989. 折叠
  1990. </div>
  1991. <div
  1992. class="corOpen"
  1993. @click="contract(toolIndex)"
  1994. v-if="isCloseList[toolIndex].isClose == 1"
  1995. >
  1996. 展开
  1997. </div>
  1998. </div>
  1999. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2000. </div>
  2001. <div>
  2002. <div
  2003. :id="'tool-' + toolIndex"
  2004. :style="{
  2005. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2006. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2007. }"
  2008. class="worksDetailBox"
  2009. v-if="
  2010. worksStudent.length &&
  2011. worksStudent[toolIndex].length > 0
  2012. "
  2013. >
  2014. <div
  2015. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2016. :key="wIndex"
  2017. class="isWorksName2"
  2018. @click="
  2019. openTools(
  2020. 62,
  2021. toolIndex,
  2022. taskCount,
  2023. w.works,
  2024. w.sName
  2025. )
  2026. "
  2027. >
  2028. {{ w.sName }}
  2029. <img
  2030. class="deleteImg deleteImg2"
  2031. src="../assets/deleteworks.png"
  2032. v-if="
  2033. w.userid == userid || tType == 1 || tType == 4
  2034. "
  2035. @click.stop="deleteWorks(w.wid)"
  2036. alt
  2037. />
  2038. </div>
  2039. </div>
  2040. </div>
  2041. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2042. 未提交
  2043. </div>
  2044. <div
  2045. class="noWorksS"
  2046. v-if="noWorksS && noWorksS[toolIndex].length"
  2047. >
  2048. <div
  2049. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2050. :key="sIndex"
  2051. class="noWorksName"
  2052. >
  2053. <el-tooltip effect="dark" :content="s.student" placement="top">
  2054. <span>{{ s.student }}</span>
  2055. </el-tooltip>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. <div
  2060. v-if="
  2061. tType &&
  2062. tType == 2 &&
  2063. !sIsOpen &&
  2064. tool.tool.indexOf(62) != -1
  2065. "
  2066. class="worksBox"
  2067. >
  2068. <div
  2069. class="zuoyeYulan"
  2070. v-if="workStudent[toolIndex].length > 0"
  2071. >
  2072. <span class="worksTitle">作业预览</span>
  2073. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2074. </div>
  2075. <div
  2076. class="worksDetailBox"
  2077. v-if="workStudent[toolIndex].length > 0"
  2078. >
  2079. <div
  2080. class="isWorksName2"
  2081. v-for="(w, wIndex) in workStudent[toolIndex]"
  2082. :key="wIndex"
  2083. @click="
  2084. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2085. "
  2086. >
  2087. {{ w.sName }}
  2088. <img
  2089. class="deleteImg deleteImg2"
  2090. src="../assets/deleteworks.png"
  2091. v-if="w.userid == userid || tType == 1 || tType == 4"
  2092. @click.stop="deleteWorks(w.wid)"
  2093. alt
  2094. />
  2095. </div>
  2096. </div>
  2097. </div>
  2098. <div
  2099. v-if="
  2100. tType &&
  2101. tType == 2 &&
  2102. !sIsOpen &&
  2103. tool.tool.indexOf(45) != -1
  2104. "
  2105. class="worksBox"
  2106. >
  2107. <div
  2108. class="zuoyeYulan"
  2109. v-if="workStudent[toolIndex].length > 0"
  2110. >
  2111. <span class="worksTitle">作业预览</span>
  2112. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2113. </div>
  2114. <div
  2115. class="worksDetailBox"
  2116. v-if="workStudent[toolIndex].length > 0"
  2117. >
  2118. <div
  2119. class="isWorksName2"
  2120. v-for="(w, wIndex) in workStudent[toolIndex]"
  2121. :key="wIndex"
  2122. @click="
  2123. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2124. "
  2125. >
  2126. {{ w.sName }}
  2127. <img
  2128. class="deleteImg deleteImg2"
  2129. src="../assets/deleteworks.png"
  2130. v-if="w.userid == userid || tType == 1 || tType == 4"
  2131. @click.stop="deleteWorks(w.wid)"
  2132. alt
  2133. />
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div
  2138. v-if="
  2139. tType &&
  2140. tType == 2 &&
  2141. !sIsOpen &&
  2142. tool.tool.indexOf(69) != -1
  2143. "
  2144. class="worksBox"
  2145. >
  2146. <div
  2147. class="zuoyeYulan"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <span class="worksTitle">作业预览</span>
  2151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2152. </div>
  2153. <div
  2154. class="worksDetailBox"
  2155. v-if="workStudent[toolIndex].length > 0"
  2156. >
  2157. <div
  2158. class="isWorksName2"
  2159. v-for="(w, wIndex) in workStudent[toolIndex]"
  2160. :key="wIndex"
  2161. @click="
  2162. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2163. "
  2164. >
  2165. {{ w.sName }}
  2166. <img
  2167. class="deleteImg deleteImg2"
  2168. src="../assets/deleteworks.png"
  2169. v-if="w.userid == userid || tType == 1 || tType == 4"
  2170. @click.stop="deleteWorks(w.wid)"
  2171. alt
  2172. />
  2173. </div>
  2174. </div>
  2175. </div>
  2176. <div
  2177. v-if="
  2178. tType &&
  2179. tType == 2 &&
  2180. !sIsOpen &&
  2181. tool.tool.indexOf(15) != -1
  2182. "
  2183. class="worksBox"
  2184. >
  2185. <div
  2186. class="zuoyeYulan"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <span class="worksTitle">作业预览</span>
  2190. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2191. </div>
  2192. <div
  2193. class="worksDetailBox"
  2194. v-if="workStudent[toolIndex].length > 0"
  2195. >
  2196. <div
  2197. class="works"
  2198. v-for="(w, wIndex) in workStudent[toolIndex]"
  2199. :key="wIndex"
  2200. >
  2201. <div class="workImg">
  2202. <!-- <img
  2203. src="../assets/icon/works/noImg.png"
  2204. @click="openTools(15, toolIndex, taskCount, w.works)"
  2205. alt=""
  2206. />-->
  2207. <div class="answerBg">
  2208. <!-- <div>{{ w.sName }}</div> -->
  2209. <el-tooltip
  2210. class="item"
  2211. effect="light"
  2212. :content="JSON.parse(w.works)[0].answer"
  2213. placement="top"
  2214. >
  2215. <div class="answerContent">
  2216. {{ JSON.parse(w.works)[0].answer }}
  2217. </div>
  2218. </el-tooltip>
  2219. <div
  2220. class="answerScore"
  2221. v-if="w.score"
  2222. @click.stop="openScore(w)"
  2223. :class="{
  2224. rightW:
  2225. w.userid == userid ||
  2226. tType == 1 ||
  2227. tType == 4,
  2228. }"
  2229. >
  2230. {{ JSON.parse(w.score).wScore }}分
  2231. </div>
  2232. <div
  2233. class="answerScore"
  2234. @click.stop="openScore(w)"
  2235. v-else-if="courseDetail.userid == userid"
  2236. :class="{
  2237. rightW:
  2238. w.userid == userid ||
  2239. tType == 1 ||
  2240. tType == 4,
  2241. }"
  2242. >
  2243. 评分
  2244. </div>
  2245. <img
  2246. class="deleteImg"
  2247. src="../assets/deleteworks.png"
  2248. v-if="
  2249. w.userid == userid || tType == 1 || tType == 4
  2250. "
  2251. @click.stop="deleteWorks(w.wid)"
  2252. alt
  2253. />
  2254. </div>
  2255. <div class="comment">
  2256. <div class="worksName">
  2257. <div>{{ w.sName }}</div>
  2258. </div>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. <div
  2265. v-if="
  2266. tType &&
  2267. tType == 2 &&
  2268. !sIsOpen &&
  2269. tool.tool.indexOf(1) != -1
  2270. "
  2271. class="worksBox"
  2272. >
  2273. <div
  2274. class="zuoyeYulan"
  2275. v-if="workStudent[toolIndex].length > 0"
  2276. >
  2277. <span class="worksTitle">作业预览</span>
  2278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2279. </div>
  2280. <div
  2281. class="worksDetailBox"
  2282. v-if="workStudent[toolIndex].length > 0"
  2283. >
  2284. <div
  2285. class="works"
  2286. style="
  2287. width: 200px;
  2288. height: 140px;
  2289. margin: 10px 10px 10px 0;
  2290. box-shadow: 0 0 6px 1px #dfdada;
  2291. "
  2292. v-for="(w, wIndex) in workStudent[toolIndex]"
  2293. :key="wIndex"
  2294. >
  2295. <div class="workImg">
  2296. <img
  2297. :src="w.works"
  2298. @click="previewImg(w.works,w)"
  2299. alt
  2300. />
  2301. <div
  2302. class="answerScore"
  2303. v-if="w.score"
  2304. @click.stop="openScore(w)"
  2305. :class="{
  2306. rightW:
  2307. w.userid == userid || tType == 1 || tType == 4,
  2308. }"
  2309. >
  2310. {{ JSON.parse(w.score).wScore }}分
  2311. </div>
  2312. <div
  2313. class="answerScore"
  2314. @click.stop="openScore(w)"
  2315. v-else-if="courseDetail.userid == userid"
  2316. :class="{
  2317. rightW:
  2318. w.userid == userid || tType == 1 || tType == 4,
  2319. }"
  2320. >
  2321. 评分
  2322. </div>
  2323. <img
  2324. class="deleteImg"
  2325. src="../assets/deleteworks.png"
  2326. v-if="
  2327. w.userid == userid || tType == 1 || tType == 4
  2328. "
  2329. @click.stop="deleteWorks(w.wid)"
  2330. alt
  2331. />
  2332. </div>
  2333. <div class="worksName">
  2334. <div>{{ w.sName }}</div>
  2335. </div>
  2336. </div>
  2337. </div>
  2338. </div>
  2339. <div
  2340. v-if="
  2341. tType &&
  2342. tType == 2 &&
  2343. !sIsOpen &&
  2344. tool.tool.indexOf(3) != -1
  2345. "
  2346. class="worksBox"
  2347. >
  2348. <div
  2349. class="zuoyeYulan"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <span class="worksTitle">作业预览</span>
  2353. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2354. </div>
  2355. <div
  2356. class="worksDetailBox"
  2357. v-if="workStudent[toolIndex].length > 0"
  2358. >
  2359. <div
  2360. class="works"
  2361. style="
  2362. width: 200px;
  2363. height: 140px;
  2364. margin: 10px 10px 10px 0;
  2365. box-shadow: 0 0 6px 1px #dfdada;
  2366. "
  2367. v-for="(w, wIndex) in workStudent[toolIndex]"
  2368. :key="wIndex"
  2369. >
  2370. <div class="workImg">
  2371. <img
  2372. :src="w.works"
  2373. @click="previewImg(w.works,w)"
  2374. alt
  2375. />
  2376. <div
  2377. class="answerScore"
  2378. v-if="w.score"
  2379. @click.stop="openScore(w)"
  2380. :class="{
  2381. rightW:
  2382. w.userid == userid || tType == 1 || tType == 4,
  2383. }"
  2384. >
  2385. {{ JSON.parse(w.score).wScore }}分
  2386. </div>
  2387. <div
  2388. class="answerScore"
  2389. @click.stop="openScore(w)"
  2390. v-else-if="courseDetail.userid == userid"
  2391. :class="{
  2392. rightW:
  2393. w.userid == userid || tType == 1 || tType == 4,
  2394. }"
  2395. >
  2396. 评分
  2397. </div>
  2398. <img
  2399. class="deleteImg"
  2400. src="../assets/deleteworks.png"
  2401. v-if="
  2402. w.userid == userid || tType == 1 || tType == 4
  2403. "
  2404. @click.stop="deleteWorks(w.wid)"
  2405. alt
  2406. />
  2407. </div>
  2408. <div class="worksName">
  2409. <div>{{ w.sName }}</div>
  2410. </div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. <div
  2415. v-if="
  2416. tType &&
  2417. tType == 2 &&
  2418. !sIsOpen &&
  2419. tool.tool.indexOf(6) != -1
  2420. "
  2421. class="worksBox"
  2422. >
  2423. <div
  2424. class="zuoyeYulan"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <span class="worksTitle">作业预览</span>
  2428. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2429. </div>
  2430. <div
  2431. class="worksDetailBox"
  2432. v-if="workStudent[toolIndex].length > 0"
  2433. >
  2434. <div
  2435. class="works"
  2436. style="
  2437. width: 200px;
  2438. height: 140px;
  2439. margin: 10px 10px 10px 0;
  2440. box-shadow: 0 0 6px 1px #dfdada;
  2441. "
  2442. v-for="(w, wIndex) in workStudent[toolIndex]"
  2443. :key="wIndex"
  2444. >
  2445. <div class="workImg">
  2446. <img
  2447. :src="w.works"
  2448. @click="previewImg(w.works,w)"
  2449. alt
  2450. />
  2451. <div
  2452. class="answerScore"
  2453. v-if="w.score"
  2454. @click.stop="openScore(w)"
  2455. :class="{
  2456. rightW:
  2457. w.userid == userid || tType == 1 || tType == 4,
  2458. }"
  2459. >
  2460. {{ JSON.parse(w.score).wScore }}分
  2461. </div>
  2462. <div
  2463. class="answerScore"
  2464. @click.stop="openScore(w)"
  2465. v-else-if="courseDetail.userid == userid"
  2466. :class="{
  2467. rightW:
  2468. w.userid == userid || tType == 1 || tType == 4,
  2469. }"
  2470. >
  2471. 评分
  2472. </div>
  2473. <img
  2474. class="deleteImg"
  2475. src="../assets/deleteworks.png"
  2476. v-if="
  2477. w.userid == userid || tType == 1 || tType == 4
  2478. "
  2479. @click.stop="deleteWorks(w.wid)"
  2480. alt
  2481. />
  2482. </div>
  2483. <div class="worksName">
  2484. <div>{{ w.sName }}</div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. <div
  2490. v-if="
  2491. tType &&
  2492. tType == 2 &&
  2493. !sIsOpen &&
  2494. tool.tool.indexOf(7) != -1
  2495. "
  2496. class="worksBox"
  2497. >
  2498. <div
  2499. class="zuoyeYulan"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <span class="worksTitle">作业预览</span>
  2503. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2504. </div>
  2505. <div
  2506. class="worksDetailBox"
  2507. v-if="workStudent[toolIndex].length > 0"
  2508. >
  2509. <div
  2510. class="works"
  2511. style="
  2512. width: 200px;
  2513. height: 140px;
  2514. margin: 10px 10px 10px 0;
  2515. box-shadow: 0 0 6px 1px #dfdada;
  2516. "
  2517. v-for="(w, wIndex) in workStudent[toolIndex]"
  2518. :key="wIndex"
  2519. >
  2520. <div class="workImg">
  2521. <img
  2522. :src="w.works"
  2523. @click="previewImg(w.works,w)"
  2524. alt
  2525. />
  2526. <div
  2527. class="answerScore"
  2528. v-if="w.score"
  2529. @click.stop="openScore(w)"
  2530. :class="{
  2531. rightW:
  2532. w.userid == userid || tType == 1 || tType == 4,
  2533. }"
  2534. >
  2535. {{ JSON.parse(w.score).wScore }}分
  2536. </div>
  2537. <div
  2538. class="answerScore"
  2539. @click.stop="openScore(w)"
  2540. v-else-if="courseDetail.userid == userid"
  2541. :class="{
  2542. rightW:
  2543. w.userid == userid || tType == 1 || tType == 4,
  2544. }"
  2545. >
  2546. 评分
  2547. </div>
  2548. <img
  2549. class="deleteImg"
  2550. src="../assets/deleteworks.png"
  2551. v-if="
  2552. w.userid == userid || tType == 1 || tType == 4
  2553. "
  2554. @click.stop="deleteWorks(w.wid)"
  2555. alt
  2556. />
  2557. </div>
  2558. <div class="worksName">
  2559. <div>{{ w.sName }}</div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <div
  2565. v-if="
  2566. tType &&
  2567. tType == 2 &&
  2568. !sIsOpen &&
  2569. tool.tool.indexOf(26) != -1
  2570. "
  2571. class="worksBox"
  2572. >
  2573. <div
  2574. class="zuoyeYulan"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <span class="worksTitle">作业预览</span>
  2578. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2579. </div>
  2580. <div
  2581. class="worksDetailBox"
  2582. v-if="workStudent[toolIndex].length > 0"
  2583. >
  2584. <div
  2585. class="works"
  2586. style="
  2587. width: 200px;
  2588. height: 140px;
  2589. margin: 10px 10px 10px 0;
  2590. box-shadow: 0 0 6px 1px #dfdada;
  2591. "
  2592. v-for="(w, wIndex) in workStudent[toolIndex]"
  2593. :key="wIndex"
  2594. >
  2595. <div class="workImg">
  2596. <img
  2597. :src="w.works"
  2598. @click="previewImg(w.works,w)"
  2599. alt
  2600. />
  2601. <img
  2602. class="deleteImg"
  2603. src="../assets/deleteworks.png"
  2604. v-if="
  2605. w.userid == userid || tType == 1 || tType == 4
  2606. "
  2607. @click.stop="deleteWorks(w.wid)"
  2608. alt
  2609. />
  2610. </div>
  2611. <div class="worksName">
  2612. <div>{{ w.sName }}</div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. <div
  2618. v-if="
  2619. tType &&
  2620. ((tType == 2 && sIsOpen == true) ||
  2621. tType == 1 ||
  2622. tType == 4) &&
  2623. tool.tool.indexOf(16) != -1
  2624. "
  2625. class="worksBox"
  2626. >
  2627. <div
  2628. class="zuoyeYulan"
  2629. v-if="
  2630. (worksStudent.length &&
  2631. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2632. "
  2633. >
  2634. <div class="worksTop">
  2635. <div>作业预览</div>
  2636. <div
  2637. class="corOpen"
  2638. @click="contract(toolIndex)"
  2639. v-if="
  2640. (isCloseList[toolIndex].isCloseBoolean) &&
  2641. isCloseList[toolIndex].isClose == 0
  2642. "
  2643. >
  2644. 折叠
  2645. </div>
  2646. <div
  2647. class="corOpen"
  2648. @click="contract(toolIndex)"
  2649. v-if="isCloseList[toolIndex].isClose == 1"
  2650. >
  2651. 展开
  2652. </div>
  2653. </div>
  2654. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2655. </div>
  2656. <div
  2657. class="group_workBox"
  2658. v-for="(g, gindex) in courseGroup.group"
  2659. :key="gindex"
  2660. >
  2661. <div class="group_box">
  2662. <div class="group_title">
  2663. <el-tooltip
  2664. class="item"
  2665. effect="light"
  2666. :content="g.name"
  2667. placement="top"
  2668. >
  2669. <div class="group_name">{{ g.name }}</div>
  2670. </el-tooltip>
  2671. </div>
  2672. <div
  2673. class="group_work"
  2674. v-if="
  2675. g.works &&
  2676. g.works.length &&
  2677. g.works[toolIndex].length
  2678. "
  2679. >
  2680. <div
  2681. class="works"
  2682. style="
  2683. width: 200px;
  2684. height: 140px;
  2685. margin: 10px 10px 10px 0;
  2686. border-radius: 15px;
  2687. box-shadow: 0 0 6px 1px #dfdada;
  2688. "
  2689. v-for="(w, wIndex) in g.works[toolIndex]"
  2690. :key="wIndex"
  2691. :class="w.type == 1 ? 'isTypeOne' : ''"
  2692. >
  2693. <div class="workImg" v-if="w.type == 0">
  2694. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2695. <img
  2696. :src="w.works"
  2697. @click="previewImg(w.works,w)"
  2698. alt
  2699. />
  2700. <div
  2701. class="answerScore"
  2702. v-if="w.score"
  2703. @click.stop="openScore(w)"
  2704. :class="{
  2705. rightW:
  2706. w.userid == userid ||
  2707. tType == 1 ||
  2708. tType == 4 ||
  2709. w.ateacher == userid,
  2710. }"
  2711. >
  2712. {{ JSON.parse(w.score).wScore }}分
  2713. </div>
  2714. <div
  2715. class="answerScore"
  2716. @click.stop="openScore(w)"
  2717. v-else-if="courseDetail.userid == userid"
  2718. :class="{
  2719. rightW:
  2720. w.userid == userid ||
  2721. tType == 1 ||
  2722. tType == 4 ||
  2723. w.ateacher == userid,
  2724. }"
  2725. >
  2726. 评分
  2727. </div>
  2728. <img
  2729. class="deleteImg"
  2730. src="../assets/deleteworks.png"
  2731. v-if="
  2732. w.userid == userid || tType == 1 || tType == 4
  2733. "
  2734. @click.stop="deleteWorks(w.wid)"
  2735. alt
  2736. />
  2737. </div>
  2738. <div class="workImg" v-if="w.type == 1">
  2739. <img :src="word" @click="openFile(w.works,w)" alt />
  2740. <!-- @click="openFile(w.works)" -->
  2741. <div
  2742. class="answerScore"
  2743. v-if="w.score"
  2744. @click.stop="openScore(w)"
  2745. :class="{
  2746. rightW:
  2747. w.userid == userid ||
  2748. tType == 1 ||
  2749. tType == 4 ||
  2750. w.ateacher == userid,
  2751. }"
  2752. >
  2753. {{ JSON.parse(w.score).wScore }}分
  2754. </div>
  2755. <div
  2756. class="answerScore"
  2757. @click.stop="openScore(w)"
  2758. v-else-if="courseDetail.userid == userid"
  2759. :class="{
  2760. rightW:
  2761. w.userid == userid ||
  2762. tType == 1 ||
  2763. tType == 4 ||
  2764. w.ateacher == userid,
  2765. }"
  2766. >
  2767. 评分
  2768. </div>
  2769. <img
  2770. class="deleteImg"
  2771. src="../assets/deleteworks.png"
  2772. v-if="
  2773. w.userid == userid || tType == 1 || tType == 4
  2774. "
  2775. @click.stop="deleteWorks(w.wid)"
  2776. alt
  2777. />
  2778. </div>
  2779. <div class="workImg" v-if="w.type == 3">
  2780. <img
  2781. style="cursor: pointer"
  2782. :src="video"
  2783. @click="openVideo(w)"
  2784. alt
  2785. />
  2786. <!-- @click="openVideo(w.works)" -->
  2787. <div
  2788. class="answerScore"
  2789. v-if="w.score"
  2790. @click.stop="openScore(w)"
  2791. :class="{
  2792. rightW:
  2793. w.userid == userid ||
  2794. tType == 1 ||
  2795. tType == 4 ||
  2796. w.ateacher == userid,
  2797. }"
  2798. >
  2799. {{ JSON.parse(w.score).wScore }}分
  2800. </div>
  2801. <div
  2802. class="answerScore"
  2803. @click.stop="openScore(w)"
  2804. v-else-if="courseDetail.userid == userid"
  2805. :class="{
  2806. rightW:
  2807. w.userid == userid ||
  2808. tType == 1 ||
  2809. tType == 4 ||
  2810. w.ateacher == userid,
  2811. }"
  2812. >
  2813. 评分
  2814. </div>
  2815. <img
  2816. class="deleteImg"
  2817. src="../assets/deleteworks.png"
  2818. v-if="
  2819. w.userid == userid || tType == 1 || tType == 4
  2820. "
  2821. @click.stop="deleteWorks(w.wid)"
  2822. alt
  2823. />
  2824. </div>
  2825. <div class="workImg" v-if="w.type == 12">
  2826. <img
  2827. style="cursor: pointer"
  2828. :src="word2"
  2829. @click="downloadFile(w.works,w.userid)"
  2830. alt
  2831. />
  2832. <!-- @click="openVideo(w.works)" -->
  2833. <div
  2834. class="answerScore"
  2835. v-if="w.score"
  2836. @click.stop="openScore(w)"
  2837. :class="{
  2838. rightW:
  2839. w.userid == userid ||
  2840. tType == 1 ||
  2841. tType == 4 ||
  2842. w.ateacher == userid,
  2843. }"
  2844. >
  2845. {{ JSON.parse(w.score).wScore }}分
  2846. </div>
  2847. <div
  2848. class="answerScore"
  2849. @click.stop="openScore(w)"
  2850. v-else-if="courseDetail.userid == userid"
  2851. :class="{
  2852. rightW:
  2853. w.userid == userid ||
  2854. tType == 1 ||
  2855. tType == 4 ||
  2856. w.ateacher == userid,
  2857. }"
  2858. >
  2859. 评分
  2860. </div>
  2861. <img
  2862. class="deleteImg"
  2863. src="../assets/deleteworks.png"
  2864. v-if="
  2865. w.userid == userid || tType == 1 || tType == 4
  2866. "
  2867. @click.stop="deleteWorks(w.wid)"
  2868. alt
  2869. />
  2870. </div>
  2871. <div class="comment" style="min-width: 200px">
  2872. <div class="worksName">
  2873. <div>{{ w.sName }}</div>
  2874. </div>
  2875. <div class="commentList">
  2876. <div class="commentList">
  2877. <div
  2878. class="commentImg"
  2879. @click="
  2880. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2881. "
  2882. >
  2883. <img
  2884. :src="w.isLikes == true ? likes : noLikes"
  2885. alt=""
  2886. />
  2887. </div>
  2888. <div>{{ w.likesCount }}</div>
  2889. </div>
  2890. <div
  2891. class="commentList"
  2892. style="margin-right: 15px"
  2893. >
  2894. <div
  2895. class="commentImg"
  2896. @click="
  2897. commentOther(
  2898. w,
  2899. toolIndex,
  2900. wIndex,
  2901. null,
  2902. g.id
  2903. )
  2904. "
  2905. >
  2906. <img
  2907. src="../assets/icon/comment/comment.png"
  2908. alt=""
  2909. />
  2910. </div>
  2911. <div>{{ w.commentCount }}</div>
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. <div class="group_work" v-else>暂无提交作业</div>
  2918. </div>
  2919. </div>
  2920. <div
  2921. :id="'tool-' + toolIndex"
  2922. :style="{
  2923. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2924. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2925. }"
  2926. class="worksDetailBox"
  2927. v-if="
  2928. worksStudent.length &&
  2929. worksStudent[toolIndex].length > 0
  2930. "
  2931. >
  2932. <div
  2933. class="works"
  2934. style="
  2935. width: 200px;
  2936. height: 140px;
  2937. margin: 10px 10px 10px 0;
  2938. border-radius: 15px;
  2939. box-shadow: 0 0 6px 1px #dfdada;
  2940. "
  2941. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2942. :key="wIndex"
  2943. :class="w.type == 1 ? 'isTypeOne' : ''"
  2944. >
  2945. <div class="workImg" v-if="w.type == 0">
  2946. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2947. <img
  2948. :src="w.works"
  2949. @click="previewImg(w.works,w)"
  2950. alt
  2951. />
  2952. <div
  2953. class="answerScore"
  2954. v-if="w.score"
  2955. @click.stop="openScore(w)"
  2956. :class="{
  2957. rightW:
  2958. w.userid == userid ||
  2959. tType == 1 ||
  2960. tType == 4 ||
  2961. w.ateacher == userid,
  2962. }"
  2963. >
  2964. {{ JSON.parse(w.score).wScore }}分
  2965. </div>
  2966. <div
  2967. class="answerScore"
  2968. @click.stop="openScore(w)"
  2969. v-else-if="courseDetail.userid == userid"
  2970. :class="{
  2971. rightW:
  2972. w.userid == userid ||
  2973. tType == 1 ||
  2974. tType == 4 ||
  2975. w.ateacher == userid,
  2976. }"
  2977. >
  2978. 评分
  2979. </div>
  2980. <img
  2981. class="deleteImg"
  2982. src="../assets/deleteworks.png"
  2983. v-if="
  2984. w.userid == userid || tType == 1 || tType == 4
  2985. "
  2986. @click.stop="deleteWorks(w.wid)"
  2987. alt
  2988. />
  2989. </div>
  2990. <div class="workImg" v-if="w.type == 1">
  2991. <img :src="word" @click="openFile(w.works,w)" alt />
  2992. <!-- @click="openFile(w.works)" -->
  2993. <div
  2994. class="answerScore"
  2995. v-if="w.score"
  2996. @click.stop="openScore(w)"
  2997. :class="{
  2998. rightW:
  2999. w.userid == userid ||
  3000. tType == 1 ||
  3001. tType == 4 ||
  3002. w.ateacher == userid,
  3003. }"
  3004. >
  3005. {{ JSON.parse(w.score).wScore }}分
  3006. </div>
  3007. <div
  3008. class="answerScore"
  3009. @click.stop="openScore(w)"
  3010. v-else-if="courseDetail.userid == userid"
  3011. :class="{
  3012. rightW:
  3013. w.userid == userid ||
  3014. tType == 1 ||
  3015. tType == 4 ||
  3016. w.ateacher == userid,
  3017. }"
  3018. >
  3019. 评分
  3020. </div>
  3021. <img
  3022. class="deleteImg"
  3023. src="../assets/deleteworks.png"
  3024. v-if="
  3025. w.userid == userid || tType == 1 || tType == 4
  3026. "
  3027. @click.stop="deleteWorks(w.wid)"
  3028. alt
  3029. />
  3030. </div>
  3031. <div class="workImg" v-if="w.type == 3">
  3032. <img
  3033. style="cursor: pointer"
  3034. :src="video"
  3035. @click="openVideo(w)"
  3036. alt
  3037. />
  3038. <!-- @click="openVideo(w.works)" -->
  3039. <div
  3040. class="answerScore"
  3041. v-if="w.score"
  3042. @click.stop="openScore(w)"
  3043. :class="{
  3044. rightW:
  3045. w.userid == userid ||
  3046. tType == 1 ||
  3047. tType == 4 ||
  3048. w.ateacher == userid,
  3049. }"
  3050. >
  3051. {{ JSON.parse(w.score).wScore }}分
  3052. </div>
  3053. <div
  3054. class="answerScore"
  3055. @click.stop="openScore(w)"
  3056. v-else-if="courseDetail.userid == userid"
  3057. :class="{
  3058. rightW:
  3059. w.userid == userid ||
  3060. tType == 1 ||
  3061. tType == 4 ||
  3062. w.ateacher == userid,
  3063. }"
  3064. >
  3065. 评分
  3066. </div>
  3067. <img
  3068. class="deleteImg"
  3069. src="../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="workImg" v-if="w.type == 12">
  3078. <img
  3079. style="cursor: pointer"
  3080. :src="word2"
  3081. @click="downloadFile(w.works,w.userid)"
  3082. alt
  3083. />
  3084. <!-- @click="openVideo(w.works)" -->
  3085. <div
  3086. class="answerScore"
  3087. v-if="w.score"
  3088. @click.stop="openScore(w)"
  3089. :class="{
  3090. rightW:
  3091. w.userid == userid ||
  3092. tType == 1 ||
  3093. tType == 4 ||
  3094. w.ateacher == userid,
  3095. }"
  3096. >
  3097. {{ JSON.parse(w.score).wScore }}分
  3098. </div>
  3099. <div
  3100. class="answerScore"
  3101. @click.stop="openScore(w)"
  3102. v-else-if="courseDetail.userid == userid"
  3103. :class="{
  3104. rightW:
  3105. w.userid == userid ||
  3106. tType == 1 ||
  3107. tType == 4 ||
  3108. w.ateacher == userid,
  3109. }"
  3110. >
  3111. 评分
  3112. </div>
  3113. <img
  3114. class="deleteImg"
  3115. src="../assets/deleteworks.png"
  3116. v-if="
  3117. w.userid == userid || tType == 1 || tType == 4
  3118. "
  3119. @click.stop="deleteWorks(w.wid)"
  3120. alt
  3121. />
  3122. </div>
  3123. <div class="comment" style="min-width: 200px">
  3124. <div class="worksName">
  3125. <div>{{ w.sName }}</div>
  3126. </div>
  3127. <div class="commentList">
  3128. <div class="commentList">
  3129. <div
  3130. class="commentImg"
  3131. @click="
  3132. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3133. "
  3134. >
  3135. <img
  3136. :src="w.isLikes == true ? likes : noLikes"
  3137. alt=""
  3138. />
  3139. </div>
  3140. <div>{{ w.likesCount }}</div>
  3141. </div>
  3142. <div class="commentList" style="margin-right: 15px">
  3143. <div
  3144. class="commentImg"
  3145. @click="commentOther(w, toolIndex, wIndex)"
  3146. >
  3147. <img
  3148. src="../assets/icon/comment/comment.png"
  3149. alt=""
  3150. />
  3151. </div>
  3152. <div>{{ w.commentCount }}</div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3159. 未提交
  3160. </div>
  3161. <div
  3162. class="noWorksS"
  3163. v-if="noWorksS && noWorksS[toolIndex].length"
  3164. >
  3165. <div
  3166. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3167. :key="sIndex"
  3168. class="noWorksName"
  3169. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3170. >
  3171. <el-tooltip effect="dark" :content="s.student" placement="top">
  3172. <span>{{ s.student }}</span>
  3173. </el-tooltip>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. <div
  3178. v-if="
  3179. tType &&
  3180. ((tType == 2 && sIsOpen == true) ||
  3181. tType == 1 ||
  3182. tType == 4) &&
  3183. tool.tool.indexOf(70) != -1
  3184. "
  3185. class="worksBox"
  3186. >
  3187. <div
  3188. class="zuoyeYulan"
  3189. v-if="
  3190. (worksStudent.length &&
  3191. worksStudent[toolIndex].length > 0)
  3192. "
  3193. >
  3194. <div class="worksTop">
  3195. <div>作业预览</div>
  3196. <div
  3197. class="corOpen"
  3198. @click="contract(toolIndex)"
  3199. v-if="
  3200. (isCloseList[toolIndex].isCloseBoolean) &&
  3201. isCloseList[toolIndex].isClose == 0
  3202. "
  3203. >
  3204. 折叠
  3205. </div>
  3206. <div
  3207. class="corOpen"
  3208. @click="contract(toolIndex)"
  3209. v-if="isCloseList[toolIndex].isClose == 1"
  3210. >
  3211. 展开
  3212. </div>
  3213. </div>
  3214. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3215. </div>
  3216. <div
  3217. :id="'tool-' + toolIndex"
  3218. :style="{
  3219. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3220. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3221. }"
  3222. class="worksDetailBox"
  3223. v-if="
  3224. worksStudent.length &&
  3225. worksStudent[toolIndex].length > 0
  3226. "
  3227. >
  3228. <div
  3229. class="works"
  3230. style="
  3231. width: 200px;
  3232. height: 140px;
  3233. margin: 10px 10px 10px 0;
  3234. border-radius: 15px;
  3235. box-shadow: 0 0 6px 1px #dfdada;
  3236. "
  3237. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3238. :key="wIndex"
  3239. :class="w.type == 1 ? 'isTypeOne' : ''"
  3240. >
  3241. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3242. <img :src="word" alt />
  3243. <img
  3244. class="deleteImg"
  3245. src="../assets/deleteworks.png"
  3246. v-if="
  3247. w.userid == userid || tType == 1 || tType == 4
  3248. "
  3249. @click.stop="deleteWorks(w.wid)"
  3250. alt
  3251. />
  3252. </div>
  3253. <div class="comment" style="min-width: 200px">
  3254. <div class="worksName">
  3255. <div>{{ w.sName }}</div>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3261. 未提交
  3262. </div>
  3263. <div
  3264. class="noWorksS"
  3265. v-if="noWorksS && noWorksS[toolIndex].length"
  3266. >
  3267. <div
  3268. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3269. :key="sIndex"
  3270. class="noWorksName"
  3271. >
  3272. <el-tooltip effect="dark" :content="s.student" placement="top">
  3273. <span>{{ s.student }}</span>
  3274. </el-tooltip>
  3275. </div>
  3276. </div>
  3277. </div>
  3278. <div
  3279. v-if="
  3280. tType &&
  3281. tType == 2 &&
  3282. !sIsOpen &&
  3283. tool.tool.indexOf(70) != -1
  3284. "
  3285. class="worksBox"
  3286. >
  3287. <div
  3288. class="zuoyeYulan"
  3289. v-if="workStudent[toolIndex].length > 0"
  3290. >
  3291. <span class="worksTitle">作业预览</span>
  3292. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3293. </div>
  3294. <div
  3295. class="worksDetailBox"
  3296. v-if="workStudent[toolIndex].length > 0"
  3297. >
  3298. <div
  3299. class="works"
  3300. style="
  3301. width: 200px;
  3302. height: 140px;
  3303. margin: 10px 10px 10px 0;
  3304. box-shadow: 0 0 6px 1px #dfdada;
  3305. "
  3306. v-for="(w, wIndex) in workStudent[toolIndex]"
  3307. :key="wIndex"
  3308. >
  3309. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3310. <img :src="word" alt />
  3311. <img
  3312. class="deleteImg"
  3313. src="../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="worksName">
  3322. <div>{{ w.sName }}</div>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div
  3328. v-if="
  3329. tType &&
  3330. ((tType == 2 && sIsOpen == true) ||
  3331. tType == 1 ||
  3332. tType == 4) &&
  3333. tool.tool.indexOf(32) != -1
  3334. "
  3335. class="worksBox"
  3336. >
  3337. <div
  3338. class="zuoyeYulan"
  3339. v-if="
  3340. worksStudent.length &&
  3341. worksStudent[toolIndex].length > 0
  3342. "
  3343. >
  3344. <div class="worksTop">
  3345. <div>作业预览</div>
  3346. <div
  3347. class="corOpen"
  3348. @click="contract(toolIndex)"
  3349. v-if="
  3350. (isCloseList[toolIndex].isCloseBoolean) &&
  3351. isCloseList[toolIndex].isClose == 0
  3352. "
  3353. >
  3354. 折叠
  3355. </div>
  3356. <div
  3357. class="corOpen"
  3358. @click="contract(toolIndex)"
  3359. v-if="isCloseList[toolIndex].isClose == 1"
  3360. >
  3361. 展开
  3362. </div>
  3363. </div>
  3364. </div>
  3365. <div
  3366. :id="'tool-' + toolIndex"
  3367. class="worksDetailBox"
  3368. :style="{
  3369. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3370. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3371. }"
  3372. v-if="
  3373. worksStudent.length &&
  3374. worksStudent[toolIndex].length > 0
  3375. "
  3376. >
  3377. <div
  3378. class="works"
  3379. style="
  3380. width: 200px;
  3381. height: 140px;
  3382. margin: 10px 10px 10px 0;
  3383. border-radius: 15px;
  3384. box-shadow: 0 0 6px 1px #dfdada;
  3385. "
  3386. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3387. :key="wIndex"
  3388. :class="w.type == 1 ? 'isTypeOne' : ''"
  3389. >
  3390. <div class="workImg">
  3391. <img
  3392. :src="word2"
  3393. @click="downloadFile(w.works,w.userid)"
  3394. alt
  3395. />
  3396. <div
  3397. class="answerScore"
  3398. v-if="w.score"
  3399. @click.stop="openScore(w)"
  3400. :class="{
  3401. rightW:
  3402. w.userid == userid ||
  3403. tType == 1 ||
  3404. tType == 4 ||
  3405. w.ateacher == userid,
  3406. }"
  3407. >
  3408. {{ JSON.parse(w.score).wScore }}分
  3409. </div>
  3410. <div
  3411. class="answerScore"
  3412. @click.stop="openScore(w)"
  3413. v-else-if="courseDetail.userid == userid"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid,
  3420. }"
  3421. >
  3422. 评分
  3423. </div>
  3424. <img
  3425. class="deleteImg"
  3426. src="../assets/deleteworks.png"
  3427. v-if="
  3428. w.userid == userid || tType == 1 || tType == 4
  3429. "
  3430. @click.stop="deleteWorks(w.wid)"
  3431. alt
  3432. />
  3433. </div>
  3434. <div class="comment" style="min-width: 200px">
  3435. <div class="worksName">
  3436. <div>{{ w.sName }}</div>
  3437. </div>
  3438. <div class="commentList">
  3439. <div class="commentList">
  3440. <div
  3441. class="commentImg"
  3442. @click="
  3443. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3444. "
  3445. >
  3446. <img
  3447. :src="w.isLikes == true ? likes : noLikes"
  3448. alt=""
  3449. />
  3450. </div>
  3451. <div>{{ w.likesCount }}</div>
  3452. </div>
  3453. <div class="commentList" style="margin-right: 15px">
  3454. <div
  3455. class="commentImg"
  3456. @click="commentOther(w, toolIndex, wIndex)"
  3457. >
  3458. <img
  3459. src="../assets/icon/comment/comment.png"
  3460. alt=""
  3461. />
  3462. </div>
  3463. <div>{{ w.commentCount }}</div>
  3464. </div>
  3465. </div>
  3466. </div>
  3467. </div>
  3468. </div>
  3469. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3470. 未提交
  3471. </div>
  3472. <div
  3473. class="noWorksS"
  3474. v-if="noWorksS && noWorksS[toolIndex].length"
  3475. >
  3476. <div
  3477. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3478. :key="sIndex"
  3479. class="noWorksName"
  3480. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3481. >
  3482. <el-tooltip effect="dark" :content="s.student" placement="top">
  3483. <span>{{ s.student }}</span>
  3484. </el-tooltip>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <div
  3489. v-if="
  3490. tType &&
  3491. ((tType == 2 && sIsOpen == true) ||
  3492. tType == 1 ||
  3493. tType == 4) &&
  3494. tool.tool.indexOf(57) != -1
  3495. "
  3496. class="worksBox"
  3497. >
  3498. <div
  3499. class="zuoyeYulan"
  3500. v-if="
  3501. worksStudent.length &&
  3502. worksStudent[toolIndex].length > 0
  3503. "
  3504. >
  3505. <div class="worksTop">
  3506. <div>作业预览</div>
  3507. <div
  3508. class="corOpen"
  3509. @click="contract(toolIndex)"
  3510. v-if="
  3511. (isCloseList[toolIndex].isCloseBoolean) &&
  3512. isCloseList[toolIndex].isClose == 0
  3513. "
  3514. >
  3515. 折叠
  3516. </div>
  3517. <div
  3518. class="corOpen"
  3519. @click="contract(toolIndex)"
  3520. v-if="isCloseList[toolIndex].isClose == 1"
  3521. >
  3522. 展开
  3523. </div>
  3524. </div>
  3525. </div>
  3526. <div
  3527. :id="'tool-' + toolIndex"
  3528. class="worksDetailBox"
  3529. :style="{
  3530. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3531. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3532. }"
  3533. v-if="
  3534. worksStudent.length &&
  3535. worksStudent[toolIndex].length > 0
  3536. "
  3537. >
  3538. <div
  3539. class="works"
  3540. style="
  3541. width: 200px;
  3542. height: 140px;
  3543. margin: 10px 10px 10px 0;
  3544. border-radius: 15px;
  3545. box-shadow: 0 0 6px 1px #dfdada;
  3546. "
  3547. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3548. :key="wIndex"
  3549. :class="w.type == 1 ? 'isTypeOne' : ''"
  3550. >
  3551. <div class="workImg">
  3552. <img
  3553. :src="word2"
  3554. @click="downloadFile(w.works,w.userid)"
  3555. v-if="w.type == 12"
  3556. alt
  3557. />
  3558. <img
  3559. :src="word2"
  3560. @click="
  3561. openCocoPi(57, toolIndex, w.userid, w.sName)
  3562. "
  3563. v-else-if="w.type == 15"
  3564. alt
  3565. />
  3566. <div
  3567. class="answerScore"
  3568. v-if="w.score"
  3569. @click.stop="openScore(w)"
  3570. :class="{
  3571. rightW:
  3572. w.userid == userid ||
  3573. tType == 1 ||
  3574. tType == 4 ||
  3575. w.ateacher == userid,
  3576. }"
  3577. >
  3578. {{ JSON.parse(w.score).wScore }}分
  3579. </div>
  3580. <div
  3581. class="answerScore"
  3582. @click.stop="openScore(w)"
  3583. v-else-if="courseDetail.userid == userid"
  3584. :class="{
  3585. rightW:
  3586. w.userid == userid ||
  3587. tType == 1 ||
  3588. tType == 4 ||
  3589. w.ateacher == userid,
  3590. }"
  3591. >
  3592. 评分
  3593. </div>
  3594. <img
  3595. class="deleteImg"
  3596. src="../assets/deleteworks.png"
  3597. v-if="
  3598. w.userid == userid || tType == 1 || tType == 4
  3599. "
  3600. @click.stop="deleteWorks(w.wid)"
  3601. alt
  3602. />
  3603. </div>
  3604. <div class="comment" style="min-width: 200px">
  3605. <div class="worksName">
  3606. <div>{{ w.sName }}</div>
  3607. </div>
  3608. <div class="commentList">
  3609. <div class="commentList">
  3610. <div
  3611. class="commentImg"
  3612. @click="
  3613. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3614. "
  3615. >
  3616. <img
  3617. :src="w.isLikes == true ? likes : noLikes"
  3618. alt=""
  3619. />
  3620. </div>
  3621. <div>{{ w.likesCount }}</div>
  3622. </div>
  3623. <div class="commentList" style="margin-right: 15px">
  3624. <div
  3625. class="commentImg"
  3626. @click="commentOther(w, toolIndex, wIndex)"
  3627. >
  3628. <img
  3629. src="../assets/icon/comment/comment.png"
  3630. alt=""
  3631. />
  3632. </div>
  3633. <div>{{ w.commentCount }}</div>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. </div>
  3638. </div>
  3639. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3640. 未提交
  3641. </div>
  3642. <div
  3643. class="noWorksS"
  3644. v-if="noWorksS && noWorksS[toolIndex].length"
  3645. >
  3646. <div
  3647. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3648. :key="sIndex"
  3649. class="noWorksName"
  3650. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3651. >
  3652. <el-tooltip effect="dark" :content="s.student" placement="top">
  3653. <span>{{ s.student }}</span>
  3654. </el-tooltip>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div
  3659. v-if="
  3660. tType &&
  3661. ((tType == 2 && sIsOpen == true) ||
  3662. tType == 1 ||
  3663. tType == 4) &&
  3664. tool.tool.indexOf(72) != -1
  3665. "
  3666. class="worksBox"
  3667. >
  3668. <div
  3669. class="zuoyeYulan"
  3670. v-if="
  3671. worksStudent.length &&
  3672. worksStudent[toolIndex].length > 0
  3673. "
  3674. >
  3675. <div class="worksTop">
  3676. <div>作业预览</div>
  3677. <div
  3678. class="corOpen"
  3679. @click="contract(toolIndex)"
  3680. v-if="
  3681. isCloseList[toolIndex].isCloseBoolean &&
  3682. isCloseList[toolIndex].isClose == 0
  3683. "
  3684. >
  3685. 折叠
  3686. </div>
  3687. <div
  3688. class="corOpen"
  3689. @click="contract(toolIndex)"
  3690. v-if="isCloseList[toolIndex].isClose == 1"
  3691. >
  3692. 展开
  3693. </div>
  3694. </div>
  3695. </div>
  3696. <div
  3697. :id="'tool-' + toolIndex"
  3698. :style="{
  3699. height:
  3700. isCloseList[toolIndex].isClose == 1
  3701. ? retrnToolHeight('tool-' + toolIndex)
  3702. : 'auto',
  3703. overflow:
  3704. isCloseList[toolIndex].isClose == 1
  3705. ? 'hidden'
  3706. : 'unset'
  3707. }"
  3708. class="worksDetailBox"
  3709. v-if="
  3710. worksStudent.length &&
  3711. worksStudent[toolIndex].length > 0
  3712. "
  3713. >
  3714. <div
  3715. class="works"
  3716. style="
  3717. width: 200px;
  3718. height: 140px;
  3719. margin: 10px 10px 10px 0;
  3720. border-radius: 15px;
  3721. box-shadow: 0 0 6px 1px #dfdada;
  3722. "
  3723. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3724. :key="wIndex"
  3725. :class="w.type == 1 ? 'isTypeOne' : ''"
  3726. >
  3727. <div class="workImg">
  3728. <!-- <img
  3729. :src="word2"
  3730. @click="downloadFile(w.works)"
  3731. v-if="w.type == 12"
  3732. alt
  3733. /> -->
  3734. <img
  3735. :src="word2"
  3736. @click="
  3737. openCocoFlow(w)
  3738. "
  3739. alt
  3740. />
  3741. <div
  3742. class="answerScore"
  3743. v-if="w.score"
  3744. @click.stop="openScore(w)"
  3745. :class="{
  3746. rightW:
  3747. w.userid == userid ||
  3748. tType == 1 ||
  3749. tType == 4 ||
  3750. w.ateacher == userid
  3751. }"
  3752. >
  3753. {{ JSON.parse(w.score).wScore }}分
  3754. </div>
  3755. <div
  3756. class="answerScore"
  3757. @click.stop="openScore(w)"
  3758. v-else-if="
  3759. courseDetail.userid == userid &&
  3760. courseDetail.state != 5 &&
  3761. chapInfoList[courseType].chapterInfo[0]
  3762. .taskJson[taskCount].eList &&
  3763. chapInfoList[courseType].chapterInfo[0]
  3764. .taskJson[taskCount].eList.length
  3765. "
  3766. :class="{
  3767. rightW:
  3768. w.userid == userid ||
  3769. tType == 1 ||
  3770. tType == 4 ||
  3771. w.ateacher == userid
  3772. }"
  3773. >
  3774. 评分
  3775. </div>
  3776. <img
  3777. class="deleteImg"
  3778. src="../assets/deleteworks.png"
  3779. v-if="
  3780. w.userid == userid || tType == 1 || tType == 4
  3781. "
  3782. @click.stop="deleteWorks(w.wid)"
  3783. alt
  3784. />
  3785. </div>
  3786. <div class="comment" style="min-width: 200px">
  3787. <div class="worksName">
  3788. <div>{{ w.sName }}</div>
  3789. </div>
  3790. <div class="commentList">
  3791. <div class="commentList">
  3792. <div
  3793. class="commentImg"
  3794. @click="
  3795. isLikes(
  3796. w.wid,
  3797. userid,
  3798. 1,
  3799. null,
  3800. w.isLikes,
  3801. w.sName
  3802. )
  3803. "
  3804. >
  3805. <img
  3806. :src="w.isLikes == true ? likes : noLikes"
  3807. alt=""
  3808. />
  3809. </div>
  3810. <div>{{ w.likesCount }}</div>
  3811. </div>
  3812. <div class="commentList" style="margin-right: 15px">
  3813. <div
  3814. class="commentImg"
  3815. @click="commentOther(w, toolIndex, wIndex)"
  3816. >
  3817. <img
  3818. src="../assets/icon/comment/comment.png"
  3819. alt=""
  3820. />
  3821. </div>
  3822. <div>{{ w.commentCount }}</div>
  3823. </div>
  3824. </div>
  3825. </div>
  3826. </div>
  3827. </div>
  3828. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3829. 未提交
  3830. </div>
  3831. <div
  3832. class="noWorksS"
  3833. v-if="noWorksS && noWorksS[toolIndex].length"
  3834. >
  3835. <div
  3836. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3837. :key="sIndex"
  3838. class="noWorksName"
  3839. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3840. >
  3841. <el-tooltip
  3842. effect="dark"
  3843. :content="s.student"
  3844. placement="top"
  3845. >
  3846. <span>{{ s.student }}</span>
  3847. </el-tooltip>
  3848. </div>
  3849. </div>
  3850. </div>
  3851. <div
  3852. v-if="
  3853. tType &&
  3854. tType == 2 &&
  3855. !sIsOpen &&
  3856. tool.tool.indexOf(72) != -1
  3857. "
  3858. class="worksBox"
  3859. >
  3860. <div
  3861. class="zuoyeYulan"
  3862. v-if="workStudent[toolIndex].length > 0"
  3863. >
  3864. <span class="worksTitle">作业预览</span>
  3865. </div>
  3866. <div
  3867. class="worksDetailBox"
  3868. v-if="workStudent[toolIndex].length > 0"
  3869. >
  3870. <div
  3871. class="works"
  3872. style="
  3873. width: 200px;
  3874. height: 140px;
  3875. margin: 10px 10px 10px 0;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. "
  3878. v-for="(w, wIndex) in workStudent[toolIndex]"
  3879. :key="wIndex"
  3880. >
  3881. <div class="workImg">
  3882. <!-- <img
  3883. :src="word2"
  3884. @click="downloadFile(w.works)"
  3885. v-if="w.type == 12"
  3886. alt
  3887. /> -->
  3888. <img
  3889. :src="word2"
  3890. @click="
  3891. openCocoFlow(w)
  3892. "
  3893. alt
  3894. />
  3895. <div
  3896. class="answerScore"
  3897. v-if="w.score"
  3898. @click.stop="openScore(w)"
  3899. :class="{
  3900. rightW:
  3901. w.userid == userid || tType == 1 || tType == 4
  3902. }"
  3903. >
  3904. {{ JSON.parse(w.score).wScore }}分
  3905. </div>
  3906. <div
  3907. class="answerScore"
  3908. @click.stop="openScore(w)"
  3909. v-else-if="courseDetail.userid == userid"
  3910. :class="{
  3911. rightW:
  3912. w.userid == userid || tType == 1 || tType == 4
  3913. }"
  3914. >
  3915. 评分
  3916. </div>
  3917. <img
  3918. class="deleteImg"
  3919. src="../assets/deleteworks.png"
  3920. v-if="
  3921. w.userid == userid || tType == 1 || tType == 4
  3922. "
  3923. @click.stop="deleteWorks(w.wid)"
  3924. alt
  3925. />
  3926. </div>
  3927. <div class="worksName">
  3928. <div>{{ w.sName }}</div>
  3929. </div>
  3930. </div>
  3931. </div>
  3932. </div>
  3933. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3934. <div
  3935. class="zuoyeYulan"
  3936. v-if="
  3937. worksStudent.length &&
  3938. worksStudent[toolIndex].length > 0
  3939. "
  3940. >
  3941. <span class="worksTitle">作业预览</span>
  3942. <div
  3943. class="corOpen"
  3944. @click="contract(toolIndex)"
  3945. v-if="
  3946. (isCloseList[toolIndex].isCloseBoolean) &&
  3947. isCloseList[toolIndex].isClose == 0
  3948. "
  3949. >
  3950. 折叠
  3951. </div>
  3952. <div
  3953. class="corOpen"
  3954. @click="contract(toolIndex)"
  3955. v-if="isCloseList[toolIndex].isClose == 1"
  3956. >
  3957. 展开
  3958. </div>
  3959. </div>
  3960. <div
  3961. :id="'tool-' + toolIndex"
  3962. :style="{
  3963. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3964. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3965. }"
  3966. class="worksDetailBox"
  3967. v-if="
  3968. worksStudent.length &&
  3969. worksStudent[toolIndex].length > 0
  3970. "
  3971. >
  3972. <div
  3973. class="works"
  3974. style="
  3975. width: 200px;
  3976. height: 140px;
  3977. margin: 10px 10px 10px 0;
  3978. border-radius: 15px;
  3979. box-shadow: 0 0 6px 1px #dfdada;
  3980. "
  3981. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3982. :key="wIndex"
  3983. :class="w.type == 1 ? 'isTypeOne' : ''"
  3984. >
  3985. <div class="workImg" v-if="w.type == 0">
  3986. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3987. <img
  3988. :src="w.works"
  3989. @click="previewImg(w.works,w)"
  3990. alt
  3991. />
  3992. <div
  3993. class="answerScore"
  3994. v-if="w.score"
  3995. @click.stop="openScore(w)"
  3996. :class="{
  3997. rightW:
  3998. w.userid == userid ||
  3999. tType == 1 ||
  4000. tType == 4 ||
  4001. w.ateacher == userid,
  4002. }"
  4003. >
  4004. {{ JSON.parse(w.score).wScore }}分
  4005. </div>
  4006. <div
  4007. class="answerScore"
  4008. @click.stop="openScore(w)"
  4009. v-else-if="courseDetail.userid == userid"
  4010. :class="{
  4011. rightW:
  4012. w.userid == userid ||
  4013. tType == 1 ||
  4014. tType == 4 ||
  4015. w.ateacher == userid,
  4016. }"
  4017. >
  4018. 评分
  4019. </div>
  4020. <img
  4021. class="deleteImg"
  4022. src="../assets/deleteworks.png"
  4023. v-if="
  4024. w.userid == userid || tType == 1 || tType == 4
  4025. "
  4026. @click.stop="deleteWorks(w.wid)"
  4027. alt
  4028. />
  4029. </div>
  4030. <div
  4031. class="workImg"
  4032. style="cursor: pointer"
  4033. v-if="w.type == 1"
  4034. >
  4035. <img :src="word" @click="openFile(w.works,w)" alt />
  4036. <!-- @click="openFile(w.works)" -->
  4037. <div
  4038. class="answerScore"
  4039. v-if="w.score"
  4040. @click.stop="openScore(w)"
  4041. :class="{
  4042. rightW:
  4043. w.userid == userid ||
  4044. tType == 1 ||
  4045. tType == 4 ||
  4046. w.ateacher == userid,
  4047. }"
  4048. >
  4049. {{ JSON.parse(w.score).wScore }}分
  4050. </div>
  4051. <div
  4052. class="answerScore"
  4053. @click.stop="openScore(w)"
  4054. v-else-if="courseDetail.userid == userid"
  4055. :class="{
  4056. rightW:
  4057. w.userid == userid ||
  4058. tType == 1 ||
  4059. tType == 4 ||
  4060. w.ateacher == userid,
  4061. }"
  4062. >
  4063. 评分
  4064. </div>
  4065. <img
  4066. class="deleteImg"
  4067. src="../assets/deleteworks.png"
  4068. v-if="
  4069. w.userid == userid || tType == 1 || tType == 4
  4070. "
  4071. @click.stop="deleteWorks(w.wid)"
  4072. alt
  4073. />
  4074. </div>
  4075. <div class="workImg" v-if="w.type == 3">
  4076. <img
  4077. style="cursor: pointer"
  4078. :src="video"
  4079. @click="openVideo(w)"
  4080. alt
  4081. />
  4082. <!-- @click="openVideo(w.works)" -->
  4083. <div
  4084. class="answerScore"
  4085. v-if="w.score"
  4086. @click.stop="openScore(w)"
  4087. :class="{
  4088. rightW:
  4089. w.userid == userid ||
  4090. tType == 1 ||
  4091. tType == 4 ||
  4092. w.ateacher == userid,
  4093. }"
  4094. >
  4095. {{ JSON.parse(w.score).wScore }}分
  4096. </div>
  4097. <div
  4098. class="answerScore"
  4099. @click.stop="openScore(w)"
  4100. v-else-if="courseDetail.userid == userid"
  4101. :class="{
  4102. rightW:
  4103. w.userid == userid ||
  4104. tType == 1 ||
  4105. tType == 4 ||
  4106. w.ateacher == userid,
  4107. }"
  4108. >
  4109. 评分
  4110. </div>
  4111. <img
  4112. class="deleteImg"
  4113. src="../assets/deleteworks.png"
  4114. v-if="
  4115. w.userid == userid || tType == 1 || tType == 4
  4116. "
  4117. @click.stop="deleteWorks(w.wid)"
  4118. alt
  4119. />
  4120. </div>
  4121. <div class="comment" style="min-width: 200px">
  4122. <div class="worksName">
  4123. <div
  4124. style="cursor: pointer"
  4125. @click="
  4126. openSname(w.sName, w.wid, toolIndex, w.userid)
  4127. "
  4128. >
  4129. {{ w.sName }}
  4130. </div>
  4131. </div>
  4132. <div class="commentList">
  4133. <div class="commentList">
  4134. <div
  4135. class="commentImg"
  4136. @click="
  4137. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4138. "
  4139. >
  4140. <img
  4141. :src="w.isLikes == true ? likes : noLikes"
  4142. alt=""
  4143. />
  4144. </div>
  4145. <div>{{ w.likesCount }}</div>
  4146. </div>
  4147. <div class="commentList" style="margin-right: 15px">
  4148. <div
  4149. class="commentImg"
  4150. @click="commentOther(w, toolIndex, wIndex)"
  4151. >
  4152. <img
  4153. src="../assets/icon/comment/comment.png"
  4154. alt=""
  4155. />
  4156. </div>
  4157. <div>{{ w.commentCount }}</div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4164. 未提交
  4165. </div>
  4166. <div
  4167. class="noWorksS"
  4168. v-if="noWorksS && noWorksS[toolIndex].length"
  4169. >
  4170. <div
  4171. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4172. :key="sIndex"
  4173. class="noWorksName"
  4174. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4175. >
  4176. <el-tooltip effect="dark" :content="s.student" placement="top">
  4177. <span>{{ s.student }}</span>
  4178. </el-tooltip>
  4179. </div>
  4180. </div>
  4181. </div>
  4182. <div
  4183. v-if="
  4184. tType &&
  4185. ((tType == 2 && sIsOpen == true) ||
  4186. tType == 1 ||
  4187. tType == 4) &&
  4188. tool.tool.indexOf(4) != -1 &&
  4189. (tool.askJson[0].answer ||
  4190. tool.askJson[0].answer === 0) &&
  4191. checkJson[toolIndex].length
  4192. "
  4193. class="xuan_right_box"
  4194. >
  4195. <div
  4196. class="tool_right_box"
  4197. v-for="(item, index) in tool.askJson"
  4198. :key="index"
  4199. >
  4200. <div style="width: calc(100% - 30px);">
  4201. <el-tooltip
  4202. effect="light"
  4203. :content="index + 1 + '、' + item.askstitle"
  4204. placement="top"
  4205. popper-class="text_tooltip"
  4206. >
  4207. <div
  4208. style="
  4209. width: calc(100% - 130px);
  4210. display: block;
  4211. white-space: nowrap;
  4212. overflow: hidden;
  4213. text-overflow: ellipsis;
  4214. word-break: break-word;
  4215. cursor: pointer;
  4216. "
  4217. >
  4218. {{ index + 1 + "、" + item.askstitle }}
  4219. </div>
  4220. </el-tooltip>
  4221. </div>
  4222. <div class="right_box_xuan">
  4223. <span>正确率</span>
  4224. <span>{{
  4225. (checkJson[toolIndex][index].right
  4226. ? checkJson[toolIndex][index].right
  4227. : 0) + "%"
  4228. }}</span>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. <div
  4233. class="xuan_right_box"
  4234. style="background: unset; padding: 0 10px"
  4235. v-if="
  4236. tType &&
  4237. ((tType == 2 && sIsOpen == true) ||
  4238. tType == 1 ||
  4239. tType == 4) &&
  4240. tool.tool.indexOf(4) != -1
  4241. "
  4242. >
  4243. <AskStatic
  4244. v-if="
  4245. worksStudent.length &&
  4246. worksStudent[toolIndex].length > 0
  4247. "
  4248. :askJSON="tool"
  4249. :checkJson="checkJson[toolIndex]"
  4250. ></AskStatic>
  4251. </div>
  4252. <div
  4253. v-if="
  4254. tType &&
  4255. ((tType == 2 && sIsOpen == true) ||
  4256. tType == 1 ||
  4257. tType == 4) &&
  4258. tool.tool.indexOf(4) != -1
  4259. "
  4260. class="worksBox"
  4261. >
  4262. <div
  4263. class="zuoyeYulan"
  4264. v-if="
  4265. worksStudent.length &&
  4266. worksStudent[toolIndex].length > 0
  4267. "
  4268. >
  4269. <div class="worksTop">
  4270. <div>作业预览</div>
  4271. <div
  4272. class="corOpen"
  4273. @click="contract(toolIndex)"
  4274. v-if="
  4275. (isCloseList[toolIndex].isCloseBoolean) &&
  4276. isCloseList[toolIndex].isClose == 0
  4277. "
  4278. >
  4279. 折叠
  4280. </div>
  4281. <div
  4282. class="corOpen"
  4283. @click="contract(toolIndex)"
  4284. v-if="isCloseList[toolIndex].isClose == 1"
  4285. >
  4286. 展开
  4287. </div>
  4288. </div>
  4289. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4290. </div>
  4291. <div>
  4292. <div
  4293. :id="'tool-' + toolIndex"
  4294. :style="{
  4295. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4296. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4297. }"
  4298. class="worksDetailBox"
  4299. v-if="
  4300. worksStudent.length &&
  4301. worksStudent[toolIndex].length > 0
  4302. "
  4303. >
  4304. <div
  4305. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4306. :key="wIndex"
  4307. class="isWorksName2"
  4308. @click="
  4309. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4310. "
  4311. >
  4312. {{ w.sName }}
  4313. <img
  4314. class="deleteImg deleteImg2"
  4315. src="../assets/deleteworks.png"
  4316. v-if="
  4317. w.userid == userid || tType == 1 || tType == 4
  4318. "
  4319. @click.stop="deleteWorks(w.wid)"
  4320. alt
  4321. />
  4322. </div>
  4323. <!-- <div class="works" style="
  4324. width: 200px;
  4325. height: 140px;
  4326. border-radius: 10px;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. overflow: hidden;
  4329. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4330. <div class="workImg">
  4331. <img src="../assets/icon/works/noImg.png" @click="
  4332. openTools(
  4333. 4,
  4334. toolIndex,
  4335. taskCount,
  4336. w.works,
  4337. w.sName
  4338. )
  4339. " alt />
  4340. </div>
  4341. <div class="worksName">
  4342. <div>{{ w.sName }}</div>
  4343. <div>{{ w.time }}</div>
  4344. </div>
  4345. </div> -->
  4346. </div>
  4347. </div>
  4348. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4349. 未提交
  4350. </div>
  4351. <div
  4352. class="noWorksS"
  4353. v-if="noWorksS && noWorksS[toolIndex].length"
  4354. >
  4355. <div
  4356. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4357. :key="sIndex"
  4358. class="noWorksName"
  4359. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4360. >
  4361. <el-tooltip effect="dark" :content="s.student" placement="top">
  4362. <span>{{ s.student }}</span>
  4363. </el-tooltip>
  4364. </div>
  4365. </div>
  4366. </div>
  4367. <div
  4368. v-if="
  4369. tType &&
  4370. ((tType == 2 && sIsOpen == true) ||
  4371. tType == 1 ||
  4372. tType == 4) &&
  4373. tool.tool.indexOf(45) != -1 &&
  4374. (tool.testJson.testJson[0].answer ||
  4375. tool.testJson.testJson[0].answer === 0) &&
  4376. checkJson[toolIndex].length
  4377. "
  4378. class="xuan_right_box"
  4379. >
  4380. <div
  4381. class="tool_right_box"
  4382. v-for="(item, index) in tool.testJson.testJson"
  4383. :key="index"
  4384. >
  4385. <div class="right_box_xuan" style="margin-right: 10px">
  4386. <span>正确率</span>
  4387. <span>{{
  4388. (checkJson[toolIndex][index].right
  4389. ? checkJson[toolIndex][index].right
  4390. : 0) + "%"
  4391. }}</span>
  4392. </div>
  4393. <div style="width: calc(100% - 30px);">
  4394. <el-tooltip
  4395. effect="light"
  4396. :content="index + 1 + '、' + item.teststitle"
  4397. placement="top"
  4398. popper-class="text_tooltip"
  4399. >
  4400. <div
  4401. style="
  4402. width: calc(100% - 130px);
  4403. display: flex;
  4404. white-space: nowrap;
  4405. overflow: hidden;
  4406. text-overflow: ellipsis;
  4407. word-break: break-word;
  4408. cursor: pointer;
  4409. "
  4410. >
  4411. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4412. </div>
  4413. </el-tooltip>
  4414. </div>
  4415. </div>
  4416. </div>
  4417. <div
  4418. class="xuan_right_box"
  4419. style="background: unset; padding: 0 10px; width: 91.5%"
  4420. v-if="
  4421. tType &&
  4422. ((tType == 2 && sIsOpen == true) ||
  4423. tType == 1 ||
  4424. tType == 4) &&
  4425. tool.tool.indexOf(45) != -1
  4426. "
  4427. >
  4428. <AskStatic2
  4429. v-if="
  4430. worksStudent.length &&
  4431. worksStudent[toolIndex].length > 0
  4432. "
  4433. :askJSON="tool"
  4434. :checkJson="checkJson[toolIndex]"
  4435. ></AskStatic2>
  4436. </div>
  4437. <div
  4438. v-if="
  4439. tType &&
  4440. ((tType == 2 && sIsOpen == true) ||
  4441. tType == 1 ||
  4442. tType == 4) &&
  4443. tool.tool.indexOf(45) != -1
  4444. "
  4445. class="worksBox"
  4446. >
  4447. <div
  4448. class="zuoyeYulan"
  4449. v-if="
  4450. worksStudent.length &&
  4451. worksStudent[toolIndex].length > 0
  4452. "
  4453. >
  4454. <div class="worksTop">
  4455. <div>作业预览</div>
  4456. <div
  4457. class="corOpen"
  4458. @click="contract(toolIndex)"
  4459. v-if="
  4460. (isCloseList[toolIndex].isCloseBoolean) &&
  4461. isCloseList[toolIndex].isClose == 0
  4462. "
  4463. >
  4464. 折叠
  4465. </div>
  4466. <div
  4467. class="corOpen"
  4468. @click="contract(toolIndex)"
  4469. v-if="isCloseList[toolIndex].isClose == 1"
  4470. >
  4471. 展开
  4472. </div>
  4473. </div>
  4474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4475. </div>
  4476. <div>
  4477. <div
  4478. :id="'tool-' + toolIndex"
  4479. :style="{
  4480. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4481. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4482. }"
  4483. class="worksDetailBox"
  4484. v-if="
  4485. worksStudent.length &&
  4486. worksStudent[toolIndex].length > 0
  4487. "
  4488. >
  4489. <div
  4490. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4491. :key="wIndex"
  4492. class="isWorksName2"
  4493. @click="
  4494. openTools(
  4495. 45,
  4496. toolIndex,
  4497. taskCount,
  4498. w.works,
  4499. w.sName
  4500. )
  4501. "
  4502. >
  4503. {{ w.sName }}
  4504. <img
  4505. class="deleteImg deleteImg2"
  4506. src="../assets/deleteworks.png"
  4507. v-if="
  4508. w.userid == userid || tType == 1 || tType == 4
  4509. "
  4510. @click.stop="deleteWorks(w.wid)"
  4511. alt
  4512. />
  4513. </div>
  4514. </div>
  4515. </div>
  4516. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4517. 未提交
  4518. </div>
  4519. <div
  4520. class="noWorksS"
  4521. v-if="noWorksS && noWorksS[toolIndex].length"
  4522. >
  4523. <div
  4524. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4525. :key="sIndex"
  4526. class="noWorksName"
  4527. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4528. >
  4529. <el-tooltip effect="dark" :content="s.student" placement="top">
  4530. <span>{{ s.student }}</span>
  4531. </el-tooltip>
  4532. </div>
  4533. </div>
  4534. </div>
  4535. <div
  4536. v-if="
  4537. tType &&
  4538. ((tType == 2 && sIsOpen == true) ||
  4539. tType == 1 ||
  4540. tType == 4) &&
  4541. tool.tool.indexOf(69) != -1
  4542. "
  4543. class="worksBox"
  4544. >
  4545. <div
  4546. class="zuoyeYulan"
  4547. v-if="
  4548. worksStudent.length &&
  4549. worksStudent[toolIndex].length > 0
  4550. "
  4551. >
  4552. <div class="worksTop">
  4553. <div>作业预览</div>
  4554. <div
  4555. class="corOpen"
  4556. @click="contract(toolIndex)"
  4557. v-if="
  4558. (isCloseList[toolIndex].isCloseBoolean) &&
  4559. isCloseList[toolIndex].isClose == 0
  4560. "
  4561. >
  4562. 折叠
  4563. </div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="isCloseList[toolIndex].isClose == 1"
  4568. >
  4569. 展开
  4570. </div>
  4571. </div>
  4572. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4573. </div>
  4574. <div>
  4575. <div
  4576. :id="'tool-' + toolIndex"
  4577. :style="{
  4578. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4579. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4580. }"
  4581. class="worksDetailBox"
  4582. v-if="
  4583. worksStudent.length &&
  4584. worksStudent[toolIndex].length > 0
  4585. "
  4586. >
  4587. <div
  4588. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4589. :key="wIndex"
  4590. class="isWorksName2"
  4591. style="width: 160px;height: 65px;line-height: 65px;"
  4592. @click="
  4593. openTools(
  4594. 69,
  4595. toolIndex,
  4596. taskCount,
  4597. w.works,
  4598. w.sName,
  4599. w.wid
  4600. )
  4601. "
  4602. >
  4603. {{ w.sName }}
  4604. <img
  4605. class="deleteImg1"
  4606. src="../assets/evaEnglish.png"
  4607. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4608. alt
  4609. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4610. />
  4611. <img
  4612. class="deleteImg deleteImg2"
  4613. src="../assets/deleteworks.png"
  4614. v-if="
  4615. w.userid == userid || tType == 1 || tType == 4
  4616. "
  4617. @click.stop="deleteWorks(w.wid)"
  4618. alt
  4619. />
  4620. </div>
  4621. </div>
  4622. </div>
  4623. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4624. 未提交
  4625. </div>
  4626. <div
  4627. class="noWorksS"
  4628. v-if="noWorksS && noWorksS[toolIndex].length"
  4629. >
  4630. <div
  4631. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4632. :key="sIndex"
  4633. class="noWorksName"
  4634. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4635. >
  4636. <el-tooltip effect="dark" :content="s.student" placement="top">
  4637. <span>{{ s.student }}</span>
  4638. </el-tooltip>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div
  4643. v-if="
  4644. tType &&
  4645. ((tType == 2 && sIsOpen == true) ||
  4646. tType == 1 ||
  4647. tType == 4) &&
  4648. tool.tool.indexOf(15) != -1
  4649. "
  4650. class="worksBox"
  4651. >
  4652. <div
  4653. class="zuoyeYulan"
  4654. v-if="
  4655. (worksStudent.length &&
  4656. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4657. "
  4658. >
  4659. <div class="worksTop">
  4660. <div>作业预览</div>
  4661. <div
  4662. class="corOpen"
  4663. @click="contract(toolIndex)"
  4664. v-if="
  4665. (isCloseList[toolIndex].isCloseBoolean) &&
  4666. isCloseList[toolIndex].isClose == 0
  4667. "
  4668. >
  4669. 折叠
  4670. </div>
  4671. <div
  4672. class="corOpen"
  4673. @click="contract(toolIndex)"
  4674. v-if="isCloseList[toolIndex].isClose == 1"
  4675. >
  4676. 展开
  4677. </div>
  4678. </div>
  4679. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4680. </div>
  4681. <div
  4682. class="group_workBox"
  4683. v-for="(g, gindex) in courseGroup.group"
  4684. :key="gindex"
  4685. >
  4686. <div class="group_box">
  4687. <div class="group_title">
  4688. <el-tooltip
  4689. class="item"
  4690. effect="light"
  4691. :content="g.name"
  4692. placement="top"
  4693. >
  4694. <div class="group_name">{{ g.name }}</div>
  4695. </el-tooltip>
  4696. </div>
  4697. <div
  4698. class="group_work"
  4699. v-if="
  4700. g.works &&
  4701. g.works.length &&
  4702. g.works[toolIndex].length
  4703. "
  4704. >
  4705. <div
  4706. class="works"
  4707. v-for="(w, wIndex) in g.works[toolIndex]"
  4708. :key="wIndex"
  4709. >
  4710. <div
  4711. class="workImg"
  4712. style="
  4713. border-radius: 15px;
  4714. box-shadow: 0px 0px 5px 5px #eee;
  4715. "
  4716. >
  4717. <div
  4718. class="answerBg"
  4719. style="border-radius: 15px 15px 0 0"
  4720. @click="
  4721. commentOther(w, toolIndex, wIndex, null, g.id)
  4722. "
  4723. >
  4724. <div class="answerContent">
  4725. {{ JSON.parse(w.works)[0].answer }}
  4726. </div>
  4727. <div
  4728. class="answerScore"
  4729. v-if="w.score"
  4730. @click.stop="openScore(w)"
  4731. :class="{
  4732. rightW:
  4733. w.userid == userid ||
  4734. tType == 1 ||
  4735. tType == 4,
  4736. }"
  4737. >
  4738. {{ JSON.parse(w.score).wScore }}分
  4739. </div>
  4740. <div
  4741. class="answerScore"
  4742. @click.stop="openScore(w)"
  4743. v-else-if="courseDetail.userid == userid"
  4744. :class="{
  4745. rightW:
  4746. w.userid == userid ||
  4747. tType == 1 ||
  4748. tType == 4,
  4749. }"
  4750. >
  4751. 评分
  4752. </div>
  4753. <img
  4754. class="deleteImg"
  4755. src="../assets/deleteworks.png"
  4756. v-if="
  4757. w.userid == userid ||
  4758. tType == 1 ||
  4759. tType == 4
  4760. "
  4761. @click.stop="deleteWorks(w.wid)"
  4762. alt
  4763. />
  4764. </div>
  4765. <div class="comment">
  4766. <div class="worksName">
  4767. <div>{{ w.sName }}</div>
  4768. </div>
  4769. <div class="commentList">
  4770. <div
  4771. class="commentImg"
  4772. @click="
  4773. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4774. "
  4775. >
  4776. <img
  4777. :src="w.isLikes == true ? likes : noLikes"
  4778. alt=""
  4779. />
  4780. </div>
  4781. <div>{{ w.likesCount }}</div>
  4782. </div>
  4783. <div
  4784. class="commentList"
  4785. style="margin-right: 15px"
  4786. >
  4787. <div
  4788. class="commentImg"
  4789. @click="
  4790. commentOther(
  4791. w,
  4792. toolIndex,
  4793. wIndex,
  4794. null,
  4795. g.id
  4796. )
  4797. "
  4798. >
  4799. <img
  4800. src="../assets/icon/comment/comment.png"
  4801. alt=""
  4802. />
  4803. </div>
  4804. <div>{{ w.commentCount }}</div>
  4805. </div>
  4806. </div>
  4807. </div>
  4808. </div>
  4809. </div>
  4810. <div class="group_work" v-else>暂无提交作业</div>
  4811. </div>
  4812. </div>
  4813. <div
  4814. :id="'tool-' + toolIndex"
  4815. :style="{
  4816. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4817. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4818. }"
  4819. class="worksDetailBox"
  4820. v-if="
  4821. worksStudent.length &&
  4822. worksStudent[toolIndex].length > 0
  4823. "
  4824. >
  4825. <div
  4826. class="works"
  4827. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4828. :key="wIndex"
  4829. >
  4830. <div
  4831. class="workImg"
  4832. style="
  4833. border-radius: 15px;
  4834. box-shadow: 0px 0px 5px 5px #eee;
  4835. "
  4836. >
  4837. <!-- <img
  4838. src="../assets/icon/works/noImg.png"
  4839. @click="openTools(15, toolIndex, taskCount, w.works)"
  4840. alt=""
  4841. />-->
  4842. <div
  4843. class="answerBg"
  4844. style="border-radius: 15px 15px 0 0"
  4845. @click="commentOther(w, toolIndex, wIndex)"
  4846. >
  4847. <!-- <div>{{ w.sName }}</div> -->
  4848. <div class="answerContent">
  4849. {{ JSON.parse(w.works)[0].answer }}
  4850. </div>
  4851. <div
  4852. class="answerScore"
  4853. v-if="w.score"
  4854. @click.stop="openScore(w)"
  4855. :class="{
  4856. rightW:
  4857. w.userid == userid ||
  4858. tType == 1 ||
  4859. tType == 4,
  4860. }"
  4861. >
  4862. {{ JSON.parse(w.score).wScore }}分
  4863. </div>
  4864. <div
  4865. class="answerScore"
  4866. @click.stop="openScore(w)"
  4867. v-else-if="courseDetail.userid == userid"
  4868. :class="{
  4869. rightW:
  4870. w.userid == userid ||
  4871. tType == 1 ||
  4872. tType == 4,
  4873. }"
  4874. >
  4875. 评分
  4876. </div>
  4877. <img
  4878. class="deleteImg"
  4879. src="../assets/deleteworks.png"
  4880. v-if="
  4881. w.userid == userid || tType == 1 || tType == 4
  4882. "
  4883. @click.stop="deleteWorks(w.wid)"
  4884. alt
  4885. />
  4886. </div>
  4887. <div class="comment">
  4888. <div class="worksName">
  4889. <div>{{ w.sName }}</div>
  4890. </div>
  4891. <div class="commentList">
  4892. <div
  4893. class="commentImg"
  4894. @click="
  4895. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4896. "
  4897. >
  4898. <img
  4899. :src="w.isLikes == true ? likes : noLikes"
  4900. alt=""
  4901. />
  4902. </div>
  4903. <div>{{ w.likesCount }}</div>
  4904. </div>
  4905. <div class="commentList" style="margin-right: 15px">
  4906. <div
  4907. class="commentImg"
  4908. @click="commentOther(w, toolIndex, wIndex)"
  4909. >
  4910. <img
  4911. src="../assets/icon/comment/comment.png"
  4912. alt=""
  4913. />
  4914. </div>
  4915. <div>{{ w.commentCount }}</div>
  4916. </div>
  4917. </div>
  4918. </div>
  4919. </div>
  4920. </div>
  4921. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4922. 未提交
  4923. </div>
  4924. <div
  4925. class="noWorksS"
  4926. v-if="noWorksS && noWorksS[toolIndex].length"
  4927. >
  4928. <div
  4929. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4930. :key="sIndex"
  4931. class="noWorksName"
  4932. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4933. >
  4934. <el-tooltip effect="dark" :content="s.student" placement="top">
  4935. <span>{{ s.student }}</span>
  4936. </el-tooltip>
  4937. </div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. v-if="
  4942. tType &&
  4943. ((tType == 2 && sIsOpen == true) ||
  4944. tType == 1 ||
  4945. tType == 4) &&
  4946. tool.tool.indexOf(1) != -1
  4947. "
  4948. class="worksBox"
  4949. >
  4950. <div
  4951. class="zuoyeYulan"
  4952. v-if="
  4953. (worksStudent.length &&
  4954. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4955. "
  4956. >
  4957. <div class="worksTop">
  4958. <div>作业预览</div>
  4959. <div
  4960. class="corOpen"
  4961. @click="contract(toolIndex)"
  4962. v-if="
  4963. (isCloseList[toolIndex].isCloseBoolean) &&
  4964. isCloseList[toolIndex].isClose == 0
  4965. "
  4966. >
  4967. 折叠
  4968. </div>
  4969. <div
  4970. class="corOpen"
  4971. @click="contract(toolIndex)"
  4972. v-if="isCloseList[toolIndex].isClose == 1"
  4973. >
  4974. 展开
  4975. </div>
  4976. </div>
  4977. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4978. </div>
  4979. <div
  4980. class="group_workBox"
  4981. v-for="(g, gindex) in courseGroup.group"
  4982. :key="gindex"
  4983. >
  4984. <div class="group_box">
  4985. <div class="group_title">
  4986. <el-tooltip
  4987. class="item"
  4988. effect="light"
  4989. :content="g.name"
  4990. placement="top"
  4991. >
  4992. <div class="group_name">{{ g.name }}</div>
  4993. </el-tooltip>
  4994. </div>
  4995. <div
  4996. class="group_work"
  4997. v-if="
  4998. g.works &&
  4999. g.works.length &&
  5000. g.works[toolIndex].length
  5001. "
  5002. >
  5003. <div
  5004. class="works"
  5005. style="
  5006. width: 200px;
  5007. height: 140px;
  5008. margin: 10px 10px 10px 0;
  5009. border-radius: 15px;
  5010. box-shadow: 0 0 6px 1px #dfdada;
  5011. "
  5012. v-for="(w, wIndex) in g.works[toolIndex]"
  5013. :key="wIndex"
  5014. :class="w.type == 1 ? 'isTypeOne' : ''"
  5015. >
  5016. <div class="workImg">
  5017. <img
  5018. :src="w.works"
  5019. @click="previewImg(w.works,w)"
  5020. alt
  5021. />
  5022. <div
  5023. class="answerScore"
  5024. v-if="w.score"
  5025. @click.stop="openScore(w)"
  5026. :class="{
  5027. rightW:
  5028. w.userid == userid ||
  5029. tType == 1 ||
  5030. tType == 4,
  5031. }"
  5032. >
  5033. {{ JSON.parse(w.score).wScore }}分
  5034. </div>
  5035. <div
  5036. class="answerScore"
  5037. @click.stop="openScore(w)"
  5038. v-else-if="courseDetail.userid == userid"
  5039. :class="{
  5040. rightW:
  5041. w.userid == userid ||
  5042. tType == 1 ||
  5043. tType == 4,
  5044. }"
  5045. >
  5046. 评分
  5047. </div>
  5048. <img
  5049. class="deleteImg"
  5050. src="../assets/deleteworks.png"
  5051. v-if="
  5052. w.userid == userid || tType == 1 || tType == 4
  5053. "
  5054. @click.stop="deleteWorks(w.wid)"
  5055. alt
  5056. />
  5057. </div>
  5058. <div class="comment" style="min-width: 200px">
  5059. <div class="worksName">
  5060. <div>{{ w.sName }}</div>
  5061. </div>
  5062. <div class="commentList">
  5063. <div class="commentList">
  5064. <div
  5065. class="commentImg"
  5066. @click="
  5067. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5068. "
  5069. >
  5070. <img
  5071. :src="w.isLikes == true ? likes : noLikes"
  5072. alt=""
  5073. />
  5074. </div>
  5075. <div>{{ w.likesCount }}</div>
  5076. </div>
  5077. <div
  5078. class="commentList"
  5079. style="margin-right: 15px"
  5080. >
  5081. <div
  5082. class="commentImg"
  5083. @click="
  5084. commentOther(
  5085. w,
  5086. toolIndex,
  5087. wIndex,
  5088. null,
  5089. g.id
  5090. )
  5091. "
  5092. >
  5093. <img
  5094. src="../assets/icon/comment/comment.png"
  5095. alt=""
  5096. />
  5097. </div>
  5098. <div>{{ w.commentCount }}</div>
  5099. </div>
  5100. </div>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. <div class="group_work" v-else>暂无提交作业</div>
  5105. </div>
  5106. </div>
  5107. <div
  5108. :id="'tool-' + toolIndex"
  5109. :style="{
  5110. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5111. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5112. }"
  5113. class="worksDetailBox"
  5114. v-if="
  5115. worksStudent.length &&
  5116. worksStudent[toolIndex].length > 0
  5117. "
  5118. >
  5119. <div
  5120. class="works"
  5121. style="
  5122. width: 200px;
  5123. height: 140px;
  5124. margin: 10px 10px 10px 0;
  5125. border-radius: 15px;
  5126. box-shadow: 0 0 6px 1px #dfdada;
  5127. "
  5128. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5129. :key="wIndex"
  5130. >
  5131. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5132. <div class="workImg">
  5133. <img
  5134. :src="w.works"
  5135. @click="previewImg(w.works,w)"
  5136. alt
  5137. />
  5138. <div
  5139. class="answerScore"
  5140. v-if="w.score"
  5141. @click.stop="openScore(w)"
  5142. :class="{
  5143. rightW:
  5144. w.userid == userid || tType == 1 || tType == 4,
  5145. }"
  5146. >
  5147. {{ JSON.parse(w.score).wScore }}分
  5148. </div>
  5149. <div
  5150. class="answerScore"
  5151. @click.stop="openScore(w)"
  5152. v-else-if="courseDetail.userid == userid"
  5153. :class="{
  5154. rightW:
  5155. w.userid == userid || tType == 1 || tType == 4,
  5156. }"
  5157. >
  5158. 评分
  5159. </div>
  5160. <img
  5161. class="deleteImg"
  5162. src="../assets/deleteworks.png"
  5163. v-if="
  5164. w.userid == userid || tType == 1 || tType == 4
  5165. "
  5166. @click.stop="deleteWorks(w.wid)"
  5167. alt
  5168. />
  5169. </div>
  5170. <div class="comment" style="min-width: 200px">
  5171. <div class="worksName">
  5172. <div>{{ w.sName }}</div>
  5173. </div>
  5174. <div class="commentList">
  5175. <div class="commentList">
  5176. <div
  5177. class="commentImg"
  5178. @click="
  5179. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5180. "
  5181. >
  5182. <img
  5183. :src="w.isLikes == true ? likes : noLikes"
  5184. alt=""
  5185. />
  5186. </div>
  5187. <div>{{ w.likesCount }}</div>
  5188. </div>
  5189. <div class="commentList" style="margin-right: 15px">
  5190. <div
  5191. class="commentImg"
  5192. @click="commentOther(w, toolIndex, wIndex)"
  5193. >
  5194. <img
  5195. src="../assets/icon/comment/comment.png"
  5196. alt=""
  5197. />
  5198. </div>
  5199. <div>{{ w.commentCount }}</div>
  5200. </div>
  5201. </div>
  5202. </div>
  5203. </div>
  5204. </div>
  5205. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5206. 未提交
  5207. </div>
  5208. <div
  5209. class="noWorksS"
  5210. v-if="noWorksS && noWorksS[toolIndex].length"
  5211. >
  5212. <div
  5213. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5214. :key="sIndex"
  5215. class="noWorksName"
  5216. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5217. >
  5218. <el-tooltip effect="dark" :content="s.student" placement="top">
  5219. <span>{{ s.student }}</span>
  5220. </el-tooltip>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. v-if="
  5226. tType &&
  5227. ((tType == 2 && sIsOpen == true) ||
  5228. tType == 1 ||
  5229. tType == 4) &&
  5230. tool.tool.indexOf(3) != -1
  5231. "
  5232. class="worksBox"
  5233. >
  5234. <div
  5235. class="zuoyeYulan"
  5236. v-if="
  5237. (worksStudent.length &&
  5238. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5239. "
  5240. >
  5241. <div class="worksTop">
  5242. <div>作业预览</div>
  5243. <div
  5244. class="corOpen"
  5245. @click="contract(toolIndex)"
  5246. v-if="
  5247. (isCloseList[toolIndex].isCloseBoolean) &&
  5248. isCloseList[toolIndex].isClose == 0
  5249. "
  5250. >
  5251. 折叠
  5252. </div>
  5253. <div
  5254. class="corOpen"
  5255. @click="contract(toolIndex)"
  5256. v-if="isCloseList[toolIndex].isClose == 1"
  5257. >
  5258. 展开
  5259. </div>
  5260. </div>
  5261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5262. </div>
  5263. <div
  5264. class="group_workBox"
  5265. v-for="(g, gindex) in courseGroup.group"
  5266. :key="gindex"
  5267. >
  5268. <div class="group_box">
  5269. <div class="group_title">
  5270. <el-tooltip
  5271. class="item"
  5272. effect="light"
  5273. :content="g.name"
  5274. placement="top"
  5275. >
  5276. <div class="group_name">{{ g.name }}</div>
  5277. </el-tooltip>
  5278. </div>
  5279. <div
  5280. class="group_work"
  5281. v-if="
  5282. g.works &&
  5283. g.works.length &&
  5284. g.works[toolIndex].length
  5285. "
  5286. >
  5287. <div
  5288. class="works"
  5289. style="
  5290. width: 200px;
  5291. height: 140px;
  5292. margin: 10px 10px 10px 0;
  5293. border-radius: 15px;
  5294. box-shadow: 0 0 6px 1px #dfdada;
  5295. "
  5296. v-for="(w, wIndex) in g.works[toolIndex]"
  5297. :key="wIndex"
  5298. :class="w.type == 1 ? 'isTypeOne' : ''"
  5299. >
  5300. <div class="workImg">
  5301. <img
  5302. :src="w.works"
  5303. @click="previewImg(w.works,w)"
  5304. alt
  5305. />
  5306. <div
  5307. class="answerScore"
  5308. v-if="w.score"
  5309. @click.stop="openScore(w)"
  5310. :class="{
  5311. rightW:
  5312. w.userid == userid ||
  5313. tType == 1 ||
  5314. tType == 4,
  5315. }"
  5316. >
  5317. {{ JSON.parse(w.score).wScore }}分
  5318. </div>
  5319. <div
  5320. class="answerScore"
  5321. @click.stop="openScore(w)"
  5322. v-else-if="courseDetail.userid == userid"
  5323. :class="{
  5324. rightW:
  5325. w.userid == userid ||
  5326. tType == 1 ||
  5327. tType == 4,
  5328. }"
  5329. >
  5330. 评分
  5331. </div>
  5332. <img
  5333. class="deleteImg"
  5334. src="../assets/deleteworks.png"
  5335. v-if="
  5336. w.userid == userid || tType == 1 || tType == 4
  5337. "
  5338. @click.stop="deleteWorks(w.wid)"
  5339. alt
  5340. />
  5341. </div>
  5342. <div class="comment" style="min-width: 200px">
  5343. <div class="worksName">
  5344. <div>{{ w.sName }}</div>
  5345. </div>
  5346. <div class="commentList">
  5347. <div class="commentList">
  5348. <div
  5349. class="commentImg"
  5350. @click="
  5351. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5352. "
  5353. >
  5354. <img
  5355. :src="w.isLikes == true ? likes : noLikes"
  5356. alt=""
  5357. />
  5358. </div>
  5359. <div>{{ w.likesCount }}</div>
  5360. </div>
  5361. <div
  5362. class="commentList"
  5363. style="margin-right: 15px"
  5364. >
  5365. <div
  5366. class="commentImg"
  5367. @click="
  5368. commentOther(
  5369. w,
  5370. toolIndex,
  5371. wIndex,
  5372. null,
  5373. g.id
  5374. )
  5375. "
  5376. >
  5377. <img
  5378. src="../assets/icon/comment/comment.png"
  5379. alt=""
  5380. />
  5381. </div>
  5382. <div>{{ w.commentCount }}</div>
  5383. </div>
  5384. </div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div class="group_work" v-else>暂无提交作业</div>
  5389. </div>
  5390. </div>
  5391. <div
  5392. :id="'tool-' + toolIndex"
  5393. :style="{
  5394. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5395. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5396. }"
  5397. class="worksDetailBox"
  5398. v-if="
  5399. worksStudent.length &&
  5400. worksStudent[toolIndex].length > 0
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5413. :key="wIndex"
  5414. >
  5415. <!-- @click="previewImg(w.works)" -->
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works,w)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid || tType == 1 || tType == 4,
  5429. }"
  5430. >
  5431. {{ JSON.parse(w.score).wScore }}分
  5432. </div>
  5433. <div
  5434. class="answerScore"
  5435. @click.stop="openScore(w)"
  5436. v-else-if="courseDetail.userid == userid"
  5437. :class="{
  5438. rightW:
  5439. w.userid == userid || tType == 1 || tType == 4,
  5440. }"
  5441. >
  5442. 评分
  5443. </div>
  5444. <img
  5445. class="deleteImg"
  5446. src="../assets/deleteworks.png"
  5447. v-if="
  5448. w.userid == userid || tType == 1 || tType == 4
  5449. "
  5450. @click.stop="deleteWorks(w.wid)"
  5451. alt
  5452. />
  5453. </div>
  5454. <div class="comment" style="min-width: 200px">
  5455. <div class="worksName">
  5456. <div>{{ w.sName }}</div>
  5457. </div>
  5458. <div class="commentList">
  5459. <div class="commentList">
  5460. <div
  5461. class="commentImg"
  5462. @click="
  5463. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5464. "
  5465. >
  5466. <img
  5467. :src="w.isLikes == true ? likes : noLikes"
  5468. alt=""
  5469. />
  5470. </div>
  5471. <div>{{ w.likesCount }}</div>
  5472. </div>
  5473. <div class="commentList" style="margin-right: 15px">
  5474. <div
  5475. class="commentImg"
  5476. @click="commentOther(w, toolIndex, wIndex)"
  5477. >
  5478. <img
  5479. src="../assets/icon/comment/comment.png"
  5480. alt=""
  5481. />
  5482. </div>
  5483. <div>{{ w.commentCount }}</div>
  5484. </div>
  5485. </div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5490. 未提交
  5491. </div>
  5492. <div
  5493. class="noWorksS"
  5494. v-if="noWorksS && noWorksS[toolIndex].length"
  5495. >
  5496. <div
  5497. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5498. :key="sIndex"
  5499. class="noWorksName"
  5500. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5501. >
  5502. <el-tooltip effect="dark" :content="s.student" placement="top">
  5503. <span>{{ s.student }}</span>
  5504. </el-tooltip>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. <div
  5509. v-if="
  5510. tType &&
  5511. ((tType == 2 && sIsOpen == true) ||
  5512. tType == 1 ||
  5513. tType == 4) &&
  5514. tool.tool.indexOf(6) != -1
  5515. "
  5516. class="worksBox"
  5517. >
  5518. <div
  5519. class="zuoyeYulan"
  5520. v-if="
  5521. (worksStudent.length &&
  5522. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5523. "
  5524. >
  5525. <div class="worksTop">
  5526. <div>作业预览</div>
  5527. <div
  5528. class="corOpen"
  5529. @click="contract(toolIndex)"
  5530. v-if="
  5531. (isCloseList[toolIndex].isCloseBoolean) &&
  5532. isCloseList[toolIndex].isClose == 0
  5533. "
  5534. >
  5535. 折叠
  5536. </div>
  5537. <div
  5538. class="corOpen"
  5539. @click="contract(toolIndex)"
  5540. v-if="isCloseList[toolIndex].isClose == 1"
  5541. >
  5542. 展开
  5543. </div>
  5544. </div>
  5545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5546. </div>
  5547. <div
  5548. class="group_workBox"
  5549. v-for="(g, gindex) in courseGroup.group"
  5550. :key="gindex"
  5551. >
  5552. <div class="group_box">
  5553. <div class="group_title">
  5554. <el-tooltip
  5555. class="item"
  5556. effect="light"
  5557. :content="g.name"
  5558. placement="top"
  5559. >
  5560. <div class="group_name">{{ g.name }}</div>
  5561. </el-tooltip>
  5562. </div>
  5563. <div
  5564. class="group_work"
  5565. v-if="
  5566. g.works &&
  5567. g.works.length &&
  5568. g.works[toolIndex].length
  5569. "
  5570. >
  5571. <div
  5572. class="works"
  5573. style="
  5574. width: 200px;
  5575. height: 140px;
  5576. margin: 10px 10px 10px 0;
  5577. border-radius: 15px;
  5578. box-shadow: 0 0 6px 1px #dfdada;
  5579. "
  5580. v-for="(w, wIndex) in g.works[toolIndex]"
  5581. :key="wIndex"
  5582. :class="w.type == 1 ? 'isTypeOne' : ''"
  5583. >
  5584. <div class="workImg">
  5585. <img
  5586. :src="w.works"
  5587. @click="previewImg(w.works,w)"
  5588. alt
  5589. />
  5590. <div
  5591. class="answerScore"
  5592. v-if="w.score"
  5593. @click.stop="openScore(w)"
  5594. :class="{
  5595. rightW:
  5596. w.userid == userid ||
  5597. tType == 1 ||
  5598. tType == 4,
  5599. }"
  5600. >
  5601. {{ JSON.parse(w.score).wScore }}分
  5602. </div>
  5603. <div
  5604. class="answerScore"
  5605. @click.stop="openScore(w)"
  5606. v-else-if="courseDetail.userid == userid"
  5607. :class="{
  5608. rightW:
  5609. w.userid == userid ||
  5610. tType == 1 ||
  5611. tType == 4,
  5612. }"
  5613. >
  5614. 评分
  5615. </div>
  5616. <img
  5617. class="deleteImg"
  5618. src="../assets/deleteworks.png"
  5619. v-if="
  5620. w.userid == userid || tType == 1 || tType == 4
  5621. "
  5622. @click.stop="deleteWorks(w.wid)"
  5623. alt
  5624. />
  5625. </div>
  5626. <div class="comment" style="min-width: 200px">
  5627. <div class="worksName">
  5628. <div>{{ w.sName }}</div>
  5629. </div>
  5630. <div class="commentList">
  5631. <div class="commentList">
  5632. <div
  5633. class="commentImg"
  5634. @click="
  5635. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5636. "
  5637. >
  5638. <img
  5639. :src="w.isLikes == true ? likes : noLikes"
  5640. alt=""
  5641. />
  5642. </div>
  5643. <div>{{ w.likesCount }}</div>
  5644. </div>
  5645. <div
  5646. class="commentList"
  5647. style="margin-right: 15px"
  5648. >
  5649. <div
  5650. class="commentImg"
  5651. @click="
  5652. commentOther(
  5653. w,
  5654. toolIndex,
  5655. wIndex,
  5656. null,
  5657. g.id
  5658. )
  5659. "
  5660. >
  5661. <img
  5662. src="../assets/icon/comment/comment.png"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.commentCount }}</div>
  5667. </div>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. <div class="group_work" v-else>暂无提交作业</div>
  5673. </div>
  5674. </div>
  5675. <div
  5676. :id="'tool-' + toolIndex"
  5677. :style="{
  5678. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5679. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5680. }"
  5681. class="worksDetailBox"
  5682. v-if="
  5683. worksStudent.length &&
  5684. worksStudent[toolIndex].length > 0
  5685. "
  5686. >
  5687. <div
  5688. class="works"
  5689. style="
  5690. width: 200px;
  5691. height: 140px;
  5692. margin: 10px 10px 10px 0;
  5693. border-radius: 15px;
  5694. box-shadow: 0 0 6px 1px #dfdada;
  5695. "
  5696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5697. :key="wIndex"
  5698. >
  5699. <!-- @click="previewImg(w.works)" -->
  5700. <div class="workImg">
  5701. <img
  5702. :src="w.works"
  5703. @click="previewImg(w.works,w)"
  5704. alt
  5705. />
  5706. <div
  5707. class="answerScore"
  5708. v-if="w.score"
  5709. @click.stop="openScore(w)"
  5710. :class="{
  5711. rightW:
  5712. w.userid == userid || tType == 1 || tType == 4,
  5713. }"
  5714. >
  5715. {{ JSON.parse(w.score).wScore }}分
  5716. </div>
  5717. <div
  5718. class="answerScore"
  5719. @click.stop="openScore(w)"
  5720. v-else-if="courseDetail.userid == userid"
  5721. :class="{
  5722. rightW:
  5723. w.userid == userid || tType == 1 || tType == 4,
  5724. }"
  5725. >
  5726. 评分
  5727. </div>
  5728. <img
  5729. class="deleteImg"
  5730. src="../assets/deleteworks.png"
  5731. v-if="
  5732. w.userid == userid || tType == 1 || tType == 4
  5733. "
  5734. @click.stop="deleteWorks(w.wid)"
  5735. alt
  5736. />
  5737. </div>
  5738. <div class="comment" style="min-width: 200px">
  5739. <div class="worksName">
  5740. <div>{{ w.sName }}</div>
  5741. </div>
  5742. <div class="commentList">
  5743. <div class="commentList">
  5744. <div
  5745. class="commentImg"
  5746. @click="
  5747. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5748. "
  5749. >
  5750. <img
  5751. :src="w.isLikes == true ? likes : noLikes"
  5752. alt=""
  5753. />
  5754. </div>
  5755. <div>{{ w.likesCount }}</div>
  5756. </div>
  5757. <div class="commentList" style="margin-right: 15px">
  5758. <div
  5759. class="commentImg"
  5760. @click="commentOther(w, toolIndex, wIndex)"
  5761. >
  5762. <img
  5763. src="../assets/icon/comment/comment.png"
  5764. alt=""
  5765. />
  5766. </div>
  5767. <div>{{ w.commentCount }}</div>
  5768. </div>
  5769. </div>
  5770. </div>
  5771. </div>
  5772. </div>
  5773. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5774. 未提交
  5775. </div>
  5776. <div
  5777. class="noWorksS"
  5778. v-if="noWorksS && noWorksS[toolIndex].length"
  5779. >
  5780. <div
  5781. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5782. :key="sIndex"
  5783. class="noWorksName"
  5784. >
  5785. <el-tooltip effect="dark" :content="s.student" placement="top">
  5786. <span>{{ s.student }}</span>
  5787. </el-tooltip>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. <div
  5792. v-if="
  5793. tType &&
  5794. ((tType == 2 && sIsOpen == true) ||
  5795. tType == 1 ||
  5796. tType == 4) &&
  5797. tool.tool.indexOf(7) != -1
  5798. "
  5799. class="worksBox"
  5800. >
  5801. <div
  5802. class="zuoyeYulan"
  5803. v-if="
  5804. (worksStudent.length &&
  5805. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5806. "
  5807. >
  5808. <div class="worksTop">
  5809. <div>作业预览</div>
  5810. <div
  5811. class="corOpen"
  5812. @click="contract(toolIndex)"
  5813. v-if="
  5814. (isCloseList[toolIndex].isCloseBoolean) &&
  5815. isCloseList[toolIndex].isClose == 0
  5816. "
  5817. >
  5818. 折叠
  5819. </div>
  5820. <div
  5821. class="corOpen"
  5822. @click="contract(toolIndex)"
  5823. v-if="isCloseList[toolIndex].isClose == 1"
  5824. >
  5825. 展开
  5826. </div>
  5827. </div>
  5828. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5829. </div>
  5830. <div
  5831. class="group_workBox"
  5832. v-for="(g, gindex) in courseGroup.group"
  5833. :key="gindex"
  5834. >
  5835. <div class="group_box">
  5836. <div class="group_title">
  5837. <el-tooltip
  5838. class="item"
  5839. effect="light"
  5840. :content="g.name"
  5841. placement="top"
  5842. >
  5843. <div class="group_name">{{ g.name }}</div>
  5844. </el-tooltip>
  5845. </div>
  5846. <div
  5847. class="group_work"
  5848. v-if="
  5849. g.works &&
  5850. g.works.length &&
  5851. g.works[toolIndex].length
  5852. "
  5853. >
  5854. <div
  5855. class="works"
  5856. style="
  5857. width: 200px;
  5858. height: 140px;
  5859. margin: 10px 10px 10px 0;
  5860. border-radius: 15px;
  5861. box-shadow: 0 0 6px 1px #dfdada;
  5862. "
  5863. v-for="(w, wIndex) in g.works[toolIndex]"
  5864. :key="wIndex"
  5865. :class="w.type == 1 ? 'isTypeOne' : ''"
  5866. >
  5867. <div class="workImg">
  5868. <img
  5869. :src="w.works"
  5870. @click="previewImg(w.works,w)"
  5871. alt
  5872. />
  5873. <div
  5874. class="answerScore"
  5875. v-if="w.score"
  5876. @click.stop="openScore(w)"
  5877. :class="{
  5878. rightW:
  5879. w.userid == userid ||
  5880. tType == 1 ||
  5881. tType == 4,
  5882. }"
  5883. >
  5884. {{ JSON.parse(w.score).wScore }}分
  5885. </div>
  5886. <div
  5887. class="answerScore"
  5888. @click.stop="openScore(w)"
  5889. v-else-if="courseDetail.userid == userid"
  5890. :class="{
  5891. rightW:
  5892. w.userid == userid ||
  5893. tType == 1 ||
  5894. tType == 4,
  5895. }"
  5896. >
  5897. 评分
  5898. </div>
  5899. <img
  5900. class="deleteImg"
  5901. src="../assets/deleteworks.png"
  5902. v-if="
  5903. w.userid == userid || tType == 1 || tType == 4
  5904. "
  5905. @click.stop="deleteWorks(w.wid)"
  5906. alt
  5907. />
  5908. </div>
  5909. <div class="comment" style="min-width: 200px">
  5910. <div class="worksName">
  5911. <div>{{ w.sName }}</div>
  5912. </div>
  5913. <div class="commentList">
  5914. <div class="commentList">
  5915. <div
  5916. class="commentImg"
  5917. @click="
  5918. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5919. "
  5920. >
  5921. <img
  5922. :src="w.isLikes == true ? likes : noLikes"
  5923. alt=""
  5924. />
  5925. </div>
  5926. <div>{{ w.likesCount }}</div>
  5927. </div>
  5928. <div
  5929. class="commentList"
  5930. style="margin-right: 15px"
  5931. >
  5932. <div
  5933. class="commentImg"
  5934. @click="
  5935. commentOther(
  5936. w,
  5937. toolIndex,
  5938. wIndex,
  5939. null,
  5940. g.id
  5941. )
  5942. "
  5943. >
  5944. <img
  5945. src="../assets/icon/comment/comment.png"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.commentCount }}</div>
  5950. </div>
  5951. </div>
  5952. </div>
  5953. </div>
  5954. </div>
  5955. <div class="group_work" v-else>暂无提交作业</div>
  5956. </div>
  5957. </div>
  5958. <div
  5959. :id="'tool-' + toolIndex"
  5960. :style="{
  5961. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5962. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5963. }"
  5964. class="worksDetailBox"
  5965. v-if="
  5966. worksStudent.length &&
  5967. worksStudent[toolIndex].length > 0
  5968. "
  5969. >
  5970. <div
  5971. class="works"
  5972. style="
  5973. width: 200px;
  5974. height: 140px;
  5975. margin: 10px 10px 10px 0;
  5976. border-radius: 15px;
  5977. box-shadow: 0 0 6px 1px #dfdada;
  5978. "
  5979. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5980. :key="wIndex"
  5981. >
  5982. <!-- @click="previewImg(w.works)" -->
  5983. <div class="workImg">
  5984. <img
  5985. :src="w.works"
  5986. @click="previewImg(w.works,w)"
  5987. alt
  5988. />
  5989. <div
  5990. class="answerScore"
  5991. v-if="w.score"
  5992. @click.stop="openScore(w)"
  5993. :class="{
  5994. rightW:
  5995. w.userid == userid || tType == 1 || tType == 4,
  5996. }"
  5997. >
  5998. {{ JSON.parse(w.score).wScore }}分
  5999. </div>
  6000. <div
  6001. class="answerScore"
  6002. @click.stop="openScore(w)"
  6003. v-else-if="courseDetail.userid == userid"
  6004. :class="{
  6005. rightW:
  6006. w.userid == userid || tType == 1 || tType == 4,
  6007. }"
  6008. >
  6009. 评分
  6010. </div>
  6011. <img
  6012. class="deleteImg"
  6013. src="../assets/deleteworks.png"
  6014. v-if="
  6015. w.userid == userid || tType == 1 || tType == 4
  6016. "
  6017. @click.stop="deleteWorks(w.wid)"
  6018. alt
  6019. />
  6020. </div>
  6021. <div class="comment" style="min-width: 200px">
  6022. <div class="worksName">
  6023. <div>{{ w.sName }}</div>
  6024. </div>
  6025. <div class="commentList">
  6026. <div class="commentList">
  6027. <div
  6028. class="commentImg"
  6029. @click="
  6030. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6031. "
  6032. >
  6033. <img
  6034. :src="w.isLikes == true ? likes : noLikes"
  6035. alt=""
  6036. />
  6037. </div>
  6038. <div>{{ w.likesCount }}</div>
  6039. </div>
  6040. <div class="commentList" style="margin-right: 15px">
  6041. <div
  6042. class="commentImg"
  6043. @click="commentOther(w, toolIndex, wIndex)"
  6044. >
  6045. <img
  6046. src="../assets/icon/comment/comment.png"
  6047. alt=""
  6048. />
  6049. </div>
  6050. <div>{{ w.commentCount }}</div>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. </div>
  6055. </div>
  6056. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6057. 未提交
  6058. </div>
  6059. <div
  6060. class="noWorksS"
  6061. v-if="noWorksS && noWorksS[toolIndex].length"
  6062. >
  6063. <div
  6064. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6065. :key="sIndex"
  6066. class="noWorksName"
  6067. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6068. >
  6069. <el-tooltip effect="dark" :content="s.student" placement="top">
  6070. <span>{{ s.student }}</span>
  6071. </el-tooltip>
  6072. </div>
  6073. </div>
  6074. </div>
  6075. <div
  6076. v-if="
  6077. tType &&
  6078. ((tType == 2 && sIsOpen == true) ||
  6079. tType == 1 ||
  6080. tType == 4) &&
  6081. tool.tool.indexOf(26) != -1
  6082. "
  6083. class="worksBox"
  6084. >
  6085. <div
  6086. class="zuoyeYulan"
  6087. v-if="
  6088. worksStudent.length &&
  6089. worksStudent[toolIndex].length > 0
  6090. "
  6091. >
  6092. <div class="worksTop">
  6093. <div>作业预览</div>
  6094. <div
  6095. class="corOpen"
  6096. @click="contract(toolIndex)"
  6097. v-if="
  6098. (isCloseList[toolIndex].isCloseBoolean) &&
  6099. isCloseList[toolIndex].isClose == 0
  6100. "
  6101. >
  6102. 折叠
  6103. </div>
  6104. <div
  6105. class="corOpen"
  6106. @click="contract(toolIndex)"
  6107. v-if="isCloseList[toolIndex].isClose == 1"
  6108. >
  6109. 展开
  6110. </div>
  6111. </div>
  6112. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6113. </div>
  6114. <div
  6115. :id="'tool-' + toolIndex"
  6116. :style="{
  6117. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6118. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6119. }"
  6120. class="worksDetailBox"
  6121. v-if="
  6122. worksStudent.length &&
  6123. worksStudent[toolIndex].length > 0
  6124. "
  6125. >
  6126. <div
  6127. class="works"
  6128. style="width: 240px; height: 140px; overflow: hidden"
  6129. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6130. :key="wIndex"
  6131. :class="w.type == 1 ? 'isTypeOne' : ''"
  6132. >
  6133. <div class="workImg" v-if="w.type == 0">
  6134. <img
  6135. :src="w.works"
  6136. @click="previewImg(w.works,w)"
  6137. alt
  6138. />
  6139. <img
  6140. class="deleteImg"
  6141. src="../assets/deleteworks.png"
  6142. v-if="
  6143. w.userid == userid || tType == 1 || tType == 4
  6144. "
  6145. @click.stop="deleteWorks(w.wid)"
  6146. alt
  6147. />
  6148. </div>
  6149. <div class="workImg" v-if="w.type == 1">
  6150. <img :src="word" @click="openFile(w.works,w)" alt />
  6151. <img
  6152. class="deleteImg"
  6153. src="../assets/deleteworks.png"
  6154. v-if="
  6155. w.userid == userid || tType == 1 || tType == 4
  6156. "
  6157. @click.stop="deleteWorks(w.wid)"
  6158. alt
  6159. />
  6160. </div>
  6161. <div class="worksName">
  6162. <div>{{ w.sName }}</div>
  6163. </div>
  6164. </div>
  6165. </div>
  6166. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6167. 未提交
  6168. </div>
  6169. <div
  6170. class="noWorksS"
  6171. v-if="noWorksS && noWorksS[toolIndex].length"
  6172. >
  6173. <div
  6174. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6175. :key="sIndex"
  6176. class="noWorksName"
  6177. >
  6178. <el-tooltip effect="dark" :content="s.student" placement="top">
  6179. <span>{{ s.student }}</span>
  6180. </el-tooltip>
  6181. </div>
  6182. </div>
  6183. </div>
  6184. <div
  6185. v-if="
  6186. tType &&
  6187. ((tType == 2 && sIsOpen == true) ||
  6188. tType == 1 ||
  6189. tType == 4) &&
  6190. tool.tool.indexOf(40) != -1
  6191. "
  6192. class="worksBox"
  6193. >
  6194. <div
  6195. class="zuoyeYulan"
  6196. v-if="
  6197. worksStudent.length &&
  6198. worksStudent[toolIndex].length > 0
  6199. "
  6200. >
  6201. <div class="worksTop">
  6202. <div>作业预览</div>
  6203. <div
  6204. class="corOpen"
  6205. @click="contract(toolIndex)"
  6206. v-if="
  6207. (isCloseList[toolIndex].isCloseBoolean) &&
  6208. isCloseList[toolIndex].isClose == 0
  6209. "
  6210. >
  6211. 折叠
  6212. </div>
  6213. <div
  6214. class="corOpen"
  6215. @click="contract(toolIndex)"
  6216. v-if="isCloseList[toolIndex].isClose == 1"
  6217. >
  6218. 展开
  6219. </div>
  6220. </div>
  6221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6222. </div>
  6223. <div
  6224. :id="'tool-' + toolIndex"
  6225. :style="{
  6226. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6227. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6228. }"
  6229. class="worksDetailBox"
  6230. v-if="
  6231. worksStudent.length &&
  6232. worksStudent[toolIndex].length > 0
  6233. "
  6234. >
  6235. <div
  6236. class="works"
  6237. style="
  6238. width: 200px;
  6239. height: 140px;
  6240. margin: 10px 10px 10px 0;
  6241. border-radius: 15px;
  6242. box-shadow: 0 0 6px 1px #dfdada;
  6243. "
  6244. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6245. :key="wIndex"
  6246. :class="w.type == 1 ? 'isTypeOne' : ''"
  6247. >
  6248. <div class="workImg">
  6249. <img
  6250. src="../assets/icon/works/noImg.png"
  6251. @click="openPj(w.works, toolIndex)"
  6252. alt
  6253. />
  6254. <img
  6255. class="deleteImg"
  6256. src="../assets/deleteworks.png"
  6257. v-if="
  6258. w.userid == userid || tType == 1 || tType == 4
  6259. "
  6260. @click.stop="deleteWorks(w.wid)"
  6261. alt
  6262. />
  6263. </div>
  6264. <div class="comment" style="min-width: 200px">
  6265. <div class="worksName">
  6266. <div>{{ w.sName }}</div>
  6267. </div>
  6268. <div class="commentList">
  6269. <div class="commentList">
  6270. <div
  6271. class="commentImg"
  6272. @click="
  6273. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6274. "
  6275. >
  6276. <img
  6277. :src="w.isLikes == true ? likes : noLikes"
  6278. alt=""
  6279. />
  6280. </div>
  6281. <div>{{ w.likesCount }}</div>
  6282. </div>
  6283. <div class="commentList" style="margin-right: 15px">
  6284. <div
  6285. class="commentImg"
  6286. @click="commentOther(w, toolIndex, wIndex)"
  6287. >
  6288. <img
  6289. src="../assets/icon/comment/comment.png"
  6290. alt=""
  6291. />
  6292. </div>
  6293. <div>{{ w.commentCount }}</div>
  6294. </div>
  6295. </div>
  6296. </div>
  6297. </div>
  6298. </div>
  6299. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6300. 未提交
  6301. </div>
  6302. <div
  6303. class="noWorksS"
  6304. v-if="noWorksS && noWorksS[toolIndex].length"
  6305. >
  6306. <div
  6307. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6308. :key="sIndex"
  6309. class="noWorksName"
  6310. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6311. >
  6312. <el-tooltip effect="dark" :content="s.student" placement="top">
  6313. <span>{{ s.student }}</span>
  6314. </el-tooltip>
  6315. </div>
  6316. </div>
  6317. </div>
  6318. <div
  6319. v-if="
  6320. tType &&
  6321. tType == 2 &&
  6322. !sIsOpen &&
  6323. tool.tool.indexOf(40) != -1
  6324. "
  6325. class="worksBox"
  6326. >
  6327. <div
  6328. class="zuoyeYulan"
  6329. v-if="workStudent[toolIndex].length > 0"
  6330. >
  6331. <span class="worksTitle">作业预览</span>
  6332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6333. </div>
  6334. <div
  6335. class="worksDetailBox"
  6336. v-if="workStudent[toolIndex].length > 0"
  6337. >
  6338. <div
  6339. class="works"
  6340. style="
  6341. width: 200px;
  6342. height: 140px;
  6343. margin: 10px 10px 10px 0;
  6344. "
  6345. v-for="(w, wIndex) in workStudent[toolIndex]"
  6346. :key="wIndex"
  6347. >
  6348. <div class="workImg">
  6349. <img
  6350. src="../assets/icon/works/noImg.png"
  6351. @click="openPj(w.works, toolIndex)"
  6352. alt
  6353. />
  6354. <img
  6355. class="deleteImg"
  6356. src="../assets/deleteworks.png"
  6357. v-if="
  6358. w.userid == userid || tType == 1 || tType == 4
  6359. "
  6360. @click.stop="deleteWorks(w.wid)"
  6361. alt
  6362. />
  6363. </div>
  6364. <div class="worksName">
  6365. <div>{{ w.sName }}</div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. </div>
  6370. <div
  6371. v-if="
  6372. tType &&
  6373. ((tType == 2 && sIsOpen == true) ||
  6374. tType == 1 ||
  6375. tType == 4) &&
  6376. tool.tool.indexOf(41) != -1
  6377. "
  6378. >
  6379. <AnswerData2
  6380. v-if="
  6381. worksStudent.length &&
  6382. worksStudent[toolIndex].length > 0
  6383. "
  6384. :problemJson="tool.selectJson.answer"
  6385. :people="worksStudent[toolIndex]"
  6386. ></AnswerData2>
  6387. </div>
  6388. <div
  6389. v-if="
  6390. tType &&
  6391. ((tType == 2 && sIsOpen == true) ||
  6392. tType == 1 ||
  6393. tType == 4) &&
  6394. tool.tool.indexOf(41) != -1
  6395. "
  6396. class="worksBox"
  6397. >
  6398. <div
  6399. class="zuoyeYulan"
  6400. v-if="
  6401. worksStudent.length &&
  6402. worksStudent[toolIndex].length > 0
  6403. "
  6404. >
  6405. <div class="worksTop">
  6406. <div>作业预览</div>
  6407. <div
  6408. class="corOpen"
  6409. @click="contract(toolIndex)"
  6410. v-if="
  6411. (isCloseList[toolIndex].isCloseBoolean) &&
  6412. isCloseList[toolIndex].isClose == 0
  6413. "
  6414. >
  6415. 折叠
  6416. </div>
  6417. <div
  6418. class="corOpen"
  6419. @click="contract(toolIndex)"
  6420. v-if="isCloseList[toolIndex].isClose == 1"
  6421. >
  6422. 展开
  6423. </div>
  6424. </div>
  6425. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6426. </div>
  6427. <div
  6428. :id="'tool-' + toolIndex"
  6429. :style="{
  6430. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6431. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6432. }"
  6433. class="worksDetailBox"
  6434. v-if="
  6435. worksStudent.length &&
  6436. worksStudent[toolIndex].length > 0
  6437. "
  6438. >
  6439. <div
  6440. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6441. :key="wIndex"
  6442. class="isWorksName2"
  6443. @click="openXz(w, toolIndex)"
  6444. >
  6445. {{ w.sName }}
  6446. <img
  6447. class="deleteImg deleteImg2"
  6448. src="../assets/deleteworks.png"
  6449. v-if="w.userid == userid || tType == 1 || tType == 4"
  6450. @click.stop="deleteWorks(w.wid)"
  6451. alt
  6452. />
  6453. </div>
  6454. <!-- <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. border-radius: 15px;
  6461. box-shadow: 0 0 6px 1px #dfdada;
  6462. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6463. :class="w.type == 5 ? 'isTypeOne' : ''">
  6464. <div class="workImg">
  6465. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6466. </div>
  6467. <div class="worksName">
  6468. <div>{{ w.sName }}</div>
  6469. </div>
  6470. </div> -->
  6471. </div>
  6472. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6473. 未提交
  6474. </div>
  6475. <div
  6476. class="noWorksS"
  6477. v-if="noWorksS && noWorksS[toolIndex].length"
  6478. >
  6479. <div
  6480. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6481. :key="sIndex"
  6482. class="noWorksName"
  6483. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6484. >
  6485. <el-tooltip effect="dark" :content="s.student" placement="top">
  6486. <span>{{ s.student }}</span>
  6487. </el-tooltip>
  6488. </div>
  6489. </div>
  6490. </div>
  6491. <div
  6492. v-if="
  6493. tType &&
  6494. tType == 2 &&
  6495. !sIsOpen &&
  6496. tool.tool.indexOf(41) != -1
  6497. "
  6498. class="worksBox"
  6499. >
  6500. <div
  6501. class="zuoyeYulan"
  6502. v-if="workStudent[toolIndex].length > 0"
  6503. >
  6504. <span class="worksTitle">作业预览</span>
  6505. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6506. </div>
  6507. <div
  6508. class="worksDetailBox"
  6509. v-if="workStudent[toolIndex].length > 0"
  6510. >
  6511. <div
  6512. class="works"
  6513. style="
  6514. width: 200px;
  6515. height: 140px;
  6516. margin: 10px 10px 10px 0;
  6517. "
  6518. v-for="(w, wIndex) in workStudent[toolIndex]"
  6519. :key="wIndex"
  6520. >
  6521. <div class="workImg">
  6522. <img
  6523. src="../assets/icon/works/noImg.png"
  6524. @click="openXz(w, toolIndex)"
  6525. alt
  6526. />
  6527. <img
  6528. class="deleteImg"
  6529. src="../assets/deleteworks.png"
  6530. v-if="
  6531. w.userid == userid || tType == 1 || tType == 4
  6532. "
  6533. @click.stop="deleteWorks(w.wid)"
  6534. alt
  6535. />
  6536. </div>
  6537. <div class="worksName">
  6538. <div>{{ w.sName }}</div>
  6539. </div>
  6540. </div>
  6541. </div>
  6542. </div>
  6543. <div v-if="false" class="xuan_right_box">
  6544. <div
  6545. class="tool_right_box"
  6546. v-for="(item, index) in tool.sentenceList"
  6547. :key="index"
  6548. >
  6549. <div>
  6550. <span
  6551. style="word-break: break-all; white-space: normal"
  6552. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6553. >
  6554. </div>
  6555. <div class="right_box_xuan">
  6556. <span>正确率</span>
  6557. <span>{{
  6558. (checkJson[toolIndex][index].right
  6559. ? checkJson[toolIndex][index].right
  6560. : 0) + "%"
  6561. }}</span>
  6562. </div>
  6563. <div class="right_box_xuan">
  6564. <span>答对人数</span>
  6565. <span>{{
  6566. checkJson[toolIndex][index].rightPerson.length
  6567. }}</span>
  6568. </div>
  6569. </div>
  6570. </div>
  6571. <div
  6572. v-if="
  6573. tType &&
  6574. ((tType == 2 && sIsOpen == true) ||
  6575. tType == 1 ||
  6576. tType == 4) &&
  6577. tool.tool.indexOf(47) != -1
  6578. "
  6579. >
  6580. <!-- <AnswerData
  6581. v-if="
  6582. checkJson[toolIndex].length &&
  6583. (tool.sentenceList || tool.sentenceList.length > 0)
  6584. "
  6585. :people="checkJson[toolIndex]"
  6586. ></AnswerData> -->
  6587. <sortToolWorkShow v-if="
  6588. worksStudent[toolIndex].length
  6589. "
  6590. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6591. </div>
  6592. <div
  6593. v-if="
  6594. tType &&
  6595. tType == 2 &&
  6596. !sIsOpen &&
  6597. tool.tool.indexOf(47) != -1
  6598. "
  6599. class="worksBox"
  6600. >
  6601. <div
  6602. class="zuoyeYulan"
  6603. v-if="workStudent[toolIndex].length > 0"
  6604. >
  6605. <span class="worksTitle">作业预览</span>
  6606. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6607. </div>
  6608. <div
  6609. class="worksDetailBox"
  6610. v-if="workStudent[toolIndex].length > 0"
  6611. >
  6612. <div
  6613. class="works"
  6614. style="
  6615. width: 200px;
  6616. height: 140px;
  6617. margin: 10px 10px 10px 0;
  6618. "
  6619. v-for="(w, wIndex) in workStudent[toolIndex]"
  6620. :key="wIndex"
  6621. >
  6622. <!-- @click="openXz(w, toolIndex)" -->
  6623. <div class="workImg" @click="openSen(w, toolIndex)">
  6624. <img src="../assets/icon/works/noImg.png" alt />
  6625. <img
  6626. class="deleteImg"
  6627. src="../assets/deleteworks.png"
  6628. v-if="
  6629. w.userid == userid || tType == 1 || tType == 4
  6630. "
  6631. @click.stop="deleteWorks(w.wid)"
  6632. alt
  6633. />
  6634. </div>
  6635. <div class="worksName">
  6636. <div>
  6637. {{ w.sName }}
  6638. </div>
  6639. </div>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div
  6644. v-if="
  6645. tType &&
  6646. ((tType == 2 && sIsOpen == true) ||
  6647. tType == 1 ||
  6648. tType == 4) &&
  6649. tool.tool.indexOf(47) != -1
  6650. "
  6651. class="worksBox"
  6652. >
  6653. <div
  6654. class="zuoyeYulan"
  6655. v-if="
  6656. worksStudent.length &&
  6657. worksStudent[toolIndex].length > 0
  6658. "
  6659. >
  6660. <div class="worksTop">
  6661. <div>作业预览</div>
  6662. <div
  6663. class="corOpen"
  6664. @click="contract(toolIndex)"
  6665. v-if="
  6666. (isCloseList[toolIndex].isCloseBoolean) &&
  6667. isCloseList[toolIndex].isClose == 0
  6668. "
  6669. >
  6670. 折叠
  6671. </div>
  6672. <div
  6673. class="corOpen"
  6674. @click="contract(toolIndex)"
  6675. v-if="isCloseList[toolIndex].isClose == 1"
  6676. >
  6677. 展开
  6678. </div>
  6679. </div>
  6680. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6681. </div>
  6682. <div
  6683. :id="'tool-' + toolIndex"
  6684. :style="{
  6685. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6686. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6687. }"
  6688. class="worksDetailBox"
  6689. v-if="
  6690. worksStudent.length &&
  6691. worksStudent[toolIndex].length > 0
  6692. "
  6693. >
  6694. <!-- @click="openXz(w, toolIndex)" -->
  6695. <div
  6696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6697. :key="wIndex"
  6698. class="isWorksName2"
  6699. @click="openSen(w, toolIndex)"
  6700. >
  6701. {{ w.sName }}
  6702. <img
  6703. class="deleteImg deleteImg2"
  6704. src="../assets/deleteworks.png"
  6705. v-if="w.userid == userid || tType == 1 || tType == 4"
  6706. @click.stop="deleteWorks(w.wid)"
  6707. alt
  6708. />
  6709. </div>
  6710. </div>
  6711. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6712. 未提交
  6713. </div>
  6714. <div
  6715. class="noWorksS"
  6716. v-if="noWorksS && noWorksS[toolIndex].length"
  6717. >
  6718. <div
  6719. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6720. :key="sIndex"
  6721. class="noWorksName"
  6722. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6723. >
  6724. <el-tooltip effect="dark" :content="s.student" placement="top">
  6725. <span>{{ s.student }}</span>
  6726. </el-tooltip>
  6727. </div>
  6728. </div>
  6729. </div>
  6730. <div
  6731. v-if="
  6732. tType &&
  6733. ((tType == 2 && sIsOpen == true) ||
  6734. tType == 1 ||
  6735. tType == 4) &&
  6736. tool.tool.indexOf(48) != -1
  6737. "
  6738. class="worksBox"
  6739. >
  6740. <div
  6741. class="zuoyeYulan"
  6742. v-if="
  6743. worksStudent.length &&
  6744. worksStudent[toolIndex].length > 0
  6745. "
  6746. >
  6747. <div class="worksTop">
  6748. <div>作业预览</div>
  6749. <div
  6750. class="corOpen"
  6751. @click="contract(toolIndex)"
  6752. v-if="
  6753. (isCloseList[toolIndex].isCloseBoolean) &&
  6754. isCloseList[toolIndex].isClose == 0
  6755. "
  6756. >
  6757. 折叠
  6758. </div>
  6759. <div
  6760. class="corOpen"
  6761. @click="contract(toolIndex)"
  6762. v-if="isCloseList[toolIndex].isClose == 1"
  6763. >
  6764. 展开
  6765. </div>
  6766. </div>
  6767. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6768. </div>
  6769. <div
  6770. :id="'tool-' + toolIndex"
  6771. :style="{
  6772. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6773. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6774. }"
  6775. class="worksDetailBox"
  6776. v-if="
  6777. worksStudent.length &&
  6778. worksStudent[toolIndex].length > 0
  6779. "
  6780. >
  6781. <div
  6782. class="works"
  6783. style="
  6784. width: 200px;
  6785. height: 140px;
  6786. margin: 10px 10px 10px 0;
  6787. border-radius: 15px;
  6788. box-shadow: 0 0 6px 1px #dfdada;
  6789. "
  6790. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6791. :key="wIndex"
  6792. :class="w.type == 1 ? 'isTypeOne' : ''"
  6793. >
  6794. <div class="workImg">
  6795. <img :src="word" @click="openTable(w)" alt />
  6796. <!-- @click="openFile(w.works)" -->
  6797. <div
  6798. class="answerScore"
  6799. v-if="w.score"
  6800. @click.stop="openScore(w)"
  6801. :class="{
  6802. rightW:
  6803. w.userid == userid ||
  6804. tType == 1 ||
  6805. tType == 4 ||
  6806. w.ateacher == userid,
  6807. }"
  6808. >
  6809. {{ JSON.parse(w.score).wScore }}分
  6810. </div>
  6811. <div
  6812. class="answerScore"
  6813. @click.stop="openScore(w)"
  6814. v-else-if="courseDetail.userid == userid"
  6815. :class="{
  6816. rightW:
  6817. w.userid == userid ||
  6818. tType == 1 ||
  6819. tType == 4 ||
  6820. w.ateacher == userid,
  6821. }"
  6822. >
  6823. 评分
  6824. </div>
  6825. <img
  6826. class="deleteImg"
  6827. src="../assets/deleteworks.png"
  6828. v-if="
  6829. w.userid == userid || tType == 1 || tType == 4
  6830. "
  6831. @click.stop="deleteWorks(w.wid)"
  6832. alt
  6833. />
  6834. </div>
  6835. <div class="comment" style="min-width: 200px">
  6836. <div class="worksName">
  6837. <div>{{ w.sName }}</div>
  6838. </div>
  6839. <div class="commentList">
  6840. <div class="commentList">
  6841. <div
  6842. class="commentImg"
  6843. @click="
  6844. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6845. "
  6846. >
  6847. <img
  6848. :src="w.isLikes == true ? likes : noLikes"
  6849. alt=""
  6850. />
  6851. </div>
  6852. <div>{{ w.likesCount }}</div>
  6853. </div>
  6854. <div class="commentList" style="margin-right: 15px">
  6855. <div
  6856. class="commentImg"
  6857. @click="commentOther(w, toolIndex, wIndex)"
  6858. >
  6859. <img
  6860. src="../assets/icon/comment/comment.png"
  6861. alt=""
  6862. />
  6863. </div>
  6864. <div>{{ w.commentCount }}</div>
  6865. </div>
  6866. </div>
  6867. </div>
  6868. </div>
  6869. </div>
  6870. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6871. 未提交
  6872. </div>
  6873. <div
  6874. class="noWorksS"
  6875. v-if="noWorksS && noWorksS[toolIndex].length"
  6876. >
  6877. <div
  6878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6879. :key="sIndex"
  6880. class="noWorksName"
  6881. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6882. >
  6883. <el-tooltip effect="dark" :content="s.student" placement="top">
  6884. <span>{{ s.student }}</span>
  6885. </el-tooltip>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. <div
  6890. v-if="
  6891. tType &&
  6892. tType == 2 &&
  6893. !sIsOpen &&
  6894. tool.tool.indexOf(48) != -1
  6895. "
  6896. class="worksBox"
  6897. >
  6898. <div
  6899. class="zuoyeYulan"
  6900. v-if="workStudent[toolIndex].length > 0"
  6901. >
  6902. <span class="worksTitle">作业预览</span>
  6903. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6904. </div>
  6905. <div
  6906. class="worksDetailBox"
  6907. v-if="workStudent[toolIndex].length > 0"
  6908. >
  6909. <div
  6910. class="works"
  6911. style="
  6912. width: 200px;
  6913. height: 140px;
  6914. margin: 10px 10px 10px 0;
  6915. box-shadow: 0 0 6px 1px #dfdada;
  6916. "
  6917. v-for="(w, wIndex) in workStudent[toolIndex]"
  6918. :key="wIndex"
  6919. >
  6920. <div class="workImg">
  6921. <img :src="word" @click="openTable(w)" alt />
  6922. <div
  6923. class="answerScore"
  6924. v-if="w.score"
  6925. @click.stop="openScore(w)"
  6926. :class="{
  6927. rightW:
  6928. w.userid == userid || tType == 1 || tType == 4,
  6929. }"
  6930. >
  6931. {{ JSON.parse(w.score).wScore }}分
  6932. </div>
  6933. <div
  6934. class="answerScore"
  6935. @click.stop="openScore(w)"
  6936. v-else-if="courseDetail.userid == userid"
  6937. :class="{
  6938. rightW:
  6939. w.userid == userid || tType == 1 || tType == 4,
  6940. }"
  6941. >
  6942. 评分
  6943. </div>
  6944. <img
  6945. class="deleteImg"
  6946. src="../assets/deleteworks.png"
  6947. v-if="
  6948. w.userid == userid || tType == 1 || tType == 4
  6949. "
  6950. @click.stop="deleteWorks(w.wid)"
  6951. alt
  6952. />
  6953. </div>
  6954. <div class="worksName">
  6955. <div>{{ w.sName }}</div>
  6956. </div>
  6957. </div>
  6958. </div>
  6959. </div>
  6960. <div
  6961. v-if="
  6962. tType &&
  6963. ((tType == 2 && sIsOpen == true) ||
  6964. tType == 1 ||
  6965. tType == 4) &&
  6966. tool.tool.indexOf(52) != -1
  6967. "
  6968. class="worksBox"
  6969. >
  6970. <div
  6971. class="zuoyeYulan"
  6972. v-if="
  6973. worksStudent.length &&
  6974. worksStudent[toolIndex].length > 0
  6975. "
  6976. >
  6977. <div class="worksTop">
  6978. <div>作业预览</div>
  6979. <div
  6980. class="corOpen"
  6981. @click="contract(toolIndex)"
  6982. v-if="
  6983. (isCloseList[toolIndex].isCloseBoolean) &&
  6984. isCloseList[toolIndex].isClose == 0
  6985. "
  6986. >
  6987. 折叠
  6988. </div>
  6989. <div
  6990. class="corOpen"
  6991. @click="contract(toolIndex)"
  6992. v-if="isCloseList[toolIndex].isClose == 1"
  6993. >
  6994. 展开
  6995. </div>
  6996. </div>
  6997. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6998. </div>
  6999. <div
  7000. :id="'tool-' + toolIndex"
  7001. :style="{
  7002. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7003. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7004. }"
  7005. class="worksDetailBox"
  7006. v-if="
  7007. worksStudent.length &&
  7008. worksStudent[toolIndex].length > 0
  7009. "
  7010. >
  7011. <div
  7012. class="works"
  7013. style="
  7014. width: 200px;
  7015. height: 140px;
  7016. margin: 10px 10px 10px 0;
  7017. border-radius: 15px;
  7018. box-shadow: 0 0 6px 1px #dfdada;
  7019. "
  7020. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7021. :key="wIndex"
  7022. :class="w.type == 1 ? 'isTypeOne' : ''"
  7023. >
  7024. <div class="workImg">
  7025. <img :src="word" @click="openWord(w)" alt />
  7026. <!-- @click="openFile(w.works)" -->
  7027. <div
  7028. class="answerScore"
  7029. v-if="w.score"
  7030. @click.stop="openScore(w)"
  7031. :class="{
  7032. rightW:
  7033. w.userid == userid ||
  7034. tType == 1 ||
  7035. tType == 4 ||
  7036. w.ateacher == userid,
  7037. }"
  7038. >
  7039. {{ JSON.parse(w.score).wScore }}分
  7040. </div>
  7041. <div
  7042. class="answerScore"
  7043. @click.stop="openScore(w)"
  7044. v-else-if="courseDetail.userid == userid"
  7045. :class="{
  7046. rightW:
  7047. w.userid == userid ||
  7048. tType == 1 ||
  7049. tType == 4 ||
  7050. w.ateacher == userid,
  7051. }"
  7052. >
  7053. 评分
  7054. </div>
  7055. <img
  7056. class="deleteImg"
  7057. src="../assets/deleteworks.png"
  7058. v-if="
  7059. w.userid == userid || tType == 1 || tType == 4
  7060. "
  7061. @click.stop="deleteWorks(w.wid)"
  7062. alt
  7063. />
  7064. </div>
  7065. <div class="comment" style="min-width: 200px">
  7066. <div class="worksName">
  7067. <div>{{ w.sName }}</div>
  7068. </div>
  7069. <div class="commentList">
  7070. <div class="commentList">
  7071. <div
  7072. class="commentImg"
  7073. @click="
  7074. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7075. "
  7076. >
  7077. <img
  7078. :src="w.isLikes == true ? likes : noLikes"
  7079. alt=""
  7080. />
  7081. </div>
  7082. <div>{{ w.likesCount }}</div>
  7083. </div>
  7084. <div class="commentList" style="margin-right: 15px">
  7085. <div
  7086. class="commentImg"
  7087. @click="commentOther(w, toolIndex, wIndex)"
  7088. >
  7089. <img
  7090. src="../assets/icon/comment/comment.png"
  7091. alt=""
  7092. />
  7093. </div>
  7094. <div>{{ w.commentCount }}</div>
  7095. </div>
  7096. </div>
  7097. </div>
  7098. </div>
  7099. </div>
  7100. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7101. 未提交
  7102. </div>
  7103. <div
  7104. class="noWorksS"
  7105. v-if="noWorksS && noWorksS[toolIndex].length"
  7106. >
  7107. <div
  7108. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7109. :key="sIndex"
  7110. class="noWorksName"
  7111. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7112. >
  7113. <el-tooltip effect="dark" :content="s.student" placement="top">
  7114. <span>{{ s.student }}</span>
  7115. </el-tooltip>
  7116. </div>
  7117. </div>
  7118. </div>
  7119. <div
  7120. v-if="
  7121. tType &&
  7122. tType == 2 &&
  7123. !sIsOpen &&
  7124. tool.tool.indexOf(52) != -1
  7125. "
  7126. class="worksBox"
  7127. >
  7128. <div
  7129. class="zuoyeYulan"
  7130. v-if="workStudent[toolIndex].length > 0"
  7131. >
  7132. <span class="worksTitle">作业预览</span>
  7133. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7134. </div>
  7135. <div
  7136. class="worksDetailBox"
  7137. v-if="workStudent[toolIndex].length > 0"
  7138. >
  7139. <div
  7140. class="works"
  7141. style="
  7142. width: 200px;
  7143. height: 140px;
  7144. margin: 10px 10px 10px 0;
  7145. box-shadow: 0 0 6px 1px #dfdada;
  7146. "
  7147. v-for="(w, wIndex) in workStudent[toolIndex]"
  7148. :key="wIndex"
  7149. >
  7150. <div class="workImg">
  7151. <img :src="word" @click="openWord(w)" alt />
  7152. <div
  7153. class="answerScore"
  7154. v-if="w.score"
  7155. @click.stop="openScore(w)"
  7156. :class="{
  7157. rightW:
  7158. w.userid == userid || tType == 1 || tType == 4,
  7159. }"
  7160. >
  7161. {{ JSON.parse(w.score).wScore }}分
  7162. </div>
  7163. <div
  7164. class="answerScore"
  7165. @click.stop="openScore(w)"
  7166. v-else-if="courseDetail.userid == userid"
  7167. :class="{
  7168. rightW:
  7169. w.userid == userid || tType == 1 || tType == 4,
  7170. }"
  7171. >
  7172. 评分
  7173. </div>
  7174. <img
  7175. class="deleteImg"
  7176. src="../assets/deleteworks.png"
  7177. v-if="
  7178. w.userid == userid || tType == 1 || tType == 4
  7179. "
  7180. @click.stop="deleteWorks(w.wid)"
  7181. alt
  7182. />
  7183. </div>
  7184. <div class="worksName">
  7185. <div>{{ w.sName }}</div>
  7186. </div>
  7187. </div>
  7188. </div>
  7189. </div>
  7190. <div
  7191. v-if="tool.tool.indexOf(49) != -1"
  7192. class="xuan_right_box"
  7193. style="margin: 0 15px 0 25px; width: 93%"
  7194. >
  7195. <div
  7196. v-if="courseDetail.userid == userid"
  7197. style="
  7198. display: flex;
  7199. justify-content: flex-end;
  7200. margin-right: 10px;
  7201. "
  7202. >
  7203. <el-button
  7204. type="primary"
  7205. size="small"
  7206. @click="addTools(49, toolIndex, taskCount)"
  7207. >分组设置</el-button
  7208. >
  7209. </div>
  7210. <div
  7211. v-if="groupStudentUid[toolIndex]"
  7212. class="group_staic_box"
  7213. >
  7214. <div
  7215. v-for="(gp, gd) in tool.groupJson.group"
  7216. :key="gd"
  7217. class="group_staic"
  7218. >
  7219. <span> {{ gp.name }}</span>
  7220. <span>
  7221. 目前人数{{
  7222. groupStudentUid[toolIndex][gd].length
  7223. }}人</span
  7224. >
  7225. </div>
  7226. </div>
  7227. </div>
  7228. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7229. <div
  7230. class="zuoyeYulan"
  7231. v-if="
  7232. worksStudent.length &&
  7233. worksStudent[toolIndex].length > 0
  7234. "
  7235. >
  7236. <span class="worksTitle">作业预览</span>
  7237. </div>
  7238. <div>
  7239. <div
  7240. class="group_workBox"
  7241. v-for="(g, gindex) in tool.groupJson.group"
  7242. :key="gindex"
  7243. >
  7244. <div
  7245. class="group_box"
  7246. v-if="
  7247. groupStudentUid[toolIndex] &&
  7248. worksStudent[toolIndex] &&
  7249. (worksStudent[toolIndex][gindex].length ||
  7250. groupStudentUid[toolIndex][gindex].indexOf(
  7251. userid
  7252. ) != -1)
  7253. "
  7254. >
  7255. <div class="group_title">
  7256. <el-tooltip
  7257. class="item"
  7258. effect="light"
  7259. :content="g.name"
  7260. placement="top"
  7261. >
  7262. <div class="group_name">{{ g.name }}</div>
  7263. </el-tooltip>
  7264. <el-button
  7265. type="primary"
  7266. v-if="
  7267. groupStudentUid[toolIndex][gindex].indexOf(
  7268. userid
  7269. ) != -1
  7270. "
  7271. @click="groupUpload(toolIndex, taskCount, gindex)"
  7272. >上传作业</el-button
  7273. >
  7274. </div>
  7275. <div class="group_work">
  7276. <div
  7277. class="works"
  7278. style="
  7279. width: 200px;
  7280. height: 140px;
  7281. margin: 10px 10px 10px 0;
  7282. border-radius: 15px;
  7283. box-shadow: 0 0 6px 1px #dfdada;
  7284. "
  7285. v-for="(w, wIndex) in worksStudent[toolIndex][
  7286. gindex
  7287. ]"
  7288. :key="wIndex"
  7289. :class="w.type == 1 ? 'isTypeOne' : ''"
  7290. >
  7291. <div class="workImg" v-if="w.type == 0">
  7292. <img
  7293. :src="w.works"
  7294. @click="previewImg(w.works,w)"
  7295. alt
  7296. />
  7297. <div
  7298. class="answerScore"
  7299. v-if="w.score"
  7300. @click.stop="openScore(w)"
  7301. :class="{
  7302. rightW:
  7303. w.userid == userid ||
  7304. tType == 1 ||
  7305. tType == 4 ||
  7306. w.ateacher == userid,
  7307. }"
  7308. >
  7309. {{ JSON.parse(w.score).wScore }}分
  7310. </div>
  7311. <div
  7312. class="answerScore"
  7313. @click.stop="openScore(w)"
  7314. v-else-if="courseDetail.userid == userid"
  7315. :class="{
  7316. rightW:
  7317. w.userid == userid ||
  7318. tType == 1 ||
  7319. tType == 4 ||
  7320. w.ateacher == userid,
  7321. }"
  7322. >
  7323. 评分
  7324. </div>
  7325. <img
  7326. class="deleteImg"
  7327. src="../assets/deleteworks.png"
  7328. v-if="
  7329. w.userid == userid ||
  7330. tType == 1 ||
  7331. tType == 4
  7332. "
  7333. @click.stop="deleteWorks(w.wid)"
  7334. alt
  7335. />
  7336. </div>
  7337. <div class="workImg" v-if="w.type == 1">
  7338. <img
  7339. :src="word"
  7340. @click="openFile(w.works,w)"
  7341. alt
  7342. />
  7343. <!-- @click="openFile(w.works)" -->
  7344. <div
  7345. class="answerScore"
  7346. v-if="w.score"
  7347. @click.stop="openScore(w)"
  7348. :class="{
  7349. rightW:
  7350. w.userid == userid ||
  7351. tType == 1 ||
  7352. tType == 4 ||
  7353. w.ateacher == userid,
  7354. }"
  7355. >
  7356. {{ JSON.parse(w.score).wScore }}分
  7357. </div>
  7358. <div
  7359. class="answerScore"
  7360. @click.stop="openScore(w)"
  7361. v-else-if="courseDetail.userid == userid"
  7362. :class="{
  7363. rightW:
  7364. w.userid == userid ||
  7365. tType == 1 ||
  7366. tType == 4 ||
  7367. w.ateacher == userid,
  7368. }"
  7369. >
  7370. 评分
  7371. </div>
  7372. <img
  7373. class="deleteImg"
  7374. src="../assets/deleteworks.png"
  7375. v-if="
  7376. w.userid == userid ||
  7377. tType == 1 ||
  7378. tType == 4
  7379. "
  7380. @click.stop="deleteWorks(w.wid)"
  7381. alt
  7382. />
  7383. </div>
  7384. <div class="workImg" v-if="w.type == 3">
  7385. <img
  7386. style="cursor: pointer"
  7387. :src="video"
  7388. @click="openVideo(w)"
  7389. alt
  7390. />
  7391. <!-- @click="openVideo(w.works)" -->
  7392. <div
  7393. class="answerScore"
  7394. v-if="w.score"
  7395. @click.stop="openScore(w)"
  7396. :class="{
  7397. rightW:
  7398. w.userid == userid ||
  7399. tType == 1 ||
  7400. tType == 4 ||
  7401. w.ateacher == userid,
  7402. }"
  7403. >
  7404. {{ JSON.parse(w.score).wScore }}分
  7405. </div>
  7406. <div
  7407. class="answerScore"
  7408. @click.stop="openScore(w)"
  7409. v-else-if="courseDetail.userid == userid"
  7410. :class="{
  7411. rightW:
  7412. w.userid == userid ||
  7413. tType == 1 ||
  7414. tType == 4 ||
  7415. w.ateacher == userid,
  7416. }"
  7417. >
  7418. 评分
  7419. </div>
  7420. <img
  7421. class="deleteImg"
  7422. src="../assets/deleteworks.png"
  7423. v-if="
  7424. w.userid == userid ||
  7425. tType == 1 ||
  7426. tType == 4
  7427. "
  7428. @click.stop="deleteWorks(w.wid)"
  7429. alt
  7430. />
  7431. </div>
  7432. <div class="workImg" v-if="w.type == 12">
  7433. <img
  7434. style="cursor: pointer"
  7435. :src="word2"
  7436. @click="downloadFile(w.works,w.userid)"
  7437. alt
  7438. />
  7439. <!-- @click="openVideo(w.works)" -->
  7440. <div
  7441. class="answerScore"
  7442. v-if="w.score"
  7443. @click.stop="openScore(w)"
  7444. :class="{
  7445. rightW:
  7446. w.userid == userid ||
  7447. tType == 1 ||
  7448. tType == 4 ||
  7449. w.ateacher == userid,
  7450. }"
  7451. >
  7452. {{ JSON.parse(w.score).wScore }}分
  7453. </div>
  7454. <div
  7455. class="answerScore"
  7456. @click.stop="openScore(w)"
  7457. v-else-if="courseDetail.userid == userid"
  7458. :class="{
  7459. rightW:
  7460. w.userid == userid ||
  7461. tType == 1 ||
  7462. tType == 4 ||
  7463. w.ateacher == userid,
  7464. }"
  7465. >
  7466. 评分
  7467. </div>
  7468. <img
  7469. class="deleteImg"
  7470. src="../assets/deleteworks.png"
  7471. v-if="
  7472. w.userid == userid ||
  7473. tType == 1 ||
  7474. tType == 4
  7475. "
  7476. @click.stop="deleteWorks(w.wid)"
  7477. alt
  7478. />
  7479. </div>
  7480. <div class="comment" style="min-width: 200px">
  7481. <div class="worksName">
  7482. <div>{{ w.sName }}</div>
  7483. </div>
  7484. <div class="commentList">
  7485. <div class="commentList">
  7486. <div
  7487. class="commentImg"
  7488. @click="
  7489. isLikes(
  7490. w.wid,
  7491. userid,
  7492. 1,
  7493. null,
  7494. w.isLikes,
  7495. w.sName
  7496. )
  7497. "
  7498. >
  7499. <img
  7500. :src="
  7501. w.isLikes == true ? likes : noLikes
  7502. "
  7503. alt=""
  7504. />
  7505. </div>
  7506. <div>{{ w.likesCount }}</div>
  7507. </div>
  7508. <div
  7509. class="commentList"
  7510. style="margin-right: 15px"
  7511. >
  7512. <div
  7513. class="commentImg"
  7514. @click="
  7515. commentOther(
  7516. w,
  7517. toolIndex,
  7518. wIndex,
  7519. gindex
  7520. )
  7521. "
  7522. >
  7523. <img
  7524. src="../assets/icon/comment/comment.png"
  7525. alt=""
  7526. />
  7527. </div>
  7528. <div>{{ w.commentCount }}</div>
  7529. </div>
  7530. </div>
  7531. </div>
  7532. </div>
  7533. </div>
  7534. </div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. </div>
  7539. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7540. 上传文件
  7541. <input
  7542. type="file"
  7543. accept="image/png, image/gif, image/jpeg"
  7544. style="display: none"
  7545. @change="beforeUpload1($event, 2, index)"
  7546. />
  7547. </div>-->
  7548. </div>
  7549. </div>
  7550. <!-- <div
  7551. class="vedioBox"
  7552. style="margin-top: 10px"
  7553. v-if="
  7554. courseDetail.userid == userid ||
  7555. (courseDetail.course_teacher &&
  7556. courseDetail.course_teacher.indexOf(userid) != -1)
  7557. "
  7558. :style="{
  7559. borderRadius:
  7560. !(
  7561. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7562. .toolChoose[0].tool &&
  7563. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7564. .toolChoose[0].tool.length > 0
  7565. ) &&
  7566. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7567. .taskDetail == '' &&
  7568. vChapterData[taskCount].length == 0 &&
  7569. fileC[taskCount].length == 0
  7570. ? '0 0 20px 20px'
  7571. : '20px',
  7572. }"
  7573. >
  7574. <div
  7575. class="queTop"
  7576. @click="isClose = !isClose"
  7577. style="
  7578. padding: 15px 0 15px 37px;
  7579. justify-content: space-between;
  7580. "
  7581. >
  7582. <div class="queTopTitle">新增工具</div>
  7583. <div class="queTopRight">
  7584. <div class="queTopClose" v-if="isClose == 0">
  7585. 展开
  7586. <div class="closeImg">
  7587. <img src="../assets/icon/newIcon/close.png" alt="" />
  7588. </div>
  7589. </div>
  7590. <div class="queTopClose" v-if="isClose == 1">
  7591. 折叠
  7592. <div class="openImg">
  7593. <img src="../assets/icon/newIcon/open.png" alt="" />
  7594. </div>
  7595. </div>
  7596. <el-button
  7597. style="margin: 0 30px 0 auto"
  7598. type="primary"
  7599. size="small"
  7600. v-if="isClose == 1 && checktoolArray.length > 0"
  7601. @click.stop="addToolChoose"
  7602. >确定</el-button
  7603. >
  7604. </div>
  7605. </div>
  7606. <div
  7607. class="tool_work_box"
  7608. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7609. >
  7610. <div class="tool_box">
  7611. <div class="tool_type_box">
  7612. <div class="chooseWho">
  7613. <div
  7614. :class="toolType == 0 ? 'isChooseActive' : ''"
  7615. @click="(toolType = 0), $forceUpdate()"
  7616. >
  7617. 互动类
  7618. </div>
  7619. <div
  7620. :class="toolType == 1 ? 'isChooseActive' : ''"
  7621. @click="(toolType = 1), $forceUpdate()"
  7622. >
  7623. 思维类
  7624. </div>
  7625. <div
  7626. :class="toolType == 2 ? 'isChooseActive' : ''"
  7627. @click="(toolType = 2), $forceUpdate()"
  7628. >
  7629. 测评类
  7630. </div>
  7631. <div
  7632. :class="toolType == 3 ? 'isChooseActive' : ''"
  7633. @click="(toolType = 3), $forceUpdate()"
  7634. >
  7635. 编程类
  7636. </div>
  7637. <div
  7638. :class="toolType == 5 ? 'isChooseActive' : ''"
  7639. @click="(toolType = 5), $forceUpdate()"
  7640. >
  7641. 学科类
  7642. </div>
  7643. </div>
  7644. </div>
  7645. <div>
  7646. <div class="toolSort" v-if="toolType == 0">
  7647. <div class="tool">
  7648. <div class="whiteBIcon" @click="addTools2(10)">
  7649. <img
  7650. src="../assets/icon/thirdToolList/time.png"
  7651. alt
  7652. />
  7653. <div style="margin: 5px 0">倒计时</div>
  7654. </div>
  7655. <div class="check" @click="addTools2(10)">
  7656. <img
  7657. src="../assets/icon/checkNo.png"
  7658. alt
  7659. v-if="checktoolArray.indexOf(10) == -1"
  7660. />
  7661. <div class="checkDiv" v-else>
  7662. <img src="../assets/icon/checkedIs.png" alt /><span
  7663. >已选择</span
  7664. >
  7665. </div>
  7666. </div>
  7667. </div>
  7668. <div class="tool">
  7669. <div class="whiteBIcon" @click="addTools2(65)">
  7670. <img
  7671. src="../assets/icon/firstToolList/pickPeople.png"
  7672. alt
  7673. />
  7674. <div style="margin: 5px 0">挑人</div>
  7675. </div>
  7676. <div class="check" @click="addTools2(65)">
  7677. <img
  7678. src="../assets/icon/checkNo.png"
  7679. alt
  7680. v-if="checktoolArray.indexOf(65) == -1"
  7681. />
  7682. <div class="checkDiv" v-else>
  7683. <img src="../assets/icon/checkedIs.png" alt /><span
  7684. >已选择</span
  7685. >
  7686. </div>
  7687. </div>
  7688. </div>
  7689. </div>
  7690. <div class="toolSort" v-if="toolType == 1">
  7691. <div class="tool">
  7692. <div class="whiteBIcon" @click="addTools2(7)">
  7693. <img
  7694. src="../assets/icon/secondToolList/mindNetwork.png"
  7695. alt
  7696. />
  7697. <div style="margin: 5px 0">思维网格</div>
  7698. </div>
  7699. <div class="check" @click="addTools2(7)">
  7700. <img
  7701. src="../assets/icon/checkNo.png"
  7702. alt
  7703. v-if="checktoolArray.indexOf(7) == -1"
  7704. />
  7705. <div class="checkDiv" v-else>
  7706. <img src="../assets/icon/checkedIs.png" alt /><span
  7707. >已选择</span
  7708. >
  7709. </div>
  7710. </div>
  7711. </div>
  7712. <div class="tool">
  7713. <div class="whiteBIcon" @click="addTools2(1)">
  7714. <img
  7715. src="../assets/icon/secondToolList/whiteBoard.png"
  7716. alt
  7717. />
  7718. <div style="margin: 5px 0">电子白板</div>
  7719. </div>
  7720. <div class="check" @click="addTools2(1)">
  7721. <img
  7722. src="../assets/icon/checkNo.png"
  7723. alt
  7724. v-if="checktoolArray.indexOf(1) == -1"
  7725. />
  7726. <div class="checkDiv" v-else>
  7727. <img src="../assets/icon/checkedIs.png" alt /><span
  7728. >已选择</span
  7729. >
  7730. </div>
  7731. </div>
  7732. </div>
  7733. <div class="tool">
  7734. <div class="whiteBIcon" @click="addTools2(52)">
  7735. <img
  7736. src="../assets/icon/fourthToolList/text.png"
  7737. alt
  7738. />
  7739. <div style="margin: 5px 0">文档</div>
  7740. </div>
  7741. <div class="check" @click="addTools2(52)">
  7742. <img
  7743. src="../assets/icon/checkNo.png"
  7744. alt
  7745. v-if="checktoolArray.indexOf(52) == -1"
  7746. />
  7747. <div class="checkDiv" v-else>
  7748. <img src="../assets/icon/checkedIs.png" alt /><span
  7749. >已选择</span
  7750. >
  7751. </div>
  7752. </div>
  7753. </div>
  7754. <div class="tool">
  7755. <div class="whiteBIcon" @click="addTools2(3)">
  7756. <img
  7757. src="../assets/icon/secondToolList/mindMapping.png"
  7758. alt
  7759. />
  7760. <div style="margin: 5px 0">思维导图</div>
  7761. </div>
  7762. <div class="check" @click="addTools2(3)">
  7763. <img
  7764. src="../assets/icon/checkNo.png"
  7765. alt
  7766. v-if="checktoolArray.indexOf(3) == -1"
  7767. />
  7768. <div class="checkDiv" v-else>
  7769. <img src="../assets/icon/checkedIs.png" alt /><span
  7770. >已选择</span
  7771. >
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <div class="tool">
  7776. <div class="whiteBIcon" @click="addTools2(48)">
  7777. <img
  7778. src="../assets/icon/fourthToolList/table.png"
  7779. alt
  7780. />
  7781. <div style="margin: 5px 0">表格</div>
  7782. </div>
  7783. <div class="check" @click="addTools2(48)">
  7784. <img
  7785. src="../assets/icon/checkNo.png"
  7786. alt
  7787. v-if="checktoolArray.indexOf(48) == -1"
  7788. />
  7789. <div class="checkDiv" v-else>
  7790. <img src="../assets/icon/checkedIs.png" alt /><span
  7791. >已选择</span
  7792. >
  7793. </div>
  7794. </div>
  7795. </div>
  7796. </div>
  7797. <div class="toolSort" v-if="toolType == 6">
  7798. <div v-show="tooC == 49">
  7799. <img
  7800. @click="addTools(tooC, toolIndex, taskCount)"
  7801. src="../assets/icon/fourthToolList/group.png"
  7802. alt
  7803. />
  7804. <div style="margin: 5px 0">学生分组</div>
  7805. </div>
  7806. </div>
  7807. <div class="toolSort" v-if="toolType == 2">
  7808. <div class="tool">
  7809. <div class="whiteBIcon" @click="addTools2(16)">
  7810. <img
  7811. src="../assets/icon/thirdToolList/work.png"
  7812. alt
  7813. />
  7814. <div style="margin: 5px 0">作业提交</div>
  7815. </div>
  7816. <div class="check" @click="addTools2(16)">
  7817. <img
  7818. src="../assets/icon/checkNo.png"
  7819. alt
  7820. v-if="checktoolArray.indexOf(16) == -1"
  7821. />
  7822. <div class="checkDiv" v-else>
  7823. <img src="../assets/icon/checkedIs.png" alt /><span
  7824. >已选择</span
  7825. >
  7826. </div>
  7827. </div>
  7828. </div>
  7829. <div class="tool">
  7830. <div class="whiteBIcon" @click="addTools2(50)">
  7831. <img
  7832. src="../assets/icon/thirdToolList/plwork.png"
  7833. alt
  7834. />
  7835. <div style="margin: 5px 0">批量上传</div>
  7836. </div>
  7837. <div class="check" @click="addTools2(50)">
  7838. <img
  7839. src="../assets/icon/checkNo.png"
  7840. alt
  7841. v-if="checktoolArray.indexOf(50) == -1"
  7842. />
  7843. <div class="checkDiv" v-else>
  7844. <img src="../assets/icon/checkedIs.png" alt /><span
  7845. >已选择</span
  7846. >
  7847. </div>
  7848. </div>
  7849. </div>
  7850. </div>
  7851. <div class="toolSort" v-if="toolType == 3">
  7852. <div class="tool">
  7853. <div class="whiteBIcon" @click="addTools2(18)">
  7854. <img
  7855. src="../assets/icon/thirdToolList/trainPlatform.png"
  7856. alt
  7857. />
  7858. <div style="margin: 5px 0">训练平台</div>
  7859. </div>
  7860. <div class="check" @click="addTools2(18)">
  7861. <img
  7862. src="../assets/icon/checkNo.png"
  7863. alt
  7864. v-if="checktoolArray.indexOf(18) == -1"
  7865. />
  7866. <div class="checkDiv" v-else>
  7867. <img src="../assets/icon/checkedIs.png" alt /><span
  7868. >已选择</span
  7869. >
  7870. </div>
  7871. </div>
  7872. </div>
  7873. <div class="tool">
  7874. <div class="whiteBIcon" @click="addTools2(21)">
  7875. <img
  7876. src="../assets/icon/fourthToolList/program.png"
  7877. alt
  7878. />
  7879. <div style="margin: 5px 0">AIoT Blockly</div>
  7880. </div>
  7881. <div class="check" @click="addTools2(21)">
  7882. <img
  7883. src="../assets/icon/checkNo.png"
  7884. alt
  7885. v-if="checktoolArray.indexOf(21) == -1"
  7886. />
  7887. <div class="checkDiv" v-else>
  7888. <img src="../assets/icon/checkedIs.png" alt /><span
  7889. >已选择</span
  7890. >
  7891. </div>
  7892. </div>
  7893. </div>
  7894. <div class="tool">
  7895. <div class="whiteBIcon" @click="addTools2(23)">
  7896. <img
  7897. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7898. alt
  7899. />
  7900. <div style="margin: 5px 0">AI Python</div>
  7901. </div>
  7902. <div class="check" @click="addTools2(23)">
  7903. <img
  7904. src="../assets/icon/checkNo.png"
  7905. alt
  7906. v-if="checktoolArray.indexOf(23) == -1"
  7907. />
  7908. <div class="checkDiv" v-else>
  7909. <img src="../assets/icon/checkedIs.png" alt /><span
  7910. >已选择</span
  7911. >
  7912. </div>
  7913. </div>
  7914. </div>
  7915. <div class="tool">
  7916. <div class="whiteBIcon" @click="addTools2(24)">
  7917. <img
  7918. src="../assets/icon/fourthToolList/AIprogram.png"
  7919. alt
  7920. />
  7921. <div style="margin: 5px 0">AI Blockly</div>
  7922. </div>
  7923. <div class="check" @click="addTools2(24)">
  7924. <img
  7925. src="../assets/icon/checkNo.png"
  7926. alt
  7927. v-if="checktoolArray.indexOf(24) == -1"
  7928. />
  7929. <div class="checkDiv" v-else>
  7930. <img src="../assets/icon/checkedIs.png" alt /><span
  7931. >已选择</span
  7932. >
  7933. </div>
  7934. </div>
  7935. </div>
  7936. <div class="tool">
  7937. <div class="whiteBIcon" @click="addTools2(32)">
  7938. <img
  7939. src="../assets/icon/thirdToolList/code.png"
  7940. alt
  7941. />
  7942. <div style="margin: 5px 0">源码编辑</div>
  7943. </div>
  7944. <div class="check" @click="addTools2(32)">
  7945. <img
  7946. src="../assets/icon/checkNo.png"
  7947. alt
  7948. v-if="checktoolArray.indexOf(32) == -1"
  7949. />
  7950. <div class="checkDiv" v-else>
  7951. <img src="../assets/icon/checkedIs.png" alt /><span
  7952. >已选择</span
  7953. >
  7954. </div>
  7955. </div>
  7956. </div>
  7957. <div class="tool">
  7958. <div class="whiteBIcon" @click="addTools2(57)">
  7959. <img
  7960. src="../assets/icon/fourthToolList/cocopi.png"
  7961. alt
  7962. />
  7963. <div style="margin: 5px 0">CocoPi</div>
  7964. </div>
  7965. <div class="check" @click="addTools2(57)">
  7966. <img
  7967. src="../assets/icon/checkNo.png"
  7968. alt
  7969. v-if="checktoolArray.indexOf(57) == -1"
  7970. />
  7971. <div class="checkDiv" v-else>
  7972. <img src="../assets/icon/checkedIs.png" alt /><span
  7973. >已选择</span
  7974. >
  7975. </div>
  7976. </div>
  7977. </div>
  7978. <div class="tool">
  7979. <div class="whiteBIcon" @click="addTools2(63)">
  7980. <img
  7981. src="../assets/icon/fourthToolList/Wood.png"
  7982. alt
  7983. />
  7984. <div style="margin: 5px 0">海龟编程</div>
  7985. </div>
  7986. <div class="check" @click="addTools2(63)">
  7987. <img
  7988. src="../assets/icon/checkNo.png"
  7989. alt
  7990. v-if="checktoolArray.indexOf(63) == -1"
  7991. />
  7992. <div class="checkDiv" v-else>
  7993. <img src="../assets/icon/checkedIs.png" alt /><span
  7994. >已选择</span
  7995. >
  7996. </div>
  7997. </div>
  7998. </div>
  7999. </div>
  8000. <div class="toolSort" v-if="toolType == 5">
  8001. <div class="tool">
  8002. <div class="whiteBIcon" @click="addTools2(28)">
  8003. <img
  8004. src="../assets/icon/secondToolList/translation.png"
  8005. alt
  8006. />
  8007. <div style="margin: 5px 0">翻译</div>
  8008. </div>
  8009. <div class="check" @click="addTools2(28)">
  8010. <img
  8011. src="../assets/icon/checkNo.png"
  8012. alt
  8013. v-if="checktoolArray.indexOf(28) == -1"
  8014. />
  8015. <div class="checkDiv" v-else>
  8016. <img src="../assets/icon/checkedIs.png" alt /><span
  8017. >已选择</span
  8018. >
  8019. </div>
  8020. </div>
  8021. </div>
  8022. <div class="tool">
  8023. <div class="whiteBIcon" @click="addTools2(31)">
  8024. <img
  8025. src="../assets/icon/secondToolList/networkPanel.png"
  8026. alt
  8027. />
  8028. <div style="margin: 5px 0">数字画板</div>
  8029. </div>
  8030. <div class="check" @click="addTools2(31)">
  8031. <img
  8032. src="../assets/icon/checkNo.png"
  8033. alt
  8034. v-if="checktoolArray.indexOf(31) == -1"
  8035. />
  8036. <div class="checkDiv" v-else>
  8037. <img src="../assets/icon/checkedIs.png" alt /><span
  8038. >已选择</span
  8039. >
  8040. </div>
  8041. </div>
  8042. </div>
  8043. <div class="tool">
  8044. <div class="whiteBIcon" @click="addTools2(39)">
  8045. <img
  8046. src="../assets/icon/secondToolList/GeoGebra.png"
  8047. alt
  8048. />
  8049. <div style="margin: 5px 0">GeoGebra</div>
  8050. </div>
  8051. <div class="check" @click="addTools2(39)">
  8052. <img
  8053. src="../assets/icon/checkNo.png"
  8054. alt
  8055. v-if="checktoolArray.indexOf(39) == -1"
  8056. />
  8057. <div class="checkDiv" v-else>
  8058. <img src="../assets/icon/checkedIs.png" alt /><span
  8059. >已选择</span
  8060. >
  8061. </div>
  8062. </div>
  8063. </div>
  8064. <div class="tool">
  8065. <div class="whiteBIcon" @click="addTools2(66)">
  8066. <img
  8067. src="../assets/icon/secondToolList/formulaEdi.png"
  8068. alt
  8069. />
  8070. <div style="margin: 5px 0">公式编辑</div>
  8071. </div>
  8072. <div class="check" @click="addTools2(66)">
  8073. <img
  8074. src="../assets/icon/checkNo.png"
  8075. alt
  8076. v-if="checktoolArray.indexOf(66) == -1"
  8077. />
  8078. <div class="checkDiv" v-else>
  8079. <img src="../assets/icon/checkedIs.png" alt /><span
  8080. >已选择</span
  8081. >
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <div class="tool">
  8086. <div class="whiteBIcon" @click="addTools2(67)">
  8087. <img
  8088. src="../assets/icon/secondToolList/molStr.png"
  8089. alt
  8090. />
  8091. <div style="margin: 5px 0">分子结构</div>
  8092. </div>
  8093. <div class="check" @click="addTools2(67)">
  8094. <img
  8095. src="../assets/icon/checkNo.png"
  8096. alt
  8097. v-if="checktoolArray.indexOf(67) == -1"
  8098. />
  8099. <div class="checkDiv" v-else>
  8100. <img src="../assets/icon/checkedIs.png" alt /><span
  8101. >已选择</span
  8102. >
  8103. </div>
  8104. </div>
  8105. </div>
  8106. <div class="tool">
  8107. <div class="whiteBIcon" @click="addTools2(68)">
  8108. <img
  8109. src="../assets/icon/secondToolList/timeAxis.png"
  8110. alt
  8111. />
  8112. <div style="margin: 5px 0">时间轴</div>
  8113. </div>
  8114. <div class="check" @click="addTools2(68)">
  8115. <img
  8116. src="../assets/icon/checkNo.png"
  8117. alt
  8118. v-if="checktoolArray.indexOf(68) == -1"
  8119. />
  8120. <div class="checkDiv" v-else>
  8121. <img src="../assets/icon/checkedIs.png" alt /><span
  8122. >已选择</span
  8123. >
  8124. </div>
  8125. </div>
  8126. </div>
  8127. </div>
  8128. <div class="toolSort" v-if="toolType == 7">
  8129. <div class="tool">
  8130. <div class="whiteBIcon" @click="addTools2(40)">
  8131. <img
  8132. src="../assets/icon/secondToolList/eval.png"
  8133. alt
  8134. />
  8135. <div style="margin: 5px 0">个人评价</div>
  8136. </div>
  8137. <div class="check" @click="addTools2(40)">
  8138. <img
  8139. src="../assets/icon/checkNo.png"
  8140. alt
  8141. v-if="checktoolArray.indexOf(40) == -1"
  8142. />
  8143. <div class="checkDiv" v-else>
  8144. <img src="../assets/icon/checkedIs.png" alt /><span
  8145. >已选择</span
  8146. >
  8147. </div>
  8148. </div>
  8149. </div>
  8150. </div>
  8151. <div class="toolSort" v-if="toolType == 4">
  8152. <div class="tool">
  8153. <div class="whiteBIcon" @click="addTools2(26)">
  8154. <img
  8155. src="../assets/icon/thirdToolList/courseDesign.png"
  8156. alt
  8157. />
  8158. <div style="margin: 5px 0">课程设计</div>
  8159. </div>
  8160. <div class="check" @click="addTools2(26)">
  8161. <img
  8162. src="../assets/icon/checkNo.png"
  8163. alt
  8164. v-if="checktoolArray.indexOf(26) == -1"
  8165. />
  8166. <div class="checkDiv" v-else>
  8167. <img src="../assets/icon/checkedIs.png" alt /><span
  8168. >已选择</span
  8169. >
  8170. </div>
  8171. </div>
  8172. </div>
  8173. <div class="tool">
  8174. <div class="whiteBIcon" @click="addTools2(25)">
  8175. <img
  8176. src="../assets/icon/thirdToolList/evalua.png"
  8177. alt
  8178. />
  8179. <div style="margin: 5px 0">目标管理</div>
  8180. </div>
  8181. <div class="check" @click="addTools2(25)">
  8182. <img
  8183. src="../assets/icon/checkNo.png"
  8184. alt
  8185. v-if="checktoolArray.indexOf(25) == -1"
  8186. />
  8187. <div class="checkDiv" v-else>
  8188. <img src="../assets/icon/checkedIs.png" alt /><span
  8189. >已选择</span
  8190. >
  8191. </div>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. </div> -->
  8199. <div
  8200. class="vedioBox"
  8201. style="margin-top: 10px; border-radius: 20px"
  8202. v-if="
  8203. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8204. .eList &&
  8205. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8206. .eList.length &&
  8207. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8208. .eList.length > 0 &&
  8209. tType != 2
  8210. "
  8211. >
  8212. <div
  8213. class="queTop"
  8214. style="
  8215. font-size: 20px;
  8216. padding: 15px 0 15px 37px;
  8217. font-weight: bold;
  8218. "
  8219. >
  8220. <!-- <div class="question" style="width: 30px">
  8221. <img src="../assets/icon/toolIcon.png" alt />
  8222. </div>
  8223. <div class="queTitle">
  8224. <div>工具</div>
  8225. </div>-->
  8226. 评一评
  8227. </div>
  8228. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8229. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8230. <el-table
  8231. :data="
  8232. chapInfoList[courseType].chapterInfo[0].taskJson[
  8233. taskCount
  8234. ].eList
  8235. "
  8236. :header-cell-style="{ background: '#F0F4FA' }"
  8237. :row-class-name="tableRowClassName"
  8238. border
  8239. stripe
  8240. style="width: 100%"
  8241. >
  8242. <el-table-column
  8243. label="评价名称"
  8244. align="center"
  8245. >
  8246. <template slot-scope="scope"
  8247. ><div>{{ scope.row.value }}</div></template
  8248. >
  8249. </el-table-column>
  8250. <el-table-column
  8251. label="评价描述"
  8252. align="center"
  8253. >
  8254. <template slot-scope="scope"
  8255. ><div>
  8256. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8257. </div></template
  8258. >
  8259. </el-table-column>
  8260. <el-table-column label="目标" align="center">
  8261. <template slot-scope="scope"
  8262. ><div>
  8263. {{
  8264. scope.row.target
  8265. ? scope.row.target[scope.row.target.length - 1]
  8266. : "-"
  8267. }}
  8268. </div></template
  8269. ></el-table-column
  8270. >
  8271. </el-table>
  8272. <!-- <div
  8273. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8274. .chapterInfo[0].taskJson[taskCount].eList"
  8275. :key="eIndex"
  8276. class="elist_input_box"
  8277. >
  8278. <div style="width: 95%">
  8279. <div
  8280. style="
  8281. display: flex;
  8282. flex-direction: row;
  8283. flex-wrap: nowrap;
  8284. align-items: center;
  8285. "
  8286. >
  8287. <div style="max-width: calc(100% - 285px)">
  8288. <span>{{ eItem.value }}</span>
  8289. </div>
  8290. <div
  8291. style="
  8292. padding-left: 25px;
  8293. display: flex;
  8294. flex-direction: row;
  8295. align-items: center;
  8296. "
  8297. >
  8298. <el-rate
  8299. v-model="eItem.score"
  8300. :colors="colors"
  8301. disabled
  8302. ></el-rate>
  8303. </div>
  8304. </div>
  8305. <div class="elist_inptu_text" style="padding-left: 10px">
  8306. <span v-if="eItem.detail != ''">{{
  8307. eItem.detail
  8308. }}</span>
  8309. <span v-else style="color: #b2b1b3; font-size: 14px"
  8310. >暂无描述...</span
  8311. >
  8312. </div>
  8313. </div>
  8314. </div> -->
  8315. </div>
  8316. <div
  8317. v-if="evalua"
  8318. style="
  8319. border: 1px solid #e5e5e5;
  8320. max-width: 650px;
  8321. width: 100%;
  8322. margin-top: 20px;
  8323. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8324. "
  8325. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8326. >
  8327. <div class="e_add_top">
  8328. <div class="e_add_title" style="width: 100%">
  8329. <!-- <span>目标管理名称</span> -->
  8330. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8331. <img
  8332. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8333. src="../assets/line.png"
  8334. class="cru_line"
  8335. style="
  8336. width: 125px;
  8337. height: 20px;
  8338. bottom: -10px;
  8339. left: 5px;
  8340. "
  8341. />
  8342. <!-- <el-input
  8343. v-model="eTitle"
  8344. placeholder="请输入名称"
  8345. @change="setMindData"
  8346. ></el-input>-->
  8347. <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>
  8348. <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>
  8349. </div>
  8350. </div>
  8351. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8352. <div class="e_add_list_pbox">
  8353. <div class="e_add_list_pbox_title">
  8354. <!-- <span class="type_title">切换模式</span> -->
  8355. <div class="type_content">
  8356. <span
  8357. :class="{ active: typeMode == 1 }"
  8358. @click="typeMode = 1"
  8359. >目标树</span
  8360. >
  8361. <span
  8362. :class="{ active: typeMode == 2 }"
  8363. @click="typeMode = 2"
  8364. >目标罗盘</span
  8365. >
  8366. <!-- <span
  8367. :class="{ active: typeMode == 3 }"
  8368. @click="typeMode = 3"
  8369. >目标看板</span
  8370. > -->
  8371. </div>
  8372. </div>
  8373. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8374. <Mind
  8375. :showBar="false"
  8376. :mindData="data"
  8377. style="width: 100%"
  8378. v-show="typeMode == 1"
  8379. ></Mind>
  8380. <Sunburst
  8381. :Josn="eJson"
  8382. :num="eJSONNum"
  8383. style="width: 100%"
  8384. v-if="typeMode == 2"
  8385. ></Sunburst>
  8386. <SeeBoard
  8387. :Josn="eJson"
  8388. :num="eJSONNum"
  8389. :ename="eTitle"
  8390. style="width: 100%"
  8391. v-if="typeMode == 3"
  8392. >
  8393. </SeeBoard>
  8394. </div>
  8395. </div>
  8396. </div>
  8397. </div>
  8398. </div>
  8399. </div>
  8400. <!-- <div
  8401. class="project_box"
  8402. style="margin-top: 15px; padding-bottom: 30px"
  8403. >
  8404. <div
  8405. style="
  8406. display: flex;
  8407. flex-wrap: nowrap;
  8408. flex-direction: column;
  8409. position: relative;
  8410. "
  8411. >
  8412. <div class="queTop">
  8413. <div class="question">
  8414. <img src="../assets/icon/homeWork.png" alt="" />
  8415. </div>
  8416. <div class="queTitle">
  8417. <div>作业提交<span>(提交图文视频等)</span></div>
  8418. <div>:任务:{{ task.task }}</div>
  8419. </div>
  8420. </div>
  8421. <div class="ediBottom">
  8422. <div
  8423. class="addEditor"
  8424. style="margin-top: 23px"
  8425. @click="openAddWork"
  8426. v-if="!isNoHomeWork"
  8427. >
  8428. 选择文件
  8429. </div>
  8430. <div
  8431. class="addEditor"
  8432. style="margin-top: 23px"
  8433. @click="openAddWork"
  8434. v-else
  8435. >
  8436. 已提交
  8437. </div>
  8438. </div>
  8439. </div>
  8440. </div>-->
  8441. </div>
  8442. </div>
  8443. <el-dialog
  8444. title="作业提交"
  8445. :visible.sync="dialogVisible"
  8446. :append-to-body="true"
  8447. width="500px"
  8448. :before-close="handleClose"
  8449. class="dialog_change"
  8450. >
  8451. <div class="marginT">
  8452. <div>上传文件</div>
  8453. <div style="display: flex; gap: 10px">
  8454. <div
  8455. class="chapter_add"
  8456. @click="addImg($event)"
  8457. v-if="studyJuri[0].cover.length == 0"
  8458. >
  8459. <div class="up_photo">
  8460. <img src="../assets/icon/uploadImg.png" alt />
  8461. </div>
  8462. <!-- <input
  8463. type="file"
  8464. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8465. style="display: none"
  8466. @change="beforeUpload1($event, 1)"
  8467. /> -->
  8468. <input
  8469. type="file"
  8470. accept="*"
  8471. style="display: none"
  8472. @change="beforeUpload1($event, 1)"
  8473. />
  8474. <!-- <input
  8475. type="file"
  8476. accept="image/*"
  8477. capture="camera"
  8478. style="display: none"
  8479. @change="beforeUpload1($event, 1)"
  8480. /> -->
  8481. </div>
  8482. <div
  8483. class="chapter_add"
  8484. @click="addImg($event)"
  8485. v-if="studyJuri[0].cover.length == 0"
  8486. >
  8487. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8488. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8489. </div>
  8490. <input
  8491. type="file"
  8492. accept="image/*"
  8493. capture="camera"
  8494. style="display: none"
  8495. @change="beforeUpload1($event, 1)"
  8496. />
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="chapter_add"
  8501. style="
  8502. display: flex;
  8503. width: 100%;
  8504. flex-direction: row;
  8505. flex-wrap: wrap;
  8506. justify-content: flex-start;
  8507. padding: 15px 0;
  8508. "
  8509. v-if="studyJuri[0].cover.length > 0"
  8510. >
  8511. <div class="upCover">
  8512. <img
  8513. :src="studyJuri[0].cover[0].url"
  8514. alt
  8515. v-if="fileType == 0"
  8516. />
  8517. <img :src="word" alt v-else-if="fileType == 1" />
  8518. <img :src="video" alt v-else-if="fileType == 2" />
  8519. <img :src="word2" alt v-else-if="fileType == 3" />
  8520. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8521. <div class="deleteWord" @click="clean(1)">
  8522. <img src="../assets/icon/deleteWorks.png" alt />
  8523. </div>
  8524. </div>
  8525. </div>
  8526. </div>
  8527. <div
  8528. class="upload_send"
  8529. @click="addCourseWorks(taskCount)"
  8530. v-if="!proVisible"
  8531. >
  8532. 提交
  8533. </div>
  8534. </el-dialog>
  8535. </div>
  8536. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8537. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @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(
  8538. '/courseDetail?userid=' +
  8539. userid +
  8540. '&oid=' +
  8541. oid +
  8542. '&org=' +
  8543. org +
  8544. '&cid=' +
  8545. classId +
  8546. '&courseId=' +
  8547. id +
  8548. '&tType=' +
  8549. tType +
  8550. '&screenType=' +
  8551. screenType
  8552. )"></classRoomHelper>
  8553. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8554. '/courseDetail?userid=' +
  8555. userid +
  8556. '&oid=' +
  8557. oid +
  8558. '&org=' +
  8559. org +
  8560. '&cid=' +
  8561. classId +
  8562. '&courseId=' +
  8563. id +
  8564. '&tType=' +
  8565. tType +
  8566. '&screenType=' +
  8567. screenType
  8568. )"></studentClassRoomHelper>
  8569. </div>
  8570. <div
  8571. class="pButton"
  8572. @click="(pzDialog = true), selectPz()"
  8573. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8574. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8575. >
  8576. <!-- 批 -->
  8577. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8578. </div>
  8579. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8580. <div class="pzTop2">
  8581. <!-- <div>评论</div>
  8582. <div @click="pzDialog = false">
  8583. <img src="../assets/close1.png" alt="" />
  8584. </div> -->
  8585. <div class="checkbox">
  8586. <!-- <div class="check" style="font-size: 25px; position: unset">
  8587. 评论
  8588. </div> -->
  8589. <div class="cb-tabList">
  8590. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8591. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8592. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8593. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8594. </div>
  8595. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8596. <el-option label="时间降序" :value="1"></el-option>
  8597. <el-option label="时间升序" :value="2"></el-option>
  8598. <el-option label="我的评课" :value="3"></el-option>
  8599. </el-select>
  8600. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8601. </div>
  8602. </div>
  8603. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8604. <div class="pzListBox" v-if="pzList && pzList.length">
  8605. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8606. <div class="pzNavTop">
  8607. <div>评</div>
  8608. <div>
  8609. {{
  8610. pz.username && pz.username.length > 5
  8611. ? pz.username.substring(0, 5) + "..."
  8612. : pz.username
  8613. }}的评论
  8614. </div>
  8615. <div
  8616. class="pzDelete"
  8617. v-if="pz.userid == userid"
  8618. @click="deletePz(pz.id)"
  8619. >
  8620. 删除
  8621. </div>
  8622. </div>
  8623. <div
  8624. @click="checkImg(getImgList(pz.content))"
  8625. class="pzContent cont"
  8626. v-html="pz.content"
  8627. v-if="pz.type == '1'"
  8628. ></div>
  8629. <div class="pzContent" v-if="pz.type == '2'">
  8630. <audio :src="pz.content" controls="controls" ref="audio">
  8631. Your browser does not support the audio element.
  8632. </audio>
  8633. </div>
  8634. <div class="pzContent" v-if="pz.type == '3'">
  8635. <img
  8636. :src="pz.content"
  8637. style="width: 90%; margin: 0 auto; display: block"
  8638. @click="previewImg(pz.content)"
  8639. />
  8640. </div>
  8641. <div class="timeAndReply">
  8642. <div class="time">
  8643. {{ pz.time }}
  8644. </div>
  8645. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8646. </div>
  8647. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8648. <div
  8649. v-for="(h, hIndex) in pz.hfList"
  8650. :key="hIndex"
  8651. class="hfItem"
  8652. >
  8653. <div class="whoReplyWho">
  8654. <div class="hfName">{{ h.username }}</div>
  8655. <div class="hfImg">
  8656. <img src="../assets/icon/newIcons/right.png" alt="" />
  8657. </div>
  8658. <div class="hfName">{{ pz.username }}</div>
  8659. </div>
  8660. <div class="hfContent" v-html="h.content"></div>
  8661. <div class="hfBottom">
  8662. <div class="hfTime">{{ h.time }}</div>
  8663. <div
  8664. class="deleteHfItem"
  8665. @click="deleteReply(h.id)"
  8666. v-if="userid == h.userid"
  8667. >
  8668. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8669. </div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8674. <div class="replyInput">
  8675. <el-input v-model="reply[pzIndex]"></el-input>
  8676. </div>
  8677. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8678. </div> -->
  8679. </div>
  8680. </div>
  8681. <div class="noPz" v-else>
  8682. <img src="../assets/icon/noPz.png" alt="" />
  8683. </div>
  8684. <div class="addPzButton">
  8685. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8686. 添加评论
  8687. </div>
  8688. <!-- <div class="img1">
  8689. <div @click="(addPzDialog = true), (pzType = 2)">
  8690. <img src="../assets/audio.png" /><span>音频</span>
  8691. </div>
  8692. </div> -->
  8693. </div>
  8694. </div>
  8695. <div class="scoreList" v-if="commentTagShow==1">
  8696. <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"/>
  8697. </div>
  8698. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8699. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8700. </div>
  8701. </div>
  8702. <div
  8703. v-if="toolDialogVisible == true"
  8704. class="toolMask"
  8705. @click="toolDialogVisible = false"
  8706. ></div>
  8707. <div v-if="toolDialogVisible == true" class="addToolCss">
  8708. <div class="toolTop">
  8709. <div style="font-weight: bold">新增工具</div>
  8710. <div @click="toolDialogVisible = false">
  8711. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8712. </div>
  8713. </div>
  8714. <div class="tool_box">
  8715. <div class="tool_type_box">
  8716. <div class="chooseWho">
  8717. <div
  8718. :class="toolType == 0 ? 'isChooseActive' : ''"
  8719. @click="(toolType = 0), $forceUpdate()"
  8720. >
  8721. 互动类
  8722. </div>
  8723. <div
  8724. :class="toolType == 1 ? 'isChooseActive' : ''"
  8725. @click="(toolType = 1), $forceUpdate()"
  8726. >
  8727. 思维类
  8728. </div>
  8729. <div
  8730. :class="toolType == 2 ? 'isChooseActive' : ''"
  8731. @click="(toolType = 2), $forceUpdate()"
  8732. >
  8733. 测评类
  8734. </div>
  8735. <div
  8736. :class="toolType == 3 ? 'isChooseActive' : ''"
  8737. @click="(toolType = 3), $forceUpdate()"
  8738. >
  8739. 编程类
  8740. </div>
  8741. <div
  8742. :class="toolType == 5 ? 'isChooseActive' : ''"
  8743. @click="(toolType = 5), $forceUpdate()"
  8744. >
  8745. 学科类
  8746. </div>
  8747. </div>
  8748. </div>
  8749. <div>
  8750. <div class="toolSort" v-if="toolType == 0">
  8751. <div
  8752. class="tool"
  8753. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8754. @click="addTools2(10)"
  8755. >
  8756. <div class="whiteBIcon">
  8757. <img src="../assets/icon/thirdToolList/time.png" alt />
  8758. <div style="margin: 5px 0">倒计时</div>
  8759. </div>
  8760. <div class="check">
  8761. <div
  8762. v-if="checktoolArray.indexOf(10) == -1"
  8763. class="noChoose"
  8764. ></div>
  8765. <div v-else class="isChoose"></div>
  8766. </div>
  8767. </div>
  8768. <div
  8769. class="tool"
  8770. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8771. @click="addTools2(65)"
  8772. >
  8773. <div class="whiteBIcon">
  8774. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8775. <div style="margin: 5px 0">挑人</div>
  8776. </div>
  8777. <div class="check">
  8778. <div
  8779. v-if="checktoolArray.indexOf(65) == -1"
  8780. class="noChoose"
  8781. ></div>
  8782. <div v-else class="isChoose"></div>
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div class="toolSort" v-if="toolType == 1">
  8787. <div
  8788. class="tool"
  8789. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8790. @click="addTools2(7)"
  8791. >
  8792. <div class="whiteBIcon">
  8793. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8794. <div style="margin: 5px 0">思维网格</div>
  8795. </div>
  8796. <div class="check">
  8797. <div
  8798. v-if="checktoolArray.indexOf(7) == -1"
  8799. class="noChoose"
  8800. ></div>
  8801. <div v-else class="isChoose"></div>
  8802. </div>
  8803. </div>
  8804. <div
  8805. class="tool"
  8806. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8807. @click="addTools2(1)"
  8808. >
  8809. <div class="whiteBIcon">
  8810. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8811. <div style="margin: 5px 0">电子白板</div>
  8812. </div>
  8813. <div class="check">
  8814. <div
  8815. v-if="checktoolArray.indexOf(1) == -1"
  8816. class="noChoose"
  8817. ></div>
  8818. <div v-else class="isChoose"></div>
  8819. </div>
  8820. </div>
  8821. <div
  8822. class="tool"
  8823. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8824. @click="addTools2(52)"
  8825. >
  8826. <div class="whiteBIcon">
  8827. <img src="../assets/icon/fourthToolList/text.png" alt />
  8828. <div style="margin: 5px 0">文档</div>
  8829. </div>
  8830. <div class="check">
  8831. <div
  8832. v-if="checktoolArray.indexOf(52) == -1"
  8833. class="noChoose"
  8834. ></div>
  8835. <div v-else class="isChoose"></div>
  8836. </div>
  8837. </div>
  8838. <div
  8839. class="tool"
  8840. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8841. @click="addTools2(3)"
  8842. >
  8843. <div class="whiteBIcon">
  8844. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8845. <div style="margin: 5px 0">思维导图</div>
  8846. </div>
  8847. <div class="check">
  8848. <div
  8849. v-if="checktoolArray.indexOf(3) == -1"
  8850. class="noChoose"
  8851. ></div>
  8852. <div v-else class="isChoose"></div>
  8853. </div>
  8854. </div>
  8855. <div
  8856. class="tool"
  8857. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8858. @click="addTools2(48)"
  8859. >
  8860. <div class="whiteBIcon">
  8861. <img src="../assets/icon/fourthToolList/table.png" alt />
  8862. <div style="margin: 5px 0">表格</div>
  8863. </div>
  8864. <div class="check">
  8865. <div
  8866. v-if="checktoolArray.indexOf(48) == -1"
  8867. class="noChoose"
  8868. ></div>
  8869. <div v-else class="isChoose"></div>
  8870. </div>
  8871. </div>
  8872. </div>
  8873. <div class="toolSort" v-if="toolType == 6">
  8874. <div v-show="tooC == 49">
  8875. <img
  8876. @click="addTools(tooC, toolIndex, taskCount)"
  8877. src="../assets/icon/fourthToolList/group.png"
  8878. alt
  8879. />
  8880. <div style="margin: 5px 0">学生分组</div>
  8881. </div>
  8882. </div>
  8883. <div class="toolSort" v-if="toolType == 2">
  8884. <div
  8885. class="tool"
  8886. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8887. @click="addTools2(16)"
  8888. >
  8889. <div class="whiteBIcon">
  8890. <img src="../assets/icon/thirdToolList/work.png" alt />
  8891. <div style="margin: 5px 0">作业提交</div>
  8892. </div>
  8893. <div class="check">
  8894. <div
  8895. v-if="checktoolArray.indexOf(16) == -1"
  8896. class="noChoose"
  8897. ></div>
  8898. <div v-else class="isChoose"></div>
  8899. </div>
  8900. </div>
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8904. @click="addTools2(50)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8908. <div style="margin: 5px 0">批量上传</div>
  8909. </div>
  8910. <div class="check">
  8911. <div
  8912. v-if="checktoolArray.indexOf(50) == -1"
  8913. class="noChoose"
  8914. ></div>
  8915. <div v-else class="isChoose"></div>
  8916. </div>
  8917. </div>
  8918. </div>
  8919. <div class="toolSort" v-if="toolType == 3">
  8920. <div
  8921. class="tool"
  8922. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8923. @click="addTools2(18)"
  8924. >
  8925. <div class="whiteBIcon">
  8926. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8927. <div style="margin: 5px 0">训练平台</div>
  8928. </div>
  8929. <div class="check">
  8930. <div
  8931. v-if="checktoolArray.indexOf(18) == -1"
  8932. class="noChoose"
  8933. ></div>
  8934. <div v-else class="isChoose"></div>
  8935. </div>
  8936. </div>
  8937. <div
  8938. class="tool"
  8939. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8940. @click="addTools2(21)"
  8941. >
  8942. <div class="whiteBIcon">
  8943. <img src="../assets/icon/fourthToolList/program.png" alt />
  8944. <div style="margin: 5px 0">AIoT Blockly</div>
  8945. </div>
  8946. <div class="check">
  8947. <div
  8948. v-if="checktoolArray.indexOf(21) == -1"
  8949. class="noChoose"
  8950. ></div>
  8951. <div v-else class="isChoose"></div>
  8952. </div>
  8953. </div>
  8954. <div
  8955. class="tool"
  8956. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8957. @click="addTools2(23)"
  8958. >
  8959. <div class="whiteBIcon">
  8960. <img
  8961. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8962. alt
  8963. />
  8964. <div style="margin: 5px 0">AI Python</div>
  8965. </div>
  8966. <div class="check">
  8967. <div
  8968. v-if="checktoolArray.indexOf(23) == -1"
  8969. class="noChoose"
  8970. ></div>
  8971. <div v-else class="isChoose"></div>
  8972. </div>
  8973. </div>
  8974. <div
  8975. class="tool"
  8976. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8977. @click="addTools2(24)"
  8978. >
  8979. <div class="whiteBIcon">
  8980. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8981. <div style="margin: 5px 0">AI Blockly</div>
  8982. </div>
  8983. <div class="check">
  8984. <div
  8985. v-if="checktoolArray.indexOf(24) == -1"
  8986. class="noChoose"
  8987. ></div>
  8988. <div v-else class="isChoose"></div>
  8989. </div>
  8990. </div>
  8991. <div
  8992. class="tool"
  8993. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8994. @click="addTools2(32)"
  8995. >
  8996. <div class="whiteBIcon">
  8997. <img src="../assets/icon/thirdToolList/code.png" alt />
  8998. <div style="margin: 5px 0">源码编辑</div>
  8999. </div>
  9000. <div class="check">
  9001. <div
  9002. v-if="checktoolArray.indexOf(32) == -1"
  9003. class="noChoose"
  9004. ></div>
  9005. <div v-else class="isChoose"></div>
  9006. </div>
  9007. </div>
  9008. <div
  9009. class="tool"
  9010. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9011. @click="addTools2(57)"
  9012. >
  9013. <div class="whiteBIcon">
  9014. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  9015. <div style="margin: 5px 0">CocoPi</div>
  9016. </div>
  9017. <div class="check">
  9018. <div
  9019. v-if="checktoolArray.indexOf(57) == -1"
  9020. class="noChoose"
  9021. ></div>
  9022. <div v-else class="isChoose"></div>
  9023. </div>
  9024. </div>
  9025. <div
  9026. class="tool"
  9027. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9028. @click="addTools2(63)"
  9029. >
  9030. <div class="whiteBIcon">
  9031. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  9032. <div style="margin: 5px 0">海龟编程</div>
  9033. </div>
  9034. <div class="check">
  9035. <div
  9036. v-if="checktoolArray.indexOf(63) == -1"
  9037. class="noChoose"
  9038. ></div>
  9039. <div v-else class="isChoose"></div>
  9040. </div>
  9041. </div>
  9042. <div
  9043. class="tool"
  9044. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9045. @click="addTools2(71)"
  9046. >
  9047. <div class="whiteBIcon">
  9048. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  9049. <div style="margin: 5px 0">AI智能体</div>
  9050. </div>
  9051. <div class="check">
  9052. <div
  9053. v-if="checktoolArray.indexOf(71) == -1"
  9054. class="noChoose"
  9055. ></div>
  9056. <div v-else class="isChoose"></div>
  9057. </div>
  9058. </div>
  9059. </div>
  9060. <div class="toolSort" v-if="toolType == 7">
  9061. <div
  9062. class="tool"
  9063. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9064. @click="addTools2(40)"
  9065. >
  9066. <div class="whiteBIcon">
  9067. <img src="../assets/icon/secondToolList/eval.png" alt />
  9068. <div style="margin: 5px 0">个人评价</div>
  9069. </div>
  9070. <div class="check">
  9071. <div
  9072. v-if="checktoolArray.indexOf(40) == -1"
  9073. class="noChoose"
  9074. ></div>
  9075. <div v-else class="isChoose"></div>
  9076. </div>
  9077. </div>
  9078. </div>
  9079. <div class="toolSort" v-if="toolType == 5">
  9080. <div
  9081. class="tool"
  9082. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9083. @click="addTools2(28)"
  9084. >
  9085. <div class="whiteBIcon">
  9086. <img src="../assets/icon/secondToolList/translation.png" alt />
  9087. <div style="margin: 5px 0">翻译</div>
  9088. </div>
  9089. <div class="check">
  9090. <div
  9091. v-if="checktoolArray.indexOf(28) == -1"
  9092. class="noChoose"
  9093. ></div>
  9094. <div v-else class="isChoose"></div>
  9095. </div>
  9096. </div>
  9097. <div
  9098. class="tool"
  9099. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9100. @click="addTools2(31)"
  9101. >
  9102. <div class="whiteBIcon">
  9103. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  9104. <div style="margin: 5px 0">数字画板</div>
  9105. </div>
  9106. <div class="check">
  9107. <div
  9108. v-if="checktoolArray.indexOf(31) == -1"
  9109. class="noChoose"
  9110. ></div>
  9111. <div v-else class="isChoose"></div>
  9112. </div>
  9113. </div>
  9114. <div
  9115. class="tool"
  9116. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9117. @click="addTools2(39)"
  9118. >
  9119. <div class="whiteBIcon">
  9120. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  9121. <div style="margin: 5px 0">GeoGebra</div>
  9122. </div>
  9123. <div class="check">
  9124. <div
  9125. v-if="checktoolArray.indexOf(39) == -1"
  9126. class="noChoose"
  9127. ></div>
  9128. <div v-else class="isChoose"></div>
  9129. </div>
  9130. </div>
  9131. <div
  9132. class="tool"
  9133. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9134. @click="addTools2(66)"
  9135. >
  9136. <div class="whiteBIcon">
  9137. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  9138. <div style="margin: 5px 0">公式编辑</div>
  9139. </div>
  9140. <div class="check">
  9141. <div
  9142. v-if="checktoolArray.indexOf(66) == -1"
  9143. class="noChoose"
  9144. ></div>
  9145. <div v-else class="isChoose"></div>
  9146. </div>
  9147. </div>
  9148. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9149. <div class="whiteBIcon" @click="addTools2(67)">
  9150. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9151. <div style="margin: 5px 0">分子结构</div>
  9152. </div>
  9153. <div class="check" @click="addTools2(67)">
  9154. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9155. <div v-else class="isChoose"></div>
  9156. </div>
  9157. </div> -->
  9158. <div
  9159. class="tool"
  9160. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9161. @click="addTools2(68)"
  9162. >
  9163. <div class="whiteBIcon">
  9164. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  9165. <div style="margin: 5px 0">时间轴</div>
  9166. </div>
  9167. <div class="check">
  9168. <div
  9169. v-if="checktoolArray.indexOf(68) == -1"
  9170. class="noChoose"
  9171. ></div>
  9172. <div v-else class="isChoose"></div>
  9173. </div>
  9174. </div>
  9175. <!-- <div
  9176. class="tool"
  9177. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9178. @click="addTools2(69)"
  9179. >
  9180. <div class="whiteBIcon">
  9181. <img src="../assets/icon/secondToolList/english.png" alt />
  9182. <div style="margin: 5px 0">英语写作</div>
  9183. </div>
  9184. <div class="check">
  9185. <div
  9186. v-if="checktoolArray.indexOf(69) == -1"
  9187. class="noChoose"
  9188. ></div>
  9189. <div v-else class="isChoose"></div>
  9190. </div>
  9191. </div> -->
  9192. </div>
  9193. <div class="toolSort" v-if="toolType == 4">
  9194. <div
  9195. class="tool"
  9196. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9197. @click="addTools2(26)"
  9198. >
  9199. <div class="whiteBIcon">
  9200. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  9201. <div style="margin: 5px 0">课程设计</div>
  9202. </div>
  9203. <div class="check">
  9204. <div
  9205. v-if="checktoolArray.indexOf(26) == -1"
  9206. class="noChoose"
  9207. ></div>
  9208. <div v-else class="isChoose"></div>
  9209. </div>
  9210. </div>
  9211. <div
  9212. class="tool"
  9213. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9214. @click="addTools2(25)"
  9215. >
  9216. <div class="whiteBIcon">
  9217. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  9218. <div style="margin: 5px 0">目标管理</div>
  9219. </div>
  9220. <div class="check">
  9221. <div
  9222. v-if="checktoolArray.indexOf(25) == -1"
  9223. class="noChoose"
  9224. ></div>
  9225. <div v-else class="isChoose"></div>
  9226. </div>
  9227. </div>
  9228. </div>
  9229. </div>
  9230. </div>
  9231. <span
  9232. slot="footer"
  9233. class="dialog-footer"
  9234. style="display: block; text-align: center; padding: 0 0 10px 0"
  9235. >
  9236. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9237. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9238. </span>
  9239. </div>
  9240. <div
  9241. v-if="replyDialogVisible == true"
  9242. class="addDialogCss"
  9243. v-el-drag-dialog
  9244. >
  9245. <div class="pzTop">
  9246. <div class="teacherPz">
  9247. <div class="teacherPzImg">
  9248. <img src="../assets/icon/teacherPz.png" alt="" />
  9249. </div>
  9250. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9251. </div>
  9252. <div @click="replyDialogVisible = false">
  9253. <img src="../assets/close1.png" class="pzClose" alt="" />
  9254. </div>
  9255. </div>
  9256. <div class="addPzBox">
  9257. <!-- <div class="addPzCheck">
  9258. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9259. >文本</span
  9260. >
  9261. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9262. >音频</span
  9263. >
  9264. </div> -->
  9265. <div style="height: calc(100% - 50px)">
  9266. <editor-bar
  9267. class="binfo_input pzConText"
  9268. style="width: 100% !important; margin: 0 auto"
  9269. placeholder="请输入回复描述"
  9270. v-model="reply"
  9271. @change="change"
  9272. ></editor-bar>
  9273. </div>
  9274. <div class="addTextCss" @click="addHf">确定</div>
  9275. </div>
  9276. </div>
  9277. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9278. <div class="pzTop">
  9279. <div class="teacherPz">
  9280. <div class="teacherPzImg">
  9281. <img src="../assets/icon/teacherPz.png" alt="" />
  9282. </div>
  9283. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9284. </div>
  9285. <div @click="addPzDialog = false">
  9286. <img src="../assets/close1.png" class="pzClose" alt="" />
  9287. </div>
  9288. </div>
  9289. <div class="addPzBox">
  9290. <div class="addPzCheck">
  9291. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9292. >文本</span
  9293. >
  9294. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9295. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9296. >音频</span
  9297. >
  9298. </div>
  9299. <div style="height: calc(100% - 95px)">
  9300. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9301. v-if="pzType == 1"></textarea> -->
  9302. <editor-bar
  9303. class="binfo_input pzConText"
  9304. style="width: 100% !important"
  9305. placeholder="请输入任务描述"
  9306. v-model="pzConText"
  9307. @change="change"
  9308. v-if="pzType == 1"
  9309. ></editor-bar>
  9310. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9311. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9312. <div @click="addImg($event)">
  9313. <el-button type="primary">上传图片</el-button>
  9314. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9315. @change="beforeUpload1($event, 4)" />
  9316. </div>
  9317. </div> -->
  9318. </div>
  9319. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9320. 确定
  9321. </div>
  9322. </div>
  9323. </div>
  9324. <div v-if="proVisible" class="mask">
  9325. <div class="progressBox">
  9326. <!-- <div id="closePro" class="closeCss">
  9327. <img src="../assets/icon/close.png" alt />
  9328. </div> -->
  9329. <div class="lbox">
  9330. <img src="../assets/loading.gif" />上传中,请稍后
  9331. </div>
  9332. <div style="margin-bottom: 10px">
  9333. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9334. </div>
  9335. <el-progress
  9336. :text-inside="true"
  9337. :stroke-width="20"
  9338. :percentage="progress"
  9339. style="width: 80%"
  9340. ></el-progress>
  9341. </div>
  9342. </div>
  9343. <div v-if="proVisible2" class="mask">
  9344. <div class="progressBox">
  9345. <div class="lbox">
  9346. <img src="../assets/loading.gif" />上传中,请稍后
  9347. </div>
  9348. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9349. </div>
  9350. </div>
  9351. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9352. <img width="100%" :src="dialogImageUrl" alt />
  9353. </el-dialog>
  9354. <el-dialog
  9355. :title="noteName != '' ? noteName : '查看问卷'"
  9356. :visible.sync="dialogVisible5"
  9357. :append-to-body="true"
  9358. width="1000px"
  9359. :before-close="handleClose"
  9360. class="dialog_diy dialog_diy3"
  9361. >
  9362. <div>
  9363. <div
  9364. class="a_add_title"
  9365. style="
  9366. display: flex;
  9367. flex-direction: row;
  9368. align-items: center;
  9369. justify-content: center;
  9370. "
  9371. >
  9372. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9373. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9374. </div>
  9375. <div class="a_addBox">
  9376. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9377. 题目内容
  9378. </div>
  9379. <div
  9380. class="a_add_box"
  9381. v-for="(item1, index1) in askJson.askCount"
  9382. :key="index1"
  9383. >
  9384. <div class="a_add_head">
  9385. <div style="display: flex">
  9386. <span class="askIndex"> {{ index1 + 1 }}</span>
  9387. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9388. </div>
  9389. <img
  9390. v-if="askJson.askJson[index1].img"
  9391. :src="askJson.askJson[index1].img"
  9392. style="height: 300px; margin-top: 10px; max-width: 100%"
  9393. />
  9394. </div>
  9395. <div class="a_add_body">
  9396. <div class="a_add_input">
  9397. <el-radio-group
  9398. v-model="radio[index1]"
  9399. v-if="
  9400. askJson.askJson[index1].type == '1' ||
  9401. !askJson.askJson[index1].type
  9402. "
  9403. >
  9404. <el-radio
  9405. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9406. .checkList"
  9407. :key="checkIndex"
  9408. :label="checkIndex"
  9409. :disabled="isAnswer"
  9410. class="redioStyle"
  9411. ><span v-html="item2"></span
  9412. ></el-radio>
  9413. </el-radio-group>
  9414. <el-checkbox-group
  9415. v-model="radio[index1]"
  9416. v-if="askJson.askJson[index1].type == '2'"
  9417. >
  9418. <el-checkbox
  9419. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9420. .checkList"
  9421. :key="checkIndex1"
  9422. :label="checkIndex1"
  9423. :disabled="isAnswer"
  9424. class="redioStyle"
  9425. ><span v-html="item2"></span>
  9426. </el-checkbox>
  9427. </el-checkbox-group>
  9428. </div>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. </div>
  9433. <span slot="footer" class="dialog-footer">
  9434. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9435. >取 消</el-button
  9436. >
  9437. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9438. >确 定</el-button
  9439. >
  9440. </span>
  9441. </el-dialog>
  9442. <el-dialog
  9443. :title="noteName != '' ? noteName : '查看问卷'"
  9444. :visible.sync="dialogVisible5Teacher"
  9445. :append-to-body="true"
  9446. width="1000px"
  9447. :before-close="handleClose"
  9448. class="dialog_diy dialog_diy3"
  9449. >
  9450. <div>
  9451. <div class="w_name">
  9452. 学生姓名:<span>{{ sStudent.student }}</span>
  9453. </div>
  9454. <div
  9455. class="a_add_title"
  9456. style="
  9457. display: flex;
  9458. flex-direction: row;
  9459. align-items: center;
  9460. justify-content: center;
  9461. "
  9462. >
  9463. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9464. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9465. </div>
  9466. <div class="a_addBox">
  9467. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9468. 题目内容
  9469. </div>
  9470. <div
  9471. class="a_add_box"
  9472. v-for="(item1, index1) in askJson.askCount"
  9473. :key="index1"
  9474. >
  9475. <div class="a_add_head">
  9476. <div style="display: flex">
  9477. <span class="askIndex">{{ index1 + 1 }}</span>
  9478. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9479. </div>
  9480. <img
  9481. v-if="askJson.askJson[index1].img"
  9482. :src="askJson.askJson[index1].img"
  9483. style="height: 300px; margin-top: 10px; max-width: 100%"
  9484. />
  9485. </div>
  9486. <div class="a_add_body">
  9487. <div class="a_add_input">
  9488. <el-radio-group
  9489. v-model="radio[index1]"
  9490. v-if="
  9491. askJson.askJson[index1].type == '1' ||
  9492. !askJson.askJson[index1].type
  9493. "
  9494. >
  9495. <el-radio
  9496. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9497. .checkList"
  9498. :key="checkIndex"
  9499. :label="checkIndex"
  9500. :disabled="isAnswer"
  9501. class="redioStyle"
  9502. ><span v-html="item2"></span
  9503. ></el-radio>
  9504. </el-radio-group>
  9505. <el-checkbox-group
  9506. v-model="radio[index1]"
  9507. v-if="askJson.askJson[index1].type == '2'"
  9508. >
  9509. <el-checkbox
  9510. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9511. .checkList"
  9512. :key="checkIndex1"
  9513. :label="checkIndex1"
  9514. :disabled="isAnswer"
  9515. class="redioStyle"
  9516. ><span v-html="item2"></span>
  9517. </el-checkbox>
  9518. </el-checkbox-group>
  9519. </div>
  9520. </div>
  9521. </div>
  9522. </div>
  9523. </div>
  9524. <span slot="footer" class="dialog-footer">
  9525. <el-button
  9526. @click="dialogVisible5Teacher = false"
  9527. v-show="noteName == ''"
  9528. >取 消</el-button
  9529. >
  9530. <el-button
  9531. type="primary"
  9532. @click="addStudentAskTeacher"
  9533. v-show="noteName == ''"
  9534. >确 定</el-button
  9535. >
  9536. </span>
  9537. </el-dialog>
  9538. <el-dialog
  9539. :title="noteName != '' ? noteName : '查看选择题'"
  9540. :visible.sync="dialogVisibleChoice"
  9541. :append-to-body="true"
  9542. width="1000px"
  9543. :before-close="handleClose"
  9544. class="dialog_diy dialog_diy3"
  9545. >
  9546. <div>
  9547. <!-- <div class="a_add_title" style="
  9548. display: flex;
  9549. flex-direction: row;
  9550. align-items: center;
  9551. justify-content: center;
  9552. ">
  9553. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9554. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9555. </div> -->
  9556. <div class="a_addBox">
  9557. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9558. 题目内容
  9559. </div>
  9560. <div
  9561. class="a_add_box"
  9562. v-for="(item1, index1) in testJson.testCount"
  9563. :key="index1"
  9564. >
  9565. <div class="a_add_head">
  9566. <div style="display: flex;align-items: center;">
  9567. <span class="askIndex">{{ index1 + 1 }}</span>
  9568. <div
  9569. v-if="testJson.testJson[index1].type == '1'"
  9570. style="margin-right: 5px; min-width: 70px"
  9571. >
  9572. (单选题)
  9573. </div>
  9574. <div
  9575. v-if="testJson.testJson[index1].type == '2'"
  9576. style="margin-right: 5px; min-width: 70px"
  9577. >
  9578. (多选题)
  9579. </div>
  9580. <div>题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9581. </div>
  9582. <img
  9583. v-if="testJson.testJson[index1].img"
  9584. :src="testJson.testJson[index1].img"
  9585. style="height: 300px; margin-top: 10px; max-width: 100%"
  9586. />
  9587. </div>
  9588. <div
  9589. class="timuImgBox"
  9590. v-if="
  9591. testJson.testJson[index1].timuList &&
  9592. testJson.testJson[index1].timuList.length
  9593. "
  9594. >
  9595. <div
  9596. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9597. :key="tIndex"
  9598. class="timuImg"
  9599. @click.stop="previewImg(timg.src)"
  9600. >
  9601. <img :src="timg.src" alt="" />
  9602. </div>
  9603. </div>
  9604. <div class="a_add_body">
  9605. <div class="a_add_input">
  9606. <el-radio-group
  9607. v-model="radio[index1]"
  9608. v-if="testJson.testJson[index1].type == '1'"
  9609. >
  9610. <div class="radioBox">
  9611. <el-radio
  9612. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9613. .checkList"
  9614. :key="checkIndex"
  9615. :label="checkIndex"
  9616. :disabled="isAnswer"
  9617. class="redioStyle"
  9618. >
  9619. <div
  9620. style="margin-right: 10px"
  9621. v-if="item2 && item2.imgType && item2.imgType == 1"
  9622. >
  9623. <div class="inImg" @click.stop="previewImg(item2.src)">
  9624. <img :src="item2.src" alt="" />
  9625. </div>
  9626. </div>
  9627. <span v-else v-html="item2"></span>
  9628. </el-radio>
  9629. </div>
  9630. </el-radio-group>
  9631. <el-checkbox-group
  9632. v-model="radio[index1]"
  9633. v-if="testJson.testJson[index1].type == '2'"
  9634. >
  9635. <div class="radioBox">
  9636. <el-checkbox
  9637. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9638. .checkList"
  9639. :key="checkIndex"
  9640. :label="checkIndex"
  9641. :disabled="isAnswer"
  9642. class="redioStyle"
  9643. >
  9644. <div
  9645. style="margin-right: 10px"
  9646. v-if="item2 && item2.imgType && item2.imgType == 1"
  9647. >
  9648. <div class="inImg" @click.stop="previewImg(item2.src)">
  9649. <img :src="item2.src" alt="" />
  9650. </div>
  9651. </div>
  9652. <span v-else v-html="item2"></span>
  9653. </el-checkbox>
  9654. </div>
  9655. </el-checkbox-group>
  9656. </div>
  9657. </div>
  9658. </div>
  9659. </div>
  9660. </div>
  9661. <span slot="footer" class="dialog-footer">
  9662. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9663. >取 消</el-button
  9664. >
  9665. <el-button
  9666. type="primary"
  9667. @click="addStudentTest"
  9668. v-show="noteName == ''"
  9669. >确 定</el-button
  9670. >
  9671. </span>
  9672. </el-dialog>
  9673. <el-dialog
  9674. :title="noteName != '' ? noteName : '查看选择题'"
  9675. :visible.sync="dialogVisibleChoiceTeacher"
  9676. :append-to-body="true"
  9677. width="1000px"
  9678. :before-close="handleClose"
  9679. class="dialog_diy dialog_diy3"
  9680. >
  9681. <div>
  9682. <div class="w_name">
  9683. 学生姓名:<span>{{ sStudent.student }}</span>
  9684. </div>
  9685. <div class="a_addBox">
  9686. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9687. 题目内容
  9688. </div>
  9689. <div
  9690. class="a_add_box"
  9691. v-for="(item1, index1) in testJson.testCount"
  9692. :key="index1"
  9693. >
  9694. <div class="a_add_head">
  9695. <div style="display: flex">
  9696. <span class="askIndex">{{ index1 + 1 }}</span>
  9697. <div
  9698. v-if="testJson.testJson[index1].type == '1'"
  9699. style="margin-right: 5px; min-width: 70px"
  9700. >
  9701. (单选题)
  9702. </div>
  9703. <div
  9704. v-if="testJson.testJson[index1].type == '2'"
  9705. style="margin-right: 5px; min-width: 70px"
  9706. >
  9707. (多选题)
  9708. </div>
  9709. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9710. </div>
  9711. <img
  9712. v-if="testJson.testJson[index1].img"
  9713. :src="testJson.testJson[index1].img"
  9714. style="height: 300px; margin-top: 10px; max-width: 100%"
  9715. />
  9716. </div>
  9717. <div
  9718. class="timuImgBox"
  9719. v-if="
  9720. testJson.testJson[index1].timuList &&
  9721. testJson.testJson[index1].timuList.length
  9722. "
  9723. >
  9724. <div
  9725. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9726. :key="tIndex"
  9727. class="timuImg"
  9728. @click.stop="previewImg(timg.src)"
  9729. >
  9730. <img :src="timg.src" alt="" />
  9731. </div>
  9732. </div>
  9733. <div class="a_add_body">
  9734. <div class="a_add_input">
  9735. <el-radio-group
  9736. v-model="radio[index1]"
  9737. v-if="testJson.testJson[index1].type == '1'"
  9738. >
  9739. <div class="radioBox">
  9740. <el-radio
  9741. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9742. .checkList"
  9743. :key="checkIndex"
  9744. :label="checkIndex"
  9745. :disabled="isAnswer"
  9746. class="redioStyle"
  9747. >
  9748. <div
  9749. style="margin-right: 10px"
  9750. v-if="item2 && item2.imgType && item2.imgType == 1"
  9751. >
  9752. <div class="inImg" @click.stop="previewImg(item2.src)">
  9753. <img :src="item2.src" alt="" />
  9754. </div>
  9755. </div>
  9756. <span v-else v-html="item2"></span>
  9757. </el-radio>
  9758. </div>
  9759. </el-radio-group>
  9760. <el-checkbox-group
  9761. v-model="radio[index1]"
  9762. v-if="testJson.testJson[index1].type == '2'"
  9763. >
  9764. <div class="radioBox">
  9765. <el-checkbox
  9766. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9767. .checkList"
  9768. :key="checkIndex"
  9769. :label="checkIndex"
  9770. :disabled="isAnswer"
  9771. class="redioStyle"
  9772. >
  9773. <div
  9774. style="margin-right: 10px"
  9775. v-if="item2 && item2.imgType && item2.imgType == 1"
  9776. >
  9777. <div class="inImg" @click.stop="previewImg(item2.src)">
  9778. <img :src="item2.src" alt="" />
  9779. </div>
  9780. </div>
  9781. <span v-else v-html="item2"></span>
  9782. </el-checkbox>
  9783. </div>
  9784. </el-checkbox-group>
  9785. </div>
  9786. </div>
  9787. </div>
  9788. </div>
  9789. </div>
  9790. <span slot="footer" class="dialog-footer">
  9791. <el-button
  9792. @click="dialogVisibleChoiceTeacher = false"
  9793. v-show="noteName == ''"
  9794. >取 消</el-button
  9795. >
  9796. <el-button
  9797. type="primary"
  9798. @click="addStudentTestTeacher"
  9799. v-show="noteName == ''"
  9800. >确 定</el-button
  9801. >
  9802. </span>
  9803. </el-dialog>
  9804. <el-dialog
  9805. title="查看富文本"
  9806. :visible.sync="dialogVisible1"
  9807. :append-to-body="true"
  9808. width="500px"
  9809. :before-close="handleClose"
  9810. class="dialog_diy textCss"
  9811. >
  9812. <el-form style="font-size: 20px">
  9813. <el-form-item label="文本标题" class="textTitle">
  9814. <div style="font-size: 20px">{{ text.name }}</div>
  9815. </el-form-item>
  9816. <div>富文本内容</div>
  9817. <div
  9818. v-html="text.url"
  9819. style="font-size: 18px; padding: 40px 0 0 0"
  9820. ></div>
  9821. </el-form>
  9822. <span slot="footer" class="dialog-footer">
  9823. <el-button type="primary" @click="dialogVisible1 = false"
  9824. >确定</el-button
  9825. >
  9826. </span>
  9827. </el-dialog>
  9828. <el-dialog
  9829. title="文件预览"
  9830. :visible.sync="dialogVisible3"
  9831. width="50%"
  9832. :before-close="handleClose"
  9833. class="dialog_diy"
  9834. :class="{ fullStyle: full }"
  9835. >
  9836. <div slot="title" class="header-title">
  9837. <div style="color: #fff">文件预览</div>
  9838. <div style="position: absolute; top: 19px; right: 50px">
  9839. <img
  9840. src="../assets/full.png"
  9841. style="height: 16px; cursor: pointer"
  9842. alt=""
  9843. @click="fullTools"
  9844. />
  9845. </div>
  9846. </div>
  9847. <pdf
  9848. v-if="showPDF"
  9849. :pdfUrl="pptImgUrl"
  9850. style="width: 100%; height: 520px; overflow: auto"
  9851. :class="{ fullStyle: full }"
  9852. ></pdf>
  9853. <iframe
  9854. v-else
  9855. :src="pptImgUrl"
  9856. frameborder="0"
  9857. width="100%"
  9858. height="600"
  9859. :class="{ fullStyle: full }"
  9860. ></iframe>
  9861. </el-dialog>
  9862. <el-dialog
  9863. title="文件预览"
  9864. :visible.sync="dialogVisible6"
  9865. width="50%"
  9866. :before-close="handleClose"
  9867. class="dialog_diy"
  9868. >
  9869. <iframe
  9870. :src="pptImgUrl1"
  9871. frameborder="0"
  9872. width="100%"
  9873. height="600"
  9874. ></iframe>
  9875. </el-dialog>
  9876. <el-dialog
  9877. title="提示"
  9878. :visible.sync="dialogVisible4"
  9879. :append-to-body="true"
  9880. width="800px"
  9881. :before-close="handleClose"
  9882. class="dialog_diy notice"
  9883. >
  9884. <div>此功能暂未开放!</div>
  9885. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9886. </el-dialog>
  9887. <el-dialog
  9888. title="问答"
  9889. :visible.sync="answerDialogVisible"
  9890. :append-to-body="true"
  9891. width="800px"
  9892. :before-close="handleClose"
  9893. class="dialog_diy"
  9894. >
  9895. <div>
  9896. <div
  9897. style="
  9898. display: flex;
  9899. flex-wrap: nowrap;
  9900. flex-direction: column;
  9901. position: relative;
  9902. "
  9903. >
  9904. <div class="queTop" style="padding: 20px 0 20px 0">
  9905. <div class="question">
  9906. <img src="../assets/icon/question.png" alt />
  9907. </div>
  9908. <div class="queTitle">
  9909. <div style="width: 90px; min-width: 90px">提问:</div>
  9910. <div>{{ answerQ }}</div>
  9911. </div>
  9912. </div>
  9913. <div class="ediBottom">
  9914. <textarea
  9915. rows="6"
  9916. class="binfo_input"
  9917. cols
  9918. style="width: 95%; height: 120px"
  9919. v-model="questionAnswer"
  9920. ></textarea>
  9921. </div>
  9922. </div>
  9923. </div>
  9924. <div slot="footer">
  9925. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9926. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9927. </div>
  9928. </el-dialog>
  9929. <el-dialog
  9930. title="问答"
  9931. :visible.sync="answerDialogVisibleTeacher"
  9932. :append-to-body="true"
  9933. width="800px"
  9934. :before-close="handleClose"
  9935. class="dialog_diy"
  9936. >
  9937. <div>
  9938. <div class="w_name">
  9939. 学生姓名:<span>{{ sStudent.student }}</span>
  9940. </div>
  9941. <div
  9942. style="
  9943. display: flex;
  9944. flex-wrap: nowrap;
  9945. flex-direction: column;
  9946. position: relative;
  9947. "
  9948. >
  9949. <div class="queTop" style="padding: 20px 0 20px 0">
  9950. <div class="question">
  9951. <img src="../assets/icon/question.png" alt />
  9952. </div>
  9953. <div class="queTitle">
  9954. <div style="width: 90px; min-width: 90px">提问:</div>
  9955. <div>{{ answerQ }}</div>
  9956. </div>
  9957. </div>
  9958. <div class="ediBottom">
  9959. <textarea
  9960. rows="6"
  9961. class="binfo_input"
  9962. cols
  9963. style="width: 95%; height: 120px"
  9964. v-model="questionAnswer"
  9965. ></textarea>
  9966. </div>
  9967. </div>
  9968. </div>
  9969. <div slot="footer">
  9970. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9971. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9972. </div>
  9973. </el-dialog>
  9974. <el-dialog
  9975. title="倒计时"
  9976. :visible.sync="timeDialogVisible"
  9977. :append-to-body="true"
  9978. width="800px"
  9979. :before-close="handleClose"
  9980. class="dialog_diy"
  9981. >
  9982. <div>
  9983. <div style="margin-bottom: 20px; color: #999">
  9984. 提示:点击“+”或“-”修改倒计时时长。
  9985. </div>
  9986. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9987. </div>
  9988. <div slot="footer">
  9989. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9990. </div>
  9991. </el-dialog>
  9992. <el-dialog
  9993. title="权限设置"
  9994. :visible.sync="juriVisible"
  9995. :append-to-body="true"
  9996. width="400px"
  9997. :before-close="handleClose"
  9998. class="dialog_diy"
  9999. >
  10000. <div>
  10001. <div class="open_box">
  10002. <div class="switch_box">
  10003. <span>允许学生查看所有作业</span>
  10004. <el-switch
  10005. v-model="sIsOpen"
  10006. active-text=""
  10007. class="switchCss"
  10008. @change="updateSLook"
  10009. ></el-switch>
  10010. </div>
  10011. <div
  10012. class="switch_box"
  10013. v-if="
  10014. (courseDetail.userid == userid ||
  10015. (courseDetail.course_teacher &&
  10016. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10017. "
  10018. >
  10019. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10020. <span>禁止学生查看阶段</span>
  10021. <el-switch
  10022. v-model="IsLookOpen"
  10023. active-text=""
  10024. class="switchCss"
  10025. @change="updateLookOpen"
  10026. ></el-switch>
  10027. </div>
  10028. <div class="switch_box" v-if="courseDetail.userid == userid">
  10029. <span>开启跟随模式</span>
  10030. <el-switch
  10031. v-model="IsFollow"
  10032. active-text=""
  10033. class="switchCss"
  10034. @change="updateFollow"
  10035. ></el-switch>
  10036. </div>
  10037. </div>
  10038. </div>
  10039. <div slot="footer">
  10040. <el-button
  10041. style="background: #409efe; color: #fff"
  10042. @click="juriVisible = false"
  10043. >关 闭</el-button
  10044. >
  10045. </div>
  10046. </el-dialog>
  10047. <el-dialog
  10048. title="查看视频"
  10049. :visible.sync="videoVisible"
  10050. :append-to-body="true"
  10051. width="1000px"
  10052. :before-close="handleClose"
  10053. class="dialog_diy1"
  10054. >
  10055. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10056. <video-player
  10057. class="video-player vjs-custom-skin"
  10058. :playsinline="true"
  10059. :options="videoDetail"
  10060. @play="onPlayerPlay($event)"
  10061. style="width: 100%; height: 100%"
  10062. ></video-player>
  10063. </div>
  10064. <div slot="footer">
  10065. <el-button
  10066. style="background: #409efe; color: #fff"
  10067. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10068. >
  10069. 关 闭</el-button
  10070. >
  10071. </div>
  10072. </el-dialog>
  10073. <el-dialog
  10074. title="查看详情"
  10075. :visible.sync="commentDialogVisible"
  10076. :append-to-body="true"
  10077. width="800px"
  10078. :before-close="handleClose"
  10079. class="dialog_diy"
  10080. >
  10081. <div class="commentTop">
  10082. <div class="studentDetail">
  10083. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10084. <div class="nameAndTime">
  10085. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10086. <div>{{ commentDetail.time }}</div>
  10087. </div>
  10088. <div
  10089. class="returnBtn"
  10090. style="margin-left: auto; width: 80px"
  10091. v-if="
  10092. commentDetail.works &&
  10093. commentDetail.type == 0 &&
  10094. (tType == 1 || tType == 4)
  10095. "
  10096. @click="
  10097. showPicturePaint(
  10098. commentDetail.img ? commentDetail.img : commentDetail.works
  10099. )
  10100. "
  10101. >
  10102. 教师批注
  10103. </div>
  10104. </div>
  10105. <div
  10106. class="worksAnswer"
  10107. v-if="commentDetail.works && commentDetail.type == 2"
  10108. >
  10109. {{ JSON.parse(commentDetail.works)[0].answer }}
  10110. </div>
  10111. <div
  10112. class="worksAnswer"
  10113. v-if="commentDetail.works && commentDetail.type == 1"
  10114. >
  10115. <img
  10116. src="../assets/teacherWork.png"
  10117. v-if="commentDetail.ateacher"
  10118. class="w_teachert"
  10119. />
  10120. <pdf
  10121. v-if="showPDF"
  10122. :pdfUrl="pptImgUrl"
  10123. style="width: 100%; height: 520px; overflow: auto"
  10124. :class="{ fullStyle: full }"
  10125. ></pdf>
  10126. <iframe
  10127. v-else
  10128. :src="pptImgUrl"
  10129. frameborder="0"
  10130. width="100%"
  10131. height="600"
  10132. :class="{ fullStyle: full }"
  10133. ></iframe>
  10134. </div>
  10135. <div
  10136. class="worksAnswer"
  10137. v-if="commentDetail.works && commentDetail.type == 0"
  10138. >
  10139. <img
  10140. src="../assets/teacherWork.png"
  10141. v-if="commentDetail.ateacher"
  10142. class="w_teachert"
  10143. style="right: 105px"
  10144. />
  10145. <img
  10146. :src="commentDetail.works"
  10147. alt=""
  10148. @click="previewImg(commentDetail.works)"
  10149. />
  10150. </div>
  10151. <div
  10152. class="worksAnswer"
  10153. v-if="commentDetail.works && commentDetail.type == 3"
  10154. >
  10155. <img
  10156. src="../assets/teacherWork.png"
  10157. v-if="commentDetail.ateacher"
  10158. class="w_teachert"
  10159. />
  10160. <video-player
  10161. class="video-player vjs-custom-skin"
  10162. :playsinline="true"
  10163. :options="videoDetail"
  10164. @play="onPlayerPlay($event)"
  10165. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10166. ></video-player>
  10167. </div>
  10168. <div
  10169. class="worksAnswer"
  10170. v-if="commentDetail.works && commentDetail.type == 10"
  10171. >
  10172. <div class="cont" v-html="commentDetail.works.text"></div>
  10173. </div>
  10174. <div
  10175. class="worksAnswer codeFileBox"
  10176. v-if="commentDetail.works && commentDetail.type == 12"
  10177. @click="downloadFile(commentDetail.works)"
  10178. >
  10179. <img src="../assets/icon/codeFile.png" />
  10180. <div>点击下载文件</div>
  10181. </div>
  10182. <div
  10183. class="worksAnswer codeFileBox"
  10184. v-if="commentDetail.works && commentDetail.type == 15"
  10185. @click="
  10186. openCocoPi(
  10187. 57,
  10188. commentIndexJson.toolIndex,
  10189. commentDetail.userid,
  10190. commentDetail.sName
  10191. )
  10192. "
  10193. >
  10194. <img src="../assets/icon/codeFile.png" />
  10195. <div>点击打开CocoPi</div>
  10196. </div>
  10197. <div
  10198. class="worksAnswer"
  10199. v-if="commentDetail.works && commentDetail.type == 13"
  10200. >
  10201. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10202. </div>
  10203. <div
  10204. class="worksAnswer"
  10205. v-if="commentDetail.works && commentDetail.type == 4"
  10206. >
  10207. <div class="evalCss">
  10208. <div class="nav">请选择星星进行评分</div>
  10209. <div class="middleBox" v-if="eScore.eStar">
  10210. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10211. <div class="nameAndrate">
  10212. <div>{{ e.value }}</div>
  10213. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10214. </div>
  10215. <div v-if="e.detail">{{ e.detail }}</div>
  10216. </div>
  10217. <div class="bz">
  10218. <textarea
  10219. disabled
  10220. rows="4"
  10221. class="pj"
  10222. style="
  10223. padding: 10px 5px;
  10224. width: 70%;
  10225. background: #f7f6f9;
  10226. font-size: 14px;
  10227. text-indent: 10px;
  10228. color: #000;
  10229. "
  10230. cols
  10231. v-model="eScore.eBzText"
  10232. placeholder="请输入评价内容..."
  10233. ></textarea>
  10234. </div>
  10235. </div>
  10236. </div>
  10237. </div>
  10238. <div class="comment">
  10239. <div class="commentList">
  10240. <div class="commentImg">
  10241. <img
  10242. @click="
  10243. isLikes(
  10244. commentDetail.wid,
  10245. userid,
  10246. 1,
  10247. null,
  10248. commentDetail.isLikes,
  10249. commentDetail.sName
  10250. )
  10251. "
  10252. :src="commentDetail.isLikes == true ? likes : noLikes"
  10253. alt=""
  10254. />
  10255. </div>
  10256. <div>{{ commentDetail.likesCount }}</div>
  10257. </div>
  10258. <div class="commentList">
  10259. <div class="commentImg">
  10260. <img src="../assets/icon/comment/comment.png" alt="" />
  10261. </div>
  10262. <div>{{ commentDetail.commentCount }}</div>
  10263. </div>
  10264. </div>
  10265. <div class="drawPBox" v-if="commentDetail.img">
  10266. <span>教师批注</span>
  10267. <img
  10268. :src="commentDetail.img"
  10269. alt=""
  10270. @click="previewImg(commentDetail.img)"
  10271. />
  10272. <span
  10273. class="deleteImg"
  10274. v-if="tType == 1 || tType == 4"
  10275. @click.stop="deletePicturePaint(commentDetail.wid)"
  10276. style="
  10277. font-size: 14px;
  10278. width: auto !important;
  10279. color: #b4b4b4;
  10280. top: unset;
  10281. bottom: 0;
  10282. border: none;
  10283. padding: 0;
  10284. height: auto !important;
  10285. margin: 0;
  10286. "
  10287. >删除</span
  10288. >
  10289. </div>
  10290. </div>
  10291. <div class="commentBox">
  10292. <div class="pl">评论:</div>
  10293. <div style="max-height: 200px; overflow: auto">
  10294. <div
  10295. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10296. style="padding: 10px 0 0 0"
  10297. >
  10298. <div
  10299. class="studentDetail"
  10300. style="padding-top: 10px"
  10301. v-for="(co, coIndex) in commentDetail.commentJson"
  10302. :key="coIndex"
  10303. >
  10304. <div class="tx" style="min-width: 50px">
  10305. <img src="../assets/avatar.png" alt="" />
  10306. </div>
  10307. <div class="plPerson">
  10308. <div class="plName">
  10309. <div>{{ co.commentPeople }}</div>
  10310. <div style="margin-left: 5px">
  10311. {{ co.commentTime }}
  10312. </div>
  10313. <div
  10314. class="deleteComment"
  10315. v-if="userid == co.userid"
  10316. @click="deleteComment(co.wid)"
  10317. >
  10318. 删除
  10319. </div>
  10320. </div>
  10321. <div class="plContent">{{ co.commentText }}</div>
  10322. </div>
  10323. </div>
  10324. </div>
  10325. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10326. </div>
  10327. </div>
  10328. <div style="margin-top: 10px">
  10329. <div class="displayBox">
  10330. <div
  10331. style="
  10332. color: #556db4;
  10333. font-size: 14px;
  10334. font-weight: bold;
  10335. padding-bottom: 10px;
  10336. "
  10337. >
  10338. 评价
  10339. </div>
  10340. <div class="easy_comment" v-if="false">
  10341. <div
  10342. v-for="(p, pIndex) in PlTextList"
  10343. :key="pIndex"
  10344. @click="fastText(p, 1)"
  10345. >
  10346. {{ p }}
  10347. </div>
  10348. </div>
  10349. </div>
  10350. <div>
  10351. <textarea
  10352. rows="3"
  10353. class="pj"
  10354. style="padding: 10px 5px"
  10355. cols
  10356. v-model="commentText"
  10357. placeholder="请输入评论"
  10358. ></textarea>
  10359. </div>
  10360. </div>
  10361. <div slot="footer">
  10362. <el-button
  10363. @click="
  10364. (commentDialogVisible = false),
  10365. (commentIndexJson = {}),
  10366. videoDetail.sources && videoDetail.sources[0]
  10367. ? (videoDetail.sources[0].src = '')
  10368. : ''
  10369. "
  10370. >取 消</el-button
  10371. >
  10372. <el-button
  10373. type="primary"
  10374. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10375. >确 定</el-button
  10376. >
  10377. </div>
  10378. </el-dialog>
  10379. <el-dialog
  10380. title="查看文档"
  10381. :visible.sync="fullDialogVisible"
  10382. :append-to-body="true"
  10383. width="100%"
  10384. :before-close="handleClose"
  10385. :show-close="false"
  10386. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10387. >
  10388. <div slot="title" class="header-title">
  10389. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10390. <div v-else style="color: #fff">查看文档</div>
  10391. <div
  10392. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10393. style="
  10394. cursor: pointer;
  10395. position: absolute;
  10396. top: 20px;
  10397. right: 20px;
  10398. color: #fff;
  10399. "
  10400. >
  10401. 退出全屏
  10402. </div>
  10403. </div>
  10404. <div style="height: 100%;position: relative;">
  10405. <el-button
  10406. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10407. size="medium"
  10408. type="primary"
  10409. @click="
  10410. () => {
  10411. (fullDialogVisible = false),
  10412. changeSplitScreenBehavior({ code: 99 });
  10413. }
  10414. "
  10415. style="
  10416. cursor: pointer;
  10417. position: absolute;
  10418. top: 10px;
  10419. right: 20px;
  10420. color: #fff;
  10421. "
  10422. >
  10423. 退出全屏
  10424. </el-button>
  10425. <div
  10426. class="wheel"
  10427. v-if="fulltype == 1"
  10428. style="
  10429. box-shadow: 0 0 6px 1px #f2f2f2;
  10430. width: 100%;
  10431. height:100%;
  10432. background: #f1f1f1;
  10433. "
  10434. >
  10435. <div class="title" style="width: 100%; box-sizing: border-box">
  10436. 查看文档
  10437. </div>
  10438. <el-form class="textBox" style="height: 90%">
  10439. <el-form-item class="textTitle">
  10440. <div style="font-size: 22px">
  10441. {{ fullUrl.name }}
  10442. </div>
  10443. </el-form-item>
  10444. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10445. <div
  10446. v-html="fullUrl.url"
  10447. class="textContent"
  10448. style="height: auto"
  10449. ></div>
  10450. </el-form>
  10451. </div>
  10452. <div
  10453. class="wheel"
  10454. v-else-if="
  10455. (fulltype == 2 || fulltype == 4) &&
  10456. fullUrl.indexOf(
  10457. 'https://view.officeapps.live.com/op/view.aspx?src='
  10458. ) != -1
  10459. "
  10460. style="width: 100%;height:100%; margin: 0 auto"
  10461. >
  10462. <iframe
  10463. style="width: 100%; height: 100%; border: none"
  10464. :src="fullUrl"
  10465. ></iframe>
  10466. </div>
  10467. <!-- <iframe
  10468. v-else-if="fulltype == 2"
  10469. style="width: 100%; height: 100%; border: none"
  10470. :src="fullUrl"
  10471. security="restricted"
  10472. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10473. ></iframe> -->
  10474. <iframe
  10475. style="width: 100%; height: 100%; border: none"
  10476. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10477. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  10478. :src="fullUrl"
  10479. ></iframe>
  10480. <iframe
  10481. style="width: 100%; height: 100%; border: none"
  10482. security="restricted"
  10483. v-else-if="(fulltype == 2 || fulltype == 4)"
  10484. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10485. :src="fullUrl"
  10486. ></iframe>
  10487. <pdf
  10488. v-else-if="fulltype == 3"
  10489. :pdfUrl="fullUrl"
  10490. style="width: 100%; height: 100%; overflow: auto"
  10491. ></pdf>
  10492. <iframe
  10493. style="width: 100%; height: 100%; border: none"
  10494. security="restricted"
  10495. v-if="(fulltype == 16)"
  10496. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10497. :src="fullUrl"
  10498. ></iframe>
  10499. </div>
  10500. <!-- <div slot="footer">
  10501. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10502. </div> -->
  10503. </el-dialog>
  10504. <el-dialog
  10505. title="个人评价"
  10506. :visible.sync="studentEvalDialogVisible"
  10507. :append-to-body="true"
  10508. width="800px"
  10509. :before-close="handleClose"
  10510. class="dialog_diy"
  10511. >
  10512. <div class="evalCss">
  10513. <div class="nav">请选择星星进行评分</div>
  10514. <div class="middleBox" v-if="eScore.eStar">
  10515. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10516. <div class="nameAndrate">
  10517. <div>{{ e.value }}</div>
  10518. <el-rate
  10519. v-model="eScore.eStar[eIndex]"
  10520. :disabled="isStar"
  10521. ></el-rate>
  10522. </div>
  10523. <div v-if="e.detail">{{ e.detail }}</div>
  10524. </div>
  10525. <div class="easy_comment" v-if="false">
  10526. <div
  10527. v-for="(p, pIndex) in PlTextList"
  10528. :key="pIndex"
  10529. @click="fastText(p, 2)"
  10530. >
  10531. {{ p }}
  10532. </div>
  10533. </div>
  10534. <div class="bz">
  10535. <textarea
  10536. :disabled="isStar"
  10537. rows="4"
  10538. class="pj"
  10539. style="
  10540. padding: 10px 5px;
  10541. width: 70%;
  10542. background: #f7f6f9;
  10543. font-size: 14px;
  10544. text-indent: 10px;
  10545. "
  10546. cols
  10547. v-model="eScore.eBzText"
  10548. placeholder="请输入评价内容..."
  10549. ></textarea>
  10550. </div>
  10551. </div>
  10552. </div>
  10553. <div slot="footer">
  10554. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10555. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10556. >确 定</el-button
  10557. >
  10558. </div>
  10559. </el-dialog>
  10560. <el-dialog
  10561. title="个人评价"
  10562. :visible.sync="studentEvalDialogVisibleTeacher"
  10563. :append-to-body="true"
  10564. width="800px"
  10565. :before-close="handleClose"
  10566. class="dialog_diy"
  10567. >
  10568. <div class="w_name">
  10569. 学生姓名:<span>{{ sStudent.student }}</span>
  10570. </div>
  10571. <div class="evalCss">
  10572. <div class="nav">请选择星星进行评分</div>
  10573. <div class="middleBox" v-if="eScore.eStar">
  10574. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10575. <div class="nameAndrate">
  10576. <div>{{ e.value }}</div>
  10577. <el-rate
  10578. v-model="eScore.eStar[eIndex]"
  10579. :disabled="isStar"
  10580. ></el-rate>
  10581. </div>
  10582. <div v-if="e.detail">{{ e.detail }}</div>
  10583. </div>
  10584. <div class="easy_comment" v-if="false">
  10585. <div
  10586. v-for="(p, pIndex) in PlTextList"
  10587. :key="pIndex"
  10588. @click="fastText(p, 2)"
  10589. >
  10590. {{ p }}
  10591. </div>
  10592. </div>
  10593. <div class="bz">
  10594. <textarea
  10595. :disabled="isStar"
  10596. rows="4"
  10597. class="pj"
  10598. style="
  10599. padding: 10px 5px;
  10600. width: 70%;
  10601. background: #f7f6f9;
  10602. font-size: 14px;
  10603. text-indent: 10px;
  10604. "
  10605. cols
  10606. v-model="eScore.eBzText"
  10607. placeholder="请输入评价内容..."
  10608. ></textarea>
  10609. </div>
  10610. </div>
  10611. </div>
  10612. <div slot="footer">
  10613. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10614. >取 消</el-button
  10615. >
  10616. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10617. >确 定</el-button
  10618. >
  10619. </div>
  10620. </el-dialog>
  10621. <el-dialog
  10622. title="选择匹配"
  10623. :visible.sync="dialogVisibleSelect"
  10624. :append-to-body="true"
  10625. width="90%"
  10626. :before-close="handleClose"
  10627. class="dialog_diy dialog_diy3"
  10628. >
  10629. <div v-if="selectJson">
  10630. <div class="select_box2">
  10631. <div class="select_box2_title">
  10632. <div>选择匹配</div>
  10633. <div>请选择对应的答案进行答题!</div>
  10634. </div>
  10635. <div class="select_box2_box">
  10636. <div class="select_box2_img">
  10637. <img
  10638. :src="selectJson.url"
  10639. @click="previewImg(selectJson.url)"
  10640. alt=""
  10641. />
  10642. </div>
  10643. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10644. <div style="padding-top: 15px">
  10645. <div class="select_answer_title" v-if="isSelect">
  10646. {{ selectAnswer.stu }}
  10647. </div>
  10648. <div class="select_answer_title" v-else>
  10649. 根据题目选择对应答案
  10650. </div>
  10651. <div
  10652. class="select_box2_answer_box"
  10653. v-for="(item2, checkIndex) in selectJson.select"
  10654. :key="checkIndex"
  10655. >
  10656. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10657. <el-select
  10658. :disabled="isSelect"
  10659. v-model="selectAnswer.answer[checkIndex]"
  10660. placeholder="请选择正确答案"
  10661. >
  10662. <el-option
  10663. v-for="(e, eIndex) in selectJson.select"
  10664. :key="eIndex"
  10665. :label="e"
  10666. :value="eIndex"
  10667. >
  10668. </el-option>
  10669. </el-select>
  10670. </div>
  10671. </div>
  10672. <div
  10673. class="rightAnswerCss"
  10674. v-if="isSelect && (tType == 1 || tType == 4)"
  10675. >
  10676. <div
  10677. v-for="(a, aIndex) in selectJson.answer"
  10678. :key="aIndex"
  10679. class="rightAnswer"
  10680. >
  10681. <div
  10682. v-if="selectAnswer.answer[aIndex] === a"
  10683. style="color: #767de1"
  10684. >
  10685. 回答正确
  10686. </div>
  10687. <div v-else>回答错误</div>
  10688. <div
  10689. style="margin-left: 10px"
  10690. v-if="selectAnswer.answer[aIndex] !== a"
  10691. >
  10692. 正确答案:
  10693. </div>
  10694. <div
  10695. :class="
  10696. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10697. "
  10698. >
  10699. {{ selectJson.select[a] }}
  10700. </div>
  10701. </div>
  10702. </div>
  10703. </div>
  10704. <div class="upAnswerCss">
  10705. <el-button
  10706. type="primary"
  10707. @click="addSelectAnswer"
  10708. v-if="!isSelect"
  10709. >提交答案</el-button
  10710. >
  10711. </div>
  10712. </div>
  10713. </div>
  10714. </div>
  10715. </el-dialog>
  10716. <el-dialog
  10717. title="选择匹配"
  10718. :visible.sync="dialogVisibleSelectTeacher"
  10719. :append-to-body="true"
  10720. width="90%"
  10721. :before-close="handleClose"
  10722. class="dialog_diy dialog_diy3"
  10723. >
  10724. <div v-if="selectJson">
  10725. <div class="w_name">
  10726. 学生姓名:<span>{{ sStudent.student }}</span>
  10727. </div>
  10728. <div class="select_box2">
  10729. <div class="select_box2_title">
  10730. <div>选择匹配</div>
  10731. <div>请选择对应的答案进行答题!</div>
  10732. </div>
  10733. <div class="select_box2_box">
  10734. <div class="select_box2_img">
  10735. <img
  10736. :src="selectJson.url"
  10737. @click="previewImg(selectJson.url)"
  10738. alt=""
  10739. />
  10740. </div>
  10741. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10742. <div style="padding-top: 15px">
  10743. <div class="select_answer_title" v-if="isSelect">
  10744. {{ selectAnswer.stu }}
  10745. </div>
  10746. <div class="select_answer_title" v-else>
  10747. 根据题目选择对应答案
  10748. </div>
  10749. <div
  10750. class="select_box2_answer_box"
  10751. v-for="(item2, checkIndex) in selectJson.select"
  10752. :key="checkIndex"
  10753. >
  10754. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10755. <el-select
  10756. :disabled="isSelect"
  10757. v-model="selectAnswer.answer[checkIndex]"
  10758. placeholder="请选择正确答案"
  10759. >
  10760. <el-option
  10761. v-for="(e, eIndex) in selectJson.select"
  10762. :key="eIndex"
  10763. :label="e"
  10764. :value="eIndex"
  10765. >
  10766. </el-option>
  10767. </el-select>
  10768. </div>
  10769. </div>
  10770. <div
  10771. class="rightAnswerCss"
  10772. v-if="isSelect && (tType == 1 || tType == 4)"
  10773. >
  10774. <div
  10775. v-for="(a, aIndex) in selectJson.answer"
  10776. :key="aIndex"
  10777. class="rightAnswer"
  10778. >
  10779. <div
  10780. v-if="selectAnswer.answer[aIndex] === a"
  10781. style="color: #767de1"
  10782. >
  10783. 回答正确
  10784. </div>
  10785. <div v-else>回答错误</div>
  10786. <div
  10787. style="margin-left: 10px"
  10788. v-if="selectAnswer.answer[aIndex] !== a"
  10789. >
  10790. 正确答案:
  10791. </div>
  10792. <div
  10793. :class="
  10794. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10795. "
  10796. >
  10797. {{ selectJson.select[a] }}
  10798. </div>
  10799. </div>
  10800. </div>
  10801. </div>
  10802. <div class="upAnswerCss">
  10803. <el-button
  10804. type="primary"
  10805. @click="addSelectAnswerTeacher"
  10806. v-if="!isSelect"
  10807. >提交答案</el-button
  10808. >
  10809. </div>
  10810. </div>
  10811. </div>
  10812. </div>
  10813. </el-dialog>
  10814. <el-dialog
  10815. title="教师评分"
  10816. :visible.sync="dialogVisibleScore"
  10817. :append-to-body="true"
  10818. width="800px"
  10819. :before-close="handleClose"
  10820. class="dialog_diy"
  10821. >
  10822. <div>
  10823. <div class="studentDetail">
  10824. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10825. <div class="nameAndTime">
  10826. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10827. <div>{{ commentDetail.time }}</div>
  10828. </div>
  10829. </div>
  10830. <div
  10831. class="worksAnswer"
  10832. v-if="commentDetail.works && commentDetail.type == 2"
  10833. >
  10834. {{ JSON.parse(commentDetail.works)[0].answer }}
  10835. </div>
  10836. <div
  10837. class="worksAnswer"
  10838. v-if="commentDetail.works && commentDetail.type == 1"
  10839. >
  10840. <pdf
  10841. v-if="showPDF"
  10842. :pdfUrl="pptImgUrl"
  10843. style="width: 100%; height: 520px; overflow: auto"
  10844. :class="{ fullStyle: full }"
  10845. ></pdf>
  10846. <iframe
  10847. v-else
  10848. :src="pptImgUrl"
  10849. frameborder="0"
  10850. width="100%"
  10851. height="600"
  10852. :class="{ fullStyle: full }"
  10853. ></iframe>
  10854. </div>
  10855. <div
  10856. class="worksAnswer"
  10857. v-if="commentDetail.works && commentDetail.type == 0"
  10858. >
  10859. <img
  10860. :src="commentDetail.works"
  10861. alt=""
  10862. @click="previewImg(commentDetail.works)"
  10863. />
  10864. </div>
  10865. <div
  10866. class="worksAnswer"
  10867. v-if="commentDetail.works && commentDetail.type == 3"
  10868. >
  10869. <video-player
  10870. class="video-player vjs-custom-skin"
  10871. :playsinline="true"
  10872. :options="videoDetail"
  10873. @play="onPlayerPlay($event)"
  10874. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10875. ></video-player>
  10876. </div>
  10877. <div
  10878. class="worksAnswer codeFileBox"
  10879. v-if="commentDetail.works && commentDetail.type == 12"
  10880. @click="downloadFile(commentDetail.works)"
  10881. >
  10882. <img src="../assets/icon/codeFile.png" />
  10883. <div>点击下载文件</div>
  10884. </div>
  10885. <div
  10886. class="worksAnswer codeFileBox"
  10887. v-if="commentDetail.works && commentDetail.type == 15"
  10888. @click="
  10889. openCocoPi(
  10890. 57,
  10891. commentIndexJson.toolIndex,
  10892. commentDetail.userid,
  10893. commentDetail.sName
  10894. )
  10895. "
  10896. >
  10897. <img src="../assets/icon/codeFile.png" />
  10898. <div>点击打开CocoPi</div>
  10899. </div>
  10900. <div
  10901. class="worksAnswer"
  10902. v-if="commentDetail.works && commentDetail.type == 13"
  10903. >
  10904. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10905. </div>
  10906. <div class="scoreBox">
  10907. <span class="t">请输入分数</span>
  10908. <el-input-number
  10909. :disabled="courseDetail.userid != userid"
  10910. v-model="wScore"
  10911. :controls="false"
  10912. :min="0"
  10913. :max="100"
  10914. ></el-input-number>
  10915. </div>
  10916. <div class="scoreDetailBox">
  10917. <span class="t">评分评论</span>
  10918. <el-input
  10919. type="textarea"
  10920. :rows="5"
  10921. :disabled="courseDetail.userid != userid"
  10922. resize="none"
  10923. v-model="scoreDetail"
  10924. placeholder="请输入对学生的评价"
  10925. >
  10926. </el-input>
  10927. </div>
  10928. </div>
  10929. <span slot="footer" class="dialog-footer">
  10930. <el-button
  10931. @click="
  10932. (dialogVisibleScore = false),
  10933. (commentIndexJson = {}),
  10934. videoDetail.sources && videoDetail.sources[0]
  10935. ? (videoDetail.sources[0].src = '')
  10936. : ''
  10937. "
  10938. >取 消</el-button
  10939. >
  10940. <el-button
  10941. type="primary"
  10942. v-if="courseDetail.userid == userid"
  10943. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10944. >确 定
  10945. </el-button>
  10946. </span>
  10947. </el-dialog>
  10948. <el-dialog
  10949. title="排序"
  10950. :visible.sync="dialogVisibleSentence"
  10951. :append-to-body="true"
  10952. width="1000px"
  10953. :before-close="handleClose"
  10954. class="dialog_diy dialog_diy3"
  10955. >
  10956. <div>
  10957. <div class="sentenBox">
  10958. <div
  10959. v-for="(st, stIndex) in sentenceList"
  10960. :key="stIndex"
  10961. style="padding-bottom: 20px"
  10962. >
  10963. <div
  10964. style="padding: 15px 0 10px 20px"
  10965. class="sentenceTitle"
  10966. :index="stIndex + 1"
  10967. >
  10968. 题目{{ stIndex + 1 }}:请选择正确顺序
  10969. </div>
  10970. <div class="cardList" v-if="st.chooseSenList">
  10971. <div class="cardBox">
  10972. <div
  10973. v-for="(r, rIndex) in st.chooseSenList"
  10974. :key="rIndex"
  10975. @click="returnCard(r, stIndex, rIndex)"
  10976. >
  10977. <el-tooltip
  10978. class="item"
  10979. effect="light"
  10980. :content="r"
  10981. placement="top"
  10982. v-if="r != '' && r != undefined"
  10983. >
  10984. <div
  10985. :class="{
  10986. isCard: r,
  10987. isChooseCard: r == '' || r == undefined,
  10988. }"
  10989. >
  10990. <div>{{ r }}</div>
  10991. </div>
  10992. </el-tooltip>
  10993. <div
  10994. :class="{
  10995. isCard: r,
  10996. isChooseCard: r == '' || r == undefined,
  10997. }"
  10998. v-else
  10999. >
  11000. <div>{{ r }}</div>
  11001. </div>
  11002. </div>
  11003. </div>
  11004. </div>
  11005. <div class="cardList" v-if="st.addChangeSen">
  11006. <div class="cardBox">
  11007. <div
  11008. v-for="(s, sIndex) in st.addChangeSen"
  11009. :key="sIndex"
  11010. @click="setRightAnswer(s, stIndex, sIndex)"
  11011. >
  11012. <el-tooltip
  11013. class="item"
  11014. effect="light"
  11015. :content="s"
  11016. placement="top"
  11017. v-if="s != '' && s != undefined"
  11018. >
  11019. <div
  11020. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11021. >
  11022. <div>{{ s }}</div>
  11023. </div>
  11024. </el-tooltip>
  11025. <div
  11026. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11027. v-else
  11028. >
  11029. <div>{{ s }}</div>
  11030. </div>
  11031. </div>
  11032. </div>
  11033. </div>
  11034. </div>
  11035. </div>
  11036. </div>
  11037. <span slot="footer" class="dialog-footer">
  11038. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11039. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11040. </span>
  11041. </el-dialog>
  11042. <el-dialog
  11043. title="排序"
  11044. :visible.sync="dialogVisibleSentenceTeacher"
  11045. :append-to-body="true"
  11046. width="1000px"
  11047. :before-close="handleClose"
  11048. class="dialog_diy dialog_diy3"
  11049. >
  11050. <div>
  11051. <div class="w_name">
  11052. 学生姓名:<span>{{ sStudent.student }}</span>
  11053. </div>
  11054. <div class="sentenBox">
  11055. <div
  11056. v-for="(st, stIndex) in sentenceList"
  11057. :key="stIndex"
  11058. style="padding-bottom: 20px"
  11059. >
  11060. <div
  11061. style="padding: 15px 0 10px 20px"
  11062. class="sentenceTitle"
  11063. :index="stIndex + 1"
  11064. >
  11065. 题目{{ stIndex + 1 }}:请选择正确顺序
  11066. </div>
  11067. <div class="cardList" v-if="st.chooseSenList">
  11068. <div class="cardBox">
  11069. <div
  11070. v-for="(r, rIndex) in st.chooseSenList"
  11071. :key="rIndex"
  11072. @click="returnCard(r, stIndex, rIndex)"
  11073. >
  11074. <el-tooltip
  11075. class="item"
  11076. effect="light"
  11077. :content="r"
  11078. placement="top"
  11079. v-if="r != '' && r != undefined"
  11080. >
  11081. <div
  11082. :class="{
  11083. isCard: r,
  11084. isChooseCard: r == '' || r == undefined,
  11085. }"
  11086. >
  11087. <div>{{ r }}</div>
  11088. </div>
  11089. </el-tooltip>
  11090. <div
  11091. :class="{
  11092. isCard: r,
  11093. isChooseCard: r == '' || r == undefined,
  11094. }"
  11095. v-else
  11096. >
  11097. <div>{{ r }}</div>
  11098. </div>
  11099. </div>
  11100. </div>
  11101. </div>
  11102. <div class="cardList" v-if="st.addChangeSen">
  11103. <div class="cardBox">
  11104. <div
  11105. v-for="(s, sIndex) in st.addChangeSen"
  11106. :key="sIndex"
  11107. @click="setRightAnswer(s, stIndex, sIndex)"
  11108. >
  11109. <el-tooltip
  11110. class="item"
  11111. effect="light"
  11112. :content="s"
  11113. placement="top"
  11114. v-if="s != '' && s != undefined"
  11115. >
  11116. <div
  11117. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11118. >
  11119. <div>{{ s }}</div>
  11120. </div>
  11121. </el-tooltip>
  11122. <div
  11123. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11124. v-else
  11125. >
  11126. <div>{{ s }}</div>
  11127. </div>
  11128. </div>
  11129. </div>
  11130. </div>
  11131. </div>
  11132. </div>
  11133. </div>
  11134. <span slot="footer" class="dialog-footer">
  11135. <el-button @click="dialogVisibleSentenceTeacher = false"
  11136. >取 消</el-button
  11137. >
  11138. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11139. </span>
  11140. </el-dialog>
  11141. <el-dialog
  11142. title="排序"
  11143. :visible.sync="dialogVisibleSentence1"
  11144. :append-to-body="true"
  11145. width="1000px"
  11146. :before-close="handleClose"
  11147. class="dialog_diy dialog_diy3"
  11148. >
  11149. <div>
  11150. <div class="sentenBox">
  11151. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11152. {{ sentenceList1.stuName }}的作业
  11153. </div>
  11154. <div
  11155. v-for="(st, stIndex) in sentenceList1"
  11156. :key="stIndex"
  11157. style="padding-bottom: 20px"
  11158. >
  11159. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11160. 第{{ stIndex + 1 }}题
  11161. </div>
  11162. <div class="isWrong">
  11163. <div class="cardList1" v-if="st.chooseSenList">
  11164. <div class="cardBox">
  11165. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11166. <el-tooltip
  11167. class="item"
  11168. effect="light"
  11169. :content="s"
  11170. placement="top"
  11171. >
  11172. <div class="isCard">
  11173. <div>{{ s }}</div>
  11174. </div>
  11175. </el-tooltip>
  11176. </div>
  11177. </div>
  11178. <div class="cardAnswerBox">
  11179. 组成句子:{{ st.chooseSenList.join(" ") }}
  11180. </div>
  11181. </div>
  11182. <div v-if="tType == 2" class="isTj">
  11183. <div class="isTjImg">
  11184. <img src="../assets/icon/conSentences/right.png" alt="" />
  11185. </div>
  11186. <div>已提交</div>
  11187. </div>
  11188. <div
  11189. class="answerRight isTj"
  11190. v-if="
  11191. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11192. (tType == 1 || tType == 4)
  11193. "
  11194. >
  11195. <div class="isTjImg">
  11196. <img src="../assets/icon/conSentences/right.png" alt="" />
  11197. </div>
  11198. <div>回答正确</div>
  11199. </div>
  11200. <div
  11201. class="answerRight isTj"
  11202. v-if="
  11203. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11204. (tType == 1 || tType == 4)
  11205. "
  11206. >
  11207. <div class="isTjImg">
  11208. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  11209. </div>
  11210. <div>回答错误</div>
  11211. </div>
  11212. </div>
  11213. <div
  11214. v-if="
  11215. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11216. (tType == 1 || tType == 4)
  11217. "
  11218. >
  11219. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11220. <div
  11221. class="cardList"
  11222. v-if="st.rightAnswer"
  11223. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11224. >
  11225. <div class="cardBox">
  11226. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11227. <el-tooltip
  11228. class="item"
  11229. effect="light"
  11230. :content="r"
  11231. placement="top"
  11232. >
  11233. <div class="isCard1">
  11234. <div>{{ r }}</div>
  11235. </div>
  11236. </el-tooltip>
  11237. </div>
  11238. </div>
  11239. <div class="cardAnswerBox">
  11240. 组成句子:{{ st.rightAnswer.join(" ") }}
  11241. </div>
  11242. </div>
  11243. </div>
  11244. </div>
  11245. </div>
  11246. </div>
  11247. <span slot="footer" class="dialog-footer">
  11248. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11249. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11250. >确 定</el-button
  11251. >
  11252. </span>
  11253. </el-dialog>
  11254. <el-dialog
  11255. title="教师提交作业"
  11256. :visible.sync="dialogVisibleWorks"
  11257. :append-to-body="true"
  11258. width="500px"
  11259. :before-close="handleClose"
  11260. class="dialog_change"
  11261. >
  11262. <div class="marginT">
  11263. <div class="w_name">
  11264. 学生姓名:<span>{{ sStudent.student }}</span>
  11265. </div>
  11266. <div>上传文件</div>
  11267. <div style="display: flex; gap: 10px">
  11268. <div
  11269. class="chapter_add"
  11270. @click="addImg($event)"
  11271. v-if="studyJuri[0].cover.length == 0"
  11272. >
  11273. <div class="up_photo">
  11274. <img src="../assets/icon/uploadImg.png" alt />
  11275. </div>
  11276. <!-- <input
  11277. type="file"
  11278. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11279. style="display: none"
  11280. @change="beforeUpload1($event, 1)"
  11281. /> -->
  11282. <input
  11283. type="file"
  11284. accept="*"
  11285. style="display: none"
  11286. @change="beforeUpload1($event, 1)"
  11287. />
  11288. <!-- <input
  11289. type="file"
  11290. accept="image/*"
  11291. capture="camera"
  11292. style="display: none"
  11293. @change="beforeUpload1($event, 1)"
  11294. /> -->
  11295. </div>
  11296. <div
  11297. class="chapter_add"
  11298. @click="addImg($event)"
  11299. v-if="studyJuri[0].cover.length == 0"
  11300. >
  11301. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11302. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11303. </div>
  11304. <input
  11305. type="file"
  11306. accept="image/*"
  11307. capture="camera"
  11308. style="display: none"
  11309. @change="beforeUpload1($event, 1)"
  11310. />
  11311. </div>
  11312. </div>
  11313. <!-- capture="camera" -->
  11314. <div
  11315. class="chapter_add"
  11316. style="
  11317. display: flex;
  11318. width: 100%;
  11319. flex-direction: row;
  11320. flex-wrap: wrap;
  11321. justify-content: flex-start;
  11322. padding: 15px 0;
  11323. "
  11324. v-if="studyJuri[0].cover.length > 0"
  11325. >
  11326. <div class="upCover">
  11327. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11328. <img :src="word" alt v-else-if="fileType == 1" />
  11329. <img :src="video" alt v-else-if="fileType == 2" />
  11330. <img :src="word2" alt v-else-if="fileType == 3" />
  11331. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11332. <div class="deleteWord" @click="clean(1)">
  11333. <img src="../assets/icon/deleteWorks.png" alt />
  11334. </div>
  11335. </div>
  11336. </div>
  11337. </div>
  11338. <div
  11339. class="upload_send"
  11340. @click="addCourseWorksTeacher(taskCount)"
  11341. v-if="!proVisible"
  11342. >
  11343. 提交
  11344. </div>
  11345. </el-dialog>
  11346. <ImgDraw
  11347. :drawShow="drawShow"
  11348. @closeDraw="closeDraw"
  11349. @addImgDraw="addImgDraw"
  11350. :bg="bg"
  11351. ></ImgDraw>
  11352. <el-dialog
  11353. title="表格"
  11354. :visible.sync="dialogVisibleTable"
  11355. :append-to-body="true"
  11356. width="95%"
  11357. :before-close="handleClose"
  11358. class="dialog_diy"
  11359. >
  11360. <el-form>
  11361. <div
  11362. style="
  11363. display: flex;
  11364. align-items: center;
  11365. justify-content: space-between;
  11366. "
  11367. >
  11368. <span>表格内容</span>
  11369. <el-button type="primary" size="small" @click="returnTableText"
  11370. >还原模板</el-button
  11371. >
  11372. </div>
  11373. <Table
  11374. v-model="tableJson.text"
  11375. @change="change"
  11376. v-if="dialogVisibleTable"
  11377. ></Table>
  11378. </el-form>
  11379. <span slot="footer" class="dialog-footer">
  11380. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11381. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11382. </span>
  11383. </el-dialog>
  11384. <el-dialog
  11385. title="表格"
  11386. :visible.sync="dialogVisibleTableTeacher"
  11387. :append-to-body="true"
  11388. width="95%"
  11389. :before-close="handleClose"
  11390. class="dialog_diy"
  11391. >
  11392. <el-form>
  11393. <div class="w_name">
  11394. 学生姓名:<span>{{ sStudent.student }}</span>
  11395. </div>
  11396. <div>表格内容</div>
  11397. <Table
  11398. v-model="tableJson.text"
  11399. @change="change"
  11400. v-if="dialogVisibleTableTeacher"
  11401. ></Table>
  11402. </el-form>
  11403. <span slot="footer" class="dialog-footer">
  11404. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11405. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11406. </span>
  11407. </el-dialog>
  11408. <el-dialog
  11409. title="文档"
  11410. :visible.sync="dialogVisibleWord"
  11411. :append-to-body="true"
  11412. width="95%"
  11413. :before-close="handleClose"
  11414. class="dialog_diy"
  11415. >
  11416. <el-form>
  11417. <div
  11418. style="
  11419. display: flex;
  11420. align-items: center;
  11421. justify-content: space-between;
  11422. "
  11423. >
  11424. <span>文档内容</span>
  11425. <el-button type="primary" size="small" @click="returnWordText"
  11426. >还原模板</el-button
  11427. >
  11428. </div>
  11429. <editor-bar
  11430. v-model="wordJson.text"
  11431. v-if="dialogVisibleWord"
  11432. ></editor-bar>
  11433. </el-form>
  11434. <span slot="footer" class="dialog-footer">
  11435. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11436. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11437. </span>
  11438. </el-dialog>
  11439. <el-dialog
  11440. title="文档"
  11441. :visible.sync="dialogVisibleWordTeacher"
  11442. :append-to-body="true"
  11443. width="95%"
  11444. :before-close="handleClose"
  11445. class="dialog_diy"
  11446. >
  11447. <el-form>
  11448. <div class="w_name">
  11449. 学生姓名:<span>{{ sStudent.student }}</span>
  11450. </div>
  11451. <div>文档内容</div>
  11452. <editor-bar
  11453. v-model="wordJson.text"
  11454. v-if="dialogVisibleWordTeacher"
  11455. ></editor-bar>
  11456. </el-form>
  11457. <span slot="footer" class="dialog-footer">
  11458. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11459. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11460. </span>
  11461. </el-dialog>
  11462. <el-dialog
  11463. title="表格"
  11464. :visible.sync="dialogVisibleTable2"
  11465. :append-to-body="true"
  11466. width="95%"
  11467. :before-close="handleClose"
  11468. class="dialog_diy"
  11469. >
  11470. <el-form>
  11471. <div class="cont" v-html="tableJson.text"></div>
  11472. </el-form>
  11473. <span slot="footer" class="dialog-footer">
  11474. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11475. </span>
  11476. </el-dialog>
  11477. <el-dialog
  11478. title="文档"
  11479. :visible.sync="dialogVisibleTable3"
  11480. :append-to-body="true"
  11481. width="95%"
  11482. :before-close="handleClose"
  11483. class="dialog_diy"
  11484. >
  11485. <el-form>
  11486. <div class="cont" v-html="tableJson.text"></div>
  11487. </el-form>
  11488. <span slot="footer" class="dialog-footer">
  11489. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11490. </span>
  11491. </el-dialog>
  11492. <el-dialog
  11493. title="分组设置"
  11494. :visible.sync="dialogVisibleGroup"
  11495. :append-to-body="true"
  11496. width="95%"
  11497. :before-close="handleClose"
  11498. class="dialog_diy"
  11499. >
  11500. <div v-if="dialogVisibleGroup">
  11501. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11502. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11503. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11504. </div>
  11505. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11506. @click="lockChair">
  11507. 锁定位置
  11508. </div>
  11509. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11510. 解锁位置
  11511. </div> -->
  11512. <div class="group_switch">
  11513. <span>开放选座</span>
  11514. <el-switch
  11515. v-model="islock"
  11516. active-text=""
  11517. class="switchCss"
  11518. @change="lockChair"
  11519. ></el-switch>
  11520. </div>
  11521. <div
  11522. type="primary"
  11523. @click="updateGroup"
  11524. class="returnBtn"
  11525. style="background-color: #225bc7"
  11526. >
  11527. 分组设置
  11528. </div>
  11529. </div>
  11530. <div>
  11531. <div
  11532. class="g_d_box"
  11533. v-if="groupJson.group && groupStudent[toolindex]"
  11534. >
  11535. <div
  11536. class="g_d_group"
  11537. v-for="(g, gindex) in groupJson.group"
  11538. :key="gindex"
  11539. >
  11540. <div class="g_d_group_chair">
  11541. <div v-if="groupJson.number > 1">
  11542. <span
  11543. :class="{
  11544. isChair:
  11545. groupStudent[toolindex][gindex] &&
  11546. groupStudent[toolindex][gindex][0],
  11547. updateChair:
  11548. courseDetail.userid == userid &&
  11549. groupStudent[toolindex][gindex] &&
  11550. groupStudent[toolindex][gindex][0] &&
  11551. groupJson.islock == 2,
  11552. }"
  11553. ><span
  11554. class="updateChairBtn"
  11555. @click="
  11556. updateGroupChair(
  11557. groupStudent[toolindex][gindex] &&
  11558. groupStudent[toolindex][gindex][0]
  11559. )
  11560. "
  11561. >修改</span
  11562. ></span
  11563. ><span>{{
  11564. groupStudent[toolindex][gindex] &&
  11565. groupStudent[toolindex][gindex][0]
  11566. ? groupStudent[toolindex][gindex] &&
  11567. groupStudent[toolindex][gindex][0].name
  11568. : "空位置"
  11569. }}</span>
  11570. </div>
  11571. <div v-if="groupJson.number > 4">
  11572. <span
  11573. :class="{
  11574. isChair:
  11575. groupStudent[toolindex][gindex] &&
  11576. groupStudent[toolindex][gindex][4],
  11577. updateChair:
  11578. courseDetail.userid == userid &&
  11579. groupStudent[toolindex][gindex] &&
  11580. groupStudent[toolindex][gindex][4] &&
  11581. groupJson.islock == 2,
  11582. }"
  11583. ><span
  11584. class="updateChairBtn"
  11585. @click="
  11586. updateGroupChair(
  11587. groupStudent[toolindex][gindex] &&
  11588. groupStudent[toolindex][gindex][4]
  11589. )
  11590. "
  11591. >修改</span
  11592. ></span
  11593. ><span>{{
  11594. groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][4]
  11596. ? groupStudent[toolindex][gindex] &&
  11597. groupStudent[toolindex][gindex][4].name
  11598. : "空位置"
  11599. }}</span>
  11600. </div>
  11601. <div v-if="groupJson.number > 8">
  11602. <span
  11603. :class="{
  11604. isChair:
  11605. groupStudent[toolindex][gindex] &&
  11606. groupStudent[toolindex][gindex][8],
  11607. updateChair:
  11608. courseDetail.userid == userid &&
  11609. groupStudent[toolindex][gindex] &&
  11610. groupStudent[toolindex][gindex][8] &&
  11611. groupJson.islock == 2,
  11612. }"
  11613. ><span
  11614. class="updateChairBtn"
  11615. @click="
  11616. updateGroupChair(
  11617. groupStudent[toolindex][gindex] &&
  11618. groupStudent[toolindex][gindex][8]
  11619. )
  11620. "
  11621. >修改</span
  11622. ></span
  11623. ><span>{{
  11624. groupStudent[toolindex][gindex] &&
  11625. groupStudent[toolindex][gindex][8]
  11626. ? groupStudent[toolindex][gindex] &&
  11627. groupStudent[toolindex][gindex][8].name
  11628. : "空位置"
  11629. }}</span>
  11630. </div>
  11631. </div>
  11632. <div class="g_d_group_tableBox">
  11633. <div class="g_d_group_chair2">
  11634. <div v-if="groupJson.number > 2">
  11635. <span
  11636. :class="{
  11637. isChair:
  11638. groupStudent[toolindex][gindex] &&
  11639. groupStudent[toolindex][gindex][2],
  11640. updateChair:
  11641. courseDetail.userid == userid &&
  11642. groupStudent[toolindex][gindex] &&
  11643. groupStudent[toolindex][gindex][2] &&
  11644. groupJson.islock == 2,
  11645. }"
  11646. ><span
  11647. class="updateChairBtn"
  11648. @click="
  11649. updateGroupChair(
  11650. groupStudent[toolindex][gindex] &&
  11651. groupStudent[toolindex][gindex][2]
  11652. )
  11653. "
  11654. >修改</span
  11655. ></span
  11656. ><span>{{
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][2]
  11659. ? groupStudent[toolindex][gindex] &&
  11660. groupStudent[toolindex][gindex][2].name
  11661. : "空位置"
  11662. }}</span>
  11663. </div>
  11664. <div v-if="groupJson.number > 6">
  11665. <span
  11666. :class="{
  11667. isChair:
  11668. groupStudent[toolindex][gindex] &&
  11669. groupStudent[toolindex][gindex][6],
  11670. updateChair:
  11671. courseDetail.userid == userid &&
  11672. groupStudent[toolindex][gindex] &&
  11673. groupStudent[toolindex][gindex][6] &&
  11674. groupJson.islock == 2,
  11675. }"
  11676. ><span
  11677. class="updateChairBtn"
  11678. @click="
  11679. updateGroupChair(
  11680. groupStudent[toolindex][gindex] &&
  11681. groupStudent[toolindex][gindex][6]
  11682. )
  11683. "
  11684. >修改</span
  11685. ></span
  11686. ><span>{{
  11687. groupStudent[toolindex][gindex] &&
  11688. groupStudent[toolindex][gindex][6]
  11689. ? groupStudent[toolindex][gindex] &&
  11690. groupStudent[toolindex][gindex][6].name
  11691. : "空位置"
  11692. }}</span>
  11693. </div>
  11694. </div>
  11695. <div class="g_d_group_table">
  11696. <div>
  11697. {{ g.name }}
  11698. </div>
  11699. <div>
  11700. <div
  11701. v-if="
  11702. courseDetail.userid == userid && groupJson.islock == 2
  11703. "
  11704. @click="deleteGroupChair(gindex)"
  11705. >
  11706. 移除组员
  11707. </div>
  11708. <div
  11709. @click="selectGroup(gindex)"
  11710. v-else-if="
  11711. groupStudentUid[toolindex] &&
  11712. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11713. "
  11714. >
  11715. 加入分组
  11716. </div>
  11717. <div
  11718. @click="
  11719. exitGroup(
  11720. groupStudent[toolindex][gindex] &&
  11721. groupStudent[toolindex][gindex][
  11722. groupStudentUid[toolindex][gindex].indexOf(userid)
  11723. ].id
  11724. )
  11725. "
  11726. v-else-if="
  11727. groupStudentUid[toolindex] &&
  11728. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11729. "
  11730. >
  11731. 退出分组
  11732. </div>
  11733. </div>
  11734. </div>
  11735. <div class="g_d_group_chair2">
  11736. <div v-if="groupJson.number > 3">
  11737. <span
  11738. :class="{
  11739. isChair:
  11740. groupStudent[toolindex][gindex] &&
  11741. groupStudent[toolindex][gindex][3],
  11742. updateChair:
  11743. courseDetail.userid == userid &&
  11744. groupStudent[toolindex][gindex] &&
  11745. groupStudent[toolindex][gindex][3] &&
  11746. groupJson.islock == 2,
  11747. }"
  11748. ><span
  11749. class="updateChairBtn"
  11750. @click="
  11751. updateGroupChair(
  11752. groupStudent[toolindex][gindex] &&
  11753. groupStudent[toolindex][gindex][3]
  11754. )
  11755. "
  11756. >修改</span
  11757. ></span
  11758. ><span>{{
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][3]
  11761. ? groupStudent[toolindex][gindex] &&
  11762. groupStudent[toolindex][gindex][3].name
  11763. : "空位置"
  11764. }}</span>
  11765. </div>
  11766. <div v-if="groupJson.number > 7">
  11767. <span
  11768. :class="{
  11769. isChair:
  11770. groupStudent[toolindex][gindex] &&
  11771. groupStudent[toolindex][gindex][7],
  11772. updateChair:
  11773. courseDetail.userid == userid &&
  11774. groupStudent[toolindex][gindex] &&
  11775. groupStudent[toolindex][gindex][7] &&
  11776. groupJson.islock == 2,
  11777. }"
  11778. ><span
  11779. class="updateChairBtn"
  11780. @click="
  11781. updateGroupChair(
  11782. groupStudent[toolindex][gindex] &&
  11783. groupStudent[toolindex][gindex][7]
  11784. )
  11785. "
  11786. >修改</span
  11787. ></span
  11788. ><span>{{
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][7]
  11791. ? groupStudent[toolindex][gindex] &&
  11792. groupStudent[toolindex][gindex][7].name
  11793. : "空位置"
  11794. }}</span>
  11795. </div>
  11796. </div>
  11797. </div>
  11798. <div class="g_d_group_chair">
  11799. <div v-if="groupJson.number > 1">
  11800. <span
  11801. :class="{
  11802. isChair:
  11803. groupStudent[toolindex][gindex] &&
  11804. groupStudent[toolindex][gindex][1],
  11805. updateChair:
  11806. courseDetail.userid == userid &&
  11807. groupStudent[toolindex][gindex] &&
  11808. groupStudent[toolindex][gindex][1] &&
  11809. groupJson.islock == 2,
  11810. }"
  11811. ><span
  11812. class="updateChairBtn"
  11813. @click="
  11814. updateGroupChair(
  11815. groupStudent[toolindex][gindex] &&
  11816. groupStudent[toolindex][gindex][1]
  11817. )
  11818. "
  11819. >修改</span
  11820. ></span
  11821. ><span>{{
  11822. groupStudent[toolindex][gindex] &&
  11823. groupStudent[toolindex][gindex][1]
  11824. ? groupStudent[toolindex][gindex] &&
  11825. groupStudent[toolindex][gindex][1].name
  11826. : "空位置"
  11827. }}</span>
  11828. </div>
  11829. <div v-if="groupJson.number > 5">
  11830. <span
  11831. :class="{
  11832. isChair:
  11833. groupStudent[toolindex][gindex] &&
  11834. groupStudent[toolindex][gindex][5],
  11835. updateChair:
  11836. courseDetail.userid == userid &&
  11837. groupStudent[toolindex][gindex] &&
  11838. groupStudent[toolindex][gindex][5] &&
  11839. groupJson.islock == 2,
  11840. }"
  11841. ><span
  11842. class="updateChairBtn"
  11843. @click="
  11844. updateGroupChair(
  11845. groupStudent[toolindex][gindex] &&
  11846. groupStudent[toolindex][gindex][5]
  11847. )
  11848. "
  11849. >修改</span
  11850. ></span
  11851. ><span>{{
  11852. groupStudent[toolindex][gindex] &&
  11853. groupStudent[toolindex][gindex][5]
  11854. ? groupStudent[toolindex][gindex] &&
  11855. groupStudent[toolindex][gindex][5].name
  11856. : "空位置"
  11857. }}</span>
  11858. </div>
  11859. <div v-if="groupJson.number > 9">
  11860. <span
  11861. :class="{
  11862. isChair:
  11863. groupStudent[toolindex][gindex] &&
  11864. groupStudent[toolindex][gindex][9],
  11865. updateChair:
  11866. courseDetail.userid == userid &&
  11867. groupStudent[toolindex][gindex] &&
  11868. groupStudent[toolindex][gindex][9] &&
  11869. groupJson.islock == 2,
  11870. }"
  11871. ><span
  11872. class="updateChairBtn"
  11873. @click="
  11874. updateGroupChair(
  11875. groupStudent[toolindex][gindex] &&
  11876. groupStudent[toolindex][gindex][9]
  11877. )
  11878. "
  11879. >修改</span
  11880. ></span
  11881. ><span>{{
  11882. groupStudent[toolindex][gindex] &&
  11883. groupStudent[toolindex][gindex][9]
  11884. ? groupStudent[toolindex][gindex] &&
  11885. groupStudent[toolindex][gindex][9].name
  11886. : "空位置"
  11887. }}</span>
  11888. </div>
  11889. </div>
  11890. </div>
  11891. </div>
  11892. </div>
  11893. </div>
  11894. <span slot="footer" class="dialog-footer">
  11895. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11896. </span>
  11897. </el-dialog>
  11898. <el-dialog
  11899. title="分组设置"
  11900. :visible.sync="dialogVisibleGroup2"
  11901. :append-to-body="true"
  11902. width="650px"
  11903. :before-close="handleClose"
  11904. class="dialog_diy"
  11905. >
  11906. <div class="groupBox">
  11907. <div v-if="groupJson2.group" class="groupContent">
  11908. <div class="groupTitle">请设置小组数量及名称</div>
  11909. <div
  11910. v-for="(item, index) in groupJson2.group"
  11911. :key="index"
  11912. class="groupName"
  11913. >
  11914. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11915. <el-input
  11916. v-model="item.name"
  11917. placeholder="请输入名称..."
  11918. style="width: 250px"
  11919. ></el-input>
  11920. <!-- <div class="groupBtn">
  11921. <el-button type="primary" size="small" @click="addGroup(index)">
  11922. 添加</el-button>
  11923. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11924. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11925. </div> -->
  11926. </div>
  11927. </div>
  11928. <div class="groupContent">
  11929. <div class="groupTitle">请设置每组人数</div>
  11930. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11931. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11932. <el-input
  11933. v-model="groupJson2.number"
  11934. style="width: 150px"
  11935. placeholder="请输入2-10的数字"
  11936. @change="numberPan"
  11937. ></el-input>
  11938. </div>
  11939. </div>
  11940. <span slot="footer" class="dialog-footer">
  11941. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11942. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11943. </span>
  11944. </el-dialog>
  11945. <el-dialog
  11946. title="作业提交"
  11947. :visible.sync="dialogVisibleGroupWork"
  11948. :append-to-body="true"
  11949. width="500px"
  11950. :before-close="handleClose"
  11951. class="dialog_change"
  11952. >
  11953. <div class="marginT">
  11954. <div>上传文件</div>
  11955. <div
  11956. class="chapter_add"
  11957. @click="addImg($event)"
  11958. v-if="studyJuri[0].cover.length == 0"
  11959. >
  11960. <div class="up_photo">
  11961. <img src="../assets/icon/uploadImg.png" alt />
  11962. </div>
  11963. <!-- <input
  11964. type="file"
  11965. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11966. style="display: none"
  11967. @change="beforeUpload1($event, 1)"
  11968. /> -->
  11969. <input
  11970. type="file"
  11971. accept="*"
  11972. style="display: none"
  11973. @change="beforeUpload1($event, 1)"
  11974. />
  11975. </div>
  11976. <!-- capture="camera" -->
  11977. <div
  11978. class="chapter_add"
  11979. style="
  11980. display: flex;
  11981. width: 100%;
  11982. flex-direction: row;
  11983. flex-wrap: wrap;
  11984. justify-content: flex-start;
  11985. padding: 15px 0;
  11986. "
  11987. v-if="studyJuri[0].cover.length > 0"
  11988. >
  11989. <div class="upCover">
  11990. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11991. <img :src="word" alt v-else-if="fileType == 1" />
  11992. <img :src="video" alt v-else-if="fileType == 2" />
  11993. <img :src="word2" alt v-else-if="fileType == 3" />
  11994. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11995. <div class="deleteWord" @click="clean(1)">
  11996. <img src="../assets/icon/deleteWorks.png" alt />
  11997. </div>
  11998. </div>
  11999. </div>
  12000. </div>
  12001. <div
  12002. class="upload_send"
  12003. @click="addCourseWorks2(taskCount)"
  12004. v-if="!proVisible"
  12005. >
  12006. 提交
  12007. </div>
  12008. </el-dialog>
  12009. <el-dialog
  12010. title="修改分组"
  12011. :visible.sync="dialogVisibleUpdateGroup"
  12012. :append-to-body="true"
  12013. width="350px"
  12014. :before-close="handleClose"
  12015. class="dialog_diy"
  12016. >
  12017. <div>
  12018. <h2>
  12019. {{ this.updateGroupUser.name }}
  12020. </h2>
  12021. <div style="color: rgb(171 171 171); margin-top: 10px">
  12022. 请选择要进入的分组
  12023. </div>
  12024. <el-radio-group v-model="checkChair">
  12025. <el-radio
  12026. style="display: block; margin-top: 20px"
  12027. v-for="(item, index) in updateGroupArray"
  12028. :label="item.label"
  12029. :key="index"
  12030. >{{ item.name }}</el-radio
  12031. >
  12032. </el-radio-group>
  12033. </div>
  12034. <span slot="footer" class="dialog-footer">
  12035. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12036. <el-button type="primary" @click="updateChair">确定</el-button>
  12037. </span>
  12038. </el-dialog>
  12039. <el-dialog
  12040. title="移除组员"
  12041. :visible.sync="dialogVisibleDeleteGroup"
  12042. :append-to-body="true"
  12043. width="350px"
  12044. :before-close="handleClose"
  12045. class="dialog_diy"
  12046. >
  12047. <div>
  12048. <h2>
  12049. {{ this.deleteGroupArray.name }}
  12050. </h2>
  12051. <div style="color: rgb(171 171 171); margin-top: 10px">
  12052. 请选择要删除的组员
  12053. </div>
  12054. <el-checkbox-group v-model="checkDeleteGroup">
  12055. <el-checkbox
  12056. style="display: flex; margin-top: 20px"
  12057. v-for="(item, index) in deleteGroupUser"
  12058. :label="item.userid"
  12059. :key="index"
  12060. >{{ item.name }}</el-checkbox
  12061. >
  12062. </el-checkbox-group>
  12063. </div>
  12064. <span slot="footer" class="dialog-footer">
  12065. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12066. <el-button type="primary" @click="deleteChair">确定</el-button>
  12067. </span>
  12068. </el-dialog>
  12069. <el-dialog
  12070. title="批量上传"
  12071. :visible.sync="dialogVisiblePl"
  12072. :append-to-body="true"
  12073. width="700px"
  12074. :before-close="handleClose"
  12075. class="dialog_change"
  12076. >
  12077. <div class="marginT">
  12078. <div class="plworkBox">
  12079. <div
  12080. class="chapter_add"
  12081. style="
  12082. display: flex;
  12083. width: 150px;
  12084. flex-direction: row;
  12085. flex-wrap: wrap;
  12086. justify-content: flex-start;
  12087. margin: 0 10px 10px 0;
  12088. "
  12089. v-for="(item, index) in plworkFile"
  12090. :key="index"
  12091. >
  12092. <div class="upCover2">
  12093. <img
  12094. :src="item.url"
  12095. alt
  12096. v-if="item.fileType == 1"
  12097. @click="previewImg(item.url)"
  12098. />
  12099. <img :src="word" alt v-else-if="item.fileType == 4" />
  12100. <img :src="video" alt v-else />
  12101. <!-- <span class="picName">{{ item.name }}</span> -->
  12102. <!-- <el-input
  12103. v-model="item.username"
  12104. placeholder="请输入学生名字"
  12105. style="margin-top: 10px"
  12106. ></el-input> -->
  12107. <div
  12108. class="pl_select_box"
  12109. @click="
  12110. getUpdateMore(true, checkUpload(), item.username, index)
  12111. "
  12112. >
  12113. {{ getSName(item.username) }}
  12114. </div>
  12115. <!-- <el-select
  12116. style="margin-top: 10px"
  12117. v-model="item.username"
  12118. filterable
  12119. allow-create
  12120. placeholder="请选择学生"
  12121. >
  12122. <el-option
  12123. v-for="item1 in checkUpload()"
  12124. :key="item1.userid"
  12125. :label="item1.name ? item1.name : item1.username"
  12126. :value="item1.userid"
  12127. >
  12128. </el-option>
  12129. </el-select> -->
  12130. <div class="deleteWord" @click="clean2(index)">
  12131. <img src="../assets/icon/deleteWorks.png" alt />
  12132. </div>
  12133. </div>
  12134. </div>
  12135. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12136. <div class="up_photo2">
  12137. <img src="../assets/icon/plwork.png" alt />
  12138. <span>点击上传文件</span>
  12139. </div>
  12140. <input
  12141. type="file"
  12142. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12143. multiple="multiple"
  12144. style="display: none"
  12145. @change="beforeUpload3($event, 6)"
  12146. />
  12147. </div>
  12148. </div>
  12149. </div>
  12150. <!-- capture="camera" -->
  12151. <div
  12152. class="upload_send"
  12153. @click="addCourseWorksPl(taskCount)"
  12154. v-if="!proVisible2"
  12155. >
  12156. 提交
  12157. </div>
  12158. </el-dialog>
  12159. <el-dialog
  12160. title="修改名称"
  12161. :visible.sync="dialogVisibleSname"
  12162. width="500px"
  12163. :before-close="handleClose"
  12164. class="dialog_diy"
  12165. center
  12166. >
  12167. <div
  12168. style="
  12169. text-align: center;
  12170. display: flex;
  12171. align-items: center;
  12172. justify-content: center;
  12173. "
  12174. >
  12175. <span class="tian1">名称</span>
  12176. <div
  12177. class="pl_select_box"
  12178. style="margin-left: 10px; width: 200px"
  12179. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12180. >
  12181. {{ getSName(worksSName) }}
  12182. </div>
  12183. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12184. placeholder="请选择学生">
  12185. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12186. :value="item.userid">
  12187. </el-option>
  12188. </el-select> -->
  12189. <!-- <el-input
  12190. v-model="worksSName"
  12191. style="width: 250px; margin: 15px 0px"
  12192. ></el-input> -->
  12193. </div>
  12194. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12195. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12196. <el-button type="primary" @click="updateName">确 定</el-button>
  12197. </span>
  12198. </el-dialog>
  12199. <el-dialog
  12200. title="英语写作"
  12201. :visible.sync="engDialogVisible"
  12202. :append-to-body="true"
  12203. width="800px"
  12204. :before-close="handleClose"
  12205. class="dialog_diy"
  12206. >
  12207. <onlineWrite
  12208. v-if="engDialogVisible"
  12209. :englishList="englishList"
  12210. :myAnswerList1="myAnswerList1"
  12211. :userid="userid"
  12212. ref="engJson"
  12213. ></onlineWrite>
  12214. <span slot="footer" class="dialog-footer">
  12215. <el-button @click="engDialogVisible = false">取 消</el-button>
  12216. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12217. </span>
  12218. </el-dialog>
  12219. <el-dialog
  12220. title="英语写作"
  12221. :visible.sync="engUpdateDialogVisible"
  12222. :append-to-body="true"
  12223. width="800px"
  12224. :before-close="handleClose"
  12225. class="dialog_diy fullStyle"
  12226. >
  12227. <div class="engUpBox">
  12228. <div class="engUpTop">
  12229. <div class="engTitle">
  12230. <div>作文题目:</div>
  12231. <div>{{ englishList1.engTitle }}</div>
  12232. </div>
  12233. <div class="engText">
  12234. <div>作文内容:</div>
  12235. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12236. </div>
  12237. </div>
  12238. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12239. <div class="oldBox">
  12240. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12241. <div class="oldText">
  12242. <div class="detailBox">
  12243. <div class="oldDetail">
  12244. <div>标题:</div>
  12245. <div>{{ oldEnglishJson.engTitle }} </div>
  12246. </div>
  12247. <div class="oldDetail1">
  12248. <div>正文:</div>
  12249. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12250. </div>
  12251. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12252. <div>图片:</div>
  12253. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12254. </div>
  12255. </div>
  12256. </div>
  12257. </div>
  12258. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12259. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12260. <div class="oldText">
  12261. <div class="detailBox" style="position: relative;">
  12262. <div class="oldDetail">
  12263. <div>标题:</div>
  12264. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12265. <div v-else v-html="newEnglishList.engTitle"></div>
  12266. </div>
  12267. <div class="oldDetail">
  12268. <div>正文:</div>
  12269. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12270. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12271. </div>
  12272. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12273. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12274. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12275. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12276. </div>
  12277. </div>
  12278. </div>
  12279. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12280. <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">
  12281. <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>
  12282. <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>
  12283. </div>
  12284. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12285. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12286. <div class="detailBox" style="position: relative;">
  12287. <div class="oldDetail">
  12288. <div>标题:</div>
  12289. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12290. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12291. </div>
  12292. <div class="oldDetail">
  12293. <div>正文:</div>
  12294. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12295. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12296. </div>
  12297. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12298. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12299. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12300. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12301. </div>
  12302. </div>
  12303. <div class="oldText" v-else-if="newEngIndex == -1">
  12304. <div class="detailBox" style="position: relative;">
  12305. <div class="oldDetail">
  12306. <div>标题:</div>
  12307. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12308. <div v-else v-html="newEnglishList.engTitle"></div>
  12309. </div>
  12310. <div class="oldDetail">
  12311. <div>正文:</div>
  12312. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12313. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12314. </div>
  12315. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12316. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12317. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12318. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12319. </div>
  12320. </div>
  12321. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12322. <div class="detailBox" style="position: relative;">
  12323. <div class="oldDetail">
  12324. <div>标题:</div>
  12325. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12326. <div v-else>
  12327. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  12328. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12329. </div>
  12330. </div>
  12331. <div class="oldDetail">
  12332. <div>正文:</div>
  12333. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12334. <div v-else>
  12335. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12336. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12337. </div>
  12338. </div>
  12339. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12340. <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>
  12341. <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>
  12342. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12343. </div>
  12344. </div>
  12345. </div>
  12346. </div>
  12347. </div>
  12348. <span slot="footer" class="dialog-footer">
  12349. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12350. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12351. </span>
  12352. </el-dialog>
  12353. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12354. <interVideo
  12355. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12356. :videoJson="videoJson"
  12357. :userid="userid"
  12358. :id="id"
  12359. :courseType="courseType"
  12360. :taskCount="taskCount"
  12361. :toolindex="toolindex"
  12362. :videoType="videoType"
  12363. ></interVideo>
  12364. <UpdateMore
  12365. :dialogVisibleMember.sync="dialogVisibleMember"
  12366. :cList="uploadStudentJuri"
  12367. :userid="userid"
  12368. :searchTN="worksSName2"
  12369. @setPlname="setPlname"
  12370. ></UpdateMore>
  12371. <!-- <wordCloud
  12372. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12373. :data="wordCloudData"
  12374. ></wordCloud> -->
  12375. <el-dialog
  12376. title="词云"
  12377. :visible.sync="dialogVisibleWordCloud"
  12378. width="30%"
  12379. class="dialog_diy"
  12380. :before-close="handleClose">
  12381. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12382. </el-dialog>
  12383. <el-dialog
  12384. title="挑人"
  12385. :visible.sync="dialogVisiblePickPeople"
  12386. width="650px"
  12387. :before-close="handleClose"
  12388. class="dialog_diy"
  12389. center
  12390. >
  12391. <div class="pick_box">
  12392. <div
  12393. class="noWorksName"
  12394. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12395. v-for="(item, index) in uploadStudentJuri"
  12396. :key="index"
  12397. @click="pickStudent(item)"
  12398. >
  12399. {{ item.name }}
  12400. </div>
  12401. </div>
  12402. </el-dialog>
  12403. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12404. :englishVoiceJson='englishVoiceJson'
  12405. :userid="userid"
  12406. :id="id"
  12407. :courseType="courseType"
  12408. :taskCount="taskCount"
  12409. :toolindex="toolindex"
  12410. @selectSWorks="selectSWorks"
  12411. @selectStudent="selectStudent"
  12412. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12413. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12414. :userid="userid"
  12415. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12416. :commentDetail="commentDetail"
  12417. :courseDetail="courseDetail"
  12418. :wScore="wScore"
  12419. :scoreDetail="scoreDetail"
  12420. @selectSWorks="selectSWorks"
  12421. @selectStudent="selectStudent"></checkEnglishVoice>
  12422. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12423. <choseWorksDetailDialog
  12424. ref="choseWorksDetailDialogRef"
  12425. :worksStudentData="worksStudent"
  12426. :noWorksSData="noWorksS"
  12427. :chapInfoListData="chapInfoList"
  12428. :courseType="courseType"
  12429. :taskCount="taskCount"
  12430. :tType="tType"
  12431. :sIsOpen="sIsOpen"
  12432. :courseDetail="courseDetail"
  12433. :groupStudent2="groupStudent"
  12434. :groupStudentUid2="groupStudentUid"
  12435. :oid="oid"
  12436. :org="org"
  12437. @getCourseDetail="getCourseDetail"
  12438. @selectSLook="selectSLook"
  12439. @selectSWorks="selectSWorks"
  12440. @selectStudent="selectStudent"
  12441. @deleteWorks="deleteWorks"
  12442. @openTools="openTools"
  12443. @openWord="openWord"
  12444. @openScore="openScore"
  12445. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12446. />
  12447. <el-dialog
  12448. :visible.sync="confirmOpenDig"
  12449. width="500px"
  12450. :modal="false"
  12451. class="confirmOpenDigCss dialog_diyCopy"
  12452. :before-close="handleClose">
  12453. <div style="display: flex;align-items: center;">
  12454. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  12455. <span>“{{ courseDetail.title }}”开课啦</span>
  12456. </div>
  12457. <div style="margin: 20px 0 35px;">
  12458. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12459. <div>要认真听讲哦~</div>
  12460. </div>
  12461. <div style="text-align: center;">
  12462. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12463. </div>
  12464. </el-dialog>
  12465. <appStoreC ref="appStoreC"
  12466. :sStudent="sStudent"
  12467. :courseType="courseType"
  12468. :taskCount="taskCount"
  12469. :toolindex="toolindex"
  12470. @selectSWorks="selectSWorks"
  12471. @selectStudent="selectStudent"
  12472. ></appStoreC>
  12473. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12474. </div>
  12475. </template>
  12476. <script>
  12477. import "../common/aws-sdk-2.235.1.min.js";
  12478. // import pdf from "./components/pdf3";
  12479. import pdf from "./components/vpdf";
  12480. import AskStatic from "./components/askStatic";
  12481. import AskStatic2 from "./components/askStatic2";
  12482. import AnswerData2 from "./components/answerData2";
  12483. import AnswerData from "./components/answerData";
  12484. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  12485. import EditorBar from "./tools/wangEnduit.vue";
  12486. import Table from "./tools/table.vue";
  12487. import Time from "./tools/time.vue";
  12488. import Mind from "./tools/jsmind.vue";
  12489. import Sunburst from "./tools/sunburst";
  12490. import SeeBoard from "./tools/seeBoard";
  12491. import * as imageConversion from "image-conversion";
  12492. import Audio from "./components/audio.vue";
  12493. import ImgDraw from "./tools/imgDraw/imgDraw";
  12494. import { Empty } from "element-ui";
  12495. import RecordRTC from "recordrtc";
  12496. import interVideo from "./interVideo/index.vue";
  12497. import UpdateMore from "./updateMore/updateMore.vue";
  12498. import wordCloud from "./wordCloud/index.vue";
  12499. import axios from "axios";
  12500. import JSZip from "jszip";
  12501. import FileSaver from "file-saver";
  12502. import onlineWrite from "./components/onlineWrite";
  12503. import englishEva from "./components/englishEva";
  12504. import * as Diff from 'diff'
  12505. import EnglishVoice from './EnglishVoice2/index.vue'
  12506. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12507. import correctText from './components/correctText.vue'
  12508. import scoreItem from './scoreList/scoreItem.vue'
  12509. import scoreZong from './scoreZong/index.vue'
  12510. import classRoomHelper from './classRoomHelper/index.vue'
  12511. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  12512. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12513. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12514. import { v4 as uuidv4 } from "uuid";
  12515. var OpenCC = require("opencc-js");
  12516. import choseWordCloud from './components/choseWordCloud.vue'
  12517. import appStoreC from "./components/appStoreC.vue";
  12518. import cocoFlowDia from "./components/cocoFlowDia.vue";
  12519. import { myMixin } from "@/mixins/mixin.js"
  12520. import { tools as toolsList } from "@/common/tools2.js";
  12521. import katex from 'katex'
  12522. import 'katex/dist/katex.min.css'
  12523. let converter = OpenCC.Converter({
  12524. from: "hk",
  12525. to: "cn"
  12526. });
  12527. const getFile = (url) => {
  12528. return new Promise((resolve, reject) => {
  12529. var credentials = {
  12530. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12531. secretAccessKey: "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",
  12532. }; //秘钥形式的登录上传
  12533. window.AWS.config.update(credentials);
  12534. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12535. let url2 = url;
  12536. let _url2 = "";
  12537. if (
  12538. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12539. ) {
  12540. _url2 = url2.split(
  12541. "https://view.officeapps.live.com/op/view.aspx?src="
  12542. )[1];
  12543. } else {
  12544. _url2 = url2;
  12545. }
  12546. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12547. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12548. var params = {
  12549. Bucket: "ccrb",
  12550. Key: name
  12551. };
  12552. s3.getObject(params, function (err, data) {
  12553. if (err) {
  12554. console.log(err, err.stack)
  12555. resolve({ data: 1 });
  12556. }else {
  12557. resolve({ data: data.Body });
  12558. console.log(data);
  12559. } // sxuccessful response
  12560. });
  12561. // axios({
  12562. // method: "get",
  12563. // url,
  12564. // responseType: "blob",
  12565. // })
  12566. // .then((data) => {
  12567. // resolve({ data: data.data });
  12568. // })
  12569. // .catch((error) => {
  12570. // resolve({ data: 1 });
  12571. // // reject(error.toString());
  12572. // });
  12573. });
  12574. };
  12575. export default {
  12576. mixins: [ myMixin ],
  12577. components: {
  12578. choseWordCloud,
  12579. EditorBar,
  12580. Time,
  12581. pdf,
  12582. AskStatic,
  12583. AskStatic2,
  12584. Mind,
  12585. Sunburst,
  12586. SeeBoard,
  12587. AnswerData2,
  12588. AnswerData,
  12589. sortToolWorkShow,
  12590. Audio,
  12591. ImgDraw,
  12592. Table,
  12593. interVideo,
  12594. UpdateMore,
  12595. wordCloud,
  12596. onlineWrite,
  12597. englishEva,
  12598. EnglishVoice,
  12599. checkEnglishVoice,
  12600. correctText,
  12601. scoreItem,
  12602. classRoomHelper,
  12603. scoreZong,
  12604. statisticalAnalysis,
  12605. choseWorksDetailDialog,
  12606. appStoreC,
  12607. cocoFlowDia,
  12608. studentClassRoomHelper
  12609. },
  12610. data() {
  12611. return {
  12612. homeWorkLoading:false,
  12613. wordCloudKey: 0,
  12614. bg: null,
  12615. drawShow: false,
  12616. dialogVisible: false,
  12617. dialogVisiblePl: false,
  12618. commentDialogVisible: false,
  12619. dialogVisibleMember: false,
  12620. dialogVisibleWordCloud: false,
  12621. videoVisible: false,
  12622. isStar: false,
  12623. studentEvalDialogVisible: false,
  12624. studentEvalDialogVisibleTeacher: false,
  12625. dialogVisibleSelect: false,
  12626. dialogVisibleSelectTeacher: false,
  12627. dialogVisibleScore: false,
  12628. dialogVisibleENScore: false,
  12629. dialogVisibleSentence: false,
  12630. dialogVisibleSentenceTeacher: false,
  12631. dialogVisibleSentence1: false,
  12632. dialogVisibleWorks: false,
  12633. dialogVisibleTable: false,
  12634. dialogVisibleTableTeacher: false,
  12635. dialogVisibleWord: false,
  12636. dialogVisibleWordTeacher: false,
  12637. dialogVisibleTable2: false,
  12638. dialogVisibleTable3: false,
  12639. dialogVisibleGroupWork: false,
  12640. dialogVisibleUpdateGroup: false,
  12641. dialogVisibleDeleteGroup: false,
  12642. dialogVisibleSname: false,
  12643. dialogVisibleVideo: false,
  12644. dialogVisiblePickPeople: false,
  12645. engDialogVisible: false,
  12646. engUpdateDialogVisible: false,
  12647. engEvaDialogVisible: false,
  12648. evaEngJson: {
  12649. teacherJson: {},
  12650. studentJson: {},
  12651. message: {},
  12652. },
  12653. isNoUserid:false,
  12654. engListLength:0,
  12655. engWid:"",
  12656. newEnglishList:{
  12657. engTitle:"",
  12658. engText:"",
  12659. },
  12660. newEnglishList1:[],
  12661. oldEnglishJson:{},
  12662. oldEnglishJson1:{},
  12663. englishList1:{},
  12664. englishList:{},
  12665. myAnswerList1:{},
  12666. topHeight:0,
  12667. newEngIndex:-1,
  12668. englishToolIndex:0,
  12669. worksSName: "",
  12670. classJuri: [],
  12671. uploadStudentJuri: [],
  12672. uploadCid: "",
  12673. snameWid: "",
  12674. sStudent: {},
  12675. sTool: "",
  12676. bzText: "",
  12677. commentDetail: [],
  12678. selectAnswer: [],
  12679. videoDetail: {},
  12680. selectJson: {},
  12681. eScore: { eBzText: "", eStar: [] },
  12682. id: this.$route.query.courseId,
  12683. userid: this.$route.query.userid,
  12684. classId: this.$route.query.cid,
  12685. // courseTypeLine: this.$route.query.type,
  12686. oid: this.$route.query.oid,
  12687. org: this.$route.query.org,
  12688. tType: this.$route.query.tType,
  12689. courseType: this.$route.query.type,
  12690. screenType: this.$route.query.screenType,
  12691. tcid2: this.$route.query.tcid,
  12692. tcid: "",
  12693. pptImgUrl: "",
  12694. pptImgUrl1: "",
  12695. commentText: "",
  12696. full: false,
  12697. sIsOpen: false,
  12698. IsLookOpen: false,
  12699. IsFollow: false,
  12700. pzDialog: false,
  12701. contentDialog: false,
  12702. mlDialog: false,
  12703. type: 1,
  12704. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12705. sentenceList1: [],
  12706. tableJson: [],
  12707. tableJsonO: [],
  12708. wordJson: [],
  12709. wordJsonO: [],
  12710. vedio: [],
  12711. text: [],
  12712. textList: [],
  12713. line: [],
  12714. lineList: [],
  12715. chapTools: [],
  12716. chapToolList: [],
  12717. file: [],
  12718. fileC: [],
  12719. vedioTime: [],
  12720. upToolImg: "",
  12721. preTime: 0,
  12722. rateList: {
  12723. ca: 0,
  12724. },
  12725. rateParams: [],
  12726. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12727. studyJuri: [
  12728. {
  12729. content: "",
  12730. cover: [],
  12731. upVedio: [],
  12732. upFile: [],
  12733. },
  12734. ],
  12735. isClose: 0,
  12736. plworkFile: [],
  12737. mr: require("../assets/vedioPic.png"),
  12738. word: require("../assets/icon/isWord.png"),
  12739. word2: require("../assets/icon/word2.png"),
  12740. video: require("../assets/icon/isVideo.png"),
  12741. noLikes: require("../assets/icon/comment/noLikes.png"),
  12742. likes: require("../assets/icon/comment/likes.png"),
  12743. scoreImg: require("../assets/score.png"),
  12744. courseDetail: {},
  12745. reply: "",
  12746. isSelect: false,
  12747. chapInfo: [],
  12748. chapInfoList: [],
  12749. taskCount: 0,
  12750. imgList: [],
  12751. noImgList: [],
  12752. pzList: [],
  12753. timeWorkList: [],
  12754. PlTextList: [
  12755. "Excellent!",
  12756. "nice!",
  12757. "很有创意!",
  12758. "还不错哦~",
  12759. "继续努力哦~",
  12760. ],
  12761. isClickNav: "",
  12762. navId: "",
  12763. playerOptions: {
  12764. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12765. autoplay: false, //如果true,浏览器准备好时开始回放。
  12766. muted: false, // 默认情况下将会消除任何音频。
  12767. loop: false, // 导致视频一结束就重新开始。
  12768. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12769. language: "zh-CN",
  12770. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12771. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12772. sources: [
  12773. {
  12774. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12775. src: "", //url地址require("../../assets/media/aaa.mp4")
  12776. },
  12777. ],
  12778. // poster: require("../../assets/tu31.png"), //你的封面地址
  12779. // poster: dataRes.imgUrl, //你的封面地址
  12780. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12781. controlBar: {
  12782. timeDivider: true, //当前时间和持续时间的分隔符
  12783. durationDisplay: true, //显示持续时间
  12784. remainingTimeDisplay: false, //是否显示剩余时间功能
  12785. fullscreenToggle: true, //全屏按钮
  12786. },
  12787. },
  12788. playerOptions1: {
  12789. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12790. autoplay: false, //如果true,浏览器准备好时开始回放。
  12791. muted: false, // 默认情况下将会消除任何音频。
  12792. loop: false, // 导致视频一结束就重新开始。
  12793. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12794. language: "zh-CN",
  12795. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12796. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12797. sources: [
  12798. {
  12799. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12800. src: "", //url地址require("../../assets/media/aaa.mp4")
  12801. },
  12802. ],
  12803. // poster: require("../../assets/tu31.png"), //你的封面地址
  12804. // poster: dataRes.imgUrl, //你的封面地址
  12805. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12806. controlBar: {
  12807. timeDivider: true, //当前时间和持续时间的分隔符
  12808. durationDisplay: true, //显示持续时间
  12809. remainingTimeDisplay: false, //是否显示剩余时间功能
  12810. fullscreenToggle: true, //全屏按钮
  12811. },
  12812. },
  12813. playerO: {},
  12814. noneBtnImg: false,
  12815. proVisible: false,
  12816. proVisible2: false,
  12817. progress: 0,
  12818. isFinishSize: 0,
  12819. isAllSize: 0,
  12820. questionAnswer: "",
  12821. answerQ: "", //问答标题
  12822. rateJson: [],
  12823. wbCount: 0,
  12824. wordCount: 0,
  12825. mindCount: 0,
  12826. askCount: 0,
  12827. noteCount: 0,
  12828. mindNetWorkCount: 0,
  12829. libraryCount: 0,
  12830. workCount: 0,
  12831. timeCount: 0,
  12832. answerCount: 0,
  12833. trainCount: 0,
  12834. evalCount: 0,
  12835. dialogImageUrl: "",
  12836. pictureDialog: false,
  12837. toolTypeList: [],
  12838. dialogVisible1: false,
  12839. dialogVisible2: false,
  12840. dialogVisible3: false,
  12841. dialogVisible6: false,
  12842. dialogVisible4: false,
  12843. isNoHomeWork: false,
  12844. dialogVisible5: false,
  12845. dialogVisible5Teacher: false,
  12846. dialogVisibleChoice: false,
  12847. dialogVisibleChoiceTeacher: false,
  12848. answerDialogVisible: false,
  12849. answerDialogVisibleTeacher: false,
  12850. juriVisible: false,
  12851. timeDialogVisible: false,
  12852. replyDialogVisible: false,
  12853. toolDialogVisible: false,
  12854. replyIndex: 0,
  12855. replyPid: "",
  12856. radio: [],
  12857. isAsk: false,
  12858. askJson: {
  12859. askCount: 1,
  12860. askTitle: "",
  12861. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12862. },
  12863. testJson: {},
  12864. videoType:0,
  12865. checkJson: [],
  12866. askList: [],
  12867. answerList: [],
  12868. navList: [],
  12869. addPzDialog: false,
  12870. pzConText: "",
  12871. worksStudent: [],
  12872. isCloseList: [],
  12873. workStudent: [],
  12874. groupStudent: [],
  12875. groupStudentUid: [],
  12876. noWorksS: [],
  12877. isWorksS: [],
  12878. noWorksStudent: [],
  12879. toolindex: 0,
  12880. toolDetailIndex: null,
  12881. groupIndex: 0,
  12882. workTypeB: false,
  12883. workTypeC: false,
  12884. isAnswer: false,
  12885. isHovered: false,
  12886. isHovered1: false,
  12887. isHovered2: false,
  12888. commentTagShow:0,
  12889. timer: null,
  12890. timer2: null,
  12891. opertimer: null,
  12892. showType: 0,
  12893. fileType: 0,
  12894. showPDF: false,
  12895. noteName: "",
  12896. evaJuri: [],
  12897. evalua: "",
  12898. eTitle: "",
  12899. eName: "",
  12900. eJson: {},
  12901. fid: "", //一级
  12902. sid: "", //二级
  12903. tid: "", //二级
  12904. typeMode: 1,
  12905. eJSONNum: 0,
  12906. Etype: 1,
  12907. data: {
  12908. meta: {
  12909. name: "example",
  12910. author: "dd@163.com",
  12911. version: "0.2",
  12912. },
  12913. format: "node_array",
  12914. data: [{ id: "root", isroot: true, topic: "" }],
  12915. },
  12916. fullDialogVisible: false,
  12917. fulltype: "",
  12918. fullUrl: "",
  12919. commentIndexJson: {},
  12920. Stbodywidth: 0,
  12921. ispzType: 0,
  12922. pzType: 1,
  12923. wScore: 0,
  12924. scoreDetail: "",
  12925. videoStart: false,
  12926. recorder: null,
  12927. groupJson: {},
  12928. islock: false,
  12929. groupJson2: {},
  12930. dialogVisibleGroup: false,
  12931. dialogVisibleGroup2: false,
  12932. updateGroupArray: [],
  12933. updateGroupUser: {},
  12934. deleteGroupUser: [],
  12935. deleteGroupArray: {},
  12936. checkChair: "",
  12937. checkDeleteGroup: [],
  12938. inviteCode: "",
  12939. courseGroupStudent: [],
  12940. courseGroupStudentUid: [],
  12941. courseGroup: {},
  12942. isGroup: false,
  12943. // toolIndex: null,
  12944. tool: {},
  12945. isWorkTool: [
  12946. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12947. ], //, 40
  12948. videoJson: {},
  12949. toolType: 0,
  12950. checktoolArray: [],
  12951. vChapterData: [],
  12952. isUpdateToolDetail: false,
  12953. isUpdateToolDetail1: false,
  12954. updateToolDetailInner: "",
  12955. checkboxList: [],
  12956. plIndex: "",
  12957. worksSName2: "",
  12958. worksSid: "",
  12959. wordCloudData: [],
  12960. isPickStudent: [],
  12961. pzStype: 1,
  12962. myAnList: {},
  12963. userMes:{},
  12964. downLoading: false,
  12965. greyType: false,
  12966. correctWord: [],
  12967. isUpdateText: "",
  12968. EnglishVoiceDialog: false,
  12969. englishVoiceJson: {},
  12970. englishVoiceJsonWork:[],
  12971. scoreList:{
  12972. listdata:[],
  12973. isScoreList:[],
  12974. },
  12975. classRoomHelperWidth: '85px',
  12976. orgArray:[],
  12977. oidArray:[],
  12978. toolsList: toolsList,
  12979. splitScreenData:{
  12980. isOpen:false,
  12981. userId:"",
  12982. uid:"",
  12983. myUid:"",
  12984. loading:false,
  12985. behavior:null,
  12986. },
  12987. confirmOpenDig:false,
  12988. confirmOpenDigData:'',
  12989. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  12990. diffKey:"1",
  12991. };
  12992. },
  12993. methods: {
  12994. //查看应用中心作业
  12995. openCocoFlow(w){
  12996. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12997. },
  12998. getAIJ(){
  12999. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13000. let oid = res.data[0];
  13001. let org = res.data[1];
  13002. let oidArray = [];
  13003. let orgArray = [];
  13004. oid.forEach(i=>oidArray.push(i.oid))
  13005. org.forEach(i=>orgArray.push(i.oid))
  13006. this.orgArray = orgArray;
  13007. this.oidArray = oidArray;
  13008. })
  13009. },
  13010. insertMemorandum(_html){//保存行为操作
  13011. //variable
  13012. //btn
  13013. let params = [{
  13014. uid:this.userid,
  13015. courseId:this.id+(this.tcid2?this.tcid2:''),
  13016. content:_html
  13017. }]
  13018. console.log("👇👇")
  13019. console.log(params)
  13020. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13021. if(res.data==1){
  13022. console.log('保存操作成功')
  13023. }else{
  13024. console.log('保存操作失败')
  13025. }
  13026. }).catch(e=>{
  13027. console.log('保存操作失败')
  13028. console.log(e)
  13029. })
  13030. },
  13031. gx(){
  13032. this.$forceUpdate();
  13033. },
  13034. isUpdateCorrect(t,p){
  13035. if(this.greyType == false){
  13036. this.isUpdateText = t;
  13037. this.greyType = true;
  13038. }else{
  13039. if(p == 1){
  13040. this.newEnglishList.engText = this.isUpdateText;
  13041. }else if(p == 2){
  13042. this.oldEnglishJson1.engText = this.isUpdateText;
  13043. }else if(p == 3){
  13044. this.newEnglishList.engText = this.isUpdateText;
  13045. }else{
  13046. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13047. }
  13048. this.greyType = false
  13049. }
  13050. },
  13051. aiCorrect(t,p){
  13052. let aiText = "";
  13053. const loading = this.$loading.service({
  13054. background: "rgba(255, 255, 255)",
  13055. target: document.querySelectorAll(".loadingText")[0],
  13056. });
  13057. let param = {
  13058. model: "gpt-3.5-turbo",
  13059. temperature: 0,
  13060. max_tokens: 2048,
  13061. top_p: 1,
  13062. frequency_penalty: 0,
  13063. presence_penalty: 0,
  13064. messages: [
  13065. {
  13066. role: "user",
  13067. content:
  13068. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13069. },
  13070. ],
  13071. uid: this.userid,
  13072. stream: false,
  13073. };
  13074. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13075. (res) => {
  13076. if (
  13077. res.data.FunctionResponse &&
  13078. res.data.FunctionResponse.result &&
  13079. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13080. ) {
  13081. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13082. return;
  13083. }
  13084. aiText =
  13085. res.data.FunctionResponse.choices[0].message.content;
  13086. aiText = aiText.replace(/%/g,"%25");
  13087. // let w = "";
  13088. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13089. // for(var k = 0;k<a.length;k++){
  13090. // //diffWordsWithSpace
  13091. // if(a.length > 1){
  13092. // if(a[k].added == true){
  13093. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13094. // }else if(a[k].removed == true){
  13095. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13096. // }else{
  13097. // w += '<span>' + a[k].value + '</span>';
  13098. // }
  13099. // }else{
  13100. // if(p == 1){
  13101. // w = this.newEnglishList.engText;
  13102. // }else if(p == 2){
  13103. // w = this.oldEnglishJson1.engText;
  13104. // }else if(p == 3){
  13105. // w = this.newEnglishList.engText;
  13106. // }else{
  13107. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13108. // }
  13109. // }
  13110. // }
  13111. if(p == 1){
  13112. this.newEnglishList.engText = aiText;
  13113. }else if(p == 2){
  13114. this.oldEnglishJson1.engText = aiText;
  13115. }else if(p == 3){
  13116. this.newEnglishList.engText = aiText;
  13117. }else{
  13118. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13119. }
  13120. loading.close();
  13121. },
  13122. (err) => {
  13123. console.log(err);
  13124. loading.close();
  13125. }
  13126. );
  13127. },
  13128. addToolChoose() {
  13129. if (!this.checktoolArray.length) {
  13130. this.$message.error("请选择要添加的任务");
  13131. return;
  13132. }
  13133. if (
  13134. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13135. this.taskCount
  13136. ].toolChoose[0].tool.length
  13137. ) {
  13138. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13139. this.taskCount
  13140. ].toolChoose[0].tool = this.checktoolArray;
  13141. } else {
  13142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13143. this.taskCount
  13144. ].toolChoose.push({
  13145. tool: this.checktoolArray,
  13146. toolDetail: "",
  13147. toolType: 0,
  13148. askCount: 1,
  13149. askTitle: "",
  13150. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13151. });
  13152. }
  13153. let params = [
  13154. {
  13155. cid: this.id,
  13156. chapters: JSON.stringify(this.chapInfoList),
  13157. uid: this.userid,
  13158. unitIndex: this.courseType,
  13159. },
  13160. ];
  13161. this.ajax
  13162. .post(this.$store.state.api + "updateWorkNew4", params)
  13163. .then((res) => {
  13164. this.$message({
  13165. message: "添加成功",
  13166. type: "success",
  13167. });
  13168. this.checktoolArray = [];
  13169. this.getCourseDetail(2);
  13170. this.checkBz(
  13171. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13172. this.taskCount
  13173. ].toolChoose.length - 1
  13174. );
  13175. this.toolDialogVisible = false;
  13176. this.refreshCourse();
  13177. this.$forceUpdate();
  13178. })
  13179. .catch((err) => {
  13180. console.error(err);
  13181. });
  13182. },
  13183. checkBz(index) {
  13184. this.isUpdateToolDetail = false;
  13185. this.$forceUpdate();
  13186. setTimeout(() => {
  13187. document.scrollingElement.scrollTop =
  13188. document.querySelectorAll(".filebox")[index].offsetTop +
  13189. document.querySelector(".student_body").offsetTop;
  13190. }, 500);
  13191. },
  13192. updateToolDetail(i, type) {
  13193. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13194. this.toolDetailIndex = i
  13195. this.isUpdateToolDetail1 = true;
  13196. setTimeout(() => {
  13197. this.updateToolDetailInner = JSON.parse(
  13198. JSON.stringify(
  13199. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13200. this.taskCount
  13201. ].toolChoose[i].toolDetail
  13202. )
  13203. );
  13204. document.querySelector(".checkTextArea").focus();
  13205. }, 0);
  13206. } else if((this.isUpdateToolDetail1 && type != 2)){
  13207. // this.toolDetailIndex = i;
  13208. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13209. this.taskCount
  13210. ].toolChoose[i].toolDetail = JSON.parse(
  13211. JSON.stringify(this.updateToolDetailInner)
  13212. );
  13213. let params = [
  13214. {
  13215. cid: this.id,
  13216. chapters: JSON.stringify(this.chapInfoList),
  13217. uid: this.userid,
  13218. unitIndex: this.courseType,
  13219. },
  13220. ];
  13221. this.ajax
  13222. .post(this.$store.state.api + "updateWorkNew4", params)
  13223. .then((res) => {
  13224. this.isUpdateToolDetail1 = false;
  13225. this.$message({
  13226. message: "修改成功",
  13227. type: "success",
  13228. });
  13229. this.toolDetailIndex = null;
  13230. this.updateToolDetailInner = "";
  13231. this.getCourseDetail(2);
  13232. this.$forceUpdate();
  13233. })
  13234. .catch((err) => {
  13235. console.error(err);
  13236. });
  13237. } else if((this.isUpdateToolDetail1 && type == 2)){
  13238. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13239. this.taskCount
  13240. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13241. JSON.stringify(this.updateToolDetailInner)
  13242. );
  13243. let params = [
  13244. {
  13245. cid: this.id,
  13246. chapters: JSON.stringify(this.chapInfoList),
  13247. uid: this.userid,
  13248. unitIndex: this.courseType,
  13249. },
  13250. ];
  13251. this.ajax
  13252. .post(this.$store.state.api + "updateWorkNew4", params)
  13253. .then((res) => {
  13254. this.$message({
  13255. message: "修改成功",
  13256. type: "success",
  13257. });
  13258. this.toolDetailIndex = i;
  13259. this.isUpdateToolDetail1 = true;
  13260. setTimeout(() => {
  13261. this.updateToolDetailInner = JSON.parse(
  13262. JSON.stringify(
  13263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13264. this.taskCount
  13265. ].toolChoose[i].toolDetail
  13266. )
  13267. );
  13268. document.querySelector(".checkTextArea").focus();
  13269. }, 0);
  13270. this.getCourseDetail(2);
  13271. this.$forceUpdate();
  13272. })
  13273. .catch((err) => {
  13274. console.error(err);
  13275. });
  13276. }
  13277. },
  13278. jumpGj(i, j, k, l) {
  13279. for (var z = 0; z < this.navList.length; z++) {
  13280. for (var q = 0; q < this.navList[z].task.length; q++) {
  13281. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13282. this.navList[z].task[q].tool[w].isTool = false;
  13283. }
  13284. }
  13285. }
  13286. this.navList[i].task[j].tool[k].isTool =
  13287. !this.navList[i].task[j].tool[k].isTool;
  13288. var a = document.scrollingElement;
  13289. this.navId = ""
  13290. let target = document.querySelector(`#gj${k}`);
  13291. if (target) {
  13292. // target.scrollIntoView(true);
  13293. // setTimeout(() => {
  13294. // a.scrollTop = a.scrollTop - 150;
  13295. // }, 0);
  13296. target.scrollIntoView();
  13297. setTimeout(()=>{
  13298. let scrollBody = document.querySelector('.body_student').parentElement
  13299. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13300. }, 0);
  13301. }
  13302. let flag = this.courseType == i;
  13303. let flag2 = this.taskCount == j
  13304. if (l) {
  13305. this.courseType = i;
  13306. // this.navId = l;
  13307. this.taskCount = j;
  13308. this.selectPz();
  13309. this.getHomeWork();
  13310. this.getCourseDetail(2);
  13311. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13312. if(flag){
  13313. if(flag2){
  13314. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13315. }else{
  13316. 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>`)
  13317. }
  13318. }else{
  13319. 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>`)
  13320. }
  13321. }
  13322. // var b = this.$refs["bz" + k][0];
  13323. // a.scrollTop = b.offsetTop;
  13324. },
  13325. addTools2(i) {
  13326. if (i == 4) {
  13327. // this.openTools2(4);
  13328. this.$message.error("暂未开放");
  13329. return;
  13330. }
  13331. if (i == 45) {
  13332. // this.openTools2(45);
  13333. this.$message.error("暂未开放");
  13334. return;
  13335. }
  13336. if (i == 47) {
  13337. // this.openTools2(47);
  13338. this.$message.error("暂未开放");
  13339. return;
  13340. }
  13341. if (i == 49) {
  13342. // this.openTools2(49);
  13343. this.$message.error("暂未开放");
  13344. return;
  13345. }
  13346. if (i == 62) {
  13347. // this.openTools(itemTaskIndex, 62, toolIndex);
  13348. this.$message.error("暂未开放");
  13349. return;
  13350. }
  13351. if (i == 15) {
  13352. // this.openTools(itemTaskIndex, 15, toolIndex);
  13353. this.$message.error("暂未开放");
  13354. return;
  13355. }
  13356. if (i == 40) {
  13357. // this.openTools(itemTaskIndex, 40, toolIndex);
  13358. this.$message.error("暂未开放");
  13359. return;
  13360. }
  13361. if (i == 41) {
  13362. // this.openTools(itemTaskIndex, 41, toolIndex);
  13363. this.$message.error("暂未开放");
  13364. return;
  13365. }
  13366. if (i == 42) {
  13367. // this.openTools(itemTaskIndex, 42, toolIndex);
  13368. this.$message.error("暂未开放");
  13369. return;
  13370. }
  13371. if (this.checktoolArray.length > 0) {
  13372. if (this.checktoolArray.indexOf(i) != -1) {
  13373. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13374. } else {
  13375. this.checktoolArray = [];
  13376. this.checktoolArray.push(i);
  13377. }
  13378. } else {
  13379. this.checktoolArray.push(i);
  13380. }
  13381. this.$forceUpdate();
  13382. },
  13383. jump() {
  13384. window.topU.postMessage({ tools: "43" }, "*");
  13385. },
  13386. getUpdateMore(f, checkboxList, searchTN, index) {
  13387. this.dialogVisibleMember = f;
  13388. this.checkboxList = checkboxList;
  13389. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13390. this.plIndex = index;
  13391. },
  13392. setPlname(a) {
  13393. if (this.plworkFile.length) {
  13394. this.plworkFile[this.plIndex].username = a;
  13395. } else {
  13396. this.worksSName = a;
  13397. }
  13398. this.dialogVisibleMember = false;
  13399. },
  13400. previewImg(url,w=null) {
  13401. this.$hevueImgPreview(url);
  13402. if(w){
  13403. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13404. }
  13405. },
  13406. checkImg(list) {
  13407. if (!list.length) {
  13408. return;
  13409. }
  13410. this.$hevueImgPreview({
  13411. multiple: true, // 开启多图预览模式
  13412. imgList: list, // 需要预览的多图数组
  13413. });
  13414. },
  13415. change(val) {
  13416. console.log(val);
  13417. },
  13418. goTo(path) {
  13419. this.$router.push(path);
  13420. },
  13421. handlePictureCardPreview(url) {
  13422. this.dialogImageUrl = url;
  13423. this.pictureDialog = true;
  13424. },
  13425. clean(type) {
  13426. if (type == 1) {
  13427. this.studyJuri[0].cover.splice(0, 1);
  13428. } else if (type == 2) {
  13429. this.studyJuri[0].upVedio.splice(0, 1);
  13430. } else {
  13431. this.studyJuri[0].upFile.splice(0, 1);
  13432. }
  13433. },
  13434. clean2(index) {
  13435. this.plworkFile.splice(index, 1);
  13436. },
  13437. handleClose(done) {
  13438. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13439. this.videoDetail.sources[0].src = "";
  13440. }
  13441. this.commentIndexJson = {};
  13442. done();
  13443. },
  13444. fullTools() {
  13445. this.full = !this.full;
  13446. },
  13447. imgChange(file, fileList, type) {
  13448. if (type == 1) {
  13449. var _tmp = this.studyJuri[0].cover;
  13450. } else if (type == 2) {
  13451. var _tmp = this.studyJuri[0].upVedio;
  13452. } else {
  13453. var _tmp = this.studyJuri[0].upFile;
  13454. }
  13455. this.noneBtnImg = _tmp.length >= 1;
  13456. },
  13457. setContent(bool) {
  13458. this.contentDialog = bool;
  13459. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13460. document.querySelector(".workd_media").style.height = "650px";
  13461. } else if (document.querySelector(".workd_media")) {
  13462. document.querySelector(".workd_media").style.height = "auto";
  13463. }
  13464. },
  13465. setContent2(bool) {
  13466. this.mlDialog = bool;
  13467. if (
  13468. bool &&
  13469. this.contentDialog &&
  13470. document.querySelector(".workd_media")
  13471. ) {
  13472. document.querySelector(".workd_media").style.height = "650px";
  13473. } else if (document.querySelector(".workd_media")) {
  13474. document.querySelector(".workd_media").style.height = "auto";
  13475. }
  13476. this.$forceUpdate();
  13477. },
  13478. openToolAll() {
  13479. this.toolDialogVisible = true;
  13480. },
  13481. addImg(e) {
  13482. var el = e.currentTarget;
  13483. // this.$message.success('触发上传')
  13484. el.getElementsByTagName("input")[0].click();
  13485. e.target.value = "";
  13486. },
  13487. addSelectAnswer() {
  13488. let params = [
  13489. {
  13490. uid: this.userid,
  13491. cid: this.id,
  13492. stage: this.courseType,
  13493. task: this.taskCount,
  13494. tool: this.toolindex,
  13495. content: this.selectAnswer.answer,
  13496. type: 7,
  13497. },
  13498. ];
  13499. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13500. this.homeWorkLoading = true
  13501. this.ajax
  13502. .post(this.$store.state.api + "addCourseWorks", params)
  13503. .then((res) => {
  13504. this.$message({
  13505. message: "提交成功",
  13506. type: "success",
  13507. });
  13508. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13509. setTimeout(() => {
  13510. this.homeWorkLoading = false
  13511. }, 500);
  13512. this.dialogVisibleSelect = false;
  13513. // this.selectAnswer = {};
  13514. this.selectSWorks();
  13515. this.selectStudent();
  13516. })
  13517. .catch((err) => {
  13518. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13519. setTimeout(() => {
  13520. this.homeWorkLoading = false
  13521. }, 500);
  13522. this.$message.error("提交失败");
  13523. console.error(err);
  13524. });
  13525. },
  13526. addSelectAnswerTeacher() {
  13527. let params = [
  13528. {
  13529. uid: this.sStudent.userid,
  13530. cid: this.id,
  13531. stage: this.courseType,
  13532. task: this.taskCount,
  13533. tool: this.toolindex,
  13534. content: this.selectAnswer.answer,
  13535. type: 7,
  13536. },
  13537. ];
  13538. this.ajax
  13539. .post(this.$store.state.api + "addCourseWorks", params)
  13540. .then((res) => {
  13541. this.$message({
  13542. message: "提交成功",
  13543. type: "success",
  13544. });
  13545. this.dialogVisibleSelectTeacher = false;
  13546. // this.selectAnswer = {};
  13547. this.selectSWorks();
  13548. this.selectStudent();
  13549. })
  13550. .catch((err) => {
  13551. this.$message.error("提交失败");
  13552. console.error(err);
  13553. });
  13554. },
  13555. addSenWorks() {
  13556. for (var i = 0; i < this.sentenceList.length; i++) {
  13557. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13558. if (
  13559. this.sentenceList[i].chooseSenList[j] == undefined ||
  13560. this.sentenceList[i].chooseSenList[j] == ""
  13561. ) {
  13562. this.$message.error("请将答案填写完整!");
  13563. return;
  13564. }
  13565. }
  13566. }
  13567. let params = [
  13568. {
  13569. uid: this.userid,
  13570. cid: this.id,
  13571. stage: this.courseType,
  13572. task: this.taskCount,
  13573. tool: this.toolindex,
  13574. content: JSON.stringify(this.sentenceList),
  13575. type: 9,
  13576. },
  13577. ];
  13578. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13579. this.homeWorkLoading = true
  13580. this.ajax
  13581. .post(this.$store.state.api + "addCourseWorks", params)
  13582. .then((res) => {
  13583. this.$message({
  13584. message: "提交成功",
  13585. type: "success",
  13586. });
  13587. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13588. setTimeout(() => {
  13589. this.homeWorkLoading = false
  13590. }, 500);
  13591. this.dialogVisibleSentence = false;
  13592. // this.selectAnswer = {};
  13593. this.selectSWorks();
  13594. this.selectStudent();
  13595. })
  13596. .catch((err) => {
  13597. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13598. setTimeout(() => {
  13599. this.homeWorkLoading = false
  13600. }, 500);
  13601. this.$message.error("提交失败");
  13602. console.error(err);
  13603. });
  13604. },
  13605. addSenWorksTeacher() {
  13606. for (var i = 0; i < this.sentenceList.length; i++) {
  13607. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13608. if (
  13609. this.sentenceList[i].chooseSenList[j] == undefined ||
  13610. this.sentenceList[i].chooseSenList[j] == ""
  13611. ) {
  13612. this.$message.error("请将答案填写完整!");
  13613. return;
  13614. }
  13615. }
  13616. }
  13617. let params = [
  13618. {
  13619. uid: this.sStudent.userid,
  13620. cid: this.id,
  13621. stage: this.courseType,
  13622. task: this.taskCount,
  13623. tool: this.toolindex,
  13624. content: JSON.stringify(this.sentenceList),
  13625. type: 9,
  13626. },
  13627. ];
  13628. this.ajax
  13629. .post(this.$store.state.api + "addCourseWorks", params)
  13630. .then((res) => {
  13631. this.$message({
  13632. message: "提交成功",
  13633. type: "success",
  13634. });
  13635. this.dialogVisibleSentenceTeacher = false;
  13636. // this.selectAnswer = {};
  13637. this.selectSWorks();
  13638. this.selectStudent();
  13639. })
  13640. .catch((err) => {
  13641. this.$message.error("提交失败");
  13642. console.error(err);
  13643. });
  13644. },
  13645. returnTableText() {
  13646. this.$confirm("确定还原此模板吗?", "提示", {
  13647. confirmButtonText: "确定",
  13648. cancelButtonText: "取消",
  13649. type: "warning",
  13650. })
  13651. .then(() => {
  13652. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13653. })
  13654. .catch(() => {});
  13655. },
  13656. addTableWorks() {
  13657. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13658. this.homeWorkLoading = true
  13659. let params = [
  13660. {
  13661. uid: this.userid,
  13662. cid: this.id,
  13663. stage: this.courseType,
  13664. task: this.taskCount,
  13665. tool: this.toolindex,
  13666. content: JSON.stringify(this.tableJson),
  13667. type: 10,
  13668. },
  13669. ];
  13670. this.ajax
  13671. .post(this.$store.state.api + "addCourseWorks", params)
  13672. .then((res) => {
  13673. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13674. this.$message({
  13675. message: "提交成功",
  13676. type: "success",
  13677. });
  13678. this.dialogVisibleTable = false;
  13679. setTimeout(() => {
  13680. this.homeWorkLoading = false
  13681. }, 500);
  13682. // this.selectAnswer = {};
  13683. this.selectSWorks();
  13684. this.selectStudent();
  13685. })
  13686. .catch((err) => {
  13687. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13688. setTimeout(() => {
  13689. this.homeWorkLoading = false
  13690. }, 500);
  13691. this.$message.error("提交失败");
  13692. console.error(err);
  13693. });
  13694. },
  13695. tableRowClassName({ row, rowIndex }) {
  13696. if ((rowIndex + 1) % 2 === 0) {
  13697. return "even_row";
  13698. } else {
  13699. return "";
  13700. }
  13701. },
  13702. addTableWorksTeacher() {
  13703. let params = [
  13704. {
  13705. uid: this.sStudent.userid,
  13706. cid: this.id,
  13707. stage: this.courseType,
  13708. task: this.taskCount,
  13709. tool: this.toolindex,
  13710. content: JSON.stringify(this.tableJson),
  13711. type: 10,
  13712. },
  13713. ];
  13714. this.ajax
  13715. .post(this.$store.state.api + "addCourseWorks", params)
  13716. .then((res) => {
  13717. this.$message({
  13718. message: "提交成功",
  13719. type: "success",
  13720. });
  13721. this.dialogVisibleTableTeacher = false;
  13722. // this.selectAnswer = {};
  13723. this.selectSWorks();
  13724. this.selectStudent();
  13725. })
  13726. .catch((err) => {
  13727. this.$message.error("提交失败");
  13728. console.error(err);
  13729. });
  13730. },
  13731. returnWordText() {
  13732. this.$confirm("确定还原此模板吗?", "提示", {
  13733. confirmButtonText: "确定",
  13734. cancelButtonText: "取消",
  13735. type: "warning",
  13736. })
  13737. .then(() => {
  13738. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13739. })
  13740. .catch(() => {});
  13741. },
  13742. addWordWorks() {
  13743. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13744. this.homeWorkLoading = true
  13745. let params = [
  13746. {
  13747. uid: this.userid,
  13748. cid: this.id,
  13749. stage: this.courseType,
  13750. task: this.taskCount,
  13751. tool: this.toolindex,
  13752. content: JSON.stringify(this.wordJson),
  13753. type: 13,
  13754. atool: 52,
  13755. },
  13756. ];
  13757. this.ajax
  13758. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13759. .then((res) => {
  13760. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13761. this.$message({
  13762. message: "提交成功",
  13763. type: "success",
  13764. });
  13765. this.dialogVisibleWord = false;
  13766. setTimeout(() => {
  13767. this.homeWorkLoading = false
  13768. }, 500);
  13769. // this.selectAnswer = {};
  13770. this.selectSWorks();
  13771. this.selectStudent();
  13772. })
  13773. .catch((err) => {
  13774. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13775. setTimeout(() => {
  13776. this.homeWorkLoading = false
  13777. }, 500);
  13778. this.$message.error("提交失败");
  13779. console.error(err);
  13780. });
  13781. },
  13782. addWordWorksTeacher() {
  13783. let params = [
  13784. {
  13785. uid: this.sStudent.userid,
  13786. cid: this.id,
  13787. stage: this.courseType,
  13788. task: this.taskCount,
  13789. tool: this.toolindex,
  13790. content: JSON.stringify(this.wordJson),
  13791. type: 13,
  13792. atool: 52,
  13793. },
  13794. ];
  13795. this.ajax
  13796. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13797. .then((res) => {
  13798. this.$message({
  13799. message: "提交成功",
  13800. type: "success",
  13801. });
  13802. this.dialogVisibleWordTeacher = false;
  13803. // this.selectAnswer = {};
  13804. this.selectSWorks();
  13805. this.selectStudent();
  13806. })
  13807. .catch((err) => {
  13808. this.$message.error("提交失败");
  13809. console.error(err);
  13810. });
  13811. },
  13812. addCourseWorks(i) {
  13813. var typesql;
  13814. if (this.fileType === 0) {
  13815. typesql = 1;
  13816. } else if (this.fileType === 1) {
  13817. typesql = 4;
  13818. } else if (this.fileType === 2) {
  13819. typesql = 5;
  13820. } else if (this.fileType === 3) {
  13821. typesql = 12;
  13822. }
  13823. if (!this.studyJuri[0].cover[0].url) {
  13824. this.$message.error("请上传文件");
  13825. return;
  13826. }
  13827. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13828. this.homeWorkLoading = true
  13829. let params = [
  13830. {
  13831. uid: this.userid,
  13832. cid: this.id,
  13833. stage: this.courseType,
  13834. task: i,
  13835. tool: this.toolindex,
  13836. content: this.studyJuri[0].cover[0].url,
  13837. type: typesql,
  13838. },
  13839. ];
  13840. this.ajax
  13841. .post(this.$store.state.api + "addCourseWorksR", params)
  13842. .then((res) => {
  13843. this.$message({
  13844. message: "提交成功",
  13845. type: "success",
  13846. });
  13847. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13848. setTimeout(() => {
  13849. this.homeWorkLoading = false
  13850. }, 500);
  13851. this.studyJuri[0].cover = [];
  13852. this.dialogVisible = false;
  13853. this.getCourseDetail(2);
  13854. })
  13855. .catch((err) => {
  13856. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13857. setTimeout(() => {
  13858. this.homeWorkLoading = false
  13859. }, 500);
  13860. this.$message.error("提交失败");
  13861. console.error(err);
  13862. });
  13863. },
  13864. addCourseWorksPl(i) {
  13865. let _files = this.plworkFile;
  13866. var c = 1;
  13867. for (var k = 0; k < _files.length; k++) {
  13868. if (!_files[k].username) {
  13869. c = 2;
  13870. }
  13871. }
  13872. if (c == 2) {
  13873. this.$message.error("请填写学生姓名");
  13874. return;
  13875. }
  13876. let params = [
  13877. {
  13878. ateacher: this.userid,
  13879. cid: this.id,
  13880. stage: this.courseType,
  13881. task: i,
  13882. tool: this.toolindex,
  13883. content: JSON.stringify(_files),
  13884. },
  13885. ];
  13886. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13887. this.homeWorkLoading = true
  13888. this.ajax
  13889. .post(this.$store.state.api + "addCourseWorksPl", params)
  13890. .then((res) => {
  13891. this.$message({
  13892. message: "提交成功",
  13893. type: "success",
  13894. });
  13895. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13896. setTimeout(() => {
  13897. this.homeWorkLoading = false
  13898. }, 500);
  13899. this.plworkFile = [];
  13900. this.dialogVisiblePl = false;
  13901. this.getCourseDetail(2);
  13902. })
  13903. .catch((err) => {
  13904. this.$message.error("提交失败");
  13905. setTimeout(() => {
  13906. this.homeWorkLoading = false
  13907. }, 500);
  13908. console.error(err);
  13909. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13910. });
  13911. },
  13912. addCourseWorks2(i) {
  13913. var typesql;
  13914. if (this.fileType === 0) {
  13915. typesql = 0;
  13916. } else if (this.fileType === 1) {
  13917. typesql = 1;
  13918. } else if (this.fileType === 2) {
  13919. typesql = 3;
  13920. } else if (this.fileType === 3) {
  13921. typesql = 12;
  13922. }
  13923. if (!this.studyJuri[0].cover[0].url) {
  13924. this.$message.error("请上传文件");
  13925. return;
  13926. }
  13927. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13928. this.homeWorkLoading = true
  13929. let params = [
  13930. {
  13931. uid: this.userid,
  13932. cid: this.id,
  13933. stage: this.courseType,
  13934. task: i,
  13935. tool: this.toolindex,
  13936. content: JSON.stringify({
  13937. type: typesql,
  13938. groupIndex: this.groupIndex,
  13939. url: this.studyJuri[0].cover[0].url,
  13940. }),
  13941. type: 11,
  13942. atool: 49,
  13943. text: "",
  13944. },
  13945. ];
  13946. this.ajax
  13947. .post(this.$store.state.api + "addCourseWorks5", params)
  13948. .then((res) => {
  13949. this.$message({
  13950. message: "提交成功",
  13951. type: "success",
  13952. });
  13953. setTimeout(() => {
  13954. this.homeWorkLoading = false
  13955. }, 500);
  13956. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13957. type: typesql,
  13958. groupIndex: this.groupIndex,
  13959. url: this.studyJuri[0].cover[0].url,
  13960. }),type: "course_tool_sub" }, "success")
  13961. this.studyJuri[0].cover = [];
  13962. this.dialogVisibleGroupWork = false;
  13963. this.getCourseDetail(2);
  13964. })
  13965. .catch((err) => {
  13966. this.$message.error("提交失败");
  13967. setTimeout(() => {
  13968. this.homeWorkLoading = false
  13969. }, 500);
  13970. console.error(err);
  13971. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13972. type: typesql,
  13973. groupIndex: this.groupIndex,
  13974. url: this.studyJuri[0].cover[0].url,
  13975. }),type: "course_tool_sub" }, err)
  13976. });
  13977. },
  13978. addEnglishWork() {
  13979. this.myAnList = this.$refs['engJson'].myAnswerList;
  13980. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13981. this.$message.error("请输入作文标题和正文!");
  13982. return;
  13983. }
  13984. let params = [
  13985. {
  13986. uid: this.userid,
  13987. cid: this.id,
  13988. stage: this.courseType,
  13989. task: this.taskCount,
  13990. tool: this.englishToolIndex,
  13991. content: JSON.stringify(this.myAnList),
  13992. type: 16,
  13993. atool: 69,
  13994. text: "",
  13995. },
  13996. ];
  13997. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13998. this.homeWorkLoading = true
  13999. this.ajax
  14000. .post(this.$store.state.api + "addCourseWorks5", params)
  14001. .then((res) => {
  14002. this.$message({
  14003. message: "提交成功",
  14004. type: "success",
  14005. });
  14006. setTimeout(() => {
  14007. this.homeWorkLoading = false
  14008. }, 500);
  14009. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14010. data: JSON.stringify(this.myAnList),
  14011. type: "course_tool_sub" }, "success")
  14012. this.myAnList = {};
  14013. this.englishList = {};
  14014. this.englishToolIndex = 0;
  14015. this.engDialogVisible = false;
  14016. this.selectSWorks();
  14017. this.selectStudent();
  14018. })
  14019. .catch((err) => {
  14020. this.$message.error("提交失败");
  14021. console.error(err);
  14022. setTimeout(() => {
  14023. this.homeWorkLoading = false
  14024. }, 500);
  14025. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14026. data: JSON.stringify(this.myAnList),
  14027. type: "course_tool_sub" }, err)
  14028. });
  14029. },
  14030. addCourseWorksGong(i, data, tool) {
  14031. let params = [
  14032. {
  14033. uid: this.userid,
  14034. cid: this.id,
  14035. stage: this.courseType,
  14036. task: this.taskCount,
  14037. tool: i,
  14038. content: data,
  14039. type: 12,
  14040. atool: tool,
  14041. text: "",
  14042. },
  14043. ];
  14044. this.ajax
  14045. .post(this.$store.state.api + "addCourseWorks5", params)
  14046. .then((res) => {
  14047. this.$message({
  14048. message: "提交成功",
  14049. type: "success",
  14050. });
  14051. this.studyJuri[0].cover = [];
  14052. this.selectSWorks();
  14053. this.selectStudent();
  14054. })
  14055. .catch((err) => {
  14056. this.$message.error("提交失败");
  14057. console.error(err);
  14058. });
  14059. },
  14060. addCourseWorksGongTeacher(i, data, tool) {
  14061. let params = [
  14062. {
  14063. uid: this.sStudent.userid,
  14064. cid: this.id,
  14065. stage: this.courseType,
  14066. task: this.taskCount,
  14067. tool: i,
  14068. content: data,
  14069. type: 12,
  14070. atool: tool,
  14071. text: "",
  14072. },
  14073. ];
  14074. this.ajax
  14075. .post(this.$store.state.api + "addCourseWorks5", params)
  14076. .then((res) => {
  14077. this.$message({
  14078. message: "提交成功",
  14079. type: "success",
  14080. });
  14081. this.studyJuri[0].cover = [];
  14082. this.dialogVisibleWorks = false;
  14083. this.selectSWorks();
  14084. this.selectStudent();
  14085. })
  14086. .catch((err) => {
  14087. this.$message.error("提交失败");
  14088. console.error(err);
  14089. });
  14090. },
  14091. addCourseWorksGongPl(i, data, tool, type) {
  14092. let params = [
  14093. {
  14094. uid: this.sStudent.userid,
  14095. cid: this.id,
  14096. stage: this.courseType,
  14097. task: this.taskCount,
  14098. tool: i,
  14099. content: data,
  14100. type: type,
  14101. atool: tool,
  14102. text: "",
  14103. },
  14104. ];
  14105. this.ajax
  14106. .post(this.$store.state.api + "addCourseWorks5", params)
  14107. .then((res) => {
  14108. this.$message({
  14109. message: "提交成功",
  14110. type: "success",
  14111. });
  14112. this.studyJuri[0].cover = [];
  14113. this.dialogVisibleWorks = false;
  14114. this.selectSWorks();
  14115. this.selectStudent();
  14116. })
  14117. .catch((err) => {
  14118. this.$message.error("提交失败");
  14119. console.error(err);
  14120. });
  14121. },
  14122. addCourseWorksTeacher(i) {
  14123. var typesql;
  14124. if (this.sTool == 32) {
  14125. this.addCourseWorksGongTeacher(
  14126. this.toolindex,
  14127. this.studyJuri[0].cover[0].url,
  14128. this.sTool
  14129. );
  14130. return;
  14131. }
  14132. if (this.fileType === 0) {
  14133. typesql = 1;
  14134. } else if (this.fileType === 1) {
  14135. typesql = 4;
  14136. } else if (this.fileType === 2) {
  14137. typesql = 5;
  14138. } else if (this.fileType === 3) {
  14139. typesql = 12;
  14140. }
  14141. if (this.sTool == 50) {
  14142. this.addCourseWorksGongPl(
  14143. this.toolindex,
  14144. this.studyJuri[0].cover[0].url,
  14145. this.sTool,
  14146. typesql
  14147. );
  14148. return;
  14149. }
  14150. if (!this.studyJuri[0].cover[0].url) {
  14151. this.$message.error("请上传文件");
  14152. return;
  14153. }
  14154. let params = [
  14155. {
  14156. uid: this.sStudent.userid,
  14157. cid: this.id,
  14158. stage: this.courseType,
  14159. task: i,
  14160. tool: this.toolindex,
  14161. content: this.studyJuri[0].cover[0].url,
  14162. type: typesql,
  14163. ateacher: this.userid,
  14164. },
  14165. ];
  14166. this.ajax
  14167. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14168. .then((res) => {
  14169. this.$message({
  14170. message: "提交成功",
  14171. type: "success",
  14172. });
  14173. this.studyJuri[0].cover = [];
  14174. this.dialogVisibleWorks = false;
  14175. this.getCourseDetail(2);
  14176. })
  14177. .catch((err) => {
  14178. this.$message.error("提交失败");
  14179. console.error(err);
  14180. });
  14181. },
  14182. selectUploadStudent(type) {
  14183. const loading = this.$loading.service({
  14184. background: "rgba(255, 255, 255, 0.7)",
  14185. target: document.body,
  14186. });
  14187. let params = {
  14188. cid: this.uploadCid,
  14189. oid: this.oid,
  14190. cn: "",
  14191. };
  14192. this.ajax
  14193. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14194. .then((res) => {
  14195. loading.close();
  14196. var studentK = [];
  14197. if (this.isWorksS[this.toolindex].length > 0) {
  14198. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14199. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14200. }
  14201. studentK = studentK.join(",");
  14202. }
  14203. this.uploadStudentJuri = res.data[0].filter((el) => {
  14204. return studentK.indexOf(el.userid) == -1;
  14205. });
  14206. if (this.worksSName && this.worksSid) {
  14207. this.uploadStudentJuri.push({
  14208. userid: this.worksSid,
  14209. name: this.worksSName,
  14210. });
  14211. }
  14212. if (type == 1) {
  14213. this.plworkFile = [];
  14214. this.dialogVisibleSname = true;
  14215. } else if (type == 2) {
  14216. this.dialogVisiblePl = true;
  14217. }
  14218. })
  14219. .catch((err) => {
  14220. loading.close();
  14221. console.error(err);
  14222. });
  14223. },
  14224. selectPickStudent() {
  14225. const loading = this.$loading.service({
  14226. background: "rgba(255, 255, 255, 0.7)",
  14227. target: document.body,
  14228. });
  14229. let params = {
  14230. cid: this.uploadCid,
  14231. oid: this.oid,
  14232. cn: "",
  14233. };
  14234. this.ajax
  14235. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14236. .then((res) => {
  14237. loading.close();
  14238. this.uploadStudentJuri = res.data[0];
  14239. this.dialogVisiblePickPeople = true;
  14240. })
  14241. .catch((err) => {
  14242. loading.close();
  14243. console.error(err);
  14244. });
  14245. },
  14246. arrayToArray(arrayo, arrayt) {
  14247. let array1 = arrayo;
  14248. let array2 = arrayt;
  14249. let commonElements = [];
  14250. for (let i = 0; i < array1.length; i++) {
  14251. for (let j = 0; j < array2.length; j++) {
  14252. if (array1[i] === array2[j]) {
  14253. commonElements.push(array1[i]);
  14254. }
  14255. }
  14256. }
  14257. return commonElements;
  14258. },
  14259. selectWorksStudent() {
  14260. let params = {
  14261. oid: this.oid,
  14262. cid: this.courseDetail.juri,
  14263. };
  14264. this.ajax
  14265. .get(this.$store.state.api + "selectWorksStudent", params)
  14266. .then((res) => {
  14267. var a = res.data[0];
  14268. for (var i = 0; i < this.isWorksS.length; i++) {
  14269. this.noWorksS[i] = [];
  14270. var studentK = [];
  14271. if (this.isWorksS[i].length > 0) {
  14272. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14273. studentK.push(this.isWorksS[i][z].uid);
  14274. }
  14275. studentK = studentK.join(",");
  14276. for (var j = 0; j < a.length; j++) {
  14277. if (studentK.indexOf(a[j].userid) == -1) {
  14278. if (this.tcid) {
  14279. // a[j].classid.indexOf(this.tcid) != -1
  14280. if (
  14281. this.arrayToArray(
  14282. a[j].classid.split(","),
  14283. this.tcid.split(",")
  14284. ).length
  14285. ) {
  14286. this.noWorksS[i].push({
  14287. student: a[j].name,
  14288. userid: a[j].userid,
  14289. });
  14290. }
  14291. } else {
  14292. this.noWorksS[i].push({
  14293. student: a[j].name,
  14294. userid: a[j].userid,
  14295. });
  14296. }
  14297. }
  14298. }
  14299. } else {
  14300. for (var k = 0; k < a.length; k++) {
  14301. if (this.tcid) {
  14302. if (
  14303. this.arrayToArray(
  14304. a[k].classid.split(","),
  14305. this.tcid.split(",")
  14306. ).length
  14307. ) {
  14308. this.noWorksS[i].push({
  14309. student: a[k].name,
  14310. userid: a[k].userid,
  14311. });
  14312. }
  14313. } else {
  14314. this.noWorksS[i].push({
  14315. student: a[k].name,
  14316. userid: a[k].userid,
  14317. });
  14318. }
  14319. }
  14320. }
  14321. }
  14322. this.$forceUpdate();
  14323. if (
  14324. Object.keys(this.commentDetail).length &&
  14325. Object.keys(this.commentIndexJson).length &&
  14326. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14327. ) {
  14328. let a = 1;
  14329. let c = this.commentIndexJson;
  14330. if (
  14331. this.commentIndexJson.gindex ||
  14332. this.commentIndexJson.gindex === 0
  14333. ) {
  14334. for (
  14335. var i = 0;
  14336. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14337. i++
  14338. ) {
  14339. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14340. groupA: for (var k = 0; k < _el.length; k++) {
  14341. let el = _el[k];
  14342. if (el.wid == this.commentDetail.wid) {
  14343. a = 2;
  14344. this.commentOther(
  14345. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14346. this.commentIndexJson.toolIndex,
  14347. k,
  14348. this.commentIndexJson.gindex
  14349. );
  14350. break groupA;
  14351. }
  14352. }
  14353. }
  14354. if (a === 1) {
  14355. this.commentDetail = [];
  14356. this.commentIndexJson = {};
  14357. this.commentDialogVisible = false;
  14358. this.$message("此作业已被删除");
  14359. }
  14360. } else {
  14361. if (this.isGroup && this.commentIndexJson.gid) {
  14362. groupA: for (
  14363. var i = 0;
  14364. i < this.courseGroup.group.length;
  14365. i++
  14366. ) {
  14367. let _group = this.courseGroup.group[i];
  14368. if (_group.id == this.commentIndexJson.gid) {
  14369. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14370. for (var k = 0; k < _el2.length; k++) {
  14371. let el2 = _el2[k];
  14372. if (el2.wid == this.commentDetail.wid) {
  14373. a = 2;
  14374. this.commentOther(
  14375. _el2[k],
  14376. this.commentIndexJson.toolIndex,
  14377. k,
  14378. null,
  14379. this.commentIndexJson.gid
  14380. );
  14381. break groupA;
  14382. }
  14383. }
  14384. }
  14385. }
  14386. }
  14387. if (a == 1) {
  14388. for (
  14389. var i = 0;
  14390. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14391. i++
  14392. ) {
  14393. let el =
  14394. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14395. if (el.wid == this.commentDetail.wid) {
  14396. a = 2;
  14397. this.commentOther(
  14398. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14399. this.commentIndexJson.toolIndex,
  14400. i
  14401. );
  14402. break;
  14403. }
  14404. }
  14405. }
  14406. if (a === 1) {
  14407. this.commentDetail = [];
  14408. this.commentIndexJson = {};
  14409. this.commentDialogVisible = false;
  14410. this.$message("此作业已被删除");
  14411. }
  14412. }
  14413. }
  14414. })
  14415. .catch((err) => {
  14416. console.error(err);
  14417. });
  14418. },
  14419. selectStudent() {
  14420. //学生查看自己作业
  14421. let params = {
  14422. uid: this.userid,
  14423. cid: this.id,
  14424. s: this.courseType,
  14425. t: this.taskCount,
  14426. };
  14427. this.ajax
  14428. .get(this.$store.state.api + "selectStudentWorks", params)
  14429. .then((res) => {
  14430. var a =
  14431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14432. this.taskCount
  14433. ].toolChoose;
  14434. var b = res.data[0];
  14435. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14436. var y = [
  14437. "AVI",
  14438. "NAVI",
  14439. "MPEG",
  14440. "ASF",
  14441. "MOV",
  14442. "WMV",
  14443. "3GP",
  14444. "RM",
  14445. "RMVB",
  14446. "FLV",
  14447. "F4V",
  14448. "H.264",
  14449. "H.265",
  14450. "REAL VIDEO",
  14451. "MKV",
  14452. "WebM",
  14453. "HDDVD",
  14454. "MP4",
  14455. "MPG",
  14456. "M4V",
  14457. "MGV",
  14458. "OGV",
  14459. "QTM",
  14460. "STR",
  14461. "AMC",
  14462. "DVX",
  14463. "EVO",
  14464. "DAT",
  14465. "OGG",
  14466. "OGM",
  14467. ];
  14468. for (var i = 0; i < a.length; i++) {
  14469. this.workStudent[i] = [];
  14470. for (var j = 0; j < b.length; j++) {
  14471. if (i == b[j].tool) {
  14472. if (
  14473. (b[j].type == 1 ||
  14474. b[j].type == 4 ||
  14475. b[j].type == 5 ||
  14476. b[j].type == 6 ||
  14477. b[j].type == 12 ||
  14478. b[j].type == 7) &&
  14479. a[i].tool[0] != 15 &&
  14480. a[i].tool[0] != 4 &&
  14481. a[i].tool[0] != 45 &&
  14482. a[i].tool[0] != 50 &&
  14483. a[i].tool[0] != 32 &&
  14484. a[i].tool[0] != 57 &&
  14485. a[i].tool[0] != 52 &&
  14486. a[i].tool[0] != 69
  14487. ) {
  14488. if (
  14489. c.indexOf(
  14490. b[j].content
  14491. .split(".")
  14492. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14493. ) != -1 &&
  14494. a[i].tool[0] == 16 &&
  14495. b[j].atool != 50
  14496. ) {
  14497. this.workStudent[i].push({
  14498. works: b[j].content,
  14499. sName: b[j].name,
  14500. score: b[j].score,
  14501. img: b[j].img,
  14502. type: 1,
  14503. time: b[j].time,
  14504. userid: b[j].userid,
  14505. wid: b[j].id,
  14506. });
  14507. } else if (
  14508. y.indexOf(
  14509. b[j].content
  14510. .split(".")
  14511. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14512. ) != -1 &&
  14513. a[i].tool[0] == 16 &&
  14514. b[j].atool != 50
  14515. ) {
  14516. this.workStudent[i].push({
  14517. userid: b[j].userid,
  14518. wid: b[j].id,
  14519. works: b[j].content,
  14520. sName: b[j].name,
  14521. score: b[j].score,
  14522. img: b[j].img,
  14523. type: 3,
  14524. time: b[j].time,
  14525. });
  14526. } else if (b[j].type == 6 && b[j].atool != 50) {
  14527. this.workStudent[i].push({
  14528. userid: b[j].userid,
  14529. wid: b[j].id,
  14530. works: b[j].content,
  14531. sName: b[j].name,
  14532. score: b[j].score,
  14533. img: b[j].img,
  14534. type: 4,
  14535. time: b[j].time,
  14536. });
  14537. } else if (b[j].type == 7 && b[j].atool != 50) {
  14538. this.workStudent[i].push({
  14539. userid: b[j].userid,
  14540. wid: b[j].id,
  14541. works: b[j].content,
  14542. sName: b[j].name,
  14543. score: b[j].score,
  14544. img: b[j].img,
  14545. type: 5,
  14546. time: b[j].time,
  14547. });
  14548. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14549. this.workStudent[i].push({
  14550. works: b[j].content,
  14551. sName: b[j].name,
  14552. score: b[j].score,
  14553. img: b[j].img,
  14554. type: 12,
  14555. time: b[j].time,
  14556. userid: b[j].userid,
  14557. wid: b[j].id,
  14558. });
  14559. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14560. this.workStudent[i].push({
  14561. works: b[j].content,
  14562. sName: b[j].name,
  14563. score: b[j].score,
  14564. img: b[j].img,
  14565. type: 0,
  14566. time: b[j].time,
  14567. userid: b[j].userid,
  14568. wid: b[j].id,
  14569. });
  14570. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14571. this.workStudent[i].push({
  14572. works: b[j].content,
  14573. sName: b[j].name,
  14574. score: b[j].score,
  14575. img: b[j].img,
  14576. type: 0,
  14577. time: b[j].time,
  14578. userid: b[j].userid,
  14579. wid: b[j].id,
  14580. });
  14581. }
  14582. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14583. this.workStudent[i].push({
  14584. works: b[j].content,
  14585. sName: b[j].name,
  14586. score: b[j].score,
  14587. img: b[j].img,
  14588. type: 2,
  14589. time: b[j].time,
  14590. userid: b[j].userid,
  14591. wid: b[j].id,
  14592. });
  14593. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14594. this.workStudent[i].push({
  14595. works: b[j].content,
  14596. sName: b[j].name,
  14597. score: b[j].score,
  14598. img: b[j].img,
  14599. type: 20,
  14600. time: b[j].time,
  14601. userid: b[j].userid,
  14602. wid: b[j].id,
  14603. });
  14604. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14605. //问卷
  14606. this.workStudent[i].push({
  14607. works: b[j].content,
  14608. sName: b[j].name,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. type: 2,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14617. //选择题
  14618. this.workStudent[i].push({
  14619. works: b[j].content,
  14620. sName: b[j].name,
  14621. score: b[j].score,
  14622. img: b[j].img,
  14623. type: 8,
  14624. time: b[j].time,
  14625. userid: b[j].userid,
  14626. wid: b[j].id,
  14627. });
  14628. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14629. //选择题
  14630. this.workStudent[i].push({
  14631. works: b[j].content,
  14632. sName: b[j].name,
  14633. score: b[j].score,
  14634. img: b[j].img,
  14635. type: 9,
  14636. time: b[j].time,
  14637. userid: b[j].userid,
  14638. wid: b[j].id,
  14639. });
  14640. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14641. //选择题
  14642. this.workStudent[i].push({
  14643. works: b[j].content,
  14644. sName: b[j].name,
  14645. score: b[j].score,
  14646. img: b[j].img,
  14647. type: 10,
  14648. time: b[j].time,
  14649. userid: b[j].userid,
  14650. wid: b[j].id,
  14651. });
  14652. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14653. //选择题
  14654. this.workStudent[i].push({
  14655. works: b[j].content,
  14656. sName: b[j].name,
  14657. score: b[j].score,
  14658. img: b[j].img,
  14659. type: 13,
  14660. time: b[j].time,
  14661. userid: b[j].userid,
  14662. wid: b[j].id,
  14663. });
  14664. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14665. //选择题
  14666. this.workStudent[i].push({
  14667. works: b[j].content,
  14668. sName: b[j].name,
  14669. score: b[j].score,
  14670. img: b[j].img,
  14671. type: 12,
  14672. time: b[j].time,
  14673. userid: b[j].userid,
  14674. wid: b[j].id,
  14675. });
  14676. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14677. //选择题
  14678. this.workStudent[i].push({
  14679. works: b[j].content,
  14680. sName: b[j].name,
  14681. score: b[j].score,
  14682. img: b[j].img,
  14683. type: 12,
  14684. time: b[j].time,
  14685. userid: b[j].userid,
  14686. wid: b[j].id,
  14687. });
  14688. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14689. //选择题
  14690. this.workStudent[i].push({
  14691. works: b[j].content,
  14692. sName: b[j].name,
  14693. score: b[j].score,
  14694. img: b[j].img,
  14695. type: 15,
  14696. time: b[j].time,
  14697. userid: b[j].userid,
  14698. wid: b[j].id,
  14699. });
  14700. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14701. //英语写作
  14702. this.workStudent[i].push({
  14703. works: b[j].content,
  14704. sName: b[j].name,
  14705. score: b[j].score,
  14706. img: b[j].img,
  14707. type: 16,
  14708. time: b[j].time,
  14709. userid: b[j].userid,
  14710. wid: b[j].id,
  14711. aiCode: b[j].aiCode,
  14712. teacherCode: b[j].teacherCode
  14713. });
  14714. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14715. //英语口语
  14716. this.workStudent[i].push({
  14717. works: b[j].content,
  14718. sName: b[j].name,
  14719. score: b[j].score,
  14720. img: b[j].img,
  14721. type: 17,
  14722. time: b[j].time,
  14723. userid: b[j].userid,
  14724. wid: b[j].id,
  14725. });
  14726. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14727. //英语口语
  14728. this.workStudent[i].push({
  14729. works: b[j].content,
  14730. sName: b[j].name,
  14731. score: b[j].score,
  14732. img: b[j].img,
  14733. type: 14,
  14734. time: b[j].time,
  14735. userid: b[j].userid,
  14736. wid: b[j].id,
  14737. });
  14738. }
  14739. }
  14740. }
  14741. }
  14742. })
  14743. .catch((err) => {
  14744. console.error(err);
  14745. });
  14746. },
  14747. openVideo(w) {
  14748. this.videoDetail = {};
  14749. this.playerOptions1.sources[0].src = w.works;
  14750. this.videoDetail = this.playerOptions1;
  14751. this.videoVisible = true;
  14752. },
  14753. isLikes(wid, uid, t, c, isLikes,sName) {
  14754. if (isLikes == false) {
  14755. let params = [
  14756. {
  14757. wid: wid,
  14758. lid: uid,
  14759. t: t,
  14760. c: c,
  14761. },
  14762. ];
  14763. this.ajax
  14764. .post(this.$store.state.api + "insertComment", params)
  14765. .then((res) => {
  14766. this.$message({
  14767. message: "点赞成功",
  14768. type: "success",
  14769. });
  14770. this.selectSWorks();
  14771. this.selectStudent();
  14772. if(this.tType==1){
  14773. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14774. }
  14775. })
  14776. .catch((err) => {
  14777. this.$message.error("点赞失败");
  14778. console.error(err);
  14779. });
  14780. } else {
  14781. let params = {
  14782. wid: wid,
  14783. lid: uid,
  14784. type: t,
  14785. };
  14786. this.ajax
  14787. .get(this.$store.state.api + "deleteComment", params)
  14788. .then((res) => {
  14789. this.$message({
  14790. message: "取消点赞成功",
  14791. type: "success",
  14792. });
  14793. this.selectSWorks();
  14794. this.selectStudent();
  14795. })
  14796. .catch((err) => {
  14797. console.error(err);
  14798. });
  14799. }
  14800. },
  14801. deleteComment(wid) {
  14802. this.$confirm("确定删除此评论吗?", "提示", {
  14803. confirmButtonText: "确定",
  14804. cancelButtonText: "取消",
  14805. type: "warning",
  14806. })
  14807. .then(() => {
  14808. let params = {
  14809. id: wid,
  14810. };
  14811. this.ajax
  14812. .get(this.$store.state.api + "deleteComment2", params)
  14813. .then((res) => {
  14814. this.$message({
  14815. message: "删除评论成功",
  14816. type: "success",
  14817. });
  14818. this.selectSWorks();
  14819. this.selectStudent();
  14820. })
  14821. .catch((err) => {
  14822. console.error(err);
  14823. });
  14824. })
  14825. .catch(() => {});
  14826. },
  14827. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14828. this.commentIndexJson = {
  14829. toolIndex: toolIndex,
  14830. wIndex: wIndex,
  14831. gindex: gindex,
  14832. gid: gid,
  14833. };
  14834. this.commentDetail = [];
  14835. this.commentDialogVisible = true;
  14836. this.commentDetail = w;
  14837. if (w.works && w.type == 1) {
  14838. // this.pptImgUrl = "";
  14839. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14840. if (
  14841. a.indexOf(
  14842. w.works
  14843. .split(".")
  14844. [w.works.split(".").length - 1].toLocaleUpperCase()
  14845. ) != -1
  14846. ) {
  14847. let _uuurl = await this.checkLink(w.works);
  14848. this.pptImgUrl =
  14849. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14850. this.showPDF = false;
  14851. } else if (
  14852. w.works
  14853. .split(".")
  14854. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14855. ) {
  14856. this.pptImgUrl = w.works;
  14857. this.showPDF = true;
  14858. }
  14859. } else if (w.works && w.type == 3) {
  14860. this.videoDetail = {};
  14861. this.playerOptions1.sources[0].src = w.works;
  14862. this.videoDetail = this.playerOptions1;
  14863. // this.videoVisible = true;
  14864. } else if (w.works && w.type == 4) {
  14865. this.eScore = JSON.parse(w.works);
  14866. this.rateJson =
  14867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14868. this.taskCount
  14869. ].toolChoose[toolIndex].rateJson;
  14870. } else if (w.works && w.type == 10) {
  14871. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14872. } else if (w.works && w.type == 13) {
  14873. this.wordJson =
  14874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14875. this.taskCount
  14876. ].toolChoose[toolIndex].wordJson;
  14877. }
  14878. },
  14879. async openScore(w, index) {
  14880. this.wScore = 0;
  14881. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14882. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14883. this.commentDetail = [];
  14884. if(w.type == 17){
  14885. this.dialogVisibleENScore = true;
  14886. }else{
  14887. this.dialogVisibleScore = true;
  14888. }
  14889. this.commentDetail = w;
  14890. if (w.works && w.type == 1) {
  14891. this.pptImgUrl = "";
  14892. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14893. if (
  14894. a.indexOf(
  14895. w.works
  14896. .split(".")
  14897. [w.works.split(".").length - 1].toLocaleUpperCase()
  14898. ) != -1
  14899. ) {
  14900. let _uuurl = await this.checkLink(w.works);
  14901. this.pptImgUrl =
  14902. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14903. this.showPDF = false;
  14904. } else if (
  14905. w.works
  14906. .split(".")
  14907. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14908. ) {
  14909. this.pptImgUrl = w.works;
  14910. this.showPDF = true;
  14911. }
  14912. } else if (w.works && w.type == 3) {
  14913. this.videoDetail = {};
  14914. this.playerOptions1.sources[0].src = w.works;
  14915. this.videoDetail = this.playerOptions1;
  14916. }else if(w.type == 17){
  14917. let englishVoiceJson = {}
  14918. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14919. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14920. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14921. .toolChoose[index].englishVoiceJson
  14922. : {};
  14923. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14924. }
  14925. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14926. },
  14927. addComment(wid, uid, t,detail) {
  14928. if (this.commentText == "") {
  14929. this.$message.error("请输入评论");
  14930. return;
  14931. }
  14932. let params2 = [
  14933. {
  14934. wid: wid,
  14935. lid: uid,
  14936. t: t,
  14937. },
  14938. ];
  14939. this.ajax
  14940. .post(this.$store.state.api + "getComment", params2)
  14941. .then((res) => {
  14942. if (res.data[0].length > 0) {
  14943. this.$message.error("一个作业只能评论一条");
  14944. } else {
  14945. let params = [
  14946. {
  14947. wid: wid,
  14948. lid: uid,
  14949. t: t,
  14950. c: this.commentText,
  14951. },
  14952. ];
  14953. this.ajax
  14954. .post(this.$store.state.api + "insertComment", params)
  14955. .then((res) => {
  14956. this.$message({
  14957. message: "评论成功",
  14958. type: "success",
  14959. });
  14960. this.commentText = "";
  14961. this.selectSWorks();
  14962. this.selectStudent();
  14963. if(this.tType!=2){
  14964. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14965. }
  14966. })
  14967. .catch((err) => {
  14968. this.$message.error("评论失败");
  14969. console.error(err);
  14970. });
  14971. }
  14972. })
  14973. .catch((err) => {
  14974. // this.$message.error("评论失败");
  14975. console.error(err);
  14976. });
  14977. },
  14978. scoreWork(wid,sName) {
  14979. if (this.wScore == 0) {
  14980. this.$message.error("请评分");
  14981. return;
  14982. }
  14983. let params = [
  14984. {
  14985. wid: wid,
  14986. score: JSON.stringify({
  14987. wScore: this.wScore,
  14988. detail: this.scoreDetail,
  14989. }),
  14990. },
  14991. ];
  14992. this.ajax
  14993. .post(this.$store.state.api + "scoreWork", params)
  14994. .then((res) => {
  14995. this.$message({
  14996. message: "评分成功",
  14997. type: "success",
  14998. });
  14999. this.wScore = 0;
  15000. this.scoreDetail = "";
  15001. this.dialogVisibleScore = false;
  15002. this.selectSWorks();
  15003. this.selectStudent();
  15004. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15005. })
  15006. .catch((err) => {
  15007. this.$message.error("评分失败");
  15008. console.error(err);
  15009. });
  15010. },
  15011. openXz(w, i) {
  15012. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15013. .taskJson[this.taskCount].toolChoose[i].selectJson
  15014. ? JSON.parse(
  15015. JSON.stringify(
  15016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15017. this.taskCount
  15018. ].toolChoose[i].selectJson
  15019. )
  15020. )
  15021. : { url: "", select: [], answer: [] };
  15022. var a = w.works.split(",");
  15023. for (var k = 0; k < a.length; k++) {
  15024. a[k] = parseInt(a[k]);
  15025. }
  15026. this.selectAnswer = { answer: a, stu: w.sName };
  15027. this.isSelect = true;
  15028. this.dialogVisibleSelect = true;
  15029. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15030. },
  15031. openSen(w, i) {
  15032. console.log("openSen")
  15033. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15034. this.sentenceList1 = JSON.parse(w.works);
  15035. this.sentenceList1.stuName = w.sName;
  15036. this.dialogVisibleSentence1 = true;
  15037. },
  15038. openPj(w, toolindex) {
  15039. console.log("openPJ")
  15040. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15041. this.isStar = true;
  15042. this.eScore = JSON.parse(w);
  15043. this.rateJson =
  15044. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15045. this.taskCount
  15046. ].toolChoose[toolindex].rateJson;
  15047. this.studentEvalDialogVisible = true;
  15048. },
  15049. openEnglishEva(id,i){
  15050. let params = {
  15051. wid: id
  15052. };
  15053. this.ajax
  15054. .get(this.$store.state.api + "selectEngWork", params)
  15055. .then((res) => {
  15056. this.evaEngJson.message = res.data[0][0];
  15057. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15058. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15059. .toolChoose[i].englishList;
  15060. this.engEvaDialogVisible = true;
  15061. })
  15062. .catch((err) => {
  15063. console.error(err);
  15064. });
  15065. },
  15066. deleteWorks(id) {
  15067. this.$confirm("确定删除此作业吗?", "提示", {
  15068. confirmButtonText: "确定",
  15069. cancelButtonText: "取消",
  15070. type: "warning",
  15071. })
  15072. .then(() => {
  15073. let params = [
  15074. {
  15075. id: id,
  15076. },
  15077. ];
  15078. this.ajax
  15079. .post(this.$store.state.api + "deleteCourseWork", params)
  15080. .then((res) => {
  15081. this.$message({
  15082. message: "删除成功",
  15083. type: "success",
  15084. });
  15085. this.selectStudent();
  15086. this.selectSWorks();
  15087. this.selectSLook();
  15088. })
  15089. .catch((err) => {
  15090. this.$message.error("网络异常");
  15091. console.error(err);
  15092. });
  15093. })
  15094. .catch(() => {});
  15095. },
  15096. selectSWorks(gindex) {
  15097. //教师查看全部作业
  15098. let params = {
  15099. cid: this.id,
  15100. s: this.courseType,
  15101. t: this.taskCount,
  15102. };
  15103. this.ajax
  15104. .get(this.$store.state.api + "selectSWorks", params)
  15105. .then((res) => {
  15106. var a =
  15107. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15108. this.taskCount
  15109. ].toolChoose;
  15110. var b = res.data[0];
  15111. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15112. var y = [
  15113. "AVI",
  15114. "NAVI",
  15115. "MPEG",
  15116. "ASF",
  15117. "MOV",
  15118. "WMV",
  15119. "3GP",
  15120. "RM",
  15121. "RMVB",
  15122. "FLV",
  15123. "F4V",
  15124. "H.264",
  15125. "H.265",
  15126. "REAL VIDEO",
  15127. "MKV",
  15128. "WebM",
  15129. "HDDVD",
  15130. "MP4",
  15131. "MPG",
  15132. "M4V",
  15133. "MGV",
  15134. "OGV",
  15135. "QTM",
  15136. "STR",
  15137. "AMC",
  15138. "DVX",
  15139. "EVO",
  15140. "DAT",
  15141. "OGG",
  15142. "OGM",
  15143. ];
  15144. var d = res.data[1];
  15145. var e = res.data[2];
  15146. var f = res.data[3];
  15147. let _worksStudent = [];
  15148. var _worksStudent2 = [];
  15149. for (var i = 0; i < a.length; i++) {
  15150. _worksStudent[i] = [];
  15151. _worksStudent2[i] = [];
  15152. if (
  15153. !this.isCloseList[i] ||
  15154. this.isCloseList[i].isClose == undefined
  15155. ) {
  15156. this.isCloseList[i] = { isClose: 0 };
  15157. }
  15158. this.groupStudent[i] = [];
  15159. this.groupStudentUid[i] = [];
  15160. if (this.isGroup) {
  15161. for (
  15162. var groupI = 0;
  15163. groupI < this.courseGroup.group.length;
  15164. groupI++
  15165. ) {
  15166. this.courseGroup.group[groupI].works[i] = [];
  15167. }
  15168. }
  15169. this.isWorksS[i] = [];
  15170. this.checkJson[i] = [];
  15171. if (a[i].tool[0] == 49) {
  15172. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15173. this.groupStudent[i][gA] = [];
  15174. this.groupStudentUid[i][gA] = [];
  15175. _worksStudent[i][gA] = [];
  15176. _worksStudent2[i][gA] = [];
  15177. this.isCloseList[i][gA] = [];
  15178. // debugger
  15179. for (var g = 0; g < f.length; g++) {
  15180. if (
  15181. f[g].ttype == 2 &&
  15182. this.tcid &&
  15183. this.arrayToArray(
  15184. (f[g].classid ? f[g].classid.split(",") : []),
  15185. this.tcid.split(",")
  15186. ).length == 0
  15187. ) {
  15188. continue;
  15189. }
  15190. let _classId = this.arrayToArray(
  15191. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15192. this.classId ? this.classId.split(",") : []
  15193. )
  15194. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15195. (f[g].classid ? f[g].classid.split(",") : []),
  15196. this.tcid.split(",")
  15197. ).length !== 0 || this.arrayToArray(
  15198. (f[g].classid ? f[g].classid.split(",") : []),
  15199. _classId
  15200. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15201. this.groupStudent[i][gA].push(f[g]);
  15202. this.groupStudentUid[i][gA].push(f[g].userid);
  15203. }
  15204. }
  15205. }
  15206. this.$forceUpdate();
  15207. }
  15208. for (var j = 0; j < b.length; j++) {
  15209. if (
  15210. b[j].ttype == 2 &&
  15211. this.tcid &&
  15212. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15213. .length == 0
  15214. ) {
  15215. continue;
  15216. }
  15217. var likesCount = 0;
  15218. var commentCount = 0;
  15219. var isLikes = false;
  15220. var commentJson = [];
  15221. var likeJson = [];
  15222. var data = b[j];
  15223. if (i == b[j].tool) {
  15224. if (data.type == 2 && a[i].tool[0] == 4) {
  15225. // if(JSON.parse(data.content)[0].anwer){
  15226. var checkL =
  15227. JSON.parse(data.content)[0].anwer instanceof Array
  15228. ? JSON.parse(data.content)[0].anwer
  15229. : JSON.parse(data.content)[0].anwer.split(",");
  15230. for (var z = 0; z < checkL.length; z++) {
  15231. if (!this.checkJson[i][z]) {
  15232. this.checkJson[i].push({
  15233. checkCount: [],
  15234. checkPerson: [],
  15235. rightPerson: [],
  15236. });
  15237. }
  15238. if (!this.checkJson[i][z].checkCount.length) {
  15239. this.checkJson[i][z].checkCount = [];
  15240. let _askItemCount = JSON.parse(data.content)[0].askJson
  15241. .askJson[z].askItem;
  15242. for (var aic = 0; aic < _askItemCount; aic++) {
  15243. this.checkJson[i][z].checkCount.push(0);
  15244. }
  15245. }
  15246. if (checkL[z] instanceof Array) {
  15247. if (
  15248. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15249. checkL[z].sort().join(",")
  15250. ) {
  15251. this.checkJson[i][z].rightPerson.push(data.name);
  15252. }
  15253. for (var q = 0; q < checkL[z].length; q++) {
  15254. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15255. ? this.checkJson[i][z].checkPerson[
  15256. parseInt(checkL[z][q])
  15257. ].push(data.name)
  15258. : (this.checkJson[i][z].checkPerson[
  15259. parseInt(checkL[z][q])
  15260. ] = [data.name]);
  15261. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15262. ? this.checkJson[i][z].checkCount[
  15263. parseInt(checkL[z][q])
  15264. ]++
  15265. : (this.checkJson[i][z].checkCount[
  15266. parseInt(checkL[z][q])
  15267. ] = 1);
  15268. }
  15269. } else {
  15270. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15271. this.checkJson[i][z].rightPerson.push(data.name);
  15272. }
  15273. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15274. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15275. ? this.checkJson[i][z].checkPerson[
  15276. parseInt(checkL[z])
  15277. ].push(data.name)
  15278. : (this.checkJson[i][z].checkPerson[
  15279. parseInt(checkL[z])
  15280. ] = [data.name]);
  15281. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15282. ? this.checkJson[i][z].checkCount[
  15283. parseInt(checkL[z])
  15284. ]++
  15285. : (this.checkJson[i][z].checkCount[
  15286. parseInt(checkL[z])
  15287. ] = 1);
  15288. }
  15289. }
  15290. }
  15291. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15292. var checkL = JSON.parse(data.content)[0].anwer;
  15293. for (var z = 0; z < checkL.length; z++) {
  15294. if (!this.checkJson[i][z]) {
  15295. this.checkJson[i].push({
  15296. checkCount: [],
  15297. checkPerson: [],
  15298. rightPerson: [],
  15299. });
  15300. }
  15301. if (!this.checkJson[i][z].checkCount.length) {
  15302. this.checkJson[i][z].checkCount = [];
  15303. let _askItemCount = JSON.parse(data.content)[0].testJson
  15304. .testJson[z].testItem;
  15305. for (var aic = 0; aic < _askItemCount; aic++) {
  15306. this.checkJson[i][z].checkCount.push(0);
  15307. }
  15308. }
  15309. if (checkL[z] instanceof Array) {
  15310. if (
  15311. JSON.parse(data.content)[0]
  15312. .testJson.testJson[z].answer.sort()
  15313. .join(",") == checkL[z].sort().join(",")
  15314. ) {
  15315. this.checkJson[i][z].rightPerson.push(data.name);
  15316. }
  15317. for (var q = 0; q < checkL[z].length; q++) {
  15318. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15319. ? this.checkJson[i][z].checkPerson[
  15320. parseInt(checkL[z][q])
  15321. ].push(data.name)
  15322. : (this.checkJson[i][z].checkPerson[
  15323. parseInt(checkL[z][q])
  15324. ] = [data.name]);
  15325. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15326. ? this.checkJson[i][z].checkCount[
  15327. parseInt(checkL[z][q])
  15328. ]++
  15329. : (this.checkJson[i][z].checkCount[
  15330. parseInt(checkL[z][q])
  15331. ] = 1);
  15332. }
  15333. } else {
  15334. if (
  15335. JSON.parse(data.content)[0].testJson.testJson[z]
  15336. .answer == checkL[z]
  15337. ) {
  15338. this.checkJson[i][z].rightPerson.push(data.name);
  15339. }
  15340. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15341. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15342. ? this.checkJson[i][z].checkPerson[
  15343. parseInt(checkL[z])
  15344. ].push(data.name)
  15345. : (this.checkJson[i][z].checkPerson[
  15346. parseInt(checkL[z])
  15347. ] = [data.name]);
  15348. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15349. ? this.checkJson[i][z].checkCount[
  15350. parseInt(checkL[z])
  15351. ]++
  15352. : (this.checkJson[i][z].checkCount[
  15353. parseInt(checkL[z])
  15354. ] = 1);
  15355. }
  15356. }
  15357. }
  15358. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15359. var checkL = JSON.parse(data.content);
  15360. for (var z = 0; z < checkL.length; z++) {
  15361. if (!this.checkJson[i][z]) {
  15362. this.checkJson[i].push({
  15363. checkCount: [],
  15364. checkPerson: [],
  15365. rightPerson: [],
  15366. });
  15367. }
  15368. this.checkJson[i][z].checkPerson.push(data.name);
  15369. if (
  15370. checkL[z].chooseSenList.toString() ==
  15371. checkL[z].rightAnswer.toString()
  15372. ) {
  15373. this.checkJson[i][z].rightPerson.push(data.name);
  15374. }
  15375. }
  15376. }
  15377. for (var k = 0; k < d.length; k++) {
  15378. //点赞
  15379. if (d[k].workId == b[j].id) {
  15380. likesCount++;
  15381. likeJson.push(d[k])
  15382. if (d[k].likesId == this.userid) {
  15383. isLikes = true;
  15384. }
  15385. }
  15386. }
  15387. for (var l = 0; l < e.length; l++) {
  15388. //评论
  15389. if (e[l].workId == b[j].id) {
  15390. if (e[l].comment != "") {
  15391. commentCount++;
  15392. commentJson.push({
  15393. commentText: e[l].comment,
  15394. commentTime: e[l].commentTime,
  15395. commentPeople: e[l].commentPeople,
  15396. userid: e[l].userid,
  15397. wid: e[l].id,
  15398. });
  15399. }
  15400. }
  15401. }
  15402. if (
  15403. (b[j].type == 1 ||
  15404. b[j].type == 4 ||
  15405. b[j].type == 5 ||
  15406. b[j].type == 6 ||
  15407. b[j].type == 12 ||
  15408. b[j].type == 7) &&
  15409. a[i].tool[0] != 15 &&
  15410. a[i].tool[0] != 4 &&
  15411. a[i].tool[0] != 45 &&
  15412. a[i].tool[0] != 50 &&
  15413. a[i].tool[0] != 32 &&
  15414. a[i].tool[0] != 57 &&
  15415. a[i].tool[0] != 52
  15416. ) {
  15417. if (
  15418. c.indexOf(
  15419. b[j].content
  15420. .split(".")
  15421. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15422. ) != -1 &&
  15423. a[i].tool[0] == 16 &&
  15424. b[j].atool != 50
  15425. ) {
  15426. let _works = {
  15427. userid: b[j].userid,
  15428. ateacher: b[j].ateacher,
  15429. wid: b[j].id,
  15430. works: b[j].content,
  15431. sName: b[j].name,
  15432. type: 1,
  15433. ttype:b[j].ttype,
  15434. time: b[j].time,
  15435. score: b[j].score,
  15436. img: b[j].img,
  15437. likesCount: likesCount,
  15438. commentCount: commentCount,
  15439. isLikes: isLikes,
  15440. commentJson: commentJson,
  15441. likeJson:likeJson
  15442. };
  15443. if (this.isGroup) {
  15444. let isGw = 1;
  15445. for (
  15446. var groupI = 0;
  15447. groupI < this.courseGroup.group.length;
  15448. groupI++
  15449. ) {
  15450. let gid = this.courseGroup.group[groupI].id;
  15451. if (
  15452. this.courseGroupStudentUid[gid].indexOf(
  15453. b[j].userid
  15454. ) != -1
  15455. ) {
  15456. isGw = 2;
  15457. this.courseGroup.group[groupI].works[i].push(_works);
  15458. break;
  15459. }
  15460. }
  15461. if (isGw == 1) {
  15462. _worksStudent[i].push(_works);
  15463. }
  15464. } else {
  15465. _worksStudent[i].push(_works);
  15466. }
  15467. _worksStudent2[i].push(_works);
  15468. this.isWorksS[i].push({
  15469. uid: b[j].userid,
  15470. sName: b[j].name,
  15471. });
  15472. } else if (
  15473. y.indexOf(
  15474. b[j].content
  15475. .split(".")
  15476. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15477. ) != -1 &&
  15478. a[i].tool[0] == 16 &&
  15479. b[j].atool != 50
  15480. ) {
  15481. let _works = {
  15482. userid: b[j].userid,
  15483. ateacher: b[j].ateacher,
  15484. wid: b[j].id,
  15485. works: b[j].content,
  15486. sName: b[j].name,
  15487. type: 3,
  15488. ttype:b[j].ttype,
  15489. time: b[j].time,
  15490. score: b[j].score,
  15491. img: b[j].img,
  15492. likesCount: likesCount,
  15493. commentCount: commentCount,
  15494. isLikes: isLikes,
  15495. commentJson: commentJson,
  15496. likeJson:likeJson
  15497. };
  15498. if (this.isGroup) {
  15499. let isGw = 1;
  15500. for (
  15501. var groupI = 0;
  15502. groupI < this.courseGroup.group.length;
  15503. groupI++
  15504. ) {
  15505. let gid = this.courseGroup.group[groupI].id;
  15506. if (
  15507. this.courseGroupStudentUid[gid].indexOf(
  15508. b[j].userid
  15509. ) != -1
  15510. ) {
  15511. isGw = 2;
  15512. this.courseGroup.group[groupI].works[i].push(_works);
  15513. break;
  15514. }
  15515. }
  15516. if (isGw == 1) {
  15517. _worksStudent[i].push(_works);
  15518. }
  15519. } else {
  15520. _worksStudent[i].push(_works);
  15521. }
  15522. _worksStudent2[i].push(_works);
  15523. this.isWorksS[i].push({
  15524. uid: b[j].userid,
  15525. sName: b[j].name,
  15526. });
  15527. } else if (b[j].type == 6 && b[j].atool != 50) {
  15528. let _works = {
  15529. userid: b[j].userid,
  15530. ateacher: b[j].ateacher,
  15531. wid: b[j].id,
  15532. works: b[j].content,
  15533. sName: b[j].name,
  15534. type: 4,
  15535. ttype:b[j].ttype,
  15536. time: b[j].time,
  15537. score: b[j].score,
  15538. img: b[j].img,
  15539. likesCount: likesCount,
  15540. commentCount: commentCount,
  15541. isLikes: isLikes,
  15542. commentJson: commentJson,
  15543. likeJson:likeJson
  15544. };
  15545. _worksStudent[i].push(_works);
  15546. _worksStudent2[i].push(_works);
  15547. this.isWorksS[i].push({
  15548. uid: b[j].userid,
  15549. sName: b[j].name,
  15550. });
  15551. } else if (b[j].type == 7 && b[j].atool != 50) {
  15552. let _work = {
  15553. userid: b[j].userid,
  15554. ateacher: b[j].ateacher,
  15555. wid: b[j].id,
  15556. works: b[j].content,
  15557. sName: b[j].name,
  15558. type: 5,
  15559. ttype:b[j].ttype,
  15560. time: b[j].time,
  15561. score: b[j].score,
  15562. img: b[j].img,
  15563. likesCount: likesCount,
  15564. commentCount: commentCount,
  15565. isLikes: isLikes,
  15566. commentJson: commentJson,
  15567. likeJson:likeJson
  15568. };
  15569. _worksStudent[i].push(_work);
  15570. _worksStudent2[i].push(_work);
  15571. this.isWorksS[i].push({
  15572. uid: b[j].userid,
  15573. sName: b[j].name,
  15574. });
  15575. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15576. let _works = {
  15577. userid: b[j].userid,
  15578. ateacher: b[j].ateacher,
  15579. wid: b[j].id,
  15580. works: b[j].content,
  15581. sName: b[j].name,
  15582. type: 12,
  15583. ttype:b[j].ttype,
  15584. time: b[j].time,
  15585. score: b[j].score,
  15586. img: b[j].img,
  15587. likesCount: likesCount,
  15588. commentCount: commentCount,
  15589. isLikes: isLikes,
  15590. commentJson: commentJson,
  15591. likeJson:likeJson
  15592. };
  15593. if (this.isGroup) {
  15594. let isGw = 1;
  15595. for (
  15596. var groupI = 0;
  15597. groupI < this.courseGroup.group.length;
  15598. groupI++
  15599. ) {
  15600. let gid = this.courseGroup.group[groupI].id;
  15601. if (
  15602. this.courseGroupStudentUid[gid].indexOf(
  15603. b[j].userid
  15604. ) != -1
  15605. ) {
  15606. isGw = 2;
  15607. this.courseGroup.group[groupI].works[i].push(_works);
  15608. break;
  15609. }
  15610. }
  15611. if (isGw == 1) {
  15612. _worksStudent[i].push(_works);
  15613. }
  15614. } else {
  15615. _worksStudent[i].push(_works);
  15616. }
  15617. _worksStudent2[i].push(_works);
  15618. this.isWorksS[i].push({
  15619. uid: b[j].userid,
  15620. sName: b[j].name,
  15621. });
  15622. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15623. let _works = {
  15624. userid: b[j].userid,
  15625. ateacher: b[j].ateacher,
  15626. wid: b[j].id,
  15627. works: b[j].content,
  15628. sName: b[j].name,
  15629. type: 0,
  15630. ttype:b[j].ttype,
  15631. time: b[j].time,
  15632. score: b[j].score,
  15633. img: b[j].img,
  15634. likesCount: likesCount,
  15635. commentCount: commentCount,
  15636. isLikes: isLikes,
  15637. commentJson: commentJson,
  15638. likeJson:likeJson
  15639. };
  15640. if (this.isGroup) {
  15641. let isGw = 1;
  15642. for (
  15643. var groupI = 0;
  15644. groupI < this.courseGroup.group.length;
  15645. groupI++
  15646. ) {
  15647. let gid = this.courseGroup.group[groupI].id;
  15648. if (
  15649. this.courseGroupStudentUid[gid].indexOf(
  15650. b[j].userid
  15651. ) != -1
  15652. ) {
  15653. isGw = 2;
  15654. this.courseGroup.group[groupI].works[i].push(_works);
  15655. break;
  15656. }
  15657. }
  15658. if (isGw == 1) {
  15659. _worksStudent[i].push(_works);
  15660. }
  15661. } else {
  15662. _worksStudent[i].push(_works);
  15663. }
  15664. _worksStudent2[i].push(_works);
  15665. this.isWorksS[i].push({
  15666. uid: b[j].userid,
  15667. sName: b[j].name,
  15668. });
  15669. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15670. let _works = {
  15671. userid: b[j].userid,
  15672. ateacher: b[j].ateacher,
  15673. wid: b[j].id,
  15674. works: b[j].content,
  15675. sName: b[j].name,
  15676. type: 0,
  15677. ttype:b[j].ttype,
  15678. time: b[j].time,
  15679. score: b[j].score,
  15680. img: b[j].img,
  15681. likesCount: likesCount,
  15682. commentCount: commentCount,
  15683. isLikes: isLikes,
  15684. commentJson: commentJson,
  15685. likeJson:likeJson
  15686. };
  15687. if (this.isGroup) {
  15688. let isGw = 1;
  15689. for (
  15690. var groupI = 0;
  15691. groupI < this.courseGroup.group.length;
  15692. groupI++
  15693. ) {
  15694. let gid = this.courseGroup.group[groupI].id;
  15695. if (
  15696. this.courseGroupStudentUid[gid].indexOf(
  15697. b[j].userid
  15698. ) != -1
  15699. ) {
  15700. isGw = 2;
  15701. this.courseGroup.group[groupI].works[i].push(_works);
  15702. break;
  15703. }
  15704. }
  15705. if (isGw == 1) {
  15706. _worksStudent[i].push(_works);
  15707. }
  15708. } else {
  15709. _worksStudent[i].push(_works);
  15710. }
  15711. _worksStudent2[i].push(_works);
  15712. this.isWorksS[i].push({
  15713. uid: b[j].userid,
  15714. sName: b[j].name,
  15715. });
  15716. }
  15717. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15718. let _works = {
  15719. userid: b[j].userid,
  15720. ateacher: b[j].ateacher,
  15721. wid: b[j].id,
  15722. works: b[j].content,
  15723. sName: b[j].name,
  15724. type: 2,
  15725. ttype:b[j].ttype,
  15726. time: b[j].time,
  15727. score: b[j].score,
  15728. img: b[j].img,
  15729. likesCount: likesCount,
  15730. commentCount: commentCount,
  15731. isLikes: isLikes,
  15732. commentJson: commentJson,
  15733. likeJson:likeJson
  15734. };
  15735. if (this.isGroup) {
  15736. let isGw = 1;
  15737. for (
  15738. var groupI = 0;
  15739. groupI < this.courseGroup.group.length;
  15740. groupI++
  15741. ) {
  15742. let gid = this.courseGroup.group[groupI].id;
  15743. if (
  15744. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15745. -1
  15746. ) {
  15747. isGw = 2;
  15748. this.courseGroup.group[groupI].works[i].push(_works);
  15749. break;
  15750. }
  15751. }
  15752. if (isGw == 1) {
  15753. _worksStudent[i].push(_works);
  15754. }
  15755. } else {
  15756. _worksStudent[i].push(_works);
  15757. }
  15758. _worksStudent2[i].push(_works);
  15759. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15760. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15761. let _works = {
  15762. userid: b[j].userid,
  15763. ateacher: b[j].ateacher,
  15764. wid: b[j].id,
  15765. works: b[j].content,
  15766. sName: b[j].name,
  15767. type: 20,
  15768. ttype:b[j].ttype,
  15769. time: b[j].time,
  15770. score: b[j].score,
  15771. img: b[j].img,
  15772. likesCount: likesCount,
  15773. commentCount: commentCount,
  15774. isLikes: isLikes,
  15775. commentJson: commentJson,
  15776. likeJson:likeJson
  15777. };
  15778. if (this.isGroup) {
  15779. let isGw = 1;
  15780. for (
  15781. var groupI = 0;
  15782. groupI < this.courseGroup.group.length;
  15783. groupI++
  15784. ) {
  15785. let gid = this.courseGroup.group[groupI].id;
  15786. if (
  15787. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15788. -1
  15789. ) {
  15790. isGw = 2;
  15791. this.courseGroup.group[groupI].works[i].push(_works);
  15792. break;
  15793. }
  15794. }
  15795. if (isGw == 1) {
  15796. _worksStudent[i].push(_works);
  15797. }
  15798. } else {
  15799. _worksStudent[i].push(_works);
  15800. }
  15801. _worksStudent2[i].push(_works);
  15802. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15803. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15804. //问卷
  15805. let _work = {
  15806. userid: b[j].userid,
  15807. ateacher: b[j].ateacher,
  15808. wid: b[j].id,
  15809. works: b[j].content,
  15810. sName: b[j].name,
  15811. type: 2,
  15812. ttype:b[j].ttype,
  15813. time: b[j].time,
  15814. score: b[j].score,
  15815. img: b[j].img,
  15816. likesCount: likesCount,
  15817. commentCount: commentCount,
  15818. isLikes: isLikes,
  15819. commentJson: commentJson,
  15820. likeJson:likeJson
  15821. };
  15822. _worksStudent[i].push(_work);
  15823. _worksStudent2[i].push(_work);
  15824. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15825. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15826. //选择题
  15827. let _work = {
  15828. userid: b[j].userid,
  15829. ateacher: b[j].ateacher,
  15830. wid: b[j].id,
  15831. works: b[j].content,
  15832. sName: b[j].name,
  15833. type: 8,
  15834. ttype:b[j].ttype,
  15835. time: b[j].time,
  15836. score: b[j].score,
  15837. img: b[j].img,
  15838. likesCount: likesCount,
  15839. commentCount: commentCount,
  15840. isLikes: isLikes,
  15841. commentJson: commentJson,
  15842. likeJson:likeJson
  15843. };
  15844. _worksStudent[i].push(_work);
  15845. _worksStudent2[i].push(_work);
  15846. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15847. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15848. //选择题
  15849. let _work = {
  15850. userid: b[j].userid,
  15851. ateacher: b[j].ateacher,
  15852. wid: b[j].id,
  15853. works: b[j].content,
  15854. sName: b[j].name,
  15855. type: 9,
  15856. ttype:b[j].ttype,
  15857. time: b[j].time,
  15858. score: b[j].score,
  15859. img: b[j].img,
  15860. likesCount: likesCount,
  15861. commentCount: commentCount,
  15862. isLikes: isLikes,
  15863. commentJson: commentJson,
  15864. likeJson:likeJson
  15865. };
  15866. _worksStudent[i].push(_work);
  15867. _worksStudent2[i].push(_work);
  15868. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15869. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15870. //选择题
  15871. let _work = {
  15872. userid: b[j].userid,
  15873. ateacher: b[j].ateacher,
  15874. wid: b[j].id,
  15875. works: b[j].content,
  15876. sName: b[j].name,
  15877. type: 10,
  15878. ttype:b[j].ttype,
  15879. time: b[j].time,
  15880. score: b[j].score,
  15881. img: b[j].img,
  15882. likesCount: likesCount,
  15883. commentCount: commentCount,
  15884. isLikes: isLikes,
  15885. commentJson: commentJson,
  15886. likeJson:likeJson
  15887. };
  15888. _worksStudent[i].push(_work);
  15889. _worksStudent2[i].push(_work);
  15890. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15891. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15892. //选择题
  15893. let _work = {
  15894. userid: b[j].userid,
  15895. ateacher: b[j].ateacher,
  15896. wid: b[j].id,
  15897. works: b[j].content,
  15898. sName: b[j].name,
  15899. type: 13,
  15900. ttype:b[j].ttype,
  15901. time: b[j].time,
  15902. score: b[j].score,
  15903. img: b[j].img,
  15904. likesCount: likesCount,
  15905. commentCount: commentCount,
  15906. isLikes: isLikes,
  15907. commentJson: commentJson,
  15908. likeJson:likeJson
  15909. };
  15910. _worksStudent[i].push(_work);
  15911. _worksStudent2[i].push(_work);
  15912. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15913. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15914. //选择题
  15915. let _work = {
  15916. userid: b[j].userid,
  15917. ateacher: b[j].ateacher,
  15918. wid: b[j].id,
  15919. works: b[j].content,
  15920. sName: b[j].name,
  15921. type: 16,
  15922. ttype:b[j].ttype,
  15923. time: b[j].time,
  15924. score: b[j].score,
  15925. img: b[j].img,
  15926. likesCount: likesCount,
  15927. commentCount: commentCount,
  15928. isLikes: isLikes,
  15929. commentJson: commentJson,
  15930. aiCode: b[j].aiCode,
  15931. teacherCode: b[j].teacherCode,
  15932. likeJson:likeJson
  15933. };
  15934. _worksStudent[i].push(_work);
  15935. _worksStudent2[i].push(_work);
  15936. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15937. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15938. //英语口语
  15939. let _work = {
  15940. userid: b[j].userid,
  15941. ateacher: b[j].ateacher,
  15942. wid: b[j].id,
  15943. works: b[j].content,
  15944. sName: b[j].name,
  15945. type: 17,
  15946. ttype:b[j].ttype,
  15947. time: b[j].time,
  15948. score: b[j].score,
  15949. img: b[j].img,
  15950. likesCount: likesCount,
  15951. commentCount: commentCount,
  15952. isLikes: isLikes,
  15953. commentJson: commentJson,
  15954. likeJson:likeJson
  15955. };
  15956. _worksStudent[i].push(_work);
  15957. _worksStudent2[i].push(_work);
  15958. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15959. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15960. //交互视频
  15961. let _work = {
  15962. userid: b[j].userid,
  15963. ateacher: b[j].ateacher,
  15964. wid: b[j].id,
  15965. works: b[j].content,
  15966. sName: b[j].name,
  15967. type: 14,
  15968. ttype:b[j].ttype,
  15969. time: b[j].time,
  15970. score: b[j].score,
  15971. img: b[j].img,
  15972. likesCount: likesCount,
  15973. commentCount: commentCount,
  15974. isLikes: isLikes,
  15975. commentJson: commentJson,
  15976. likeJson:likeJson
  15977. };
  15978. _worksStudent[i].push(_work);
  15979. _worksStudent2[i].push(_work);
  15980. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15981. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15982. let _gindex = JSON.parse(b[j].content);
  15983. if (
  15984. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15985. b[j].userid
  15986. ) != -1
  15987. ) {
  15988. let _work = {
  15989. userid: b[j].userid,
  15990. ateacher: b[j].ateacher,
  15991. wid: b[j].id,
  15992. works: _gindex.url,
  15993. sName: b[j].name,
  15994. type: _gindex.type,
  15995. ttype:b[j].ttype,
  15996. time: b[j].time,
  15997. score: b[j].score,
  15998. img: b[j].img,
  15999. likesCount: likesCount,
  16000. commentCount: commentCount,
  16001. isLikes: isLikes,
  16002. commentJson: commentJson,
  16003. likeJson:likeJson
  16004. };
  16005. _worksStudent[i][_gindex.groupIndex].push(_work);
  16006. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16007. }
  16008. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16009. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16010. let _work = {
  16011. userid: b[j].userid,
  16012. ateacher: b[j].ateacher,
  16013. wid: b[j].id,
  16014. works: b[j].content,
  16015. sName: b[j].name ? b[j].name : b[j].userid,
  16016. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16017. ttype:b[j].ttype,
  16018. time: b[j].time,
  16019. score: b[j].score,
  16020. img: b[j].img,
  16021. likesCount: likesCount,
  16022. commentCount: commentCount,
  16023. isLikes: isLikes,
  16024. commentJson: commentJson,
  16025. likeJson:likeJson
  16026. };
  16027. _worksStudent[i].push(_work);
  16028. _worksStudent2[i].push(_work);
  16029. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16030. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16031. let _work = {
  16032. userid: b[j].userid,
  16033. ateacher: b[j].ateacher,
  16034. wid: b[j].id,
  16035. works: b[j].content,
  16036. sName: b[j].name ? b[j].name : b[j].userid,
  16037. type: 12,
  16038. ttype:b[j].ttype,
  16039. time: b[j].time,
  16040. score: b[j].score,
  16041. img: b[j].img,
  16042. likesCount: likesCount,
  16043. commentCount: commentCount,
  16044. isLikes: isLikes,
  16045. commentJson: commentJson,
  16046. likeJson:likeJson
  16047. };
  16048. _worksStudent[i].push(_work);
  16049. _worksStudent2[i].push(_work);
  16050. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16051. } else if (
  16052. a[i].tool[0] == 57 &&
  16053. b[j].atool == 57 &&
  16054. b[j].type == 12
  16055. ) {
  16056. let _work = {
  16057. userid: b[j].userid,
  16058. ateacher: b[j].ateacher,
  16059. wid: b[j].id,
  16060. works: b[j].content,
  16061. sName: b[j].name ? b[j].name : b[j].userid,
  16062. type: 12,
  16063. ttype:b[j].ttype,
  16064. time: b[j].time,
  16065. score: b[j].score,
  16066. img: b[j].img,
  16067. likesCount: likesCount,
  16068. commentCount: commentCount,
  16069. isLikes: isLikes,
  16070. commentJson: commentJson,
  16071. likeJson:likeJson
  16072. };
  16073. _worksStudent[i].push(_work);
  16074. _worksStudent2[i].push(_work);
  16075. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16076. } else if (
  16077. a[i].tool[0] == 57 &&
  16078. b[j].atool == 57 &&
  16079. b[j].type == 15
  16080. ) {
  16081. let _work = {
  16082. userid: b[j].userid,
  16083. ateacher: b[j].ateacher,
  16084. wid: b[j].id,
  16085. works: b[j].content,
  16086. sName: b[j].name ? b[j].name : b[j].userid,
  16087. type: 15,
  16088. ttype:b[j].ttype,
  16089. time: b[j].time,
  16090. score: b[j].score,
  16091. img: b[j].img,
  16092. likesCount: likesCount,
  16093. commentCount: commentCount,
  16094. isLikes: isLikes,
  16095. commentJson: commentJson,
  16096. likeJson:likeJson
  16097. };
  16098. _worksStudent[i].push(_work);
  16099. _worksStudent2[i].push(_work);
  16100. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16101. }
  16102. }
  16103. }
  16104. if (_worksStudent[i] && _worksStudent[i].length) {
  16105. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16106. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16107. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16108. var scoreA = parseFloat(jscoreA);
  16109. var scoreB = parseFloat(jscoreB);
  16110. if (scoreA == scoreB) {
  16111. return b.likesCount - a.likesCount;
  16112. }
  16113. return scoreB - scoreA;
  16114. });
  16115. if (this.isGroup) {
  16116. for (
  16117. var groupI = 0;
  16118. groupI < this.courseGroup.group.length;
  16119. groupI++
  16120. ) {
  16121. this.courseGroup.group[groupI].works[i] =
  16122. this.courseGroup.group[groupI].works[i].sort(function (
  16123. a,
  16124. b
  16125. ) {
  16126. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16127. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16128. var scoreA = parseFloat(jscoreA);
  16129. var scoreB = parseFloat(jscoreB);
  16130. if (scoreA == scoreB) {
  16131. return b.likesCount - a.likesCount;
  16132. }
  16133. return scoreB - scoreA;
  16134. });
  16135. }
  16136. }
  16137. }
  16138. }
  16139. this.timeWorkList = _worksStudent2;
  16140. for (var i = 0; i < a.length; i++) {
  16141. for (var j = 0; j < b.length; j++) {
  16142. var data = b[j];
  16143. if (i == b[j].tool) {
  16144. if (data.type == 2 || data.type == 8) {
  16145. for (var z = 0; z < this.checkJson[i].length; z++) {
  16146. this.checkJson[i][z].checkPerent = [];
  16147. this.checkJson[i][z].right = Math.round(
  16148. (this.checkJson[i][z].rightPerson.length /
  16149. parseInt(_worksStudent[i].length)) *
  16150. 100
  16151. );
  16152. let aaaa = this.checkJson[i][z];
  16153. for (
  16154. var k = 0;
  16155. k < this.checkJson[i][z].checkCount.length;
  16156. k++
  16157. ) {
  16158. this.checkJson[i][z].checkPerent.push(
  16159. Math.round(
  16160. (this.checkJson[i][z].checkCount[k] /
  16161. parseInt(_worksStudent[i].length)) *
  16162. 100
  16163. )
  16164. );
  16165. }
  16166. }
  16167. } else if (data.type == 9) {
  16168. for (var z = 0; z < this.checkJson[i].length; z++) {
  16169. this.checkJson[i][z].checkPerent = [];
  16170. this.checkJson[i][z].right = Math.round(
  16171. (this.checkJson[i][z].rightPerson.length /
  16172. this.checkJson[i][z].checkPerson.length) *
  16173. 100
  16174. );
  16175. }
  16176. }
  16177. }
  16178. }
  16179. }
  16180. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16181. this.joinGroup(gindex);
  16182. }
  16183. this.worksStudent = _worksStudent;
  16184. this.selectWorksStudent();
  16185. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16186. this.$nextTick(()=>{
  16187. setTimeout(()=>{
  16188. setTimeout(()=>{
  16189. this.panToolHeight('tool-'+ci);
  16190. }, 500)
  16191. }, 0)
  16192. })
  16193. }
  16194. })
  16195. .catch((err) => {
  16196. console.error(err);
  16197. });
  16198. },
  16199. pngToWhiteBg(file) {
  16200. const _file = file;
  16201. let read = new FileReader();
  16202. read.readAsDataURL(file); // 文件转base64
  16203. return new Promise((resolve, reject) => {
  16204. read.onload = (e) => {
  16205. let img = new Image();
  16206. img.src = e.target.result;
  16207. img.onload = async () => {
  16208. // 生成canvas
  16209. let canvas = document.createElement("canvas");
  16210. let context = canvas.getContext("2d");
  16211. // 绘制图片到canvas上
  16212. canvas.width = img.width;
  16213. canvas.height = img.height;
  16214. // 在canvas绘制前填充白色背景
  16215. context.fillStyle = "#fff";
  16216. context.fillRect(0, 0, canvas.width, canvas.height);
  16217. context.drawImage(img, 0, 0);
  16218. let base64 = canvas.toDataURL(file["type"], 1);
  16219. let newFile = this.dataUrlToFile(base64, _file);
  16220. resolve(newFile);
  16221. };
  16222. };
  16223. });
  16224. },
  16225. dataUrlToFile(dataurl, file) {
  16226. let arr = dataurl.split(","),
  16227. mime = arr[0].match(/:(.*?);/)[1],
  16228. bstr = atob(arr[1]),
  16229. n = bstr.length,
  16230. u8arr = new Uint8Array(n);
  16231. while (n--) {
  16232. u8arr[n] = bstr.charCodeAt(n);
  16233. }
  16234. // return new Blob([u8arr], { type: mime });
  16235. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16236. type: mime,
  16237. });
  16238. },
  16239. async beforeUpload1(event, type, i) {
  16240. // this.$message.success('进入上传')
  16241. var file = "";
  16242. if (type == 5) {
  16243. file = event;
  16244. } else {
  16245. file = event.target.files[0];
  16246. }
  16247. var credentials = {
  16248. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16249. secretAccessKey: "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",
  16250. }; //秘钥形式的登录上传
  16251. window.AWS.config.update(credentials);
  16252. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16253. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16254. var _this = this;
  16255. _this.progress = 0;
  16256. _this.proVisible = true;
  16257. _this.isFinishSize = 0;
  16258. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16259. var b = [
  16260. "DOC",
  16261. "DOCX",
  16262. "DOCM",
  16263. "DOTM",
  16264. "DOTX",
  16265. "PPTX",
  16266. "PPSX",
  16267. "PPT",
  16268. "PPS",
  16269. "PPTM",
  16270. "POTM",
  16271. "PPAM",
  16272. "POTX",
  16273. "PPSM",
  16274. ];
  16275. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16276. var photoA = [
  16277. "BMP",
  16278. "GIF",
  16279. "PNG",
  16280. "JPEG",
  16281. "JPEG",
  16282. "JPG",
  16283. "TIF",
  16284. "PCX",
  16285. "TGA",
  16286. "EXIF",
  16287. "FPX",
  16288. "SVG",
  16289. "APNG",
  16290. ];
  16291. // if (
  16292. // b.indexOf(
  16293. // file.name
  16294. // .split(".")
  16295. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16296. // ) != -1
  16297. // ) {
  16298. // if (file.size / 1024 / 1024 > 10) {
  16299. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16300. // return;
  16301. // }
  16302. // } else if (
  16303. // excelA.indexOf(
  16304. // file.name
  16305. // .split(".")
  16306. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16307. // ) != "-1"
  16308. // ) {
  16309. // if (file.size / 1024 / 1024 > 5) {
  16310. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16311. // return;
  16312. // }
  16313. // }
  16314. if (
  16315. photoA.indexOf(
  16316. file.name
  16317. .split(".")
  16318. [file.name.split(".").length - 1].toLocaleUpperCase()
  16319. ) != -1 &&
  16320. type != 4
  16321. ) {
  16322. // const blob = await imageConversion.compress(file, 0.8)
  16323. file = await this.pngToWhiteBg(file);
  16324. const blob = await imageConversion.compressAccurately(file, 256);
  16325. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16326. file = new File([blob], file.name, { type: file.type });
  16327. }
  16328. if (file) {
  16329. var params = {
  16330. Key:
  16331. file.name.split(".")[0] +
  16332. new Date().getTime() +
  16333. "." +
  16334. file.name.split(".")[file.name.split(".").length - 1],
  16335. ContentType: file.type,
  16336. Body: file,
  16337. "Access-Control-Allow-Credentials": "*",
  16338. ACL: "public-read",
  16339. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16340. var options = {
  16341. // partSize: 2048 * 1024 * 1024,
  16342. partSize: 1024 * 1024 * 1024,
  16343. queueSize: 2,
  16344. leavePartsOnError: true,
  16345. };
  16346. bucket
  16347. .upload(params, options)
  16348. .on("httpUploadProgress", function (evt) {
  16349. //这里可以写进度条
  16350. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16351. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16352. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16353. })
  16354. .send(function (err, data) {
  16355. _this.progress = 100;
  16356. _this.isFinishSize = _this.isAllSize;
  16357. setTimeout(() => {
  16358. _this.proVisible = false;
  16359. }, 1000);
  16360. if (err) {
  16361. var a = _this.$refs.upload1.uploadFiles;
  16362. a.splice(a.length - 1, a.length);
  16363. _this.$message.error("上传失败");
  16364. } else {
  16365. // _this.$message.success('上传成功')
  16366. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16367. var c = [
  16368. "AVI",
  16369. "NAVI",
  16370. "MPEG",
  16371. "ASF",
  16372. "MOV",
  16373. "WMV",
  16374. "3GP",
  16375. "RM",
  16376. "RMVB",
  16377. "FLV",
  16378. "F4V",
  16379. "H.264",
  16380. "H.265",
  16381. "REAL VIDEO",
  16382. "MKV",
  16383. "WebM",
  16384. "HDDVD",
  16385. "MP4",
  16386. "MPG",
  16387. "M4V",
  16388. "MGV",
  16389. "OGV",
  16390. "QTM",
  16391. "STR",
  16392. "AMC",
  16393. "DVX",
  16394. "EVO",
  16395. "DAT",
  16396. "OGG",
  16397. "OGM",
  16398. ];
  16399. if (type == 1) {
  16400. _this.studyJuri[0].cover.push({
  16401. name: file.name,
  16402. url: data.Location,
  16403. uid: file.uid,
  16404. });
  16405. if (
  16406. c.indexOf(
  16407. _this.studyJuri[0].cover[0].url
  16408. .split(".")
  16409. [
  16410. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16411. ].toLocaleUpperCase()
  16412. ) != -1
  16413. ) {
  16414. _this.fileType = 2;
  16415. } else if (
  16416. b.indexOf(
  16417. _this.studyJuri[0].cover[0].url
  16418. .split(".")
  16419. [
  16420. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16421. ].toLocaleUpperCase()
  16422. ) != -1
  16423. ) {
  16424. _this.fileType = 1;
  16425. } else if (
  16426. photoA.indexOf(
  16427. _this.studyJuri[0].cover[0].url
  16428. .split(".")
  16429. [
  16430. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16431. ].toLocaleUpperCase()
  16432. ) != -1
  16433. ) {
  16434. _this.fileType = 0;
  16435. } else {
  16436. _this.fileType = 3;
  16437. }
  16438. _this.imgChange(null, null, type);
  16439. } else if (type == 2) {
  16440. _this.upToolImg = data.Location;
  16441. _this.imgChange(null, null, type);
  16442. _this.addCourseWorks(i);
  16443. } else if (type == 4) {
  16444. _this.addPz("3", data.Location);
  16445. } else if (type == 5) {
  16446. _this.addImgDrawImG(data.Location);
  16447. } else if (type == 6) {
  16448. var _ftype = 1;
  16449. if (
  16450. c.indexOf(
  16451. data.Location.split(".")[
  16452. data.Location.split(".").length - 1
  16453. ].toLocaleUpperCase()
  16454. ) != -1
  16455. ) {
  16456. _ftype = 5;
  16457. } else if (
  16458. b.indexOf(
  16459. data.Location.split(".")[
  16460. data.Location.split(".").length - 1
  16461. ].toLocaleUpperCase()
  16462. ) != -1
  16463. ) {
  16464. _ftype = 4;
  16465. } else {
  16466. _ftype = 1;
  16467. }
  16468. _this.plworkFile.push({
  16469. name: file.name,
  16470. url: data.Location,
  16471. uid: file.uid,
  16472. fileType: _ftype,
  16473. username:
  16474. _this.plworkFile.length > 10
  16475. ? _this.plworkFile.length + 1
  16476. : "0" + (_this.plworkFile.length + 1),
  16477. });
  16478. } else if (type == 7) {
  16479. _this.addCourseWorksGong(i, data.Location, 32);
  16480. } else if (type == 8) {
  16481. _this.addCourseWorksGong(i, data.Location, 57);
  16482. }
  16483. _this.imgChange(null, null, type);
  16484. console.log(data.Location);
  16485. // _this.$message.success('上传成功'+data.Location)
  16486. }
  16487. });
  16488. }
  16489. },
  16490. async beforeUpload3(event, type, i) {
  16491. // this.$message.success('进入上传')
  16492. let file = "";
  16493. let cfindex2 = 0;
  16494. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16495. file = event.target.files[cfindex];
  16496. var credentials = {
  16497. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16498. secretAccessKey: "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",
  16499. }; //秘钥形式的登录上传
  16500. window.AWS.config.update(credentials);
  16501. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16502. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16503. var _this = this;
  16504. // _this.progress = 0;
  16505. _this.proVisible2 = true;
  16506. var b = [
  16507. "DOC",
  16508. "DOCX",
  16509. "DOCM",
  16510. "DOTM",
  16511. "DOTX",
  16512. "PPTX",
  16513. "PPSX",
  16514. "PPT",
  16515. "PPS",
  16516. "PPTM",
  16517. "POTM",
  16518. "PPAM",
  16519. "POTX",
  16520. "PPSM",
  16521. ];
  16522. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16523. var photoA = [
  16524. "BMP",
  16525. "GIF",
  16526. "PNG",
  16527. "JPEG",
  16528. "JPG",
  16529. "TIF",
  16530. "PCX",
  16531. "TGA",
  16532. "EXIF",
  16533. "FPX",
  16534. "SVG",
  16535. "APNG",
  16536. ];
  16537. if (
  16538. photoA.indexOf(
  16539. file.name
  16540. .split(".")
  16541. [file.name.split(".").length - 1].toLocaleUpperCase()
  16542. ) != -1 &&
  16543. type != 4
  16544. ) {
  16545. // const blob = await imageConversion.compress(file, 0.8)
  16546. file = await this.pngToWhiteBg(file);
  16547. const blob = await imageConversion.compressAccurately(file, 256);
  16548. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16549. file = new File([blob], file.name, { type: file.type });
  16550. }
  16551. if (file) {
  16552. var params = {
  16553. Key:
  16554. file.name.split(".")[0] +
  16555. new Date().getTime() +
  16556. "." +
  16557. file.name.split(".")[file.name.split(".").length - 1],
  16558. ContentType: file.type,
  16559. Body: file,
  16560. "Access-Control-Allow-Credentials": "*",
  16561. ACL: "public-read",
  16562. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16563. var options = {
  16564. // partSize: 2048 * 1024 * 1024,
  16565. partSize: 1024 * 1024 * 1024,
  16566. queueSize: 2,
  16567. leavePartsOnError: true,
  16568. };
  16569. bucket
  16570. .upload(params, options)
  16571. .on("httpUploadProgress", function (evt) {
  16572. //这里可以写进度条
  16573. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16574. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16575. })
  16576. .send(function (err, data) {
  16577. // _this.progress = 100;
  16578. cfindex2++;
  16579. setTimeout(() => {
  16580. if (
  16581. cfindex2 == event.target.files.length - 1 ||
  16582. cfindex2 > event.target.files.length - 1
  16583. ) {
  16584. _this.proVisible2 = false;
  16585. }
  16586. }, 1000);
  16587. if (err) {
  16588. var a = _this.$refs.upload1.uploadFiles;
  16589. a.splice(a.length - 1, a.length);
  16590. _this.$message.error("上传失败");
  16591. } else {
  16592. // _this.$message.success('上传成功')
  16593. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16594. var c = [
  16595. "AVI",
  16596. "NAVI",
  16597. "MPEG",
  16598. "ASF",
  16599. "MOV",
  16600. "WMV",
  16601. "3GP",
  16602. "RM",
  16603. "RMVB",
  16604. "FLV",
  16605. "F4V",
  16606. "H.264",
  16607. "H.265",
  16608. "REAL VIDEO",
  16609. "MKV",
  16610. "WebM",
  16611. "HDDVD",
  16612. "MP4",
  16613. "MPG",
  16614. "M4V",
  16615. "MGV",
  16616. "OGV",
  16617. "QTM",
  16618. "STR",
  16619. "AMC",
  16620. "DVX",
  16621. "EVO",
  16622. "DAT",
  16623. "OGG",
  16624. "OGM",
  16625. ];
  16626. if (type == 1) {
  16627. _this.studyJuri[0].cover.push({
  16628. name: file.name,
  16629. url: data.Location,
  16630. uid: file.uid,
  16631. });
  16632. if (
  16633. c.indexOf(
  16634. _this.studyJuri[0].cover[0].url
  16635. .split(".")
  16636. [
  16637. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16638. ].toLocaleUpperCase()
  16639. ) != -1
  16640. ) {
  16641. _this.fileType = 2;
  16642. } else if (
  16643. b.indexOf(
  16644. _this.studyJuri[0].cover[0].url
  16645. .split(".")
  16646. [
  16647. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16648. ].toLocaleUpperCase()
  16649. ) != -1
  16650. ) {
  16651. _this.fileType = 1;
  16652. } else {
  16653. _this.fileType = 0;
  16654. }
  16655. _this.imgChange(null, null, type);
  16656. } else if (type == 2) {
  16657. _this.upToolImg = data.Location;
  16658. _this.imgChange(null, null, type);
  16659. _this.addCourseWorks(i);
  16660. } else if (type == 4) {
  16661. _this.addPz("3", data.Location);
  16662. } else if (type == 5) {
  16663. _this.addImgDrawImG(data.Location);
  16664. } else if (type == 6) {
  16665. var _ftype = 1;
  16666. if (
  16667. c.indexOf(
  16668. data.Location.split(".")[
  16669. data.Location.split(".").length - 1
  16670. ].toLocaleUpperCase()
  16671. ) != -1
  16672. ) {
  16673. _ftype = 5;
  16674. } else if (
  16675. b.indexOf(
  16676. data.Location.split(".")[
  16677. data.Location.split(".").length - 1
  16678. ].toLocaleUpperCase()
  16679. ) != -1
  16680. ) {
  16681. _ftype = 4;
  16682. } else {
  16683. _ftype = 1;
  16684. }
  16685. _this.plworkFile.push({
  16686. name: file.name,
  16687. url: data.Location,
  16688. uid: file.uid,
  16689. fileType: _ftype,
  16690. username:
  16691. _this.plworkFile.length + 1 > 9
  16692. ? _this.plworkFile.length + 1
  16693. : "0" + (_this.plworkFile.length + 1),
  16694. });
  16695. }
  16696. _this.imgChange(null, null, type);
  16697. console.log(data.Location);
  16698. // _this.$message.success('上传成功'+data.Location)
  16699. }
  16700. });
  16701. }
  16702. }
  16703. },
  16704. beforeUpload2(event, type) {
  16705. var file = event.target.files[0];
  16706. var credentials = {
  16707. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16708. secretAccessKey: "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",
  16709. }; //秘钥形式的登录上传
  16710. window.AWS.config.update(credentials);
  16711. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16712. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16713. var _this = this;
  16714. _this.progress = 0;
  16715. _this.proVisible = true;
  16716. if (file) {
  16717. var params = {
  16718. Key:
  16719. file.name.split(".")[0] +
  16720. new Date().getTime() +
  16721. "." +
  16722. file.name.split(".")[file.name.split(".").length - 1],
  16723. ContentType: file.type,
  16724. Body: file,
  16725. "Access-Control-Allow-Credentials": "*",
  16726. ACL: "public-read",
  16727. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16728. var options = {
  16729. partSize: 2048 * 1024 * 1024,
  16730. queueSize: 2,
  16731. leavePartsOnError: true,
  16732. };
  16733. bucket
  16734. .upload(params, options)
  16735. .on("httpUploadProgress", function (evt) {
  16736. //这里可以写进度条
  16737. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16738. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16739. })
  16740. .send(function (err, data) {
  16741. _this.progress = 100;
  16742. setTimeout(() => {
  16743. _this.proVisible = false;
  16744. }, 1000);
  16745. if (err) {
  16746. var a = _this.$refs.upload1.uploadFiles;
  16747. a.splice(a.length - 1, a.length);
  16748. _this.$message.error("上传失败");
  16749. } else {
  16750. if (type == 2) {
  16751. _this.studyJuri[0].upVedio.push({
  16752. name: file.name,
  16753. url: data.Location,
  16754. uid: file.uid,
  16755. });
  16756. _this.imgChange(null, null, type);
  16757. } else if (type == 3) {
  16758. _this.studyJuri[0].upFile.push({
  16759. name: file.name,
  16760. url: data.Location,
  16761. uid: file.uid,
  16762. });
  16763. _this.imgChange(null, null, type);
  16764. }
  16765. console.log(data.Location);
  16766. }
  16767. });
  16768. }
  16769. },
  16770. allScrell() {
  16771. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16772. },
  16773. nextOrpreSteps(t) {
  16774. if (this.IsFollow && this.tType == 2) {
  16775. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16776. return;
  16777. }
  16778. var b = this.chapInfoList.length - 1;
  16779. if (t == 0) {
  16780. if (this.courseType == 0) {
  16781. if (this.taskCount == 0) {
  16782. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16783. if (this.IsLookOpen) {
  16784. if (
  16785. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16786. ) {
  16787. if (
  16788. this.courseDetail.userid != this.userid &&
  16789. (!this.courseDetail.course_teacher ||
  16790. (this.courseDetail.course_teacher &&
  16791. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16792. ) {
  16793. this.$message.error("任务未解锁");
  16794. } else {
  16795. this.$message.error("上一任务未解锁");
  16796. }
  16797. return;
  16798. }
  16799. }
  16800. this.navList[this.courseType].isOpen = false;
  16801. this.courseType = b;
  16802. this.taskCount =
  16803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16804. .length - 1;
  16805. this.navList[this.courseType].isOpen = true;
  16806. } else {
  16807. this.taskCount--;
  16808. }
  16809. } else {
  16810. if (this.taskCount == 0) {
  16811. this.navList[this.courseType].isOpen = false;
  16812. this.courseType--;
  16813. this.taskCount =
  16814. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16815. .length - 1;
  16816. this.navList[this.courseType].isOpen = true;
  16817. } else {
  16818. this.taskCount--;
  16819. }
  16820. }
  16821. } else {
  16822. if (this.courseType == b) {
  16823. if (
  16824. this.taskCount ==
  16825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16826. 1
  16827. ) {
  16828. this.navList[this.courseType].isOpen = false;
  16829. this.courseType = 0;
  16830. this.taskCount = 0;
  16831. this.navList[this.courseType].isOpen = true;
  16832. } else {
  16833. var bbb = parseInt(this.taskCount) + 1;
  16834. if (
  16835. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16836. .isLook &&
  16837. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16838. (this.courseDetail.course_teacher &&
  16839. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16840. this.IsLookOpen
  16841. ) {
  16842. this.$message.error("任务未解锁");
  16843. return;
  16844. }
  16845. this.taskCount++;
  16846. if (this.IsLookOpen) {
  16847. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16848. this.taskCount
  16849. ].isLook = true;
  16850. this.addCourseState(3);
  16851. }
  16852. }
  16853. } else {
  16854. if (
  16855. this.taskCount ==
  16856. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16857. 1
  16858. ) {
  16859. var bbb = parseInt(this.courseType) + 1;
  16860. if (
  16861. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16862. this.courseDetail.userid != this.userid &&
  16863. (!this.courseDetail.course_teacher ||
  16864. (this.courseDetail.course_teacher &&
  16865. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16866. this.IsLookOpen
  16867. ) {
  16868. this.$message.error("任务未解锁");
  16869. return;
  16870. }
  16871. this.navList[this.courseType].isOpen = false;
  16872. this.courseType++;
  16873. this.taskCount = 0;
  16874. this.navList[this.courseType].isOpen = true;
  16875. } else {
  16876. var bbb = parseInt(this.taskCount) + 1;
  16877. if (
  16878. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16879. .isLook &&
  16880. this.courseDetail.userid != this.userid &&
  16881. (!this.courseDetail.course_teacher ||
  16882. (this.courseDetail.course_teacher &&
  16883. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16884. this.IsLookOpen
  16885. ) {
  16886. this.$message.error("任务未解锁");
  16887. return;
  16888. }
  16889. this.taskCount++;
  16890. }
  16891. if (this.IsLookOpen) {
  16892. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16893. this.taskCount
  16894. ].isLook = true;
  16895. this.addCourseState(3);
  16896. }
  16897. }
  16898. // if (
  16899. // this.taskCount ==
  16900. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16901. // ) {
  16902. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16903. // } else {
  16904. // this.taskCount++;
  16905. // }
  16906. }
  16907. document.scrollingElement.scrollTop = 0;
  16908. this.showType = 7;
  16909. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16910. // if (this.vedio[this.taskCount].length > 0) {
  16911. // var a =
  16912. // document.getElementsByClassName("box_course")[this.taskCount]
  16913. // .offsetHeight;
  16914. // document.getElementsByClassName("vedioList")[
  16915. // this.taskCount
  16916. // ].style.height = a + "px";
  16917. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16918. // a - 40 + "px";
  16919. // }
  16920. this.isNoHomeWork = false;
  16921. (this.studyJuri = [
  16922. {
  16923. content: "",
  16924. cover: [],
  16925. upVedio: [],
  16926. upFile: [],
  16927. },
  16928. ]),
  16929. (this.radio = []);
  16930. this.isClickNav = "";
  16931. this.selectPz();
  16932. this.getHomeWork();
  16933. this.getCourseDetail(2);
  16934. this.$forceUpdate();
  16935. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  16936. this.setCTask();
  16937. }
  16938. },
  16939. openTask(s, n, i,ctype) {
  16940. if (this.IsFollow && this.tType == 2) {
  16941. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16942. return;
  16943. }
  16944. if (this.IsLookOpen &&
  16945. this.courseDetail.userid != this.userid &&
  16946. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16947. if (
  16948. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16949. this.courseDetail.userid != this.userid &&
  16950. (!this.courseDetail.course_teacher ||
  16951. (this.courseDetail.course_teacher &&
  16952. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16953. ) {
  16954. this.$message.error("任务未解锁");
  16955. return;
  16956. }
  16957. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16958. if (
  16959. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16960. .isLook
  16961. ) {
  16962. this.$message.error("上一任务未解锁");
  16963. return;
  16964. }
  16965. } else if (s > this.courseType) {
  16966. if (n > 0) {
  16967. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16968. this.$message.error("上一任务未解锁");
  16969. return;
  16970. }
  16971. } else {
  16972. if (
  16973. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16974. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16975. ].isLook
  16976. ) {
  16977. this.$message.error("上一任务未解锁");
  16978. return;
  16979. }
  16980. }
  16981. }
  16982. }
  16983. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16984. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16985. return;
  16986. }
  16987. let flag = this.courseType==s;
  16988. this.courseType = s;
  16989. this.navId = i;
  16990. this.taskCount = n;
  16991. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16992. if(ctype == 2){
  16993. this.navList[s].task[n].isOpen = true
  16994. }else{
  16995. this.navList[this.courseType].task[this.taskCount].isOpen =
  16996. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16997. }
  16998. if (this.IsLookOpen) {
  16999. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17000. this.taskCount
  17001. ].isLook = true;
  17002. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17003. this.addCourseState(3,yym);
  17004. }
  17005. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17006. this.isCloseList[ci].isClose = 0;
  17007. this.isCloseList[ci].isCloseBoolean = false;
  17008. this.$nextTick(()=>{
  17009. setTimeout(()=>{
  17010. setTimeout(()=>{
  17011. this.panToolHeight('tool-'+ci);
  17012. }, 0)
  17013. }, 0)
  17014. })
  17015. }
  17016. this.showType = 0;
  17017. this.isNoHomeWork = false;
  17018. (this.studyJuri = [
  17019. {
  17020. content: "",
  17021. cover: [],
  17022. upVedio: [],
  17023. upFile: [],
  17024. },
  17025. ]),
  17026. (this.radio = []);
  17027. document.scrollingElement.scrollTop = 0;
  17028. // setTimeout(() => {
  17029. // let a = document.getElementById(i);
  17030. // if (a.offsetTop - 110 == 0) {
  17031. // window.scrollTo(0, 0);
  17032. // } else {
  17033. // window.scrollTo(0, a.offsetTop);
  17034. // }
  17035. // }, 0);
  17036. for (var z = 0; z < this.navList.length; z++) {
  17037. for (var q = 0; q < this.navList[z].task.length; q++) {
  17038. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17039. this.navList[z].task[q].tool[w].isTool = false;
  17040. }
  17041. }
  17042. }
  17043. this.selectPz();
  17044. this.getHomeWork();
  17045. this.getCourseDetail(2);
  17046. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17047. this.setCTask();
  17048. }
  17049. if(flag){
  17050. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17051. }else{
  17052. 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>`)
  17053. }
  17054. },
  17055. get(i) {
  17056. if (this.IsFollow && this.tType == 2) {
  17057. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17058. return;
  17059. }
  17060. // for(var k=0;k<this.navList.length;k++){
  17061. // this.navList[k].isOpen = false;
  17062. // }
  17063. // this.navList[i].isOpen = true;
  17064. let a = this.navList[i].isOpen
  17065. this.navList[i].isOpen = !this.navList[i].isOpen;
  17066. this.$forceUpdate()
  17067. if (this.navList[i].isOpen) {
  17068. this.openTask(i, 0, (i + "-0"),2);
  17069. }
  17070. },
  17071. addQuestion() {
  17072. this.answerList.push({
  17073. answerTitle: this.answerQ,
  17074. answer: this.questionAnswer,
  17075. });
  17076. let params = [
  17077. {
  17078. uid: this.userid,
  17079. cid: this.id,
  17080. stage: this.courseType,
  17081. task: this.taskCount,
  17082. tool: this.toolindex,
  17083. content: JSON.stringify(this.answerList),
  17084. type: 3,
  17085. },
  17086. ];
  17087. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17088. this.homeWorkLoading = true
  17089. this.ajax
  17090. .post(this.$store.state.api + "addCourseWorks", params)
  17091. .then((res) => {
  17092. this.$message({
  17093. message: "提交成功",
  17094. type: "success",
  17095. });
  17096. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17097. setTimeout(() => {
  17098. this.homeWorkLoading = false
  17099. }, 500);
  17100. this.answerList = [];
  17101. this.answerDialogVisible = false;
  17102. this.selectStudent();
  17103. this.selectSWorks();
  17104. this.selectSLook();
  17105. })
  17106. .catch((err) => {
  17107. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17108. setTimeout(() => {
  17109. this.homeWorkLoading = false
  17110. }, 500);
  17111. this.$message.error("提交失败");
  17112. console.error(err);
  17113. });
  17114. },
  17115. addQuestionTeacher() {
  17116. this.answerList.push({
  17117. answerTitle: this.answerQ,
  17118. answer: this.questionAnswer,
  17119. });
  17120. let params = [
  17121. {
  17122. uid: this.sStudent.userid,
  17123. cid: this.id,
  17124. stage: this.courseType,
  17125. task: this.taskCount,
  17126. tool: this.toolindex,
  17127. content: JSON.stringify(this.answerList),
  17128. type: 3,
  17129. ateacher: this.userid,
  17130. },
  17131. ];
  17132. this.ajax
  17133. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17134. .then((res) => {
  17135. this.$message({
  17136. message: "提交成功",
  17137. type: "success",
  17138. });
  17139. this.answerList = [];
  17140. this.questionAnswer = "";
  17141. this.answerDialogVisibleTeacher = false;
  17142. this.selectStudent();
  17143. this.selectSWorks();
  17144. this.selectSLook();
  17145. })
  17146. .catch((err) => {
  17147. this.$message.error("提交失败");
  17148. console.error(err);
  17149. });
  17150. },
  17151. refreshCourse() {
  17152. // window.location.reload();
  17153. this.navList = [];
  17154. this.getCourseDetail(1);
  17155. },
  17156. getCourseDetail(type, gindex) {
  17157. let loading;
  17158. if (type != 2) {
  17159. loading = this.$loading.service({
  17160. background: "rgba(255, 255, 255, 0.7)",
  17161. target: document.querySelector(".student_table"),
  17162. });
  17163. }
  17164. this.downLoading = false
  17165. // this.navList[0].isOpen = false;
  17166. // this.navList[this.courseType].isOpen = true;
  17167. // this.courseType = this.courseTypeLine;
  17168. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17169. let params = {
  17170. courseId: this.id,
  17171. };
  17172. this.ajax
  17173. .get(this.$store.state.api + "selectCourseDetail3", params)
  17174. .then((res) => {
  17175. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17176. if (type != 2) {
  17177. loading.close();
  17178. if (
  17179. this.courseType >
  17180. JSON.parse(res.data[0][0].chapters).length - 1
  17181. ) {
  17182. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17183. }
  17184. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17185. .chapterInfo[0].taskJson;
  17186. var b = [
  17187. "AVI",
  17188. "NAVI",
  17189. "MPEG",
  17190. "ASF",
  17191. "MOV",
  17192. "WMV",
  17193. "3GP",
  17194. "RM",
  17195. "RMVB",
  17196. "FLV",
  17197. "F4V",
  17198. "H.264",
  17199. "H.265",
  17200. "REAL VIDEO",
  17201. "MKV",
  17202. "WebM",
  17203. "HDDVD",
  17204. "MP4",
  17205. "MPG",
  17206. "M4V",
  17207. "MGV",
  17208. "OGV",
  17209. "QTM",
  17210. "STR",
  17211. "AMC",
  17212. "DVX",
  17213. "EVO",
  17214. "DAT",
  17215. "OGG",
  17216. "OGM",
  17217. "MP3",
  17218. ];
  17219. let _chapterData = [];
  17220. for (var i = 0; i < a.length; i++) {
  17221. var c = a[i].chapterData;
  17222. this.vedio[i] = [];
  17223. this.textList[i] = [];
  17224. this.lineList[i] = [];
  17225. this.chapToolList[i] = [];
  17226. this.file[i] = [];
  17227. this.fileC[i] = [];
  17228. _chapterData[i] = c.filter((el) => {
  17229. return el.type != 12;
  17230. });
  17231. this.fileC[i] = c.filter((el) => {
  17232. return el.type == 12;
  17233. });
  17234. if (this.tType == 2) {
  17235. if (this.fileC[i].length) {
  17236. let yym1 = this.fileC[i].filter(e=>{
  17237. if(!converter(e.name).includes(converter("教案"))){
  17238. return e
  17239. }
  17240. })
  17241. this.fileC[i] = yym1
  17242. }
  17243. }
  17244. // else if (c[j].type == 12) {
  17245. // this.fileC[i].push(c[j]);
  17246. // }
  17247. for (var j = 0; j < c.length; j++) {
  17248. if (c[j].type == 7) {
  17249. this.chapToolList[i].push(c[j]);
  17250. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17251. this.lineList[i].push(c[j]);
  17252. } else if (c[j].type == 6) {
  17253. this.textList[i].push(c[j]);
  17254. } else {
  17255. if (
  17256. b.indexOf(
  17257. c[j].url
  17258. .split(".")
  17259. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17260. ) != -1
  17261. ) {
  17262. this.vedio[i].push(c[j]);
  17263. } else {
  17264. this.file[i].push(c[j]);
  17265. }
  17266. }
  17267. }
  17268. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17269. d.sources[0].src =
  17270. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17271. this.playerO[i] = d;
  17272. }
  17273. this.courseDetail = res.data[0][0];
  17274. if(this.tType == 2){
  17275. this.tcid = this.arrayToArray(
  17276. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17277. this.classId ? this.classId.split(",") : []
  17278. ).join(",");
  17279. }else{
  17280. this.tcid = this.arrayToArray(
  17281. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17282. this.tcid2 ? this.tcid2.split(",") : []
  17283. ).join(",");
  17284. }
  17285. this.evalua = res.data[0][0].evaId;
  17286. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17287. this.courseType
  17288. ];
  17289. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17290. if (this.tcid && res.data[1].length) {
  17291. let _inviteA = [];
  17292. for (var ik = 0; ik < res.data[1].length; ik++) {
  17293. _inviteA.push({
  17294. cid: res.data[1][ik].classid,
  17295. ic: res.data[1][ik].code,
  17296. });
  17297. }
  17298. for (var ik = 0; ik < _inviteA.length; ik++) {
  17299. if (
  17300. this.arrayToArray(
  17301. _inviteA[ik].cid.split(","),
  17302. this.tcid.split(",")
  17303. ).length
  17304. ) {
  17305. this.inviteCode = _inviteA[ik].ic;
  17306. break;
  17307. }
  17308. }
  17309. }
  17310. for (var l = 0; l < this.chapInfoList.length; l++) {
  17311. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17312. for (var m = 0; m < w.length; m++) {
  17313. w[m].id = l + "-" + m;
  17314. }
  17315. }
  17316. if (
  17317. _chapterData[this.taskCount].length &&
  17318. _chapterData[this.taskCount][0].type == 2
  17319. ) {
  17320. this.showType = 0;
  17321. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17322. } else {
  17323. if (_chapterData[this.taskCount].length > 0) {
  17324. let _url = _chapterData[this.taskCount][0].url;
  17325. if (
  17326. _chapterData[this.taskCount][0].type == 8 ||
  17327. _chapterData[this.taskCount][0].type == 14 ||
  17328. _chapterData[this.taskCount][0].type == 15
  17329. ) {
  17330. this.showType = 2;
  17331. if (
  17332. _url.indexOf("https://") == -1 &&
  17333. _url.indexOf("http://") == -1
  17334. ) {
  17335. _url = "https://" + _url;
  17336. }
  17337. this.pptImgUrl1 = _url;
  17338. } else if (_chapterData[this.taskCount][0].type == 3) {
  17339. if (
  17340. _url
  17341. .split(".")
  17342. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17343. ) {
  17344. this.showType = 3;
  17345. this.pptImgUrl1 = _url;
  17346. } else if (
  17347. this.isAssetTypeAnImage(
  17348. _url
  17349. .split(".")
  17350. [_url.split(".").length - 1].toLocaleLowerCase()
  17351. )
  17352. ) {
  17353. this.showType = 4;
  17354. this.pptImgUrl1 = _url;
  17355. } else {
  17356. this.showType = 2;
  17357. this.pptImgUrl1 =
  17358. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17359. encodeURIComponent(_url);
  17360. }
  17361. } else if (_chapterData[this.taskCount][0].type == 13) {
  17362. this.showType = 4;
  17363. this.pptImgUrl1 = _url;
  17364. } else if (_chapterData[this.taskCount][0].type == 6) {
  17365. this.showType = 1;
  17366. this.text = this.textList[this.taskCount][0];
  17367. } else if (_chapterData[this.taskCount][0].type == 16) {
  17368. this.showType = 16;
  17369. this.pptImgUrl1 = _url;
  17370. }
  17371. }
  17372. }
  17373. this.isClickNav = 0;
  17374. if (
  17375. !_chapterData[this.taskCount].length ||
  17376. _chapterData[this.taskCount][0].type == 12
  17377. ) {
  17378. this.isClickNav = "";
  17379. this.showType = "";
  17380. }
  17381. if (this.tType == 2) {
  17382. _chapterData.forEach((e,i)=>{
  17383. if (e.length) {
  17384. let yym = e.filter(k=>{
  17385. if(!converter(k.name).includes(converter("教案"))){
  17386. return k
  17387. }
  17388. })
  17389. _chapterData[i] = yym
  17390. }
  17391. })
  17392. }
  17393. this.vChapterData = _chapterData;
  17394. } else {
  17395. this.showType = 0;
  17396. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17397. .chapterInfo[0].taskJson;
  17398. var b = [
  17399. "AVI",
  17400. "NAVI",
  17401. "MPEG",
  17402. "ASF",
  17403. "MOV",
  17404. "WMV",
  17405. "3GP",
  17406. "RM",
  17407. "RMVB",
  17408. "FLV",
  17409. "F4V",
  17410. "H.264",
  17411. "H.265",
  17412. "REAL VIDEO",
  17413. "MKV",
  17414. "WebM",
  17415. "HDDVD",
  17416. "MP4",
  17417. "MPG",
  17418. "M4V",
  17419. "MGV",
  17420. "OGV",
  17421. "QTM",
  17422. "STR",
  17423. "AMC",
  17424. "DVX",
  17425. "EVO",
  17426. "DAT",
  17427. "OGG",
  17428. "OGM",
  17429. "MP3",
  17430. ];
  17431. let _chapterData = [];
  17432. for (var i = 0; i < a.length; i++) {
  17433. var c = a[i].chapterData;
  17434. this.vedio[i] = [];
  17435. this.textList[i] = [];
  17436. this.lineList[i] = [];
  17437. this.chapToolList[i] = [];
  17438. this.file[i] = [];
  17439. this.fileC[i] = [];
  17440. _chapterData[i] = c.filter((el) => {
  17441. return el.type != 12;
  17442. });
  17443. this.fileC[i] = c.filter((el) => {
  17444. return el.type == 12;
  17445. });
  17446. if (this.tType == 2) {
  17447. if (this.fileC[i].length) {
  17448. let yym1 = this.fileC[i].filter(e=>{
  17449. if(!converter(e.name).includes(converter("教案"))){
  17450. return e
  17451. }
  17452. })
  17453. this.fileC[i] = yym1
  17454. }
  17455. }
  17456. for (var j = 0; j < c.length; j++) {
  17457. if (c[j].type == 7) {
  17458. this.chapToolList[i].push(c[j]);
  17459. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17460. this.lineList[i].push(c[j]);
  17461. } else if (c[j].type == 6) {
  17462. this.textList[i].push(c[j]);
  17463. } else {
  17464. if (
  17465. b.indexOf(
  17466. c[j].url
  17467. .split(".")
  17468. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17469. ) != -1
  17470. ) {
  17471. this.vedio[i].push(c[j]);
  17472. } else {
  17473. this.file[i].push(c[j]);
  17474. }
  17475. }
  17476. }
  17477. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17478. d.sources[0].src =
  17479. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17480. this.playerO[i] = d;
  17481. }
  17482. if (
  17483. _chapterData[this.taskCount].length &&
  17484. _chapterData[this.taskCount][0].type == 2
  17485. ) {
  17486. this.showType = 0;
  17487. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17488. } else {
  17489. if (_chapterData[this.taskCount].length > 0) {
  17490. let _url = _chapterData[this.taskCount][0].url;
  17491. if (
  17492. _chapterData[this.taskCount][0].type == 8 ||
  17493. _chapterData[this.taskCount][0].type == 14 ||
  17494. _chapterData[this.taskCount][0].type == 15
  17495. ) {
  17496. this.showType = 2;
  17497. if (
  17498. _url.indexOf("https://") == -1 &&
  17499. _url.indexOf("http://") == -1
  17500. ) {
  17501. _url = "https://" + _url;
  17502. }
  17503. this.pptImgUrl1 = _url;
  17504. } else if (_chapterData[this.taskCount][0].type == 3) {
  17505. if (
  17506. _url
  17507. .split(".")
  17508. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17509. ) {
  17510. this.showType = 3;
  17511. this.pptImgUrl1 = _url;
  17512. } else if (
  17513. this.isAssetTypeAnImage(
  17514. _url
  17515. .split(".")
  17516. [_url.split(".").length - 1].toLocaleLowerCase()
  17517. )
  17518. ) {
  17519. this.showType = 4;
  17520. this.pptImgUrl1 = _url;
  17521. } else {
  17522. this.showType = 2;
  17523. this.pptImgUrl1 =
  17524. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17525. encodeURIComponent(_url);
  17526. }
  17527. } else if (_chapterData[this.taskCount][0].type == 13) {
  17528. this.showType = 4;
  17529. this.pptImgUrl1 = _url;
  17530. } else if (_chapterData[this.taskCount][0].type == 6) {
  17531. this.showType = 1;
  17532. this.text = this.textList[this.taskCount][0];
  17533. } else if (_chapterData[this.taskCount][0].type == 16) {
  17534. this.showType = 16;
  17535. this.pptImgUrl1 = _url;
  17536. }
  17537. }
  17538. }
  17539. this.isClickNav = 0;
  17540. if (
  17541. !_chapterData[this.taskCount].length ||
  17542. _chapterData[this.taskCount][0].type == 12
  17543. ) {
  17544. this.isClickNav = "";
  17545. this.showType = "";
  17546. }
  17547. console.log('_chapterData66666',_chapterData);
  17548. if (this.tType == 2) {
  17549. _chapterData.forEach((e,i)=>{
  17550. if (e.length) {
  17551. let yym = e.filter(k=>{
  17552. if(!converter(k.name).includes(converter("教案"))){
  17553. return k
  17554. }
  17555. })
  17556. _chapterData[i] = yym
  17557. }
  17558. })
  17559. }
  17560. this.vChapterData = _chapterData;
  17561. this.$forceUpdate();
  17562. }
  17563. // else {
  17564. // this.courseDetail = res.data[0][0];
  17565. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17566. // }
  17567. let _this = this;
  17568. if (_this.timer) {
  17569. clearInterval(_this.timer);
  17570. _this.timer = null;
  17571. }
  17572. if (_this.tcid) {
  17573. _this.getCourseGroup(gindex);
  17574. } else {
  17575. _this.selectSWorks(gindex);
  17576. }
  17577. _this.selectStudent();
  17578. _this.selectSLook();
  17579. _this.getPick();
  17580. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17581. // _this.setCTask();
  17582. // }
  17583. if (_this.dialogVisibleGroup) {
  17584. _this.groupJson =
  17585. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17586. _this.taskCount
  17587. ].toolChoose[_this.toolindex].groupJson;
  17588. }
  17589. _this.$nextTick(() => {
  17590. setTimeout(() => {
  17591. _this.checkEva();
  17592. }, 1000);
  17593. });
  17594. _this.timer = setInterval(function () {
  17595. // _this.getCourseDetail(2);
  17596. if (_this.tcid) {
  17597. _this.getCourseGroup();
  17598. } else {
  17599. _this.selectSWorks();
  17600. }
  17601. _this.selectStudent();
  17602. _this.selectSLook();
  17603. _this.getPick();
  17604. // _this.getSplitScreenData();
  17605. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17606. // _this.setCTask();
  17607. // }
  17608. if (_this.dialogVisibleGroup) {
  17609. _this.groupJson =
  17610. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17611. _this.taskCount
  17612. ].toolChoose[_this.toolindex].groupJson;
  17613. }
  17614. if (_this.tType == 4 || _this.ispzType == 4) {
  17615. _this.selectPz();
  17616. }
  17617. }, 5000);
  17618. if (_this.timer2 == null) {
  17619. _this.timer2 = setInterval(()=> {
  17620. _this.getSplitScreenData();//获取分屏数据
  17621. }, 5000);
  17622. }
  17623. _this.$nextTick(function () {
  17624. setTimeout(() => {
  17625. // var a =
  17626. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17627. // document.getElementsByClassName("vedioList")[0].style.height =
  17628. // a + "px";
  17629. // document.getElementsByClassName("navBox")[0].style.height =
  17630. // a - 40 + "px";
  17631. // if (_this.vedio[_this.taskCount].length > 0) {
  17632. // _this.vedioTime = [];
  17633. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17634. // _this.vedioTime[i] = document.getElementsByClassName(
  17635. // "vjs-duration-display"
  17636. // )[i].textContent;
  17637. // }
  17638. // }
  17639. }, 1000);
  17640. });
  17641. })
  17642. .catch((err) => {
  17643. loading.close();
  17644. console.error(err);
  17645. });
  17646. },
  17647. getCourseGroup(gindex) {
  17648. let params = {
  17649. cid: this.id,
  17650. classid: this.tcid ? this.tcid : "1",
  17651. };
  17652. this.ajax
  17653. .get(this.$store.state.api + "getCourseGroup", params)
  17654. .then((res) => {
  17655. if (res.data && res.data[0].length) {
  17656. if (!this.isGroup) {
  17657. let courseGroup = JSON.parse(res.data[0][0].group);
  17658. courseGroup.group = courseGroup.group.filter((el) => {
  17659. el.works = [];
  17660. return el;
  17661. });
  17662. if (courseGroup.isopen == 2) {
  17663. this.isGroup = false;
  17664. this.selectSWorks(gindex);
  17665. return;
  17666. }
  17667. this.courseGroup = courseGroup;
  17668. let groupPerson = res.data[1];
  17669. let group = JSON.parse(res.data[0][0].group).group;
  17670. let courseGroupStudent = {};
  17671. let courseGroupStudentUid = {};
  17672. for (var i = 0; i < group.length; i++) {
  17673. courseGroupStudent[group[i].id] = [];
  17674. courseGroupStudentUid[group[i].id] = [];
  17675. for (var j = 0; j < groupPerson.length; j++) {
  17676. if (groupPerson[j].groupCid == group[i].id) {
  17677. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17678. courseGroupStudentUid[group[i].id].push(
  17679. groupPerson[j].userid
  17680. );
  17681. }
  17682. }
  17683. }
  17684. this.courseGroupStudent = courseGroupStudent;
  17685. this.courseGroupStudentUid = courseGroupStudentUid;
  17686. }
  17687. if (this.courseGroup.isopen == 2) {
  17688. this.isGroup = false;
  17689. } else {
  17690. this.isGroup = true;
  17691. }
  17692. this.selectSWorks(gindex);
  17693. } else {
  17694. this.selectSWorks(gindex);
  17695. this.isGroup = false;
  17696. }
  17697. })
  17698. .catch((err) => {
  17699. // this.$message.error("网络不佳");
  17700. console.error(err);
  17701. });
  17702. },
  17703. setOperationTime() {
  17704. let _this = this;
  17705. if (_this.opertimer) {
  17706. clearInterval(_this.opertimer);
  17707. _this.opertimer = null;
  17708. }
  17709. _this.opertimer = setInterval(() => {
  17710. _this.setoTime("600");
  17711. }, 600000);
  17712. },
  17713. setoTime(time) {
  17714. let params = [
  17715. {
  17716. uid: this.userid,
  17717. cid: this.id,
  17718. type: "2",
  17719. time: time,
  17720. },
  17721. ];
  17722. this.ajax
  17723. .post(this.$store.state.api + "addOperationTimeT2", params)
  17724. .then((res) => {})
  17725. .catch((err) => {
  17726. console.error(err);
  17727. });
  17728. },
  17729. addPz(type, content) {
  17730. if (type == "1" && this.pzConText == "") {
  17731. this.$message.error("评论不能为空!");
  17732. return;
  17733. }
  17734. let params = [
  17735. {
  17736. cid: this.id,
  17737. uid: this.userid,
  17738. s: this.courseType,
  17739. t: this.taskCount,
  17740. c: type == "1" ? this.pzConText : content,
  17741. type: type,
  17742. },
  17743. ];
  17744. this.ajax
  17745. .post(this.$store.state.api + "addPz2", params)
  17746. .then((res) => {
  17747. this.$message({
  17748. message: "添加成功",
  17749. type: "success",
  17750. });
  17751. this.pzConText = "";
  17752. this.addPzDialog = false;
  17753. this.selectPz();
  17754. if(this.tType!=2){
  17755. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17756. }
  17757. })
  17758. .catch((err) => {
  17759. this.$message.error("添加失败");
  17760. console.error(err);
  17761. });
  17762. },
  17763. setReplyIndex(id, i) {
  17764. this.replyIndex = i;
  17765. this.replyPid = id;
  17766. this.replyDialogVisible = true;
  17767. },
  17768. addHf() {
  17769. if (this.reply == "") {
  17770. this.$message.error("回复不能为空!");
  17771. return;
  17772. }
  17773. let params = [
  17774. {
  17775. cid: this.id,
  17776. uid: this.userid,
  17777. s: this.courseType,
  17778. t: this.taskCount,
  17779. type: "1",
  17780. ct: 2,
  17781. pid: this.replyPid,
  17782. c: this.reply,
  17783. },
  17784. ];
  17785. this.ajax
  17786. .post(this.$store.state.api + "addHf", params)
  17787. .then((res) => {
  17788. this.reply = "";
  17789. this.$message({
  17790. message: "回复成功",
  17791. type: "success",
  17792. });
  17793. this.replyDialogVisible = false;
  17794. this.selectPz();
  17795. })
  17796. .catch((err) => {
  17797. this.$message.error("回复失败");
  17798. console.error(err);
  17799. });
  17800. },
  17801. deletePz(id) {
  17802. this.$confirm("确定删除此评论吗?", "提示", {
  17803. confirmButtonText: "确定",
  17804. cancelButtonText: "取消",
  17805. type: "warning",
  17806. })
  17807. .then(() => {
  17808. let params = [
  17809. {
  17810. id: id,
  17811. },
  17812. ];
  17813. this.ajax
  17814. .post(this.$store.state.api + "deletePz", params)
  17815. .then((res) => {
  17816. this.$message({
  17817. message: "删除成功",
  17818. type: "success",
  17819. });
  17820. this.selectPz();
  17821. })
  17822. .catch((err) => {
  17823. this.$message.error("网络异常");
  17824. console.error(err);
  17825. });
  17826. })
  17827. .catch(() => {});
  17828. },
  17829. deleteReply(id) {
  17830. this.$confirm("确定删除此回复吗?", "提示", {
  17831. confirmButtonText: "确定",
  17832. cancelButtonText: "取消",
  17833. type: "warning",
  17834. })
  17835. .then(() => {
  17836. let params = [
  17837. {
  17838. id: id,
  17839. },
  17840. ];
  17841. this.ajax
  17842. .post(this.$store.state.api + "deleteReply", params)
  17843. .then((res) => {
  17844. this.$message({
  17845. message: "删除成功",
  17846. type: "success",
  17847. });
  17848. this.selectPz();
  17849. })
  17850. .catch((err) => {
  17851. this.$message.error("网络异常");
  17852. console.error(err);
  17853. });
  17854. })
  17855. .catch(() => {});
  17856. },
  17857. setPz() {
  17858. if (this.ispzType == 4) {
  17859. this.ispzType = 0;
  17860. this.pzDialog = false;
  17861. return;
  17862. }
  17863. this.ispzType = 4;
  17864. this.pzDialog = true;
  17865. this.selectPz();
  17866. },
  17867. selectPz() {
  17868. let params = {
  17869. cid: this.id,
  17870. s: this.courseType,
  17871. t: this.taskCount,
  17872. type: this.pzStype,
  17873. uid: this.userid,
  17874. };
  17875. this.ajax
  17876. .get(this.$store.state.api + "selectPzListType", params)
  17877. .then((res) => {
  17878. this.pzList = res.data[0];
  17879. var a = res.data[1];
  17880. for (var i = 0; i < a.length; i++) {
  17881. for (var j = 0; j < this.pzList.length; j++) {
  17882. if (!this.pzList[j].hfList) {
  17883. this.pzList[j].hfList = [];
  17884. }
  17885. if (a[i].pid == this.pzList[j].id) {
  17886. this.pzList[j].hfList.push(a[i]);
  17887. }
  17888. }
  17889. }
  17890. })
  17891. .catch((err) => {
  17892. console.error(err);
  17893. });
  17894. },
  17895. // selectHf() {
  17896. // let params = {
  17897. // cid: this.id,
  17898. // s: this.courseType,
  17899. // t: this.taskCount,
  17900. // };
  17901. // this.ajax
  17902. // .get(this.$store.state.api + "selectHfList", params)
  17903. // .then((res) => {
  17904. // var a = res.data[0];
  17905. // for (var i = 0; i < a.length; i++) {
  17906. // for (var j = 0; j < this.pzList.length; j++) {
  17907. // if (!this.pzList[i].hfList) {
  17908. // this.pzList[i].hfList = [];
  17909. // }
  17910. // if (a[i].pid == this.pzList[j].id) {
  17911. // this.pzList[i].hfList.push(a[i]);
  17912. // }
  17913. // }
  17914. // }
  17915. // })
  17916. // .catch((err) => {
  17917. // console.error(err);
  17918. // });
  17919. // },
  17920. updateSLook() {
  17921. let params = {
  17922. sopen: this.sIsOpen == false ? 1 : 2,
  17923. cid: this.id,
  17924. };
  17925. this.ajax
  17926. .get(this.$store.state.api + "updateCourseSLook", params)
  17927. .then((res) => {
  17928. if (this.sIsOpen == true) {
  17929. this.$message({
  17930. message: "权限设置成功",
  17931. type: "success",
  17932. });
  17933. } else {
  17934. this.$message({
  17935. message: "权限关闭成功",
  17936. type: "success",
  17937. });
  17938. }
  17939. })
  17940. .catch((err) => {
  17941. console.error(err);
  17942. });
  17943. },
  17944. updateFollow() {
  17945. let params = [
  17946. {
  17947. sopen: this.IsFollow == false ? 1 : 2,
  17948. cid: this.id,
  17949. },
  17950. ];
  17951. this.ajax
  17952. .post(this.$store.state.api + "updateCourseFollow", params)
  17953. .then((res) => {
  17954. if (this.IsFollow == true) {
  17955. this.$message({
  17956. message: "开启成功",
  17957. type: "success",
  17958. });
  17959. } else {
  17960. this.$message({
  17961. message: "关闭成功",
  17962. type: "success",
  17963. });
  17964. }
  17965. this.setCTask();
  17966. })
  17967. .catch((err) => {
  17968. console.error(err);
  17969. });
  17970. },
  17971. setCTask() {
  17972. let params = [
  17973. {
  17974. sopen: this.courseType + "-" + this.taskCount,
  17975. cid: this.id,
  17976. },
  17977. ];
  17978. this.ajax
  17979. .post(this.$store.state.api + "updateCourseFollowC", params)
  17980. .then((res) => {})
  17981. .catch((err) => {
  17982. console.error(err);
  17983. });
  17984. },
  17985. updateLookOpen() {
  17986. let params = [
  17987. {
  17988. sopen: this.IsLookOpen == false ? 1 : 2,
  17989. cid: this.id,
  17990. },
  17991. ];
  17992. this.ajax
  17993. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17994. .then((res) => {
  17995. if (this.IsLookOpen == true) {
  17996. // if (this.courseType != 0 && this.taskCount != 0) {
  17997. // this.openTask(0, 0, "0-0");
  17998. // }
  17999. this.$message({
  18000. message: "权限设置成功",
  18001. type: "success",
  18002. });
  18003. } else {
  18004. this.$message({
  18005. message: "权限关闭成功",
  18006. type: "success",
  18007. });
  18008. }
  18009. this.getCourseState(2);
  18010. })
  18011. .catch((err) => {
  18012. console.error(err);
  18013. });
  18014. },
  18015. selectSLook() {
  18016. let params = {
  18017. cid: this.id,
  18018. };
  18019. this.ajax
  18020. .get(this.$store.state.api + "selectCourseSLook", params)
  18021. .then((res) => {
  18022. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18023. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18024. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18025. if (!this.IsLookOpen) {
  18026. this.setNavList();
  18027. }else {
  18028. this.getCourseState(1);
  18029. }
  18030. if ((this.IsFollow && this.tType == 2)) {
  18031. this.setContent2(false);
  18032. let _followC = res.data[0][0].followC.split("-");
  18033. if (
  18034. this.courseType != _followC[0] ||
  18035. this.taskCount != _followC[1]
  18036. ) {
  18037. this.navList[this.courseType].isOpen = false;
  18038. this.courseType = _followC[0];
  18039. this.navList[this.courseType].isOpen = true;
  18040. this.taskCount = parseInt(_followC[1]);
  18041. this.navId = res.data[0][0].followC;
  18042. document.scrollingElement.scrollTop = 0;
  18043. this.getCourseDetail(2);
  18044. }
  18045. }
  18046. })
  18047. .catch((err) => {
  18048. console.error(err);
  18049. });
  18050. },
  18051. setNavList() {
  18052. if (this.navList.length == 0) {
  18053. this.navList = [];
  18054. var copyList = [];
  18055. for (var l = 0; l < this.chapInfoList.length; l++) {
  18056. var q = this.chapInfoList[l].dyName;
  18057. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18058. var e;
  18059. copyList.push({
  18060. dyName: q,
  18061. isOpen: l === 0 ? true : false,
  18062. task: [],
  18063. });
  18064. for (var r = 0; r < w.length; r++) {
  18065. e = w[r].task;
  18066. if (this.chapInfoList[l].easy == 1) {
  18067. copyList[l].task.push({
  18068. taskName: q,
  18069. id: l + "-" + r,
  18070. isLook: w[r].isLook,
  18071. isOpen: r === 0 ? true : false,
  18072. tool: [],
  18073. });
  18074. } else {
  18075. copyList[l].task.push({
  18076. taskName: e,
  18077. id: l + "-" + r,
  18078. isLook: w[r].isLook,
  18079. isOpen: r === 0 ? true : false,
  18080. tool: [],
  18081. });
  18082. }
  18083. var t = w[r].toolChoose;
  18084. for (var k = 0; k < t.length; k++) {
  18085. var tool = t[k].tool[0];
  18086. copyList[l].task[r].tool.push({
  18087. tool: tool,
  18088. isTool: false,
  18089. });
  18090. }
  18091. // this.navId = this.navId ? this.navId : l + "-" + r;
  18092. // this.navId = l + "-" + r;
  18093. }
  18094. }
  18095. this.navList = copyList;
  18096. this.navList[0].isOpen = false;
  18097. this.navList[this.courseType].isOpen = true;
  18098. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18099. } else {
  18100. this.setNavList2();
  18101. }
  18102. },
  18103. setNavList2() {
  18104. for (var l = 0; l < this.chapInfoList.length; l++) {
  18105. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18106. for (var r = 0; r < w.length; r++) {
  18107. this.navList[l].task[r].isLook = w[r].isLook;
  18108. }
  18109. }
  18110. if (
  18111. this.IsLookOpen &&
  18112. !this.navList[this.courseType].task[this.taskCount].isLook
  18113. ) {
  18114. this.openTask(0, 0, "0-0");
  18115. }
  18116. this.$forceUpdate();
  18117. },
  18118. getCourseState(type) {
  18119. let params = {
  18120. cid: this.id,
  18121. };
  18122. this.ajax
  18123. .get(this.$store.state.api + "getCourseState", params)
  18124. .then((res) => {
  18125. // if (res.data[0].length > 0) {
  18126. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18127. // }
  18128. if (res.data[0].length > 0 && type == 1) {
  18129. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18130. this.setNavList();
  18131. this.$forceUpdate();
  18132. } else if (res.data[0].length > 0 && type == 2) {
  18133. this.addCourseState(2);
  18134. } else {
  18135. // this.addCourseState(1);
  18136. }
  18137. })
  18138. .catch((err) => {
  18139. console.error(err);
  18140. });
  18141. },
  18142. addCourseState(type,val = '') {
  18143. let _state = val ? val : this.chapInfoList;
  18144. // this.courseType this.taskCount
  18145. if (type == 1 || type == 2) {
  18146. for (var i = 0; i < _state.length; i++) {
  18147. let el = _state[i].chapterInfo[0].taskJson;
  18148. for (var j = 0; j < el.length; j++) {
  18149. // if (i == 0 && j == 0) {
  18150. // el[j].isLook = true;
  18151. // } else {
  18152. // el[j].isLook = false;
  18153. // }
  18154. if (
  18155. this.courseType > i ||
  18156. (this.courseType == i && this.taskCount + 1 > j)
  18157. ) {
  18158. el[j].isLook = true;
  18159. } else {
  18160. el[j].isLook = false;
  18161. }
  18162. }
  18163. }
  18164. }
  18165. let params = [
  18166. {
  18167. cid: this.id,
  18168. state: JSON.stringify(_state),
  18169. },
  18170. ];
  18171. this.ajax
  18172. .post(
  18173. this.$store.state.api +
  18174. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18175. params
  18176. )
  18177. .then((res) => {
  18178. if (this.IsLookOpen) {
  18179. this.setNavList();
  18180. }
  18181. if (type == 3 && type == 2) {
  18182. this.getCourseState(1);
  18183. }
  18184. })
  18185. .catch((err) => {
  18186. console.error(err);
  18187. });
  18188. },
  18189. getHomeWork() {
  18190. let params = {
  18191. cid: this.id,
  18192. stage: this.courseType,
  18193. task: this.taskCount,
  18194. uid: this.userid,
  18195. };
  18196. this.ajax
  18197. .get(this.$store.state.api + "selectWork", params)
  18198. .then((res) => {
  18199. if (res.data[0].length > 0) {
  18200. this.studyJuri = JSON.parse(res.data[0][0].content);
  18201. this.isNoHomeWork = true;
  18202. }
  18203. })
  18204. .catch((err) => {
  18205. console.error(err);
  18206. });
  18207. },
  18208. isAssetTypeAnImage(ext) {
  18209. return (
  18210. [
  18211. "png",
  18212. "jpg",
  18213. "jpeg",
  18214. "bmp",
  18215. "gif",
  18216. "webp",
  18217. "psd",
  18218. "svg",
  18219. "tiff",
  18220. ].indexOf(ext) !== -1
  18221. );
  18222. },
  18223. switchVideo(media) {
  18224. this.playerO = {};
  18225. this.playerOptions.poster = "";
  18226. this.playerOptions.sources[0].src = media;
  18227. this.playerO = this.playerOptions;
  18228. },
  18229. onPlayerPlay() {},
  18230. onPlayerTimeupdate(player) {
  18231. let gklog = player.cache_.currentTime; //当前播放的秒数
  18232. let a = player.cache_.duration; //视频的总时长
  18233. let gklog2 = parseInt(gklog);
  18234. // if(gklog2 == '3'){
  18235. // player.pause()
  18236. // setTimeout(()=>{
  18237. // player.currentTime(gklog2+1)
  18238. // player.play()
  18239. // },1000)
  18240. // }
  18241. console.log(" onPlayerTimeupdate!", gklog);
  18242. console.log(" onPlayerTimeupdate!", gklog2);
  18243. },
  18244. lookVedio(u, i) {
  18245. this.isClickNav = "";
  18246. // this.playerOptions.sources[0].src = u;
  18247. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18248. d.sources[0].src = u;
  18249. this.playerO[this.taskCount] = d;
  18250. this.showType = 0;
  18251. // this.isClickNav = "video" + i;
  18252. this.isClickNav = i;
  18253. this.$forceUpdate();
  18254. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18255. },
  18256. lookText(i, t) {
  18257. this.isClickNav = "";
  18258. // this.text = this.textList[i][t];
  18259. this.text = this.vChapterData[i][t];
  18260. // this.dialogVisible1 = true;
  18261. this.showType = 1;
  18262. // this.isClickNav = "text" + t;
  18263. this.isClickNav = t;
  18264. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18265. },
  18266. lookTools(i, t) {
  18267. this.chapTools = this.chapToolList[i][t];
  18268. this.dialogVisible2 = true;
  18269. },
  18270. async openFile(f,w) {
  18271. this.pptImgUrl = "";
  18272. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18273. if (
  18274. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18275. -1
  18276. ) {
  18277. let _uuurl = await this.checkLink(f);
  18278. this.pptImgUrl =
  18279. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18280. this.showPDF = false;
  18281. this.dialogVisible3 = true;
  18282. } else if (
  18283. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18284. ) {
  18285. this.pptImgUrl = f;
  18286. this.showPDF = true;
  18287. this.dialogVisible3 = true;
  18288. }
  18289. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18290. },
  18291. openTable(f) {
  18292. this.tableJson = JSON.parse(f.works);
  18293. this.dialogVisibleTable2 = true;
  18294. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18295. },
  18296. openWord(f) {
  18297. this.tableJson = JSON.parse(f.works);
  18298. this.dialogVisibleTable3 = true;
  18299. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18300. },
  18301. doUrl(url, i) {
  18302. this.isClickNav = "";
  18303. this.pptImgUrl1 = "";
  18304. this.showType = 2;
  18305. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18306. url = "https://" + url;
  18307. }
  18308. this.pptImgUrl1 = "";
  18309. this.diffKey = new Date().getTime();
  18310. setTimeout(() => {
  18311. this.pptImgUrl1 = url;
  18312. }, 500);
  18313. // this.isClickNav = "line" + i;
  18314. this.isClickNav = i;
  18315. this.$forceUpdate();
  18316. },
  18317. checkPhoto(f, i) {
  18318. this.showType = 4;
  18319. this.pptImgUrl1 = f.url;
  18320. this.isClickNav = i;
  18321. this.$forceUpdate();
  18322. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18323. },
  18324. checkHtml(f, i){
  18325. this.showType = 16;
  18326. this.pptImgUrl1 = f.url;
  18327. this.isClickNav = i;
  18328. this.$forceUpdate();
  18329. },
  18330. async downFile(f, i) {
  18331. this.isClickNav = "";
  18332. this.pptImgUrl1 = "";
  18333. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18334. if (
  18335. a.indexOf(
  18336. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18337. ) != -1
  18338. ) {
  18339. let _uuurl = await this.checkLink(f.url);
  18340. this.pptImgUrl1 =
  18341. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18342. // this.dialogVisible3 = true;
  18343. this.showType = 2;
  18344. } else if (
  18345. this.isAssetTypeAnImage(
  18346. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18347. )
  18348. ) {
  18349. this.showType = 4;
  18350. this.pptImgUrl1 = f.url;
  18351. } else if (
  18352. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18353. "PDF"
  18354. ) {
  18355. this.pptImgUrl1 = f.url;
  18356. // this.dialogVisible3 = true;
  18357. this.showType = 3;
  18358. } else {
  18359. window.open(this.file[i].url);
  18360. }
  18361. // this.isClickNav = "word" + i;
  18362. this.isClickNav = i;
  18363. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18364. },
  18365. downFileList(i) {
  18366. window.open(this.noImgList[i].url);
  18367. },
  18368. openAddWork() {
  18369. this.dialogVisible = true;
  18370. },
  18371. addBzWorks() {
  18372. let params = [
  18373. {
  18374. uid: this.userid,
  18375. cid: this.id,
  18376. stage: this.courseType,
  18377. task: this.taskCount,
  18378. tool: this.toolindex,
  18379. content: JSON.stringify(this.eScore),
  18380. type: 6,
  18381. },
  18382. ];
  18383. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18384. this.homeWorkLoading = true
  18385. this.ajax
  18386. .post(this.$store.state.api + "addCourseWorks", params)
  18387. .then((res) => {
  18388. this.$message({
  18389. message: "提交成功",
  18390. type: "success",
  18391. });
  18392. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18393. setTimeout(() => {
  18394. this.homeWorkLoading = false
  18395. }, 500);
  18396. this.eScore = { eBzText: "", eStar: [] };
  18397. this.studentEvalDialogVisible = false;
  18398. this.selectSWorks();
  18399. })
  18400. .catch((err) => {
  18401. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18402. setTimeout(() => {
  18403. this.homeWorkLoading = false
  18404. }, 500);
  18405. this.$message.error("提交失败");
  18406. console.error(err);
  18407. });
  18408. },
  18409. addBzWorksTeacher() {
  18410. let params = [
  18411. {
  18412. uid: this.sStudent.userid,
  18413. cid: this.id,
  18414. stage: this.courseType,
  18415. task: this.taskCount,
  18416. tool: this.toolindex,
  18417. content: JSON.stringify(this.eScore),
  18418. type: 6,
  18419. },
  18420. ];
  18421. this.ajax
  18422. .post(this.$store.state.api + "addCourseWorks", params)
  18423. .then((res) => {
  18424. this.$message({
  18425. message: "提交成功",
  18426. type: "success",
  18427. });
  18428. this.eScore = { eBzText: "", eStar: [] };
  18429. this.studentEvalDialogVisibleTeacher = false;
  18430. this.selectSWorks();
  18431. })
  18432. .catch((err) => {
  18433. this.$message.error("提交失败");
  18434. console.error(err);
  18435. });
  18436. },
  18437. addStudentAsk() {
  18438. if (!this.radio.length) {
  18439. this.$message.error("请选择选项");
  18440. return;
  18441. }
  18442. for (var i = 0; i < this.askJson.askCount; i++) {
  18443. if (
  18444. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18445. (this.radio[i] !== 0 && !this.radio[i])
  18446. ) {
  18447. this.$message.error("请选择选项");
  18448. return;
  18449. }
  18450. }
  18451. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18452. let params = [
  18453. {
  18454. uid: this.userid,
  18455. cid: this.id,
  18456. stage: this.courseType,
  18457. task: this.taskCount,
  18458. tool: this.toolindex,
  18459. content: JSON.stringify(this.askList),
  18460. type: 2,
  18461. },
  18462. ];
  18463. // console.log('params',params);
  18464. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18465. this.homeWorkLoading = true
  18466. this.ajax
  18467. .post(this.$store.state.api + "addCourseWorks", params)
  18468. .then((res) => {
  18469. this.$message({
  18470. message: "提交成功",
  18471. type: "success",
  18472. });
  18473. setTimeout(() => {
  18474. this.homeWorkLoading = false
  18475. }, 500);
  18476. this.askList = [];
  18477. this.dialogVisible5 = false;
  18478. this.selectStudent();
  18479. this.selectSWorks();
  18480. this.selectSLook();
  18481. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18482. })
  18483. .catch((err) => {
  18484. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18485. setTimeout(() => {
  18486. this.homeWorkLoading = false
  18487. }, 500);
  18488. this.$message.error("提交失败");
  18489. console.error(err);
  18490. });
  18491. },
  18492. addStudentAskTeacher() {
  18493. if (!this.radio.length) {
  18494. this.$message.error("请选择选项");
  18495. return;
  18496. }
  18497. for (var i = 0; i < this.askJson.askCount; i++) {
  18498. if (
  18499. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18500. (this.radio[i] !== 0 && !this.radio[i])
  18501. ) {
  18502. this.$message.error("请选择选项");
  18503. return;
  18504. }
  18505. }
  18506. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18507. let params = [
  18508. {
  18509. uid: this.sStudent.userid,
  18510. cid: this.id,
  18511. stage: this.courseType,
  18512. task: this.taskCount,
  18513. tool: this.toolindex,
  18514. content: JSON.stringify(this.askList),
  18515. type: 2,
  18516. },
  18517. ];
  18518. this.ajax
  18519. .post(this.$store.state.api + "addCourseWorks", params)
  18520. .then((res) => {
  18521. this.$message({
  18522. message: "提交成功",
  18523. type: "success",
  18524. });
  18525. this.askList = [];
  18526. this.dialogVisible5Teacher = false;
  18527. this.selectStudent();
  18528. this.selectSWorks();
  18529. this.selectSLook();
  18530. })
  18531. .catch((err) => {
  18532. this.$message.error("提交失败");
  18533. console.error(err);
  18534. });
  18535. },
  18536. addStudentTest() {
  18537. if (!this.radio.length) {
  18538. this.$message.error("请选择选项");
  18539. return;
  18540. }
  18541. for (var i = 0; i < this.testJson.testCount; i++) {
  18542. if (
  18543. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18544. (this.radio[i] !== 0 && !this.radio[i])
  18545. ) {
  18546. this.$message.error("请选择选项");
  18547. return;
  18548. }
  18549. }
  18550. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18551. let params = [
  18552. {
  18553. uid: this.userid,
  18554. cid: this.id,
  18555. stage: this.courseType,
  18556. task: this.taskCount,
  18557. tool: this.toolindex,
  18558. content: JSON.stringify(this.askList),
  18559. type: 8,
  18560. },
  18561. ];
  18562. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18563. this.homeWorkLoading = true
  18564. this.ajax
  18565. .post(this.$store.state.api + "addCourseWorks", params)
  18566. .then((res) => {
  18567. this.$message({
  18568. message: "提交成功",
  18569. type: "success",
  18570. });
  18571. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18572. setTimeout(() => {
  18573. this.homeWorkLoading = false
  18574. }, 500);
  18575. this.askList = [];
  18576. this.dialogVisibleChoice = false;
  18577. this.selectStudent();
  18578. this.selectSWorks();
  18579. this.selectSLook();
  18580. })
  18581. .catch((err) => {
  18582. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18583. setTimeout(() => {
  18584. this.homeWorkLoading = false
  18585. }, 500);
  18586. this.$message.error("提交失败");
  18587. console.error(err);
  18588. });
  18589. },
  18590. addStudentTestTeacher() {
  18591. if (!this.radio.length) {
  18592. this.$message.error("请选择选项");
  18593. return;
  18594. }
  18595. for (var i = 0; i < this.testJson.testCount; i++) {
  18596. if (
  18597. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18598. (this.radio[i] !== 0 && !this.radio[i])
  18599. ) {
  18600. this.$message.error("请选择选项");
  18601. return;
  18602. }
  18603. }
  18604. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18605. let params = [
  18606. {
  18607. uid: this.sStudent.userid,
  18608. cid: this.id,
  18609. stage: this.courseType,
  18610. task: this.taskCount,
  18611. tool: this.toolindex,
  18612. content: JSON.stringify(this.askList),
  18613. type: 8,
  18614. },
  18615. ];
  18616. this.ajax
  18617. .post(this.$store.state.api + "addCourseWorks", params)
  18618. .then((res) => {
  18619. this.$message({
  18620. message: "提交成功",
  18621. type: "success",
  18622. });
  18623. this.askList = [];
  18624. this.dialogVisibleChoiceTeacher = false;
  18625. this.selectStudent();
  18626. this.selectSWorks();
  18627. this.selectSLook();
  18628. })
  18629. .catch((err) => {
  18630. this.$message.error("提交失败");
  18631. console.error(err);
  18632. });
  18633. },
  18634. addWork() {
  18635. if (this.studyJuri[0].content == "") {
  18636. this.$message.error("请将信息填写完整");
  18637. return;
  18638. } else if (this.studyJuri[0].cover.length == 0) {
  18639. this.$message.error("请将信息填写完整");
  18640. return;
  18641. } else if (this.studyJuri[0].upVedio.length == 0) {
  18642. this.$message.error("请将信息填写完整");
  18643. return;
  18644. }
  18645. if (this.isNoHomeWork) {
  18646. this.$confirm(
  18647. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18648. "提示",
  18649. {
  18650. confirmButtonText: "确定",
  18651. cancelButtonText: "取消",
  18652. type: "warning",
  18653. }
  18654. )
  18655. .then(() => {
  18656. let params = [
  18657. {
  18658. uid: this.userid,
  18659. cid: this.id,
  18660. stage: this.courseType,
  18661. task: this.taskCount,
  18662. content: JSON.stringify(this.studyJuri),
  18663. },
  18664. ];
  18665. this.ajax
  18666. .post(this.$store.state.api + "addWorks", params)
  18667. .then((res) => {
  18668. this.$message({
  18669. message: "提交成功",
  18670. type: "success",
  18671. });
  18672. this.isNoHomeWork = true;
  18673. this.dialogVisible = false;
  18674. })
  18675. .catch((err) => {
  18676. this.$message.error("提交失败");
  18677. console.error(err);
  18678. });
  18679. })
  18680. .catch(() => {});
  18681. } else {
  18682. let params = [
  18683. {
  18684. uid: this.userid,
  18685. cid: this.id,
  18686. stage: this.courseType,
  18687. task: this.taskCount,
  18688. content: JSON.stringify(this.studyJuri),
  18689. },
  18690. ];
  18691. this.ajax
  18692. .post(this.$store.state.api + "addWorks", params)
  18693. .then((res) => {
  18694. this.$message({
  18695. message: "提交成功",
  18696. type: "success",
  18697. });
  18698. this.isNoHomeWork = true;
  18699. this.dialogVisible = false;
  18700. })
  18701. .catch((err) => {
  18702. this.$message.error("提交失败");
  18703. console.error(err);
  18704. });
  18705. }
  18706. },
  18707. selectCount() {
  18708. let params = {
  18709. cid: this.id,
  18710. chid: this.courseType,
  18711. uid: this.userid,
  18712. };
  18713. this.ajax
  18714. .get(this.$store.state.api + "selectToolsCount", params)
  18715. .then((res) => {
  18716. for (var i = 0; i < res.data[0].length; i++) {
  18717. if (res.data[0][i].tools == 1) {
  18718. this.wbCount = res.data[0][i].count;
  18719. } else if (res.data[0][i].tools == 2) {
  18720. this.wordCount = res.data[0][i].count;
  18721. } else if (res.data[0][i].tools == 3) {
  18722. this.mindCount = res.data[0][i].count;
  18723. } else if (res.data[0][i].tools == 4) {
  18724. this.askCount = res.data[0][i].count;
  18725. } else if (res.data[0][i].tools == 6) {
  18726. this.noteCount = res.data[0][i].count;
  18727. } else if (res.data[0][i].tools == 7) {
  18728. this.mindNetWorkCount = res.data[0][i].count;
  18729. } else if (res.data[0][i].tools == 8) {
  18730. this.libraryCount = res.data[0][i].count;
  18731. } else if (res.data[0][i].tools == 16) {
  18732. this.workCount = res.data[0][i].count;
  18733. } else if (res.data[0][i].tools == 10) {
  18734. this.timeCount = res.data[0][i].count;
  18735. } else if (res.data[0][i].tools == 15) {
  18736. this.answerCount = res.data[0][i].count;
  18737. } else if (res.data[0][i].tools == 18) {
  18738. this.trainCount = res.data[0][i].count;
  18739. }
  18740. }
  18741. })
  18742. .catch((err) => {
  18743. console.error(err);
  18744. });
  18745. },
  18746. openTools(t, i, index, c, sName,id) {
  18747. var z = JSON.parse(c);
  18748. this.noteName = sName;
  18749. if (t == 4) {
  18750. this.radio = [];
  18751. this.isAnswer = false;
  18752. let b = z[0].anwer;
  18753. this.radio = b;
  18754. this.askJson = z[0].askJson;
  18755. this.isAnswer = true;
  18756. this.dialogVisible5 = true;
  18757. } else if (t == 45) {
  18758. this.radio = [];
  18759. this.isAnswer = false;
  18760. let b = z[0].anwer;
  18761. this.radio = b;
  18762. this.testJson = z[0].testJson;
  18763. this.isAnswer = true;
  18764. this.dialogVisibleChoice = true;
  18765. }else if(t == 69){
  18766. this.oldEnglishJson1 = {}
  18767. this.oldEnglishJson = {}
  18768. this.englishList1 = {}
  18769. this.newEngIndex = -1;
  18770. this.isNoUserid = false;
  18771. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18772. .toolChoose[i].englishList;
  18773. this.oldEnglishJson = z;
  18774. this.engWid = id;
  18775. this.newEnglishList = { engTitle:"",engText:"" }
  18776. this.newEnglishList1 = []
  18777. this.selectEngC(id,z);
  18778. }else if(t == 62){
  18779. this.videoType = 1;
  18780. this.videoJson = {};
  18781. this.videoJson = JSON.parse(c);
  18782. // this.videoJson =
  18783. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18784. // index
  18785. // ].toolChoose[i].videoJson;
  18786. this.dialogVisibleVideo = true;
  18787. //this.dialog
  18788. }
  18789. // else if (t == 15) {
  18790. // this.answerQ = "";
  18791. // this.questionAnswer = "";
  18792. // this.answerQ = z[0].answerTitle;
  18793. // this.questionAnswer = z[0].answer;
  18794. // this.answerDialogVisible = true;
  18795. // }
  18796. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18797. },
  18798. fastText(p, t) {
  18799. if (t == 1) {
  18800. this.commentText += p;
  18801. } else {
  18802. this.eScore.eBzText += p;
  18803. }
  18804. },
  18805. addTools(t, i, index) {
  18806. var a = 0;
  18807. // this.taskCount = index;
  18808. this.toolindex = i;
  18809. if (t == 1) {
  18810. if (this.wbCount > 0) {
  18811. this.updateCount(this.wbCount, t);
  18812. } else {
  18813. this.wbCount++;
  18814. a = this.wbCount;
  18815. this.toolsCount(a, t);
  18816. }
  18817. window.topU.postMessage(
  18818. {
  18819. tools: "1",
  18820. cid: this.id,
  18821. stage: this.courseType,
  18822. task: this.taskCount,
  18823. tool: i,
  18824. },
  18825. "*"
  18826. );
  18827. } else if (t == 2) {
  18828. if (this.wordCount > 0) {
  18829. this.updateCount(this.wordCount, t);
  18830. } else {
  18831. this.wordCount++;
  18832. a = this.wordCount;
  18833. this.toolsCount(a, t);
  18834. }
  18835. window.topU.postMessage({ tools: "2" }, "*");
  18836. } else if (t == 3) {
  18837. if (this.mindCount > 0) {
  18838. this.updateCount(this.mindCount, t);
  18839. } else {
  18840. this.mindCount++;
  18841. a = this.mindCount;
  18842. this.toolsCount(a, t);
  18843. }
  18844. window.topU.postMessage(
  18845. {
  18846. tools: "3",
  18847. cid: this.id,
  18848. stage: this.courseType,
  18849. task: this.taskCount,
  18850. tool: i,
  18851. },
  18852. "*"
  18853. );
  18854. } else if (t == 4) {
  18855. this.radio = [];
  18856. this.noteName = "";
  18857. this.isAnswer = false;
  18858. if (this.askCount > 0) {
  18859. this.updateCount(this.askCount, t);
  18860. } else {
  18861. this.askCount++;
  18862. a = this.askCount;
  18863. this.toolsCount(a, t);
  18864. }
  18865. if (!this.dialogVisible2) {
  18866. this.askJson.askJson =
  18867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18868. index
  18869. ].toolChoose[i].askJson;
  18870. this.askJson.askTitle =
  18871. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18872. index
  18873. ].toolChoose[i].askTitle;
  18874. this.askJson.askCount =
  18875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18876. index
  18877. ].toolChoose[i].askCount;
  18878. } else {
  18879. this.askJson.askJson = this.chapTools.askJson.askJson;
  18880. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18881. this.askJson.askCount = this.chapTools.askJson.askCount;
  18882. }
  18883. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18884. if (this.askJson.askJson[k].type == "2") {
  18885. this.radio.push([]);
  18886. } else {
  18887. this.radio.push("");
  18888. }
  18889. }
  18890. this.dialogVisible5 = true;
  18891. // window.topU.postMessage({ tools: "4" }, "*");
  18892. } else if (t == 45) {
  18893. this.noteName = "";
  18894. this.radio = [];
  18895. this.isAnswer = false;
  18896. if (this.askCount > 0) {
  18897. this.updateCount(this.askCount, t);
  18898. } else {
  18899. this.askCount++;
  18900. a = this.askCount;
  18901. this.toolsCount(a, t);
  18902. }
  18903. this.testJson =
  18904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18905. index
  18906. ].toolChoose[i].testJson;
  18907. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18908. if (this.testJson.testJson[k].type == "2") {
  18909. this.radio.push([]);
  18910. } else {
  18911. this.radio.push("");
  18912. }
  18913. }
  18914. this.dialogVisibleChoice = true;
  18915. // window.topU.postMessage({ tools: "4" }, "*");
  18916. } else if (t == 5) {
  18917. if (this.scoreCount > 0) {
  18918. this.updateCount(this.scoreCount, t);
  18919. } else {
  18920. this.scoreCount++;
  18921. a = this.scoreCount;
  18922. this.toolsCount(a, t);
  18923. }
  18924. this.dialogVisible4 = true;
  18925. // window.topU.postMessage({ tools: "5" }, "*");
  18926. } else if (t == 6) {
  18927. if (this.noteCount > 0) {
  18928. this.updateCount(this.noteCount, t);
  18929. } else {
  18930. this.noteCount++;
  18931. a = this.noteCount;
  18932. this.toolsCount(a, t);
  18933. }
  18934. window.topU.postMessage(
  18935. {
  18936. tools: "6",
  18937. cid: this.id,
  18938. stage: this.courseType,
  18939. task: this.taskCount,
  18940. tool: i,
  18941. },
  18942. "*"
  18943. );
  18944. } else if (t == 7) {
  18945. if (this.mindNetWorkCount > 0) {
  18946. this.updateCount(this.mindNetWorkCount, t);
  18947. } else {
  18948. this.mindNetWorkCount++;
  18949. a = this.mindNetWorkCount;
  18950. this.toolsCount(a, t);
  18951. }
  18952. window.topU.postMessage(
  18953. {
  18954. tools: "7",
  18955. cid: this.id,
  18956. stage: this.courseType,
  18957. task: this.taskCount,
  18958. tool: i,
  18959. },
  18960. "*"
  18961. );
  18962. } else if (t == 16) {
  18963. if (this.workCount > 0) {
  18964. this.updateCount(this.workCount, t);
  18965. } else {
  18966. this.workCount++;
  18967. a = this.workCount;
  18968. this.toolsCount(a, t);
  18969. }
  18970. this.dialogVisible = true;
  18971. } else if (t == 50) {
  18972. if (this.tType == 2) {
  18973. this.$message.error("不支持学生使用");
  18974. return;
  18975. }
  18976. this.plworkFile = [];
  18977. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18978. if (!this.uploadCid) {
  18979. this.$message.error(
  18980. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18981. );
  18982. return;
  18983. }
  18984. // this.uploadCid =
  18985. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18986. // index
  18987. // ].toolChoose[i].uploadJson[0];
  18988. this.selectUploadStudent(2);
  18989. } else if (t == 8) {
  18990. if (this.libraryCount > 0) {
  18991. this.updateCount(this.libraryCount, t);
  18992. } else {
  18993. this.libraryCount++;
  18994. a = this.libraryCount;
  18995. this.toolsCount(a, t);
  18996. }
  18997. window.topU.postMessage({ tools: "8" }, "*");
  18998. } else if (t == 17) {
  18999. if (this.libraryCount > 0) {
  19000. this.updateCount(this.libraryCount, t);
  19001. } else {
  19002. this.libraryCount++;
  19003. a = this.libraryCount;
  19004. this.toolsCount(a, t);
  19005. }
  19006. window.topU.postMessage({ tools: "17" }, "*");
  19007. } else if (t == 18) {
  19008. if (this.trainCount > 0) {
  19009. this.updateCount(this.trainCount, t);
  19010. } else {
  19011. this.trainCount++;
  19012. a = this.trainCount;
  19013. this.toolsCount(a, t);
  19014. }
  19015. window.topU.postMessage({ tools: "18" }, "*");
  19016. } else if (t == 10) {
  19017. if (this.timeCount > 0) {
  19018. this.updateCount(this.timeCount, t);
  19019. } else {
  19020. this.timeCount++;
  19021. a = this.timeCount;
  19022. this.toolsCount(a, t);
  19023. }
  19024. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19025. .taskJson[index].toolChoose[i].preTime
  19026. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19027. .toolChoose[i].preTime
  19028. : "";
  19029. this.timeDialogVisible = true;
  19030. } else if (t == 15) {
  19031. this.answerQ = "";
  19032. this.questionAnswer = "";
  19033. if (this.answerCount > 0) {
  19034. this.updateCount(this.answerCount, t);
  19035. } else {
  19036. this.answerCount++;
  19037. a = this.answerCount;
  19038. this.toolsCount(a, t);
  19039. }
  19040. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19041. .taskJson[index].toolChoose[i].answerQ
  19042. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19043. .toolChoose[i].answerQ
  19044. : "";
  19045. this.answerDialogVisible = true;
  19046. } else if (t == 21) {
  19047. window.topU.postMessage({ tools: "21" }, "*");
  19048. } else if (t == 22) {
  19049. window.topU.postMessage({ tools: "22" }, "*");
  19050. } else if (t == 23) {
  19051. window.topU.postMessage({ tools: "23" }, "*");
  19052. } else if (t == 24) {
  19053. window.topU.postMessage({ tools: "24" }, "*");
  19054. } else if (t == 25) {
  19055. window.topU.postMessage({ tools: "25" }, "*");
  19056. } else if (t == 31) {
  19057. window.topU.postMessage({ tools: "31" }, "*");
  19058. } else if (t == 28) {
  19059. window.topU.postMessage({ tools: "28" }, "*");
  19060. } else if (t == 37) {
  19061. window.topU.postMessage({ tools: "37" }, "*");
  19062. } else if (t == 38) {
  19063. window.topU.postMessage({ tools: "38" }, "*");
  19064. } else if (t == 39) {
  19065. window.topU.postMessage({ tools: "39" }, "*");
  19066. } else if (t == 32) {
  19067. window.topU.postMessage({ tools: "32" }, "*");
  19068. } else if (t == 66) {
  19069. window.topU.postMessage({ tools: "66" }, "*");
  19070. } else if (t == 67) {
  19071. window.topU.postMessage({ tools: "67" }, "*");
  19072. } else if (t == 68) {
  19073. window.topU.postMessage({ tools: "68" }, "*");
  19074. } else if (t == 57) {
  19075. // window.topU.postMessage({ tools: "57" }, "*");
  19076. window.topU.postMessage(
  19077. {
  19078. tools: "57u",
  19079. cid: this.id,
  19080. stage: this.courseType,
  19081. task: this.taskCount,
  19082. tool: i,
  19083. },
  19084. "*"
  19085. );
  19086. } else if (t == 58) {
  19087. window.topU.postMessage({ tools: "58" }, "*");
  19088. } else if (t == 59) {
  19089. window.topU.postMessage({ tools: "59" }, "*");
  19090. } else if (t == 60) {
  19091. window.topU.postMessage({ tools: "60" }, "*");
  19092. } else if (t == 61) {
  19093. window.topU.postMessage({ tools: "61" }, "*");
  19094. } else if (t == 63) {
  19095. window.topU.postMessage({ tools: "63" }, "*");
  19096. } else if (t == 71) {
  19097. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19098. // this.$message.error("该工具不可使用");
  19099. // return
  19100. // }
  19101. window.topU.postMessage({ tools: "71" }, "*");
  19102. } else if (t == 72) {
  19103. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19104. .taskJson[index].toolChoose[i].appJson
  19105. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19106. .toolChoose[i].appJson
  19107. : "";
  19108. if(!item || !item.url){
  19109. this.$message.error("应用连接为空, 请到课程管理中添加");
  19110. return;
  19111. }
  19112. if (!document.fullscreenElement) {
  19113. this.enterFullScreen();
  19114. }
  19115. this.$refs.appStoreC.getData(item.url,this.userid)
  19116. // window.open(item.url, "_blank");
  19117. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19118. } else if (t == 69) {
  19119. if (this.worksStudent[i].length) {
  19120. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19121. if (this.userid == this.worksStudent[i][k].userid) {
  19122. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19123. break;
  19124. } else {
  19125. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19126. }
  19127. }
  19128. } else {
  19129. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19130. }
  19131. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19132. .taskJson[index].toolChoose[i].englishList
  19133. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19134. .toolChoose[i].englishList
  19135. : {};
  19136. this.englishToolIndex = i;
  19137. this.myAnList = this.myAnswerList1;
  19138. this.engDialogVisible = true;
  19139. } else if (t == 70) {
  19140. if (this.worksStudent[i].length) {
  19141. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19142. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19143. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19144. break;
  19145. } else {
  19146. this.englishVoiceJsonWork = [];
  19147. }
  19148. }
  19149. } else {
  19150. this.englishVoiceJsonWork = [];
  19151. }
  19152. let englishVoiceJson = {}
  19153. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19154. .taskJson[index].toolChoose[i].englishVoiceJson
  19155. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19156. .toolChoose[i].englishVoiceJson
  19157. : {};
  19158. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19159. this.EnglishVoiceDialog = true;
  19160. } else if (t == 65) {
  19161. if (this.tType == 2) {
  19162. this.$message.error("不支持学生使用");
  19163. return;
  19164. }
  19165. this.uploadCid = this.tcid;
  19166. if (!this.uploadCid) {
  19167. this.$message.error(
  19168. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19169. );
  19170. return;
  19171. }
  19172. this.selectPickStudent();
  19173. } else if (t == 26) {
  19174. window.topU.postMessage(
  19175. {
  19176. tools: "26",
  19177. cid: this.id,
  19178. stage: this.courseType,
  19179. task: this.taskCount,
  19180. tool: i,
  19181. },
  19182. "*"
  19183. );
  19184. } else if (t == 40) {
  19185. if (this.evalCount > 0) {
  19186. this.updateCount(this.evalCount, t);
  19187. } else {
  19188. this.evalCount++;
  19189. a = this.evalCount;
  19190. this.toolsCount(a, t);
  19191. }
  19192. this.eScore = { eBzText: "", eStar: [] };
  19193. if (this.worksStudent[i].length) {
  19194. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19195. if (this.userid == this.worksStudent[i][k].userid) {
  19196. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19197. this.rateJson =
  19198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19199. index
  19200. ].toolChoose[i].rateJson;
  19201. break;
  19202. } else {
  19203. this.rateJson =
  19204. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19205. index
  19206. ].toolChoose[i].rateJson;
  19207. }
  19208. }
  19209. } else {
  19210. this.rateJson =
  19211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19212. index
  19213. ].toolChoose[i].rateJson;
  19214. }
  19215. this.isStar = false;
  19216. this.studentEvalDialogVisible = true;
  19217. } else if (t == 41) {
  19218. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19219. .taskJson[index].toolChoose[i].selectJson
  19220. ? JSON.parse(
  19221. JSON.stringify(
  19222. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19223. index
  19224. ].toolChoose[i].selectJson
  19225. )
  19226. )
  19227. : { url: "", select: [], answer: [] };
  19228. if (this.worksStudent[i].length) {
  19229. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19230. if (this.userid == this.worksStudent[i][k].userid) {
  19231. var a = this.worksStudent[i][k].works.split(",");
  19232. for (var ki = 0; ki < a.length; ki++) {
  19233. a[ki] = parseInt(a[ki]);
  19234. }
  19235. this.selectAnswer = {
  19236. answer: a,
  19237. stu: this.worksStudent[i][k].sName,
  19238. };
  19239. break;
  19240. } else {
  19241. this.selectAnswer = { answer: [], stu: "" };
  19242. }
  19243. }
  19244. } else {
  19245. this.selectAnswer = { answer: [], stu: "" };
  19246. }
  19247. this.isSelect = false;
  19248. this.dialogVisibleSelect = true;
  19249. } else if (t == 44) {
  19250. window.topU.postMessage({ tools: "44" }, "*");
  19251. } else if (t == 47) {
  19252. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19253. .taskJson[index].toolChoose[i].sentenceList
  19254. ? JSON.parse(
  19255. JSON.stringify(
  19256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19257. index
  19258. ].toolChoose[i].sentenceList
  19259. )
  19260. )
  19261. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19262. for (var q = 0; q < this.sentenceList.length; q++) {
  19263. this.sentenceList[q].chooseSenList = [];
  19264. this.sentenceList[q].addChangeSen = [];
  19265. this.sentenceList[q].addChangeSen = JSON.parse(
  19266. JSON.stringify(this.sentenceList[q].addSentence)
  19267. );
  19268. this.sentenceList[q].chooseSenList.length =
  19269. this.sentenceList[q].rightAnswer.length;
  19270. }
  19271. this.dialogVisibleSentence = true;
  19272. } else if (t == 48) {
  19273. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19274. .taskJson[index].toolChoose[i].tableJson
  19275. ? JSON.parse(
  19276. JSON.stringify(
  19277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19278. index
  19279. ].toolChoose[i].tableJson
  19280. )
  19281. )
  19282. : { text: "" };
  19283. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19284. if (this.worksStudent[i].length) {
  19285. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19286. if (this.userid == this.worksStudent[i][k].userid) {
  19287. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19288. break;
  19289. }
  19290. }
  19291. }
  19292. this.dialogVisibleTable = true;
  19293. } else if (t == 52) {
  19294. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19295. .taskJson[index].toolChoose[i].wordJson
  19296. ? JSON.parse(
  19297. JSON.stringify(
  19298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19299. index
  19300. ].toolChoose[i].wordJson
  19301. )
  19302. )
  19303. : { text: "" };
  19304. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19305. if (this.worksStudent[i].length) {
  19306. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19307. if (this.userid == this.worksStudent[i][k].userid) {
  19308. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19309. break;
  19310. }
  19311. }
  19312. }
  19313. this.dialogVisibleWord = true;
  19314. } else if (t == 49) {
  19315. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19316. return
  19317. }
  19318. this.groupJson =
  19319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19320. index
  19321. ].toolChoose[i].groupJson;
  19322. this.islock = this.groupJson.islock == 1 ? true : false;
  19323. this.dialogVisibleGroup = true;
  19324. } else if (t == 62) {
  19325. this.videoType = 0;
  19326. this.videoJson = {};
  19327. this.videoJson =
  19328. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19329. index
  19330. ].toolChoose[i].videoJson;
  19331. this.dialogVisibleVideo = true;
  19332. }
  19333. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19334. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19335. },
  19336. teacherWorkSubmit(t, i, index, s) {
  19337. this.sStudent = s;
  19338. this.toolindex = i;
  19339. this.sTool = t;
  19340. if (this.tType !== "1" && this.tType !== "4") {
  19341. return;
  19342. }
  19343. if (t == 16 || t == 32 || t == 50) {
  19344. this.dialogVisibleWorks = true;
  19345. } else if (t == 15) {
  19346. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19347. .taskJson[index].toolChoose[i].answerQ
  19348. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19349. .toolChoose[i].answerQ
  19350. : "";
  19351. this.questionAnswer = "";
  19352. this.answerDialogVisibleTeacher = true; //问答
  19353. } else if (t == 52) {
  19354. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19355. .taskJson[index].toolChoose[i].wordJson
  19356. ? JSON.parse(
  19357. JSON.stringify(
  19358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19359. index
  19360. ].toolChoose[i].wordJson
  19361. )
  19362. )
  19363. : { text: "" };
  19364. if (this.worksStudent[i].length) {
  19365. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19366. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19367. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19368. break;
  19369. }
  19370. }
  19371. }
  19372. this.dialogVisibleWordTeacher = true; //文档
  19373. } else if (t == 4) {
  19374. this.radio = [];
  19375. this.noteName = "";
  19376. this.isAnswer = false;
  19377. if (this.askCount > 0) {
  19378. this.updateCount(this.askCount, t);
  19379. } else {
  19380. this.askCount++;
  19381. a = this.askCount;
  19382. this.toolsCount(a, t);
  19383. }
  19384. if (!this.dialogVisible2) {
  19385. this.askJson.askJson =
  19386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19387. index
  19388. ].toolChoose[i].askJson;
  19389. this.askJson.askTitle =
  19390. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19391. index
  19392. ].toolChoose[i].askTitle;
  19393. this.askJson.askCount =
  19394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19395. index
  19396. ].toolChoose[i].askCount;
  19397. } else {
  19398. this.askJson.askJson = this.chapTools.askJson.askJson;
  19399. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19400. this.askJson.askCount = this.chapTools.askJson.askCount;
  19401. }
  19402. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19403. if (this.askJson.askJson[k].type == "2") {
  19404. this.radio.push([]);
  19405. } else {
  19406. this.radio.push("");
  19407. }
  19408. }
  19409. this.dialogVisible5Teacher = true;
  19410. } else if (t == 45) {
  19411. this.noteName = "";
  19412. this.radio = [];
  19413. this.isAnswer = false;
  19414. if (this.askCount > 0) {
  19415. this.updateCount(this.askCount, t);
  19416. } else {
  19417. this.askCount++;
  19418. a = this.askCount;
  19419. this.toolsCount(a, t);
  19420. }
  19421. this.testJson =
  19422. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19423. index
  19424. ].toolChoose[i].testJson;
  19425. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19426. if (this.testJson.testJson[k].type == "2") {
  19427. this.radio.push([]);
  19428. } else {
  19429. this.radio.push("");
  19430. }
  19431. }
  19432. this.dialogVisibleChoiceTeacher = true;
  19433. } else if (t == 41) {
  19434. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19435. .taskJson[index].toolChoose[i].selectJson
  19436. ? JSON.parse(
  19437. JSON.stringify(
  19438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19439. index
  19440. ].toolChoose[i].selectJson
  19441. )
  19442. )
  19443. : { url: "", select: [], answer: [] };
  19444. if (this.worksStudent[i].length) {
  19445. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19446. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19447. var a = this.worksStudent[i][k].works.split(",");
  19448. for (var ki = 0; ki < a.length; ki++) {
  19449. a[ki] = parseInt(a[ki]);
  19450. }
  19451. this.selectAnswer = {
  19452. answer: a,
  19453. stu: this.worksStudent[i][k].sName,
  19454. };
  19455. break;
  19456. } else {
  19457. this.selectAnswer = { answer: [], stu: "" };
  19458. }
  19459. }
  19460. } else {
  19461. this.selectAnswer = { answer: [], stu: "" };
  19462. }
  19463. this.isSelect = false;
  19464. this.dialogVisibleSelectTeacher = true;
  19465. } else if (t == 47) {
  19466. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19467. .taskJson[index].toolChoose[i].sentenceList
  19468. ? JSON.parse(
  19469. JSON.stringify(
  19470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19471. index
  19472. ].toolChoose[i].sentenceList
  19473. )
  19474. )
  19475. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19476. for (var q = 0; q < this.sentenceList.length; q++) {
  19477. this.sentenceList[q].chooseSenList = [];
  19478. this.sentenceList[q].addChangeSen = [];
  19479. this.sentenceList[q].addChangeSen = JSON.parse(
  19480. JSON.stringify(this.sentenceList[q].addSentence)
  19481. );
  19482. this.sentenceList[q].chooseSenList.length =
  19483. this.sentenceList[q].rightAnswer.length;
  19484. }
  19485. this.dialogVisibleSentenceTeacher = true;
  19486. } else if (t == 48) {
  19487. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19488. .taskJson[index].toolChoose[i].tableJson
  19489. ? JSON.parse(
  19490. JSON.stringify(
  19491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19492. index
  19493. ].toolChoose[i].tableJson
  19494. )
  19495. )
  19496. : { text: "" };
  19497. if (this.worksStudent[i].length) {
  19498. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19499. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19500. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19501. break;
  19502. }
  19503. }
  19504. }
  19505. this.dialogVisibleTableTeacher = true;
  19506. } else if (t == 40) {
  19507. if (this.evalCount > 0) {
  19508. this.updateCount(this.evalCount, t);
  19509. } else {
  19510. this.evalCount++;
  19511. a = this.evalCount;
  19512. this.toolsCount(a, t);
  19513. }
  19514. this.eScore = { eBzText: "", eStar: [] };
  19515. if (this.worksStudent[i].length) {
  19516. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19517. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19518. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19519. this.rateJson =
  19520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19521. index
  19522. ].toolChoose[i].rateJson;
  19523. break;
  19524. } else {
  19525. this.rateJson =
  19526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19527. index
  19528. ].toolChoose[i].rateJson;
  19529. }
  19530. }
  19531. } else {
  19532. this.rateJson =
  19533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19534. index
  19535. ].toolChoose[i].rateJson;
  19536. }
  19537. this.isStar = false;
  19538. this.studentEvalDialogVisibleTeacher = true;
  19539. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19540. window.topU.postMessage(
  19541. {
  19542. tools: t + "teacher",
  19543. cid: this.id,
  19544. stage: this.courseType,
  19545. task: this.taskCount,
  19546. tool: i,
  19547. student: this.sStudent,
  19548. },
  19549. "*"
  19550. );
  19551. }else if (t == 72) {
  19552. if (!document.fullscreenElement) {
  19553. this.enterFullScreen();
  19554. }
  19555. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19556. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19557. }
  19558. },
  19559. openCocoPi(tool, i, uid, uname) {
  19560. let student = {
  19561. userid: uid,
  19562. student: uname,
  19563. };
  19564. if (tool == 57) {
  19565. window.topU.postMessage(
  19566. {
  19567. tools: tool + "teacher",
  19568. cid: this.id,
  19569. stage: this.courseType,
  19570. task: this.taskCount,
  19571. tool: i,
  19572. student: student,
  19573. },
  19574. "*"
  19575. );
  19576. }
  19577. },
  19578. setRightAnswer(s, i, j) {
  19579. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19580. if (
  19581. this.sentenceList[i].chooseSenList[q] == undefined ||
  19582. this.sentenceList[i].chooseSenList[q] == ""
  19583. ) {
  19584. this.sentenceList[i].chooseSenList[q] = s;
  19585. this.sentenceList[i].addChangeSen[j] = "";
  19586. break;
  19587. }
  19588. }
  19589. this.$forceUpdate();
  19590. },
  19591. returnCard(r, i, j) {
  19592. var a = this.sentenceList[i].addSentence.indexOf(r);
  19593. this.sentenceList[i].chooseSenList[j] = "";
  19594. this.sentenceList[i].addChangeSen[a] = r;
  19595. this.$forceUpdate();
  19596. },
  19597. // addSentenceTool() {
  19598. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19599. // this.taskCount
  19600. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19601. // this.sentenceList = [
  19602. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19603. // ];
  19604. // this.dialogVisibleSentence = false;
  19605. // },
  19606. toolsCount(a, t) {
  19607. let params = {
  19608. cid: this.id,
  19609. chid: this.courseType,
  19610. uid: this.userid,
  19611. tid: t,
  19612. count: a,
  19613. };
  19614. this.ajax
  19615. .get(this.$store.state.api + "insertToolsCount", params)
  19616. .then((res) => {
  19617. this.selectCount();
  19618. })
  19619. .catch((err) => {
  19620. console.error(err);
  19621. });
  19622. },
  19623. updateCount(c, t) {
  19624. c++;
  19625. let params = {
  19626. cid: this.id,
  19627. chid: this.courseType,
  19628. uid: this.userid,
  19629. tid: t,
  19630. count: c,
  19631. };
  19632. this.ajax
  19633. .get(this.$store.state.api + "updateToolsCount", params)
  19634. .then((res) => {
  19635. this.selectCount();
  19636. })
  19637. .catch((err) => {
  19638. console.error(err);
  19639. });
  19640. },
  19641. checkEva() {
  19642. if (this.evalua != "") {
  19643. for (var i = 0; i < this.evaJuri.length; i++) {
  19644. if (this.evalua == this.evaJuri[i].id) {
  19645. this.eTitle = this.evaJuri[i].title;
  19646. this.eJson = JSON.parse(this.evaJuri[i].content);
  19647. }
  19648. }
  19649. this.$forceUpdate();
  19650. setTimeout(() => {
  19651. this.setMindData();
  19652. }, 0);
  19653. }
  19654. },
  19655. selectEva() {
  19656. let params = {
  19657. oid: this.oid,
  19658. };
  19659. this.ajax
  19660. .get(this.$store.state.api + "selectAllEvaluation", params)
  19661. .then((res) => {
  19662. this.evaJuri = res.data[0];
  19663. })
  19664. .catch((err) => {
  19665. console.error(err);
  19666. });
  19667. },
  19668. setMindData() {
  19669. this.data.data = [];
  19670. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19671. let _eJson = Object.keys(this.eJson);
  19672. let _e = this.eJson;
  19673. for (let i = 0; i < _eJson.length; i++) {
  19674. let element = _e[_eJson[i]];
  19675. this.data.data.push({
  19676. id: element.id,
  19677. parentid: "root",
  19678. topic: element.name,
  19679. });
  19680. let _eJsonc = Object.keys(element.child);
  19681. let _e2 = element.child;
  19682. for (let j = 0; j < _eJsonc.length; j++) {
  19683. let _ec = _e2[_eJsonc[j]];
  19684. this.data.data.push({
  19685. id: _ec.id,
  19686. parentid: element.id,
  19687. topic: _ec.name,
  19688. });
  19689. let _eJsonz = Object.keys(_ec.child);
  19690. let _e3 = _ec.child;
  19691. for (let z = 0; z < _eJsonz.length; z++) {
  19692. let _ez = _e3[_eJsonz[z]];
  19693. this.data.data.push({
  19694. id: _ez.id,
  19695. parentid: _ec.id,
  19696. topic: _ez.name,
  19697. });
  19698. }
  19699. }
  19700. }
  19701. this.$forceUpdate();
  19702. },
  19703. checkFileFull(type, url) {
  19704. this.fullDialogVisible = true;
  19705. this.fulltype = type;
  19706. this.fullUrl = url;
  19707. },
  19708. async checkFileFull1(t, f) {
  19709. this.fullDialogVisible = true;
  19710. if (t == 6) {
  19711. this.fulltype = 1;
  19712. this.fullUrl = JSON.parse(JSON.stringify(f));
  19713. } else if (t == 8 ) {
  19714. this.fulltype = 2;
  19715. this.fullUrl = f.url;
  19716. }else if (t == 15) {
  19717. this.diffKey = new Date().getTime();
  19718. this.fulltype = 4;
  19719. this.fullUrl = f.url;
  19720. } else if (t == 16) {
  19721. this.fulltype = 16;
  19722. this.fullUrl = f.url;
  19723. } else if (
  19724. t == 3 &&
  19725. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19726. "PDF"
  19727. ) {
  19728. this.fulltype = 3;
  19729. this.fullUrl = f.url;
  19730. } else if (t == 3) {
  19731. this.fulltype = 2;
  19732. let _uuurl = await this.checkLink(f.url);
  19733. this.fullUrl =
  19734. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19735. }
  19736. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19737. },
  19738. openSname(n, id, i, uid) {
  19739. this.snameWid = id;
  19740. this.worksSName = n;
  19741. this.worksSid = uid == n ? "" : uid;
  19742. this.toolindex = i;
  19743. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19744. if (!this.uploadCid) {
  19745. this.$message.error(
  19746. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19747. );
  19748. return;
  19749. }
  19750. this.selectUploadStudent(1);
  19751. },
  19752. updateName() {
  19753. let params = {
  19754. n: this.worksSName,
  19755. cid: this.snameWid,
  19756. };
  19757. this.ajax
  19758. .get(this.$store.state.api + "updateCourseWorksName", params)
  19759. .then((res) => {
  19760. this.$message({
  19761. message: "修改成功",
  19762. type: "success",
  19763. });
  19764. this.dialogVisibleSname = false;
  19765. this.getCourseDetail(2);
  19766. this.snameWid = "";
  19767. this.worksSName = "";
  19768. })
  19769. .catch((err) => {
  19770. console.error(err);
  19771. });
  19772. },
  19773. downloadFile2(f) {
  19774. // const loading = this.$loading.service({
  19775. // background: "rgba(255, 255, 255, 0.7)",
  19776. // target: document.body,
  19777. // text: "文件加载中...",
  19778. // });
  19779. // let url2 = f.url;
  19780. // let _url2 = "";
  19781. // if (
  19782. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19783. // ) {
  19784. // _url2 = url2.split(
  19785. // "https://view.officeapps.live.com/op/view.aspx?src="
  19786. // )[1];
  19787. // } else {
  19788. // _url2 = url2;
  19789. // }
  19790. // let params = {
  19791. // url: _url2,
  19792. // name: f.name,
  19793. // };
  19794. // this.ajax
  19795. // .get(this.$store.state.api + "download", params)
  19796. // .then((res) => {
  19797. // loading.close();
  19798. // let content = res.data.data.data;
  19799. // let ab = new ArrayBuffer(content.length);
  19800. // let view = new Uint8Array(ab);
  19801. // for (var i = 0; i < content.length; ++i) {
  19802. // view[i] = content[i];
  19803. // }
  19804. // let elink = document.createElement("a");
  19805. // elink.download = f.name;
  19806. // elink.style.display = "none";
  19807. // let blob = new Blob([ab], {
  19808. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19809. // });
  19810. // elink.href = URL.createObjectURL(blob);
  19811. // document.body.appendChild(elink);
  19812. // elink.click();
  19813. // document.body.removeChild(elink);
  19814. // })
  19815. // .catch((err) => {
  19816. // loading.close();
  19817. // console.error(err);
  19818. // });
  19819. var credentials = {
  19820. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19821. secretAccessKey: "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",
  19822. }; //秘钥形式的登录上传
  19823. window.AWS.config.update(credentials);
  19824. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19825. let url2 = f.url;
  19826. let _url2 = "";
  19827. if (
  19828. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19829. ) {
  19830. _url2 = url2.split(
  19831. "https://view.officeapps.live.com/op/view.aspx?src="
  19832. )[1];
  19833. } else {
  19834. _url2 = url2;
  19835. }
  19836. let _this = this;
  19837. _this.downLoading = true
  19838. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19839. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19840. var params = {
  19841. Bucket: "ccrb",
  19842. Key: name
  19843. };
  19844. s3.getObject(params, function (err, data) {
  19845. _this.downLoading = false
  19846. if (err) console.log(err, err.stack); // an error occurred
  19847. else {
  19848. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19849. let a = document.createElement("a");
  19850. a.name = f.name;
  19851. a.href = url;
  19852. a.download = f.name;
  19853. a.click();
  19854. console.log(data);
  19855. } // sxuccessful response
  19856. });
  19857. return;
  19858. let url = f.url;
  19859. let _url = "";
  19860. if (
  19861. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19862. ) {
  19863. _url = url.split(
  19864. "https://view.officeapps.live.com/op/view.aspx?src="
  19865. )[1];
  19866. } else {
  19867. _url = url;
  19868. }
  19869. _this.downLoading = true
  19870. let x = new XMLHttpRequest();
  19871. x.open("GET", _url, true);
  19872. x.responseType = "blob";
  19873. x.onload = function () {
  19874. _this.downLoading = false
  19875. let url = window.URL.createObjectURL(new Blob([x.response]));
  19876. let a = document.createElement("a");
  19877. a.name = f.name;
  19878. a.href = url;
  19879. a.download = f.name;
  19880. a.click();
  19881. };
  19882. x.send();
  19883. },
  19884. downloadFile(url,uid) {
  19885. if (this.tType == 1 || this.userid == uid) {
  19886. // this.$message.info("查看作业-下载文件")
  19887. var credentials = {
  19888. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19889. secretAccessKey: "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",
  19890. }; //秘钥形式的登录上传
  19891. window.AWS.config.update(credentials);
  19892. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19893. let url2 = url;
  19894. let _url2 = "";
  19895. if (
  19896. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19897. ) {
  19898. _url2 = url2.split(
  19899. "https://view.officeapps.live.com/op/view.aspx?src="
  19900. )[1];
  19901. } else {
  19902. _url2 = url2;
  19903. }
  19904. const loading2 = this.$loading.service({
  19905. background: "rgba(255, 255, 255, 0.7)",
  19906. target: document.body,
  19907. text: "文件加载中...",
  19908. });
  19909. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19910. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19911. var params = {
  19912. Bucket: "ccrb",
  19913. Key: name
  19914. };
  19915. s3.getObject(params, function (err, data) {
  19916. loading2.close();
  19917. if (err) console.log(err, err.stack); // an error occurred
  19918. else {
  19919. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19920. let a = document.createElement("a");
  19921. a.name = name;
  19922. a.href = url;
  19923. a.download = name;
  19924. a.click();
  19925. console.log(data);
  19926. } // sxuccessful response
  19927. });
  19928. }
  19929. return;
  19930. let _this = this;
  19931. let _url = "";
  19932. if (
  19933. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19934. ) {
  19935. _url = url.split(
  19936. "https://view.officeapps.live.com/op/view.aspx?src="
  19937. )[1];
  19938. } else {
  19939. _url = url;
  19940. }
  19941. const x = new XMLHttpRequest();
  19942. x.open("GET", _url, true);
  19943. x.responseType = "blob";
  19944. // this.downLoading = true
  19945. const loading = _this.$loading.service({
  19946. background: "rgba(255, 255, 255, 0.7)",
  19947. target: document.body,
  19948. text: "文件加载中...",
  19949. });
  19950. // _this.$message.success("文件下载中...");
  19951. x.onload = function (e) {
  19952. loading.close();
  19953. let content = x.response;
  19954. let elink = document.createElement("a");
  19955. elink.download = decodeURI(
  19956. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19957. );
  19958. elink.style.display = "none";
  19959. let blob = new Blob([content]);
  19960. elink.href = URL.createObjectURL(blob);
  19961. document.body.appendChild(elink);
  19962. elink.click();
  19963. document.body.removeChild(elink);
  19964. };
  19965. x.send();
  19966. },
  19967. openLine(url) {
  19968. window.open(url);
  19969. },
  19970. resize() {
  19971. if (document.getElementsByClassName("box_course").length) {
  19972. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19973. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19974. if (this.showType == 2 || this.showType == 3) {
  19975. document.getElementsByClassName("navBox")[0].style.height =
  19976. a - 40 + 0+ "px";
  19977. } else {
  19978. document.getElementsByClassName("navBox")[0].style.height =
  19979. a - 40 + "px";
  19980. }
  19981. }
  19982. this.Stbodywidth =
  19983. document.getElementsByClassName("student_body").length &&
  19984. document.getElementsByClassName("student_body")[0].offsetWidth;
  19985. },
  19986. closeDraw() {
  19987. this.bg = null;
  19988. this.drawShow = false;
  19989. },
  19990. showPicturePaint(url) {
  19991. let params = {
  19992. img: url,
  19993. };
  19994. this.ajax
  19995. .get(this.$store.state.api + "imgToBase64", params)
  19996. .then((res) => {
  19997. this.drawShow = true;
  19998. this.bg = res.data[0].img;
  19999. })
  20000. .catch((err) => {
  20001. console.error(err);
  20002. });
  20003. },
  20004. addImgDraw(base64) {
  20005. let file = { name: "批注图.png" };
  20006. let img = this.dataUrlToFile(base64, file);
  20007. this.beforeUpload1(img, 5);
  20008. },
  20009. addImgDrawImG(url) {
  20010. // console.log(url);
  20011. let params = [
  20012. {
  20013. wid: this.commentDetail.wid,
  20014. img: url,
  20015. },
  20016. ];
  20017. this.ajax
  20018. .post(this.$store.state.api + "updateCourseWorks", params)
  20019. .then((res) => {
  20020. this.$message({
  20021. message: "提交成功",
  20022. type: "success",
  20023. });
  20024. this.drawShow = false;
  20025. this.bg = "";
  20026. this.selectSWorks();
  20027. this.selectStudent();
  20028. })
  20029. .catch((err) => {
  20030. this.$message.error("提交失败");
  20031. console.error(err);
  20032. });
  20033. },
  20034. deletePicturePaint() {
  20035. this.$confirm("确定删除此批注吗?", "提示", {
  20036. confirmButtonText: "确定",
  20037. cancelButtonText: "取消",
  20038. type: "warning",
  20039. })
  20040. .then(() => {
  20041. let params = [
  20042. {
  20043. wid: this.commentDetail.wid,
  20044. img: "",
  20045. },
  20046. ];
  20047. this.ajax
  20048. .post(this.$store.state.api + "updateCourseWorks", params)
  20049. .then((res) => {
  20050. this.$message({
  20051. message: "删除成功",
  20052. type: "success",
  20053. });
  20054. this.selectSWorks();
  20055. this.selectStudent();
  20056. })
  20057. .catch((err) => {
  20058. this.$message.error("删除失败");
  20059. console.error(err);
  20060. });
  20061. })
  20062. .catch(() => {});
  20063. },
  20064. getAudioVideo(constraintsData) {
  20065. if (navigator.mediaDevices === undefined) {
  20066. navigator.mediaDevices = {};
  20067. }
  20068. if (navigator.mediaDevices.getUserMedia === undefined) {
  20069. navigator.mediaDevices.getUserMedia = function (constraints) {
  20070. // 首先,如果有getUserMedia的话,就获得它
  20071. var getUserMedia =
  20072. navigator.getUserMedia ||
  20073. navigator.webkitGetUserMedia ||
  20074. navigator.mozGetUserMedia ||
  20075. navigator.msGetUserMedia;
  20076. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20077. if (!getUserMedia) {
  20078. return Promise.reject({ code: 404 });
  20079. }
  20080. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20081. return new Promise(function (resolve, reject) {
  20082. getUserMedia.call(navigator, constraints, resolve, reject);
  20083. });
  20084. };
  20085. }
  20086. return navigator.mediaDevices.getUserMedia(constraintsData);
  20087. },
  20088. /**
  20089. * 开始录制
  20090. */
  20091. startRecording(callback) {
  20092. let _function = (screenStream) => {
  20093. this.addStreamStopListener(screenStream, () => {
  20094. console.log("流停止监听");
  20095. this.stopRecording();
  20096. this.$emit("streamStop", {});
  20097. // this.stopRecording();
  20098. });
  20099. var options = {
  20100. type: "video",
  20101. mimeType: "video/webm",
  20102. disableLogs: false,
  20103. getNativeBlob: false, // enable it for longer recordings
  20104. ignoreMutedMedia: false,
  20105. };
  20106. // this.video.srcObject = screenStream;
  20107. this.recorder = RecordRTC(screenStream, options);
  20108. this.recorder.startRecording();
  20109. this.recorder.screen = screenStream;
  20110. this.videoStart = true;
  20111. // callback(true);
  20112. };
  20113. this.getAudioVideo({ audio: true })
  20114. .then((res) => {
  20115. this.captureScreen(_function, true);
  20116. console.log("已点击允许,开启成功");
  20117. })
  20118. .catch((err) => {
  20119. // console.log('浏览器不支持,请更换浏览器')
  20120. // } else {
  20121. this.captureScreen(_function, false);
  20122. console.log("请检查是否存在麦克风");
  20123. });
  20124. },
  20125. /**
  20126. * 停止录制
  20127. */
  20128. stopRecording(callback) {
  20129. this.recorder.stopRecording(() => {
  20130. // this.video.src = this.video.srcObject = null;
  20131. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20132. const url = URL.createObjectURL(this.recorder.getBlob());
  20133. const a = document.createElement("a"); //this.fileName+
  20134. let videoFile = new File(
  20135. [this.recorder.getBlob()],
  20136. this.courseDetail.title + "录屏.mp4",
  20137. {
  20138. type: "video/mp4",
  20139. }
  20140. );
  20141. let downloadUrl = URL.createObjectURL(videoFile);
  20142. if(this.$refs.classRoomHelperRef){
  20143. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20144. }
  20145. document.body.appendChild(a);
  20146. a.style.display = "none";
  20147. a.href = url;
  20148. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20149. a.click();
  20150. this.recorder.screen.stop();
  20151. this.recorder.destroy();
  20152. this.recorder = null;
  20153. this.videoStart = false;
  20154. // callback(false);
  20155. });
  20156. },
  20157. //初始化
  20158. captureScreen(callback, type) {
  20159. if (navigator.getDisplayMedia) {
  20160. //录制结束,文件下载
  20161. navigator
  20162. .getDisplayMedia({
  20163. video: true,
  20164. })
  20165. .then((screenStream) => {
  20166. if (type) {
  20167. navigator.mediaDevices
  20168. .getUserMedia({ audio: true })
  20169. .then((mic) => {
  20170. screenStream.addTrack(mic.getTracks()[0]);
  20171. callback(screenStream);
  20172. });
  20173. } else {
  20174. callback(screenStream);
  20175. }
  20176. })
  20177. .catch(function (error) {
  20178. console.log("error", error);
  20179. });
  20180. } else if (navigator.mediaDevices.getDisplayMedia) {
  20181. navigator.mediaDevices
  20182. .getDisplayMedia({
  20183. video: true,
  20184. })
  20185. .then((screenStream) => {
  20186. if (type) {
  20187. navigator.mediaDevices
  20188. .getUserMedia({ audio: true })
  20189. .then((mic) => {
  20190. screenStream.addTrack(mic.getTracks()[0]);
  20191. callback(screenStream);
  20192. });
  20193. } else {
  20194. callback(screenStream);
  20195. }
  20196. })
  20197. .catch(function (error) {
  20198. console.log("error", error);
  20199. });
  20200. } else {
  20201. var error = "getDisplayMedia API are not supported in this browser.";
  20202. console.log("error", error);
  20203. alert(error);
  20204. }
  20205. },
  20206. //流监听
  20207. addStreamStopListener(stream, callback) {
  20208. stream.addEventListener(
  20209. "ended",
  20210. function () {
  20211. callback();
  20212. callback = function () {};
  20213. },
  20214. false
  20215. );
  20216. stream.addEventListener(
  20217. "inactive",
  20218. function () {
  20219. callback();
  20220. callback = function () {};
  20221. },
  20222. false
  20223. );
  20224. stream.getTracks().forEach(function (track) {
  20225. track.addEventListener(
  20226. "ended",
  20227. function () {
  20228. callback();
  20229. callback = function () {};
  20230. },
  20231. false
  20232. );
  20233. track.addEventListener(
  20234. "inactive",
  20235. function () {
  20236. callback();
  20237. callback = function () {};
  20238. },
  20239. false
  20240. );
  20241. });
  20242. },
  20243. updateGroup() {
  20244. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20245. this.dialogVisibleGroup2 = true;
  20246. },
  20247. numberPan() {
  20248. if (
  20249. /[^\d]/.test(this.groupJson.number) ||
  20250. this.groupJson.number < 2 ||
  20251. this.groupJson.number > 10
  20252. ) {
  20253. this.$message.error("请输入2-10的数字");
  20254. this.groupJson.number = "";
  20255. }
  20256. },
  20257. updateGroupJson() {
  20258. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20259. if (
  20260. this.groupStudentUid[this.toolindex][i].length >
  20261. this.groupJson2.number
  20262. ) {
  20263. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20264. return;
  20265. }
  20266. }
  20267. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20268. this.islock = this.groupJson.islock == 1 ? true : false;
  20269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20270. this.taskCount
  20271. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20272. let params = [
  20273. {
  20274. cid: this.id,
  20275. chapters: JSON.stringify(this.chapInfoList),
  20276. uid: this.userid,
  20277. unitIndex: this.courseType,
  20278. },
  20279. ];
  20280. this.ajax
  20281. .post(this.$store.state.api + "updateWorkNew4", params)
  20282. .then((res) => {
  20283. this.$message.success("设置成功");
  20284. this.getCourseDetail(2);
  20285. this.dialogVisibleGroup2 = false;
  20286. this.groupJson2 = {};
  20287. this.$forceUpdate();
  20288. })
  20289. .catch((err) => {
  20290. this.$message.error("网络不佳");
  20291. console.error(err);
  20292. });
  20293. },
  20294. lockChair() {
  20295. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20296. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20297. this.updateGroupJson();
  20298. },
  20299. selectGroup(index) {
  20300. this.getCourseDetail(2, index);
  20301. },
  20302. joinGroup(index) {
  20303. if (this.groupJson.islock == 2) {
  20304. this.$message.error("位置已被锁定,无法加入");
  20305. return;
  20306. }
  20307. if (
  20308. this.groupStudent[this.toolindex][index].length >
  20309. this.groupJson.number ||
  20310. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20311. ) {
  20312. this.$message.error("位置已满,无法加入");
  20313. return;
  20314. }
  20315. let params = [
  20316. {
  20317. cid: this.id,
  20318. stage: this.courseType,
  20319. task: this.taskCount,
  20320. tool: this.toolindex,
  20321. g: index,
  20322. uid: this.userid,
  20323. },
  20324. ];
  20325. this.ajax
  20326. .post(this.$store.state.api + "joinGroup", params)
  20327. .then((res) => {
  20328. this.$message.success("加入成功");
  20329. this.getCourseDetail(2);
  20330. })
  20331. .catch((err) => {
  20332. this.$message.error("网络不佳");
  20333. console.error(err);
  20334. });
  20335. },
  20336. exitGroup(id) {
  20337. if (this.groupJson.islock == 2) {
  20338. this.$message.error("位置已被锁定,无法退出");
  20339. return;
  20340. }
  20341. let params = [
  20342. {
  20343. gid: id,
  20344. },
  20345. ];
  20346. this.ajax
  20347. .post(this.$store.state.api + "exitGroup", params)
  20348. .then((res) => {
  20349. this.$message.success("退出成功");
  20350. this.getCourseDetail(2);
  20351. })
  20352. .catch((err) => {
  20353. this.$message.error("网络不佳");
  20354. console.error(err);
  20355. });
  20356. },
  20357. groupUpload(index, task, gindex) {
  20358. this.taskCount = task;
  20359. this.toolindex = index;
  20360. this.groupIndex = gindex;
  20361. this.dialogVisibleGroupWork = true;
  20362. },
  20363. updateGroupChair(user) {
  20364. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20365. el.label = index;
  20366. return index != user.group;
  20367. });
  20368. this.updateGroupUser = user;
  20369. this.dialogVisibleUpdateGroup = true;
  20370. },
  20371. updateChair() {
  20372. if (
  20373. this.groupStudent[this.toolindex][this.checkChair].length >
  20374. this.groupJson.number ||
  20375. this.groupStudent[this.toolindex][this.checkChair].length ==
  20376. this.groupJson.number
  20377. ) {
  20378. this.$message.error("位置已满,无法加入");
  20379. return;
  20380. }
  20381. let params = [
  20382. {
  20383. cid: this.id,
  20384. stage: this.courseType,
  20385. task: this.taskCount,
  20386. tool: this.toolindex,
  20387. g: this.checkChair,
  20388. uid: this.updateGroupUser.userid,
  20389. },
  20390. ];
  20391. this.ajax
  20392. .post(this.$store.state.api + "joinGroup", params)
  20393. .then((res) => {
  20394. this.$message.success("修改成功");
  20395. this.updateGroupUser = {};
  20396. this.checkChair = "";
  20397. this.updateGroupArray = {};
  20398. this.dialogVisibleUpdateGroup = false;
  20399. this.getCourseDetail(2);
  20400. })
  20401. .catch((err) => {
  20402. this.$message.error("网络不佳");
  20403. console.error(err);
  20404. });
  20405. },
  20406. deleteGroupChair(gindex) {
  20407. this.checkDeleteGroup = [];
  20408. this.deleteGroupUser = JSON.parse(
  20409. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20410. );
  20411. this.deleteGroupArray = this.groupJson.group[gindex];
  20412. this.groupIndex = gindex;
  20413. this.dialogVisibleDeleteGroup = true;
  20414. },
  20415. async deleteChair() {
  20416. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20417. const gid =
  20418. this.groupStudent[this.toolindex][this.groupIndex][
  20419. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20420. this.checkDeleteGroup[i]
  20421. )
  20422. ];
  20423. let params = [
  20424. {
  20425. gid: gid.id,
  20426. },
  20427. ];
  20428. var a = await this.deleteChairA(params);
  20429. if (i == this.checkDeleteGroup.length - 1) {
  20430. this.$message.success("退出成功");
  20431. this.dialogVisibleDeleteGroup = false;
  20432. this.deleteGroupUser = [];
  20433. this.deleteGroupArray = {};
  20434. this.groupIndex = "";
  20435. this.checkDeleteGroup = [];
  20436. this.getCourseDetail(2);
  20437. }
  20438. }
  20439. },
  20440. deleteChairA(params) {
  20441. return new Promise((resolve, reject) => {
  20442. this.ajax
  20443. .post(this.$store.state.api + "exitGroup", params)
  20444. .then((res) => {
  20445. resolve(1);
  20446. })
  20447. .catch((err) => {
  20448. this.$message.error("网络不佳");
  20449. console.error(err);
  20450. });
  20451. });
  20452. },
  20453. contract(i) {
  20454. if (this.isCloseList[i].isClose == 0) {
  20455. this.isCloseList[i].isClose = 1;
  20456. } else {
  20457. this.isCloseList[i].isClose = 0;
  20458. }
  20459. this.$forceUpdate();
  20460. },
  20461. openWordCloud(toolindex) {
  20462. this.wordCloudData = '';
  20463. let array = [];
  20464. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20465. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20466. array.push({ name: works });
  20467. }
  20468. if (this.isGroup) {
  20469. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20470. let works = this.courseGroup.group[i].works[toolindex];
  20471. for (var j = 0; j < works.length; j++) {
  20472. let answer = JSON.parse(works[j].works)[0].answer;
  20473. array.push({ name: answer });
  20474. }
  20475. }
  20476. }
  20477. let _result = ''
  20478. array.forEach(e=>{
  20479. _result +=e.name+','
  20480. })
  20481. this.wordCloudData = _result;
  20482. this.dialogVisibleWordCloud = true;
  20483. this.wordCloudKey += 1;
  20484. },
  20485. uploadWorks(i) {
  20486. this.$confirm("确定导出作业吗?", "提示", {
  20487. confirmButtonText: "确定",
  20488. cancelButtonText: "取消",
  20489. type: "warning",
  20490. })
  20491. .then(() => {
  20492. const loading = this.$loading.service({
  20493. background: "rgba(255, 255, 255, 0.7)",
  20494. target: document.body,
  20495. text: "文件加载中...",
  20496. });
  20497. const _worksStudent = this.worksStudent;
  20498. let url = [];
  20499. var counts = {};
  20500. for (var l = 0; l < _worksStudent[i].length; l++) {
  20501. var item = _worksStudent[i][l];
  20502. var name = item.sName;
  20503. if (!counts.hasOwnProperty(name)) {
  20504. counts[name] = 0;
  20505. } else {
  20506. counts[name]++;
  20507. }
  20508. if (counts[name] > 0) {
  20509. item.sName += " (" + counts[name] + ")";
  20510. }
  20511. }
  20512. for (var l = 0; l < _worksStudent[i].length; l++) {
  20513. var item = _worksStudent[i][l];
  20514. if (
  20515. item.works.indexOf(
  20516. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20517. ) !== -1 &&
  20518. item.works.indexOf("img") === -1
  20519. ) {
  20520. url.push({ name: item.sName, url: item.works });
  20521. }
  20522. }
  20523. // var toolList = [
  20524. // { name: "电子白板", tool: 1 },
  20525. // { name: "思维导图", tool: 3 },
  20526. // { name: "协同文档", tool: 6 },
  20527. // { name: "思维网格", tool: 7 },
  20528. // { name: "素材库", tool: 8 },
  20529. // { name: "学习资料", tool: 17 },
  20530. // { name: "便签", tool: 2 },
  20531. // { name: "问卷调查", tool: 4 },
  20532. // { name: "选择题", tool: 45 },
  20533. // { name: "倒计时", tool: 10 },
  20534. // { name: "问答", tool: 15 },
  20535. // { name: "课程设计", tool: 26 },
  20536. // { name: "训练服务器", tool: 18 },
  20537. // { name: "作业提交", tool: 16 },
  20538. // { name: "批量上传", tool: 50 },
  20539. // { name: "AIoT Blockly", tool: 21 },
  20540. // { name: "AI Python", tool: 23 },
  20541. // { name: "AI Blockly", tool: 24 },
  20542. // { name: "目标管理", tool: 25 },
  20543. // { name: "数学画板", tool: 31 },
  20544. // { name: "翻译", tool: 28 },
  20545. // { name: "魔盒识字", tool: 37 },
  20546. // { name: "数学画板", tool: 31 },
  20547. // { name: "24点", tool: 38 },
  20548. // { name: "GeoGebra", tool: 39 },
  20549. // { name: "源码编辑", tool: 32 },
  20550. // { name: "个人评价", tool: 40 },
  20551. // { name: "选择匹配", tool: 41 },
  20552. // { name: "汉字宫", tool: 44 },
  20553. // { name: "排序", tool: 47 },
  20554. // { name: "表格", tool: 48 },
  20555. // { name: "文档", tool: 52 },
  20556. // { name: "学生分组", tool: 49 },
  20557. // { name: "CocoPi", tool: 57 },
  20558. // { name: "模拟驾驶", tool: 58 },
  20559. // { name: "路径搜索", tool: 59 },
  20560. // { name: "深度学习", tool: 60 },
  20561. // { name: "全历史", tool: 61 },
  20562. // { name: "交互视频", tool: 62 },
  20563. // { name: "海龟编程", tool: 63 },
  20564. // { name: "挑人", tool: 65 },
  20565. // { name: "公式编辑", tool: 66 },
  20566. // { name: "分子结构", tool: 67 },
  20567. // { name: "时间轴", tool: 68 },
  20568. // ];
  20569. // var toolName = "";
  20570. // for(var w = 0;w<toolList.length;w++){
  20571. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20572. // toolName = toolList[w].name;
  20573. // }
  20574. // }
  20575. console.log(url);
  20576. this.downLoadAll(url, loading);
  20577. })
  20578. .catch(() => {});
  20579. },
  20580. downLoadAll(url, loading) {
  20581. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20582. const zip = new JSZip();
  20583. const cache = {};
  20584. const promises = [];
  20585. data.forEach((item) => {
  20586. const promise = getFile(item.url).then((data) => {
  20587. if (data.data != 1) {
  20588. // 下载文件, 并存成ArrayBuffer对象
  20589. const file_name =
  20590. item.name +
  20591. "." +
  20592. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20593. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20594. cache[file_name] = data.data;
  20595. }
  20596. });
  20597. promises.push(promise);
  20598. });
  20599. Promise.all(promises).then(() => {
  20600. zip.generateAsync({ type: "blob" }).then((content) => {
  20601. // 生成二进制流
  20602. FileSaver.saveAs(
  20603. content,
  20604. this.courseDetail.title + "-" + "作业提交工具.zip"
  20605. ); // 利用file-saver保存文件 自定义文件名
  20606. setTimeout(() => {
  20607. loading.close();
  20608. }, 2000);
  20609. });
  20610. });
  20611. },
  20612. pickStudent(stu) {
  20613. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20614. return;
  20615. }
  20616. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20617. confirmButtonText: "确定",
  20618. cancelButtonText: "取消",
  20619. type: "warning",
  20620. })
  20621. .then(() => {
  20622. let params = [
  20623. {
  20624. uid: stu.userid,
  20625. cid: this.id,
  20626. stage: this.courseType,
  20627. task: this.taskCount,
  20628. tool: this.toolindex,
  20629. },
  20630. ];
  20631. this.ajax
  20632. .post(this.$store.state.api + "updateCoursePick", params)
  20633. .then((res) => {
  20634. this.$message.success("操作成功");
  20635. this.getPick();
  20636. })
  20637. .catch((err) => {
  20638. this.$message.error("网络不佳");
  20639. console.error(err);
  20640. });
  20641. })
  20642. .catch(() => {});
  20643. },
  20644. selectUser(){
  20645. let params = {
  20646. userid: this.userid,
  20647. };
  20648. this.ajax
  20649. .get(this.$store.state.api + "selectUser", params)
  20650. .then((res) => {
  20651. this.userMes = res.data[0];
  20652. })
  20653. .catch((err) => {
  20654. console.error(err);
  20655. });
  20656. },
  20657. setEngText(i){
  20658. this.newEngIndex = i;
  20659. this.$forceUpdate();
  20660. },
  20661. addCorrect(){
  20662. this.$confirm("你确定提交批改嘛?", "提示", {
  20663. confirmButtonText: "确定",
  20664. showCancelButton: false,
  20665. closeOnClickModal: false,
  20666. type: "warning",
  20667. })
  20668. .then(() => {
  20669. let params = {
  20670. cid: this.id,
  20671. s: parseInt(this.courseType),
  20672. t: this.taskCount,
  20673. tool: this.toolindex,
  20674. wid: this.engWid,
  20675. c: this.userid,
  20676. 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) : "",
  20677. };
  20678. this.ajax
  20679. .get(this.$store.state.api + "addEngC", params)
  20680. .then((res) => {
  20681. this.$message.success("提交成功");
  20682. this.engUpdateDialogVisible = false;
  20683. })
  20684. .catch((err) => {
  20685. console.error(err);
  20686. });
  20687. })
  20688. .catch(() => {});
  20689. },
  20690. selectEngC(id,z){
  20691. let params = {
  20692. workid: id,
  20693. };
  20694. this.ajax
  20695. .get(this.$store.state.api + "selectEngC", params)
  20696. .then((res) => {
  20697. if(res.data[0].length == 0){
  20698. this.newEnglishList.engTitle = z.engTitle;
  20699. this.newEnglishList.engText = z.engText;
  20700. }else{
  20701. var a = res.data[0];
  20702. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20703. if(this.userMes[0].type == 2){
  20704. var snum = 0;
  20705. for(var i = 0;i<a.length;i++){
  20706. if(this.userMes[0].userid == a[i].correct){
  20707. this.newEnglishList = JSON.parse(a[i].cWork);
  20708. snum = 1;
  20709. }
  20710. }
  20711. if(snum == 0){
  20712. this.newEnglishList = { engTitle:"",engText:"" };
  20713. this.newEnglishList.engTitle = z.engTitle;
  20714. this.newEnglishList.engText = z.engText;
  20715. }
  20716. }else if(this.userMes[0].type == 1){
  20717. var num = 0;
  20718. for(var w= 0;w<a.length;w++){
  20719. if(this.userMes[0].userid == a[w].correct){
  20720. num = 1;
  20721. }
  20722. }
  20723. if(num == 0){
  20724. this.isNoUserid = true;
  20725. var c = JSON.parse(JSON.stringify(z));
  20726. this.oldEnglishJson1 = c;
  20727. }else{
  20728. this.isNoUserid = false;
  20729. }
  20730. var b = a.sort((item, index) => {
  20731. console.log(item)
  20732. if (item.correct === this.userMes[0].userid) {
  20733. return -1; // 将a移到前面
  20734. } else if (index.correct === this.userMes[0].userid) {
  20735. return 1; // 将b移到前面
  20736. } else {
  20737. return 0; // 保持默认顺序
  20738. }
  20739. });
  20740. for(var p = 0;p<b.length;p++){
  20741. for(var y = 0;y<ppp.length;y++){
  20742. if(b[p].id == ppp[y].id){
  20743. b[p].cWork = JSON.parse(ppp[y].cWork);
  20744. break
  20745. }
  20746. }
  20747. }
  20748. this.newEnglishList1 = b;
  20749. }
  20750. }
  20751. this.greyType = false;
  20752. setTimeout(() => {
  20753. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20754. if(this.newEnglishList1.length > 0){
  20755. if(this.isNoUserid == true){
  20756. this.engListLength = this.newEnglishList1.length + 1;
  20757. this.newEngIndex = -1;
  20758. }else{
  20759. this.engListLength = this.newEnglishList1.length;
  20760. this.newEngIndex = 0;
  20761. }
  20762. }
  20763. if(this.userMes[0].type == 2){
  20764. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20765. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20766. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20767. }else if(this.newEngIndex == -1){
  20768. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20769. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20770. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20771. }
  20772. }, 500);
  20773. this.engUpdateDialogVisible = true;
  20774. this.$forceUpdate();
  20775. })
  20776. .catch((err) => {
  20777. console.error(err);
  20778. });
  20779. },
  20780. getPick() {
  20781. let params = {
  20782. cid: this.id,
  20783. };
  20784. this.ajax
  20785. .get(this.$store.state.api + "getPick", params)
  20786. .then((res) => {
  20787. let array = [];
  20788. for (var i = 0; i < res.data[0].length; i++) {
  20789. array.push(res.data[0][i].userid);
  20790. }
  20791. this.isPickStudent = array;
  20792. if (array.indexOf(this.userid) !== -1) {
  20793. this.$confirm("你被老师选到啦!", "提示", {
  20794. confirmButtonText: "确定",
  20795. showCancelButton: false,
  20796. closeOnClickModal: false,
  20797. type: "warning",
  20798. })
  20799. .then(() => {
  20800. let pa = [
  20801. {
  20802. uid: this.userid,
  20803. cid: this.id,
  20804. },
  20805. ];
  20806. this.ajax
  20807. .post(this.$store.state.api + "deletePick", pa)
  20808. .then((res) => {
  20809. this.getPick();
  20810. })
  20811. .catch((err) => {
  20812. this.$message.error("网络不佳");
  20813. console.error(err);
  20814. });
  20815. })
  20816. .catch(() => {});
  20817. }
  20818. })
  20819. .catch((err) => {
  20820. this.$message.error("网络不佳");
  20821. console.error(err);
  20822. });
  20823. },
  20824. foldEva() {
  20825. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20826. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20827. } else {
  20828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20829. setTimeout(() => {
  20830. this.checkEva();
  20831. setTimeout(() => {
  20832. this.checkEva();
  20833. }, 500);
  20834. }, 0);
  20835. }
  20836. this.$forceUpdate();
  20837. },
  20838. panToolHeight(tool) {
  20839. var _tool = document.querySelectorAll('#'+tool)[0]
  20840. var _toolA = _tool ? _tool.offsetHeight : 0
  20841. var _toolC = 0
  20842. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20843. let boolean2 = (_toolA > _toolC) ? true : false
  20844. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20845. this.$forceUpdate();
  20846. },
  20847. async checkLink(url) {
  20848. console.log(url)
  20849. let _url = url
  20850. try {
  20851. const response = await fetch(url);
  20852. if(!response.ok){
  20853. _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]))
  20854. }
  20855. console.log(response.ok)
  20856. } catch (error) {
  20857. console.error('Error checking link:', error);
  20858. // console.log(false)
  20859. _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]))
  20860. }
  20861. // console.log(_url)
  20862. return _url
  20863. },
  20864. getScoreList(){
  20865. let params = {
  20866. cid: this.id,
  20867. };
  20868. this.ajax
  20869. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20870. .then((res) => {
  20871. let result = res.data;
  20872. this.scoreList.datalist = result[0];
  20873. this.scoreList.isScoreList = result[1];
  20874. })
  20875. .catch((err) => {
  20876. console.error(err);
  20877. });
  20878. },
  20879. setClassRoomHelperWidth(width){
  20880. this.classRoomHelperWidth = width
  20881. },
  20882. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20883. this.$refs.choseWorksDetailDialogRef.open({
  20884. toolType:tooc,
  20885. tType: this.tType,
  20886. toolIndex: toolIndex
  20887. });
  20888. this.changeSplitScreenBehavior({
  20889. code: 1,
  20890. form: {
  20891. toolType:tooc,
  20892. toolIndex: toolIndex,
  20893. courseType: this.courseType,
  20894. taskCount: this.taskCount,
  20895. type: 0
  20896. }
  20897. });
  20898. },
  20899. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20900. this.$refs.statisticalAnalysisRef.open({
  20901. worksStudent: this.worksStudent[toolIndex],
  20902. tType: this.tType,
  20903. toolIndex: toolIndex
  20904. });
  20905. this.changeSplitScreenBehavior({
  20906. code: 2,
  20907. form: {
  20908. toolType:4,
  20909. courseType: this.courseType,
  20910. taskCount: this.taskCount,
  20911. toolIndex: toolIndex,
  20912. type: 0
  20913. }
  20914. });
  20915. },
  20916. statisticalAnalysisRefresh(toolIndex) {
  20917. this.$refs.statisticalAnalysisRef.refreshData({
  20918. worksStudent: this.worksStudent[toolIndex],
  20919. tType: this.tType,
  20920. toolIndex: toolIndex
  20921. });
  20922. },
  20923. async splitScreenBehavior(type = 0) {
  20924. // return;
  20925. if (this.splitScreenData.loading)
  20926. return this.$message.info("操作过快,请稍等");
  20927. if (type == 0) {
  20928. //关闭分屏
  20929. this.splitScreenData.isOpen = false;
  20930. // this.splitScreenData.userId = "";
  20931. // this.splitScreenData.uid = "";
  20932. this.splitScreenData.behavior = null;
  20933. await this.updateSplitScreenData(1);
  20934. this.$message.success("已关闭分屏模式");
  20935. this.studentFreePreview(false);
  20936. this.OpenJobPreview(false);
  20937. // this.followingMode(false);
  20938. } else if (type == 1) {
  20939. //开启分屏
  20940. this.splitScreenData.isOpen = true;
  20941. this.splitScreenData.userId = this.userid;
  20942. this.splitScreenData.uid = this.splitScreenData.myUid;
  20943. this.splitScreenData.behavior = null;
  20944. let status = await this.updateSplitScreenData(0);
  20945. this.changeSplitScreenBehavior({form:{}})
  20946. if (status == 1) {
  20947. this.$message.success("已开启分屏");
  20948. this.studentFreePreview(false);
  20949. this.OpenJobPreview(true);
  20950. // this.followingMode(true);
  20951. } else {
  20952. this.splitScreenData.isOpen = false;
  20953. this.splitScreenData.userId = "";
  20954. this.splitScreenData.uid = "";
  20955. this.splitScreenData.behavior = null;
  20956. this.$message.success("分屏开启失败");
  20957. }
  20958. }
  20959. },
  20960. enterFullScreen() {
  20961. let element = document.documentElement;
  20962. if (element.requestFullscreen) {
  20963. element.requestFullscreen();
  20964. } else if (element.mozRequestFullScreen) { /* Firefox */
  20965. element.mozRequestFullScreen();
  20966. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20967. element.webkitRequestFullscreen();
  20968. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20969. element.msRequestFullscreen();
  20970. }
  20971. },
  20972. exitFullScreen() {
  20973. if (document.exitFullscreen) {
  20974. document.exitFullscreen();
  20975. } else if (document.mozCancelFullScreen) { /* Firefox */
  20976. document.mozCancelFullScreen();
  20977. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20978. document.webkitExitFullscreen();
  20979. } else if (document.msExitFullscreen) { /* IE/Edge */
  20980. document.msExitFullscreen();
  20981. }
  20982. },
  20983. confirmOpen(){
  20984. this.splitScreenData.isOpen = true;
  20985. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20986. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20987. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20988. this.confirmOpenDig = false
  20989. if (!document.fullscreenElement) {
  20990. this.enterFullScreen();
  20991. }
  20992. // if (this.timer2) {
  20993. // clearInterval(this.timer2);
  20994. // this.timer2 = null;
  20995. // }
  20996. // this.timer2 = setInterval(()=> {
  20997. // this.getSplitScreenData();//获取分屏数据
  20998. // }, 5000);
  20999. this.$message.success("分屏模式已开启");
  21000. },
  21001. // 获取分屏数据
  21002. getSplitScreenData() {
  21003. // return;
  21004. // if (this.tType != 1) return;
  21005. let params = {
  21006. cid: this.id
  21007. };
  21008. this.ajax
  21009. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21010. .then(async res => {
  21011. let data = res.data[0][0]["splitScreenData"];
  21012. console.log("获取了分屏数:", data);
  21013. if (data) {
  21014. data = JSON.parse(data);
  21015. if (
  21016. !this.splitScreenData.isOpen &&
  21017. data.isOpen &&
  21018. this.splitScreenData.myUid == data.uid
  21019. ) {
  21020. this.splitScreenData.isOpen = false;
  21021. this.splitScreenData.userId = "";
  21022. this.splitScreenData.uid = "";
  21023. this.splitScreenData.behavior = null;
  21024. await this.updateSplitScreenData(1);
  21025. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21026. this.confirmOpenDig = true
  21027. this.confirmOpenDigData = data
  21028. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21029. this.splitScreenData.isOpen = false;
  21030. this.splitScreenData.userId = "";
  21031. this.splitScreenData.uid = "";
  21032. this.splitScreenData.behavior = null;
  21033. this.$message.error("已结束分屏模式");
  21034. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21035. this.splitScreenData.isOpen = true;
  21036. this.splitScreenData.uid = data.uid;
  21037. this.splitScreenData.userId = data.userId;
  21038. this.splitScreenData.behavior = data.behavior;
  21039. }
  21040. this.doSplitScreenBehavior();
  21041. } else {
  21042. if (this.splitScreenData.isOpen) {
  21043. this.splitScreenData.isOpen = false;
  21044. this.splitScreenData.userId = "";
  21045. this.splitScreenData.uid = "";
  21046. this.splitScreenData.behavior = null;
  21047. this.$message.error("已结束分屏模式");
  21048. // if (this.timer2) {
  21049. // clearInterval(this.timer2);
  21050. // this.timer2 = null;
  21051. // }
  21052. // this.timer2 = setInterval(()=> {
  21053. // this.getSplitScreenData();//获取分屏数据
  21054. // }, 5000);
  21055. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21056. confirmButtonText: '确定', //确认按钮的文字
  21057. showCancelButton: false, //是否显示取消按钮
  21058. showClose: false, //是否显示关闭按钮
  21059. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21060. type: "warning",
  21061. })
  21062. .then(() => {
  21063. if (document.fullscreenElement) {
  21064. this.exitFullScreen();
  21065. }
  21066. })
  21067. .catch(() => {});
  21068. }
  21069. }
  21070. })
  21071. .catch(e => {
  21072. console.log("获取分屏数出错:", e);
  21073. });
  21074. },
  21075. // 操作
  21076. doSplitScreenBehavior() {
  21077. if (
  21078. this.splitScreenData.isOpen &&
  21079. this.splitScreenData.uid != this.splitScreenData.myUid
  21080. ) {
  21081. let behavior = this.splitScreenData.behavior;
  21082. if (behavior) {
  21083. // console.log('behavior',behavior);
  21084. // this.toolindex = behavior.form.toolType
  21085. // 初始状态
  21086. if (behavior.code === 99) {
  21087. //初始化
  21088. this.fullDialogVisible = false;
  21089. if(this.$refs.choseWorksDetailDialogRef.show){
  21090. this.$refs.choseWorksDetailDialogRef.close();
  21091. }
  21092. if(this.$refs.statisticalAnalysisRef.show){
  21093. this.$refs.statisticalAnalysisRef.close();
  21094. }
  21095. }
  21096. // 文件列表
  21097. if (behavior.code === 0) {
  21098. //开启内容列表弹窗
  21099. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21100. }else{
  21101. this.fullDialogVisible = false;
  21102. }
  21103. // 打开工具
  21104. if (behavior.code === 1) {
  21105. //关于选择题的作业详细的操作
  21106. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21107. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21108. this.courseType = behavior.form.courseType;
  21109. this.taskCount = behavior.form.taskCount;
  21110. }
  21111. this.$nextTick(() => {
  21112. if (this.$refs.choseWorksDetailDialogRef.show) {
  21113. //已经打开了
  21114. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21115. } else {
  21116. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21117. }
  21118. });
  21119. }else{
  21120. this.$refs.choseWorksDetailDialogRef.close()
  21121. }
  21122. // 问卷调查
  21123. if(behavior.code === 2){
  21124. if(this.$refs.statisticalAnalysisRef.show){
  21125. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21126. }else{
  21127. this.$refs.statisticalAnalysisRef.open({
  21128. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21129. tType: this.tType,
  21130. toolIndex: behavior.form.toolIndex
  21131. });
  21132. }
  21133. }else{
  21134. this.$refs.statisticalAnalysisRef.close();
  21135. }
  21136. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21137. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21138. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21139. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  21140. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  21141. if (behavior.form.courseType != this.courseType ||
  21142. behavior.form.taskCount != this.taskCount ||
  21143. behavior.form.toolType != this.toolindex
  21144. ) {
  21145. var a = document.scrollingElement;
  21146. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21147. if (target) {
  21148. target.scrollIntoView(true);
  21149. setTimeout(()=>{
  21150. let scrollBody = document.querySelector('.body_student').parentElement
  21151. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21152. }, 0);
  21153. // setTimeout(() => {
  21154. // a.scrollTop = 0
  21155. // }, 0);
  21156. }
  21157. }
  21158. if(this.courseType !=behavior.form.courseType){
  21159. this.courseType = behavior.form.courseType;
  21160. }
  21161. if(this.taskCount !=behavior.form.taskCount){
  21162. this.taskCount = behavior.form.taskCount;
  21163. }
  21164. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  21165. this.toolindex = behavior.form.toolType;
  21166. }
  21167. // if(behavior.form.navId){
  21168. // this.navId = behavior.form.navId
  21169. // }
  21170. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21171. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21172. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21173. this.getCourseDetail()
  21174. }
  21175. this.setContent2(false)
  21176. }
  21177. } else {
  21178. }
  21179. }
  21180. },
  21181. // 修改分屏数据
  21182. updateSplitScreenData(empty = 0) {
  21183. return new Promise(resolve => {
  21184. if(this.userid!==this.courseDetail.userid){
  21185. if(!this.courseDetail.userid){
  21186. return setTimeout(()=>{
  21187. this.updateSplitScreenData(empty)
  21188. },2000)
  21189. }
  21190. return;
  21191. };
  21192. if (
  21193. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21194. this.splitScreenData.userId == this.userid
  21195. ) {
  21196. this.splitScreenData.loading = true;
  21197. let params = [
  21198. {
  21199. cid: this.id,
  21200. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21201. }
  21202. ];
  21203. this.ajax
  21204. .post(
  21205. this.$store.state.api + "update_courseSplitScreenData",
  21206. params
  21207. )
  21208. .then(res => {
  21209. this.splitScreenData.loading = false;
  21210. if (res.data == 1) {
  21211. resolve(1);
  21212. console.log("修改分屏数据成功");
  21213. }
  21214. })
  21215. .catch(e => {
  21216. this.splitScreenData.loading = false;
  21217. console.log("修改分屏数据失败", e);
  21218. resoleve(0);
  21219. });
  21220. } else if (empty == 2 && this.tType == 1) {
  21221. console.log("清空清空清空清空")
  21222. let params = [
  21223. {
  21224. cid: this.id,
  21225. nData: ""
  21226. }
  21227. ];
  21228. return this.ajax
  21229. .post(
  21230. this.$store.state.api + "update_courseSplitScreenData",
  21231. params
  21232. )
  21233. .then(_ => resolve(1))
  21234. .catch(_ => resolve(0));
  21235. } else {
  21236. return resolve(0);
  21237. }
  21238. });
  21239. },
  21240. // 修改分屏数据
  21241. changeSplitScreenBehavior(newValue) {
  21242. if (
  21243. this.splitScreenData.isOpen &&
  21244. this.splitScreenData.uid == this.splitScreenData.myUid
  21245. ) {
  21246. let _behavior = null;
  21247. if(!newValue){
  21248. _behavior = {}
  21249. }else{
  21250. _behavior = newValue
  21251. }
  21252. if(_behavior.form){
  21253. _behavior.form.taskCount = this.taskCount;
  21254. _behavior.form.courseType = this.courseType
  21255. }else{
  21256. _behavior.form = {
  21257. taskCount:this.taskCount,
  21258. courseType:this.courseType,
  21259. }
  21260. }
  21261. this.splitScreenData.behavior = _behavior;
  21262. this.updateSplitScreenData(0);
  21263. }
  21264. },
  21265. studentFreePreview(flag) {
  21266. this.IsLookOpen = flag;
  21267. this.updateLookOpen();
  21268. this.followingMode(flag)
  21269. },
  21270. OpenJobPreview(flag) {
  21271. this.sIsOpen = flag;
  21272. this.updateSLook();
  21273. },
  21274. followingMode(flag) {
  21275. this.IsFollow = flag;
  21276. this.updateFollow();
  21277. }
  21278. },
  21279. directives: {
  21280. // 使用局部注册指令的方式
  21281. resize: {
  21282. // 指令的名称
  21283. bind(el, binding) {
  21284. // el为绑定的元素,binding为绑定给指令的对象
  21285. let width = "",
  21286. height = "";
  21287. function isReize() {
  21288. const style = document.defaultView.getComputedStyle(el);
  21289. if (width !== style.width || height !== style.height) {
  21290. binding.value(); // 关键
  21291. }
  21292. width = style.width;
  21293. height = style.height;
  21294. }
  21295. el.__vueSetInterval__ = setInterval(isReize, 300);
  21296. },
  21297. unbind(el) {
  21298. clearInterval(el.__vueSetInterval__);
  21299. },
  21300. },
  21301. autoHeight: {
  21302. update(el, binding) {
  21303. const { value } = binding
  21304. if (value && typeof value === 'number') {
  21305. el.style.height = `${value}px`
  21306. } else {
  21307. el.style.height = 'auto'
  21308. }
  21309. },
  21310. componentUpdated(el) {
  21311. el.style.height = `${el.scrollHeight}px`
  21312. },
  21313. },
  21314. },
  21315. beforeDestroy() {
  21316. window.onresize = null;
  21317. clearInterval(this.timer);
  21318. this.timer = null;
  21319. clearInterval(this.timer2);
  21320. this.timer2 = null;
  21321. clearInterval(this.opertimer);
  21322. this.opertimer = null;
  21323. this.updateSplitScreenData(1);
  21324. },
  21325. computed: {
  21326. renderedFormula2() {
  21327. return function(val){
  21328. // 处理换行符和HTML实体
  21329. const normalized = val
  21330. .replace(/&amp;/g, '&')
  21331. .replace(/<br\/?>/g, '\n');
  21332. // 匹配行内公式($...$)和块级公式($$...$$)
  21333. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21334. try {
  21335. return katex.renderToString(expr.trim(), {
  21336. displayMode: false,
  21337. throwOnError: false,
  21338. macros: {
  21339. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21340. }
  21341. });
  21342. } catch (e) {
  21343. console.warn('KaTeX渲染失败:', e);
  21344. return `<span style="color:red">${expr}</span>`;
  21345. }
  21346. })
  21347. }
  21348. },
  21349. renderedFormula() {
  21350. return function(val){
  21351. try {
  21352. // 判断是否含有HTML标签,<tag ...>...</tag>
  21353. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21354. if (!hasTag) {
  21355. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21356. // 纯文本,整体渲染
  21357. try {
  21358. return katex.renderToString(val.trim(), {
  21359. throwOnError: false,
  21360. strict: false,
  21361. output: "htmlAndMathml"
  21362. });
  21363. } catch (e) {
  21364. return val; // 渲染失败原样输出
  21365. }
  21366. } else {
  21367. // 有标签,对每个标签内容渲染
  21368. return val.replace(
  21369. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21370. (match, tag, attrs, inner) => {
  21371. let html;
  21372. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21373. try {
  21374. html = katex.renderToString(inner.trim(), {
  21375. throwOnError: false,
  21376. strict: false,
  21377. output: "htmlAndMathml"
  21378. });
  21379. } catch (e) {
  21380. html = inner;
  21381. }
  21382. return `<${tag}${attrs}>${html}</${tag}>`;
  21383. }
  21384. );
  21385. }
  21386. } catch (e) {
  21387. console.error('KaTeX渲染错误:', e);
  21388. return val;
  21389. }
  21390. }
  21391. },
  21392. isAndroid() {
  21393. return /Android/i.test(navigator.userAgent);
  21394. },
  21395. contentConvent() {
  21396. return function (c) {
  21397. return c
  21398. ? c
  21399. .replaceAll(/\r\n/g, "<br/>")
  21400. .replaceAll(/\n/g, "<br/>")
  21401. .replaceAll(/\s/g, "&nbsp")
  21402. : "";
  21403. };
  21404. },
  21405. commentRight(){
  21406. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21407. return "35px";
  21408. }
  21409. return `calc(${this.classRoomHelperWidth} + 5px)`
  21410. // if(this.$refs["classRoomHelperRef"].type==0){
  21411. // return "100px";
  21412. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21413. // return "502px"
  21414. // }else{
  21415. // return "0px"
  21416. // }
  21417. },
  21418. checkUpload() {
  21419. return function () {
  21420. var studentK = [];
  21421. if (this.plworkFile.length > 0) {
  21422. for (var z = 0; z < this.plworkFile.length; z++) {
  21423. studentK.push(this.plworkFile[z].username);
  21424. }
  21425. studentK = studentK.join(",");
  21426. }
  21427. var a = this.uploadStudentJuri.filter((el) => {
  21428. return studentK.indexOf(el.userid) == -1;
  21429. });
  21430. return a;
  21431. };
  21432. },
  21433. getSName() {
  21434. return function (name) {
  21435. var check = name;
  21436. this.uploadStudentJuri.forEach((el) => {
  21437. if (el.userid == check) {
  21438. check = el.name ? el.name : el.username;
  21439. }
  21440. });
  21441. return check;
  21442. };
  21443. },
  21444. getImgList() {
  21445. return function (val) {
  21446. let srcList = []; // 定义一个数组用来接收后面的img地址
  21447. val.replace(
  21448. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21449. function (match, capture) {
  21450. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21451. srcList.push(capture);
  21452. }
  21453. );
  21454. return srcList;
  21455. };
  21456. },
  21457. retrnToolHeight(){
  21458. return function (tool) {
  21459. var _tool = document.querySelectorAll('#'+tool)[0]
  21460. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21461. };
  21462. },
  21463. Correct() {
  21464. return function (c) {
  21465. let w = "";
  21466. let a = this.correctWord;
  21467. for(var k = 0;k<a.length;k++){
  21468. //diffWordsWithSpace
  21469. if(a.length > 1){
  21470. if(a[k].added == true){
  21471. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21472. }else if(a[k].removed == true){
  21473. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21474. }else{
  21475. w += '<span>' + a[k].value + '</span>';
  21476. }
  21477. }else{
  21478. w = c
  21479. }
  21480. //diffChars方法
  21481. // if(a.length > 1){
  21482. // if(w == ""){
  21483. // if(a[k].added == true){
  21484. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21485. // }else if(a[k].removed == true){
  21486. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21487. // }
  21488. // }else{
  21489. // if(k == a.length - 1){
  21490. // if(a[k].added == true){
  21491. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21492. // }else if(a[k].removed == true){
  21493. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21494. // }
  21495. // }else{
  21496. // if(a[k].added == true){
  21497. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21498. // }else if(a[k].removed == true){
  21499. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21500. // }
  21501. // }
  21502. // }
  21503. // }else{
  21504. // w = c
  21505. // }
  21506. }
  21507. c = w;
  21508. return c;
  21509. };
  21510. },
  21511. },
  21512. mounted() {
  21513. document.body.addEventListener("click", (e) => {
  21514. if (this.isUpdateToolDetail1) {
  21515. this.updateToolDetail(this.toolDetailIndex);
  21516. }
  21517. });
  21518. this.setOperationTime();
  21519. this.selectEva();
  21520. this.getCourseDetail();
  21521. this.selectCount();
  21522. this.getHomeWork();
  21523. this.selectUser();
  21524. this.getAIJ();
  21525. this.updateSplitScreenData(2);
  21526. this.splitScreenData.myUid = uuidv4();
  21527. this.contentDialog = true;
  21528. this.setContent2(true);
  21529. if (this.tType == 4) {
  21530. this.pzDialog = true;
  21531. this.selectPz();
  21532. }
  21533. // 获取评分列表
  21534. this.getScoreList()
  21535. document.scrollingElement.scrollTop = 0;
  21536. window.addEventListener("resize", () => {
  21537. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21538. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21539. if (this.showType == 2 || this.showType == 3) {
  21540. document.getElementsByClassName("navBox")[0].style.height =
  21541. a - 40 + 0+ "px";
  21542. } else {
  21543. document.getElementsByClassName("navBox")[0].style.height =
  21544. a - 40 + "px";
  21545. }
  21546. });
  21547. let _this = this;
  21548. setTimeout(() => {
  21549. // _this.vedioTime = [];
  21550. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21551. // _this.vedioTime[i] = document.getElementsByClassName(
  21552. // "vjs-duration-display"
  21553. // )[i].textContent;
  21554. // }
  21555. }, 1000);
  21556. try{
  21557. if (this.screenType == 2) {
  21558. window.topU.postMessage({ allScreen: 4 }, "*");
  21559. } else if (this.screenType == 3) {
  21560. window.topU.postMessage({ allScreen: 5 }, "*");
  21561. } else if (this.screenType == 1) {
  21562. window.topU.postMessage({ allScreen: 6 }, "*");
  21563. }
  21564. }catch(e){
  21565. console.log(e)
  21566. }
  21567. },
  21568. };
  21569. </script>
  21570. <style scoped>
  21571. @media screen and (max-width: 1280px) {
  21572. /* .courseIndex > div:first-child(2) {
  21573. width: 15% !important;
  21574. } */
  21575. /* .navText {
  21576. width: 120px !important;
  21577. } */
  21578. .evaCss {
  21579. flex-direction: column !important;
  21580. align-items: center !important;
  21581. }
  21582. .elist_input {
  21583. width: 90% !important;
  21584. }
  21585. .dialog_diy1 >>> .el-dialog {
  21586. width: 100% !important;
  21587. }
  21588. .rightWidthCss {
  21589. width: 100% !important;
  21590. }
  21591. .dialog_diy3 >>> .el-dialog {
  21592. width: 100% !important;
  21593. }
  21594. .addToolCss {
  21595. right: 0 !important;
  21596. width: 100% !important;
  21597. min-width: unset !important;
  21598. }
  21599. }
  21600. .evaCssMax {
  21601. flex-direction: column !important;
  21602. align-items: center !important;
  21603. }
  21604. .dialog_diy >>> .el-dialog {
  21605. margin-top: 10vh !important;
  21606. }
  21607. .body_student {
  21608. width: 77%;
  21609. height: 100%;
  21610. position: absolute;
  21611. left: 22%;
  21612. top: 0;
  21613. }
  21614. .student_head {
  21615. width: 100%;
  21616. margin: 20px auto 0;
  21617. padding-bottom: 20px;
  21618. display: flex;
  21619. flex-direction: column;
  21620. flex-wrap: nowrap;
  21621. align-items: flex-start;
  21622. justify-content: flex-start;
  21623. }
  21624. .pb_left {
  21625. width: 20%;
  21626. margin-right: 10px;
  21627. background: rgb(255, 255, 255);
  21628. position: fixed;
  21629. height: calc(100% - 40px);
  21630. border-radius: 20px;
  21631. padding-bottom: 15px;
  21632. box-sizing: border-box;
  21633. }
  21634. .wheel > img,
  21635. .project > img,
  21636. .star > img,
  21637. .evaluate > img,
  21638. .up_photo > img,
  21639. .chapter_add > img,
  21640. .deleteWord > img,
  21641. .question > img,
  21642. .homework > img {
  21643. width: 100%;
  21644. height: 100%;
  21645. }
  21646. .upCover > img {
  21647. width: 131px;
  21648. height: 69px;
  21649. object-fit: cover;
  21650. }
  21651. .upCover {
  21652. width: calc(100% / 3.5);
  21653. position: relative;
  21654. margin: 0 15px 10px 0;
  21655. display: flex;
  21656. flex-direction: column;
  21657. flex-wrap: nowrap;
  21658. justify-content: center;
  21659. align-content: center;
  21660. align-items: center;
  21661. height: fit-content;
  21662. }
  21663. .upCover2 {
  21664. width: 100%;
  21665. position: relative;
  21666. margin: 0 15px 10px 0;
  21667. display: flex;
  21668. flex-direction: column;
  21669. flex-wrap: nowrap;
  21670. justify-content: center;
  21671. align-content: center;
  21672. align-items: center;
  21673. }
  21674. .upCover2 > img {
  21675. width: 100%;
  21676. height: 90px;
  21677. object-fit: contain;
  21678. }
  21679. .chapter_add {
  21680. width: 120px;
  21681. position: relative;
  21682. text-align: center;
  21683. }
  21684. .isAddThings {
  21685. margin-top: 20px;
  21686. position: relative;
  21687. text-align: center;
  21688. background: #f7f8fa;
  21689. height: 90px;
  21690. width: 90px;
  21691. display: flex;
  21692. flex-direction: column;
  21693. justify-content: center;
  21694. }
  21695. .deleteWord {
  21696. width: 22px;
  21697. height: 22px;
  21698. position: absolute;
  21699. right: -5px;
  21700. top: -5px;
  21701. cursor: pointer;
  21702. }
  21703. .box_course {
  21704. /* width: 60%; */
  21705. width: calc(100% - 300px);
  21706. }
  21707. .wheel {
  21708. width: 100%;
  21709. /* height: 100%; */
  21710. height: 650px;
  21711. }
  21712. .right_box {
  21713. display: flex;
  21714. flex-direction: column;
  21715. margin-left: 30px;
  21716. justify-content: space-around;
  21717. }
  21718. .right_box_title {
  21719. font-size: 23px;
  21720. }
  21721. .people {
  21722. display: flex;
  21723. }
  21724. .student_body {
  21725. width: 100%;
  21726. margin: 0 auto;
  21727. margin-top: 10px;
  21728. padding: 0 0 20px;
  21729. }
  21730. .study_top {
  21731. margin-top: 100px;
  21732. width: 100%;
  21733. height: auto;
  21734. padding-bottom: 20px;
  21735. margin-left: 2px;
  21736. min-height: 90%;
  21737. }
  21738. .study_top .checkbox {
  21739. display: flex;
  21740. align-items: center;
  21741. padding: 15px 0 15px 30px;
  21742. flex: 0 0 auto;
  21743. font-weight: bold;
  21744. border-bottom: 1px solid #eee;
  21745. }
  21746. .study_top .check {
  21747. padding-bottom: 5px;
  21748. text-align: center;
  21749. cursor: pointer;
  21750. height: 30px;
  21751. box-sizing: border-box;
  21752. display: flex;
  21753. }
  21754. .study_top .checked {
  21755. border-bottom: 4px solid #3fc6a0;
  21756. padding-bottom: 5px;
  21757. color: #3fc6a0;
  21758. display: flex;
  21759. height: 35px;
  21760. }
  21761. .study_top .checked > div,
  21762. .study_top .check > div {
  21763. margin-right: 5px;
  21764. }
  21765. .videoTop {
  21766. display: flex;
  21767. flex-direction: row;
  21768. justify-content: space-between;
  21769. background: #fff;
  21770. align-items: center;
  21771. width: 95%;
  21772. padding: 20px;
  21773. }
  21774. .filebox {
  21775. display: flex;
  21776. flex-wrap: wrap;
  21777. flex-direction: column;
  21778. padding: 0 0 5px;
  21779. position: relative;
  21780. }
  21781. .filebox:before {
  21782. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21783. position: absolute;
  21784. top: 20px;
  21785. left: 13px;
  21786. border-left: 2px dotted #cad1dc;
  21787. height: calc(100% - 15px);
  21788. }
  21789. .toolHeng2 > div:last-child::before {
  21790. height: calc(100% - 43px);
  21791. }
  21792. .filebox .tooldetail {
  21793. width: calc(100%);
  21794. margin: 0px 12px;
  21795. padding: 12px;
  21796. line-height: 30px;
  21797. word-break: break-word;
  21798. background: #ffffff;
  21799. border-radius: 8px 8px 8px 8px;
  21800. opacity: 1;
  21801. border: 1px solid #cad1dc;
  21802. overflow:hidden;
  21803. box-sizing:border-box;
  21804. }
  21805. .file {
  21806. display: flex;
  21807. flex-direction: column;
  21808. align-items: center;
  21809. justify-content: center;
  21810. cursor: pointer;
  21811. width: 200px;
  21812. }
  21813. .file div {
  21814. margin-top: 10px;
  21815. width: 150px;
  21816. text-align: center;
  21817. overflow: hidden;
  21818. white-space: nowrap;
  21819. text-overflow: ellipsis;
  21820. }
  21821. .media {
  21822. display: flex;
  21823. flex-direction: column;
  21824. align-items: center;
  21825. justify-content: center;
  21826. margin: 0 20px 20px 0;
  21827. cursor: pointer;
  21828. margin: 12px 0 5px 15px;
  21829. overflow: hidden;
  21830. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21831. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21832. box-sizing: border-box;
  21833. }
  21834. .media img {
  21835. height: 90px;
  21836. width: 160px;
  21837. object-fit: cover;
  21838. }
  21839. .media .title {
  21840. padding: 5px;
  21841. text-align: left;
  21842. width: 100%;
  21843. box-sizing: border-box;
  21844. }
  21845. .media .btn {
  21846. width: 100%;
  21847. height: 35px;
  21848. line-height: 35px;
  21849. color: #fff;
  21850. background: #606060;
  21851. text-align: center;
  21852. overflow: hidden;
  21853. white-space: nowrap;
  21854. text-overflow: ellipsis;
  21855. }
  21856. .detail_content_top {
  21857. width: 100%;
  21858. padding: 25px 0 25px 0;
  21859. }
  21860. .detail_title {
  21861. text-align: center;
  21862. font-size: 24px;
  21863. }
  21864. .detail_time {
  21865. font-size: 13px;
  21866. padding: 15px 0 0 40px;
  21867. }
  21868. .detail_content {
  21869. line-height: 2pc;
  21870. width: 90%;
  21871. margin: 0 auto;
  21872. padding-top: 30px;
  21873. text-indent: 30px;
  21874. overflow: auto;
  21875. height: 200px;
  21876. }
  21877. .score_box >>> .el-rate {
  21878. margin-left: 10px;
  21879. }
  21880. .dialog_change >>> .el-dialog {
  21881. border-radius: 5px;
  21882. }
  21883. .dialog_change >>> .el-dialog__header {
  21884. background: #f2f2f2;
  21885. text-align: center;
  21886. }
  21887. .dialog_change >>> .el-dialog__title {
  21888. line-height: 5px;
  21889. }
  21890. .dialog_change >>> .el-dialog__body {
  21891. background: #fff;
  21892. padding: 10px 20px;
  21893. }
  21894. .score_box {
  21895. display: flex;
  21896. align-items: center;
  21897. margin-bottom: 18px;
  21898. margin-top: 20px;
  21899. }
  21900. .up_photo {
  21901. width: 120px;
  21902. cursor: pointer;
  21903. margin-top: 10px;
  21904. }
  21905. .up_photo2 {
  21906. width: 180px;
  21907. box-sizing: border-box;
  21908. min-width: 180px;
  21909. height: 180px;
  21910. max-height: 180px;
  21911. min-height: 180px;
  21912. cursor: pointer;
  21913. display: flex;
  21914. flex-direction: column;
  21915. align-items: center;
  21916. justify-content: center;
  21917. background: rgb(242, 246, 255);
  21918. /* padding: 25px; */
  21919. margin-bottom: 10px;
  21920. }
  21921. .up_photo2 img {
  21922. width: 50%;
  21923. height: auto;
  21924. }
  21925. .up_photo2 span {
  21926. color: #898989;
  21927. }
  21928. .plworkBox {
  21929. display: flex;
  21930. align-items: center;
  21931. margin-top: 10px;
  21932. flex-wrap: wrap;
  21933. }
  21934. .upload_send {
  21935. margin: 30px auto 30px;
  21936. width: 60%;
  21937. background: #3681fc;
  21938. text-align: center;
  21939. height: 35px;
  21940. line-height: 35px;
  21941. color: #fff;
  21942. border-radius: 5px;
  21943. cursor: pointer;
  21944. }
  21945. .marginT {
  21946. margin-top: 20px;
  21947. }
  21948. .cd_content_steps {
  21949. display: flex;
  21950. width: 90%;
  21951. justify-content: space-around;
  21952. border-top: 1px solid #eeeeee;
  21953. }
  21954. .cd_steps_box {
  21955. display: flex;
  21956. justify-content: center;
  21957. align-items: center;
  21958. flex-direction: column;
  21959. cursor: pointer;
  21960. }
  21961. .first {
  21962. display: flex;
  21963. align-items: center;
  21964. margin: 15px 0 20px 0;
  21965. font-size: 20px;
  21966. }
  21967. .first > div:nth-child(2) {
  21968. font-size: 16px !important;
  21969. padding-left: 10px;
  21970. line-height: 26px;
  21971. box-sizing: border-box;
  21972. }
  21973. .blue_box_one {
  21974. text-align: center;
  21975. color: #fff;
  21976. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21977. border-radius: 7px;
  21978. margin: 10px;
  21979. cursor: pointer;
  21980. width: 95%;
  21981. height: 45px;
  21982. display: flex;
  21983. flex-direction: row;
  21984. justify-content: flex-start;
  21985. align-items: center;
  21986. }
  21987. .blue_box_one > div:nth-child(1) {
  21988. line-height: 30px;
  21989. margin: 0 5px 0 10px;
  21990. width: 30%;
  21991. min-width: 70px;
  21992. border-radius: 4px;
  21993. }
  21994. .blue_box_one > div:nth-child(2) {
  21995. white-space: nowrap;
  21996. text-overflow: ellipsis;
  21997. overflow: hidden;
  21998. word-break: break-all;
  21999. width: 70%;
  22000. text-align: left;
  22001. margin-right: 10px;
  22002. max-width: calc(100% - 85px);
  22003. }
  22004. .blue_box_one > div:nth-child(2):hover {
  22005. overflow: hidden;
  22006. text-overflow: ellipsis;
  22007. white-space: nowrap;
  22008. cursor: pointer;
  22009. }
  22010. .upFile {
  22011. margin: 0 auto;
  22012. width: 120px;
  22013. background: #3681fc;
  22014. color: #fff;
  22015. height: 30px;
  22016. text-align: center;
  22017. line-height: 30px;
  22018. border-radius: 5px;
  22019. font-size: 14px;
  22020. cursor: pointer;
  22021. }
  22022. .courseTitle {
  22023. width: 85%;
  22024. margin: 10px auto 26px auto;
  22025. display: flex;
  22026. flex-direction: row;
  22027. align-items: center;
  22028. justify-content: space-between;
  22029. text-align: center;
  22030. }
  22031. .courseTitle .ctitle {
  22032. font-size: 20px;
  22033. font-weight: bold;
  22034. color: #0e1e33;
  22035. white-space: nowrap;
  22036. overflow: hidden;
  22037. text-overflow: ellipsis;
  22038. }
  22039. .inviteBox {
  22040. font-size: 14px;
  22041. /* margin-top: 5px; */
  22042. color: #00000099;
  22043. text-align: center;
  22044. }
  22045. .courseTitle >>> .el-tooltip {
  22046. width: 100%;
  22047. white-space: nowrap;
  22048. overflow: hidden;
  22049. text-overflow: ellipsis;
  22050. word-break: break-word;
  22051. }
  22052. .ml {
  22053. margin-left: 20px;
  22054. color: #5b7dba;
  22055. border-left: 3px solid #5b7dba;
  22056. padding-left: 5px;
  22057. font-weight: bold;
  22058. }
  22059. .return {
  22060. width: 2rem;
  22061. height: 2rem;
  22062. cursor: pointer;
  22063. }
  22064. .return > img {
  22065. width: 100%;
  22066. height: 100%;
  22067. }
  22068. .returnBtn {
  22069. width: 86px;
  22070. height: 36px;
  22071. background: #3681fc;
  22072. border-radius: 4px;
  22073. color: #fff;
  22074. text-align: center;
  22075. line-height: 36px;
  22076. margin-right: 20px;
  22077. cursor: pointer;
  22078. font-size: 14px;
  22079. font-weight: 400;
  22080. display: flex;
  22081. flex-direction: row;
  22082. flex-wrap: nowrap;
  22083. align-items: center;
  22084. justify-content: center;
  22085. }
  22086. .reBtnIcon,
  22087. .commentIcon,
  22088. .vedioIcon,
  22089. .vedioIcon1 {
  22090. /* width: 36px; */
  22091. height: 36px;
  22092. border-radius: 4px;
  22093. position: relative;
  22094. /* background: #e0eafb; */
  22095. background: #0061ff;
  22096. cursor: pointer;
  22097. margin-right: 12px;
  22098. display: flex;
  22099. align-items: center;
  22100. padding: 0 10px;
  22101. box-sizing: border-box;
  22102. font-size: 14px;
  22103. color: #fff;
  22104. }
  22105. .reBtnIcon::before,
  22106. .commentIcon::before,
  22107. .vedioIcon::before,
  22108. .vedioIcon1::before {
  22109. content: "";
  22110. display: block;
  22111. background-size: 100% 100%;
  22112. background-repeat: no-repeat;
  22113. width: 20px;
  22114. height: 20px;
  22115. margin-right: 5px;
  22116. /* position: absolute; */
  22117. /* top: 8px;
  22118. left: 8px; */
  22119. }
  22120. .vedioIcon1 {
  22121. background: #f63564;
  22122. }
  22123. .reBtnIcon::before {
  22124. background-image: url("../assets/icon/newIcons/refresh.png");
  22125. }
  22126. .commentIcon::before {
  22127. background-image: url("../assets/icon/newIcons/comment.png");
  22128. }
  22129. .vedioIcon::before {
  22130. background-image: url("../assets/icon/newIcons/transcribe.png");
  22131. }
  22132. .vedioIcon1::before {
  22133. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  22134. background-image: url("../assets/icon/newIcons/transcribe.png");
  22135. }
  22136. .tool {
  22137. display: flex;
  22138. flex-direction: column;
  22139. flex-wrap: nowrap;
  22140. width: 13%;
  22141. margin: 0 30px;
  22142. align-items: center;
  22143. position: relative;
  22144. padding: 10px 25px;
  22145. cursor: pointer;
  22146. }
  22147. .whiteBIcon {
  22148. width: 150px;
  22149. }
  22150. .whiteBIcon > img {
  22151. width: 100%;
  22152. height: 100%;
  22153. }
  22154. .mask {
  22155. background-color: rgba(0, 0, 0, 0);
  22156. position: fixed;
  22157. top: 0;
  22158. left: 0;
  22159. width: 100%;
  22160. height: 100%;
  22161. z-index: 20000;
  22162. display: flex;
  22163. align-items: center;
  22164. justify-content: center;
  22165. }
  22166. .progressBox {
  22167. width: 500px;
  22168. height: 180px;
  22169. background: #fff;
  22170. border-radius: 10px;
  22171. box-shadow: 0 0 6px 1px #bfbfbf;
  22172. display: flex;
  22173. align-items: center;
  22174. justify-content: center;
  22175. flex-direction: column;
  22176. position: relative;
  22177. color: #6c6c6c;
  22178. }
  22179. .progressBox >>> .el-progress-bar__outer {
  22180. background-color: #d1dfff !important;
  22181. }
  22182. .progressBox .lbox {
  22183. height: 50px;
  22184. font-size: 19px;
  22185. display: flex;
  22186. align-items: center;
  22187. color: #747474;
  22188. }
  22189. .progressBox .lbox img {
  22190. width: 40px;
  22191. margin-right: 20px;
  22192. }
  22193. .closeCss {
  22194. position: absolute;
  22195. top: 8px;
  22196. right: 8px;
  22197. cursor: pointer;
  22198. width: 20px;
  22199. height: 20px;
  22200. }
  22201. .closeCss > img {
  22202. width: 100%;
  22203. height: 100%;
  22204. }
  22205. .uploadVedio {
  22206. display: flex;
  22207. flex-direction: column;
  22208. flex-wrap: nowrap;
  22209. justify-content: center;
  22210. align-items: center;
  22211. margin: 0 15px 10px 0;
  22212. }
  22213. .uploadVedio > img {
  22214. width: 30px;
  22215. height: 30px;
  22216. }
  22217. .uploadVedio > span {
  22218. white-space: nowrap;
  22219. overflow: hidden;
  22220. text-overflow: ellipsis;
  22221. width: 75px;
  22222. margin-top: 7px;
  22223. }
  22224. .picName {
  22225. white-space: nowrap;
  22226. overflow: hidden;
  22227. text-overflow: ellipsis;
  22228. width: 75px;
  22229. margin-top: 7px;
  22230. }
  22231. .new_top {
  22232. display: flex;
  22233. background: #fff;
  22234. flex-direction: row;
  22235. justify-content: flex-start;
  22236. align-items: center;
  22237. height: 60px;
  22238. position: fixed;
  22239. top: 20px;
  22240. left: 22%;
  22241. width: 77%;
  22242. z-index: 999;
  22243. border-radius: 12px 12px 0 0;
  22244. border-bottom: 1px solid #cad1dc;
  22245. padding: 10px 0;
  22246. }
  22247. .new_topFixed {
  22248. width: 100%;
  22249. height: 40px;
  22250. position: fixed;
  22251. top: 0px;
  22252. display: block;
  22253. background: #f2f2f2;
  22254. z-index: 998;
  22255. }
  22256. .before {
  22257. position: absolute;
  22258. background: #c3dad4;
  22259. width: 6px;
  22260. height: 100%;
  22261. }
  22262. .courseIndex {
  22263. display: flex;
  22264. flex-direction: row;
  22265. align-items: center;
  22266. width: calc(100% - 745px);
  22267. }
  22268. .courseIndex > div:nth-child(1) {
  22269. margin: 0 0 0 10px;
  22270. font-size: 20px;
  22271. min-width: 100px;
  22272. font-weight: bold;
  22273. border-left: 4px solid #3363b9;
  22274. height: 32px;
  22275. text-align: center;
  22276. line-height: 35px;
  22277. }
  22278. .courseIndex > div:nth-child(2) {
  22279. font-size: 20px;
  22280. /* width: 300px; */
  22281. max-width: calc(100% - 105px);
  22282. white-space: nowrap;
  22283. overflow: hidden;
  22284. text-overflow: ellipsis;
  22285. }
  22286. .courseIndex > div:nth-child(3) {
  22287. border-bottom: 1px solid #d7d7d7;
  22288. padding-bottom: 5px;
  22289. background: #3681fc;
  22290. width: 55px;
  22291. min-width: 55px;
  22292. border-radius: 5px;
  22293. color: #fff;
  22294. text-align: center;
  22295. height: 20px;
  22296. line-height: 26px;
  22297. font-size: 14px;
  22298. margin: 0 0 0 10px;
  22299. }
  22300. .course_text {
  22301. padding: 20px 0 0 15px;
  22302. text-indent: 30px;
  22303. width: 80%;
  22304. min-height: 20px;
  22305. }
  22306. .vedioList {
  22307. background: #f2f2f2;
  22308. border: 1px solid #ececec;
  22309. /* width: 38.8%; */
  22310. /* width: 300px; */
  22311. width: 100%;
  22312. height: 445px;
  22313. border-radius: 10px;
  22314. overflow: hidden;
  22315. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22316. }
  22317. .vedioNav {
  22318. margin: 10px 0 0 15px;
  22319. border-bottom: 1px solid #d7d7d7;
  22320. padding-bottom: 5px;
  22321. background: #3681fc;
  22322. width: 55px;
  22323. min-width: 55px;
  22324. border-radius: 5px;
  22325. color: #fff;
  22326. text-align: center;
  22327. height: 20px;
  22328. line-height: 26px;
  22329. font-size: 14px;
  22330. }
  22331. .queTop {
  22332. display: flex;
  22333. padding: 20px 0 20px 30px;
  22334. width: 100%;
  22335. flex-direction: row;
  22336. justify-content: flex-start;
  22337. align-items: center;
  22338. box-sizing: border-box;
  22339. }
  22340. .queTopTitle {
  22341. display: flex;
  22342. flex-direction: row;
  22343. flex-wrap: nowrap;
  22344. align-items: center;
  22345. font-weight: bold;
  22346. font-size: 20px;
  22347. color: rgb(14, 30, 51);
  22348. }
  22349. .queTopTitle::before {
  22350. content: "";
  22351. width: 2px;
  22352. height: 22px;
  22353. background: #3681fc;
  22354. border-radius: 3px;
  22355. display: block;
  22356. margin: 2px 6px 0 0;
  22357. }
  22358. .queTopRight {
  22359. display: flex;
  22360. flex-direction: row;
  22361. flex-wrap: nowrap;
  22362. align-items: center;
  22363. }
  22364. .queTopClose {
  22365. margin-right: 20px;
  22366. cursor: pointer;
  22367. position: relative;
  22368. display: flex;
  22369. }
  22370. .closeImg,
  22371. .openImg {
  22372. width: 25px;
  22373. height: 25px;
  22374. position: absolute;
  22375. left: -20px;
  22376. top: -1px;
  22377. }
  22378. .closeImg > img,
  22379. .openImg > img {
  22380. width: 100%;
  22381. height: 100%;
  22382. }
  22383. .question {
  22384. width: 40px;
  22385. margin-right: 10px;
  22386. margin-top: 7px;
  22387. }
  22388. .queTitle {
  22389. margin-left: 5px;
  22390. font-size: 25px;
  22391. display: flex;
  22392. align-items: center;
  22393. }
  22394. .addEditor {
  22395. width: 100px;
  22396. height: 30px;
  22397. background: #42cda6;
  22398. color: #fff;
  22399. border-radius: 5px;
  22400. text-align: center;
  22401. line-height: 30px;
  22402. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22403. cursor: pointer;
  22404. }
  22405. /* .vedioName {
  22406. cursor: pointer;
  22407. margin: 0px 0px 10px 5px;
  22408. white-space: nowrap;
  22409. overflow: hidden;
  22410. text-overflow: ellipsis;
  22411. width: 100%;
  22412. } */
  22413. .vedioTime {
  22414. width: 35px;
  22415. position: absolute;
  22416. color: #fff;
  22417. bottom: 0px;
  22418. right: 0px;
  22419. text-align: center;
  22420. background: #46411f;
  22421. height: 20px;
  22422. font-size: 14px;
  22423. line-height: 20px;
  22424. }
  22425. .homework {
  22426. width: 200px;
  22427. display: flex;
  22428. flex-direction: column;
  22429. flex-wrap: nowrap;
  22430. align-items: center;
  22431. cursor: pointer;
  22432. }
  22433. .homebox {
  22434. display: flex;
  22435. flex-wrap: wrap;
  22436. flex-direction: row;
  22437. justify-content: flex-start;
  22438. align-items: center;
  22439. padding: 15px 0;
  22440. }
  22441. .isChooseActive {
  22442. color: #3681fc !important;
  22443. font-weight: bold !important;
  22444. }
  22445. .chooseWho {
  22446. display: flex;
  22447. width: 100%;
  22448. flex-direction: row;
  22449. flex-wrap: nowrap;
  22450. justify-content: flex-start;
  22451. padding-bottom: 10px;
  22452. }
  22453. .chooseWho > div {
  22454. cursor: pointer;
  22455. padding-bottom: 10px;
  22456. margin: 0 30px 0 0;
  22457. font-weight: 400;
  22458. color: #0e1e33;
  22459. }
  22460. .addPoint > div > img {
  22461. cursor: pointer;
  22462. width: 85px;
  22463. border-radius: 15px;
  22464. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22465. }
  22466. .addPoint > div {
  22467. display: flex;
  22468. flex-direction: column;
  22469. flex-wrap: nowrap;
  22470. align-items: center;
  22471. }
  22472. .isBorder > div {
  22473. margin: 0 0 10px 0;
  22474. align-items: flex-start !important;
  22475. }
  22476. .noiframeBox {
  22477. display: flex;
  22478. flex-wrap: wrap;
  22479. }
  22480. .iframeBox iframe {
  22481. width: 100%;
  22482. height: 800px;
  22483. border: none;
  22484. margin-bottom: 20px;
  22485. border: 1px solid #ccc;
  22486. }
  22487. .upload_toolBtn {
  22488. background: #3681fc;
  22489. color: #fff;
  22490. width: 110px;
  22491. text-align: center;
  22492. height: 35px;
  22493. line-height: 35px;
  22494. font-size: 14px;
  22495. border-radius: 5px;
  22496. cursor: pointer;
  22497. position: absolute;
  22498. right: 10px;
  22499. bottom: 0;
  22500. }
  22501. .binfo_input,
  22502. .pj {
  22503. font: inherit;
  22504. color: currentColor;
  22505. width: 100%;
  22506. margin: 0;
  22507. padding: 15px 14px;
  22508. display: block;
  22509. min-width: 0;
  22510. outline: none;
  22511. box-sizing: content-box;
  22512. background: none;
  22513. -webkit-tap-highlight-color: transparent;
  22514. border: 1px solid rgba(0, 0, 0, 0.23);
  22515. border-radius: 4px;
  22516. box-sizing: border-box;
  22517. resize: none;
  22518. }
  22519. .binfo_input:focus-visible {
  22520. border: 1px solid rgba(61, 103, 188);
  22521. }
  22522. .dialog_diy >>> .el-dialog__header,
  22523. .dialog_diy1 >>> .el-dialog__header {
  22524. background: #454545 !important;
  22525. padding: 15px 20px;
  22526. }
  22527. .dialog_diy >>> .el-dialog__title,
  22528. .dialog_diy1 >>> .el-dialog__title {
  22529. color: #fff;
  22530. }
  22531. .dialog_diy >>> .el-dialog__headerbtn,
  22532. .dialog_diy1 >>> .el-dialog__headerbtn {
  22533. top: 19px;
  22534. }
  22535. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22536. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22537. color: #fff;
  22538. }
  22539. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22540. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22541. color: #fff;
  22542. }
  22543. .dialog_diy1 >>> .el-dialog__body {
  22544. padding: 0;
  22545. }
  22546. .dialog_diy >>> .el-dialog__body,
  22547. .dialog_diy >>> .el-dialog__footer,
  22548. .dialog_diy1 >>> .el-dialog__footer {
  22549. background: #fafafa;
  22550. }
  22551. .a_addBox {
  22552. padding: 0 0 0 15px;
  22553. }
  22554. .a_add_box {
  22555. padding: 10px;
  22556. background: #fff;
  22557. margin-bottom: 10px;
  22558. border-radius: 5px;
  22559. box-shadow: 0 0 5px 0 #d5d5d5;
  22560. }
  22561. .a_add_head {
  22562. display: flex;
  22563. align-items: flex-start;
  22564. /* justify-content: space-between; */
  22565. flex-direction: column;
  22566. /* flex-direction: row; */
  22567. margin: 10px 0 20px 0;
  22568. font-size: 18px;
  22569. width: 100%;
  22570. }
  22571. .askIndex {
  22572. background: #3681fc;
  22573. border-radius: 50%;
  22574. color: #fff;
  22575. width: 25px;
  22576. height: 25px;
  22577. min-width: 25px;
  22578. min-height: 25px;
  22579. text-align: center;
  22580. line-height: 25px;
  22581. margin-right: 5px;
  22582. }
  22583. .a_add_head .a_add_head_input {
  22584. width: 300px;
  22585. }
  22586. .a_add_head .a_add_head_div {
  22587. display: flex;
  22588. align-items: center;
  22589. justify-content: space-between;
  22590. }
  22591. .a_add_body {
  22592. display: flex;
  22593. align-items: center;
  22594. }
  22595. .a_add_input {
  22596. display: flex;
  22597. align-items: center;
  22598. flex-wrap: wrap;
  22599. width: 100%;
  22600. }
  22601. .a_add_input >>> .el-radio-group,
  22602. .a_add_input >>> .el-checkbox-group {
  22603. width: 100%;
  22604. }
  22605. .a_add_input >>> .el-radio,
  22606. .a_add_input >>> .el-checkbox {
  22607. display: flex;
  22608. flex-direction: row;
  22609. flex-wrap: nowrap;
  22610. align-items: center;
  22611. padding: 15px 0;
  22612. }
  22613. .a_add_input >>> .el-radio:not(:last-child),
  22614. .a_add_input >>> .el-checkbox:not(:last-child) {
  22615. width: 100%;
  22616. border-bottom: 1px solid #efefef;
  22617. }
  22618. .redioStyle >>> .el-radio__label {
  22619. font-size: 18px;
  22620. }
  22621. .redioStyle >>> .el-radio__label > span,
  22622. .redioStyle >>> .el-checkbox__label > span {
  22623. word-break: break-all;
  22624. white-space: normal;
  22625. }
  22626. .redioStyle >>> .el-checkbox__label {
  22627. font-size: 18px;
  22628. }
  22629. .toolHeng2 {
  22630. width: 100%;
  22631. padding-left: 15px;
  22632. box-sizing: border-box;
  22633. }
  22634. .workNav {
  22635. font-size: 20px;
  22636. font-weight: bold;
  22637. color: #0e1e33;
  22638. display: flex;
  22639. flex-direction: row;
  22640. flex-wrap: nowrap;
  22641. align-items: center;
  22642. padding: 15px 0 15px 0;
  22643. }
  22644. .workNav::before {
  22645. content: "";
  22646. width: 2px;
  22647. height: 22px;
  22648. background: #3681fc;
  22649. border-radius: 3px;
  22650. display: block;
  22651. margin: 2px 6px 0 0;
  22652. }
  22653. .toolHeng {
  22654. display: flex;
  22655. flex-direction: row;
  22656. flex-wrap: wrap;
  22657. justify-content: flex-start;
  22658. align-items: center;
  22659. width: 100%;
  22660. }
  22661. .toolHeng > div {
  22662. padding-left: 20px;
  22663. }
  22664. .isWidth {
  22665. width: 20%;
  22666. }
  22667. .textTitle {
  22668. display: flex;
  22669. flex-direction: row;
  22670. flex-wrap: nowrap;
  22671. align-items: center;
  22672. width: 95%;
  22673. }
  22674. .textTitle >>> .el-form-item__label {
  22675. font-size: 22px;
  22676. color: #918f8f;
  22677. width: 100px;
  22678. }
  22679. .textTitle >>> .el-form-item__content {
  22680. width: calc(100% - 100px);
  22681. }
  22682. .textCss >>> .el-dialog {
  22683. width: 800px !important;
  22684. height: 400px;
  22685. background: #fafafa;
  22686. }
  22687. .textCss >>> .el-dialog__body {
  22688. margin: 55px 8% 0 8%;
  22689. padding: 0 !important;
  22690. }
  22691. .textCss >>> .el-dialog__footer {
  22692. padding-top: 38px;
  22693. }
  22694. .toolsCss >>> .el-dialog__body {
  22695. padding: 20px;
  22696. }
  22697. .lineCss >>> .el-dialog__body {
  22698. display: flex;
  22699. flex-direction: row;
  22700. align-items: center;
  22701. justify-content: center;
  22702. }
  22703. .newNav {
  22704. display: flex;
  22705. flex-direction: row;
  22706. align-items: baseline;
  22707. justify-content: flex-start;
  22708. }
  22709. .navListItem {
  22710. width: calc(100% - 20px);
  22711. height: 50px;
  22712. margin: 0px auto 10px;
  22713. display: flex;
  22714. flex-direction: row;
  22715. flex-wrap: nowrap;
  22716. align-items: center;
  22717. justify-content: space-between;
  22718. background: #f0f4fa;
  22719. border-radius: 6px 6px 6px 6px;
  22720. }
  22721. .navText {
  22722. cursor: pointer;
  22723. white-space: nowrap;
  22724. overflow: hidden;
  22725. text-overflow: ellipsis;
  22726. width: 220px;
  22727. padding: 0 10px;
  22728. font-weight: 400;
  22729. color: #0e1e33;
  22730. }
  22731. .downIcon {
  22732. width: 20px;
  22733. min-width: 20px;
  22734. height: 20px;
  22735. margin-right: 15px;
  22736. cursor: pointer;
  22737. }
  22738. .downIcon > img {
  22739. width: 100%;
  22740. height: 100%;
  22741. }
  22742. .noVedio {
  22743. display: flex;
  22744. flex-direction: row;
  22745. justify-content: center;
  22746. align-content: center;
  22747. }
  22748. .noNavText {
  22749. cursor: pointer;
  22750. margin: 0px 0px 10px 5px;
  22751. width: 112px;
  22752. }
  22753. .listNoVedio {
  22754. margin: 0 0 0 30px;
  22755. width: 97%;
  22756. }
  22757. .video-player >>> .video-js {
  22758. height: 100%;
  22759. }
  22760. .hangVedioList {
  22761. width: 90% !important;
  22762. height: 150px !important;
  22763. margin: 20px 0 0 30px;
  22764. }
  22765. .hangVedio {
  22766. width: 100%;
  22767. height: 170px !important;
  22768. align-items: flex-start !important;
  22769. }
  22770. .hangHand {
  22771. height: 150px !important;
  22772. }
  22773. .twoChild {
  22774. width: 95%;
  22775. margin: 10px;
  22776. border-radius: 5px;
  22777. background: #f2f2f2;
  22778. display: flex;
  22779. flex-direction: column;
  22780. flex-wrap: nowrap;
  22781. justify-content: flex-start;
  22782. align-items: flex-start;
  22783. transition: all 0.5s;
  22784. overflow: hidden;
  22785. height: 0;
  22786. background: #e7f3ff;
  22787. }
  22788. .twoChild > div:nth-child(1) {
  22789. margin-top: 5px;
  22790. }
  22791. .navChild {
  22792. width: 100%;
  22793. cursor: pointer;
  22794. margin-bottom: 10px;
  22795. position: relative;
  22796. }
  22797. .navChild img {
  22798. position: absolute;
  22799. right: 11px;
  22800. width: 15px;
  22801. top: 50%;
  22802. transform: translateY(-50%);
  22803. }
  22804. .navActive,
  22805. .toolActive {
  22806. height: auto !important;
  22807. overflow: auto !important;
  22808. /* padding-bottom: 16px; */
  22809. }
  22810. .toolActive {
  22811. padding: 0;
  22812. }
  22813. .navTask {
  22814. display: flex;
  22815. flex-direction: row;
  22816. flex-wrap: nowrap;
  22817. align-items: center;
  22818. align-content: flex-start;
  22819. height: 40px;
  22820. justify-content: flex-start;
  22821. padding: 0 10px;
  22822. width: 100%;
  22823. box-sizing: border-box;
  22824. }
  22825. .navTaskname {
  22826. white-space: nowrap;
  22827. text-overflow: ellipsis;
  22828. overflow: hidden;
  22829. word-break: break-all;
  22830. padding-left: 5px;
  22831. }
  22832. .openTaskActive {
  22833. /* background-color: #e0eafb !important;
  22834. color: #0061ff; */
  22835. color:#fff;
  22836. background: rgb(55, 129, 252) !important;
  22837. }
  22838. .iframeName {
  22839. margin: 5px 0;
  22840. border-left: 4px solid #41c4a4;
  22841. padding-left: 4px;
  22842. }
  22843. .toolTitle {
  22844. margin: 0px 0px 20px;
  22845. font-size: 20px;
  22846. font-weight: 500;
  22847. border-left: 4px solid #41c4a4;
  22848. padding-left: 4px;
  22849. }
  22850. .cru_selectBox {
  22851. overflow: auto;
  22852. width: 95%;
  22853. margin: 17px auto 0;
  22854. height: calc(100% - 40px - 21px - 20px - 17px);
  22855. background: #fff;
  22856. border-radius: 8px;
  22857. }
  22858. .cru_selectBox::-webkit-scrollbar,
  22859. .study_top::-webkit-scrollbar,
  22860. .textContent::-webkit-scrollbar {
  22861. /*滚动条整体样式*/
  22862. width: 6px;
  22863. /*高宽分别对应横竖滚动条的尺寸*/
  22864. height: 6px;
  22865. }
  22866. /*定义滚动条轨道 内阴影+圆角*/
  22867. .cru_selectBox::-webkit-scrollbar-track,
  22868. .study_top::-webkit-scrollbar-track,
  22869. .textContent::-webkit-scrollbar {
  22870. border-radius: 10px;
  22871. background-color: #b8bdc9;
  22872. }
  22873. /*定义滑块 内阴影+圆角*/
  22874. .cru_selectBox::-webkit-scrollbar-thumb,
  22875. .study_top::-webkit-scrollbar-thumb,
  22876. .textContent::-webkit-scrollbar-thumb {
  22877. border-radius: 10px;
  22878. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22879. background-color: #2c5ab3;
  22880. }
  22881. .vedioBox {
  22882. border-radius: 0 0 20px 20px;
  22883. background: #fff;
  22884. overflow: auto;
  22885. }
  22886. .taskBox {
  22887. width: 98%;
  22888. background: #f0f4fa;
  22889. margin: 10px auto;
  22890. padding: 0 10px;
  22891. border-radius: 4px;
  22892. box-sizing: border-box;
  22893. }
  22894. .vedioTaskBox {
  22895. width: 100%;
  22896. display: flex;
  22897. flex-direction: row;
  22898. flex-wrap: nowrap;
  22899. align-items: flex-start;
  22900. position: relative;
  22901. }
  22902. .toolBox {
  22903. margin: 15px 0 0 25px;
  22904. display: flex;
  22905. position: relative;
  22906. padding: 18px 20px;
  22907. border-top-left-radius: 5px;
  22908. border-top-right-radius: 5px;
  22909. width: 90%;
  22910. }
  22911. .btnAll {
  22912. position: absolute;
  22913. right: 0;
  22914. display: flex;
  22915. flex-direction: row;
  22916. flex-wrap: nowrap;
  22917. align-items: center;
  22918. }
  22919. .btnLeft,
  22920. .btnRight {
  22921. display: flex;
  22922. flex-direction: row;
  22923. flex-wrap: nowrap;
  22924. align-items: center;
  22925. padding: 5px 0;
  22926. }
  22927. .btnLeft {
  22928. border-right: 1px solid #cad1dc;
  22929. }
  22930. .btnLeft > .custom-tooltip {
  22931. background: #3681fc;
  22932. color: #fff;
  22933. }
  22934. .last:hover {
  22935. background: #3383fa !important;
  22936. color: #fff;
  22937. border: 1px solid #3383fa !important;
  22938. }
  22939. .last,
  22940. .returnBtn1 {
  22941. width: 90px;
  22942. height: 36px;
  22943. background: #ffffff;
  22944. border-radius: 4px;
  22945. border: 1px solid #0061ff;
  22946. color: #0061ff;
  22947. cursor: pointer;
  22948. display: flex;
  22949. flex-direction: row;
  22950. flex-wrap: nowrap;
  22951. align-items: center;
  22952. justify-content: center;
  22953. margin-left: 12px;
  22954. }
  22955. .returnBtn1 {
  22956. background: #f0f4fa;
  22957. border-radius: 4px;
  22958. border: 1px solid #cad1dc;
  22959. margin: 0 12px;
  22960. }
  22961. .lastImg {
  22962. min-width: 15px;
  22963. width: 15px;
  22964. height: 15px;
  22965. display: flex;
  22966. }
  22967. .lastText {
  22968. padding: 0 5px 0 5px;
  22969. box-sizing: border-box;
  22970. font-size: 14px;
  22971. }
  22972. .lastImg > img {
  22973. width: 100%;
  22974. height: 100%;
  22975. }
  22976. /* .vedioTimeBox {
  22977. display: flex;
  22978. flex-direction: row;
  22979. align-items: center;
  22980. flex-wrap: nowrap;
  22981. position: relative;
  22982. } */
  22983. .navBox {
  22984. background: #fff;
  22985. height: calc(100% - 40px);
  22986. overflow-y: auto;
  22987. overflow-x: hidden;
  22988. }
  22989. .worksBox {
  22990. margin: 0 0 10px 25px;
  22991. border-bottom: 1px solid #eeeeee;
  22992. padding: 18px 20px;
  22993. border-radius: 4px;
  22994. width: 90%;
  22995. }
  22996. .worksBTitle {
  22997. font-size: 20px;
  22998. padding-bottom: 15px;
  22999. border-bottom: 1px solid #eeeeee;
  23000. display: flex;
  23001. align-items: center;
  23002. }
  23003. .greenBox {
  23004. width: 5px;
  23005. height: 30px;
  23006. background: #63b6fa;
  23007. margin-right: 5px;
  23008. }
  23009. .worksDetailBox {
  23010. display: flex;
  23011. width: 100%;
  23012. flex-direction: row;
  23013. flex-wrap: wrap;
  23014. align-items: flex-end;
  23015. justify-content: flex-start;
  23016. padding: 15px 5px;
  23017. box-sizing: border-box;
  23018. }
  23019. .works {
  23020. display: flex;
  23021. flex-direction: column;
  23022. flex-wrap: nowrap;
  23023. align-items: flex-start;
  23024. justify-content: flex-start;
  23025. align-content: center;
  23026. max-width: 240px;
  23027. width: calc(100% / 3 - 10px);
  23028. height: auto;
  23029. margin-right: 10px;
  23030. margin-bottom: 10px;
  23031. overflow: hidden;
  23032. height: 140px;
  23033. box-shadow: 0 0 6px 1px #dfdada;
  23034. border-radius: 15px;
  23035. }
  23036. .workImg {
  23037. width: 100%;
  23038. /* height: calc(100% - 40px); */
  23039. height: 105px;
  23040. position: relative;
  23041. }
  23042. .workImg > img {
  23043. width: 100%;
  23044. height: 100%;
  23045. object-fit: contain;
  23046. cursor: pointer;
  23047. }
  23048. .worksName {
  23049. height: 40px;
  23050. line-height: 40px;
  23051. display: flex;
  23052. width: 100%;
  23053. flex-direction: row;
  23054. flex-wrap: nowrap;
  23055. justify-content: space-between;
  23056. align-items: center;
  23057. margin: 0 0 0 10px;
  23058. }
  23059. .worksName > div:nth-child(1) {
  23060. width: 110px;
  23061. white-space: nowrap;
  23062. overflow: hidden;
  23063. text-overflow: ellipsis;
  23064. }
  23065. .worksName > div:nth-child(2) {
  23066. color: #b7b4b5;
  23067. }
  23068. .noWorksS {
  23069. padding: 15px 0;
  23070. display: flex;
  23071. flex-direction: row;
  23072. flex-wrap: wrap;
  23073. align-items: center;
  23074. justify-content: flex-start;
  23075. }
  23076. .noWorksName,
  23077. .isWorksName,
  23078. .isWorksName2 {
  23079. background: #ddebf8;
  23080. color: #000;
  23081. width: 90px;
  23082. height: 25px;
  23083. text-align: center;
  23084. line-height: 25px;
  23085. border-radius: 4px;
  23086. margin: 10px 15px 10px 0;
  23087. white-space: nowrap;
  23088. overflow: hidden;
  23089. padding: 5px;
  23090. text-overflow: ellipsis;
  23091. cursor: pointer;
  23092. border: 1px solid #ddebf8;
  23093. }
  23094. .noWorksName {
  23095. background: #fff;
  23096. color: #0061ff;
  23097. border: 1px solid #0061ff;
  23098. }
  23099. .noWorksName > span{
  23100. max-width: 100%;
  23101. display: block;
  23102. overflow: hidden;
  23103. text-overflow: ellipsis;
  23104. white-space: nowrap;
  23105. }
  23106. .isWorksName2 {
  23107. width: 100px;
  23108. height: 40px;
  23109. line-height: 40px;
  23110. position: relative;
  23111. background: #dae6f9;
  23112. }
  23113. .isWorksName {
  23114. background: #e7ebf1 !important;
  23115. width: 100px;
  23116. height: 40px;
  23117. line-height: 40px;
  23118. position: relative;
  23119. color: #acb4bf;
  23120. border: 1px solid #cad1dc !important;
  23121. }
  23122. .isSelectName,
  23123. .noWorksName:hover {
  23124. background: #3383fa !important;
  23125. color: #fff !important;
  23126. border: 1px solid #3383fa !important;
  23127. }
  23128. .title {
  23129. background: #1e5cc9;
  23130. /* width: 98%; */
  23131. height: 45px;
  23132. color: #fff;
  23133. line-height: 45px;
  23134. padding-left: 20px;
  23135. box-sizing: border-box;
  23136. }
  23137. .textBox {
  23138. font-size: 20px;
  23139. width: 90%;
  23140. display: flex;
  23141. flex-direction: column;
  23142. align-items: center;
  23143. margin: 20px auto 0;
  23144. max-height: calc(100% - 75px);
  23145. overflow: auto;
  23146. }
  23147. .textContent {
  23148. font-size: 18px;
  23149. width: 95%;
  23150. max-width: 95%;
  23151. }
  23152. .answerBg {
  23153. background: url("../assets/icon/answerBgNew.png") no-repeat;
  23154. background-size: 100% 100%;
  23155. width: 100%;
  23156. height: 100%;
  23157. color: #fff;
  23158. text-align: center;
  23159. display: flex;
  23160. flex-direction: column;
  23161. flex-wrap: nowrap;
  23162. align-items: center;
  23163. position: relative;
  23164. justify-content: center;
  23165. }
  23166. .answerBg > div:nth-child(1) {
  23167. /* font-size: 22px;
  23168. padding: 25px 0 10px; */
  23169. }
  23170. .answerContent {
  23171. width: 215px;
  23172. max-height: 60px;
  23173. word-break: break-all;
  23174. text-align: center;
  23175. /* white-space: nowrap; */
  23176. overflow: hidden;
  23177. text-overflow: ellipsis;
  23178. /* padding: 23px 0 0; */
  23179. -webkit-line-clamp: 3;
  23180. -webkit-box-orient: vertical;
  23181. display: -webkit-box;
  23182. font-size: 15px;
  23183. cursor: pointer;
  23184. }
  23185. .elist_input_box {
  23186. display: flex;
  23187. align-items: flex-start;
  23188. flex-wrap: nowrap;
  23189. padding: 10px 0 15px 30px;
  23190. flex-direction: column;
  23191. }
  23192. .elist_input {
  23193. /* width: 40%; */
  23194. width: 45%;
  23195. margin: 20px;
  23196. }
  23197. .elist_input .elist_input_box input {
  23198. font: inherit;
  23199. color: currentColor;
  23200. width: 200px;
  23201. padding: 8px 14px;
  23202. display: block;
  23203. min-width: 0;
  23204. outline: none;
  23205. border: 1px solid rgba(0, 0, 0, 0.23);
  23206. border-radius: 4px;
  23207. box-sizing: border-box;
  23208. background: #fff;
  23209. margin: 0 20px 0 0;
  23210. }
  23211. .elist_input .elist_input_box span {
  23212. height: 36px;
  23213. line-height: 36px;
  23214. color: rgb(82, 82, 82);
  23215. }
  23216. .elist_input .elist_input_box .remove {
  23217. height: 20px;
  23218. width: 20px;
  23219. background-size: 100% 100%;
  23220. background-position: unset;
  23221. margin-left: 5px;
  23222. }
  23223. .elist_input_box >>> .el-rate {
  23224. display: flex;
  23225. height: 36px;
  23226. align-items: center;
  23227. }
  23228. .elist_input_box .elist_inptu_text {
  23229. min-height: 50px;
  23230. /* width: 500px;
  23231. max-height: 150px; */
  23232. width: 100%;
  23233. line-height: 50px;
  23234. color: rgb(82, 82, 82);
  23235. overflow: auto;
  23236. text-indent: 5px;
  23237. background: #f7f6f9;
  23238. border-radius: 10px;
  23239. }
  23240. .elist_input_box .elist_inptu_text input {
  23241. width: 500px;
  23242. }
  23243. .elist_input_box >>> .el-rate__icon {
  23244. font-size: 24px;
  23245. }
  23246. .isClick {
  23247. background: #4d9def;
  23248. }
  23249. .bzBox {
  23250. display: flex;
  23251. flex-direction: row;
  23252. align-items: center;
  23253. }
  23254. .bzBox .yCss {
  23255. width: 7px;
  23256. height: 7px;
  23257. background: #fff;
  23258. margin: 0 16px 0 6px;
  23259. border-radius: 50%;
  23260. border: 5px solid #3681fc;
  23261. z-index: 99;
  23262. }
  23263. .bzBox > div:nth-child(2) {
  23264. font-size: 18px;
  23265. font-weight: bold;
  23266. color: #0e1e33;
  23267. }
  23268. .navTitile {
  23269. padding: 0 0px 0 15px;
  23270. font-size: 16px;
  23271. font-weight: bold;
  23272. color: #0e1e33;
  23273. height: 40px;
  23274. line-height: 40px;
  23275. }
  23276. .isTypeOne {
  23277. width: 240px;
  23278. height: 170px;
  23279. /* border: 1px solid #f8f8f8; */
  23280. border-radius: 10px;
  23281. box-shadow: 0 0 6px 1px #dfdada;
  23282. }
  23283. .e_add_top {
  23284. display: flex;
  23285. justify-content: space-between;
  23286. padding: 10px 20px;
  23287. border-radius: 3px;
  23288. background: #fff;
  23289. }
  23290. .e_add_title2 {
  23291. display: flex;
  23292. align-items: center;
  23293. }
  23294. .e_add_title2 span {
  23295. width: 40px;
  23296. }
  23297. .e_add_title {
  23298. display: flex;
  23299. align-items: center;
  23300. color: #b8b8b8;
  23301. font-size: 18px;
  23302. position: relative;
  23303. height: 40px;
  23304. width: 100%;
  23305. }
  23306. .e_add_title span {
  23307. margin-right: 10px;
  23308. }
  23309. .e_add_title .el_input {
  23310. width: 300px;
  23311. }
  23312. .e_add_title >>> .el-input__inner {
  23313. width: 400px;
  23314. }
  23315. .e_add_btn {
  23316. }
  23317. .e_add_content {
  23318. display: flex;
  23319. width: 100%;
  23320. max-width: 650px;
  23321. height: 550px;
  23322. }
  23323. .e_add_list {
  23324. background: #fff;
  23325. height: 500px;
  23326. width: 210px;
  23327. position: relative;
  23328. margin: 15px 5px 0 0;
  23329. flex-shrink: 0;
  23330. display: flex;
  23331. flex-direction: column;
  23332. }
  23333. .e_add_list_title {
  23334. font-size: 20px;
  23335. width: 100%;
  23336. box-sizing: border-box;
  23337. padding: 15px 40px;
  23338. text-align: center;
  23339. border-bottom: 1px solid #eaeaea;
  23340. position: relative;
  23341. display: flex;
  23342. align-items: center;
  23343. justify-content: center;
  23344. height: 57px;
  23345. background: #f6f6f6;
  23346. }
  23347. .e_add_list_title span {
  23348. overflow: hidden;
  23349. white-space: nowrap;
  23350. text-overflow: ellipsis;
  23351. }
  23352. .e_add_list_title img {
  23353. position: absolute;
  23354. right: 15px;
  23355. width: 25px;
  23356. cursor: pointer;
  23357. top: 50%;
  23358. transform: translateY(-50%);
  23359. }
  23360. .e_add_list_body {
  23361. height: calc(100% - 187px);
  23362. overflow: auto;
  23363. }
  23364. .e_add_list_child {
  23365. width: 100%;
  23366. display: flex;
  23367. align-items: center;
  23368. justify-content: center;
  23369. position: relative;
  23370. box-sizing: border-box;
  23371. padding: 15px 40px;
  23372. text-align: center;
  23373. }
  23374. .e_add_list_child span {
  23375. overflow: hidden;
  23376. white-space: nowrap;
  23377. text-overflow: ellipsis;
  23378. cursor: pointer;
  23379. }
  23380. .e_add_list_child img {
  23381. position: absolute;
  23382. right: 10px;
  23383. width: 21px;
  23384. cursor: pointer;
  23385. top: 50%;
  23386. transform: translateY(-50%);
  23387. }
  23388. .e_add_list_child + .e_add_list_child {
  23389. border-top: 1px solid #eaeaea;
  23390. }
  23391. .e_add_list_child .active {
  23392. color: #409eff;
  23393. }
  23394. .e_add_list_btn {
  23395. position: absolute;
  23396. bottom: 0;
  23397. height: 50px;
  23398. background: rgb(120, 120, 254);
  23399. width: 100%;
  23400. color: #fff;
  23401. font-size: 16px;
  23402. text-align: center;
  23403. line-height: 50px;
  23404. cursor: pointer;
  23405. }
  23406. .e_add_list_detail {
  23407. position: absolute;
  23408. bottom: 0;
  23409. height: 130px;
  23410. background: rgb(120, 120, 254);
  23411. width: 100%;
  23412. color: #fff;
  23413. font-size: 16px;
  23414. display: flex;
  23415. align-items: center;
  23416. justify-content: center;
  23417. }
  23418. .e_add_list_detail textarea {
  23419. height: 90%;
  23420. width: 95%;
  23421. border: none;
  23422. resize: none;
  23423. outline: none;
  23424. padding: 5px;
  23425. box-sizing: border-box;
  23426. }
  23427. .e_add_list_pbox {
  23428. width: 100%;
  23429. max-width: 650px;
  23430. /* height: 600px; */
  23431. }
  23432. .e_add_list_pbox_title {
  23433. height: 50px;
  23434. background: #fff;
  23435. display: flex;
  23436. align-items: center;
  23437. width: 100%;
  23438. box-sizing: border-box;
  23439. padding: 0 20px;
  23440. }
  23441. .type_title {
  23442. font-size: 18px;
  23443. font-weight: 700;
  23444. }
  23445. .type_content {
  23446. font-size: 16px;
  23447. /* margin-left: 30px; */
  23448. }
  23449. .type_content span + span {
  23450. margin-left: 20px;
  23451. }
  23452. .type_content span {
  23453. cursor: pointer;
  23454. padding-bottom: 5px;
  23455. box-sizing: border-box;
  23456. }
  23457. .type_content .active {
  23458. color: #409eff;
  23459. border-bottom: 2px solid #409eff;
  23460. }
  23461. .e_add_list_pbox_content {
  23462. height: calc(100% - 50px);
  23463. display: flex;
  23464. align-items: center;
  23465. width: 100%;
  23466. background: #fff;
  23467. }
  23468. .evaCss {
  23469. display: flex;
  23470. flex-direction: row;
  23471. flex-wrap: nowrap;
  23472. align-items: flex-start;
  23473. padding: 0 0 20px;
  23474. }
  23475. .cru_line {
  23476. position: absolute;
  23477. bottom: 0px;
  23478. transition: all 0.5s;
  23479. left: 0px;
  23480. width: 125px;
  23481. margin-left: -25px;
  23482. }
  23483. .isNoMessage {
  23484. width: 20%;
  23485. margin: 25% auto 0;
  23486. }
  23487. .isNoMessage > img {
  23488. width: 100%;
  23489. height: 100%;
  23490. }
  23491. .fullStyle >>> .el-dialog__body {
  23492. height: 100% !important;
  23493. }
  23494. .fullStyle >>> .el-dialog,
  23495. .fullStyle {
  23496. width: 100% !important;
  23497. max-width: 100% !important;
  23498. height: 100% !important;
  23499. margin: 0 !important;
  23500. }
  23501. .full_diy >>> .el-dialog {
  23502. margin: 0 !important;
  23503. height: 100%;
  23504. padding: 4px;
  23505. }
  23506. .full_diy >>> .el-dialog__body {
  23507. height: calc(100% - 100px);
  23508. }
  23509. .full_diy2 >>> .el-dialog__body {
  23510. height: calc(100% - 50px);
  23511. padding: 0;
  23512. }
  23513. .switchCss {
  23514. /* width: 100%; */
  23515. display: flex;
  23516. flex-direction: row;
  23517. flex-wrap: nowrap;
  23518. align-items: center;
  23519. /* justify-content: center; */
  23520. }
  23521. .isClickNav {
  23522. /* color: #499eef; */
  23523. color: #000;
  23524. }
  23525. .commentImg {
  23526. width: 25px;
  23527. height: 25px;
  23528. cursor: pointer;
  23529. }
  23530. .commentImg > img {
  23531. width: 100%;
  23532. height: 100%;
  23533. }
  23534. .comment {
  23535. background: #f9f9f9;
  23536. border-radius: 0 0 4px 4px;
  23537. display: flex;
  23538. flex-direction: row;
  23539. flex-wrap: nowrap;
  23540. align-items: center;
  23541. justify-content: flex-end;
  23542. height: 35px;
  23543. }
  23544. .commentList {
  23545. display: flex;
  23546. flex-direction: row;
  23547. flex-wrap: nowrap;
  23548. align-items: center;
  23549. justify-content: center;
  23550. align-content: center;
  23551. /* margin-left: 15px; */
  23552. /* margin-left: 8px; */
  23553. }
  23554. .scoreImg {
  23555. width: 17px;
  23556. height: 17px;
  23557. }
  23558. .studentDetail {
  23559. display: flex;
  23560. flex-direction: row;
  23561. flex-wrap: nowrap;
  23562. /* align-items: center; */
  23563. align-items: flex-start;
  23564. }
  23565. .tx {
  23566. width: 50px;
  23567. }
  23568. .tx > img {
  23569. width: 100%;
  23570. height: 100%;
  23571. }
  23572. .nameAndTime {
  23573. display: flex;
  23574. flex-direction: column;
  23575. flex-wrap: nowrap;
  23576. align-items: flex-start;
  23577. margin-left: 10px;
  23578. }
  23579. .worksAnswer {
  23580. color: #4078dd;
  23581. margin: 10px 0;
  23582. font-size: 16px;
  23583. position: relative;
  23584. }
  23585. .worksAnswer > img {
  23586. width: 500px;
  23587. height: 300px;
  23588. object-fit: contain;
  23589. margin: 0 auto;
  23590. display: block;
  23591. }
  23592. .commentTop {
  23593. border-bottom: 1px solid #eaeaea;
  23594. padding-bottom: 10px;
  23595. }
  23596. .commentBox {
  23597. padding-top: 15px;
  23598. }
  23599. .pl {
  23600. font-size: 18px;
  23601. }
  23602. .plPerson {
  23603. width: 100%;
  23604. }
  23605. .plName {
  23606. display: flex;
  23607. flex-direction: row;
  23608. flex-wrap: nowrap;
  23609. align-items: baseline;
  23610. color: #78787a;
  23611. width: 100%;
  23612. }
  23613. .deleteComment {
  23614. cursor: pointer;
  23615. margin-left: auto;
  23616. color: #237ade;
  23617. }
  23618. .plContent {
  23619. margin-top: 5px;
  23620. }
  23621. .evalCss {
  23622. background: #fff;
  23623. font-size: 18px;
  23624. }
  23625. .nav {
  23626. color: #9d9d9d;
  23627. padding: 5px 0 15px 20px;
  23628. }
  23629. .middleBox {
  23630. padding: 5px 0 15px 20px;
  23631. }
  23632. .pfBox {
  23633. padding-bottom: 30px;
  23634. }
  23635. .nameAndrate {
  23636. display: flex;
  23637. flex-direction: row;
  23638. flex-wrap: nowrap;
  23639. align-items: center;
  23640. padding-bottom: 10px;
  23641. height: 30px;
  23642. line-height: 30px;
  23643. }
  23644. .nameAndrate > div {
  23645. margin-left: 10px;
  23646. color: #000;
  23647. height: 30px;
  23648. }
  23649. .nameAndrate >>> .el-rate__icon {
  23650. font-size: 28px !important;
  23651. }
  23652. .pfBox > div:nth-child(2) {
  23653. background: #f7f6f9;
  23654. width: 400px;
  23655. min-height: 45px;
  23656. border-radius: 10px;
  23657. font-size: 16px;
  23658. display: flex;
  23659. flex-wrap: wrap;
  23660. align-items: center;
  23661. padding: 10px 20px;
  23662. box-sizing: border-box;
  23663. color: #000;
  23664. }
  23665. .bz {
  23666. display: flex;
  23667. flex-direction: row;
  23668. flex-wrap: nowrap;
  23669. align-items: flex-start;
  23670. }
  23671. .bz > div {
  23672. padding: 0 10px;
  23673. }
  23674. .select_box2_title {
  23675. background: #fff;
  23676. border-radius: 5px;
  23677. padding: 15px 10px;
  23678. box-sizing: border-box;
  23679. margin-bottom: 10px;
  23680. display: flex;
  23681. flex-direction: row;
  23682. flex-wrap: nowrap;
  23683. align-items: center;
  23684. }
  23685. .select_box2_title > div:nth-child(2) {
  23686. margin-left: 10px;
  23687. color: #c4c4c4;
  23688. }
  23689. .select_box2_box {
  23690. display: flex;
  23691. height: 500px;
  23692. }
  23693. .select_box2_img {
  23694. width: calc(100% - 310px);
  23695. height: 100%;
  23696. overflow: auto;
  23697. background: #fff;
  23698. border-radius: 5px;
  23699. }
  23700. .select_box2_img img {
  23701. width: 100%;
  23702. }
  23703. .select_box2_answer {
  23704. background: #fff;
  23705. margin-left: 10px;
  23706. border-radius: 5px;
  23707. width: 300px;
  23708. overflow: auto;
  23709. height: 90%;
  23710. display: flex;
  23711. flex-direction: column;
  23712. align-items: flex-start;
  23713. padding-top: 10px;
  23714. box-sizing: border-box;
  23715. position: relative;
  23716. }
  23717. .select_answer_title {
  23718. padding: 0 0 15px 20px;
  23719. color: #c4c4c4;
  23720. }
  23721. .select_box2_answer_box {
  23722. margin: 0 0 10px 20px;
  23723. width: 85%;
  23724. display: flex;
  23725. flex-direction: row;
  23726. flex-wrap: nowrap;
  23727. align-items: center;
  23728. }
  23729. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23730. color: #000;
  23731. }
  23732. .upAnswerCss {
  23733. position: absolute;
  23734. bottom: 15px;
  23735. right: 15px;
  23736. }
  23737. .upAnswerCss >>> .el-button {
  23738. width: 95px;
  23739. height: 35px;
  23740. line-height: 35px;
  23741. padding: 0;
  23742. }
  23743. .rightWidthCss {
  23744. width: 60%;
  23745. display: flex;
  23746. flex-direction: row;
  23747. align-items: flex-start;
  23748. }
  23749. .rightAnswer {
  23750. display: flex;
  23751. flex-direction: row;
  23752. flex-wrap: nowrap;
  23753. align-items: center;
  23754. color: red;
  23755. margin-bottom: 31px;
  23756. }
  23757. .rightAnswerCss {
  23758. display: flex;
  23759. flex-direction: column;
  23760. flex-wrap: nowrap;
  23761. padding-top: 60px;
  23762. }
  23763. .blueCss {
  23764. color: #767de1;
  23765. margin-left: 10px;
  23766. }
  23767. .redCss {
  23768. color: red;
  23769. }
  23770. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23771. color: rgb(0 123 255) !important;
  23772. }
  23773. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23774. color: rgb(0 123 255) !important;
  23775. }
  23776. .zuoyeYulan {
  23777. padding-top: 0;
  23778. font-size: 18px;
  23779. display: flex;
  23780. align-items: flex-end;
  23781. }
  23782. .buttonA {
  23783. margin-left: 10px;
  23784. padding: 0;
  23785. }
  23786. .displayBox {
  23787. margin-bottom: 10px;
  23788. display: block;
  23789. border-bottom: 3px solid #eee;
  23790. display: flex;
  23791. align-items: center;
  23792. }
  23793. .easy_comment {
  23794. width: calc(100% - 90px);
  23795. margin-left: 10px;
  23796. display: flex;
  23797. flex-wrap: wrap;
  23798. }
  23799. .easy_comment > div {
  23800. border: 1px solid #4a4a4a;
  23801. color: #666;
  23802. border-radius: 15px;
  23803. padding: 5px 10px;
  23804. font-size: 16px;
  23805. margin-bottom: 10px;
  23806. margin-right: 5px;
  23807. cursor: pointer;
  23808. }
  23809. .easy_comment div:hover {
  23810. border: 1px solid #f7ba2a;
  23811. color: #c69217;
  23812. }
  23813. .xuan_right_box {
  23814. padding: 10px 0;
  23815. background: #f0f4fa;
  23816. margin: 0 15px 0 25px;
  23817. border-bottom-left-radius: 5px;
  23818. border-bottom-right-radius: 5px;
  23819. width: 91.5%;
  23820. }
  23821. .tool_right_box {
  23822. display: flex;
  23823. align-items: center;
  23824. }
  23825. .tool_right_box >>> .katex {
  23826. font-size: 16px;
  23827. }
  23828. .tool_right_box + .tool_right_box {
  23829. margin-top: 10px;
  23830. }
  23831. .right_box_xuan {
  23832. border-radius: 5px;
  23833. padding: 5px;
  23834. margin-left: 10px;
  23835. min-width: 85px;
  23836. background: #fff;
  23837. color: #0061ff;
  23838. border: 1px solid #0061ff;
  23839. font-size: 14px;
  23840. }
  23841. .pButton:hover {
  23842. opacity: 1 !important;
  23843. }
  23844. .pButton {
  23845. position: fixed;
  23846. text-align: center;
  23847. cursor: pointer;
  23848. z-index: 999;
  23849. right: 20px;
  23850. top: 110px;
  23851. width: 50px;
  23852. height: 50px;
  23853. display: flex;
  23854. align-items: center;
  23855. justify-content: center;
  23856. border-radius: 5px;
  23857. }
  23858. .pzClass {
  23859. width: calc(100% - 340px);
  23860. }
  23861. .newDialogCss {
  23862. /* position: fixed;
  23863. right: 5%;
  23864. top: 50%;
  23865. width: 340px;
  23866. transform: translateY(-50%);
  23867. height: 60%;
  23868. box-shadow: 0px 0 8px 0px #555555;
  23869. border-radius: 15px;
  23870. z-index: 999; */
  23871. position: fixed;
  23872. right: 20px;
  23873. top: 101px;
  23874. width: 330px;
  23875. height: calc(100% - 80px);
  23876. z-index: 999;
  23877. background: #fff;
  23878. border-top-right-radius: 0px;
  23879. border-bottom-right-radius: 0px;
  23880. overflow: hidden;
  23881. }
  23882. .newDialogCss>.scoreList{
  23883. width:100%;
  23884. height:100%;
  23885. box-sizing:border-box;
  23886. padding:10px 15px;
  23887. overflow:auto;
  23888. padding-bottom:80px;
  23889. }
  23890. .pzTop {
  23891. color: #fff;
  23892. background: #000;
  23893. display: flex;
  23894. flex-direction: row;
  23895. flex-wrap: nowrap;
  23896. align-items: center;
  23897. justify-content: space-between;
  23898. height: 40px;
  23899. border-radius: 15px 15px 0 0;
  23900. user-select: none;
  23901. }
  23902. .pzTop2 .checkbox {
  23903. display: flex;
  23904. align-items: center;
  23905. padding: 5px 10px;
  23906. flex: 0 0 auto;
  23907. font-weight: bold;
  23908. border-bottom: 1px solid #eee;
  23909. justify-content: space-between;
  23910. }
  23911. .checkbox>.cb-tabList{
  23912. display:flex;
  23913. align-items:center;
  23914. }
  23915. .cb-tabList>div{
  23916. margin-right:20px;
  23917. font-weight:400;
  23918. cursor:pointer;
  23919. }
  23920. .cb-tabList>.cb-tabItem{
  23921. color:#1684FC;
  23922. position:relative;
  23923. }
  23924. .cb-tabItem::after{
  23925. content:"";
  23926. width:100%;
  23927. height:2px;
  23928. background:#1684FC;
  23929. position:absolute;
  23930. bottom:-5px;
  23931. left:0
  23932. }
  23933. .pzTop2 .check {
  23934. text-align: center;
  23935. cursor: pointer;
  23936. box-sizing: border-box;
  23937. display: flex;
  23938. }
  23939. .pzTop2 img {
  23940. width: 25px;
  23941. cursor: pointer;
  23942. }
  23943. .pzTop > div:nth-child(1) {
  23944. padding-left: 10px;
  23945. }
  23946. .pzTop > div:nth-child(2) {
  23947. width: 15px;
  23948. height: 15px;
  23949. padding-right: 10px;
  23950. cursor: pointer;
  23951. }
  23952. .pzTop > div:nth-child(2) > img {
  23953. width: 100%;
  23954. height: 100%;
  23955. }
  23956. .pzBox,
  23957. .noPzBox {
  23958. height: calc(100% - 60px);
  23959. /* background: #ededed; */
  23960. background: #fff;
  23961. /* border-radius: 0 0 15px 15px; */
  23962. }
  23963. .noPzBox {
  23964. display: flex;
  23965. flex-direction: column;
  23966. flex-wrap: nowrap;
  23967. justify-content: center;
  23968. align-items: center;
  23969. }
  23970. .pzList {
  23971. background: #f7f7f7;
  23972. width: 90%;
  23973. margin: 0 auto 15px;
  23974. border-radius: 5px;
  23975. }
  23976. .pzNavTop {
  23977. display: flex;
  23978. flex-direction: row;
  23979. flex-wrap: nowrap;
  23980. padding: 10px 10px 0 10px;
  23981. align-items: center;
  23982. }
  23983. .pzDelete {
  23984. cursor: pointer;
  23985. margin-left: auto;
  23986. font-size: 14px;
  23987. color: #afafaf;
  23988. }
  23989. .pzNavTop > div:nth-child(1) {
  23990. background: #3760af;
  23991. width: 35px;
  23992. height: 35px;
  23993. color: #fff;
  23994. text-align: center;
  23995. line-height: 35px;
  23996. border-radius: 50%;
  23997. font-size: 14px;
  23998. }
  23999. .pzNavTop > div:nth-child(2) {
  24000. font-size: 18px;
  24001. color: #959595;
  24002. margin-left: 5px;
  24003. }
  24004. .pzContent {
  24005. padding: 10px;
  24006. word-break: break-word;
  24007. }
  24008. .pzContent audio {
  24009. width: 100%;
  24010. }
  24011. .pzContent audio::-webkit-media-controls-panel {
  24012. background: #fff;
  24013. }
  24014. .pzContent >>> img {
  24015. max-width: 100%;
  24016. }
  24017. .pzListBox {
  24018. padding-top: 15px;
  24019. height: calc(100% - 110px);
  24020. overflow: auto;
  24021. }
  24022. .addPzButton {
  24023. position: relative;
  24024. margin-top: 3px;
  24025. width: 100%;
  24026. }
  24027. .addPzButton .img1 {
  24028. position: absolute;
  24029. top: 50%;
  24030. right: 25px;
  24031. transform: translateY(-50%);
  24032. height: 100%;
  24033. display: flex;
  24034. align-items: center;
  24035. }
  24036. .addPzButton .img1 div {
  24037. display: flex;
  24038. }
  24039. .addPzButton .img1 div img {
  24040. width: 28px;
  24041. margin-left: 10px;
  24042. cursor: pointer;
  24043. }
  24044. .addPzButton .img1 div span {
  24045. font-size: 14px;
  24046. margin: 4px 0 0 3px;
  24047. color: #afafaf;
  24048. }
  24049. .addPz {
  24050. background: #4b79ce;
  24051. width: 100px;
  24052. color: #fff;
  24053. font-size: 12px;
  24054. height: 30px;
  24055. margin: 0 auto;
  24056. text-align: center;
  24057. line-height: 30px;
  24058. border-radius: 10px;
  24059. cursor: pointer;
  24060. }
  24061. .addDialogCss {
  24062. position: fixed;
  24063. width: 600px;
  24064. height: 70%;
  24065. min-height: 450px;
  24066. box-shadow: 0px 0 8px 0px #555555;
  24067. border-radius: 15px;
  24068. z-index: 999;
  24069. left: 50%;
  24070. top: 50%;
  24071. margin: -18% 0 0 -300px;
  24072. }
  24073. .teacherPz {
  24074. display: flex;
  24075. flex-direction: row;
  24076. align-items: center;
  24077. flex-wrap: nowrap;
  24078. }
  24079. .teacherPzImg {
  24080. width: 30px;
  24081. height: 30px;
  24082. }
  24083. .teacherPzImg > img {
  24084. width: 100%;
  24085. height: 100%;
  24086. }
  24087. .addPzBox {
  24088. height: calc(100% - 40px);
  24089. background: #ededed;
  24090. border-bottom-left-radius: 15px;
  24091. border-bottom-right-radius: 15px;
  24092. }
  24093. .pzAudioClass {
  24094. margin: 15px 14px;
  24095. background: #fff;
  24096. height: 100%;
  24097. display: flex;
  24098. justify-content: center;
  24099. align-items: center;
  24100. }
  24101. .pzConText {
  24102. width: 95%;
  24103. height: 100%;
  24104. margin: 10px auto 0;
  24105. border: none;
  24106. background: #fff;
  24107. border-radius: 0px;
  24108. }
  24109. .pzConText >>> .text {
  24110. height: calc(100% - 82px);
  24111. }
  24112. .addTextCss {
  24113. background: #4b79ce;
  24114. width: 80px;
  24115. height: 30px;
  24116. text-align: center;
  24117. color: #fff;
  24118. line-height: 30px;
  24119. border-radius: 10px;
  24120. margin: 10px auto 0;
  24121. cursor: pointer;
  24122. }
  24123. .pzConText:focus-visible {
  24124. border: none !important;
  24125. }
  24126. .maxWidth {
  24127. width: 1000px;
  24128. }
  24129. .noPz {
  24130. width: 150px;
  24131. margin: 0 auto 20%;
  24132. }
  24133. .noPz > img {
  24134. width: 100%;
  24135. height: 100%;
  24136. }
  24137. .timeAndReply {
  24138. display: flex;
  24139. flex-direction: row;
  24140. flex-wrap: nowrap;
  24141. justify-content: space-between;
  24142. align-items: center;
  24143. font-size: 14px;
  24144. box-sizing: border-box;
  24145. padding: 0 10px 10px 0px;
  24146. }
  24147. .timeAndReply .time {
  24148. color: #bfbfbf;
  24149. padding: 0 0 0 10px;
  24150. box-sizing: border-box;
  24151. }
  24152. .timeAndReply > div:last-child {
  24153. cursor: pointer;
  24154. color: #777;
  24155. }
  24156. /* table 样式 */
  24157. .cont >>> table {
  24158. border-top: 1px solid #ccc;
  24159. border-left: 1px solid #ccc;
  24160. }
  24161. .cont >>> table td,
  24162. .cont >>> table th {
  24163. border-bottom: 1px solid #ccc;
  24164. border-right: 1px solid #ccc;
  24165. /* padding: 20px 5px; */
  24166. padding: 5px 10px;
  24167. max-width: 0px;
  24168. height: 30px;
  24169. vertical-align: baseline;
  24170. box-sizing: border-box;
  24171. }
  24172. .cont >>> table th {
  24173. border-bottom: 2px solid #ccc;
  24174. text-align: center;
  24175. }
  24176. /* blockquote 样式 */
  24177. .cont >>> blockquote {
  24178. display: block;
  24179. border-left: 8px solid #d0e5f2;
  24180. padding: 5px 10px;
  24181. margin: 10px 0;
  24182. line-height: 1.4;
  24183. font-size: 100%;
  24184. background-color: #f1f1f1;
  24185. }
  24186. /* code 样式 */
  24187. .cont >>> code {
  24188. display: inline-block;
  24189. /* *display: inline; */
  24190. zoom: 1;
  24191. background-color: #f1f1f1;
  24192. border-radius: 3px;
  24193. padding: 3px 5px;
  24194. margin: 0 3px;
  24195. }
  24196. .cont >>> pre code {
  24197. display: block;
  24198. }
  24199. /* ul ol 样式 */
  24200. .cont >>> ul,
  24201. ol {
  24202. margin: 10px 0 10px 20px;
  24203. }
  24204. .addPzCheck {
  24205. display: flex;
  24206. flex-direction: row;
  24207. flex-wrap: nowrap;
  24208. padding: 10px 15px 0;
  24209. }
  24210. .addPzCheck span {
  24211. cursor: pointer;
  24212. padding-bottom: 5px;
  24213. font-weight: bold;
  24214. }
  24215. .addPzCheck span + span {
  24216. margin-left: 10px;
  24217. }
  24218. .addPzCheck .isChooseActive {
  24219. color: #3e88f4;
  24220. border-bottom: 2px solid #2f80f3;
  24221. }
  24222. /* code 样式 */
  24223. .cont {
  24224. /* -webkit-user-modify: read-write; */
  24225. overflow-wrap: break-word;
  24226. -webkit-line-break: after-white-space;
  24227. word-break: break-word;
  24228. white-space: pre-line;
  24229. }
  24230. .scoreBox,
  24231. .scoreDetailBox {
  24232. display: flex;
  24233. align-items: center;
  24234. justify-content: flex-start;
  24235. margin-top: 20px;
  24236. font-size: 18px;
  24237. width: 100%;
  24238. }
  24239. .scoreBox .t,
  24240. .scoreDetailBox .t {
  24241. margin-right: 10px;
  24242. width: 100px;
  24243. text-align: right;
  24244. }
  24245. .scoreDetailBox {
  24246. align-items: flex-start;
  24247. }
  24248. .scoreDetailBox >>> .el-textarea {
  24249. width: calc(100% - 200px);
  24250. }
  24251. .scoreBox >>> .el-input {
  24252. width: 130px;
  24253. font-size: 38px;
  24254. }
  24255. .scoreBox >>> .el-input__inner {
  24256. height: 60px;
  24257. }
  24258. .answerScore {
  24259. position: absolute;
  24260. top: 10px;
  24261. right: 10px;
  24262. background: #0000008f;
  24263. border-radius: 5px;
  24264. padding: 3px 5px;
  24265. font-size: 14px;
  24266. color: #fff;
  24267. cursor: pointer;
  24268. }
  24269. .open_box .switch_box {
  24270. width: 100%;
  24271. margin: 0 auto;
  24272. display: flex;
  24273. justify-content: space-between;
  24274. }
  24275. .open_box .switch_box + .switch_box {
  24276. margin-top: 10px;
  24277. }
  24278. .deleteImg,.deleteImg1 {
  24279. width: 25px !important;
  24280. height: 25px !important;
  24281. cursor: pointer;
  24282. position: absolute;
  24283. top: 10px;
  24284. right: 10px;
  24285. }
  24286. .deleteImg2 {
  24287. width: 23px !important;
  24288. height: 23px !important;
  24289. top: 5px;
  24290. right: 5px;
  24291. }
  24292. .deleteImg1{
  24293. width: 23px !important;
  24294. height: 23px !important;
  24295. top: 5px !important;
  24296. right: 30px !important;
  24297. }
  24298. .rightW {
  24299. right: 40px;
  24300. }
  24301. .drawPBox {
  24302. display: flex;
  24303. flex-direction: column;
  24304. position: relative;
  24305. }
  24306. .drawPBox span {
  24307. font-size: 18px;
  24308. color: #606266;
  24309. padding-bottom: 10px;
  24310. margin: 10px 0;
  24311. border-bottom: 1px solid #eaeaea;
  24312. }
  24313. .drawPBox img {
  24314. width: 500px;
  24315. height: 300px;
  24316. object-fit: contain;
  24317. cursor: pointer;
  24318. margin: 0 auto;
  24319. }
  24320. .sentenBox {
  24321. background: #fff;
  24322. height: 450px;
  24323. overflow: auto;
  24324. background-image: url("../assets/icon/conSentences/stuBg.png");
  24325. background-position: 102%;
  24326. background-repeat: no-repeat;
  24327. background-size: 60%;
  24328. }
  24329. .addSen {
  24330. background: #409efe;
  24331. width: 90px;
  24332. color: #fff;
  24333. height: 35px;
  24334. text-align: center;
  24335. line-height: 35px;
  24336. border-radius: 5px;
  24337. float: right;
  24338. margin: 10px 20px 0 0;
  24339. cursor: pointer;
  24340. }
  24341. .sentenTop {
  24342. display: flex;
  24343. flex-direction: row;
  24344. flex-wrap: nowrap;
  24345. align-items: center;
  24346. padding: 55px 0 0 20px;
  24347. box-sizing: border-box;
  24348. }
  24349. .sentenTop > div:nth-child(2) {
  24350. width: 300px;
  24351. margin: 0 15px;
  24352. }
  24353. .sentenTop > div:nth-child(3) {
  24354. background: #409efe;
  24355. color: #fff;
  24356. width: 65px;
  24357. height: 35px;
  24358. text-align: center;
  24359. line-height: 35px;
  24360. border-radius: 5px;
  24361. cursor: pointer;
  24362. }
  24363. .cardList,
  24364. .cardList1 {
  24365. padding: 10px 0 10px 0;
  24366. display: flex;
  24367. flex-direction: row;
  24368. flex-wrap: wrap;
  24369. align-items: center;
  24370. box-sizing: border-box;
  24371. border-bottom: 1px solid #f4f4f4;
  24372. width: 98%;
  24373. margin: 0 auto;
  24374. min-width: 60%;
  24375. max-width: 85%;
  24376. }
  24377. .cardList1 {
  24378. padding: 10px 0 10px 10px !important;
  24379. margin: 0 !important;
  24380. }
  24381. .cardBox {
  24382. display: flex;
  24383. flex-direction: row;
  24384. flex-wrap: wrap;
  24385. align-items: center;
  24386. align-content: center;
  24387. }
  24388. .cardBox > div {
  24389. margin-bottom: 10px;
  24390. }
  24391. .isCard,
  24392. .isChooseCard,
  24393. .noCard,
  24394. .isCard1 {
  24395. min-width: 130px;
  24396. width: auto;
  24397. height: 60px;
  24398. text-align: center;
  24399. line-height: 60px;
  24400. font-size: 20px;
  24401. cursor: pointer;
  24402. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24403. background-size: cover;
  24404. transition: all 2s;
  24405. margin-right: 20px;
  24406. background-size: 100% 100%;
  24407. padding: 0 20px;
  24408. box-sizing: border-box;
  24409. }
  24410. .isCard > div,
  24411. .noCard > div,
  24412. .isCard1 > div {
  24413. white-space: nowrap;
  24414. overflow: hidden;
  24415. text-overflow: ellipsis;
  24416. width: 100%;
  24417. margin: 0 auto;
  24418. }
  24419. .noCard {
  24420. background-image: none;
  24421. }
  24422. .isCard1 {
  24423. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24424. }
  24425. .isChooseCard {
  24426. background-image: none;
  24427. border: 1px dashed #b9b9b9;
  24428. border-radius: 10px;
  24429. }
  24430. .card {
  24431. width: 130px;
  24432. height: 60px;
  24433. }
  24434. .card > img {
  24435. width: 100%;
  24436. height: 100%;
  24437. }
  24438. .rightCardBox {
  24439. margin: 10px 0 0 10px;
  24440. }
  24441. .rightCardBox > div:nth-child(1) {
  24442. margin-bottom: 10px;
  24443. }
  24444. .cardCss {
  24445. display: flex;
  24446. flex-direction: column;
  24447. flex-wrap: nowrap;
  24448. align-items: center;
  24449. border-bottom: 3px solid #b4c3d3;
  24450. padding: 0 0 5px 0;
  24451. margin-right: 10px;
  24452. }
  24453. .cardCss > div:nth-child(2) {
  24454. background: #5b7b9d;
  24455. color: #fff;
  24456. width: 20px;
  24457. height: 20px;
  24458. border-radius: 50%;
  24459. text-align: center;
  24460. line-height: 20px;
  24461. }
  24462. .isWrong {
  24463. display: flex;
  24464. flex-direction: row;
  24465. flex-wrap: nowrap;
  24466. align-content: center;
  24467. align-items: center;
  24468. }
  24469. .answerRight {
  24470. width: 25%;
  24471. }
  24472. .isTj {
  24473. display: flex;
  24474. flex-direction: row;
  24475. flex-wrap: nowrap;
  24476. align-items: center;
  24477. }
  24478. .isTj > div:nth-child(2) {
  24479. color: #727070;
  24480. margin-left: 10px;
  24481. }
  24482. .isTjImg {
  24483. width: 30px;
  24484. height: 30px;
  24485. }
  24486. .isTjImg > img {
  24487. width: 100%;
  24488. height: 100%;
  24489. }
  24490. .cardAnswerBox {
  24491. font-size: 18px;
  24492. width: 97%;
  24493. border: 5px;
  24494. padding: 0;
  24495. border-radius: 5px;
  24496. margin: 10px auto;
  24497. word-break: break-word;
  24498. }
  24499. .w_name {
  24500. margin-bottom: 10px;
  24501. }
  24502. .w_name span {
  24503. font-size: 16px;
  24504. }
  24505. .w_teachert {
  24506. width: 50px !important;
  24507. position: absolute;
  24508. height: auto !important;
  24509. z-index: 10;
  24510. right: 25px;
  24511. top: -25px;
  24512. }
  24513. .group_workBox {
  24514. }
  24515. .group_workBox + .group_workBox {
  24516. margin-top: 20px;
  24517. }
  24518. .group_box {
  24519. padding-bottom: 20px;
  24520. border-bottom: 2px solid #f0f0f0;
  24521. margin-top: 10px;
  24522. }
  24523. .group_title {
  24524. display: flex;
  24525. align-items: center;
  24526. justify-content: space-between;
  24527. width: 95%;
  24528. }
  24529. .group_name {
  24530. background-image: url(../assets/icon/groupN.png);
  24531. width: 220px;
  24532. background-size: 100% 100%;
  24533. height: 67px;
  24534. padding: 0 20px 0 43px;
  24535. box-sizing: border-box;
  24536. line-height: 63px;
  24537. color: #fff;
  24538. overflow: hidden;
  24539. white-space: nowrap;
  24540. text-overflow: ellipsis;
  24541. }
  24542. .group_work {
  24543. width: 100%;
  24544. padding: 0 10px;
  24545. box-sizing: border-box;
  24546. display: flex;
  24547. flex-wrap: wrap;
  24548. }
  24549. .g_d_box {
  24550. display: flex;
  24551. flex-flow: wrap;
  24552. justify-content: space-around;
  24553. }
  24554. .g_d_box .isChair {
  24555. background-image: url(../assets/avatar.png) !important;
  24556. }
  24557. .g_d_group {
  24558. width: 500px;
  24559. margin-bottom: 80px;
  24560. }
  24561. .g_d_group_chair {
  24562. display: flex;
  24563. align-items: center;
  24564. justify-content: center;
  24565. }
  24566. .g_d_group_chair > div + div {
  24567. margin-left: 30px;
  24568. }
  24569. .g_d_group_chair > div,
  24570. .g_d_group_chair2 > div {
  24571. display: flex;
  24572. flex-direction: column;
  24573. align-items: center;
  24574. }
  24575. .g_d_group_chair > div > span:nth-child(1),
  24576. .g_d_group_chair2 > div > span:nth-child(1) {
  24577. background-image: url(../assets/icon/chair.png);
  24578. width: 50px;
  24579. height: 50px;
  24580. display: block;
  24581. background-size: 100% 100%;
  24582. }
  24583. .g_d_group_tableBox {
  24584. display: flex;
  24585. align-items: center;
  24586. justify-content: center;
  24587. }
  24588. .g_d_group_chair2 {
  24589. display: flex;
  24590. flex-direction: column;
  24591. align-items: center;
  24592. justify-content: center;
  24593. }
  24594. .g_d_group_chair2 > div + div {
  24595. margin-top: 10px;
  24596. }
  24597. .g_d_group_table {
  24598. background-image: url(../assets/icon/groupBg.png);
  24599. width: 354px;
  24600. height: 196px;
  24601. background-size: 100% 100%;
  24602. display: flex;
  24603. align-items: center;
  24604. justify-content: center;
  24605. flex-direction: column;
  24606. color: #fff;
  24607. }
  24608. .g_d_group_table > div:nth-child(1) {
  24609. font-size: 24px;
  24610. margin-bottom: 5px;
  24611. }
  24612. .g_d_group_table > div:nth-child(2) div {
  24613. cursor: pointer;
  24614. background: #2e77bf;
  24615. padding: 4px 10px;
  24616. border-radius: 5px;
  24617. }
  24618. .groupBox {
  24619. }
  24620. .groupContent + .groupContent {
  24621. margin-top: 30px;
  24622. }
  24623. .groupTitle {
  24624. font-size: 24px;
  24625. color: rgb(80, 80, 80);
  24626. margin-bottom: 20px;
  24627. }
  24628. .groupName {
  24629. display: flex;
  24630. align-items: center;
  24631. }
  24632. .groupn {
  24633. font-size: 15px;
  24634. margin-right: 10px;
  24635. }
  24636. .groupName + .groupName {
  24637. margin-top: 15px;
  24638. }
  24639. .groupBtn {
  24640. margin-left: 10px;
  24641. }
  24642. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24643. text-align: left;
  24644. }
  24645. .g_d_btnBox {
  24646. display: flex;
  24647. justify-content: flex-end;
  24648. align-items: center;
  24649. margin-bottom: 20px;
  24650. }
  24651. .updateChair {
  24652. position: relative;
  24653. }
  24654. .updateChairBtn {
  24655. position: absolute;
  24656. width: 50px;
  24657. height: 50px;
  24658. overflow: hidden;
  24659. /* display: flex; */
  24660. align-items: center;
  24661. justify-content: center;
  24662. background: #00000087;
  24663. color: #fff;
  24664. border-radius: 50px;
  24665. display: none;
  24666. cursor: pointer;
  24667. }
  24668. .updateChair:hover .updateChairBtn {
  24669. display: flex;
  24670. }
  24671. .group_staic_box {
  24672. display: flex;
  24673. padding: 30px 40px 10px;
  24674. flex-wrap: wrap;
  24675. }
  24676. .group_staic {
  24677. /* width: 50%; */
  24678. margin-bottom: 20px;
  24679. display: flex;
  24680. align-items: center;
  24681. }
  24682. .group_staic span:nth-child(1) {
  24683. width: 150px;
  24684. text-align: right;
  24685. margin-right: 15px;
  24686. }
  24687. .group_staic span:nth-child(2) {
  24688. background: rgb(0 123 255);
  24689. color: #fff;
  24690. border-radius: 5px;
  24691. padding: 5px;
  24692. }
  24693. .codeFileBox {
  24694. height: 300px;
  24695. background: #fff;
  24696. display: flex;
  24697. align-items: center;
  24698. justify-content: center;
  24699. }
  24700. .codeFileBox img {
  24701. width: 200px;
  24702. margin: 0;
  24703. height: auto;
  24704. }
  24705. .codeFileBox div {
  24706. background: rgb(80, 142, 226);
  24707. color: #fff;
  24708. padding: 10px 20px;
  24709. border-radius: 25px;
  24710. cursor: pointer;
  24711. margin-left: 15px;
  24712. }
  24713. .radioBox {
  24714. display: flex;
  24715. flex-direction: column;
  24716. flex-wrap: nowrap;
  24717. align-items: flex-start;
  24718. }
  24719. .radioBox > div {
  24720. margin: 10px 0 0 10px;
  24721. }
  24722. /* .radioBox >>> .el-radio__input,
  24723. .radioBox >>> .el-checkbox__inner {
  24724. margin-left: 10px;
  24725. } */
  24726. .radioBox >>> .el-radio__label,
  24727. .radioBox >>> .el-checkbox__label {
  24728. display: flex;
  24729. align-items: center;
  24730. width: 100%;
  24731. }
  24732. .radioBox >>> .el-radio__label > span {
  24733. width: 100%;
  24734. display: -webkit-box;
  24735. overflow: hidden;
  24736. white-space: normal !important;
  24737. text-overflow: ellipsis;
  24738. word-wrap: break-word;
  24739. }
  24740. .inImg {
  24741. width: 100px;
  24742. cursor: pointer;
  24743. }
  24744. .inImg > img {
  24745. width: 100%;
  24746. height: 100%;
  24747. object-fit: cover;
  24748. }
  24749. .timuImgBox {
  24750. margin: 10px 0;
  24751. display: flex;
  24752. flex-direction: column;
  24753. flex-wrap: wrap;
  24754. align-items: flex-start;
  24755. }
  24756. .timuImg {
  24757. width: 150px;
  24758. margin: 5px 0;
  24759. cursor: pointer;
  24760. }
  24761. .timuImg > img {
  24762. width: 100%;
  24763. height: 100%;
  24764. object-fit: cover;
  24765. }
  24766. .worksTop {
  24767. display: flex;
  24768. flex-direction: row;
  24769. align-items: flex-end;
  24770. }
  24771. .worksTitle{
  24772. display: flex;
  24773. flex-direction: row;
  24774. flex-wrap: nowrap;
  24775. align-items: center;
  24776. }
  24777. .worksTitle::before,.worksTop::before{
  24778. content: '';
  24779. display: block;
  24780. width: 3px;
  24781. height: 20px;
  24782. background: #0061FF;
  24783. border-radius: 3px;
  24784. margin: 0 5px 0 0;
  24785. }
  24786. .corOpen {
  24787. margin: 0 0 0 10px;
  24788. font-size: 14px;
  24789. cursor: pointer;
  24790. color: #505050;
  24791. }
  24792. .corOpen:hover {
  24793. color: #499eef;
  24794. }
  24795. .navCorOpenBox {
  24796. display: flex;
  24797. flex-direction: row;
  24798. align-items: center;
  24799. justify-content: space-between;
  24800. height: 55px;
  24801. background: #ffffff;
  24802. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24803. border-radius: 8px 8px 0px 0px;
  24804. z-index: 9;
  24805. position: relative;
  24806. }
  24807. .navCorOpen {
  24808. padding-right: 15px;
  24809. cursor: pointer;
  24810. width: 45px;
  24811. display: flex;
  24812. }
  24813. .navCorOpen > img {
  24814. width: 100%;
  24815. height: 100%;
  24816. }
  24817. .mlImg {
  24818. width: 40px !important;
  24819. min-width: 40px;
  24820. cursor: pointer;
  24821. transform: rotate(180deg);
  24822. }
  24823. .mlImg > img {
  24824. width: 100%;
  24825. height: 100%;
  24826. }
  24827. .navLeftCss {
  24828. width: 100% !important;
  24829. left: 0 !important;
  24830. }
  24831. .isContentCss {
  24832. width: 100% !important;
  24833. }
  24834. .isAllWidth {
  24835. width: 100% !important;
  24836. }
  24837. .group_switch {
  24838. margin-right: 10px;
  24839. height: 30px;
  24840. display: flex;
  24841. align-items: center;
  24842. }
  24843. .group_switch > span {
  24844. margin-right: 5px;
  24845. }
  24846. .fileC_box {
  24847. padding-top: 15px;
  24848. }
  24849. .fileC_box > .fileC_title {
  24850. padding: 10px 5px 14px 10px;
  24851. border-top: 1px solid #cad1dc;
  24852. font-size: 14px;
  24853. font-weight: 400;
  24854. color: #cad1dc;
  24855. width: calc(100% - 20px);
  24856. margin: 0 auto;
  24857. box-sizing: border-box;
  24858. }
  24859. .pl_select_box {
  24860. height: 40px;
  24861. line-height: 40px;
  24862. width: 100%;
  24863. cursor: pointer;
  24864. padding: 0 20px;
  24865. box-sizing: border-box;
  24866. border-radius: 5px;
  24867. border: 1px solid #d6d6d6;
  24868. white-space: nowrap;
  24869. overflow: hidden;
  24870. text-overflow: ellipsis;
  24871. background: #fff;
  24872. text-align: left;
  24873. }
  24874. .newButton {
  24875. width: 102px;
  24876. height: 36px;
  24877. background: #e7ebf1;
  24878. border-radius: 4px;
  24879. color: #0e1e33;
  24880. font-weight: 400;
  24881. font-size: 14px;
  24882. border: none;
  24883. float: right;
  24884. margin-left: 10px;
  24885. }
  24886. .el-table >>> .even_row {
  24887. background-color: #f0f4fa;
  24888. }
  24889. .stageBoxCss,
  24890. .stageBoxIsCss {
  24891. display: flex;
  24892. flex-direction: row;
  24893. flex-wrap: nowrap;
  24894. align-items: center;
  24895. height: 50px;
  24896. border-bottom: 1px solid #e2f5fc;
  24897. cursor: pointer;
  24898. width: 100%;
  24899. }
  24900. .stageBoxIsCss {
  24901. background: #0061ff;
  24902. color: #fff;
  24903. border-radius: 8px;
  24904. }
  24905. .stageItemTitle {
  24906. display: flex;
  24907. flex-direction: row;
  24908. flex-wrap: nowrap;
  24909. align-items: center;
  24910. margin-left: 15px;
  24911. width: calc(100% - 50px);
  24912. }
  24913. .stageNav{
  24914. /* font-weight: bold; */
  24915. }
  24916. .stageItemTitle > div:first-child {
  24917. min-width: 55px;
  24918. }
  24919. .stageItemTitle > div:last-child {
  24920. max-width: 242px;
  24921. white-space: nowrap;
  24922. overflow: hidden;
  24923. text-overflow: ellipsis;
  24924. word-break: break-word;
  24925. width: calc(100% - 55px);
  24926. }
  24927. .closeTri,
  24928. .closeTri1 {
  24929. min-width: 15px;
  24930. width: 15px;
  24931. height: 15px;
  24932. transition: all .5s;
  24933. }
  24934. .closeTri1 {
  24935. padding-left: 10px;
  24936. cursor: pointer;
  24937. }
  24938. .closeTri > img,
  24939. .closeTri1 > img {
  24940. width: 100%;
  24941. height: 100%;
  24942. /* transition: all .5s; */
  24943. }
  24944. .noToolBlue {
  24945. min-width: 10px;
  24946. width: 10px;
  24947. height: 10px;
  24948. background: #0061ff;
  24949. border-radius: 50%;
  24950. margin-left: 13px;
  24951. }
  24952. .stageChild,
  24953. .toolChild {
  24954. height: 0;
  24955. overflow: hidden;
  24956. transition: all 0.5s;
  24957. }
  24958. .toolChild {
  24959. /* margin: 0 0 0 17px;
  24960. padding: 0 0 0 20px;
  24961. border-left: 1px solid #d7d7d7; */
  24962. }
  24963. .toolChild > div + div{
  24964. margin-top:5px;
  24965. }
  24966. .gjCss {
  24967. display: flex;
  24968. flex-direction: row;
  24969. flex-wrap: nowrap;
  24970. align-items: center;
  24971. padding: 10px 0 10px 40px;
  24972. box-sizing: border-box;
  24973. font-size: 14px;
  24974. cursor: pointer;
  24975. border-radius:5px;
  24976. }
  24977. .toolChild > div {
  24978. position: relative;
  24979. width:100%;
  24980. }
  24981. .toolChild > div::before {
  24982. /* content: "";
  24983. width: 15px;
  24984. height: 1px;
  24985. background: #cad1dc;
  24986. position: absolute;
  24987. top: 24px;
  24988. left: -20px;
  24989. display: block; */
  24990. }
  24991. .isGjCss {
  24992. /* color: #0061ff; */
  24993. color:#fff;
  24994. background: rgb(55, 129, 252);
  24995. /* background-color: #e0eafb !important;
  24996. color: #0061ff !important; */
  24997. }
  24998. .navItem {
  24999. background: #ffffff;
  25000. border-radius: 4px;
  25001. width: 100%;
  25002. margin: 10px auto;
  25003. position: relative;
  25004. height: 40px;
  25005. display: flex;
  25006. flex-direction: row;
  25007. flex-wrap: nowrap;
  25008. align-items: center;
  25009. }
  25010. .navItemList {
  25011. display: flex;
  25012. flex-direction: row;
  25013. flex-wrap: nowrap;
  25014. align-items: center;
  25015. padding: 0 13px;
  25016. cursor: pointer;
  25017. width: calc(100% - 60px);
  25018. height: 100%;
  25019. }
  25020. .navItemList > div:first-child {
  25021. /* min-width: 60px; */
  25022. min-width:fit-content;
  25023. }
  25024. .navItemList > div:last-child {
  25025. width: calc(100% - 80px);
  25026. white-space: nowrap;
  25027. overflow: hidden;
  25028. text-overflow: ellipsis;
  25029. word-break: break-word;
  25030. }
  25031. /* .isItemList > div {
  25032. color: #fff !important;
  25033. } */
  25034. .tool_work_box {
  25035. width: 100%;
  25036. padding: 0 37px 0;
  25037. box-sizing: border-box;
  25038. }
  25039. .tool_box {
  25040. width: 100%;
  25041. padding: 0 0 0 20px;
  25042. }
  25043. .tool_type_box {
  25044. display: flex;
  25045. flex-direction: row;
  25046. align-items: baseline;
  25047. flex-wrap: nowrap;
  25048. justify-content: flex-start;
  25049. position: relative;
  25050. }
  25051. .toolSort {
  25052. display: flex;
  25053. flex-direction: row;
  25054. flex-wrap: wrap;
  25055. justify-content: flex-start;
  25056. align-items: flex-start;
  25057. padding: 0 0 15px 0;
  25058. }
  25059. .toolSort > div {
  25060. margin: 0 10px 0 0;
  25061. width: 135px;
  25062. box-sizing: border-box;
  25063. border: 2px solid transparent;
  25064. }
  25065. .tools {
  25066. width: 100%;
  25067. display: flex;
  25068. flex-direction: column;
  25069. flex-wrap: nowrap;
  25070. align-items: flex-start;
  25071. }
  25072. .whiteBIcon {
  25073. width: fit-content;
  25074. cursor: pointer;
  25075. display: flex;
  25076. flex-direction: column;
  25077. flex-wrap: nowrap;
  25078. align-items: center;
  25079. font-size: 14px;
  25080. }
  25081. .tool:hover {
  25082. border: 2px solid #a5c7ff;
  25083. border-radius: 5px;
  25084. }
  25085. .whiteBIcon > img {
  25086. width: 65px;
  25087. height: 100%;
  25088. }
  25089. .whiteBIcon > img {
  25090. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25091. border-radius: 15px;
  25092. }
  25093. .check {
  25094. /* width: 20px;
  25095. height: 20px; */
  25096. cursor: pointer;
  25097. margin: 10px 0;
  25098. position: absolute;
  25099. right: 2px;
  25100. top: -5px;
  25101. }
  25102. .noChoose,
  25103. .isChoose {
  25104. width: 15px;
  25105. height: 15px;
  25106. border-radius: 50%;
  25107. border: 1px solid #adadad;
  25108. }
  25109. .isChoose {
  25110. border: 4px solid #0363ff !important;
  25111. width: 10px;
  25112. height: 10px;
  25113. }
  25114. .isToolChoose {
  25115. border: 2px solid #5394ff !important;
  25116. border-radius: 5px;
  25117. box-shadow: 0 0 6px 0px #5394ff;
  25118. }
  25119. .checkDiv {
  25120. display: flex;
  25121. align-items: center;
  25122. }
  25123. .checkDiv span {
  25124. margin-left: 5px;
  25125. color: #858585;
  25126. }
  25127. .check img {
  25128. width: 20px;
  25129. height: 20px;
  25130. }
  25131. .lockTaskIcon {
  25132. width: 20px;
  25133. height: 20px;
  25134. position: absolute;
  25135. right: 10px;
  25136. top: 5px;
  25137. }
  25138. .lockTaskIcon > img {
  25139. width: 100%;
  25140. height: 100%;
  25141. }
  25142. .pick_box {
  25143. display: flex;
  25144. align-items: flex-start;
  25145. flex-wrap: wrap;
  25146. }
  25147. .selectBox {
  25148. width: 110px;
  25149. margin-left: 10px;
  25150. margin: 0 10px 0 auto;
  25151. }
  25152. .selectBox >>> .el-input__inner {
  25153. height: 30px;
  25154. line-height: 30px;
  25155. }
  25156. .selectBox >>> .el-input__icon {
  25157. line-height: 30px;
  25158. }
  25159. .sentenceTitle {
  25160. display: flex;
  25161. flex-direction: row;
  25162. flex-wrap: nowrap;
  25163. align-items: center;
  25164. }
  25165. .sentenceTitle::before {
  25166. content: attr(index);
  25167. background: #3681fc;
  25168. border-radius: 50%;
  25169. color: #fff;
  25170. width: 25px;
  25171. height: 25px;
  25172. min-width: 25px;
  25173. min-height: 25px;
  25174. text-align: center;
  25175. line-height: 25px;
  25176. margin-right: 5px;
  25177. }
  25178. .hfBox {
  25179. padding: 10px;
  25180. box-sizing: border-box;
  25181. }
  25182. .whoReplyWho {
  25183. display: flex;
  25184. flex-direction: row;
  25185. flex-wrap: nowrap;
  25186. align-items: baseline;
  25187. justify-content: flex-start;
  25188. }
  25189. .hfBottom {
  25190. display: flex;
  25191. flex-direction: row;
  25192. flex-wrap: nowrap;
  25193. align-items: center;
  25194. justify-content: space-between;
  25195. font-size: 14px;
  25196. }
  25197. .deleteHfItem {
  25198. cursor: pointer;
  25199. width: 20px;
  25200. height: 20px;
  25201. }
  25202. .deleteHfItem > img {
  25203. width: 100%;
  25204. height: 100%;
  25205. }
  25206. .whoReplyWho > .hfImg {
  25207. width: 12px;
  25208. height: 12px;
  25209. margin: 0 5px;
  25210. }
  25211. .whoReplyWho > .hfImg > img {
  25212. width: 100%;
  25213. height: 100%;
  25214. }
  25215. .hfContent {
  25216. padding-top: 10px;
  25217. box-sizing: border-box;
  25218. display: -webkit-box;
  25219. overflow: hidden;
  25220. white-space: normal !important;
  25221. text-overflow: ellipsis;
  25222. word-wrap: break-word;
  25223. -webkit-box-orient: vertical;
  25224. }
  25225. .hfTime {
  25226. text-align: left;
  25227. box-sizing: border-box;
  25228. padding: 10px 0 10px 0px;
  25229. color: #bfbfbf;
  25230. font-size: 14px;
  25231. }
  25232. .btnAllNT {
  25233. position: fixed;
  25234. bottom: 100px;
  25235. right: 40px;
  25236. z-index: 999;
  25237. display: flex;
  25238. flex-direction: row;
  25239. }
  25240. .btnAllNT > img {
  25241. cursor: pointer;
  25242. width: 80px;
  25243. }
  25244. .toolMask {
  25245. position: fixed;
  25246. width: 100%;
  25247. height: 100%;
  25248. background: #3f3c3c;
  25249. opacity: 0.5;
  25250. top: 0;
  25251. left: 0;
  25252. z-index: 999;
  25253. }
  25254. .addToolCss {
  25255. position: fixed;
  25256. z-index: 999;
  25257. background: #fff;
  25258. right: 5%;
  25259. bottom: 18%;
  25260. min-width: 1035px;
  25261. min-height: 300px;
  25262. border-radius: 10px;
  25263. box-shadow: 0 0 8px 1px #b2b2b2;
  25264. }
  25265. .toolTop {
  25266. display: flex;
  25267. flex-direction: row;
  25268. flex-wrap: nowrap;
  25269. justify-content: space-between;
  25270. align-items: center;
  25271. padding: 20px;
  25272. }
  25273. .toolTop > div:nth-child(2) {
  25274. width: 15px;
  25275. height: 15px;
  25276. padding-right: 10px;
  25277. cursor: pointer;
  25278. }
  25279. .toolTop > div:nth-child(2) > img {
  25280. width: 100%;
  25281. height: 100%;
  25282. }
  25283. .fullStyle>>>.el-dialog__body {
  25284. height: calc(100% - 125px) !important;
  25285. box-sizing: border-box;
  25286. padding: 30px 0 !important;
  25287. background: #fff !important;
  25288. }
  25289. .fullStyle>>>.el-dialog {
  25290. width: 100% !important;
  25291. max-width: 100% !important;
  25292. height: 100% !important;
  25293. margin: 0 !important;
  25294. }
  25295. .fullStyle {
  25296. width: 100% !important;
  25297. max-width: 100% !important;
  25298. height: 100% !important;
  25299. margin: 0 auto !important;
  25300. }
  25301. .fullStyle>>>.el-dialog__footer{
  25302. background: #fff !important;
  25303. }
  25304. .engUpBox {
  25305. width: 100%;
  25306. height: 100%;
  25307. }
  25308. .engTitle,
  25309. .engText {
  25310. display: flex;
  25311. flex-direction: row;
  25312. flex-wrap: nowrap;
  25313. align-items: flex-start;
  25314. padding: 0 20px 20px 20px;
  25315. box-sizing: border-box;
  25316. }
  25317. .engTitle > .div:first-child,
  25318. .engText > div:first-child {
  25319. min-width: 75px;
  25320. }
  25321. .correctBox{
  25322. width: 100%;
  25323. display: flex;
  25324. flex-direction: row;
  25325. flex-wrap: nowrap;
  25326. align-items: flex-start;
  25327. }
  25328. .oldBox{
  25329. width: 50%;
  25330. height: 100%;
  25331. display: flex;
  25332. flex-direction: column;
  25333. flex-wrap: nowrap;
  25334. align-items: center;
  25335. border-top: 1px solid #d9d9d9;
  25336. border-left: 1px solid #d9d9d9;
  25337. border-right: 1px solid #d9d9d9;
  25338. }
  25339. .oldBox>div:first-child{
  25340. width: 100%;
  25341. text-align: center;
  25342. background: #d9d9d9;
  25343. height: 35px;
  25344. line-height: 35px;
  25345. font-weight: bold;
  25346. }
  25347. .oldText{
  25348. width: 100%;
  25349. height: calc(100% - 35px);
  25350. overflow: auto;
  25351. margin: 10px 0;
  25352. display: flex;
  25353. flex-direction: column;
  25354. flex-wrap: nowrap;
  25355. align-content: center;
  25356. align-items: center;
  25357. }
  25358. .detailBox{
  25359. width: 50%;
  25360. padding: 10px;
  25361. background: #f6f6f6;
  25362. border-radius: 5px;
  25363. }
  25364. .oldDetail,.oldDetail1{
  25365. padding-bottom: 30px;
  25366. }
  25367. .oldImg{
  25368. width:30px;
  25369. height: 30px;
  25370. }
  25371. .oldImg>img{
  25372. width: 100%;
  25373. height: 100%;
  25374. }
  25375. .allName{
  25376. min-width: 200px;
  25377. white-space: nowrap;
  25378. overflow: hidden;
  25379. text-overflow: ellipsis;
  25380. word-break: break-word;
  25381. cursor: pointer;
  25382. text-align: center;
  25383. border: 1px solid #bcc2cc;
  25384. box-sizing: border-box;
  25385. }
  25386. .engUpTop{
  25387. max-height: 300px;
  25388. overflow: auto;
  25389. }
  25390. .isUpdateToolDetailClass{
  25391. padding: 0 !important;
  25392. }
  25393. .isUpdateToolDetailClass textarea{
  25394. padding:12px;
  25395. font-size: 16px;
  25396. min-height:100%;
  25397. width: 100%;
  25398. box-sizing:border-box;
  25399. outline: none;
  25400. border:none;
  25401. line-height: 30px;
  25402. resize: none;
  25403. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25404. color: #838383;
  25405. }
  25406. .show_taskD {
  25407. min-width: fit-content;
  25408. margin-left: 10px;
  25409. display: flex;
  25410. align-items: center;
  25411. font-size: 14px;
  25412. cursor: pointer;
  25413. color: #717c8d;
  25414. }
  25415. .show_taskD > img {
  25416. width: 15px;
  25417. margin-right: 5px;
  25418. transition: 0.2s all;
  25419. transform: rotate(-90deg);
  25420. }
  25421. .show_taskD.show > img {
  25422. transform: rotate(0deg);
  25423. }
  25424. .correctCss{
  25425. position: absolute;
  25426. bottom: -70px;
  25427. background: #409eff;
  25428. color: #fff;
  25429. }
  25430. .dialog_diyCopy >>> .el-dialog__header {
  25431. display: none !important;
  25432. }
  25433. .dialog_diyCopy >>> .el-dialog__body {
  25434. padding: 0 !important;
  25435. height: 100% !important;
  25436. }
  25437. .confirmOpenDigCss > div{
  25438. font-size: 14px;
  25439. color: rgba(0, 0, 0, 0.6);
  25440. }
  25441. .confirmOpenDigCss >>> .el-dialog{
  25442. border-radius: 6px;
  25443. }
  25444. .confirmOpenDigCss >>> .el-dialog__body{
  25445. padding: 25px !important;
  25446. }
  25447. .confirmOpenDigCss > span{
  25448. font-size: 16px;
  25449. font-weight: 600;
  25450. color: rgba(0, 0, 0, 0.8);
  25451. }
  25452. div::-webkit-scrollbar {
  25453. width: 10px;
  25454. height: 6px;
  25455. }
  25456. .Ovh{
  25457. margin: 5px 0;
  25458. width: 4em;
  25459. -webkit-line-clamp: 2;
  25460. display: -webkit-box;
  25461. -webkit-box-orient: vertical;
  25462. overflow: hidden;
  25463. text-overflow: ellipsis;
  25464. }
  25465. .pb_content >>> .katex {
  25466. font-size: 16px;
  25467. width: 100%;
  25468. white-space: normal;
  25469. }
  25470. .pb_content >>> .katex .base{
  25471. display: inline !important;
  25472. display: contents !important;
  25473. }
  25474. .pb_content >>> .katex .base .cjk_fallback{
  25475. white-space: normal !important;
  25476. display: inline !important;
  25477. }
  25478. </style>