studyStudent.vue 834 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT" v-if="false">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  963. style="position: absolute;right: 33px;top: -30px;">
  964. 作业详细
  965. </div>
  966. </div>
  967. <div v-if="tooC == 8">
  968. <img
  969. src="../assets/icon/secondToolList/library.png"
  970. alt
  971. @click="addTools(tooC, toolIndex, taskCount)"
  972. />
  973. <div style="margin: 5px 0">素材库</div>
  974. </div>
  975. <div v-if="tooC == 17">
  976. <img
  977. src="../assets/icon/secondToolList/library.png"
  978. alt
  979. @click="addTools(tooC, toolIndex, taskCount)"
  980. />
  981. <div style="margin: 5px 0">学习资料</div>
  982. </div>
  983. <div v-if="tooC == 2">
  984. <img
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. src="../assets/icon/secondToolList/note.png"
  987. alt
  988. />
  989. <div style="margin: 5px 0">便签</div>
  990. </div>
  991. <div v-if="tooC == 4">
  992. <img
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. src="../assets/icon/thirdToolList/ask.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">问卷调查</div>
  998. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. 统计分析
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 45">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/thirdToolList/choose.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">选择题</div>
  1010. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. 作业详细
  1013. </div>
  1014. </div>
  1015. <!-- <div v-if="tooC == 5">
  1016. <img
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. src="../assets/icon/thirdToolList/score.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">量规评分</div>
  1022. </div> -->
  1023. <div v-if="tooC == 10">
  1024. <img
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. src="../assets/icon/thirdToolList/time.png"
  1027. alt
  1028. />
  1029. <div style="margin: 5px 0">倒计时</div>
  1030. </div>
  1031. <div v-if="tooC == 15">
  1032. <img
  1033. @click="addTools(tooC, toolIndex, taskCount)"
  1034. src="../assets/icon/thirdToolList/answer.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">问答</div>
  1038. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1039. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1040. 作业详细
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 26">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/courseDesign.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">课程设计</div>
  1050. </div>
  1051. <div v-if="tooC == 18">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/trainPlatform.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">训练服务器</div>
  1058. </div>
  1059. <div v-if="tooC == 16">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/thirdToolList/work.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">作业提交</div>
  1066. </div>
  1067. <div v-if="tooC == 50">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/thirdToolList/plwork.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">批量上传</div>
  1074. </div>
  1075. <div v-if="tooC == 21">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/program.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AIoT Blockly</div>
  1082. </div>
  1083. <!-- <div v-if="tooC == 22">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/program.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI体验</div>
  1090. </div> -->
  1091. <div v-if="tooC == 23">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">AI Python</div>
  1098. </div>
  1099. <div v-if="tooC == 24">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/fourthToolList/AIprogram.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">AI Blockly</div>
  1106. </div>
  1107. <div v-if="tooC == 25">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/thirdToolList/evalua.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">目标管理</div>
  1114. </div>
  1115. <div v-if="tooC == 31">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/networkPanel.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">数学画板</div>
  1122. </div>
  1123. <div v-if="tooC == 28">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/translation.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">翻译</div>
  1130. </div>
  1131. <div v-if="tooC == 37">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/mohe.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">魔盒识字</div>
  1138. </div>
  1139. <div v-if="tooC == 38">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/secondToolList/24game.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">24点</div>
  1146. </div>
  1147. <div v-if="tooC == 39">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../assets/icon/secondToolList/GeoGebra.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">GeoGebra</div>
  1154. </div>
  1155. <div v-if="tooC == 32">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../assets/icon/thirdToolList/code.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">源码编辑</div>
  1162. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1163. style="position: absolute;left: 110px;bottom: 30px;">
  1164. 上传文件
  1165. <input type="file" accept="*" style="display: none"
  1166. @change="beforeUpload1($event, 7, toolIndex)" />
  1167. </div> -->
  1168. </div>
  1169. <div v-if="tooC == 40">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/secondToolList/eval.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">个人评价</div>
  1176. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1177. style="position: absolute;right: 33px;top: -30px;">
  1178. 作业详细
  1179. </div>
  1180. </div>
  1181. <div v-if="tooC == 41">
  1182. <img
  1183. @click="addTools(tooC, toolIndex, taskCount)"
  1184. src="../assets/icon/thirdToolList/select.png"
  1185. alt
  1186. />
  1187. <div style="margin: 5px 0">选择匹配</div>
  1188. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1189. style="position: absolute;right: 33px;top: -30px;">
  1190. 作业详细
  1191. </div>
  1192. </div>
  1193. <div v-if="tooC == 44">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/thirdToolList/hanClass.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">汉字宫</div>
  1200. </div>
  1201. <div v-if="tooC == 47">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/conSentences.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">排序</div>
  1208. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1209. style="position: absolute;right: 33px;top: -30px;">
  1210. 作业详细
  1211. </div>
  1212. </div>
  1213. <div v-if="tooC == 48">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../assets/icon/fourthToolList/table.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">表格</div>
  1220. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 作业详细
  1223. </div>
  1224. </div>
  1225. <div v-if="tooC == 52">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/text.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">文档</div>
  1232. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1233. style="position: absolute;right: 33px;top: -30px;">
  1234. 作业详细
  1235. </div>
  1236. </div>
  1237. <div v-if="tooC == 49">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../assets/icon/fourthToolList/group.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">学生分组</div>
  1244. </div>
  1245. <div v-if="tooC == 57">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../assets/icon/fourthToolList/cocopi.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">CocoPi</div>
  1252. </div>
  1253. <div v-if="tooC == 58">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../assets/icon/fourthToolList/car.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">模拟驾驶</div>
  1260. </div>
  1261. <div v-if="tooC == 59">
  1262. <img
  1263. @click="addTools(tooC, toolIndex, taskCount)"
  1264. src="../assets/icon/fourthToolList/lineSearch.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">路径搜索</div>
  1268. </div>
  1269. <div v-if="tooC == 60">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../assets/icon/fourthToolList/deepLearning.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">深度学习</div>
  1276. </div>
  1277. <div v-if="tooC == 61">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../assets/icon/fourthToolList/allHistory.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">全历史</div>
  1284. </div>
  1285. <div v-if="tooC == 62">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../assets/icon/fourthToolList/interVideo.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">交互视频</div>
  1292. </div>
  1293. <div v-if="tooC == 63">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../assets/icon/fourthToolList/Wood.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">海龟编程</div>
  1300. </div>
  1301. <div v-if="tooC == 71">
  1302. <img
  1303. @click="addTools(tooC, toolIndex, taskCount)"
  1304. src="../assets/icon/fourthToolList/chatgpt.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">AI智能体</div>
  1308. </div>
  1309. <div v-if="tooC == 65">
  1310. <img
  1311. @click="addTools(tooC, toolIndex, taskCount)"
  1312. src="../assets/icon/firstToolList/pickPeople.png"
  1313. alt
  1314. />
  1315. <div style="margin: 5px 0">挑人</div>
  1316. </div>
  1317. <div v-if="tooC == 66">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../assets/icon/secondToolList/formulaEdi.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">公式编辑</div>
  1324. </div>
  1325. <div v-if="tooC == 67">
  1326. <img
  1327. @click="addTools(tooC, toolIndex, taskCount)"
  1328. src="../assets/icon/secondToolList/molStr.png"
  1329. alt
  1330. />
  1331. <div style="margin: 5px 0">分子结构</div>
  1332. </div>
  1333. <div v-if="tooC == 68">
  1334. <img
  1335. @click="addTools(tooC, toolIndex, taskCount)"
  1336. src="../assets/icon/secondToolList/timeAxis.png"
  1337. alt
  1338. />
  1339. <div style="margin: 5px 0">时间轴</div>
  1340. </div>
  1341. <div v-if="tooC == 69">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../assets/icon/secondToolList/english.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">英语写作</div>
  1348. </div>
  1349. <div v-if="tooC == 70">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../assets/icon/thirdToolList/englishVoice.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">英语口语</div>
  1356. </div>
  1357. </div>
  1358. </div>
  1359. </div>
  1360. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1361. <!-- <div class="toolTitle">工具描述</div> -->
  1362. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1363. <div style="height:100%;"
  1364. v-html="contentConvent(tool.toolDetail)"
  1365. v-if="toolDetailIndex != toolIndex"
  1366. ></div>
  1367. <div v-else @click.stop="" style="height:100%;">
  1368. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1369. </div>
  1370. </div>
  1371. <el-button
  1372. type="primary"
  1373. v-if="tool.tool[0] == 32"
  1374. style="position: absolute; right: 30px; top: -45px"
  1375. @click="addImg($event)"
  1376. >上传作业<input
  1377. type="file"
  1378. accept="*"
  1379. style="display: none"
  1380. @change="beforeUpload1($event, 7, toolIndex)"
  1381. /></el-button>
  1382. <el-button
  1383. type="primary"
  1384. v-if="tool.tool[0] == 15"
  1385. style="position: absolute; right: 30px; top: -45px"
  1386. @click="openWordCloud(toolIndex)"
  1387. >生成词云</el-button
  1388. >
  1389. <el-button
  1390. type="primary"
  1391. v-if="
  1392. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1393. "
  1394. style="position: absolute; right: 30px; top: -45px"
  1395. @click="uploadWorks(toolIndex)"
  1396. >导出作业</el-button
  1397. >
  1398. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1399. position: absolute;
  1400. right: 30px;
  1401. transform: translateY(-130%);
  1402. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1403. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1404. </div>
  1405. <div
  1406. v-if="
  1407. tType &&
  1408. tType == 2 &&
  1409. !sIsOpen &&
  1410. tool.tool.indexOf(16) != -1
  1411. "
  1412. class="worksBox"
  1413. >
  1414. <div
  1415. class="zuoyeYulan"
  1416. v-if="workStudent[toolIndex].length > 0"
  1417. >
  1418. <span class="worksTitle">作业预览</span>
  1419. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1420. </div>
  1421. <div
  1422. class="worksDetailBox"
  1423. v-if="workStudent[toolIndex].length > 0"
  1424. >
  1425. <div
  1426. class="works"
  1427. style="
  1428. width: 200px;
  1429. height: 140px;
  1430. margin: 10px 10px 10px 0;
  1431. box-shadow: 0 0 6px 1px #dfdada;
  1432. "
  1433. v-for="(w, wIndex) in workStudent[toolIndex]"
  1434. :key="wIndex"
  1435. >
  1436. <div class="workImg" v-if="w.type == 0">
  1437. <img
  1438. :src="w.works"
  1439. @click="previewImg(w.works,w)"
  1440. alt
  1441. />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 1">
  1475. <img :src="word" @click="openFile(w.works,w)" alt />
  1476. <div
  1477. class="answerScore"
  1478. v-if="w.score"
  1479. @click.stop="openScore(w)"
  1480. :class="{
  1481. rightW:
  1482. w.userid == userid || tType == 1 || tType == 4,
  1483. }"
  1484. >
  1485. {{ JSON.parse(w.score).wScore }}分
  1486. </div>
  1487. <div
  1488. class="answerScore"
  1489. @click.stop="openScore(w)"
  1490. v-else-if="courseDetail.userid == userid"
  1491. :class="{
  1492. rightW:
  1493. w.userid == userid || tType == 1 || tType == 4,
  1494. }"
  1495. >
  1496. 评分
  1497. </div>
  1498. <img
  1499. class="deleteImg"
  1500. src="../assets/deleteworks.png"
  1501. v-if="
  1502. w.userid == userid || tType == 1 || tType == 4
  1503. "
  1504. @click.stop="deleteWorks(w.wid)"
  1505. alt
  1506. />
  1507. </div>
  1508. <div class="workImg" v-if="w.type == 3">
  1509. <img
  1510. style="cursor: pointer"
  1511. :src="video"
  1512. @click="openVideo(w)"
  1513. alt
  1514. />
  1515. <div
  1516. class="answerScore"
  1517. v-if="w.score"
  1518. @click.stop="openScore(w)"
  1519. :class="{
  1520. rightW:
  1521. w.userid == userid || tType == 1 || tType == 4,
  1522. }"
  1523. >
  1524. {{ JSON.parse(w.score).wScore }}分
  1525. </div>
  1526. <div
  1527. class="answerScore"
  1528. @click.stop="openScore(w)"
  1529. v-else-if="courseDetail.userid == userid"
  1530. :class="{
  1531. rightW:
  1532. w.userid == userid || tType == 1 || tType == 4,
  1533. }"
  1534. >
  1535. 评分
  1536. </div>
  1537. <img
  1538. class="deleteImg"
  1539. src="../assets/deleteworks.png"
  1540. v-if="
  1541. w.userid == userid || tType == 1 || tType == 4
  1542. "
  1543. @click.stop="deleteWorks(w.wid)"
  1544. alt
  1545. />
  1546. </div>
  1547. <div class="workImg" v-if="w.type == 12">
  1548. <img
  1549. style="cursor: pointer"
  1550. :src="word2"
  1551. @click="downloadFile(w.works)"
  1552. alt
  1553. />
  1554. <div
  1555. class="answerScore"
  1556. v-if="w.score"
  1557. @click.stop="openScore(w)"
  1558. :class="{
  1559. rightW:
  1560. w.userid == userid || tType == 1 || tType == 4,
  1561. }"
  1562. >
  1563. {{ JSON.parse(w.score).wScore }}分
  1564. </div>
  1565. <div
  1566. class="answerScore"
  1567. @click.stop="openScore(w)"
  1568. v-else-if="courseDetail.userid == userid"
  1569. :class="{
  1570. rightW:
  1571. w.userid == userid || tType == 1 || tType == 4,
  1572. }"
  1573. >
  1574. 评分
  1575. </div>
  1576. <img
  1577. class="deleteImg"
  1578. src="../assets/deleteworks.png"
  1579. v-if="
  1580. w.userid == userid || tType == 1 || tType == 4
  1581. "
  1582. @click.stop="deleteWorks(w.wid)"
  1583. alt
  1584. />
  1585. </div>
  1586. <div class="worksName">
  1587. <div>{{ w.sName }}</div>
  1588. </div>
  1589. </div>
  1590. </div>
  1591. </div>
  1592. <div
  1593. v-if="
  1594. tType &&
  1595. tType == 2 &&
  1596. !sIsOpen &&
  1597. tool.tool.indexOf(32) != -1
  1598. "
  1599. class="worksBox"
  1600. >
  1601. <div
  1602. class="zuoyeYulan"
  1603. v-if="workStudent[toolIndex].length > 0"
  1604. >
  1605. <span class="worksTitle">作业预览</span>
  1606. </div>
  1607. <div
  1608. class="worksDetailBox"
  1609. v-if="workStudent[toolIndex].length > 0"
  1610. >
  1611. <div
  1612. class="works"
  1613. style="
  1614. width: 200px;
  1615. height: 140px;
  1616. margin: 10px 10px 10px 0;
  1617. box-shadow: 0 0 6px 1px #dfdada;
  1618. "
  1619. v-for="(w, wIndex) in workStudent[toolIndex]"
  1620. :key="wIndex"
  1621. >
  1622. <div class="workImg">
  1623. <img
  1624. :src="word2"
  1625. @click="downloadFile(w.works)"
  1626. alt
  1627. />
  1628. <div
  1629. class="answerScore"
  1630. v-if="w.score"
  1631. @click.stop="openScore(w)"
  1632. :class="{
  1633. rightW:
  1634. w.userid == userid || tType == 1 || tType == 4,
  1635. }"
  1636. >
  1637. {{ JSON.parse(w.score).wScore }}分
  1638. </div>
  1639. <div
  1640. class="answerScore"
  1641. @click.stop="openScore(w)"
  1642. v-else-if="courseDetail.userid == userid"
  1643. :class="{
  1644. rightW:
  1645. w.userid == userid || tType == 1 || tType == 4,
  1646. }"
  1647. >
  1648. 评分
  1649. </div>
  1650. <img
  1651. class="deleteImg"
  1652. src="../assets/deleteworks.png"
  1653. v-if="
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. "
  1656. @click.stop="deleteWorks(w.wid)"
  1657. alt
  1658. />
  1659. </div>
  1660. <div class="worksName">
  1661. <div>{{ w.sName }}</div>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. <div
  1667. v-if="
  1668. tType &&
  1669. tType == 2 &&
  1670. !sIsOpen &&
  1671. tool.tool.indexOf(57) != -1
  1672. "
  1673. class="worksBox"
  1674. >
  1675. <div
  1676. class="zuoyeYulan"
  1677. v-if="workStudent[toolIndex].length > 0"
  1678. >
  1679. <span class="worksTitle">作业预览</span>
  1680. </div>
  1681. <div
  1682. class="worksDetailBox"
  1683. v-if="workStudent[toolIndex].length > 0"
  1684. >
  1685. <div
  1686. class="works"
  1687. style="
  1688. width: 200px;
  1689. height: 140px;
  1690. margin: 10px 10px 10px 0;
  1691. box-shadow: 0 0 6px 1px #dfdada;
  1692. "
  1693. v-for="(w, wIndex) in workStudent[toolIndex]"
  1694. :key="wIndex"
  1695. >
  1696. <div class="workImg">
  1697. <img
  1698. :src="word2"
  1699. @click="downloadFile(w.works)"
  1700. v-if="w.type == 12"
  1701. alt
  1702. />
  1703. <img
  1704. :src="word2"
  1705. @click="
  1706. openCocoPi(57, toolIndex, w.userid, w.sName)
  1707. "
  1708. v-else-if="w.type == 15"
  1709. alt
  1710. />
  1711. <div
  1712. class="answerScore"
  1713. v-if="w.score"
  1714. @click.stop="openScore(w)"
  1715. :class="{
  1716. rightW:
  1717. w.userid == userid || tType == 1 || tType == 4,
  1718. }"
  1719. >
  1720. {{ JSON.parse(w.score).wScore }}分
  1721. </div>
  1722. <div
  1723. class="answerScore"
  1724. @click.stop="openScore(w)"
  1725. v-else-if="courseDetail.userid == userid"
  1726. :class="{
  1727. rightW:
  1728. w.userid == userid || tType == 1 || tType == 4,
  1729. }"
  1730. >
  1731. 评分
  1732. </div>
  1733. <img
  1734. class="deleteImg"
  1735. src="../assets/deleteworks.png"
  1736. v-if="
  1737. w.userid == userid || tType == 1 || tType == 4
  1738. "
  1739. @click.stop="deleteWorks(w.wid)"
  1740. alt
  1741. />
  1742. </div>
  1743. <div class="worksName">
  1744. <div>{{ w.sName }}</div>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. </div>
  1749. <div
  1750. v-if="
  1751. tType &&
  1752. tType == 2 &&
  1753. !sIsOpen &&
  1754. tool.tool.indexOf(4) != -1
  1755. "
  1756. class="worksBox"
  1757. >
  1758. <div
  1759. class="zuoyeYulan"
  1760. v-if="workStudent[toolIndex].length > 0"
  1761. >
  1762. <span class="worksTitle">作业预览</span>
  1763. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1764. </div>
  1765. <div
  1766. class="worksDetailBox"
  1767. v-if="workStudent[toolIndex].length > 0"
  1768. >
  1769. <div
  1770. class="isWorksName2"
  1771. v-for="(w, wIndex) in workStudent[toolIndex]"
  1772. :key="wIndex"
  1773. @click="
  1774. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1775. "
  1776. >
  1777. {{ w.sName }}
  1778. <img
  1779. class="deleteImg deleteImg2"
  1780. src="../assets/deleteworks.png"
  1781. v-if="w.userid == userid || tType == 1 || tType == 4"
  1782. @click.stop="deleteWorks(w.wid)"
  1783. alt
  1784. />
  1785. </div>
  1786. <!-- <div
  1787. class="works"
  1788. style="
  1789. width: 200px;
  1790. height: 140px;
  1791. border-radius: 10px;
  1792. box-shadow: 0 0 6px 1px #dfdada;
  1793. overflow: hidden;
  1794. "
  1795. v-for="(w, wIndex) in workStudent[toolIndex]"
  1796. :key="wIndex"
  1797. >
  1798. <div class="workImg">
  1799. <img
  1800. src="../assets/icon/works/noImg.png"
  1801. @click="
  1802. openTools(
  1803. 4,
  1804. toolIndex,
  1805. taskCount,
  1806. w.works,
  1807. w.sName
  1808. )
  1809. "
  1810. alt
  1811. />
  1812. </div>
  1813. <div class="worksName">
  1814. <div>{{ w.sName }}</div>
  1815. <div>{{ w.time }}</div>
  1816. </div>
  1817. </div> -->
  1818. </div>
  1819. </div>
  1820. <div
  1821. v-if="
  1822. tType &&
  1823. ((tType == 2 && sIsOpen == true) ||
  1824. tType == 1 ||
  1825. tType == 4) &&
  1826. tool.tool.indexOf(62) != -1
  1827. "
  1828. class="worksBox"
  1829. >
  1830. <div
  1831. class="zuoyeYulan"
  1832. v-if="
  1833. worksStudent.length &&
  1834. worksStudent[toolIndex].length > 0
  1835. "
  1836. >
  1837. <div class="worksTop">
  1838. <div>作业预览</div>
  1839. <div
  1840. class="corOpen"
  1841. @click="contract(toolIndex)"
  1842. v-if="
  1843. (isCloseList[toolIndex].isCloseBoolean) &&
  1844. isCloseList[toolIndex].isClose == 0
  1845. "
  1846. >
  1847. 折叠
  1848. </div>
  1849. <div
  1850. class="corOpen"
  1851. @click="contract(toolIndex)"
  1852. v-if="isCloseList[toolIndex].isClose == 1"
  1853. >
  1854. 展开
  1855. </div>
  1856. </div>
  1857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1858. </div>
  1859. <div>
  1860. <div
  1861. :id="'tool-' + toolIndex"
  1862. :style="{
  1863. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1864. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1865. }"
  1866. class="worksDetailBox"
  1867. v-if="
  1868. worksStudent.length &&
  1869. worksStudent[toolIndex].length > 0
  1870. "
  1871. >
  1872. <div
  1873. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1874. :key="wIndex"
  1875. class="isWorksName2"
  1876. @click="
  1877. openTools(
  1878. 62,
  1879. toolIndex,
  1880. taskCount,
  1881. w.works,
  1882. w.sName
  1883. )
  1884. "
  1885. >
  1886. {{ w.sName }}
  1887. <img
  1888. class="deleteImg deleteImg2"
  1889. src="../assets/deleteworks.png"
  1890. v-if="
  1891. w.userid == userid || tType == 1 || tType == 4
  1892. "
  1893. @click.stop="deleteWorks(w.wid)"
  1894. alt
  1895. />
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1900. 未提交
  1901. </div>
  1902. <div
  1903. class="noWorksS"
  1904. v-if="noWorksS && noWorksS[toolIndex].length"
  1905. >
  1906. <div
  1907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1908. :key="sIndex"
  1909. class="noWorksName"
  1910. >
  1911. <el-tooltip effect="dark" :content="s.student" placement="top">
  1912. <span>{{ s.student }}</span>
  1913. </el-tooltip>
  1914. </div>
  1915. </div>
  1916. </div>
  1917. <div
  1918. v-if="
  1919. tType &&
  1920. tType == 2 &&
  1921. !sIsOpen &&
  1922. tool.tool.indexOf(62) != -1
  1923. "
  1924. class="worksBox"
  1925. >
  1926. <div
  1927. class="zuoyeYulan"
  1928. v-if="workStudent[toolIndex].length > 0"
  1929. >
  1930. <span class="worksTitle">作业预览</span>
  1931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1932. </div>
  1933. <div
  1934. class="worksDetailBox"
  1935. v-if="workStudent[toolIndex].length > 0"
  1936. >
  1937. <div
  1938. class="isWorksName2"
  1939. v-for="(w, wIndex) in workStudent[toolIndex]"
  1940. :key="wIndex"
  1941. @click="
  1942. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1943. "
  1944. >
  1945. {{ w.sName }}
  1946. <img
  1947. class="deleteImg deleteImg2"
  1948. src="../assets/deleteworks.png"
  1949. v-if="w.userid == userid || tType == 1 || tType == 4"
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. </div>
  1955. </div>
  1956. <div
  1957. v-if="
  1958. tType &&
  1959. tType == 2 &&
  1960. !sIsOpen &&
  1961. tool.tool.indexOf(45) != -1
  1962. "
  1963. class="worksBox"
  1964. >
  1965. <div
  1966. class="zuoyeYulan"
  1967. v-if="workStudent[toolIndex].length > 0"
  1968. >
  1969. <span class="worksTitle">作业预览</span>
  1970. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1971. </div>
  1972. <div
  1973. class="worksDetailBox"
  1974. v-if="workStudent[toolIndex].length > 0"
  1975. >
  1976. <div
  1977. class="isWorksName2"
  1978. v-for="(w, wIndex) in workStudent[toolIndex]"
  1979. :key="wIndex"
  1980. @click="
  1981. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1982. "
  1983. >
  1984. {{ w.sName }}
  1985. <img
  1986. class="deleteImg deleteImg2"
  1987. src="../assets/deleteworks.png"
  1988. v-if="w.userid == userid || tType == 1 || tType == 4"
  1989. @click.stop="deleteWorks(w.wid)"
  1990. alt
  1991. />
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div
  1996. v-if="
  1997. tType &&
  1998. tType == 2 &&
  1999. !sIsOpen &&
  2000. tool.tool.indexOf(69) != -1
  2001. "
  2002. class="worksBox"
  2003. >
  2004. <div
  2005. class="zuoyeYulan"
  2006. v-if="workStudent[toolIndex].length > 0"
  2007. >
  2008. <span class="worksTitle">作业预览</span>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div
  2012. class="worksDetailBox"
  2013. v-if="workStudent[toolIndex].length > 0"
  2014. >
  2015. <div
  2016. class="isWorksName2"
  2017. v-for="(w, wIndex) in workStudent[toolIndex]"
  2018. :key="wIndex"
  2019. @click="
  2020. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2021. "
  2022. >
  2023. {{ w.sName }}
  2024. <img
  2025. class="deleteImg deleteImg2"
  2026. src="../assets/deleteworks.png"
  2027. v-if="w.userid == userid || tType == 1 || tType == 4"
  2028. @click.stop="deleteWorks(w.wid)"
  2029. alt
  2030. />
  2031. </div>
  2032. </div>
  2033. </div>
  2034. <div
  2035. v-if="
  2036. tType &&
  2037. tType == 2 &&
  2038. !sIsOpen &&
  2039. tool.tool.indexOf(15) != -1
  2040. "
  2041. class="worksBox"
  2042. >
  2043. <div
  2044. class="zuoyeYulan"
  2045. v-if="workStudent[toolIndex].length > 0"
  2046. >
  2047. <span class="worksTitle">作业预览</span>
  2048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2049. </div>
  2050. <div
  2051. class="worksDetailBox"
  2052. v-if="workStudent[toolIndex].length > 0"
  2053. >
  2054. <div
  2055. class="works"
  2056. v-for="(w, wIndex) in workStudent[toolIndex]"
  2057. :key="wIndex"
  2058. >
  2059. <div class="workImg">
  2060. <!-- <img
  2061. src="../assets/icon/works/noImg.png"
  2062. @click="openTools(15, toolIndex, taskCount, w.works)"
  2063. alt=""
  2064. />-->
  2065. <div class="answerBg">
  2066. <!-- <div>{{ w.sName }}</div> -->
  2067. <el-tooltip
  2068. class="item"
  2069. effect="light"
  2070. :content="JSON.parse(w.works)[0].answer"
  2071. placement="top"
  2072. >
  2073. <div class="answerContent">
  2074. {{ JSON.parse(w.works)[0].answer }}
  2075. </div>
  2076. </el-tooltip>
  2077. <div
  2078. class="answerScore"
  2079. v-if="w.score"
  2080. @click.stop="openScore(w)"
  2081. :class="{
  2082. rightW:
  2083. w.userid == userid ||
  2084. tType == 1 ||
  2085. tType == 4,
  2086. }"
  2087. >
  2088. {{ JSON.parse(w.score).wScore }}分
  2089. </div>
  2090. <div
  2091. class="answerScore"
  2092. @click.stop="openScore(w)"
  2093. v-else-if="courseDetail.userid == userid"
  2094. :class="{
  2095. rightW:
  2096. w.userid == userid ||
  2097. tType == 1 ||
  2098. tType == 4,
  2099. }"
  2100. >
  2101. 评分
  2102. </div>
  2103. <img
  2104. class="deleteImg"
  2105. src="../assets/deleteworks.png"
  2106. v-if="
  2107. w.userid == userid || tType == 1 || tType == 4
  2108. "
  2109. @click.stop="deleteWorks(w.wid)"
  2110. alt
  2111. />
  2112. </div>
  2113. <div class="comment">
  2114. <div class="worksName">
  2115. <div>{{ w.sName }}</div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. </div>
  2122. <div
  2123. v-if="
  2124. tType &&
  2125. tType == 2 &&
  2126. !sIsOpen &&
  2127. tool.tool.indexOf(1) != -1
  2128. "
  2129. class="worksBox"
  2130. >
  2131. <div
  2132. class="zuoyeYulan"
  2133. v-if="workStudent[toolIndex].length > 0"
  2134. >
  2135. <span class="worksTitle">作业预览</span>
  2136. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2137. </div>
  2138. <div
  2139. class="worksDetailBox"
  2140. v-if="workStudent[toolIndex].length > 0"
  2141. >
  2142. <div
  2143. class="works"
  2144. style="
  2145. width: 200px;
  2146. height: 140px;
  2147. margin: 10px 10px 10px 0;
  2148. box-shadow: 0 0 6px 1px #dfdada;
  2149. "
  2150. v-for="(w, wIndex) in workStudent[toolIndex]"
  2151. :key="wIndex"
  2152. >
  2153. <div class="workImg">
  2154. <img
  2155. :src="w.works"
  2156. @click="previewImg(w.works,w)"
  2157. alt
  2158. />
  2159. <div
  2160. class="answerScore"
  2161. v-if="w.score"
  2162. @click.stop="openScore(w)"
  2163. :class="{
  2164. rightW:
  2165. w.userid == userid || tType == 1 || tType == 4,
  2166. }"
  2167. >
  2168. {{ JSON.parse(w.score).wScore }}分
  2169. </div>
  2170. <div
  2171. class="answerScore"
  2172. @click.stop="openScore(w)"
  2173. v-else-if="courseDetail.userid == userid"
  2174. :class="{
  2175. rightW:
  2176. w.userid == userid || tType == 1 || tType == 4,
  2177. }"
  2178. >
  2179. 评分
  2180. </div>
  2181. <img
  2182. class="deleteImg"
  2183. src="../assets/deleteworks.png"
  2184. v-if="
  2185. w.userid == userid || tType == 1 || tType == 4
  2186. "
  2187. @click.stop="deleteWorks(w.wid)"
  2188. alt
  2189. />
  2190. </div>
  2191. <div class="worksName">
  2192. <div>{{ w.sName }}</div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. <div
  2198. v-if="
  2199. tType &&
  2200. tType == 2 &&
  2201. !sIsOpen &&
  2202. tool.tool.indexOf(3) != -1
  2203. "
  2204. class="worksBox"
  2205. >
  2206. <div
  2207. class="zuoyeYulan"
  2208. v-if="workStudent[toolIndex].length > 0"
  2209. >
  2210. <span class="worksTitle">作业预览</span>
  2211. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2212. </div>
  2213. <div
  2214. class="worksDetailBox"
  2215. v-if="workStudent[toolIndex].length > 0"
  2216. >
  2217. <div
  2218. class="works"
  2219. style="
  2220. width: 200px;
  2221. height: 140px;
  2222. margin: 10px 10px 10px 0;
  2223. box-shadow: 0 0 6px 1px #dfdada;
  2224. "
  2225. v-for="(w, wIndex) in workStudent[toolIndex]"
  2226. :key="wIndex"
  2227. >
  2228. <div class="workImg">
  2229. <img
  2230. :src="w.works"
  2231. @click="previewImg(w.works,w)"
  2232. alt
  2233. />
  2234. <div
  2235. class="answerScore"
  2236. v-if="w.score"
  2237. @click.stop="openScore(w)"
  2238. :class="{
  2239. rightW:
  2240. w.userid == userid || tType == 1 || tType == 4,
  2241. }"
  2242. >
  2243. {{ JSON.parse(w.score).wScore }}分
  2244. </div>
  2245. <div
  2246. class="answerScore"
  2247. @click.stop="openScore(w)"
  2248. v-else-if="courseDetail.userid == userid"
  2249. :class="{
  2250. rightW:
  2251. w.userid == userid || tType == 1 || tType == 4,
  2252. }"
  2253. >
  2254. 评分
  2255. </div>
  2256. <img
  2257. class="deleteImg"
  2258. src="../assets/deleteworks.png"
  2259. v-if="
  2260. w.userid == userid || tType == 1 || tType == 4
  2261. "
  2262. @click.stop="deleteWorks(w.wid)"
  2263. alt
  2264. />
  2265. </div>
  2266. <div class="worksName">
  2267. <div>{{ w.sName }}</div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. <div
  2273. v-if="
  2274. tType &&
  2275. tType == 2 &&
  2276. !sIsOpen &&
  2277. tool.tool.indexOf(6) != -1
  2278. "
  2279. class="worksBox"
  2280. >
  2281. <div
  2282. class="zuoyeYulan"
  2283. v-if="workStudent[toolIndex].length > 0"
  2284. >
  2285. <span class="worksTitle">作业预览</span>
  2286. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2287. </div>
  2288. <div
  2289. class="worksDetailBox"
  2290. v-if="workStudent[toolIndex].length > 0"
  2291. >
  2292. <div
  2293. class="works"
  2294. style="
  2295. width: 200px;
  2296. height: 140px;
  2297. margin: 10px 10px 10px 0;
  2298. box-shadow: 0 0 6px 1px #dfdada;
  2299. "
  2300. v-for="(w, wIndex) in workStudent[toolIndex]"
  2301. :key="wIndex"
  2302. >
  2303. <div class="workImg">
  2304. <img
  2305. :src="w.works"
  2306. @click="previewImg(w.works,w)"
  2307. alt
  2308. />
  2309. <div
  2310. class="answerScore"
  2311. v-if="w.score"
  2312. @click.stop="openScore(w)"
  2313. :class="{
  2314. rightW:
  2315. w.userid == userid || tType == 1 || tType == 4,
  2316. }"
  2317. >
  2318. {{ JSON.parse(w.score).wScore }}分
  2319. </div>
  2320. <div
  2321. class="answerScore"
  2322. @click.stop="openScore(w)"
  2323. v-else-if="courseDetail.userid == userid"
  2324. :class="{
  2325. rightW:
  2326. w.userid == userid || tType == 1 || tType == 4,
  2327. }"
  2328. >
  2329. 评分
  2330. </div>
  2331. <img
  2332. class="deleteImg"
  2333. src="../assets/deleteworks.png"
  2334. v-if="
  2335. w.userid == userid || tType == 1 || tType == 4
  2336. "
  2337. @click.stop="deleteWorks(w.wid)"
  2338. alt
  2339. />
  2340. </div>
  2341. <div class="worksName">
  2342. <div>{{ w.sName }}</div>
  2343. </div>
  2344. </div>
  2345. </div>
  2346. </div>
  2347. <div
  2348. v-if="
  2349. tType &&
  2350. tType == 2 &&
  2351. !sIsOpen &&
  2352. tool.tool.indexOf(7) != -1
  2353. "
  2354. class="worksBox"
  2355. >
  2356. <div
  2357. class="zuoyeYulan"
  2358. v-if="workStudent[toolIndex].length > 0"
  2359. >
  2360. <span class="worksTitle">作业预览</span>
  2361. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2362. </div>
  2363. <div
  2364. class="worksDetailBox"
  2365. v-if="workStudent[toolIndex].length > 0"
  2366. >
  2367. <div
  2368. class="works"
  2369. style="
  2370. width: 200px;
  2371. height: 140px;
  2372. margin: 10px 10px 10px 0;
  2373. box-shadow: 0 0 6px 1px #dfdada;
  2374. "
  2375. v-for="(w, wIndex) in workStudent[toolIndex]"
  2376. :key="wIndex"
  2377. >
  2378. <div class="workImg">
  2379. <img
  2380. :src="w.works"
  2381. @click="previewImg(w.works,w)"
  2382. alt
  2383. />
  2384. <div
  2385. class="answerScore"
  2386. v-if="w.score"
  2387. @click.stop="openScore(w)"
  2388. :class="{
  2389. rightW:
  2390. w.userid == userid || tType == 1 || tType == 4,
  2391. }"
  2392. >
  2393. {{ JSON.parse(w.score).wScore }}分
  2394. </div>
  2395. <div
  2396. class="answerScore"
  2397. @click.stop="openScore(w)"
  2398. v-else-if="courseDetail.userid == userid"
  2399. :class="{
  2400. rightW:
  2401. w.userid == userid || tType == 1 || tType == 4,
  2402. }"
  2403. >
  2404. 评分
  2405. </div>
  2406. <img
  2407. class="deleteImg"
  2408. src="../assets/deleteworks.png"
  2409. v-if="
  2410. w.userid == userid || tType == 1 || tType == 4
  2411. "
  2412. @click.stop="deleteWorks(w.wid)"
  2413. alt
  2414. />
  2415. </div>
  2416. <div class="worksName">
  2417. <div>{{ w.sName }}</div>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. </div>
  2422. <div
  2423. v-if="
  2424. tType &&
  2425. tType == 2 &&
  2426. !sIsOpen &&
  2427. tool.tool.indexOf(26) != -1
  2428. "
  2429. class="worksBox"
  2430. >
  2431. <div
  2432. class="zuoyeYulan"
  2433. v-if="workStudent[toolIndex].length > 0"
  2434. >
  2435. <span class="worksTitle">作业预览</span>
  2436. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2437. </div>
  2438. <div
  2439. class="worksDetailBox"
  2440. v-if="workStudent[toolIndex].length > 0"
  2441. >
  2442. <div
  2443. class="works"
  2444. style="
  2445. width: 200px;
  2446. height: 140px;
  2447. margin: 10px 10px 10px 0;
  2448. box-shadow: 0 0 6px 1px #dfdada;
  2449. "
  2450. v-for="(w, wIndex) in workStudent[toolIndex]"
  2451. :key="wIndex"
  2452. >
  2453. <div class="workImg">
  2454. <img
  2455. :src="w.works"
  2456. @click="previewImg(w.works,w)"
  2457. alt
  2458. />
  2459. <img
  2460. class="deleteImg"
  2461. src="../assets/deleteworks.png"
  2462. v-if="
  2463. w.userid == userid || tType == 1 || tType == 4
  2464. "
  2465. @click.stop="deleteWorks(w.wid)"
  2466. alt
  2467. />
  2468. </div>
  2469. <div class="worksName">
  2470. <div>{{ w.sName }}</div>
  2471. </div>
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div
  2476. v-if="
  2477. tType &&
  2478. ((tType == 2 && sIsOpen == true) ||
  2479. tType == 1 ||
  2480. tType == 4) &&
  2481. tool.tool.indexOf(16) != -1
  2482. "
  2483. class="worksBox"
  2484. >
  2485. <div
  2486. class="zuoyeYulan"
  2487. v-if="
  2488. (worksStudent.length &&
  2489. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2490. "
  2491. >
  2492. <div class="worksTop">
  2493. <div>作业预览</div>
  2494. <div
  2495. class="corOpen"
  2496. @click="contract(toolIndex)"
  2497. v-if="
  2498. (isCloseList[toolIndex].isCloseBoolean) &&
  2499. isCloseList[toolIndex].isClose == 0
  2500. "
  2501. >
  2502. 折叠
  2503. </div>
  2504. <div
  2505. class="corOpen"
  2506. @click="contract(toolIndex)"
  2507. v-if="isCloseList[toolIndex].isClose == 1"
  2508. >
  2509. 展开
  2510. </div>
  2511. </div>
  2512. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2513. </div>
  2514. <div
  2515. class="group_workBox"
  2516. v-for="(g, gindex) in courseGroup.group"
  2517. :key="gindex"
  2518. >
  2519. <div class="group_box">
  2520. <div class="group_title">
  2521. <el-tooltip
  2522. class="item"
  2523. effect="light"
  2524. :content="g.name"
  2525. placement="top"
  2526. >
  2527. <div class="group_name">{{ g.name }}</div>
  2528. </el-tooltip>
  2529. </div>
  2530. <div
  2531. class="group_work"
  2532. v-if="
  2533. g.works &&
  2534. g.works.length &&
  2535. g.works[toolIndex].length
  2536. "
  2537. >
  2538. <div
  2539. class="works"
  2540. style="
  2541. width: 200px;
  2542. height: 140px;
  2543. margin: 10px 10px 10px 0;
  2544. border-radius: 15px;
  2545. box-shadow: 0 0 6px 1px #dfdada;
  2546. "
  2547. v-for="(w, wIndex) in g.works[toolIndex]"
  2548. :key="wIndex"
  2549. :class="w.type == 1 ? 'isTypeOne' : ''"
  2550. >
  2551. <div class="workImg" v-if="w.type == 0">
  2552. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2553. <img
  2554. :src="w.works"
  2555. @click="previewImg(w.works,w)"
  2556. alt
  2557. />
  2558. <div
  2559. class="answerScore"
  2560. v-if="w.score"
  2561. @click.stop="openScore(w)"
  2562. :class="{
  2563. rightW:
  2564. w.userid == userid ||
  2565. tType == 1 ||
  2566. tType == 4 ||
  2567. w.ateacher == userid,
  2568. }"
  2569. >
  2570. {{ JSON.parse(w.score).wScore }}分
  2571. </div>
  2572. <div
  2573. class="answerScore"
  2574. @click.stop="openScore(w)"
  2575. v-else-if="courseDetail.userid == userid"
  2576. :class="{
  2577. rightW:
  2578. w.userid == userid ||
  2579. tType == 1 ||
  2580. tType == 4 ||
  2581. w.ateacher == userid,
  2582. }"
  2583. >
  2584. 评分
  2585. </div>
  2586. <img
  2587. class="deleteImg"
  2588. src="../assets/deleteworks.png"
  2589. v-if="
  2590. w.userid == userid || tType == 1 || tType == 4
  2591. "
  2592. @click.stop="deleteWorks(w.wid)"
  2593. alt
  2594. />
  2595. </div>
  2596. <div class="workImg" v-if="w.type == 1">
  2597. <img :src="word" @click="openFile(w.works,w)" alt />
  2598. <!-- @click="openFile(w.works)" -->
  2599. <div
  2600. class="answerScore"
  2601. v-if="w.score"
  2602. @click.stop="openScore(w)"
  2603. :class="{
  2604. rightW:
  2605. w.userid == userid ||
  2606. tType == 1 ||
  2607. tType == 4 ||
  2608. w.ateacher == userid,
  2609. }"
  2610. >
  2611. {{ JSON.parse(w.score).wScore }}分
  2612. </div>
  2613. <div
  2614. class="answerScore"
  2615. @click.stop="openScore(w)"
  2616. v-else-if="courseDetail.userid == userid"
  2617. :class="{
  2618. rightW:
  2619. w.userid == userid ||
  2620. tType == 1 ||
  2621. tType == 4 ||
  2622. w.ateacher == userid,
  2623. }"
  2624. >
  2625. 评分
  2626. </div>
  2627. <img
  2628. class="deleteImg"
  2629. src="../assets/deleteworks.png"
  2630. v-if="
  2631. w.userid == userid || tType == 1 || tType == 4
  2632. "
  2633. @click.stop="deleteWorks(w.wid)"
  2634. alt
  2635. />
  2636. </div>
  2637. <div class="workImg" v-if="w.type == 3">
  2638. <img
  2639. style="cursor: pointer"
  2640. :src="video"
  2641. @click="openVideo(w)"
  2642. alt
  2643. />
  2644. <!-- @click="openVideo(w.works)" -->
  2645. <div
  2646. class="answerScore"
  2647. v-if="w.score"
  2648. @click.stop="openScore(w)"
  2649. :class="{
  2650. rightW:
  2651. w.userid == userid ||
  2652. tType == 1 ||
  2653. tType == 4 ||
  2654. w.ateacher == userid,
  2655. }"
  2656. >
  2657. {{ JSON.parse(w.score).wScore }}分
  2658. </div>
  2659. <div
  2660. class="answerScore"
  2661. @click.stop="openScore(w)"
  2662. v-else-if="courseDetail.userid == userid"
  2663. :class="{
  2664. rightW:
  2665. w.userid == userid ||
  2666. tType == 1 ||
  2667. tType == 4 ||
  2668. w.ateacher == userid,
  2669. }"
  2670. >
  2671. 评分
  2672. </div>
  2673. <img
  2674. class="deleteImg"
  2675. src="../assets/deleteworks.png"
  2676. v-if="
  2677. w.userid == userid || tType == 1 || tType == 4
  2678. "
  2679. @click.stop="deleteWorks(w.wid)"
  2680. alt
  2681. />
  2682. </div>
  2683. <div class="workImg" v-if="w.type == 12">
  2684. <img
  2685. style="cursor: pointer"
  2686. :src="word2"
  2687. @click="downloadFile(w.works)"
  2688. alt
  2689. />
  2690. <!-- @click="openVideo(w.works)" -->
  2691. <div
  2692. class="answerScore"
  2693. v-if="w.score"
  2694. @click.stop="openScore(w)"
  2695. :class="{
  2696. rightW:
  2697. w.userid == userid ||
  2698. tType == 1 ||
  2699. tType == 4 ||
  2700. w.ateacher == userid,
  2701. }"
  2702. >
  2703. {{ JSON.parse(w.score).wScore }}分
  2704. </div>
  2705. <div
  2706. class="answerScore"
  2707. @click.stop="openScore(w)"
  2708. v-else-if="courseDetail.userid == userid"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid ||
  2712. tType == 1 ||
  2713. tType == 4 ||
  2714. w.ateacher == userid,
  2715. }"
  2716. >
  2717. 评分
  2718. </div>
  2719. <img
  2720. class="deleteImg"
  2721. src="../assets/deleteworks.png"
  2722. v-if="
  2723. w.userid == userid || tType == 1 || tType == 4
  2724. "
  2725. @click.stop="deleteWorks(w.wid)"
  2726. alt
  2727. />
  2728. </div>
  2729. <div class="comment" style="min-width: 200px">
  2730. <div class="worksName">
  2731. <div>{{ w.sName }}</div>
  2732. </div>
  2733. <div class="commentList">
  2734. <div class="commentList">
  2735. <div
  2736. class="commentImg"
  2737. @click="
  2738. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2739. "
  2740. >
  2741. <img
  2742. :src="w.isLikes == true ? likes : noLikes"
  2743. alt=""
  2744. />
  2745. </div>
  2746. <div>{{ w.likesCount }}</div>
  2747. </div>
  2748. <div
  2749. class="commentList"
  2750. style="margin-right: 15px"
  2751. >
  2752. <div
  2753. class="commentImg"
  2754. @click="
  2755. commentOther(
  2756. w,
  2757. toolIndex,
  2758. wIndex,
  2759. null,
  2760. g.id
  2761. )
  2762. "
  2763. >
  2764. <img
  2765. src="../assets/icon/comment/comment.png"
  2766. alt=""
  2767. />
  2768. </div>
  2769. <div>{{ w.commentCount }}</div>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. </div>
  2774. </div>
  2775. <div class="group_work" v-else>暂无提交作业</div>
  2776. </div>
  2777. </div>
  2778. <div
  2779. :id="'tool-' + toolIndex"
  2780. :style="{
  2781. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2782. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2783. }"
  2784. class="worksDetailBox"
  2785. v-if="
  2786. worksStudent.length &&
  2787. worksStudent[toolIndex].length > 0
  2788. "
  2789. >
  2790. <div
  2791. class="works"
  2792. style="
  2793. width: 200px;
  2794. height: 140px;
  2795. margin: 10px 10px 10px 0;
  2796. border-radius: 15px;
  2797. box-shadow: 0 0 6px 1px #dfdada;
  2798. "
  2799. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2800. :key="wIndex"
  2801. :class="w.type == 1 ? 'isTypeOne' : ''"
  2802. >
  2803. <div class="workImg" v-if="w.type == 0">
  2804. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2805. <img
  2806. :src="w.works"
  2807. @click="previewImg(w.works,w)"
  2808. alt
  2809. />
  2810. <div
  2811. class="answerScore"
  2812. v-if="w.score"
  2813. @click.stop="openScore(w)"
  2814. :class="{
  2815. rightW:
  2816. w.userid == userid ||
  2817. tType == 1 ||
  2818. tType == 4 ||
  2819. w.ateacher == userid,
  2820. }"
  2821. >
  2822. {{ JSON.parse(w.score).wScore }}分
  2823. </div>
  2824. <div
  2825. class="answerScore"
  2826. @click.stop="openScore(w)"
  2827. v-else-if="courseDetail.userid == userid"
  2828. :class="{
  2829. rightW:
  2830. w.userid == userid ||
  2831. tType == 1 ||
  2832. tType == 4 ||
  2833. w.ateacher == userid,
  2834. }"
  2835. >
  2836. 评分
  2837. </div>
  2838. <img
  2839. class="deleteImg"
  2840. src="../assets/deleteworks.png"
  2841. v-if="
  2842. w.userid == userid || tType == 1 || tType == 4
  2843. "
  2844. @click.stop="deleteWorks(w.wid)"
  2845. alt
  2846. />
  2847. </div>
  2848. <div class="workImg" v-if="w.type == 1">
  2849. <img :src="word" @click="openFile(w.works,w)" alt />
  2850. <!-- @click="openFile(w.works)" -->
  2851. <div
  2852. class="answerScore"
  2853. v-if="w.score"
  2854. @click.stop="openScore(w)"
  2855. :class="{
  2856. rightW:
  2857. w.userid == userid ||
  2858. tType == 1 ||
  2859. tType == 4 ||
  2860. w.ateacher == userid,
  2861. }"
  2862. >
  2863. {{ JSON.parse(w.score).wScore }}分
  2864. </div>
  2865. <div
  2866. class="answerScore"
  2867. @click.stop="openScore(w)"
  2868. v-else-if="courseDetail.userid == userid"
  2869. :class="{
  2870. rightW:
  2871. w.userid == userid ||
  2872. tType == 1 ||
  2873. tType == 4 ||
  2874. w.ateacher == userid,
  2875. }"
  2876. >
  2877. 评分
  2878. </div>
  2879. <img
  2880. class="deleteImg"
  2881. src="../assets/deleteworks.png"
  2882. v-if="
  2883. w.userid == userid || tType == 1 || tType == 4
  2884. "
  2885. @click.stop="deleteWorks(w.wid)"
  2886. alt
  2887. />
  2888. </div>
  2889. <div class="workImg" v-if="w.type == 3">
  2890. <img
  2891. style="cursor: pointer"
  2892. :src="video"
  2893. @click="openVideo(w)"
  2894. alt
  2895. />
  2896. <!-- @click="openVideo(w.works)" -->
  2897. <div
  2898. class="answerScore"
  2899. v-if="w.score"
  2900. @click.stop="openScore(w)"
  2901. :class="{
  2902. rightW:
  2903. w.userid == userid ||
  2904. tType == 1 ||
  2905. tType == 4 ||
  2906. w.ateacher == userid,
  2907. }"
  2908. >
  2909. {{ JSON.parse(w.score).wScore }}分
  2910. </div>
  2911. <div
  2912. class="answerScore"
  2913. @click.stop="openScore(w)"
  2914. v-else-if="courseDetail.userid == userid"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. 评分
  2924. </div>
  2925. <img
  2926. class="deleteImg"
  2927. src="../assets/deleteworks.png"
  2928. v-if="
  2929. w.userid == userid || tType == 1 || tType == 4
  2930. "
  2931. @click.stop="deleteWorks(w.wid)"
  2932. alt
  2933. />
  2934. </div>
  2935. <div class="workImg" v-if="w.type == 12">
  2936. <img
  2937. style="cursor: pointer"
  2938. :src="word2"
  2939. @click="downloadFile(w.works)"
  2940. alt
  2941. />
  2942. <!-- @click="openVideo(w.works)" -->
  2943. <div
  2944. class="answerScore"
  2945. v-if="w.score"
  2946. @click.stop="openScore(w)"
  2947. :class="{
  2948. rightW:
  2949. w.userid == userid ||
  2950. tType == 1 ||
  2951. tType == 4 ||
  2952. w.ateacher == userid,
  2953. }"
  2954. >
  2955. {{ JSON.parse(w.score).wScore }}分
  2956. </div>
  2957. <div
  2958. class="answerScore"
  2959. @click.stop="openScore(w)"
  2960. v-else-if="courseDetail.userid == userid"
  2961. :class="{
  2962. rightW:
  2963. w.userid == userid ||
  2964. tType == 1 ||
  2965. tType == 4 ||
  2966. w.ateacher == userid,
  2967. }"
  2968. >
  2969. 评分
  2970. </div>
  2971. <img
  2972. class="deleteImg"
  2973. src="../assets/deleteworks.png"
  2974. v-if="
  2975. w.userid == userid || tType == 1 || tType == 4
  2976. "
  2977. @click.stop="deleteWorks(w.wid)"
  2978. alt
  2979. />
  2980. </div>
  2981. <div class="comment" style="min-width: 200px">
  2982. <div class="worksName">
  2983. <div>{{ w.sName }}</div>
  2984. </div>
  2985. <div class="commentList">
  2986. <div class="commentList">
  2987. <div
  2988. class="commentImg"
  2989. @click="
  2990. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2991. "
  2992. >
  2993. <img
  2994. :src="w.isLikes == true ? likes : noLikes"
  2995. alt=""
  2996. />
  2997. </div>
  2998. <div>{{ w.likesCount }}</div>
  2999. </div>
  3000. <div class="commentList" style="margin-right: 15px">
  3001. <div
  3002. class="commentImg"
  3003. @click="commentOther(w, toolIndex, wIndex)"
  3004. >
  3005. <img
  3006. src="../assets/icon/comment/comment.png"
  3007. alt=""
  3008. />
  3009. </div>
  3010. <div>{{ w.commentCount }}</div>
  3011. </div>
  3012. </div>
  3013. </div>
  3014. </div>
  3015. </div>
  3016. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3017. 未提交
  3018. </div>
  3019. <div
  3020. class="noWorksS"
  3021. v-if="noWorksS && noWorksS[toolIndex].length"
  3022. >
  3023. <div
  3024. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3025. :key="sIndex"
  3026. class="noWorksName"
  3027. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3028. >
  3029. <el-tooltip effect="dark" :content="s.student" placement="top">
  3030. <span>{{ s.student }}</span>
  3031. </el-tooltip>
  3032. </div>
  3033. </div>
  3034. </div>
  3035. <div
  3036. v-if="
  3037. tType &&
  3038. ((tType == 2 && sIsOpen == true) ||
  3039. tType == 1 ||
  3040. tType == 4) &&
  3041. tool.tool.indexOf(70) != -1
  3042. "
  3043. class="worksBox"
  3044. >
  3045. <div
  3046. class="zuoyeYulan"
  3047. v-if="
  3048. (worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0)
  3050. "
  3051. >
  3052. <div class="worksTop">
  3053. <div>作业预览</div>
  3054. <div
  3055. class="corOpen"
  3056. @click="contract(toolIndex)"
  3057. v-if="
  3058. (isCloseList[toolIndex].isCloseBoolean) &&
  3059. isCloseList[toolIndex].isClose == 0
  3060. "
  3061. >
  3062. 折叠
  3063. </div>
  3064. <div
  3065. class="corOpen"
  3066. @click="contract(toolIndex)"
  3067. v-if="isCloseList[toolIndex].isClose == 1"
  3068. >
  3069. 展开
  3070. </div>
  3071. </div>
  3072. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3073. </div>
  3074. <div
  3075. :id="'tool-' + toolIndex"
  3076. :style="{
  3077. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3078. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3079. }"
  3080. class="worksDetailBox"
  3081. v-if="
  3082. worksStudent.length &&
  3083. worksStudent[toolIndex].length > 0
  3084. "
  3085. >
  3086. <div
  3087. class="works"
  3088. style="
  3089. width: 200px;
  3090. height: 140px;
  3091. margin: 10px 10px 10px 0;
  3092. border-radius: 15px;
  3093. box-shadow: 0 0 6px 1px #dfdada;
  3094. "
  3095. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3096. :key="wIndex"
  3097. :class="w.type == 1 ? 'isTypeOne' : ''"
  3098. >
  3099. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3100. <img :src="word" alt />
  3101. <img
  3102. class="deleteImg"
  3103. src="../assets/deleteworks.png"
  3104. v-if="
  3105. w.userid == userid || tType == 1 || tType == 4
  3106. "
  3107. @click.stop="deleteWorks(w.wid)"
  3108. alt
  3109. />
  3110. </div>
  3111. <div class="comment" style="min-width: 200px">
  3112. <div class="worksName">
  3113. <div>{{ w.sName }}</div>
  3114. </div>
  3115. </div>
  3116. </div>
  3117. </div>
  3118. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3119. 未提交
  3120. </div>
  3121. <div
  3122. class="noWorksS"
  3123. v-if="noWorksS && noWorksS[toolIndex].length"
  3124. >
  3125. <div
  3126. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3127. :key="sIndex"
  3128. class="noWorksName"
  3129. >
  3130. <el-tooltip effect="dark" :content="s.student" placement="top">
  3131. <span>{{ s.student }}</span>
  3132. </el-tooltip>
  3133. </div>
  3134. </div>
  3135. </div>
  3136. <div
  3137. v-if="
  3138. tType &&
  3139. tType == 2 &&
  3140. !sIsOpen &&
  3141. tool.tool.indexOf(70) != -1
  3142. "
  3143. class="worksBox"
  3144. >
  3145. <div
  3146. class="zuoyeYulan"
  3147. v-if="workStudent[toolIndex].length > 0"
  3148. >
  3149. <span class="worksTitle">作业预览</span>
  3150. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3151. </div>
  3152. <div
  3153. class="worksDetailBox"
  3154. v-if="workStudent[toolIndex].length > 0"
  3155. >
  3156. <div
  3157. class="works"
  3158. style="
  3159. width: 200px;
  3160. height: 140px;
  3161. margin: 10px 10px 10px 0;
  3162. box-shadow: 0 0 6px 1px #dfdada;
  3163. "
  3164. v-for="(w, wIndex) in workStudent[toolIndex]"
  3165. :key="wIndex"
  3166. >
  3167. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3168. <img :src="word" alt />
  3169. <img
  3170. class="deleteImg"
  3171. src="../assets/deleteworks.png"
  3172. v-if="
  3173. w.userid == userid || tType == 1 || tType == 4
  3174. "
  3175. @click.stop="deleteWorks(w.wid)"
  3176. alt
  3177. />
  3178. </div>
  3179. <div class="worksName">
  3180. <div>{{ w.sName }}</div>
  3181. </div>
  3182. </div>
  3183. </div>
  3184. </div>
  3185. <div
  3186. v-if="
  3187. tType &&
  3188. ((tType == 2 && sIsOpen == true) ||
  3189. tType == 1 ||
  3190. tType == 4) &&
  3191. tool.tool.indexOf(32) != -1
  3192. "
  3193. class="worksBox"
  3194. >
  3195. <div
  3196. class="zuoyeYulan"
  3197. v-if="
  3198. worksStudent.length &&
  3199. worksStudent[toolIndex].length > 0
  3200. "
  3201. >
  3202. <div class="worksTop">
  3203. <div>作业预览</div>
  3204. <div
  3205. class="corOpen"
  3206. @click="contract(toolIndex)"
  3207. v-if="
  3208. (isCloseList[toolIndex].isCloseBoolean) &&
  3209. isCloseList[toolIndex].isClose == 0
  3210. "
  3211. >
  3212. 折叠
  3213. </div>
  3214. <div
  3215. class="corOpen"
  3216. @click="contract(toolIndex)"
  3217. v-if="isCloseList[toolIndex].isClose == 1"
  3218. >
  3219. 展开
  3220. </div>
  3221. </div>
  3222. </div>
  3223. <div
  3224. :id="'tool-' + toolIndex"
  3225. class="worksDetailBox"
  3226. :style="{
  3227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3229. }"
  3230. v-if="
  3231. worksStudent.length &&
  3232. worksStudent[toolIndex].length > 0
  3233. "
  3234. >
  3235. <div
  3236. class="works"
  3237. style="
  3238. width: 200px;
  3239. height: 140px;
  3240. margin: 10px 10px 10px 0;
  3241. border-radius: 15px;
  3242. box-shadow: 0 0 6px 1px #dfdada;
  3243. "
  3244. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3245. :key="wIndex"
  3246. :class="w.type == 1 ? 'isTypeOne' : ''"
  3247. >
  3248. <div class="workImg">
  3249. <img
  3250. :src="word2"
  3251. @click="downloadFile(w.works)"
  3252. alt
  3253. />
  3254. <div
  3255. class="answerScore"
  3256. v-if="w.score"
  3257. @click.stop="openScore(w)"
  3258. :class="{
  3259. rightW:
  3260. w.userid == userid ||
  3261. tType == 1 ||
  3262. tType == 4 ||
  3263. w.ateacher == userid,
  3264. }"
  3265. >
  3266. {{ JSON.parse(w.score).wScore }}分
  3267. </div>
  3268. <div
  3269. class="answerScore"
  3270. @click.stop="openScore(w)"
  3271. v-else-if="courseDetail.userid == userid"
  3272. :class="{
  3273. rightW:
  3274. w.userid == userid ||
  3275. tType == 1 ||
  3276. tType == 4 ||
  3277. w.ateacher == userid,
  3278. }"
  3279. >
  3280. 评分
  3281. </div>
  3282. <img
  3283. class="deleteImg"
  3284. src="../assets/deleteworks.png"
  3285. v-if="
  3286. w.userid == userid || tType == 1 || tType == 4
  3287. "
  3288. @click.stop="deleteWorks(w.wid)"
  3289. alt
  3290. />
  3291. </div>
  3292. <div class="comment" style="min-width: 200px">
  3293. <div class="worksName">
  3294. <div>{{ w.sName }}</div>
  3295. </div>
  3296. <div class="commentList">
  3297. <div class="commentList">
  3298. <div
  3299. class="commentImg"
  3300. @click="
  3301. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3302. "
  3303. >
  3304. <img
  3305. :src="w.isLikes == true ? likes : noLikes"
  3306. alt=""
  3307. />
  3308. </div>
  3309. <div>{{ w.likesCount }}</div>
  3310. </div>
  3311. <div class="commentList" style="margin-right: 15px">
  3312. <div
  3313. class="commentImg"
  3314. @click="commentOther(w, toolIndex, wIndex)"
  3315. >
  3316. <img
  3317. src="../assets/icon/comment/comment.png"
  3318. alt=""
  3319. />
  3320. </div>
  3321. <div>{{ w.commentCount }}</div>
  3322. </div>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3328. 未提交
  3329. </div>
  3330. <div
  3331. class="noWorksS"
  3332. v-if="noWorksS && noWorksS[toolIndex].length"
  3333. >
  3334. <div
  3335. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3336. :key="sIndex"
  3337. class="noWorksName"
  3338. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3339. >
  3340. <el-tooltip effect="dark" :content="s.student" placement="top">
  3341. <span>{{ s.student }}</span>
  3342. </el-tooltip>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. ((tType == 2 && sIsOpen == true) ||
  3350. tType == 1 ||
  3351. tType == 4) &&
  3352. tool.tool.indexOf(57) != -1
  3353. "
  3354. class="worksBox"
  3355. >
  3356. <div
  3357. class="zuoyeYulan"
  3358. v-if="
  3359. worksStudent.length &&
  3360. worksStudent[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div class="worksTop">
  3364. <div>作业预览</div>
  3365. <div
  3366. class="corOpen"
  3367. @click="contract(toolIndex)"
  3368. v-if="
  3369. (isCloseList[toolIndex].isCloseBoolean) &&
  3370. isCloseList[toolIndex].isClose == 0
  3371. "
  3372. >
  3373. 折叠
  3374. </div>
  3375. <div
  3376. class="corOpen"
  3377. @click="contract(toolIndex)"
  3378. v-if="isCloseList[toolIndex].isClose == 1"
  3379. >
  3380. 展开
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div
  3385. :id="'tool-' + toolIndex"
  3386. class="worksDetailBox"
  3387. :style="{
  3388. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3389. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3390. }"
  3391. v-if="
  3392. worksStudent.length &&
  3393. worksStudent[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div
  3397. class="works"
  3398. style="
  3399. width: 200px;
  3400. height: 140px;
  3401. margin: 10px 10px 10px 0;
  3402. border-radius: 15px;
  3403. box-shadow: 0 0 6px 1px #dfdada;
  3404. "
  3405. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3406. :key="wIndex"
  3407. :class="w.type == 1 ? 'isTypeOne' : ''"
  3408. >
  3409. <div class="workImg">
  3410. <img
  3411. :src="word2"
  3412. @click="downloadFile(w.works)"
  3413. v-if="w.type == 12"
  3414. alt
  3415. />
  3416. <img
  3417. :src="word2"
  3418. @click="
  3419. openCocoPi(57, toolIndex, w.userid, w.sName)
  3420. "
  3421. v-else-if="w.type == 15"
  3422. alt
  3423. />
  3424. <div
  3425. class="answerScore"
  3426. v-if="w.score"
  3427. @click.stop="openScore(w)"
  3428. :class="{
  3429. rightW:
  3430. w.userid == userid ||
  3431. tType == 1 ||
  3432. tType == 4 ||
  3433. w.ateacher == userid,
  3434. }"
  3435. >
  3436. {{ JSON.parse(w.score).wScore }}分
  3437. </div>
  3438. <div
  3439. class="answerScore"
  3440. @click.stop="openScore(w)"
  3441. v-else-if="courseDetail.userid == userid"
  3442. :class="{
  3443. rightW:
  3444. w.userid == userid ||
  3445. tType == 1 ||
  3446. tType == 4 ||
  3447. w.ateacher == userid,
  3448. }"
  3449. >
  3450. 评分
  3451. </div>
  3452. <img
  3453. class="deleteImg"
  3454. src="../assets/deleteworks.png"
  3455. v-if="
  3456. w.userid == userid || tType == 1 || tType == 4
  3457. "
  3458. @click.stop="deleteWorks(w.wid)"
  3459. alt
  3460. />
  3461. </div>
  3462. <div class="comment" style="min-width: 200px">
  3463. <div class="worksName">
  3464. <div>{{ w.sName }}</div>
  3465. </div>
  3466. <div class="commentList">
  3467. <div class="commentList">
  3468. <div
  3469. class="commentImg"
  3470. @click="
  3471. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3472. "
  3473. >
  3474. <img
  3475. :src="w.isLikes == true ? likes : noLikes"
  3476. alt=""
  3477. />
  3478. </div>
  3479. <div>{{ w.likesCount }}</div>
  3480. </div>
  3481. <div class="commentList" style="margin-right: 15px">
  3482. <div
  3483. class="commentImg"
  3484. @click="commentOther(w, toolIndex, wIndex)"
  3485. >
  3486. <img
  3487. src="../assets/icon/comment/comment.png"
  3488. alt=""
  3489. />
  3490. </div>
  3491. <div>{{ w.commentCount }}</div>
  3492. </div>
  3493. </div>
  3494. </div>
  3495. </div>
  3496. </div>
  3497. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3498. 未提交
  3499. </div>
  3500. <div
  3501. class="noWorksS"
  3502. v-if="noWorksS && noWorksS[toolIndex].length"
  3503. >
  3504. <div
  3505. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3506. :key="sIndex"
  3507. class="noWorksName"
  3508. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3509. >
  3510. <el-tooltip effect="dark" :content="s.student" placement="top">
  3511. <span>{{ s.student }}</span>
  3512. </el-tooltip>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3517. <div
  3518. class="zuoyeYulan"
  3519. v-if="
  3520. worksStudent.length &&
  3521. worksStudent[toolIndex].length > 0
  3522. "
  3523. >
  3524. <span class="worksTitle">作业预览</span>
  3525. <div
  3526. class="corOpen"
  3527. @click="contract(toolIndex)"
  3528. v-if="
  3529. (isCloseList[toolIndex].isCloseBoolean) &&
  3530. isCloseList[toolIndex].isClose == 0
  3531. "
  3532. >
  3533. 折叠
  3534. </div>
  3535. <div
  3536. class="corOpen"
  3537. @click="contract(toolIndex)"
  3538. v-if="isCloseList[toolIndex].isClose == 1"
  3539. >
  3540. 展开
  3541. </div>
  3542. </div>
  3543. <div
  3544. :id="'tool-' + toolIndex"
  3545. :style="{
  3546. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3547. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3548. }"
  3549. class="worksDetailBox"
  3550. v-if="
  3551. worksStudent.length &&
  3552. worksStudent[toolIndex].length > 0
  3553. "
  3554. >
  3555. <div
  3556. class="works"
  3557. style="
  3558. width: 200px;
  3559. height: 140px;
  3560. margin: 10px 10px 10px 0;
  3561. border-radius: 15px;
  3562. box-shadow: 0 0 6px 1px #dfdada;
  3563. "
  3564. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3565. :key="wIndex"
  3566. :class="w.type == 1 ? 'isTypeOne' : ''"
  3567. >
  3568. <div class="workImg" v-if="w.type == 0">
  3569. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3570. <img
  3571. :src="w.works"
  3572. @click="previewImg(w.works,w)"
  3573. alt
  3574. />
  3575. <div
  3576. class="answerScore"
  3577. v-if="w.score"
  3578. @click.stop="openScore(w)"
  3579. :class="{
  3580. rightW:
  3581. w.userid == userid ||
  3582. tType == 1 ||
  3583. tType == 4 ||
  3584. w.ateacher == userid,
  3585. }"
  3586. >
  3587. {{ JSON.parse(w.score).wScore }}分
  3588. </div>
  3589. <div
  3590. class="answerScore"
  3591. @click.stop="openScore(w)"
  3592. v-else-if="courseDetail.userid == userid"
  3593. :class="{
  3594. rightW:
  3595. w.userid == userid ||
  3596. tType == 1 ||
  3597. tType == 4 ||
  3598. w.ateacher == userid,
  3599. }"
  3600. >
  3601. 评分
  3602. </div>
  3603. <img
  3604. class="deleteImg"
  3605. src="../assets/deleteworks.png"
  3606. v-if="
  3607. w.userid == userid || tType == 1 || tType == 4
  3608. "
  3609. @click.stop="deleteWorks(w.wid)"
  3610. alt
  3611. />
  3612. </div>
  3613. <div
  3614. class="workImg"
  3615. style="cursor: pointer"
  3616. v-if="w.type == 1"
  3617. >
  3618. <img :src="word" @click="openFile(w.works,w)" alt />
  3619. <!-- @click="openFile(w.works)" -->
  3620. <div
  3621. class="answerScore"
  3622. v-if="w.score"
  3623. @click.stop="openScore(w)"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. {{ JSON.parse(w.score).wScore }}分
  3633. </div>
  3634. <div
  3635. class="answerScore"
  3636. @click.stop="openScore(w)"
  3637. v-else-if="courseDetail.userid == userid"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. 评分
  3647. </div>
  3648. <img
  3649. class="deleteImg"
  3650. src="../assets/deleteworks.png"
  3651. v-if="
  3652. w.userid == userid || tType == 1 || tType == 4
  3653. "
  3654. @click.stop="deleteWorks(w.wid)"
  3655. alt
  3656. />
  3657. </div>
  3658. <div class="workImg" v-if="w.type == 3">
  3659. <img
  3660. style="cursor: pointer"
  3661. :src="video"
  3662. @click="openVideo(w)"
  3663. alt
  3664. />
  3665. <!-- @click="openVideo(w.works)" -->
  3666. <div
  3667. class="answerScore"
  3668. v-if="w.score"
  3669. @click.stop="openScore(w)"
  3670. :class="{
  3671. rightW:
  3672. w.userid == userid ||
  3673. tType == 1 ||
  3674. tType == 4 ||
  3675. w.ateacher == userid,
  3676. }"
  3677. >
  3678. {{ JSON.parse(w.score).wScore }}分
  3679. </div>
  3680. <div
  3681. class="answerScore"
  3682. @click.stop="openScore(w)"
  3683. v-else-if="courseDetail.userid == userid"
  3684. :class="{
  3685. rightW:
  3686. w.userid == userid ||
  3687. tType == 1 ||
  3688. tType == 4 ||
  3689. w.ateacher == userid,
  3690. }"
  3691. >
  3692. 评分
  3693. </div>
  3694. <img
  3695. class="deleteImg"
  3696. src="../assets/deleteworks.png"
  3697. v-if="
  3698. w.userid == userid || tType == 1 || tType == 4
  3699. "
  3700. @click.stop="deleteWorks(w.wid)"
  3701. alt
  3702. />
  3703. </div>
  3704. <div class="comment" style="min-width: 200px">
  3705. <div class="worksName">
  3706. <div
  3707. style="cursor: pointer"
  3708. @click="
  3709. openSname(w.sName, w.wid, toolIndex, w.userid)
  3710. "
  3711. >
  3712. {{ w.sName }}
  3713. </div>
  3714. </div>
  3715. <div class="commentList">
  3716. <div class="commentList">
  3717. <div
  3718. class="commentImg"
  3719. @click="
  3720. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3721. "
  3722. >
  3723. <img
  3724. :src="w.isLikes == true ? likes : noLikes"
  3725. alt=""
  3726. />
  3727. </div>
  3728. <div>{{ w.likesCount }}</div>
  3729. </div>
  3730. <div class="commentList" style="margin-right: 15px">
  3731. <div
  3732. class="commentImg"
  3733. @click="commentOther(w, toolIndex, wIndex)"
  3734. >
  3735. <img
  3736. src="../assets/icon/comment/comment.png"
  3737. alt=""
  3738. />
  3739. </div>
  3740. <div>{{ w.commentCount }}</div>
  3741. </div>
  3742. </div>
  3743. </div>
  3744. </div>
  3745. </div>
  3746. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3747. 未提交
  3748. </div>
  3749. <div
  3750. class="noWorksS"
  3751. v-if="noWorksS && noWorksS[toolIndex].length"
  3752. >
  3753. <div
  3754. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3755. :key="sIndex"
  3756. class="noWorksName"
  3757. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3758. >
  3759. <el-tooltip effect="dark" :content="s.student" placement="top">
  3760. <span>{{ s.student }}</span>
  3761. </el-tooltip>
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div
  3766. v-if="
  3767. tType &&
  3768. ((tType == 2 && sIsOpen == true) ||
  3769. tType == 1 ||
  3770. tType == 4) &&
  3771. tool.tool.indexOf(4) != -1 &&
  3772. (tool.askJson[0].answer ||
  3773. tool.askJson[0].answer === 0) &&
  3774. checkJson[toolIndex].length
  3775. "
  3776. class="xuan_right_box"
  3777. >
  3778. <div
  3779. class="tool_right_box"
  3780. v-for="(item, index) in tool.askJson"
  3781. :key="index"
  3782. >
  3783. <div style="width: calc(100% - 30px);">
  3784. <el-tooltip
  3785. effect="light"
  3786. :content="index + 1 + '、' + item.askstitle"
  3787. placement="top"
  3788. popper-class="text_tooltip"
  3789. >
  3790. <div
  3791. style="
  3792. width: calc(100% - 130px);
  3793. display: block;
  3794. white-space: nowrap;
  3795. overflow: hidden;
  3796. text-overflow: ellipsis;
  3797. word-break: break-word;
  3798. cursor: pointer;
  3799. "
  3800. >
  3801. {{ index + 1 + "、" + item.askstitle }}
  3802. </div>
  3803. </el-tooltip>
  3804. </div>
  3805. <div class="right_box_xuan">
  3806. <span>正确率</span>
  3807. <span>{{
  3808. (checkJson[toolIndex][index].right
  3809. ? checkJson[toolIndex][index].right
  3810. : 0) + "%"
  3811. }}</span>
  3812. </div>
  3813. </div>
  3814. </div>
  3815. <div
  3816. class="xuan_right_box"
  3817. style="background: unset; padding: 0 10px"
  3818. v-if="
  3819. tType &&
  3820. ((tType == 2 && sIsOpen == true) ||
  3821. tType == 1 ||
  3822. tType == 4) &&
  3823. tool.tool.indexOf(4) != -1
  3824. "
  3825. >
  3826. <AskStatic
  3827. v-if="
  3828. worksStudent.length &&
  3829. worksStudent[toolIndex].length > 0
  3830. "
  3831. :askJSON="tool"
  3832. :checkJson="checkJson[toolIndex]"
  3833. ></AskStatic>
  3834. </div>
  3835. <div
  3836. v-if="
  3837. tType &&
  3838. ((tType == 2 && sIsOpen == true) ||
  3839. tType == 1 ||
  3840. tType == 4) &&
  3841. tool.tool.indexOf(4) != -1
  3842. "
  3843. class="worksBox"
  3844. >
  3845. <div
  3846. class="zuoyeYulan"
  3847. v-if="
  3848. worksStudent.length &&
  3849. worksStudent[toolIndex].length > 0
  3850. "
  3851. >
  3852. <div class="worksTop">
  3853. <div>作业预览</div>
  3854. <div
  3855. class="corOpen"
  3856. @click="contract(toolIndex)"
  3857. v-if="
  3858. (isCloseList[toolIndex].isCloseBoolean) &&
  3859. isCloseList[toolIndex].isClose == 0
  3860. "
  3861. >
  3862. 折叠
  3863. </div>
  3864. <div
  3865. class="corOpen"
  3866. @click="contract(toolIndex)"
  3867. v-if="isCloseList[toolIndex].isClose == 1"
  3868. >
  3869. 展开
  3870. </div>
  3871. </div>
  3872. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3873. </div>
  3874. <div>
  3875. <div
  3876. :id="'tool-' + toolIndex"
  3877. :style="{
  3878. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3879. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3880. }"
  3881. class="worksDetailBox"
  3882. v-if="
  3883. worksStudent.length &&
  3884. worksStudent[toolIndex].length > 0
  3885. "
  3886. >
  3887. <div
  3888. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3889. :key="wIndex"
  3890. class="isWorksName2"
  3891. @click="
  3892. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3893. "
  3894. >
  3895. {{ w.sName }}
  3896. <img
  3897. class="deleteImg deleteImg2"
  3898. src="../assets/deleteworks.png"
  3899. v-if="
  3900. w.userid == userid || tType == 1 || tType == 4
  3901. "
  3902. @click.stop="deleteWorks(w.wid)"
  3903. alt
  3904. />
  3905. </div>
  3906. <!-- <div class="works" style="
  3907. width: 200px;
  3908. height: 140px;
  3909. border-radius: 10px;
  3910. box-shadow: 0 0 6px 1px #dfdada;
  3911. overflow: hidden;
  3912. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3913. <div class="workImg">
  3914. <img src="../assets/icon/works/noImg.png" @click="
  3915. openTools(
  3916. 4,
  3917. toolIndex,
  3918. taskCount,
  3919. w.works,
  3920. w.sName
  3921. )
  3922. " alt />
  3923. </div>
  3924. <div class="worksName">
  3925. <div>{{ w.sName }}</div>
  3926. <div>{{ w.time }}</div>
  3927. </div>
  3928. </div> -->
  3929. </div>
  3930. </div>
  3931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3932. 未提交
  3933. </div>
  3934. <div
  3935. class="noWorksS"
  3936. v-if="noWorksS && noWorksS[toolIndex].length"
  3937. >
  3938. <div
  3939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3940. :key="sIndex"
  3941. class="noWorksName"
  3942. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3943. >
  3944. <el-tooltip effect="dark" :content="s.student" placement="top">
  3945. <span>{{ s.student }}</span>
  3946. </el-tooltip>
  3947. </div>
  3948. </div>
  3949. </div>
  3950. <div
  3951. v-if="
  3952. tType &&
  3953. ((tType == 2 && sIsOpen == true) ||
  3954. tType == 1 ||
  3955. tType == 4) &&
  3956. tool.tool.indexOf(45) != -1 &&
  3957. (tool.testJson.testJson[0].answer ||
  3958. tool.testJson.testJson[0].answer === 0) &&
  3959. checkJson[toolIndex].length
  3960. "
  3961. class="xuan_right_box"
  3962. >
  3963. <div
  3964. class="tool_right_box"
  3965. v-for="(item, index) in tool.testJson.testJson"
  3966. :key="index"
  3967. >
  3968. <div class="right_box_xuan" style="margin-right: 10px">
  3969. <span>正确率</span>
  3970. <span>{{
  3971. (checkJson[toolIndex][index].right
  3972. ? checkJson[toolIndex][index].right
  3973. : 0) + "%"
  3974. }}</span>
  3975. </div>
  3976. <div style="width: calc(100% - 30px);">
  3977. <el-tooltip
  3978. effect="light"
  3979. :content="index + 1 + '、' + item.teststitle"
  3980. placement="top"
  3981. popper-class="text_tooltip"
  3982. >
  3983. <div
  3984. style="
  3985. width: calc(100% - 130px);
  3986. display: block;
  3987. white-space: nowrap;
  3988. overflow: hidden;
  3989. text-overflow: ellipsis;
  3990. word-break: break-word;
  3991. cursor: pointer;
  3992. "
  3993. >
  3994. {{ index + 1 + "、" + item.teststitle }}
  3995. </div>
  3996. </el-tooltip>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. <div
  4001. class="xuan_right_box"
  4002. style="background: unset; padding: 0 10px; width: 91.5%"
  4003. v-if="
  4004. tType &&
  4005. ((tType == 2 && sIsOpen == true) ||
  4006. tType == 1 ||
  4007. tType == 4) &&
  4008. tool.tool.indexOf(45) != -1
  4009. "
  4010. >
  4011. <AskStatic2
  4012. v-if="
  4013. worksStudent.length &&
  4014. worksStudent[toolIndex].length > 0
  4015. "
  4016. :askJSON="tool"
  4017. :checkJson="checkJson[toolIndex]"
  4018. ></AskStatic2>
  4019. </div>
  4020. <div
  4021. v-if="
  4022. tType &&
  4023. ((tType == 2 && sIsOpen == true) ||
  4024. tType == 1 ||
  4025. tType == 4) &&
  4026. tool.tool.indexOf(45) != -1
  4027. "
  4028. class="worksBox"
  4029. >
  4030. <div
  4031. class="zuoyeYulan"
  4032. v-if="
  4033. worksStudent.length &&
  4034. worksStudent[toolIndex].length > 0
  4035. "
  4036. >
  4037. <div class="worksTop">
  4038. <div>作业预览</div>
  4039. <div
  4040. class="corOpen"
  4041. @click="contract(toolIndex)"
  4042. v-if="
  4043. (isCloseList[toolIndex].isCloseBoolean) &&
  4044. isCloseList[toolIndex].isClose == 0
  4045. "
  4046. >
  4047. 折叠
  4048. </div>
  4049. <div
  4050. class="corOpen"
  4051. @click="contract(toolIndex)"
  4052. v-if="isCloseList[toolIndex].isClose == 1"
  4053. >
  4054. 展开
  4055. </div>
  4056. </div>
  4057. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4058. </div>
  4059. <div>
  4060. <div
  4061. :id="'tool-' + toolIndex"
  4062. :style="{
  4063. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4064. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4065. }"
  4066. class="worksDetailBox"
  4067. v-if="
  4068. worksStudent.length &&
  4069. worksStudent[toolIndex].length > 0
  4070. "
  4071. >
  4072. <div
  4073. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4074. :key="wIndex"
  4075. class="isWorksName2"
  4076. @click="
  4077. openTools(
  4078. 45,
  4079. toolIndex,
  4080. taskCount,
  4081. w.works,
  4082. w.sName
  4083. )
  4084. "
  4085. >
  4086. {{ w.sName }}
  4087. <img
  4088. class="deleteImg deleteImg2"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. </div>
  4098. </div>
  4099. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4100. 未提交
  4101. </div>
  4102. <div
  4103. class="noWorksS"
  4104. v-if="noWorksS && noWorksS[toolIndex].length"
  4105. >
  4106. <div
  4107. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4108. :key="sIndex"
  4109. class="noWorksName"
  4110. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4111. >
  4112. <el-tooltip effect="dark" :content="s.student" placement="top">
  4113. <span>{{ s.student }}</span>
  4114. </el-tooltip>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. <div
  4119. v-if="
  4120. tType &&
  4121. ((tType == 2 && sIsOpen == true) ||
  4122. tType == 1 ||
  4123. tType == 4) &&
  4124. tool.tool.indexOf(69) != -1
  4125. "
  4126. class="worksBox"
  4127. >
  4128. <div
  4129. class="zuoyeYulan"
  4130. v-if="
  4131. worksStudent.length &&
  4132. worksStudent[toolIndex].length > 0
  4133. "
  4134. >
  4135. <div class="worksTop">
  4136. <div>作业预览</div>
  4137. <div
  4138. class="corOpen"
  4139. @click="contract(toolIndex)"
  4140. v-if="
  4141. (isCloseList[toolIndex].isCloseBoolean) &&
  4142. isCloseList[toolIndex].isClose == 0
  4143. "
  4144. >
  4145. 折叠
  4146. </div>
  4147. <div
  4148. class="corOpen"
  4149. @click="contract(toolIndex)"
  4150. v-if="isCloseList[toolIndex].isClose == 1"
  4151. >
  4152. 展开
  4153. </div>
  4154. </div>
  4155. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4156. </div>
  4157. <div>
  4158. <div
  4159. :id="'tool-' + toolIndex"
  4160. :style="{
  4161. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4162. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4163. }"
  4164. class="worksDetailBox"
  4165. v-if="
  4166. worksStudent.length &&
  4167. worksStudent[toolIndex].length > 0
  4168. "
  4169. >
  4170. <div
  4171. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4172. :key="wIndex"
  4173. class="isWorksName2"
  4174. style="width: 160px;height: 65px;line-height: 65px;"
  4175. @click="
  4176. openTools(
  4177. 69,
  4178. toolIndex,
  4179. taskCount,
  4180. w.works,
  4181. w.sName,
  4182. w.wid
  4183. )
  4184. "
  4185. >
  4186. {{ w.sName }}
  4187. <img
  4188. class="deleteImg1"
  4189. src="../assets/evaEnglish.png"
  4190. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4191. alt
  4192. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4193. />
  4194. <img
  4195. class="deleteImg deleteImg2"
  4196. src="../assets/deleteworks.png"
  4197. v-if="
  4198. w.userid == userid || tType == 1 || tType == 4
  4199. "
  4200. @click.stop="deleteWorks(w.wid)"
  4201. alt
  4202. />
  4203. </div>
  4204. </div>
  4205. </div>
  4206. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4207. 未提交
  4208. </div>
  4209. <div
  4210. class="noWorksS"
  4211. v-if="noWorksS && noWorksS[toolIndex].length"
  4212. >
  4213. <div
  4214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4215. :key="sIndex"
  4216. class="noWorksName"
  4217. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4218. >
  4219. <el-tooltip effect="dark" :content="s.student" placement="top">
  4220. <span>{{ s.student }}</span>
  4221. </el-tooltip>
  4222. </div>
  4223. </div>
  4224. </div>
  4225. <div
  4226. v-if="
  4227. tType &&
  4228. ((tType == 2 && sIsOpen == true) ||
  4229. tType == 1 ||
  4230. tType == 4) &&
  4231. tool.tool.indexOf(15) != -1
  4232. "
  4233. class="worksBox"
  4234. >
  4235. <div
  4236. class="zuoyeYulan"
  4237. v-if="
  4238. (worksStudent.length &&
  4239. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4240. "
  4241. >
  4242. <div class="worksTop">
  4243. <div>作业预览</div>
  4244. <div
  4245. class="corOpen"
  4246. @click="contract(toolIndex)"
  4247. v-if="
  4248. (isCloseList[toolIndex].isCloseBoolean) &&
  4249. isCloseList[toolIndex].isClose == 0
  4250. "
  4251. >
  4252. 折叠
  4253. </div>
  4254. <div
  4255. class="corOpen"
  4256. @click="contract(toolIndex)"
  4257. v-if="isCloseList[toolIndex].isClose == 1"
  4258. >
  4259. 展开
  4260. </div>
  4261. </div>
  4262. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4263. </div>
  4264. <div
  4265. class="group_workBox"
  4266. v-for="(g, gindex) in courseGroup.group"
  4267. :key="gindex"
  4268. >
  4269. <div class="group_box">
  4270. <div class="group_title">
  4271. <el-tooltip
  4272. class="item"
  4273. effect="light"
  4274. :content="g.name"
  4275. placement="top"
  4276. >
  4277. <div class="group_name">{{ g.name }}</div>
  4278. </el-tooltip>
  4279. </div>
  4280. <div
  4281. class="group_work"
  4282. v-if="
  4283. g.works &&
  4284. g.works.length &&
  4285. g.works[toolIndex].length
  4286. "
  4287. >
  4288. <div
  4289. class="works"
  4290. v-for="(w, wIndex) in g.works[toolIndex]"
  4291. :key="wIndex"
  4292. >
  4293. <div
  4294. class="workImg"
  4295. style="
  4296. border-radius: 15px;
  4297. box-shadow: 0px 0px 5px 5px #eee;
  4298. "
  4299. >
  4300. <div
  4301. class="answerBg"
  4302. style="border-radius: 15px 15px 0 0"
  4303. @click="
  4304. commentOther(w, toolIndex, wIndex, null, g.id)
  4305. "
  4306. >
  4307. <div class="answerContent">
  4308. {{ JSON.parse(w.works)[0].answer }}
  4309. </div>
  4310. <div
  4311. class="answerScore"
  4312. v-if="w.score"
  4313. @click.stop="openScore(w)"
  4314. :class="{
  4315. rightW:
  4316. w.userid == userid ||
  4317. tType == 1 ||
  4318. tType == 4,
  4319. }"
  4320. >
  4321. {{ JSON.parse(w.score).wScore }}分
  4322. </div>
  4323. <div
  4324. class="answerScore"
  4325. @click.stop="openScore(w)"
  4326. v-else-if="courseDetail.userid == userid"
  4327. :class="{
  4328. rightW:
  4329. w.userid == userid ||
  4330. tType == 1 ||
  4331. tType == 4,
  4332. }"
  4333. >
  4334. 评分
  4335. </div>
  4336. <img
  4337. class="deleteImg"
  4338. src="../assets/deleteworks.png"
  4339. v-if="
  4340. w.userid == userid ||
  4341. tType == 1 ||
  4342. tType == 4
  4343. "
  4344. @click.stop="deleteWorks(w.wid)"
  4345. alt
  4346. />
  4347. </div>
  4348. <div class="comment">
  4349. <div class="worksName">
  4350. <div>{{ w.sName }}</div>
  4351. </div>
  4352. <div class="commentList">
  4353. <div
  4354. class="commentImg"
  4355. @click="
  4356. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4357. "
  4358. >
  4359. <img
  4360. :src="w.isLikes == true ? likes : noLikes"
  4361. alt=""
  4362. />
  4363. </div>
  4364. <div>{{ w.likesCount }}</div>
  4365. </div>
  4366. <div
  4367. class="commentList"
  4368. style="margin-right: 15px"
  4369. >
  4370. <div
  4371. class="commentImg"
  4372. @click="
  4373. commentOther(
  4374. w,
  4375. toolIndex,
  4376. wIndex,
  4377. null,
  4378. g.id
  4379. )
  4380. "
  4381. >
  4382. <img
  4383. src="../assets/icon/comment/comment.png"
  4384. alt=""
  4385. />
  4386. </div>
  4387. <div>{{ w.commentCount }}</div>
  4388. </div>
  4389. </div>
  4390. </div>
  4391. </div>
  4392. </div>
  4393. <div class="group_work" v-else>暂无提交作业</div>
  4394. </div>
  4395. </div>
  4396. <div
  4397. :id="'tool-' + toolIndex"
  4398. :style="{
  4399. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4400. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4401. }"
  4402. class="worksDetailBox"
  4403. v-if="
  4404. worksStudent.length &&
  4405. worksStudent[toolIndex].length > 0
  4406. "
  4407. >
  4408. <div
  4409. class="works"
  4410. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4411. :key="wIndex"
  4412. >
  4413. <div
  4414. class="workImg"
  4415. style="
  4416. border-radius: 15px;
  4417. box-shadow: 0px 0px 5px 5px #eee;
  4418. "
  4419. >
  4420. <!-- <img
  4421. src="../assets/icon/works/noImg.png"
  4422. @click="openTools(15, toolIndex, taskCount, w.works)"
  4423. alt=""
  4424. />-->
  4425. <div
  4426. class="answerBg"
  4427. style="border-radius: 15px 15px 0 0"
  4428. @click="commentOther(w, toolIndex, wIndex)"
  4429. >
  4430. <!-- <div>{{ w.sName }}</div> -->
  4431. <div class="answerContent">
  4432. {{ JSON.parse(w.works)[0].answer }}
  4433. </div>
  4434. <div
  4435. class="answerScore"
  4436. v-if="w.score"
  4437. @click.stop="openScore(w)"
  4438. :class="{
  4439. rightW:
  4440. w.userid == userid ||
  4441. tType == 1 ||
  4442. tType == 4,
  4443. }"
  4444. >
  4445. {{ JSON.parse(w.score).wScore }}分
  4446. </div>
  4447. <div
  4448. class="answerScore"
  4449. @click.stop="openScore(w)"
  4450. v-else-if="courseDetail.userid == userid"
  4451. :class="{
  4452. rightW:
  4453. w.userid == userid ||
  4454. tType == 1 ||
  4455. tType == 4,
  4456. }"
  4457. >
  4458. 评分
  4459. </div>
  4460. <img
  4461. class="deleteImg"
  4462. src="../assets/deleteworks.png"
  4463. v-if="
  4464. w.userid == userid || tType == 1 || tType == 4
  4465. "
  4466. @click.stop="deleteWorks(w.wid)"
  4467. alt
  4468. />
  4469. </div>
  4470. <div class="comment">
  4471. <div class="worksName">
  4472. <div>{{ w.sName }}</div>
  4473. </div>
  4474. <div class="commentList">
  4475. <div
  4476. class="commentImg"
  4477. @click="
  4478. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4479. "
  4480. >
  4481. <img
  4482. :src="w.isLikes == true ? likes : noLikes"
  4483. alt=""
  4484. />
  4485. </div>
  4486. <div>{{ w.likesCount }}</div>
  4487. </div>
  4488. <div class="commentList" style="margin-right: 15px">
  4489. <div
  4490. class="commentImg"
  4491. @click="commentOther(w, toolIndex, wIndex)"
  4492. >
  4493. <img
  4494. src="../assets/icon/comment/comment.png"
  4495. alt=""
  4496. />
  4497. </div>
  4498. <div>{{ w.commentCount }}</div>
  4499. </div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4505. 未提交
  4506. </div>
  4507. <div
  4508. class="noWorksS"
  4509. v-if="noWorksS && noWorksS[toolIndex].length"
  4510. >
  4511. <div
  4512. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4513. :key="sIndex"
  4514. class="noWorksName"
  4515. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4516. >
  4517. <el-tooltip effect="dark" :content="s.student" placement="top">
  4518. <span>{{ s.student }}</span>
  4519. </el-tooltip>
  4520. </div>
  4521. </div>
  4522. </div>
  4523. <div
  4524. v-if="
  4525. tType &&
  4526. ((tType == 2 && sIsOpen == true) ||
  4527. tType == 1 ||
  4528. tType == 4) &&
  4529. tool.tool.indexOf(1) != -1
  4530. "
  4531. class="worksBox"
  4532. >
  4533. <div
  4534. class="zuoyeYulan"
  4535. v-if="
  4536. (worksStudent.length &&
  4537. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4538. "
  4539. >
  4540. <div class="worksTop">
  4541. <div>作业预览</div>
  4542. <div
  4543. class="corOpen"
  4544. @click="contract(toolIndex)"
  4545. v-if="
  4546. (isCloseList[toolIndex].isCloseBoolean) &&
  4547. isCloseList[toolIndex].isClose == 0
  4548. "
  4549. >
  4550. 折叠
  4551. </div>
  4552. <div
  4553. class="corOpen"
  4554. @click="contract(toolIndex)"
  4555. v-if="isCloseList[toolIndex].isClose == 1"
  4556. >
  4557. 展开
  4558. </div>
  4559. </div>
  4560. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4561. </div>
  4562. <div
  4563. class="group_workBox"
  4564. v-for="(g, gindex) in courseGroup.group"
  4565. :key="gindex"
  4566. >
  4567. <div class="group_box">
  4568. <div class="group_title">
  4569. <el-tooltip
  4570. class="item"
  4571. effect="light"
  4572. :content="g.name"
  4573. placement="top"
  4574. >
  4575. <div class="group_name">{{ g.name }}</div>
  4576. </el-tooltip>
  4577. </div>
  4578. <div
  4579. class="group_work"
  4580. v-if="
  4581. g.works &&
  4582. g.works.length &&
  4583. g.works[toolIndex].length
  4584. "
  4585. >
  4586. <div
  4587. class="works"
  4588. style="
  4589. width: 200px;
  4590. height: 140px;
  4591. margin: 10px 10px 10px 0;
  4592. border-radius: 15px;
  4593. box-shadow: 0 0 6px 1px #dfdada;
  4594. "
  4595. v-for="(w, wIndex) in g.works[toolIndex]"
  4596. :key="wIndex"
  4597. :class="w.type == 1 ? 'isTypeOne' : ''"
  4598. >
  4599. <div class="workImg">
  4600. <img
  4601. :src="w.works"
  4602. @click="previewImg(w.works,w)"
  4603. alt
  4604. />
  4605. <div
  4606. class="answerScore"
  4607. v-if="w.score"
  4608. @click.stop="openScore(w)"
  4609. :class="{
  4610. rightW:
  4611. w.userid == userid ||
  4612. tType == 1 ||
  4613. tType == 4,
  4614. }"
  4615. >
  4616. {{ JSON.parse(w.score).wScore }}分
  4617. </div>
  4618. <div
  4619. class="answerScore"
  4620. @click.stop="openScore(w)"
  4621. v-else-if="courseDetail.userid == userid"
  4622. :class="{
  4623. rightW:
  4624. w.userid == userid ||
  4625. tType == 1 ||
  4626. tType == 4,
  4627. }"
  4628. >
  4629. 评分
  4630. </div>
  4631. <img
  4632. class="deleteImg"
  4633. src="../assets/deleteworks.png"
  4634. v-if="
  4635. w.userid == userid || tType == 1 || tType == 4
  4636. "
  4637. @click.stop="deleteWorks(w.wid)"
  4638. alt
  4639. />
  4640. </div>
  4641. <div class="comment" style="min-width: 200px">
  4642. <div class="worksName">
  4643. <div>{{ w.sName }}</div>
  4644. </div>
  4645. <div class="commentList">
  4646. <div class="commentList">
  4647. <div
  4648. class="commentImg"
  4649. @click="
  4650. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4651. "
  4652. >
  4653. <img
  4654. :src="w.isLikes == true ? likes : noLikes"
  4655. alt=""
  4656. />
  4657. </div>
  4658. <div>{{ w.likesCount }}</div>
  4659. </div>
  4660. <div
  4661. class="commentList"
  4662. style="margin-right: 15px"
  4663. >
  4664. <div
  4665. class="commentImg"
  4666. @click="
  4667. commentOther(
  4668. w,
  4669. toolIndex,
  4670. wIndex,
  4671. null,
  4672. g.id
  4673. )
  4674. "
  4675. >
  4676. <img
  4677. src="../assets/icon/comment/comment.png"
  4678. alt=""
  4679. />
  4680. </div>
  4681. <div>{{ w.commentCount }}</div>
  4682. </div>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. <div class="group_work" v-else>暂无提交作业</div>
  4688. </div>
  4689. </div>
  4690. <div
  4691. :id="'tool-' + toolIndex"
  4692. :style="{
  4693. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4694. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4695. }"
  4696. class="worksDetailBox"
  4697. v-if="
  4698. worksStudent.length &&
  4699. worksStudent[toolIndex].length > 0
  4700. "
  4701. >
  4702. <div
  4703. class="works"
  4704. style="
  4705. width: 200px;
  4706. height: 140px;
  4707. margin: 10px 10px 10px 0;
  4708. border-radius: 15px;
  4709. box-shadow: 0 0 6px 1px #dfdada;
  4710. "
  4711. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4712. :key="wIndex"
  4713. >
  4714. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4715. <div class="workImg">
  4716. <img
  4717. :src="w.works"
  4718. @click="previewImg(w.works,w)"
  4719. alt
  4720. />
  4721. <div
  4722. class="answerScore"
  4723. v-if="w.score"
  4724. @click.stop="openScore(w)"
  4725. :class="{
  4726. rightW:
  4727. w.userid == userid || tType == 1 || tType == 4,
  4728. }"
  4729. >
  4730. {{ JSON.parse(w.score).wScore }}分
  4731. </div>
  4732. <div
  4733. class="answerScore"
  4734. @click.stop="openScore(w)"
  4735. v-else-if="courseDetail.userid == userid"
  4736. :class="{
  4737. rightW:
  4738. w.userid == userid || tType == 1 || tType == 4,
  4739. }"
  4740. >
  4741. 评分
  4742. </div>
  4743. <img
  4744. class="deleteImg"
  4745. src="../assets/deleteworks.png"
  4746. v-if="
  4747. w.userid == userid || tType == 1 || tType == 4
  4748. "
  4749. @click.stop="deleteWorks(w.wid)"
  4750. alt
  4751. />
  4752. </div>
  4753. <div class="comment" style="min-width: 200px">
  4754. <div class="worksName">
  4755. <div>{{ w.sName }}</div>
  4756. </div>
  4757. <div class="commentList">
  4758. <div class="commentList">
  4759. <div
  4760. class="commentImg"
  4761. @click="
  4762. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4763. "
  4764. >
  4765. <img
  4766. :src="w.isLikes == true ? likes : noLikes"
  4767. alt=""
  4768. />
  4769. </div>
  4770. <div>{{ w.likesCount }}</div>
  4771. </div>
  4772. <div class="commentList" style="margin-right: 15px">
  4773. <div
  4774. class="commentImg"
  4775. @click="commentOther(w, toolIndex, wIndex)"
  4776. >
  4777. <img
  4778. src="../assets/icon/comment/comment.png"
  4779. alt=""
  4780. />
  4781. </div>
  4782. <div>{{ w.commentCount }}</div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4789. 未提交
  4790. </div>
  4791. <div
  4792. class="noWorksS"
  4793. v-if="noWorksS && noWorksS[toolIndex].length"
  4794. >
  4795. <div
  4796. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4797. :key="sIndex"
  4798. class="noWorksName"
  4799. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4800. >
  4801. <el-tooltip effect="dark" :content="s.student" placement="top">
  4802. <span>{{ s.student }}</span>
  4803. </el-tooltip>
  4804. </div>
  4805. </div>
  4806. </div>
  4807. <div
  4808. v-if="
  4809. tType &&
  4810. ((tType == 2 && sIsOpen == true) ||
  4811. tType == 1 ||
  4812. tType == 4) &&
  4813. tool.tool.indexOf(3) != -1
  4814. "
  4815. class="worksBox"
  4816. >
  4817. <div
  4818. class="zuoyeYulan"
  4819. v-if="
  4820. (worksStudent.length &&
  4821. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4822. "
  4823. >
  4824. <div class="worksTop">
  4825. <div>作业预览</div>
  4826. <div
  4827. class="corOpen"
  4828. @click="contract(toolIndex)"
  4829. v-if="
  4830. (isCloseList[toolIndex].isCloseBoolean) &&
  4831. isCloseList[toolIndex].isClose == 0
  4832. "
  4833. >
  4834. 折叠
  4835. </div>
  4836. <div
  4837. class="corOpen"
  4838. @click="contract(toolIndex)"
  4839. v-if="isCloseList[toolIndex].isClose == 1"
  4840. >
  4841. 展开
  4842. </div>
  4843. </div>
  4844. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4845. </div>
  4846. <div
  4847. class="group_workBox"
  4848. v-for="(g, gindex) in courseGroup.group"
  4849. :key="gindex"
  4850. >
  4851. <div class="group_box">
  4852. <div class="group_title">
  4853. <el-tooltip
  4854. class="item"
  4855. effect="light"
  4856. :content="g.name"
  4857. placement="top"
  4858. >
  4859. <div class="group_name">{{ g.name }}</div>
  4860. </el-tooltip>
  4861. </div>
  4862. <div
  4863. class="group_work"
  4864. v-if="
  4865. g.works &&
  4866. g.works.length &&
  4867. g.works[toolIndex].length
  4868. "
  4869. >
  4870. <div
  4871. class="works"
  4872. style="
  4873. width: 200px;
  4874. height: 140px;
  4875. margin: 10px 10px 10px 0;
  4876. border-radius: 15px;
  4877. box-shadow: 0 0 6px 1px #dfdada;
  4878. "
  4879. v-for="(w, wIndex) in g.works[toolIndex]"
  4880. :key="wIndex"
  4881. :class="w.type == 1 ? 'isTypeOne' : ''"
  4882. >
  4883. <div class="workImg">
  4884. <img
  4885. :src="w.works"
  4886. @click="previewImg(w.works,w)"
  4887. alt
  4888. />
  4889. <div
  4890. class="answerScore"
  4891. v-if="w.score"
  4892. @click.stop="openScore(w)"
  4893. :class="{
  4894. rightW:
  4895. w.userid == userid ||
  4896. tType == 1 ||
  4897. tType == 4,
  4898. }"
  4899. >
  4900. {{ JSON.parse(w.score).wScore }}分
  4901. </div>
  4902. <div
  4903. class="answerScore"
  4904. @click.stop="openScore(w)"
  4905. v-else-if="courseDetail.userid == userid"
  4906. :class="{
  4907. rightW:
  4908. w.userid == userid ||
  4909. tType == 1 ||
  4910. tType == 4,
  4911. }"
  4912. >
  4913. 评分
  4914. </div>
  4915. <img
  4916. class="deleteImg"
  4917. src="../assets/deleteworks.png"
  4918. v-if="
  4919. w.userid == userid || tType == 1 || tType == 4
  4920. "
  4921. @click.stop="deleteWorks(w.wid)"
  4922. alt
  4923. />
  4924. </div>
  4925. <div class="comment" style="min-width: 200px">
  4926. <div class="worksName">
  4927. <div>{{ w.sName }}</div>
  4928. </div>
  4929. <div class="commentList">
  4930. <div class="commentList">
  4931. <div
  4932. class="commentImg"
  4933. @click="
  4934. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4935. "
  4936. >
  4937. <img
  4938. :src="w.isLikes == true ? likes : noLikes"
  4939. alt=""
  4940. />
  4941. </div>
  4942. <div>{{ w.likesCount }}</div>
  4943. </div>
  4944. <div
  4945. class="commentList"
  4946. style="margin-right: 15px"
  4947. >
  4948. <div
  4949. class="commentImg"
  4950. @click="
  4951. commentOther(
  4952. w,
  4953. toolIndex,
  4954. wIndex,
  4955. null,
  4956. g.id
  4957. )
  4958. "
  4959. >
  4960. <img
  4961. src="../assets/icon/comment/comment.png"
  4962. alt=""
  4963. />
  4964. </div>
  4965. <div>{{ w.commentCount }}</div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. </div>
  4970. </div>
  4971. <div class="group_work" v-else>暂无提交作业</div>
  4972. </div>
  4973. </div>
  4974. <div
  4975. :id="'tool-' + toolIndex"
  4976. :style="{
  4977. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4978. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4979. }"
  4980. class="worksDetailBox"
  4981. v-if="
  4982. worksStudent.length &&
  4983. worksStudent[toolIndex].length > 0
  4984. "
  4985. >
  4986. <div
  4987. class="works"
  4988. style="
  4989. width: 200px;
  4990. height: 140px;
  4991. margin: 10px 10px 10px 0;
  4992. border-radius: 15px;
  4993. box-shadow: 0 0 6px 1px #dfdada;
  4994. "
  4995. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4996. :key="wIndex"
  4997. >
  4998. <!-- @click="previewImg(w.works)" -->
  4999. <div class="workImg">
  5000. <img
  5001. :src="w.works"
  5002. @click="previewImg(w.works,w)"
  5003. alt
  5004. />
  5005. <div
  5006. class="answerScore"
  5007. v-if="w.score"
  5008. @click.stop="openScore(w)"
  5009. :class="{
  5010. rightW:
  5011. w.userid == userid || tType == 1 || tType == 4,
  5012. }"
  5013. >
  5014. {{ JSON.parse(w.score).wScore }}分
  5015. </div>
  5016. <div
  5017. class="answerScore"
  5018. @click.stop="openScore(w)"
  5019. v-else-if="courseDetail.userid == userid"
  5020. :class="{
  5021. rightW:
  5022. w.userid == userid || tType == 1 || tType == 4,
  5023. }"
  5024. >
  5025. 评分
  5026. </div>
  5027. <img
  5028. class="deleteImg"
  5029. src="../assets/deleteworks.png"
  5030. v-if="
  5031. w.userid == userid || tType == 1 || tType == 4
  5032. "
  5033. @click.stop="deleteWorks(w.wid)"
  5034. alt
  5035. />
  5036. </div>
  5037. <div class="comment" style="min-width: 200px">
  5038. <div class="worksName">
  5039. <div>{{ w.sName }}</div>
  5040. </div>
  5041. <div class="commentList">
  5042. <div class="commentList">
  5043. <div
  5044. class="commentImg"
  5045. @click="
  5046. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5047. "
  5048. >
  5049. <img
  5050. :src="w.isLikes == true ? likes : noLikes"
  5051. alt=""
  5052. />
  5053. </div>
  5054. <div>{{ w.likesCount }}</div>
  5055. </div>
  5056. <div class="commentList" style="margin-right: 15px">
  5057. <div
  5058. class="commentImg"
  5059. @click="commentOther(w, toolIndex, wIndex)"
  5060. >
  5061. <img
  5062. src="../assets/icon/comment/comment.png"
  5063. alt=""
  5064. />
  5065. </div>
  5066. <div>{{ w.commentCount }}</div>
  5067. </div>
  5068. </div>
  5069. </div>
  5070. </div>
  5071. </div>
  5072. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5073. 未提交
  5074. </div>
  5075. <div
  5076. class="noWorksS"
  5077. v-if="noWorksS && noWorksS[toolIndex].length"
  5078. >
  5079. <div
  5080. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5081. :key="sIndex"
  5082. class="noWorksName"
  5083. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5084. >
  5085. <el-tooltip effect="dark" :content="s.student" placement="top">
  5086. <span>{{ s.student }}</span>
  5087. </el-tooltip>
  5088. </div>
  5089. </div>
  5090. </div>
  5091. <div
  5092. v-if="
  5093. tType &&
  5094. ((tType == 2 && sIsOpen == true) ||
  5095. tType == 1 ||
  5096. tType == 4) &&
  5097. tool.tool.indexOf(6) != -1
  5098. "
  5099. class="worksBox"
  5100. >
  5101. <div
  5102. class="zuoyeYulan"
  5103. v-if="
  5104. (worksStudent.length &&
  5105. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5106. "
  5107. >
  5108. <div class="worksTop">
  5109. <div>作业预览</div>
  5110. <div
  5111. class="corOpen"
  5112. @click="contract(toolIndex)"
  5113. v-if="
  5114. (isCloseList[toolIndex].isCloseBoolean) &&
  5115. isCloseList[toolIndex].isClose == 0
  5116. "
  5117. >
  5118. 折叠
  5119. </div>
  5120. <div
  5121. class="corOpen"
  5122. @click="contract(toolIndex)"
  5123. v-if="isCloseList[toolIndex].isClose == 1"
  5124. >
  5125. 展开
  5126. </div>
  5127. </div>
  5128. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5129. </div>
  5130. <div
  5131. class="group_workBox"
  5132. v-for="(g, gindex) in courseGroup.group"
  5133. :key="gindex"
  5134. >
  5135. <div class="group_box">
  5136. <div class="group_title">
  5137. <el-tooltip
  5138. class="item"
  5139. effect="light"
  5140. :content="g.name"
  5141. placement="top"
  5142. >
  5143. <div class="group_name">{{ g.name }}</div>
  5144. </el-tooltip>
  5145. </div>
  5146. <div
  5147. class="group_work"
  5148. v-if="
  5149. g.works &&
  5150. g.works.length &&
  5151. g.works[toolIndex].length
  5152. "
  5153. >
  5154. <div
  5155. class="works"
  5156. style="
  5157. width: 200px;
  5158. height: 140px;
  5159. margin: 10px 10px 10px 0;
  5160. border-radius: 15px;
  5161. box-shadow: 0 0 6px 1px #dfdada;
  5162. "
  5163. v-for="(w, wIndex) in g.works[toolIndex]"
  5164. :key="wIndex"
  5165. :class="w.type == 1 ? 'isTypeOne' : ''"
  5166. >
  5167. <div class="workImg">
  5168. <img
  5169. :src="w.works"
  5170. @click="previewImg(w.works,w)"
  5171. alt
  5172. />
  5173. <div
  5174. class="answerScore"
  5175. v-if="w.score"
  5176. @click.stop="openScore(w)"
  5177. :class="{
  5178. rightW:
  5179. w.userid == userid ||
  5180. tType == 1 ||
  5181. tType == 4,
  5182. }"
  5183. >
  5184. {{ JSON.parse(w.score).wScore }}分
  5185. </div>
  5186. <div
  5187. class="answerScore"
  5188. @click.stop="openScore(w)"
  5189. v-else-if="courseDetail.userid == userid"
  5190. :class="{
  5191. rightW:
  5192. w.userid == userid ||
  5193. tType == 1 ||
  5194. tType == 4,
  5195. }"
  5196. >
  5197. 评分
  5198. </div>
  5199. <img
  5200. class="deleteImg"
  5201. src="../assets/deleteworks.png"
  5202. v-if="
  5203. w.userid == userid || tType == 1 || tType == 4
  5204. "
  5205. @click.stop="deleteWorks(w.wid)"
  5206. alt
  5207. />
  5208. </div>
  5209. <div class="comment" style="min-width: 200px">
  5210. <div class="worksName">
  5211. <div>{{ w.sName }}</div>
  5212. </div>
  5213. <div class="commentList">
  5214. <div class="commentList">
  5215. <div
  5216. class="commentImg"
  5217. @click="
  5218. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5219. "
  5220. >
  5221. <img
  5222. :src="w.isLikes == true ? likes : noLikes"
  5223. alt=""
  5224. />
  5225. </div>
  5226. <div>{{ w.likesCount }}</div>
  5227. </div>
  5228. <div
  5229. class="commentList"
  5230. style="margin-right: 15px"
  5231. >
  5232. <div
  5233. class="commentImg"
  5234. @click="
  5235. commentOther(
  5236. w,
  5237. toolIndex,
  5238. wIndex,
  5239. null,
  5240. g.id
  5241. )
  5242. "
  5243. >
  5244. <img
  5245. src="../assets/icon/comment/comment.png"
  5246. alt=""
  5247. />
  5248. </div>
  5249. <div>{{ w.commentCount }}</div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. </div>
  5254. </div>
  5255. <div class="group_work" v-else>暂无提交作业</div>
  5256. </div>
  5257. </div>
  5258. <div
  5259. :id="'tool-' + toolIndex"
  5260. :style="{
  5261. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5262. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5263. }"
  5264. class="worksDetailBox"
  5265. v-if="
  5266. worksStudent.length &&
  5267. worksStudent[toolIndex].length > 0
  5268. "
  5269. >
  5270. <div
  5271. class="works"
  5272. style="
  5273. width: 200px;
  5274. height: 140px;
  5275. margin: 10px 10px 10px 0;
  5276. border-radius: 15px;
  5277. box-shadow: 0 0 6px 1px #dfdada;
  5278. "
  5279. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5280. :key="wIndex"
  5281. >
  5282. <!-- @click="previewImg(w.works)" -->
  5283. <div class="workImg">
  5284. <img
  5285. :src="w.works"
  5286. @click="previewImg(w.works,w)"
  5287. alt
  5288. />
  5289. <div
  5290. class="answerScore"
  5291. v-if="w.score"
  5292. @click.stop="openScore(w)"
  5293. :class="{
  5294. rightW:
  5295. w.userid == userid || tType == 1 || tType == 4,
  5296. }"
  5297. >
  5298. {{ JSON.parse(w.score).wScore }}分
  5299. </div>
  5300. <div
  5301. class="answerScore"
  5302. @click.stop="openScore(w)"
  5303. v-else-if="courseDetail.userid == userid"
  5304. :class="{
  5305. rightW:
  5306. w.userid == userid || tType == 1 || tType == 4,
  5307. }"
  5308. >
  5309. 评分
  5310. </div>
  5311. <img
  5312. class="deleteImg"
  5313. src="../assets/deleteworks.png"
  5314. v-if="
  5315. w.userid == userid || tType == 1 || tType == 4
  5316. "
  5317. @click.stop="deleteWorks(w.wid)"
  5318. alt
  5319. />
  5320. </div>
  5321. <div class="comment" style="min-width: 200px">
  5322. <div class="worksName">
  5323. <div>{{ w.sName }}</div>
  5324. </div>
  5325. <div class="commentList">
  5326. <div class="commentList">
  5327. <div
  5328. class="commentImg"
  5329. @click="
  5330. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5331. "
  5332. >
  5333. <img
  5334. :src="w.isLikes == true ? likes : noLikes"
  5335. alt=""
  5336. />
  5337. </div>
  5338. <div>{{ w.likesCount }}</div>
  5339. </div>
  5340. <div class="commentList" style="margin-right: 15px">
  5341. <div
  5342. class="commentImg"
  5343. @click="commentOther(w, toolIndex, wIndex)"
  5344. >
  5345. <img
  5346. src="../assets/icon/comment/comment.png"
  5347. alt=""
  5348. />
  5349. </div>
  5350. <div>{{ w.commentCount }}</div>
  5351. </div>
  5352. </div>
  5353. </div>
  5354. </div>
  5355. </div>
  5356. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5357. 未提交
  5358. </div>
  5359. <div
  5360. class="noWorksS"
  5361. v-if="noWorksS && noWorksS[toolIndex].length"
  5362. >
  5363. <div
  5364. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5365. :key="sIndex"
  5366. class="noWorksName"
  5367. >
  5368. <el-tooltip effect="dark" :content="s.student" placement="top">
  5369. <span>{{ s.student }}</span>
  5370. </el-tooltip>
  5371. </div>
  5372. </div>
  5373. </div>
  5374. <div
  5375. v-if="
  5376. tType &&
  5377. ((tType == 2 && sIsOpen == true) ||
  5378. tType == 1 ||
  5379. tType == 4) &&
  5380. tool.tool.indexOf(7) != -1
  5381. "
  5382. class="worksBox"
  5383. >
  5384. <div
  5385. class="zuoyeYulan"
  5386. v-if="
  5387. (worksStudent.length &&
  5388. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5389. "
  5390. >
  5391. <div class="worksTop">
  5392. <div>作业预览</div>
  5393. <div
  5394. class="corOpen"
  5395. @click="contract(toolIndex)"
  5396. v-if="
  5397. (isCloseList[toolIndex].isCloseBoolean) &&
  5398. isCloseList[toolIndex].isClose == 0
  5399. "
  5400. >
  5401. 折叠
  5402. </div>
  5403. <div
  5404. class="corOpen"
  5405. @click="contract(toolIndex)"
  5406. v-if="isCloseList[toolIndex].isClose == 1"
  5407. >
  5408. 展开
  5409. </div>
  5410. </div>
  5411. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5412. </div>
  5413. <div
  5414. class="group_workBox"
  5415. v-for="(g, gindex) in courseGroup.group"
  5416. :key="gindex"
  5417. >
  5418. <div class="group_box">
  5419. <div class="group_title">
  5420. <el-tooltip
  5421. class="item"
  5422. effect="light"
  5423. :content="g.name"
  5424. placement="top"
  5425. >
  5426. <div class="group_name">{{ g.name }}</div>
  5427. </el-tooltip>
  5428. </div>
  5429. <div
  5430. class="group_work"
  5431. v-if="
  5432. g.works &&
  5433. g.works.length &&
  5434. g.works[toolIndex].length
  5435. "
  5436. >
  5437. <div
  5438. class="works"
  5439. style="
  5440. width: 200px;
  5441. height: 140px;
  5442. margin: 10px 10px 10px 0;
  5443. border-radius: 15px;
  5444. box-shadow: 0 0 6px 1px #dfdada;
  5445. "
  5446. v-for="(w, wIndex) in g.works[toolIndex]"
  5447. :key="wIndex"
  5448. :class="w.type == 1 ? 'isTypeOne' : ''"
  5449. >
  5450. <div class="workImg">
  5451. <img
  5452. :src="w.works"
  5453. @click="previewImg(w.works,w)"
  5454. alt
  5455. />
  5456. <div
  5457. class="answerScore"
  5458. v-if="w.score"
  5459. @click.stop="openScore(w)"
  5460. :class="{
  5461. rightW:
  5462. w.userid == userid ||
  5463. tType == 1 ||
  5464. tType == 4,
  5465. }"
  5466. >
  5467. {{ JSON.parse(w.score).wScore }}分
  5468. </div>
  5469. <div
  5470. class="answerScore"
  5471. @click.stop="openScore(w)"
  5472. v-else-if="courseDetail.userid == userid"
  5473. :class="{
  5474. rightW:
  5475. w.userid == userid ||
  5476. tType == 1 ||
  5477. tType == 4,
  5478. }"
  5479. >
  5480. 评分
  5481. </div>
  5482. <img
  5483. class="deleteImg"
  5484. src="../assets/deleteworks.png"
  5485. v-if="
  5486. w.userid == userid || tType == 1 || tType == 4
  5487. "
  5488. @click.stop="deleteWorks(w.wid)"
  5489. alt
  5490. />
  5491. </div>
  5492. <div class="comment" style="min-width: 200px">
  5493. <div class="worksName">
  5494. <div>{{ w.sName }}</div>
  5495. </div>
  5496. <div class="commentList">
  5497. <div class="commentList">
  5498. <div
  5499. class="commentImg"
  5500. @click="
  5501. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5502. "
  5503. >
  5504. <img
  5505. :src="w.isLikes == true ? likes : noLikes"
  5506. alt=""
  5507. />
  5508. </div>
  5509. <div>{{ w.likesCount }}</div>
  5510. </div>
  5511. <div
  5512. class="commentList"
  5513. style="margin-right: 15px"
  5514. >
  5515. <div
  5516. class="commentImg"
  5517. @click="
  5518. commentOther(
  5519. w,
  5520. toolIndex,
  5521. wIndex,
  5522. null,
  5523. g.id
  5524. )
  5525. "
  5526. >
  5527. <img
  5528. src="../assets/icon/comment/comment.png"
  5529. alt=""
  5530. />
  5531. </div>
  5532. <div>{{ w.commentCount }}</div>
  5533. </div>
  5534. </div>
  5535. </div>
  5536. </div>
  5537. </div>
  5538. <div class="group_work" v-else>暂无提交作业</div>
  5539. </div>
  5540. </div>
  5541. <div
  5542. :id="'tool-' + toolIndex"
  5543. :style="{
  5544. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5545. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5546. }"
  5547. class="worksDetailBox"
  5548. v-if="
  5549. worksStudent.length &&
  5550. worksStudent[toolIndex].length > 0
  5551. "
  5552. >
  5553. <div
  5554. class="works"
  5555. style="
  5556. width: 200px;
  5557. height: 140px;
  5558. margin: 10px 10px 10px 0;
  5559. border-radius: 15px;
  5560. box-shadow: 0 0 6px 1px #dfdada;
  5561. "
  5562. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5563. :key="wIndex"
  5564. >
  5565. <!-- @click="previewImg(w.works)" -->
  5566. <div class="workImg">
  5567. <img
  5568. :src="w.works"
  5569. @click="previewImg(w.works,w)"
  5570. alt
  5571. />
  5572. <div
  5573. class="answerScore"
  5574. v-if="w.score"
  5575. @click.stop="openScore(w)"
  5576. :class="{
  5577. rightW:
  5578. w.userid == userid || tType == 1 || tType == 4,
  5579. }"
  5580. >
  5581. {{ JSON.parse(w.score).wScore }}分
  5582. </div>
  5583. <div
  5584. class="answerScore"
  5585. @click.stop="openScore(w)"
  5586. v-else-if="courseDetail.userid == userid"
  5587. :class="{
  5588. rightW:
  5589. w.userid == userid || tType == 1 || tType == 4,
  5590. }"
  5591. >
  5592. 评分
  5593. </div>
  5594. <img
  5595. class="deleteImg"
  5596. src="../assets/deleteworks.png"
  5597. v-if="
  5598. w.userid == userid || tType == 1 || tType == 4
  5599. "
  5600. @click.stop="deleteWorks(w.wid)"
  5601. alt
  5602. />
  5603. </div>
  5604. <div class="comment" style="min-width: 200px">
  5605. <div class="worksName">
  5606. <div>{{ w.sName }}</div>
  5607. </div>
  5608. <div class="commentList">
  5609. <div class="commentList">
  5610. <div
  5611. class="commentImg"
  5612. @click="
  5613. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5614. "
  5615. >
  5616. <img
  5617. :src="w.isLikes == true ? likes : noLikes"
  5618. alt=""
  5619. />
  5620. </div>
  5621. <div>{{ w.likesCount }}</div>
  5622. </div>
  5623. <div class="commentList" style="margin-right: 15px">
  5624. <div
  5625. class="commentImg"
  5626. @click="commentOther(w, toolIndex, wIndex)"
  5627. >
  5628. <img
  5629. src="../assets/icon/comment/comment.png"
  5630. alt=""
  5631. />
  5632. </div>
  5633. <div>{{ w.commentCount }}</div>
  5634. </div>
  5635. </div>
  5636. </div>
  5637. </div>
  5638. </div>
  5639. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5640. 未提交
  5641. </div>
  5642. <div
  5643. class="noWorksS"
  5644. v-if="noWorksS && noWorksS[toolIndex].length"
  5645. >
  5646. <div
  5647. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5648. :key="sIndex"
  5649. class="noWorksName"
  5650. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5651. >
  5652. <el-tooltip effect="dark" :content="s.student" placement="top">
  5653. <span>{{ s.student }}</span>
  5654. </el-tooltip>
  5655. </div>
  5656. </div>
  5657. </div>
  5658. <div
  5659. v-if="
  5660. tType &&
  5661. ((tType == 2 && sIsOpen == true) ||
  5662. tType == 1 ||
  5663. tType == 4) &&
  5664. tool.tool.indexOf(26) != -1
  5665. "
  5666. class="worksBox"
  5667. >
  5668. <div
  5669. class="zuoyeYulan"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div class="worksTop">
  5676. <div>作业预览</div>
  5677. <div
  5678. class="corOpen"
  5679. @click="contract(toolIndex)"
  5680. v-if="
  5681. (isCloseList[toolIndex].isCloseBoolean) &&
  5682. isCloseList[toolIndex].isClose == 0
  5683. "
  5684. >
  5685. 折叠
  5686. </div>
  5687. <div
  5688. class="corOpen"
  5689. @click="contract(toolIndex)"
  5690. v-if="isCloseList[toolIndex].isClose == 1"
  5691. >
  5692. 展开
  5693. </div>
  5694. </div>
  5695. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5696. </div>
  5697. <div
  5698. :id="'tool-' + toolIndex"
  5699. :style="{
  5700. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5701. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5702. }"
  5703. class="worksDetailBox"
  5704. v-if="
  5705. worksStudent.length &&
  5706. worksStudent[toolIndex].length > 0
  5707. "
  5708. >
  5709. <div
  5710. class="works"
  5711. style="width: 240px; height: 140px; overflow: hidden"
  5712. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5713. :key="wIndex"
  5714. :class="w.type == 1 ? 'isTypeOne' : ''"
  5715. >
  5716. <div class="workImg" v-if="w.type == 0">
  5717. <img
  5718. :src="w.works"
  5719. @click="previewImg(w.works,w)"
  5720. alt
  5721. />
  5722. <img
  5723. class="deleteImg"
  5724. src="../assets/deleteworks.png"
  5725. v-if="
  5726. w.userid == userid || tType == 1 || tType == 4
  5727. "
  5728. @click.stop="deleteWorks(w.wid)"
  5729. alt
  5730. />
  5731. </div>
  5732. <div class="workImg" v-if="w.type == 1">
  5733. <img :src="word" @click="openFile(w.works,w)" alt />
  5734. <img
  5735. class="deleteImg"
  5736. src="../assets/deleteworks.png"
  5737. v-if="
  5738. w.userid == userid || tType == 1 || tType == 4
  5739. "
  5740. @click.stop="deleteWorks(w.wid)"
  5741. alt
  5742. />
  5743. </div>
  5744. <div class="worksName">
  5745. <div>{{ w.sName }}</div>
  5746. </div>
  5747. </div>
  5748. </div>
  5749. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5750. 未提交
  5751. </div>
  5752. <div
  5753. class="noWorksS"
  5754. v-if="noWorksS && noWorksS[toolIndex].length"
  5755. >
  5756. <div
  5757. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5758. :key="sIndex"
  5759. class="noWorksName"
  5760. >
  5761. <el-tooltip effect="dark" :content="s.student" placement="top">
  5762. <span>{{ s.student }}</span>
  5763. </el-tooltip>
  5764. </div>
  5765. </div>
  5766. </div>
  5767. <div
  5768. v-if="
  5769. tType &&
  5770. ((tType == 2 && sIsOpen == true) ||
  5771. tType == 1 ||
  5772. tType == 4) &&
  5773. tool.tool.indexOf(40) != -1
  5774. "
  5775. class="worksBox"
  5776. >
  5777. <div
  5778. class="zuoyeYulan"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div class="worksTop">
  5785. <div>作业预览</div>
  5786. <div
  5787. class="corOpen"
  5788. @click="contract(toolIndex)"
  5789. v-if="
  5790. (isCloseList[toolIndex].isCloseBoolean) &&
  5791. isCloseList[toolIndex].isClose == 0
  5792. "
  5793. >
  5794. 折叠
  5795. </div>
  5796. <div
  5797. class="corOpen"
  5798. @click="contract(toolIndex)"
  5799. v-if="isCloseList[toolIndex].isClose == 1"
  5800. >
  5801. 展开
  5802. </div>
  5803. </div>
  5804. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5805. </div>
  5806. <div
  5807. :id="'tool-' + toolIndex"
  5808. :style="{
  5809. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5810. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5811. }"
  5812. class="worksDetailBox"
  5813. v-if="
  5814. worksStudent.length &&
  5815. worksStudent[toolIndex].length > 0
  5816. "
  5817. >
  5818. <div
  5819. class="works"
  5820. style="
  5821. width: 200px;
  5822. height: 140px;
  5823. margin: 10px 10px 10px 0;
  5824. border-radius: 15px;
  5825. box-shadow: 0 0 6px 1px #dfdada;
  5826. "
  5827. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5828. :key="wIndex"
  5829. :class="w.type == 1 ? 'isTypeOne' : ''"
  5830. >
  5831. <div class="workImg">
  5832. <img
  5833. src="../assets/icon/works/noImg.png"
  5834. @click="openPj(w.works, toolIndex)"
  5835. alt
  5836. />
  5837. <img
  5838. class="deleteImg"
  5839. src="../assets/deleteworks.png"
  5840. v-if="
  5841. w.userid == userid || tType == 1 || tType == 4
  5842. "
  5843. @click.stop="deleteWorks(w.wid)"
  5844. alt
  5845. />
  5846. </div>
  5847. <div class="comment" style="min-width: 200px">
  5848. <div class="worksName">
  5849. <div>{{ w.sName }}</div>
  5850. </div>
  5851. <div class="commentList">
  5852. <div class="commentList">
  5853. <div
  5854. class="commentImg"
  5855. @click="
  5856. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5857. "
  5858. >
  5859. <img
  5860. :src="w.isLikes == true ? likes : noLikes"
  5861. alt=""
  5862. />
  5863. </div>
  5864. <div>{{ w.likesCount }}</div>
  5865. </div>
  5866. <div class="commentList" style="margin-right: 15px">
  5867. <div
  5868. class="commentImg"
  5869. @click="commentOther(w, toolIndex, wIndex)"
  5870. >
  5871. <img
  5872. src="../assets/icon/comment/comment.png"
  5873. alt=""
  5874. />
  5875. </div>
  5876. <div>{{ w.commentCount }}</div>
  5877. </div>
  5878. </div>
  5879. </div>
  5880. </div>
  5881. </div>
  5882. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5883. 未提交
  5884. </div>
  5885. <div
  5886. class="noWorksS"
  5887. v-if="noWorksS && noWorksS[toolIndex].length"
  5888. >
  5889. <div
  5890. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5891. :key="sIndex"
  5892. class="noWorksName"
  5893. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5894. >
  5895. <el-tooltip effect="dark" :content="s.student" placement="top">
  5896. <span>{{ s.student }}</span>
  5897. </el-tooltip>
  5898. </div>
  5899. </div>
  5900. </div>
  5901. <div
  5902. v-if="
  5903. tType &&
  5904. tType == 2 &&
  5905. !sIsOpen &&
  5906. tool.tool.indexOf(40) != -1
  5907. "
  5908. class="worksBox"
  5909. >
  5910. <div
  5911. class="zuoyeYulan"
  5912. v-if="workStudent[toolIndex].length > 0"
  5913. >
  5914. <span class="worksTitle">作业预览</span>
  5915. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5916. </div>
  5917. <div
  5918. class="worksDetailBox"
  5919. v-if="workStudent[toolIndex].length > 0"
  5920. >
  5921. <div
  5922. class="works"
  5923. style="
  5924. width: 200px;
  5925. height: 140px;
  5926. margin: 10px 10px 10px 0;
  5927. "
  5928. v-for="(w, wIndex) in workStudent[toolIndex]"
  5929. :key="wIndex"
  5930. >
  5931. <div class="workImg">
  5932. <img
  5933. src="../assets/icon/works/noImg.png"
  5934. @click="openPj(w.works, toolIndex)"
  5935. alt
  5936. />
  5937. <img
  5938. class="deleteImg"
  5939. src="../assets/deleteworks.png"
  5940. v-if="
  5941. w.userid == userid || tType == 1 || tType == 4
  5942. "
  5943. @click.stop="deleteWorks(w.wid)"
  5944. alt
  5945. />
  5946. </div>
  5947. <div class="worksName">
  5948. <div>{{ w.sName }}</div>
  5949. </div>
  5950. </div>
  5951. </div>
  5952. </div>
  5953. <div
  5954. v-if="
  5955. tType &&
  5956. ((tType == 2 && sIsOpen == true) ||
  5957. tType == 1 ||
  5958. tType == 4) &&
  5959. tool.tool.indexOf(41) != -1
  5960. "
  5961. >
  5962. <AnswerData2
  5963. v-if="
  5964. worksStudent.length &&
  5965. worksStudent[toolIndex].length > 0
  5966. "
  5967. :problemJson="tool.selectJson.answer"
  5968. :people="worksStudent[toolIndex]"
  5969. ></AnswerData2>
  5970. </div>
  5971. <div
  5972. v-if="
  5973. tType &&
  5974. ((tType == 2 && sIsOpen == true) ||
  5975. tType == 1 ||
  5976. tType == 4) &&
  5977. tool.tool.indexOf(41) != -1
  5978. "
  5979. class="worksBox"
  5980. >
  5981. <div
  5982. class="zuoyeYulan"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div class="worksTop">
  5989. <div>作业预览</div>
  5990. <div
  5991. class="corOpen"
  5992. @click="contract(toolIndex)"
  5993. v-if="
  5994. (isCloseList[toolIndex].isCloseBoolean) &&
  5995. isCloseList[toolIndex].isClose == 0
  5996. "
  5997. >
  5998. 折叠
  5999. </div>
  6000. <div
  6001. class="corOpen"
  6002. @click="contract(toolIndex)"
  6003. v-if="isCloseList[toolIndex].isClose == 1"
  6004. >
  6005. 展开
  6006. </div>
  6007. </div>
  6008. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6009. </div>
  6010. <div
  6011. :id="'tool-' + toolIndex"
  6012. :style="{
  6013. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6014. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6015. }"
  6016. class="worksDetailBox"
  6017. v-if="
  6018. worksStudent.length &&
  6019. worksStudent[toolIndex].length > 0
  6020. "
  6021. >
  6022. <div
  6023. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6024. :key="wIndex"
  6025. class="isWorksName2"
  6026. @click="openXz(w, toolIndex)"
  6027. >
  6028. {{ w.sName }}
  6029. <img
  6030. class="deleteImg deleteImg2"
  6031. src="../assets/deleteworks.png"
  6032. v-if="w.userid == userid || tType == 1 || tType == 4"
  6033. @click.stop="deleteWorks(w.wid)"
  6034. alt
  6035. />
  6036. </div>
  6037. <!-- <div
  6038. class="works"
  6039. style="
  6040. width: 200px;
  6041. height: 140px;
  6042. margin: 10px 10px 10px 0;
  6043. border-radius: 15px;
  6044. box-shadow: 0 0 6px 1px #dfdada;
  6045. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6046. :class="w.type == 5 ? 'isTypeOne' : ''">
  6047. <div class="workImg">
  6048. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6049. </div>
  6050. <div class="worksName">
  6051. <div>{{ w.sName }}</div>
  6052. </div>
  6053. </div> -->
  6054. </div>
  6055. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6056. 未提交
  6057. </div>
  6058. <div
  6059. class="noWorksS"
  6060. v-if="noWorksS && noWorksS[toolIndex].length"
  6061. >
  6062. <div
  6063. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6064. :key="sIndex"
  6065. class="noWorksName"
  6066. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6067. >
  6068. <el-tooltip effect="dark" :content="s.student" placement="top">
  6069. <span>{{ s.student }}</span>
  6070. </el-tooltip>
  6071. </div>
  6072. </div>
  6073. </div>
  6074. <div
  6075. v-if="
  6076. tType &&
  6077. tType == 2 &&
  6078. !sIsOpen &&
  6079. tool.tool.indexOf(41) != -1
  6080. "
  6081. class="worksBox"
  6082. >
  6083. <div
  6084. class="zuoyeYulan"
  6085. v-if="workStudent[toolIndex].length > 0"
  6086. >
  6087. <span class="worksTitle">作业预览</span>
  6088. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6089. </div>
  6090. <div
  6091. class="worksDetailBox"
  6092. v-if="workStudent[toolIndex].length > 0"
  6093. >
  6094. <div
  6095. class="works"
  6096. style="
  6097. width: 200px;
  6098. height: 140px;
  6099. margin: 10px 10px 10px 0;
  6100. "
  6101. v-for="(w, wIndex) in workStudent[toolIndex]"
  6102. :key="wIndex"
  6103. >
  6104. <div class="workImg">
  6105. <img
  6106. src="../assets/icon/works/noImg.png"
  6107. @click="openXz(w, toolIndex)"
  6108. alt
  6109. />
  6110. <img
  6111. class="deleteImg"
  6112. src="../assets/deleteworks.png"
  6113. v-if="
  6114. w.userid == userid || tType == 1 || tType == 4
  6115. "
  6116. @click.stop="deleteWorks(w.wid)"
  6117. alt
  6118. />
  6119. </div>
  6120. <div class="worksName">
  6121. <div>{{ w.sName }}</div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div v-if="false" class="xuan_right_box">
  6127. <div
  6128. class="tool_right_box"
  6129. v-for="(item, index) in tool.sentenceList"
  6130. :key="index"
  6131. >
  6132. <div>
  6133. <span
  6134. style="word-break: break-all; white-space: normal"
  6135. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6136. >
  6137. </div>
  6138. <div class="right_box_xuan">
  6139. <span>正确率</span>
  6140. <span>{{
  6141. (checkJson[toolIndex][index].right
  6142. ? checkJson[toolIndex][index].right
  6143. : 0) + "%"
  6144. }}</span>
  6145. </div>
  6146. <div class="right_box_xuan">
  6147. <span>答对人数</span>
  6148. <span>{{
  6149. checkJson[toolIndex][index].rightPerson.length
  6150. }}</span>
  6151. </div>
  6152. </div>
  6153. </div>
  6154. <div
  6155. v-if="
  6156. tType &&
  6157. ((tType == 2 && sIsOpen == true) ||
  6158. tType == 1 ||
  6159. tType == 4) &&
  6160. tool.tool.indexOf(47) != -1
  6161. "
  6162. >
  6163. <AnswerData
  6164. v-if="
  6165. checkJson[toolIndex].length &&
  6166. (tool.sentenceList || tool.sentenceList.length > 0)
  6167. "
  6168. :people="checkJson[toolIndex]"
  6169. ></AnswerData>
  6170. </div>
  6171. <div
  6172. v-if="
  6173. tType &&
  6174. tType == 2 &&
  6175. !sIsOpen &&
  6176. tool.tool.indexOf(47) != -1
  6177. "
  6178. class="worksBox"
  6179. >
  6180. <div
  6181. class="zuoyeYulan"
  6182. v-if="workStudent[toolIndex].length > 0"
  6183. >
  6184. <span class="worksTitle">作业预览</span>
  6185. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6186. </div>
  6187. <div
  6188. class="worksDetailBox"
  6189. v-if="workStudent[toolIndex].length > 0"
  6190. >
  6191. <div
  6192. class="works"
  6193. style="
  6194. width: 200px;
  6195. height: 140px;
  6196. margin: 10px 10px 10px 0;
  6197. "
  6198. v-for="(w, wIndex) in workStudent[toolIndex]"
  6199. :key="wIndex"
  6200. >
  6201. <!-- @click="openXz(w, toolIndex)" -->
  6202. <div class="workImg" @click="openSen(w, toolIndex)">
  6203. <img src="../assets/icon/works/noImg.png" alt />
  6204. <img
  6205. class="deleteImg"
  6206. src="../assets/deleteworks.png"
  6207. v-if="
  6208. w.userid == userid || tType == 1 || tType == 4
  6209. "
  6210. @click.stop="deleteWorks(w.wid)"
  6211. alt
  6212. />
  6213. </div>
  6214. <div class="worksName">
  6215. <div>
  6216. {{ w.sName }}
  6217. </div>
  6218. </div>
  6219. </div>
  6220. </div>
  6221. </div>
  6222. <div
  6223. v-if="
  6224. tType &&
  6225. ((tType == 2 && sIsOpen == true) ||
  6226. tType == 1 ||
  6227. tType == 4) &&
  6228. tool.tool.indexOf(47) != -1
  6229. "
  6230. class="worksBox"
  6231. >
  6232. <div
  6233. class="zuoyeYulan"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <div class="worksTop">
  6240. <div>作业预览</div>
  6241. <div
  6242. class="corOpen"
  6243. @click="contract(toolIndex)"
  6244. v-if="
  6245. (isCloseList[toolIndex].isCloseBoolean) &&
  6246. isCloseList[toolIndex].isClose == 0
  6247. "
  6248. >
  6249. 折叠
  6250. </div>
  6251. <div
  6252. class="corOpen"
  6253. @click="contract(toolIndex)"
  6254. v-if="isCloseList[toolIndex].isClose == 1"
  6255. >
  6256. 展开
  6257. </div>
  6258. </div>
  6259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6260. </div>
  6261. <div
  6262. :id="'tool-' + toolIndex"
  6263. :style="{
  6264. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6265. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6266. }"
  6267. class="worksDetailBox"
  6268. v-if="
  6269. worksStudent.length &&
  6270. worksStudent[toolIndex].length > 0
  6271. "
  6272. >
  6273. <!-- @click="openXz(w, toolIndex)" -->
  6274. <div
  6275. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6276. :key="wIndex"
  6277. class="isWorksName2"
  6278. @click="openSen(w, toolIndex)"
  6279. >
  6280. {{ w.sName }}
  6281. <img
  6282. class="deleteImg deleteImg2"
  6283. src="../assets/deleteworks.png"
  6284. v-if="w.userid == userid || tType == 1 || tType == 4"
  6285. @click.stop="deleteWorks(w.wid)"
  6286. alt
  6287. />
  6288. </div>
  6289. </div>
  6290. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6291. 未提交
  6292. </div>
  6293. <div
  6294. class="noWorksS"
  6295. v-if="noWorksS && noWorksS[toolIndex].length"
  6296. >
  6297. <div
  6298. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6299. :key="sIndex"
  6300. class="noWorksName"
  6301. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6302. >
  6303. <el-tooltip effect="dark" :content="s.student" placement="top">
  6304. <span>{{ s.student }}</span>
  6305. </el-tooltip>
  6306. </div>
  6307. </div>
  6308. </div>
  6309. <div
  6310. v-if="
  6311. tType &&
  6312. ((tType == 2 && sIsOpen == true) ||
  6313. tType == 1 ||
  6314. tType == 4) &&
  6315. tool.tool.indexOf(48) != -1
  6316. "
  6317. class="worksBox"
  6318. >
  6319. <div
  6320. class="zuoyeYulan"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div class="worksTop">
  6327. <div>作业预览</div>
  6328. <div
  6329. class="corOpen"
  6330. @click="contract(toolIndex)"
  6331. v-if="
  6332. (isCloseList[toolIndex].isCloseBoolean) &&
  6333. isCloseList[toolIndex].isClose == 0
  6334. "
  6335. >
  6336. 折叠
  6337. </div>
  6338. <div
  6339. class="corOpen"
  6340. @click="contract(toolIndex)"
  6341. v-if="isCloseList[toolIndex].isClose == 1"
  6342. >
  6343. 展开
  6344. </div>
  6345. </div>
  6346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6347. </div>
  6348. <div
  6349. :id="'tool-' + toolIndex"
  6350. :style="{
  6351. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6352. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6353. }"
  6354. class="worksDetailBox"
  6355. v-if="
  6356. worksStudent.length &&
  6357. worksStudent[toolIndex].length > 0
  6358. "
  6359. >
  6360. <div
  6361. class="works"
  6362. style="
  6363. width: 200px;
  6364. height: 140px;
  6365. margin: 10px 10px 10px 0;
  6366. border-radius: 15px;
  6367. box-shadow: 0 0 6px 1px #dfdada;
  6368. "
  6369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6370. :key="wIndex"
  6371. :class="w.type == 1 ? 'isTypeOne' : ''"
  6372. >
  6373. <div class="workImg">
  6374. <img :src="word" @click="openTable(w)" alt />
  6375. <!-- @click="openFile(w.works)" -->
  6376. <div
  6377. class="answerScore"
  6378. v-if="w.score"
  6379. @click.stop="openScore(w)"
  6380. :class="{
  6381. rightW:
  6382. w.userid == userid ||
  6383. tType == 1 ||
  6384. tType == 4 ||
  6385. w.ateacher == userid,
  6386. }"
  6387. >
  6388. {{ JSON.parse(w.score).wScore }}分
  6389. </div>
  6390. <div
  6391. class="answerScore"
  6392. @click.stop="openScore(w)"
  6393. v-else-if="courseDetail.userid == userid"
  6394. :class="{
  6395. rightW:
  6396. w.userid == userid ||
  6397. tType == 1 ||
  6398. tType == 4 ||
  6399. w.ateacher == userid,
  6400. }"
  6401. >
  6402. 评分
  6403. </div>
  6404. <img
  6405. class="deleteImg"
  6406. src="../assets/deleteworks.png"
  6407. v-if="
  6408. w.userid == userid || tType == 1 || tType == 4
  6409. "
  6410. @click.stop="deleteWorks(w.wid)"
  6411. alt
  6412. />
  6413. </div>
  6414. <div class="comment" style="min-width: 200px">
  6415. <div class="worksName">
  6416. <div>{{ w.sName }}</div>
  6417. </div>
  6418. <div class="commentList">
  6419. <div class="commentList">
  6420. <div
  6421. class="commentImg"
  6422. @click="
  6423. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6424. "
  6425. >
  6426. <img
  6427. :src="w.isLikes == true ? likes : noLikes"
  6428. alt=""
  6429. />
  6430. </div>
  6431. <div>{{ w.likesCount }}</div>
  6432. </div>
  6433. <div class="commentList" style="margin-right: 15px">
  6434. <div
  6435. class="commentImg"
  6436. @click="commentOther(w, toolIndex, wIndex)"
  6437. >
  6438. <img
  6439. src="../assets/icon/comment/comment.png"
  6440. alt=""
  6441. />
  6442. </div>
  6443. <div>{{ w.commentCount }}</div>
  6444. </div>
  6445. </div>
  6446. </div>
  6447. </div>
  6448. </div>
  6449. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6450. 未提交
  6451. </div>
  6452. <div
  6453. class="noWorksS"
  6454. v-if="noWorksS && noWorksS[toolIndex].length"
  6455. >
  6456. <div
  6457. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6458. :key="sIndex"
  6459. class="noWorksName"
  6460. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6461. >
  6462. <el-tooltip effect="dark" :content="s.student" placement="top">
  6463. <span>{{ s.student }}</span>
  6464. </el-tooltip>
  6465. </div>
  6466. </div>
  6467. </div>
  6468. <div
  6469. v-if="
  6470. tType &&
  6471. tType == 2 &&
  6472. !sIsOpen &&
  6473. tool.tool.indexOf(48) != -1
  6474. "
  6475. class="worksBox"
  6476. >
  6477. <div
  6478. class="zuoyeYulan"
  6479. v-if="workStudent[toolIndex].length > 0"
  6480. >
  6481. <span class="worksTitle">作业预览</span>
  6482. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6483. </div>
  6484. <div
  6485. class="worksDetailBox"
  6486. v-if="workStudent[toolIndex].length > 0"
  6487. >
  6488. <div
  6489. class="works"
  6490. style="
  6491. width: 200px;
  6492. height: 140px;
  6493. margin: 10px 10px 10px 0;
  6494. box-shadow: 0 0 6px 1px #dfdada;
  6495. "
  6496. v-for="(w, wIndex) in workStudent[toolIndex]"
  6497. :key="wIndex"
  6498. >
  6499. <div class="workImg">
  6500. <img :src="word" @click="openTable(w)" alt />
  6501. <div
  6502. class="answerScore"
  6503. v-if="w.score"
  6504. @click.stop="openScore(w)"
  6505. :class="{
  6506. rightW:
  6507. w.userid == userid || tType == 1 || tType == 4,
  6508. }"
  6509. >
  6510. {{ JSON.parse(w.score).wScore }}分
  6511. </div>
  6512. <div
  6513. class="answerScore"
  6514. @click.stop="openScore(w)"
  6515. v-else-if="courseDetail.userid == userid"
  6516. :class="{
  6517. rightW:
  6518. w.userid == userid || tType == 1 || tType == 4,
  6519. }"
  6520. >
  6521. 评分
  6522. </div>
  6523. <img
  6524. class="deleteImg"
  6525. src="../assets/deleteworks.png"
  6526. v-if="
  6527. w.userid == userid || tType == 1 || tType == 4
  6528. "
  6529. @click.stop="deleteWorks(w.wid)"
  6530. alt
  6531. />
  6532. </div>
  6533. <div class="worksName">
  6534. <div>{{ w.sName }}</div>
  6535. </div>
  6536. </div>
  6537. </div>
  6538. </div>
  6539. <div
  6540. v-if="
  6541. tType &&
  6542. ((tType == 2 && sIsOpen == true) ||
  6543. tType == 1 ||
  6544. tType == 4) &&
  6545. tool.tool.indexOf(52) != -1
  6546. "
  6547. class="worksBox"
  6548. >
  6549. <div
  6550. class="zuoyeYulan"
  6551. v-if="
  6552. worksStudent.length &&
  6553. worksStudent[toolIndex].length > 0
  6554. "
  6555. >
  6556. <div class="worksTop">
  6557. <div>作业预览</div>
  6558. <div
  6559. class="corOpen"
  6560. @click="contract(toolIndex)"
  6561. v-if="
  6562. (isCloseList[toolIndex].isCloseBoolean) &&
  6563. isCloseList[toolIndex].isClose == 0
  6564. "
  6565. >
  6566. 折叠
  6567. </div>
  6568. <div
  6569. class="corOpen"
  6570. @click="contract(toolIndex)"
  6571. v-if="isCloseList[toolIndex].isClose == 1"
  6572. >
  6573. 展开
  6574. </div>
  6575. </div>
  6576. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6577. </div>
  6578. <div
  6579. :id="'tool-' + toolIndex"
  6580. :style="{
  6581. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6582. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6583. }"
  6584. class="worksDetailBox"
  6585. v-if="
  6586. worksStudent.length &&
  6587. worksStudent[toolIndex].length > 0
  6588. "
  6589. >
  6590. <div
  6591. class="works"
  6592. style="
  6593. width: 200px;
  6594. height: 140px;
  6595. margin: 10px 10px 10px 0;
  6596. border-radius: 15px;
  6597. box-shadow: 0 0 6px 1px #dfdada;
  6598. "
  6599. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6600. :key="wIndex"
  6601. :class="w.type == 1 ? 'isTypeOne' : ''"
  6602. >
  6603. <div class="workImg">
  6604. <img :src="word" @click="openWord(w)" alt />
  6605. <!-- @click="openFile(w.works)" -->
  6606. <div
  6607. class="answerScore"
  6608. v-if="w.score"
  6609. @click.stop="openScore(w)"
  6610. :class="{
  6611. rightW:
  6612. w.userid == userid ||
  6613. tType == 1 ||
  6614. tType == 4 ||
  6615. w.ateacher == userid,
  6616. }"
  6617. >
  6618. {{ JSON.parse(w.score).wScore }}分
  6619. </div>
  6620. <div
  6621. class="answerScore"
  6622. @click.stop="openScore(w)"
  6623. v-else-if="courseDetail.userid == userid"
  6624. :class="{
  6625. rightW:
  6626. w.userid == userid ||
  6627. tType == 1 ||
  6628. tType == 4 ||
  6629. w.ateacher == userid,
  6630. }"
  6631. >
  6632. 评分
  6633. </div>
  6634. <img
  6635. class="deleteImg"
  6636. src="../assets/deleteworks.png"
  6637. v-if="
  6638. w.userid == userid || tType == 1 || tType == 4
  6639. "
  6640. @click.stop="deleteWorks(w.wid)"
  6641. alt
  6642. />
  6643. </div>
  6644. <div class="comment" style="min-width: 200px">
  6645. <div class="worksName">
  6646. <div>{{ w.sName }}</div>
  6647. </div>
  6648. <div class="commentList">
  6649. <div class="commentList">
  6650. <div
  6651. class="commentImg"
  6652. @click="
  6653. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6654. "
  6655. >
  6656. <img
  6657. :src="w.isLikes == true ? likes : noLikes"
  6658. alt=""
  6659. />
  6660. </div>
  6661. <div>{{ w.likesCount }}</div>
  6662. </div>
  6663. <div class="commentList" style="margin-right: 15px">
  6664. <div
  6665. class="commentImg"
  6666. @click="commentOther(w, toolIndex, wIndex)"
  6667. >
  6668. <img
  6669. src="../assets/icon/comment/comment.png"
  6670. alt=""
  6671. />
  6672. </div>
  6673. <div>{{ w.commentCount }}</div>
  6674. </div>
  6675. </div>
  6676. </div>
  6677. </div>
  6678. </div>
  6679. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6680. 未提交
  6681. </div>
  6682. <div
  6683. class="noWorksS"
  6684. v-if="noWorksS && noWorksS[toolIndex].length"
  6685. >
  6686. <div
  6687. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6688. :key="sIndex"
  6689. class="noWorksName"
  6690. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6691. >
  6692. <el-tooltip effect="dark" :content="s.student" placement="top">
  6693. <span>{{ s.student }}</span>
  6694. </el-tooltip>
  6695. </div>
  6696. </div>
  6697. </div>
  6698. <div
  6699. v-if="
  6700. tType &&
  6701. tType == 2 &&
  6702. !sIsOpen &&
  6703. tool.tool.indexOf(52) != -1
  6704. "
  6705. class="worksBox"
  6706. >
  6707. <div
  6708. class="zuoyeYulan"
  6709. v-if="workStudent[toolIndex].length > 0"
  6710. >
  6711. <span class="worksTitle">作业预览</span>
  6712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6713. </div>
  6714. <div
  6715. class="worksDetailBox"
  6716. v-if="workStudent[toolIndex].length > 0"
  6717. >
  6718. <div
  6719. class="works"
  6720. style="
  6721. width: 200px;
  6722. height: 140px;
  6723. margin: 10px 10px 10px 0;
  6724. box-shadow: 0 0 6px 1px #dfdada;
  6725. "
  6726. v-for="(w, wIndex) in workStudent[toolIndex]"
  6727. :key="wIndex"
  6728. >
  6729. <div class="workImg">
  6730. <img :src="word" @click="openWord(w)" alt />
  6731. <div
  6732. class="answerScore"
  6733. v-if="w.score"
  6734. @click.stop="openScore(w)"
  6735. :class="{
  6736. rightW:
  6737. w.userid == userid || tType == 1 || tType == 4,
  6738. }"
  6739. >
  6740. {{ JSON.parse(w.score).wScore }}分
  6741. </div>
  6742. <div
  6743. class="answerScore"
  6744. @click.stop="openScore(w)"
  6745. v-else-if="courseDetail.userid == userid"
  6746. :class="{
  6747. rightW:
  6748. w.userid == userid || tType == 1 || tType == 4,
  6749. }"
  6750. >
  6751. 评分
  6752. </div>
  6753. <img
  6754. class="deleteImg"
  6755. src="../assets/deleteworks.png"
  6756. v-if="
  6757. w.userid == userid || tType == 1 || tType == 4
  6758. "
  6759. @click.stop="deleteWorks(w.wid)"
  6760. alt
  6761. />
  6762. </div>
  6763. <div class="worksName">
  6764. <div>{{ w.sName }}</div>
  6765. </div>
  6766. </div>
  6767. </div>
  6768. </div>
  6769. <div
  6770. v-if="tool.tool.indexOf(49) != -1"
  6771. class="xuan_right_box"
  6772. style="margin: 0 15px 0 25px; width: 93%"
  6773. >
  6774. <div
  6775. v-if="courseDetail.userid == userid"
  6776. style="
  6777. display: flex;
  6778. justify-content: flex-end;
  6779. margin-right: 10px;
  6780. "
  6781. >
  6782. <el-button
  6783. type="primary"
  6784. size="small"
  6785. @click="addTools(49, toolIndex, taskCount)"
  6786. >分组设置</el-button
  6787. >
  6788. </div>
  6789. <div
  6790. v-if="groupStudentUid[toolIndex]"
  6791. class="group_staic_box"
  6792. >
  6793. <div
  6794. v-for="(gp, gd) in tool.groupJson.group"
  6795. :key="gd"
  6796. class="group_staic"
  6797. >
  6798. <span> {{ gp.name }}</span>
  6799. <span>
  6800. 目前人数{{
  6801. groupStudentUid[toolIndex][gd].length
  6802. }}人</span
  6803. >
  6804. </div>
  6805. </div>
  6806. </div>
  6807. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6808. <div
  6809. class="zuoyeYulan"
  6810. v-if="
  6811. worksStudent.length &&
  6812. worksStudent[toolIndex].length > 0
  6813. "
  6814. >
  6815. <span class="worksTitle">作业预览</span>
  6816. </div>
  6817. <div>
  6818. <div
  6819. class="group_workBox"
  6820. v-for="(g, gindex) in tool.groupJson.group"
  6821. :key="gindex"
  6822. >
  6823. <div
  6824. class="group_box"
  6825. v-if="
  6826. groupStudentUid[toolIndex] &&
  6827. worksStudent[toolIndex] &&
  6828. (worksStudent[toolIndex][gindex].length ||
  6829. groupStudentUid[toolIndex][gindex].indexOf(
  6830. userid
  6831. ) != -1)
  6832. "
  6833. >
  6834. <div class="group_title">
  6835. <el-tooltip
  6836. class="item"
  6837. effect="light"
  6838. :content="g.name"
  6839. placement="top"
  6840. >
  6841. <div class="group_name">{{ g.name }}</div>
  6842. </el-tooltip>
  6843. <el-button
  6844. type="primary"
  6845. v-if="
  6846. groupStudentUid[toolIndex][gindex].indexOf(
  6847. userid
  6848. ) != -1
  6849. "
  6850. @click="groupUpload(toolIndex, taskCount, gindex)"
  6851. >上传作业</el-button
  6852. >
  6853. </div>
  6854. <div class="group_work">
  6855. <div
  6856. class="works"
  6857. style="
  6858. width: 200px;
  6859. height: 140px;
  6860. margin: 10px 10px 10px 0;
  6861. border-radius: 15px;
  6862. box-shadow: 0 0 6px 1px #dfdada;
  6863. "
  6864. v-for="(w, wIndex) in worksStudent[toolIndex][
  6865. gindex
  6866. ]"
  6867. :key="wIndex"
  6868. :class="w.type == 1 ? 'isTypeOne' : ''"
  6869. >
  6870. <div class="workImg" v-if="w.type == 0">
  6871. <img
  6872. :src="w.works"
  6873. @click="previewImg(w.works,w)"
  6874. alt
  6875. />
  6876. <div
  6877. class="answerScore"
  6878. v-if="w.score"
  6879. @click.stop="openScore(w)"
  6880. :class="{
  6881. rightW:
  6882. w.userid == userid ||
  6883. tType == 1 ||
  6884. tType == 4 ||
  6885. w.ateacher == userid,
  6886. }"
  6887. >
  6888. {{ JSON.parse(w.score).wScore }}分
  6889. </div>
  6890. <div
  6891. class="answerScore"
  6892. @click.stop="openScore(w)"
  6893. v-else-if="courseDetail.userid == userid"
  6894. :class="{
  6895. rightW:
  6896. w.userid == userid ||
  6897. tType == 1 ||
  6898. tType == 4 ||
  6899. w.ateacher == userid,
  6900. }"
  6901. >
  6902. 评分
  6903. </div>
  6904. <img
  6905. class="deleteImg"
  6906. src="../assets/deleteworks.png"
  6907. v-if="
  6908. w.userid == userid ||
  6909. tType == 1 ||
  6910. tType == 4
  6911. "
  6912. @click.stop="deleteWorks(w.wid)"
  6913. alt
  6914. />
  6915. </div>
  6916. <div class="workImg" v-if="w.type == 1">
  6917. <img
  6918. :src="word"
  6919. @click="openFile(w.works,w)"
  6920. alt
  6921. />
  6922. <!-- @click="openFile(w.works)" -->
  6923. <div
  6924. class="answerScore"
  6925. v-if="w.score"
  6926. @click.stop="openScore(w)"
  6927. :class="{
  6928. rightW:
  6929. w.userid == userid ||
  6930. tType == 1 ||
  6931. tType == 4 ||
  6932. w.ateacher == userid,
  6933. }"
  6934. >
  6935. {{ JSON.parse(w.score).wScore }}分
  6936. </div>
  6937. <div
  6938. class="answerScore"
  6939. @click.stop="openScore(w)"
  6940. v-else-if="courseDetail.userid == userid"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4 ||
  6946. w.ateacher == userid,
  6947. }"
  6948. >
  6949. 评分
  6950. </div>
  6951. <img
  6952. class="deleteImg"
  6953. src="../assets/deleteworks.png"
  6954. v-if="
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4
  6958. "
  6959. @click.stop="deleteWorks(w.wid)"
  6960. alt
  6961. />
  6962. </div>
  6963. <div class="workImg" v-if="w.type == 3">
  6964. <img
  6965. style="cursor: pointer"
  6966. :src="video"
  6967. @click="openVideo(w)"
  6968. alt
  6969. />
  6970. <!-- @click="openVideo(w.works)" -->
  6971. <div
  6972. class="answerScore"
  6973. v-if="w.score"
  6974. @click.stop="openScore(w)"
  6975. :class="{
  6976. rightW:
  6977. w.userid == userid ||
  6978. tType == 1 ||
  6979. tType == 4 ||
  6980. w.ateacher == userid,
  6981. }"
  6982. >
  6983. {{ JSON.parse(w.score).wScore }}分
  6984. </div>
  6985. <div
  6986. class="answerScore"
  6987. @click.stop="openScore(w)"
  6988. v-else-if="courseDetail.userid == userid"
  6989. :class="{
  6990. rightW:
  6991. w.userid == userid ||
  6992. tType == 1 ||
  6993. tType == 4 ||
  6994. w.ateacher == userid,
  6995. }"
  6996. >
  6997. 评分
  6998. </div>
  6999. <img
  7000. class="deleteImg"
  7001. src="../assets/deleteworks.png"
  7002. v-if="
  7003. w.userid == userid ||
  7004. tType == 1 ||
  7005. tType == 4
  7006. "
  7007. @click.stop="deleteWorks(w.wid)"
  7008. alt
  7009. />
  7010. </div>
  7011. <div class="workImg" v-if="w.type == 12">
  7012. <img
  7013. style="cursor: pointer"
  7014. :src="word2"
  7015. @click="downloadFile(w.works)"
  7016. alt
  7017. />
  7018. <!-- @click="openVideo(w.works)" -->
  7019. <div
  7020. class="answerScore"
  7021. v-if="w.score"
  7022. @click.stop="openScore(w)"
  7023. :class="{
  7024. rightW:
  7025. w.userid == userid ||
  7026. tType == 1 ||
  7027. tType == 4 ||
  7028. w.ateacher == userid,
  7029. }"
  7030. >
  7031. {{ JSON.parse(w.score).wScore }}分
  7032. </div>
  7033. <div
  7034. class="answerScore"
  7035. @click.stop="openScore(w)"
  7036. v-else-if="courseDetail.userid == userid"
  7037. :class="{
  7038. rightW:
  7039. w.userid == userid ||
  7040. tType == 1 ||
  7041. tType == 4 ||
  7042. w.ateacher == userid,
  7043. }"
  7044. >
  7045. 评分
  7046. </div>
  7047. <img
  7048. class="deleteImg"
  7049. src="../assets/deleteworks.png"
  7050. v-if="
  7051. w.userid == userid ||
  7052. tType == 1 ||
  7053. tType == 4
  7054. "
  7055. @click.stop="deleteWorks(w.wid)"
  7056. alt
  7057. />
  7058. </div>
  7059. <div class="comment" style="min-width: 200px">
  7060. <div class="worksName">
  7061. <div>{{ w.sName }}</div>
  7062. </div>
  7063. <div class="commentList">
  7064. <div class="commentList">
  7065. <div
  7066. class="commentImg"
  7067. @click="
  7068. isLikes(
  7069. w.wid,
  7070. userid,
  7071. 1,
  7072. null,
  7073. w.isLikes,
  7074. w.sName
  7075. )
  7076. "
  7077. >
  7078. <img
  7079. :src="
  7080. w.isLikes == true ? likes : noLikes
  7081. "
  7082. alt=""
  7083. />
  7084. </div>
  7085. <div>{{ w.likesCount }}</div>
  7086. </div>
  7087. <div
  7088. class="commentList"
  7089. style="margin-right: 15px"
  7090. >
  7091. <div
  7092. class="commentImg"
  7093. @click="
  7094. commentOther(
  7095. w,
  7096. toolIndex,
  7097. wIndex,
  7098. gindex
  7099. )
  7100. "
  7101. >
  7102. <img
  7103. src="../assets/icon/comment/comment.png"
  7104. alt=""
  7105. />
  7106. </div>
  7107. <div>{{ w.commentCount }}</div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. </div>
  7112. </div>
  7113. </div>
  7114. </div>
  7115. </div>
  7116. </div>
  7117. </div>
  7118. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7119. 上传文件
  7120. <input
  7121. type="file"
  7122. accept="image/png, image/gif, image/jpeg"
  7123. style="display: none"
  7124. @change="beforeUpload1($event, 2, index)"
  7125. />
  7126. </div>-->
  7127. </div>
  7128. </div>
  7129. <!-- <div
  7130. class="vedioBox"
  7131. style="margin-top: 10px"
  7132. v-if="
  7133. courseDetail.userid == userid ||
  7134. (courseDetail.course_teacher &&
  7135. courseDetail.course_teacher.indexOf(userid) != -1)
  7136. "
  7137. :style="{
  7138. borderRadius:
  7139. !(
  7140. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7141. .toolChoose[0].tool &&
  7142. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7143. .toolChoose[0].tool.length > 0
  7144. ) &&
  7145. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7146. .taskDetail == '' &&
  7147. vChapterData[taskCount].length == 0 &&
  7148. fileC[taskCount].length == 0
  7149. ? '0 0 20px 20px'
  7150. : '20px',
  7151. }"
  7152. >
  7153. <div
  7154. class="queTop"
  7155. @click="isClose = !isClose"
  7156. style="
  7157. padding: 15px 0 15px 37px;
  7158. justify-content: space-between;
  7159. "
  7160. >
  7161. <div class="queTopTitle">新增工具</div>
  7162. <div class="queTopRight">
  7163. <div class="queTopClose" v-if="isClose == 0">
  7164. 展开
  7165. <div class="closeImg">
  7166. <img src="../assets/icon/newIcon/close.png" alt="" />
  7167. </div>
  7168. </div>
  7169. <div class="queTopClose" v-if="isClose == 1">
  7170. 折叠
  7171. <div class="openImg">
  7172. <img src="../assets/icon/newIcon/open.png" alt="" />
  7173. </div>
  7174. </div>
  7175. <el-button
  7176. style="margin: 0 30px 0 auto"
  7177. type="primary"
  7178. size="small"
  7179. v-if="isClose == 1 && checktoolArray.length > 0"
  7180. @click.stop="addToolChoose"
  7181. >确定</el-button
  7182. >
  7183. </div>
  7184. </div>
  7185. <div
  7186. class="tool_work_box"
  7187. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7188. >
  7189. <div class="tool_box">
  7190. <div class="tool_type_box">
  7191. <div class="chooseWho">
  7192. <div
  7193. :class="toolType == 0 ? 'isChooseActive' : ''"
  7194. @click="(toolType = 0), $forceUpdate()"
  7195. >
  7196. 互动类
  7197. </div>
  7198. <div
  7199. :class="toolType == 1 ? 'isChooseActive' : ''"
  7200. @click="(toolType = 1), $forceUpdate()"
  7201. >
  7202. 思维类
  7203. </div>
  7204. <div
  7205. :class="toolType == 2 ? 'isChooseActive' : ''"
  7206. @click="(toolType = 2), $forceUpdate()"
  7207. >
  7208. 测评类
  7209. </div>
  7210. <div
  7211. :class="toolType == 3 ? 'isChooseActive' : ''"
  7212. @click="(toolType = 3), $forceUpdate()"
  7213. >
  7214. 编程类
  7215. </div>
  7216. <div
  7217. :class="toolType == 5 ? 'isChooseActive' : ''"
  7218. @click="(toolType = 5), $forceUpdate()"
  7219. >
  7220. 学科类
  7221. </div>
  7222. </div>
  7223. </div>
  7224. <div>
  7225. <div class="toolSort" v-if="toolType == 0">
  7226. <div class="tool">
  7227. <div class="whiteBIcon" @click="addTools2(10)">
  7228. <img
  7229. src="../assets/icon/thirdToolList/time.png"
  7230. alt
  7231. />
  7232. <div style="margin: 5px 0">倒计时</div>
  7233. </div>
  7234. <div class="check" @click="addTools2(10)">
  7235. <img
  7236. src="../assets/icon/checkNo.png"
  7237. alt
  7238. v-if="checktoolArray.indexOf(10) == -1"
  7239. />
  7240. <div class="checkDiv" v-else>
  7241. <img src="../assets/icon/checkedIs.png" alt /><span
  7242. >已选择</span
  7243. >
  7244. </div>
  7245. </div>
  7246. </div>
  7247. <div class="tool">
  7248. <div class="whiteBIcon" @click="addTools2(65)">
  7249. <img
  7250. src="../assets/icon/firstToolList/pickPeople.png"
  7251. alt
  7252. />
  7253. <div style="margin: 5px 0">挑人</div>
  7254. </div>
  7255. <div class="check" @click="addTools2(65)">
  7256. <img
  7257. src="../assets/icon/checkNo.png"
  7258. alt
  7259. v-if="checktoolArray.indexOf(65) == -1"
  7260. />
  7261. <div class="checkDiv" v-else>
  7262. <img src="../assets/icon/checkedIs.png" alt /><span
  7263. >已选择</span
  7264. >
  7265. </div>
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="toolSort" v-if="toolType == 1">
  7270. <div class="tool">
  7271. <div class="whiteBIcon" @click="addTools2(7)">
  7272. <img
  7273. src="../assets/icon/secondToolList/mindNetwork.png"
  7274. alt
  7275. />
  7276. <div style="margin: 5px 0">思维网格</div>
  7277. </div>
  7278. <div class="check" @click="addTools2(7)">
  7279. <img
  7280. src="../assets/icon/checkNo.png"
  7281. alt
  7282. v-if="checktoolArray.indexOf(7) == -1"
  7283. />
  7284. <div class="checkDiv" v-else>
  7285. <img src="../assets/icon/checkedIs.png" alt /><span
  7286. >已选择</span
  7287. >
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div class="tool">
  7292. <div class="whiteBIcon" @click="addTools2(1)">
  7293. <img
  7294. src="../assets/icon/secondToolList/whiteBoard.png"
  7295. alt
  7296. />
  7297. <div style="margin: 5px 0">电子白板</div>
  7298. </div>
  7299. <div class="check" @click="addTools2(1)">
  7300. <img
  7301. src="../assets/icon/checkNo.png"
  7302. alt
  7303. v-if="checktoolArray.indexOf(1) == -1"
  7304. />
  7305. <div class="checkDiv" v-else>
  7306. <img src="../assets/icon/checkedIs.png" alt /><span
  7307. >已选择</span
  7308. >
  7309. </div>
  7310. </div>
  7311. </div>
  7312. <div class="tool">
  7313. <div class="whiteBIcon" @click="addTools2(52)">
  7314. <img
  7315. src="../assets/icon/fourthToolList/text.png"
  7316. alt
  7317. />
  7318. <div style="margin: 5px 0">文档</div>
  7319. </div>
  7320. <div class="check" @click="addTools2(52)">
  7321. <img
  7322. src="../assets/icon/checkNo.png"
  7323. alt
  7324. v-if="checktoolArray.indexOf(52) == -1"
  7325. />
  7326. <div class="checkDiv" v-else>
  7327. <img src="../assets/icon/checkedIs.png" alt /><span
  7328. >已选择</span
  7329. >
  7330. </div>
  7331. </div>
  7332. </div>
  7333. <div class="tool">
  7334. <div class="whiteBIcon" @click="addTools2(3)">
  7335. <img
  7336. src="../assets/icon/secondToolList/mindMapping.png"
  7337. alt
  7338. />
  7339. <div style="margin: 5px 0">思维导图</div>
  7340. </div>
  7341. <div class="check" @click="addTools2(3)">
  7342. <img
  7343. src="../assets/icon/checkNo.png"
  7344. alt
  7345. v-if="checktoolArray.indexOf(3) == -1"
  7346. />
  7347. <div class="checkDiv" v-else>
  7348. <img src="../assets/icon/checkedIs.png" alt /><span
  7349. >已选择</span
  7350. >
  7351. </div>
  7352. </div>
  7353. </div>
  7354. <div class="tool">
  7355. <div class="whiteBIcon" @click="addTools2(48)">
  7356. <img
  7357. src="../assets/icon/fourthToolList/table.png"
  7358. alt
  7359. />
  7360. <div style="margin: 5px 0">表格</div>
  7361. </div>
  7362. <div class="check" @click="addTools2(48)">
  7363. <img
  7364. src="../assets/icon/checkNo.png"
  7365. alt
  7366. v-if="checktoolArray.indexOf(48) == -1"
  7367. />
  7368. <div class="checkDiv" v-else>
  7369. <img src="../assets/icon/checkedIs.png" alt /><span
  7370. >已选择</span
  7371. >
  7372. </div>
  7373. </div>
  7374. </div>
  7375. </div>
  7376. <div class="toolSort" v-if="toolType == 6">
  7377. <div v-show="tooC == 49">
  7378. <img
  7379. @click="addTools(tooC, toolIndex, taskCount)"
  7380. src="../assets/icon/fourthToolList/group.png"
  7381. alt
  7382. />
  7383. <div style="margin: 5px 0">学生分组</div>
  7384. </div>
  7385. </div>
  7386. <div class="toolSort" v-if="toolType == 2">
  7387. <div class="tool">
  7388. <div class="whiteBIcon" @click="addTools2(16)">
  7389. <img
  7390. src="../assets/icon/thirdToolList/work.png"
  7391. alt
  7392. />
  7393. <div style="margin: 5px 0">作业提交</div>
  7394. </div>
  7395. <div class="check" @click="addTools2(16)">
  7396. <img
  7397. src="../assets/icon/checkNo.png"
  7398. alt
  7399. v-if="checktoolArray.indexOf(16) == -1"
  7400. />
  7401. <div class="checkDiv" v-else>
  7402. <img src="../assets/icon/checkedIs.png" alt /><span
  7403. >已选择</span
  7404. >
  7405. </div>
  7406. </div>
  7407. </div>
  7408. <div class="tool">
  7409. <div class="whiteBIcon" @click="addTools2(50)">
  7410. <img
  7411. src="../assets/icon/thirdToolList/plwork.png"
  7412. alt
  7413. />
  7414. <div style="margin: 5px 0">批量上传</div>
  7415. </div>
  7416. <div class="check" @click="addTools2(50)">
  7417. <img
  7418. src="../assets/icon/checkNo.png"
  7419. alt
  7420. v-if="checktoolArray.indexOf(50) == -1"
  7421. />
  7422. <div class="checkDiv" v-else>
  7423. <img src="../assets/icon/checkedIs.png" alt /><span
  7424. >已选择</span
  7425. >
  7426. </div>
  7427. </div>
  7428. </div>
  7429. </div>
  7430. <div class="toolSort" v-if="toolType == 3">
  7431. <div class="tool">
  7432. <div class="whiteBIcon" @click="addTools2(18)">
  7433. <img
  7434. src="../assets/icon/thirdToolList/trainPlatform.png"
  7435. alt
  7436. />
  7437. <div style="margin: 5px 0">训练平台</div>
  7438. </div>
  7439. <div class="check" @click="addTools2(18)">
  7440. <img
  7441. src="../assets/icon/checkNo.png"
  7442. alt
  7443. v-if="checktoolArray.indexOf(18) == -1"
  7444. />
  7445. <div class="checkDiv" v-else>
  7446. <img src="../assets/icon/checkedIs.png" alt /><span
  7447. >已选择</span
  7448. >
  7449. </div>
  7450. </div>
  7451. </div>
  7452. <div class="tool">
  7453. <div class="whiteBIcon" @click="addTools2(21)">
  7454. <img
  7455. src="../assets/icon/fourthToolList/program.png"
  7456. alt
  7457. />
  7458. <div style="margin: 5px 0">AIoT Blockly</div>
  7459. </div>
  7460. <div class="check" @click="addTools2(21)">
  7461. <img
  7462. src="../assets/icon/checkNo.png"
  7463. alt
  7464. v-if="checktoolArray.indexOf(21) == -1"
  7465. />
  7466. <div class="checkDiv" v-else>
  7467. <img src="../assets/icon/checkedIs.png" alt /><span
  7468. >已选择</span
  7469. >
  7470. </div>
  7471. </div>
  7472. </div>
  7473. <div class="tool">
  7474. <div class="whiteBIcon" @click="addTools2(23)">
  7475. <img
  7476. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7477. alt
  7478. />
  7479. <div style="margin: 5px 0">AI Python</div>
  7480. </div>
  7481. <div class="check" @click="addTools2(23)">
  7482. <img
  7483. src="../assets/icon/checkNo.png"
  7484. alt
  7485. v-if="checktoolArray.indexOf(23) == -1"
  7486. />
  7487. <div class="checkDiv" v-else>
  7488. <img src="../assets/icon/checkedIs.png" alt /><span
  7489. >已选择</span
  7490. >
  7491. </div>
  7492. </div>
  7493. </div>
  7494. <div class="tool">
  7495. <div class="whiteBIcon" @click="addTools2(24)">
  7496. <img
  7497. src="../assets/icon/fourthToolList/AIprogram.png"
  7498. alt
  7499. />
  7500. <div style="margin: 5px 0">AI Blockly</div>
  7501. </div>
  7502. <div class="check" @click="addTools2(24)">
  7503. <img
  7504. src="../assets/icon/checkNo.png"
  7505. alt
  7506. v-if="checktoolArray.indexOf(24) == -1"
  7507. />
  7508. <div class="checkDiv" v-else>
  7509. <img src="../assets/icon/checkedIs.png" alt /><span
  7510. >已选择</span
  7511. >
  7512. </div>
  7513. </div>
  7514. </div>
  7515. <div class="tool">
  7516. <div class="whiteBIcon" @click="addTools2(32)">
  7517. <img
  7518. src="../assets/icon/thirdToolList/code.png"
  7519. alt
  7520. />
  7521. <div style="margin: 5px 0">源码编辑</div>
  7522. </div>
  7523. <div class="check" @click="addTools2(32)">
  7524. <img
  7525. src="../assets/icon/checkNo.png"
  7526. alt
  7527. v-if="checktoolArray.indexOf(32) == -1"
  7528. />
  7529. <div class="checkDiv" v-else>
  7530. <img src="../assets/icon/checkedIs.png" alt /><span
  7531. >已选择</span
  7532. >
  7533. </div>
  7534. </div>
  7535. </div>
  7536. <div class="tool">
  7537. <div class="whiteBIcon" @click="addTools2(57)">
  7538. <img
  7539. src="../assets/icon/fourthToolList/cocopi.png"
  7540. alt
  7541. />
  7542. <div style="margin: 5px 0">CocoPi</div>
  7543. </div>
  7544. <div class="check" @click="addTools2(57)">
  7545. <img
  7546. src="../assets/icon/checkNo.png"
  7547. alt
  7548. v-if="checktoolArray.indexOf(57) == -1"
  7549. />
  7550. <div class="checkDiv" v-else>
  7551. <img src="../assets/icon/checkedIs.png" alt /><span
  7552. >已选择</span
  7553. >
  7554. </div>
  7555. </div>
  7556. </div>
  7557. <div class="tool">
  7558. <div class="whiteBIcon" @click="addTools2(63)">
  7559. <img
  7560. src="../assets/icon/fourthToolList/Wood.png"
  7561. alt
  7562. />
  7563. <div style="margin: 5px 0">海龟编程</div>
  7564. </div>
  7565. <div class="check" @click="addTools2(63)">
  7566. <img
  7567. src="../assets/icon/checkNo.png"
  7568. alt
  7569. v-if="checktoolArray.indexOf(63) == -1"
  7570. />
  7571. <div class="checkDiv" v-else>
  7572. <img src="../assets/icon/checkedIs.png" alt /><span
  7573. >已选择</span
  7574. >
  7575. </div>
  7576. </div>
  7577. </div>
  7578. </div>
  7579. <div class="toolSort" v-if="toolType == 5">
  7580. <div class="tool">
  7581. <div class="whiteBIcon" @click="addTools2(28)">
  7582. <img
  7583. src="../assets/icon/secondToolList/translation.png"
  7584. alt
  7585. />
  7586. <div style="margin: 5px 0">翻译</div>
  7587. </div>
  7588. <div class="check" @click="addTools2(28)">
  7589. <img
  7590. src="../assets/icon/checkNo.png"
  7591. alt
  7592. v-if="checktoolArray.indexOf(28) == -1"
  7593. />
  7594. <div class="checkDiv" v-else>
  7595. <img src="../assets/icon/checkedIs.png" alt /><span
  7596. >已选择</span
  7597. >
  7598. </div>
  7599. </div>
  7600. </div>
  7601. <div class="tool">
  7602. <div class="whiteBIcon" @click="addTools2(31)">
  7603. <img
  7604. src="../assets/icon/secondToolList/networkPanel.png"
  7605. alt
  7606. />
  7607. <div style="margin: 5px 0">数字画板</div>
  7608. </div>
  7609. <div class="check" @click="addTools2(31)">
  7610. <img
  7611. src="../assets/icon/checkNo.png"
  7612. alt
  7613. v-if="checktoolArray.indexOf(31) == -1"
  7614. />
  7615. <div class="checkDiv" v-else>
  7616. <img src="../assets/icon/checkedIs.png" alt /><span
  7617. >已选择</span
  7618. >
  7619. </div>
  7620. </div>
  7621. </div>
  7622. <div class="tool">
  7623. <div class="whiteBIcon" @click="addTools2(39)">
  7624. <img
  7625. src="../assets/icon/secondToolList/GeoGebra.png"
  7626. alt
  7627. />
  7628. <div style="margin: 5px 0">GeoGebra</div>
  7629. </div>
  7630. <div class="check" @click="addTools2(39)">
  7631. <img
  7632. src="../assets/icon/checkNo.png"
  7633. alt
  7634. v-if="checktoolArray.indexOf(39) == -1"
  7635. />
  7636. <div class="checkDiv" v-else>
  7637. <img src="../assets/icon/checkedIs.png" alt /><span
  7638. >已选择</span
  7639. >
  7640. </div>
  7641. </div>
  7642. </div>
  7643. <div class="tool">
  7644. <div class="whiteBIcon" @click="addTools2(66)">
  7645. <img
  7646. src="../assets/icon/secondToolList/formulaEdi.png"
  7647. alt
  7648. />
  7649. <div style="margin: 5px 0">公式编辑</div>
  7650. </div>
  7651. <div class="check" @click="addTools2(66)">
  7652. <img
  7653. src="../assets/icon/checkNo.png"
  7654. alt
  7655. v-if="checktoolArray.indexOf(66) == -1"
  7656. />
  7657. <div class="checkDiv" v-else>
  7658. <img src="../assets/icon/checkedIs.png" alt /><span
  7659. >已选择</span
  7660. >
  7661. </div>
  7662. </div>
  7663. </div>
  7664. <div class="tool">
  7665. <div class="whiteBIcon" @click="addTools2(67)">
  7666. <img
  7667. src="../assets/icon/secondToolList/molStr.png"
  7668. alt
  7669. />
  7670. <div style="margin: 5px 0">分子结构</div>
  7671. </div>
  7672. <div class="check" @click="addTools2(67)">
  7673. <img
  7674. src="../assets/icon/checkNo.png"
  7675. alt
  7676. v-if="checktoolArray.indexOf(67) == -1"
  7677. />
  7678. <div class="checkDiv" v-else>
  7679. <img src="../assets/icon/checkedIs.png" alt /><span
  7680. >已选择</span
  7681. >
  7682. </div>
  7683. </div>
  7684. </div>
  7685. <div class="tool">
  7686. <div class="whiteBIcon" @click="addTools2(68)">
  7687. <img
  7688. src="../assets/icon/secondToolList/timeAxis.png"
  7689. alt
  7690. />
  7691. <div style="margin: 5px 0">时间轴</div>
  7692. </div>
  7693. <div class="check" @click="addTools2(68)">
  7694. <img
  7695. src="../assets/icon/checkNo.png"
  7696. alt
  7697. v-if="checktoolArray.indexOf(68) == -1"
  7698. />
  7699. <div class="checkDiv" v-else>
  7700. <img src="../assets/icon/checkedIs.png" alt /><span
  7701. >已选择</span
  7702. >
  7703. </div>
  7704. </div>
  7705. </div>
  7706. </div>
  7707. <div class="toolSort" v-if="toolType == 7">
  7708. <div class="tool">
  7709. <div class="whiteBIcon" @click="addTools2(40)">
  7710. <img
  7711. src="../assets/icon/secondToolList/eval.png"
  7712. alt
  7713. />
  7714. <div style="margin: 5px 0">个人评价</div>
  7715. </div>
  7716. <div class="check" @click="addTools2(40)">
  7717. <img
  7718. src="../assets/icon/checkNo.png"
  7719. alt
  7720. v-if="checktoolArray.indexOf(40) == -1"
  7721. />
  7722. <div class="checkDiv" v-else>
  7723. <img src="../assets/icon/checkedIs.png" alt /><span
  7724. >已选择</span
  7725. >
  7726. </div>
  7727. </div>
  7728. </div>
  7729. </div>
  7730. <div class="toolSort" v-if="toolType == 4">
  7731. <div class="tool">
  7732. <div class="whiteBIcon" @click="addTools2(26)">
  7733. <img
  7734. src="../assets/icon/thirdToolList/courseDesign.png"
  7735. alt
  7736. />
  7737. <div style="margin: 5px 0">课程设计</div>
  7738. </div>
  7739. <div class="check" @click="addTools2(26)">
  7740. <img
  7741. src="../assets/icon/checkNo.png"
  7742. alt
  7743. v-if="checktoolArray.indexOf(26) == -1"
  7744. />
  7745. <div class="checkDiv" v-else>
  7746. <img src="../assets/icon/checkedIs.png" alt /><span
  7747. >已选择</span
  7748. >
  7749. </div>
  7750. </div>
  7751. </div>
  7752. <div class="tool">
  7753. <div class="whiteBIcon" @click="addTools2(25)">
  7754. <img
  7755. src="../assets/icon/thirdToolList/evalua.png"
  7756. alt
  7757. />
  7758. <div style="margin: 5px 0">目标管理</div>
  7759. </div>
  7760. <div class="check" @click="addTools2(25)">
  7761. <img
  7762. src="../assets/icon/checkNo.png"
  7763. alt
  7764. v-if="checktoolArray.indexOf(25) == -1"
  7765. />
  7766. <div class="checkDiv" v-else>
  7767. <img src="../assets/icon/checkedIs.png" alt /><span
  7768. >已选择</span
  7769. >
  7770. </div>
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div>
  7775. </div>
  7776. </div>
  7777. </div> -->
  7778. <div
  7779. class="vedioBox"
  7780. style="margin-top: 10px; border-radius: 20px"
  7781. v-if="
  7782. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7783. .eList &&
  7784. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7785. .eList.length &&
  7786. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7787. .eList.length > 0 &&
  7788. tType != 2
  7789. "
  7790. >
  7791. <div
  7792. class="queTop"
  7793. style="
  7794. font-size: 20px;
  7795. padding: 15px 0 15px 37px;
  7796. font-weight: bold;
  7797. "
  7798. >
  7799. <!-- <div class="question" style="width: 30px">
  7800. <img src="../assets/icon/toolIcon.png" alt />
  7801. </div>
  7802. <div class="queTitle">
  7803. <div>工具</div>
  7804. </div>-->
  7805. 评一评
  7806. </div>
  7807. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7808. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7809. <el-table
  7810. :data="
  7811. chapInfoList[courseType].chapterInfo[0].taskJson[
  7812. taskCount
  7813. ].eList
  7814. "
  7815. :header-cell-style="{ background: '#F0F4FA' }"
  7816. :row-class-name="tableRowClassName"
  7817. border
  7818. stripe
  7819. style="width: 100%"
  7820. >
  7821. <el-table-column
  7822. label="评价名称"
  7823. align="center"
  7824. >
  7825. <template slot-scope="scope"
  7826. ><div>{{ scope.row.value }}</div></template
  7827. >
  7828. </el-table-column>
  7829. <el-table-column
  7830. label="评价描述"
  7831. align="center"
  7832. >
  7833. <template slot-scope="scope"
  7834. ><div>
  7835. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7836. </div></template
  7837. >
  7838. </el-table-column>
  7839. <el-table-column label="目标" align="center">
  7840. <template slot-scope="scope"
  7841. ><div>
  7842. {{
  7843. scope.row.target
  7844. ? scope.row.target[scope.row.target.length - 1]
  7845. : "-"
  7846. }}
  7847. </div></template
  7848. ></el-table-column
  7849. >
  7850. </el-table>
  7851. <!-- <div
  7852. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7853. .chapterInfo[0].taskJson[taskCount].eList"
  7854. :key="eIndex"
  7855. class="elist_input_box"
  7856. >
  7857. <div style="width: 95%">
  7858. <div
  7859. style="
  7860. display: flex;
  7861. flex-direction: row;
  7862. flex-wrap: nowrap;
  7863. align-items: center;
  7864. "
  7865. >
  7866. <div style="max-width: calc(100% - 285px)">
  7867. <span>{{ eItem.value }}</span>
  7868. </div>
  7869. <div
  7870. style="
  7871. padding-left: 25px;
  7872. display: flex;
  7873. flex-direction: row;
  7874. align-items: center;
  7875. "
  7876. >
  7877. <el-rate
  7878. v-model="eItem.score"
  7879. :colors="colors"
  7880. disabled
  7881. ></el-rate>
  7882. </div>
  7883. </div>
  7884. <div class="elist_inptu_text" style="padding-left: 10px">
  7885. <span v-if="eItem.detail != ''">{{
  7886. eItem.detail
  7887. }}</span>
  7888. <span v-else style="color: #b2b1b3; font-size: 14px"
  7889. >暂无描述...</span
  7890. >
  7891. </div>
  7892. </div>
  7893. </div> -->
  7894. </div>
  7895. <div
  7896. v-if="evalua"
  7897. style="
  7898. border: 1px solid #e5e5e5;
  7899. max-width: 650px;
  7900. width: 100%;
  7901. margin-top: 20px;
  7902. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7903. "
  7904. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7905. >
  7906. <div class="e_add_top">
  7907. <div class="e_add_title" style="width: 100%">
  7908. <!-- <span>目标管理名称</span> -->
  7909. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7910. <img
  7911. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7912. src="../assets/line.png"
  7913. class="cru_line"
  7914. style="
  7915. width: 125px;
  7916. height: 20px;
  7917. bottom: -10px;
  7918. left: 5px;
  7919. "
  7920. />
  7921. <!-- <el-input
  7922. v-model="eTitle"
  7923. placeholder="请输入名称"
  7924. @change="setMindData"
  7925. ></el-input>-->
  7926. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7927. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7928. </div>
  7929. </div>
  7930. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7931. <div class="e_add_list_pbox">
  7932. <div class="e_add_list_pbox_title">
  7933. <!-- <span class="type_title">切换模式</span> -->
  7934. <div class="type_content">
  7935. <span
  7936. :class="{ active: typeMode == 1 }"
  7937. @click="typeMode = 1"
  7938. >目标树</span
  7939. >
  7940. <span
  7941. :class="{ active: typeMode == 2 }"
  7942. @click="typeMode = 2"
  7943. >目标罗盘</span
  7944. >
  7945. <!-- <span
  7946. :class="{ active: typeMode == 3 }"
  7947. @click="typeMode = 3"
  7948. >目标看板</span
  7949. > -->
  7950. </div>
  7951. </div>
  7952. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7953. <Mind
  7954. :showBar="false"
  7955. :mindData="data"
  7956. style="width: 100%"
  7957. v-show="typeMode == 1"
  7958. ></Mind>
  7959. <Sunburst
  7960. :Josn="eJson"
  7961. :num="eJSONNum"
  7962. style="width: 100%"
  7963. v-if="typeMode == 2"
  7964. ></Sunburst>
  7965. <SeeBoard
  7966. :Josn="eJson"
  7967. :num="eJSONNum"
  7968. :ename="eTitle"
  7969. style="width: 100%"
  7970. v-if="typeMode == 3"
  7971. >
  7972. </SeeBoard>
  7973. </div>
  7974. </div>
  7975. </div>
  7976. </div>
  7977. </div>
  7978. </div>
  7979. <!-- <div
  7980. class="project_box"
  7981. style="margin-top: 15px; padding-bottom: 30px"
  7982. >
  7983. <div
  7984. style="
  7985. display: flex;
  7986. flex-wrap: nowrap;
  7987. flex-direction: column;
  7988. position: relative;
  7989. "
  7990. >
  7991. <div class="queTop">
  7992. <div class="question">
  7993. <img src="../assets/icon/homeWork.png" alt="" />
  7994. </div>
  7995. <div class="queTitle">
  7996. <div>作业提交<span>(提交图文视频等)</span></div>
  7997. <div>:任务:{{ task.task }}</div>
  7998. </div>
  7999. </div>
  8000. <div class="ediBottom">
  8001. <div
  8002. class="addEditor"
  8003. style="margin-top: 23px"
  8004. @click="openAddWork"
  8005. v-if="!isNoHomeWork"
  8006. >
  8007. 选择文件
  8008. </div>
  8009. <div
  8010. class="addEditor"
  8011. style="margin-top: 23px"
  8012. @click="openAddWork"
  8013. v-else
  8014. >
  8015. 已提交
  8016. </div>
  8017. </div>
  8018. </div>
  8019. </div>-->
  8020. </div>
  8021. </div>
  8022. <el-dialog
  8023. title="作业提交"
  8024. :visible.sync="dialogVisible"
  8025. :append-to-body="true"
  8026. width="500px"
  8027. :before-close="handleClose"
  8028. class="dialog_change"
  8029. >
  8030. <div class="marginT">
  8031. <div>上传文件</div>
  8032. <div
  8033. class="chapter_add"
  8034. @click="addImg($event)"
  8035. v-if="studyJuri[0].cover.length == 0"
  8036. >
  8037. <div class="up_photo">
  8038. <img src="../assets/icon/uploadImg.png" alt />
  8039. </div>
  8040. <!-- <input
  8041. type="file"
  8042. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8043. style="display: none"
  8044. @change="beforeUpload1($event, 1)"
  8045. /> -->
  8046. <input
  8047. type="file"
  8048. accept="*"
  8049. style="display: none"
  8050. @change="beforeUpload1($event, 1)"
  8051. />
  8052. <!-- <input
  8053. type="file"
  8054. accept="image/*"
  8055. capture="camera"
  8056. style="display: none"
  8057. @change="beforeUpload1($event, 1)"
  8058. /> -->
  8059. </div>
  8060. <div
  8061. class="chapter_add"
  8062. style="
  8063. display: flex;
  8064. width: 100%;
  8065. flex-direction: row;
  8066. flex-wrap: wrap;
  8067. justify-content: flex-start;
  8068. padding: 15px 0;
  8069. "
  8070. v-if="studyJuri[0].cover.length > 0"
  8071. >
  8072. <div class="upCover">
  8073. <img
  8074. :src="studyJuri[0].cover[0].url"
  8075. alt
  8076. v-if="fileType == 0"
  8077. />
  8078. <img :src="word" alt v-else-if="fileType == 1" />
  8079. <img :src="video" alt v-else-if="fileType == 2" />
  8080. <img :src="word2" alt v-else-if="fileType == 3" />
  8081. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8082. <div class="deleteWord" @click="clean(1)">
  8083. <img src="../assets/icon/deleteWorks.png" alt />
  8084. </div>
  8085. </div>
  8086. </div>
  8087. </div>
  8088. <div
  8089. class="upload_send"
  8090. @click="addCourseWorks(taskCount)"
  8091. v-if="!proVisible"
  8092. >
  8093. 提交
  8094. </div>
  8095. </el-dialog>
  8096. </div>
  8097. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8098. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8099. '/courseDetail?userid=' +
  8100. userid +
  8101. '&oid=' +
  8102. oid +
  8103. '&org=' +
  8104. org +
  8105. '&cid=' +
  8106. classId +
  8107. '&courseId=' +
  8108. id +
  8109. '&tType=' +
  8110. tType +
  8111. '&screenType=' +
  8112. screenType
  8113. )"></classRoomHelper>
  8114. </div>
  8115. <div
  8116. class="pButton"
  8117. @click="(pzDialog = true), selectPz()"
  8118. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8119. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8120. >
  8121. <!-- 批 -->
  8122. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8123. </div>
  8124. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8125. <div class="pzTop2">
  8126. <!-- <div>评论</div>
  8127. <div @click="pzDialog = false">
  8128. <img src="../assets/close1.png" alt="" />
  8129. </div> -->
  8130. <div class="checkbox">
  8131. <!-- <div class="check" style="font-size: 25px; position: unset">
  8132. 评论
  8133. </div> -->
  8134. <div class="cb-tabList">
  8135. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8136. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8137. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8138. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8139. </div>
  8140. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8141. <el-option label="时间降序" :value="1"></el-option>
  8142. <el-option label="时间升序" :value="2"></el-option>
  8143. <el-option label="我的评课" :value="3"></el-option>
  8144. </el-select>
  8145. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8146. </div>
  8147. </div>
  8148. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8149. <div class="pzListBox" v-if="pzList && pzList.length">
  8150. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8151. <div class="pzNavTop">
  8152. <div>评</div>
  8153. <div>
  8154. {{
  8155. pz.username && pz.username.length > 5
  8156. ? pz.username.substring(0, 5) + "..."
  8157. : pz.username
  8158. }}的评论
  8159. </div>
  8160. <div
  8161. class="pzDelete"
  8162. v-if="pz.userid == userid"
  8163. @click="deletePz(pz.id)"
  8164. >
  8165. 删除
  8166. </div>
  8167. </div>
  8168. <div
  8169. @click="checkImg(getImgList(pz.content))"
  8170. class="pzContent cont"
  8171. v-html="pz.content"
  8172. v-if="pz.type == '1'"
  8173. ></div>
  8174. <div class="pzContent" v-if="pz.type == '2'">
  8175. <audio :src="pz.content" controls="controls" ref="audio">
  8176. Your browser does not support the audio element.
  8177. </audio>
  8178. </div>
  8179. <div class="pzContent" v-if="pz.type == '3'">
  8180. <img
  8181. :src="pz.content"
  8182. style="width: 90%; margin: 0 auto; display: block"
  8183. @click="previewImg(pz.content)"
  8184. />
  8185. </div>
  8186. <div class="timeAndReply">
  8187. <div class="time">
  8188. {{ pz.time }}
  8189. </div>
  8190. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8191. </div>
  8192. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8193. <div
  8194. v-for="(h, hIndex) in pz.hfList"
  8195. :key="hIndex"
  8196. class="hfItem"
  8197. >
  8198. <div class="whoReplyWho">
  8199. <div class="hfName">{{ h.username }}</div>
  8200. <div class="hfImg">
  8201. <img src="../assets/icon/newIcons/right.png" alt="" />
  8202. </div>
  8203. <div class="hfName">{{ pz.username }}</div>
  8204. </div>
  8205. <div class="hfContent" v-html="h.content"></div>
  8206. <div class="hfBottom">
  8207. <div class="hfTime">{{ h.time }}</div>
  8208. <div
  8209. class="deleteHfItem"
  8210. @click="deleteReply(h.id)"
  8211. v-if="userid == h.userid"
  8212. >
  8213. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8214. </div>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8219. <div class="replyInput">
  8220. <el-input v-model="reply[pzIndex]"></el-input>
  8221. </div>
  8222. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8223. </div> -->
  8224. </div>
  8225. </div>
  8226. <div class="noPz" v-else>
  8227. <img src="../assets/icon/noPz.png" alt="" />
  8228. </div>
  8229. <div class="addPzButton">
  8230. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8231. 添加评论
  8232. </div>
  8233. <!-- <div class="img1">
  8234. <div @click="(addPzDialog = true), (pzType = 2)">
  8235. <img src="../assets/audio.png" /><span>音频</span>
  8236. </div>
  8237. </div> -->
  8238. </div>
  8239. </div>
  8240. <div class="scoreList" v-if="commentTagShow==1">
  8241. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8242. </div>
  8243. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8244. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8245. </div>
  8246. </div>
  8247. <div
  8248. v-if="toolDialogVisible == true"
  8249. class="toolMask"
  8250. @click="toolDialogVisible = false"
  8251. ></div>
  8252. <div v-if="toolDialogVisible == true" class="addToolCss">
  8253. <div class="toolTop">
  8254. <div style="font-weight: bold">新增工具</div>
  8255. <div @click="toolDialogVisible = false">
  8256. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8257. </div>
  8258. </div>
  8259. <div class="tool_box">
  8260. <div class="tool_type_box">
  8261. <div class="chooseWho">
  8262. <div
  8263. :class="toolType == 0 ? 'isChooseActive' : ''"
  8264. @click="(toolType = 0), $forceUpdate()"
  8265. >
  8266. 互动类
  8267. </div>
  8268. <div
  8269. :class="toolType == 1 ? 'isChooseActive' : ''"
  8270. @click="(toolType = 1), $forceUpdate()"
  8271. >
  8272. 思维类
  8273. </div>
  8274. <div
  8275. :class="toolType == 2 ? 'isChooseActive' : ''"
  8276. @click="(toolType = 2), $forceUpdate()"
  8277. >
  8278. 测评类
  8279. </div>
  8280. <div
  8281. :class="toolType == 3 ? 'isChooseActive' : ''"
  8282. @click="(toolType = 3), $forceUpdate()"
  8283. >
  8284. 编程类
  8285. </div>
  8286. <div
  8287. :class="toolType == 5 ? 'isChooseActive' : ''"
  8288. @click="(toolType = 5), $forceUpdate()"
  8289. >
  8290. 学科类
  8291. </div>
  8292. </div>
  8293. </div>
  8294. <div>
  8295. <div class="toolSort" v-if="toolType == 0">
  8296. <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8299. @click="addTools2(10)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../assets/icon/thirdToolList/time.png" alt />
  8303. <div style="margin: 5px 0">倒计时</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(10) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div>
  8313. <div
  8314. class="tool"
  8315. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8316. @click="addTools2(65)"
  8317. >
  8318. <div class="whiteBIcon">
  8319. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8320. <div style="margin: 5px 0">挑人</div>
  8321. </div>
  8322. <div class="check">
  8323. <div
  8324. v-if="checktoolArray.indexOf(65) == -1"
  8325. class="noChoose"
  8326. ></div>
  8327. <div v-else class="isChoose"></div>
  8328. </div>
  8329. </div>
  8330. </div>
  8331. <div class="toolSort" v-if="toolType == 1">
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8335. @click="addTools2(7)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8339. <div style="margin: 5px 0">思维网格</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(7) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. <div
  8350. class="tool"
  8351. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8352. @click="addTools2(1)"
  8353. >
  8354. <div class="whiteBIcon">
  8355. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8356. <div style="margin: 5px 0">电子白板</div>
  8357. </div>
  8358. <div class="check">
  8359. <div
  8360. v-if="checktoolArray.indexOf(1) == -1"
  8361. class="noChoose"
  8362. ></div>
  8363. <div v-else class="isChoose"></div>
  8364. </div>
  8365. </div>
  8366. <div
  8367. class="tool"
  8368. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8369. @click="addTools2(52)"
  8370. >
  8371. <div class="whiteBIcon">
  8372. <img src="../assets/icon/fourthToolList/text.png" alt />
  8373. <div style="margin: 5px 0">文档</div>
  8374. </div>
  8375. <div class="check">
  8376. <div
  8377. v-if="checktoolArray.indexOf(52) == -1"
  8378. class="noChoose"
  8379. ></div>
  8380. <div v-else class="isChoose"></div>
  8381. </div>
  8382. </div>
  8383. <div
  8384. class="tool"
  8385. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8386. @click="addTools2(3)"
  8387. >
  8388. <div class="whiteBIcon">
  8389. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8390. <div style="margin: 5px 0">思维导图</div>
  8391. </div>
  8392. <div class="check">
  8393. <div
  8394. v-if="checktoolArray.indexOf(3) == -1"
  8395. class="noChoose"
  8396. ></div>
  8397. <div v-else class="isChoose"></div>
  8398. </div>
  8399. </div>
  8400. <div
  8401. class="tool"
  8402. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8403. @click="addTools2(48)"
  8404. >
  8405. <div class="whiteBIcon">
  8406. <img src="../assets/icon/fourthToolList/table.png" alt />
  8407. <div style="margin: 5px 0">表格</div>
  8408. </div>
  8409. <div class="check">
  8410. <div
  8411. v-if="checktoolArray.indexOf(48) == -1"
  8412. class="noChoose"
  8413. ></div>
  8414. <div v-else class="isChoose"></div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. <div class="toolSort" v-if="toolType == 6">
  8419. <div v-show="tooC == 49">
  8420. <img
  8421. @click="addTools(tooC, toolIndex, taskCount)"
  8422. src="../assets/icon/fourthToolList/group.png"
  8423. alt
  8424. />
  8425. <div style="margin: 5px 0">学生分组</div>
  8426. </div>
  8427. </div>
  8428. <div class="toolSort" v-if="toolType == 2">
  8429. <div
  8430. class="tool"
  8431. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8432. @click="addTools2(16)"
  8433. >
  8434. <div class="whiteBIcon">
  8435. <img src="../assets/icon/thirdToolList/work.png" alt />
  8436. <div style="margin: 5px 0">作业提交</div>
  8437. </div>
  8438. <div class="check">
  8439. <div
  8440. v-if="checktoolArray.indexOf(16) == -1"
  8441. class="noChoose"
  8442. ></div>
  8443. <div v-else class="isChoose"></div>
  8444. </div>
  8445. </div>
  8446. <div
  8447. class="tool"
  8448. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8449. @click="addTools2(50)"
  8450. >
  8451. <div class="whiteBIcon">
  8452. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8453. <div style="margin: 5px 0">批量上传</div>
  8454. </div>
  8455. <div class="check">
  8456. <div
  8457. v-if="checktoolArray.indexOf(50) == -1"
  8458. class="noChoose"
  8459. ></div>
  8460. <div v-else class="isChoose"></div>
  8461. </div>
  8462. </div>
  8463. </div>
  8464. <div class="toolSort" v-if="toolType == 3">
  8465. <div
  8466. class="tool"
  8467. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8468. @click="addTools2(18)"
  8469. >
  8470. <div class="whiteBIcon">
  8471. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8472. <div style="margin: 5px 0">训练平台</div>
  8473. </div>
  8474. <div class="check">
  8475. <div
  8476. v-if="checktoolArray.indexOf(18) == -1"
  8477. class="noChoose"
  8478. ></div>
  8479. <div v-else class="isChoose"></div>
  8480. </div>
  8481. </div>
  8482. <div
  8483. class="tool"
  8484. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8485. @click="addTools2(21)"
  8486. >
  8487. <div class="whiteBIcon">
  8488. <img src="../assets/icon/fourthToolList/program.png" alt />
  8489. <div style="margin: 5px 0">AIoT Blockly</div>
  8490. </div>
  8491. <div class="check">
  8492. <div
  8493. v-if="checktoolArray.indexOf(21) == -1"
  8494. class="noChoose"
  8495. ></div>
  8496. <div v-else class="isChoose"></div>
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="tool"
  8501. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8502. @click="addTools2(23)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img
  8506. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8507. alt
  8508. />
  8509. <div style="margin: 5px 0">AI Python</div>
  8510. </div>
  8511. <div class="check">
  8512. <div
  8513. v-if="checktoolArray.indexOf(23) == -1"
  8514. class="noChoose"
  8515. ></div>
  8516. <div v-else class="isChoose"></div>
  8517. </div>
  8518. </div>
  8519. <div
  8520. class="tool"
  8521. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8522. @click="addTools2(24)"
  8523. >
  8524. <div class="whiteBIcon">
  8525. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8526. <div style="margin: 5px 0">AI Blockly</div>
  8527. </div>
  8528. <div class="check">
  8529. <div
  8530. v-if="checktoolArray.indexOf(24) == -1"
  8531. class="noChoose"
  8532. ></div>
  8533. <div v-else class="isChoose"></div>
  8534. </div>
  8535. </div>
  8536. <div
  8537. class="tool"
  8538. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8539. @click="addTools2(32)"
  8540. >
  8541. <div class="whiteBIcon">
  8542. <img src="../assets/icon/thirdToolList/code.png" alt />
  8543. <div style="margin: 5px 0">源码编辑</div>
  8544. </div>
  8545. <div class="check">
  8546. <div
  8547. v-if="checktoolArray.indexOf(32) == -1"
  8548. class="noChoose"
  8549. ></div>
  8550. <div v-else class="isChoose"></div>
  8551. </div>
  8552. </div>
  8553. <div
  8554. class="tool"
  8555. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8556. @click="addTools2(57)"
  8557. >
  8558. <div class="whiteBIcon">
  8559. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8560. <div style="margin: 5px 0">CocoPi</div>
  8561. </div>
  8562. <div class="check">
  8563. <div
  8564. v-if="checktoolArray.indexOf(57) == -1"
  8565. class="noChoose"
  8566. ></div>
  8567. <div v-else class="isChoose"></div>
  8568. </div>
  8569. </div>
  8570. <div
  8571. class="tool"
  8572. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8573. @click="addTools2(63)"
  8574. >
  8575. <div class="whiteBIcon">
  8576. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8577. <div style="margin: 5px 0">海龟编程</div>
  8578. </div>
  8579. <div class="check">
  8580. <div
  8581. v-if="checktoolArray.indexOf(63) == -1"
  8582. class="noChoose"
  8583. ></div>
  8584. <div v-else class="isChoose"></div>
  8585. </div>
  8586. </div>
  8587. <div
  8588. class="tool"
  8589. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8590. @click="addTools2(71)"
  8591. >
  8592. <div class="whiteBIcon">
  8593. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8594. <div style="margin: 5px 0">AI智能体</div>
  8595. </div>
  8596. <div class="check">
  8597. <div
  8598. v-if="checktoolArray.indexOf(71) == -1"
  8599. class="noChoose"
  8600. ></div>
  8601. <div v-else class="isChoose"></div>
  8602. </div>
  8603. </div>
  8604. </div>
  8605. <div class="toolSort" v-if="toolType == 7">
  8606. <div
  8607. class="tool"
  8608. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8609. @click="addTools2(40)"
  8610. >
  8611. <div class="whiteBIcon">
  8612. <img src="../assets/icon/secondToolList/eval.png" alt />
  8613. <div style="margin: 5px 0">个人评价</div>
  8614. </div>
  8615. <div class="check">
  8616. <div
  8617. v-if="checktoolArray.indexOf(40) == -1"
  8618. class="noChoose"
  8619. ></div>
  8620. <div v-else class="isChoose"></div>
  8621. </div>
  8622. </div>
  8623. </div>
  8624. <div class="toolSort" v-if="toolType == 5">
  8625. <div
  8626. class="tool"
  8627. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8628. @click="addTools2(28)"
  8629. >
  8630. <div class="whiteBIcon">
  8631. <img src="../assets/icon/secondToolList/translation.png" alt />
  8632. <div style="margin: 5px 0">翻译</div>
  8633. </div>
  8634. <div class="check">
  8635. <div
  8636. v-if="checktoolArray.indexOf(28) == -1"
  8637. class="noChoose"
  8638. ></div>
  8639. <div v-else class="isChoose"></div>
  8640. </div>
  8641. </div>
  8642. <div
  8643. class="tool"
  8644. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8645. @click="addTools2(31)"
  8646. >
  8647. <div class="whiteBIcon">
  8648. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8649. <div style="margin: 5px 0">数字画板</div>
  8650. </div>
  8651. <div class="check">
  8652. <div
  8653. v-if="checktoolArray.indexOf(31) == -1"
  8654. class="noChoose"
  8655. ></div>
  8656. <div v-else class="isChoose"></div>
  8657. </div>
  8658. </div>
  8659. <div
  8660. class="tool"
  8661. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8662. @click="addTools2(39)"
  8663. >
  8664. <div class="whiteBIcon">
  8665. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8666. <div style="margin: 5px 0">GeoGebra</div>
  8667. </div>
  8668. <div class="check">
  8669. <div
  8670. v-if="checktoolArray.indexOf(39) == -1"
  8671. class="noChoose"
  8672. ></div>
  8673. <div v-else class="isChoose"></div>
  8674. </div>
  8675. </div>
  8676. <div
  8677. class="tool"
  8678. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8679. @click="addTools2(66)"
  8680. >
  8681. <div class="whiteBIcon">
  8682. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8683. <div style="margin: 5px 0">公式编辑</div>
  8684. </div>
  8685. <div class="check">
  8686. <div
  8687. v-if="checktoolArray.indexOf(66) == -1"
  8688. class="noChoose"
  8689. ></div>
  8690. <div v-else class="isChoose"></div>
  8691. </div>
  8692. </div>
  8693. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8694. <div class="whiteBIcon" @click="addTools2(67)">
  8695. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8696. <div style="margin: 5px 0">分子结构</div>
  8697. </div>
  8698. <div class="check" @click="addTools2(67)">
  8699. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8700. <div v-else class="isChoose"></div>
  8701. </div>
  8702. </div> -->
  8703. <div
  8704. class="tool"
  8705. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8706. @click="addTools2(68)"
  8707. >
  8708. <div class="whiteBIcon">
  8709. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8710. <div style="margin: 5px 0">时间轴</div>
  8711. </div>
  8712. <div class="check">
  8713. <div
  8714. v-if="checktoolArray.indexOf(68) == -1"
  8715. class="noChoose"
  8716. ></div>
  8717. <div v-else class="isChoose"></div>
  8718. </div>
  8719. </div>
  8720. <!-- <div
  8721. class="tool"
  8722. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8723. @click="addTools2(69)"
  8724. >
  8725. <div class="whiteBIcon">
  8726. <img src="../assets/icon/secondToolList/english.png" alt />
  8727. <div style="margin: 5px 0">英语写作</div>
  8728. </div>
  8729. <div class="check">
  8730. <div
  8731. v-if="checktoolArray.indexOf(69) == -1"
  8732. class="noChoose"
  8733. ></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div> -->
  8737. </div>
  8738. <div class="toolSort" v-if="toolType == 4">
  8739. <div
  8740. class="tool"
  8741. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8742. @click="addTools2(26)"
  8743. >
  8744. <div class="whiteBIcon">
  8745. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8746. <div style="margin: 5px 0">课程设计</div>
  8747. </div>
  8748. <div class="check">
  8749. <div
  8750. v-if="checktoolArray.indexOf(26) == -1"
  8751. class="noChoose"
  8752. ></div>
  8753. <div v-else class="isChoose"></div>
  8754. </div>
  8755. </div>
  8756. <div
  8757. class="tool"
  8758. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8759. @click="addTools2(25)"
  8760. >
  8761. <div class="whiteBIcon">
  8762. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8763. <div style="margin: 5px 0">目标管理</div>
  8764. </div>
  8765. <div class="check">
  8766. <div
  8767. v-if="checktoolArray.indexOf(25) == -1"
  8768. class="noChoose"
  8769. ></div>
  8770. <div v-else class="isChoose"></div>
  8771. </div>
  8772. </div>
  8773. </div>
  8774. </div>
  8775. </div>
  8776. <span
  8777. slot="footer"
  8778. class="dialog-footer"
  8779. style="display: block; text-align: center; padding: 0 0 10px 0"
  8780. >
  8781. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8782. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8783. </span>
  8784. </div>
  8785. <div
  8786. v-if="replyDialogVisible == true"
  8787. class="addDialogCss"
  8788. v-el-drag-dialog
  8789. >
  8790. <div class="pzTop">
  8791. <div class="teacherPz">
  8792. <div class="teacherPzImg">
  8793. <img src="../assets/icon/teacherPz.png" alt="" />
  8794. </div>
  8795. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8796. </div>
  8797. <div @click="replyDialogVisible = false">
  8798. <img src="../assets/close1.png" class="pzClose" alt="" />
  8799. </div>
  8800. </div>
  8801. <div class="addPzBox">
  8802. <!-- <div class="addPzCheck">
  8803. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8804. >文本</span
  8805. >
  8806. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8807. >音频</span
  8808. >
  8809. </div> -->
  8810. <div style="height: calc(100% - 50px)">
  8811. <editor-bar
  8812. class="binfo_input pzConText"
  8813. style="width: 100% !important; margin: 0 auto"
  8814. placeholder="请输入回复描述"
  8815. v-model="reply"
  8816. @change="change"
  8817. ></editor-bar>
  8818. </div>
  8819. <div class="addTextCss" @click="addHf">确定</div>
  8820. </div>
  8821. </div>
  8822. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8823. <div class="pzTop">
  8824. <div class="teacherPz">
  8825. <div class="teacherPzImg">
  8826. <img src="../assets/icon/teacherPz.png" alt="" />
  8827. </div>
  8828. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8829. </div>
  8830. <div @click="addPzDialog = false">
  8831. <img src="../assets/close1.png" class="pzClose" alt="" />
  8832. </div>
  8833. </div>
  8834. <div class="addPzBox">
  8835. <div class="addPzCheck">
  8836. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8837. >文本</span
  8838. >
  8839. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8840. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8841. >音频</span
  8842. >
  8843. </div>
  8844. <div style="height: calc(100% - 95px)">
  8845. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8846. v-if="pzType == 1"></textarea> -->
  8847. <editor-bar
  8848. class="binfo_input pzConText"
  8849. style="width: 100% !important"
  8850. placeholder="请输入任务描述"
  8851. v-model="pzConText"
  8852. @change="change"
  8853. v-if="pzType == 1"
  8854. ></editor-bar>
  8855. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8856. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8857. <div @click="addImg($event)">
  8858. <el-button type="primary">上传图片</el-button>
  8859. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8860. @change="beforeUpload1($event, 4)" />
  8861. </div>
  8862. </div> -->
  8863. </div>
  8864. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8865. 确定
  8866. </div>
  8867. </div>
  8868. </div>
  8869. <div v-if="proVisible" class="mask">
  8870. <div class="progressBox">
  8871. <!-- <div id="closePro" class="closeCss">
  8872. <img src="../assets/icon/close.png" alt />
  8873. </div> -->
  8874. <div class="lbox">
  8875. <img src="../assets/loading.gif" />上传中,请稍后
  8876. </div>
  8877. <div style="margin-bottom: 10px">
  8878. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8879. </div>
  8880. <el-progress
  8881. :text-inside="true"
  8882. :stroke-width="20"
  8883. :percentage="progress"
  8884. style="width: 80%"
  8885. ></el-progress>
  8886. </div>
  8887. </div>
  8888. <div v-if="proVisible2" class="mask">
  8889. <div class="progressBox">
  8890. <div class="lbox">
  8891. <img src="../assets/loading.gif" />上传中,请稍后
  8892. </div>
  8893. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8894. </div>
  8895. </div>
  8896. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8897. <img width="100%" :src="dialogImageUrl" alt />
  8898. </el-dialog>
  8899. <el-dialog
  8900. :title="noteName != '' ? noteName : '查看问卷'"
  8901. :visible.sync="dialogVisible5"
  8902. :append-to-body="true"
  8903. width="1000px"
  8904. :before-close="handleClose"
  8905. class="dialog_diy dialog_diy3"
  8906. >
  8907. <div>
  8908. <div
  8909. class="a_add_title"
  8910. style="
  8911. display: flex;
  8912. flex-direction: row;
  8913. align-items: center;
  8914. justify-content: center;
  8915. "
  8916. >
  8917. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8918. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8919. </div>
  8920. <div class="a_addBox">
  8921. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8922. 题目内容
  8923. </div>
  8924. <div
  8925. class="a_add_box"
  8926. v-for="(item1, index1) in askJson.askCount"
  8927. :key="index1"
  8928. >
  8929. <div class="a_add_head">
  8930. <div style="display: flex">
  8931. <span class="askIndex"> {{ index1 + 1 }}</span>
  8932. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8933. </div>
  8934. <img
  8935. v-if="askJson.askJson[index1].img"
  8936. :src="askJson.askJson[index1].img"
  8937. style="height: 300px; margin-top: 10px; max-width: 100%"
  8938. />
  8939. </div>
  8940. <div class="a_add_body">
  8941. <div class="a_add_input">
  8942. <el-radio-group
  8943. v-model="radio[index1]"
  8944. v-if="
  8945. askJson.askJson[index1].type == '1' ||
  8946. !askJson.askJson[index1].type
  8947. "
  8948. >
  8949. <el-radio
  8950. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8951. .checkList"
  8952. :key="checkIndex"
  8953. :label="checkIndex"
  8954. :disabled="isAnswer"
  8955. class="redioStyle"
  8956. ><span v-html="item2"></span
  8957. ></el-radio>
  8958. </el-radio-group>
  8959. <el-checkbox-group
  8960. v-model="radio[index1]"
  8961. v-if="askJson.askJson[index1].type == '2'"
  8962. >
  8963. <el-checkbox
  8964. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8965. .checkList"
  8966. :key="checkIndex1"
  8967. :label="checkIndex1"
  8968. :disabled="isAnswer"
  8969. class="redioStyle"
  8970. ><span v-html="item2"></span>
  8971. </el-checkbox>
  8972. </el-checkbox-group>
  8973. </div>
  8974. </div>
  8975. </div>
  8976. </div>
  8977. </div>
  8978. <span slot="footer" class="dialog-footer">
  8979. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8980. >取 消</el-button
  8981. >
  8982. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8983. >确 定</el-button
  8984. >
  8985. </span>
  8986. </el-dialog>
  8987. <el-dialog
  8988. :title="noteName != '' ? noteName : '查看问卷'"
  8989. :visible.sync="dialogVisible5Teacher"
  8990. :append-to-body="true"
  8991. width="1000px"
  8992. :before-close="handleClose"
  8993. class="dialog_diy dialog_diy3"
  8994. >
  8995. <div>
  8996. <div class="w_name">
  8997. 学生姓名:<span>{{ sStudent.student }}</span>
  8998. </div>
  8999. <div
  9000. class="a_add_title"
  9001. style="
  9002. display: flex;
  9003. flex-direction: row;
  9004. align-items: center;
  9005. justify-content: center;
  9006. "
  9007. >
  9008. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9009. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9010. </div>
  9011. <div class="a_addBox">
  9012. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9013. 题目内容
  9014. </div>
  9015. <div
  9016. class="a_add_box"
  9017. v-for="(item1, index1) in askJson.askCount"
  9018. :key="index1"
  9019. >
  9020. <div class="a_add_head">
  9021. <div style="display: flex">
  9022. <span class="askIndex">{{ index1 + 1 }}</span>
  9023. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9024. </div>
  9025. <img
  9026. v-if="askJson.askJson[index1].img"
  9027. :src="askJson.askJson[index1].img"
  9028. style="height: 300px; margin-top: 10px; max-width: 100%"
  9029. />
  9030. </div>
  9031. <div class="a_add_body">
  9032. <div class="a_add_input">
  9033. <el-radio-group
  9034. v-model="radio[index1]"
  9035. v-if="
  9036. askJson.askJson[index1].type == '1' ||
  9037. !askJson.askJson[index1].type
  9038. "
  9039. >
  9040. <el-radio
  9041. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9042. .checkList"
  9043. :key="checkIndex"
  9044. :label="checkIndex"
  9045. :disabled="isAnswer"
  9046. class="redioStyle"
  9047. ><span v-html="item2"></span
  9048. ></el-radio>
  9049. </el-radio-group>
  9050. <el-checkbox-group
  9051. v-model="radio[index1]"
  9052. v-if="askJson.askJson[index1].type == '2'"
  9053. >
  9054. <el-checkbox
  9055. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9056. .checkList"
  9057. :key="checkIndex1"
  9058. :label="checkIndex1"
  9059. :disabled="isAnswer"
  9060. class="redioStyle"
  9061. ><span v-html="item2"></span>
  9062. </el-checkbox>
  9063. </el-checkbox-group>
  9064. </div>
  9065. </div>
  9066. </div>
  9067. </div>
  9068. </div>
  9069. <span slot="footer" class="dialog-footer">
  9070. <el-button
  9071. @click="dialogVisible5Teacher = false"
  9072. v-show="noteName == ''"
  9073. >取 消</el-button
  9074. >
  9075. <el-button
  9076. type="primary"
  9077. @click="addStudentAskTeacher"
  9078. v-show="noteName == ''"
  9079. >确 定</el-button
  9080. >
  9081. </span>
  9082. </el-dialog>
  9083. <el-dialog
  9084. :title="noteName != '' ? noteName : '查看选择题'"
  9085. :visible.sync="dialogVisibleChoice"
  9086. :append-to-body="true"
  9087. width="1000px"
  9088. :before-close="handleClose"
  9089. class="dialog_diy dialog_diy3"
  9090. >
  9091. <div>
  9092. <!-- <div class="a_add_title" style="
  9093. display: flex;
  9094. flex-direction: row;
  9095. align-items: center;
  9096. justify-content: center;
  9097. ">
  9098. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9099. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9100. </div> -->
  9101. <div class="a_addBox">
  9102. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9103. 题目内容
  9104. </div>
  9105. <div
  9106. class="a_add_box"
  9107. v-for="(item1, index1) in testJson.testCount"
  9108. :key="index1"
  9109. >
  9110. <div class="a_add_head">
  9111. <div style="display: flex">
  9112. <span class="askIndex">{{ index1 + 1 }}</span>
  9113. <div
  9114. v-if="testJson.testJson[index1].type == '1'"
  9115. style="margin-right: 5px; min-width: 70px"
  9116. >
  9117. (单选题)
  9118. </div>
  9119. <div
  9120. v-if="testJson.testJson[index1].type == '2'"
  9121. style="margin-right: 5px; min-width: 70px"
  9122. >
  9123. (多选题)
  9124. </div>
  9125. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9126. </div>
  9127. <img
  9128. v-if="testJson.testJson[index1].img"
  9129. :src="testJson.testJson[index1].img"
  9130. style="height: 300px; margin-top: 10px; max-width: 100%"
  9131. />
  9132. </div>
  9133. <div
  9134. class="timuImgBox"
  9135. v-if="
  9136. testJson.testJson[index1].timuList &&
  9137. testJson.testJson[index1].timuList.length
  9138. "
  9139. >
  9140. <div
  9141. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9142. :key="tIndex"
  9143. class="timuImg"
  9144. @click.stop="previewImg(timg.src)"
  9145. >
  9146. <img :src="timg.src" alt="" />
  9147. </div>
  9148. </div>
  9149. <div class="a_add_body">
  9150. <div class="a_add_input">
  9151. <el-radio-group
  9152. v-model="radio[index1]"
  9153. v-if="testJson.testJson[index1].type == '1'"
  9154. >
  9155. <div class="radioBox">
  9156. <el-radio
  9157. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9158. .checkList"
  9159. :key="checkIndex"
  9160. :label="checkIndex"
  9161. :disabled="isAnswer"
  9162. class="redioStyle"
  9163. >
  9164. <div
  9165. style="margin-right: 10px"
  9166. v-if="item2 && item2.imgType && item2.imgType == 1"
  9167. >
  9168. <div class="inImg" @click.stop="previewImg(item2.src)">
  9169. <img :src="item2.src" alt="" />
  9170. </div>
  9171. </div>
  9172. <span v-else v-html="item2"></span>
  9173. </el-radio>
  9174. </div>
  9175. </el-radio-group>
  9176. <el-checkbox-group
  9177. v-model="radio[index1]"
  9178. v-if="testJson.testJson[index1].type == '2'"
  9179. >
  9180. <div class="radioBox">
  9181. <el-checkbox
  9182. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9183. .checkList"
  9184. :key="checkIndex"
  9185. :label="checkIndex"
  9186. :disabled="isAnswer"
  9187. class="redioStyle"
  9188. >
  9189. <div
  9190. style="margin-right: 10px"
  9191. v-if="item2 && item2.imgType && item2.imgType == 1"
  9192. >
  9193. <div class="inImg" @click.stop="previewImg(item2.src)">
  9194. <img :src="item2.src" alt="" />
  9195. </div>
  9196. </div>
  9197. <span v-else v-html="item2"></span>
  9198. </el-checkbox>
  9199. </div>
  9200. </el-checkbox-group>
  9201. </div>
  9202. </div>
  9203. </div>
  9204. </div>
  9205. </div>
  9206. <span slot="footer" class="dialog-footer">
  9207. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9208. >取 消</el-button
  9209. >
  9210. <el-button
  9211. type="primary"
  9212. @click="addStudentTest"
  9213. v-show="noteName == ''"
  9214. >确 定</el-button
  9215. >
  9216. </span>
  9217. </el-dialog>
  9218. <el-dialog
  9219. :title="noteName != '' ? noteName : '查看选择题'"
  9220. :visible.sync="dialogVisibleChoiceTeacher"
  9221. :append-to-body="true"
  9222. width="1000px"
  9223. :before-close="handleClose"
  9224. class="dialog_diy dialog_diy3"
  9225. >
  9226. <div>
  9227. <div class="w_name">
  9228. 学生姓名:<span>{{ sStudent.student }}</span>
  9229. </div>
  9230. <div class="a_addBox">
  9231. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9232. 题目内容
  9233. </div>
  9234. <div
  9235. class="a_add_box"
  9236. v-for="(item1, index1) in testJson.testCount"
  9237. :key="index1"
  9238. >
  9239. <div class="a_add_head">
  9240. <div style="display: flex">
  9241. <span class="askIndex">{{ index1 + 1 }}</span>
  9242. <div
  9243. v-if="testJson.testJson[index1].type == '1'"
  9244. style="margin-right: 5px; min-width: 70px"
  9245. >
  9246. (单选题)
  9247. </div>
  9248. <div
  9249. v-if="testJson.testJson[index1].type == '2'"
  9250. style="margin-right: 5px; min-width: 70px"
  9251. >
  9252. (多选题)
  9253. </div>
  9254. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9255. </div>
  9256. <img
  9257. v-if="testJson.testJson[index1].img"
  9258. :src="testJson.testJson[index1].img"
  9259. style="height: 300px; margin-top: 10px; max-width: 100%"
  9260. />
  9261. </div>
  9262. <div
  9263. class="timuImgBox"
  9264. v-if="
  9265. testJson.testJson[index1].timuList &&
  9266. testJson.testJson[index1].timuList.length
  9267. "
  9268. >
  9269. <div
  9270. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9271. :key="tIndex"
  9272. class="timuImg"
  9273. @click.stop="previewImg(timg.src)"
  9274. >
  9275. <img :src="timg.src" alt="" />
  9276. </div>
  9277. </div>
  9278. <div class="a_add_body">
  9279. <div class="a_add_input">
  9280. <el-radio-group
  9281. v-model="radio[index1]"
  9282. v-if="testJson.testJson[index1].type == '1'"
  9283. >
  9284. <div class="radioBox">
  9285. <el-radio
  9286. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9287. .checkList"
  9288. :key="checkIndex"
  9289. :label="checkIndex"
  9290. :disabled="isAnswer"
  9291. class="redioStyle"
  9292. >
  9293. <div
  9294. style="margin-right: 10px"
  9295. v-if="item2 && item2.imgType && item2.imgType == 1"
  9296. >
  9297. <div class="inImg" @click.stop="previewImg(item2.src)">
  9298. <img :src="item2.src" alt="" />
  9299. </div>
  9300. </div>
  9301. <span v-else v-html="item2"></span>
  9302. </el-radio>
  9303. </div>
  9304. </el-radio-group>
  9305. <el-checkbox-group
  9306. v-model="radio[index1]"
  9307. v-if="testJson.testJson[index1].type == '2'"
  9308. >
  9309. <div class="radioBox">
  9310. <el-checkbox
  9311. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9312. .checkList"
  9313. :key="checkIndex"
  9314. :label="checkIndex"
  9315. :disabled="isAnswer"
  9316. class="redioStyle"
  9317. >
  9318. <div
  9319. style="margin-right: 10px"
  9320. v-if="item2 && item2.imgType && item2.imgType == 1"
  9321. >
  9322. <div class="inImg" @click.stop="previewImg(item2.src)">
  9323. <img :src="item2.src" alt="" />
  9324. </div>
  9325. </div>
  9326. <span v-else v-html="item2"></span>
  9327. </el-checkbox>
  9328. </div>
  9329. </el-checkbox-group>
  9330. </div>
  9331. </div>
  9332. </div>
  9333. </div>
  9334. </div>
  9335. <span slot="footer" class="dialog-footer">
  9336. <el-button
  9337. @click="dialogVisibleChoiceTeacher = false"
  9338. v-show="noteName == ''"
  9339. >取 消</el-button
  9340. >
  9341. <el-button
  9342. type="primary"
  9343. @click="addStudentTestTeacher"
  9344. v-show="noteName == ''"
  9345. >确 定</el-button
  9346. >
  9347. </span>
  9348. </el-dialog>
  9349. <el-dialog
  9350. title="查看富文本"
  9351. :visible.sync="dialogVisible1"
  9352. :append-to-body="true"
  9353. width="500px"
  9354. :before-close="handleClose"
  9355. class="dialog_diy textCss"
  9356. >
  9357. <el-form style="font-size: 20px">
  9358. <el-form-item label="文本标题" class="textTitle">
  9359. <div style="font-size: 20px">{{ text.name }}</div>
  9360. </el-form-item>
  9361. <div>富文本内容</div>
  9362. <div
  9363. v-html="text.url"
  9364. style="font-size: 18px; padding: 40px 0 0 0"
  9365. ></div>
  9366. </el-form>
  9367. <span slot="footer" class="dialog-footer">
  9368. <el-button type="primary" @click="dialogVisible1 = false"
  9369. >确定</el-button
  9370. >
  9371. </span>
  9372. </el-dialog>
  9373. <el-dialog
  9374. title="文件预览"
  9375. :visible.sync="dialogVisible3"
  9376. width="50%"
  9377. :before-close="handleClose"
  9378. class="dialog_diy"
  9379. :class="{ fullStyle: full }"
  9380. >
  9381. <div slot="title" class="header-title">
  9382. <div style="color: #fff">文件预览</div>
  9383. <div style="position: absolute; top: 19px; right: 50px">
  9384. <img
  9385. src="../assets/full.png"
  9386. style="height: 16px; cursor: pointer"
  9387. alt=""
  9388. @click="fullTools"
  9389. />
  9390. </div>
  9391. </div>
  9392. <pdf
  9393. v-if="showPDF"
  9394. :pdfUrl="pptImgUrl"
  9395. style="width: 100%; height: 520px; overflow: auto"
  9396. :class="{ fullStyle: full }"
  9397. ></pdf>
  9398. <iframe
  9399. v-else
  9400. :src="pptImgUrl"
  9401. frameborder="0"
  9402. width="100%"
  9403. height="600"
  9404. :class="{ fullStyle: full }"
  9405. ></iframe>
  9406. </el-dialog>
  9407. <el-dialog
  9408. title="文件预览"
  9409. :visible.sync="dialogVisible6"
  9410. width="50%"
  9411. :before-close="handleClose"
  9412. class="dialog_diy"
  9413. >
  9414. <iframe
  9415. :src="pptImgUrl1"
  9416. frameborder="0"
  9417. width="100%"
  9418. height="600"
  9419. ></iframe>
  9420. </el-dialog>
  9421. <el-dialog
  9422. title="提示"
  9423. :visible.sync="dialogVisible4"
  9424. :append-to-body="true"
  9425. width="800px"
  9426. :before-close="handleClose"
  9427. class="dialog_diy notice"
  9428. >
  9429. <div>此功能暂未开放!</div>
  9430. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9431. </el-dialog>
  9432. <el-dialog
  9433. title="问答"
  9434. :visible.sync="answerDialogVisible"
  9435. :append-to-body="true"
  9436. width="800px"
  9437. :before-close="handleClose"
  9438. class="dialog_diy"
  9439. >
  9440. <div>
  9441. <div
  9442. style="
  9443. display: flex;
  9444. flex-wrap: nowrap;
  9445. flex-direction: column;
  9446. position: relative;
  9447. "
  9448. >
  9449. <div class="queTop" style="padding: 20px 0 20px 0">
  9450. <div class="question">
  9451. <img src="../assets/icon/question.png" alt />
  9452. </div>
  9453. <div class="queTitle">
  9454. <div style="width: 90px; min-width: 90px">提问:</div>
  9455. <div>{{ answerQ }}</div>
  9456. </div>
  9457. </div>
  9458. <div class="ediBottom">
  9459. <textarea
  9460. rows="6"
  9461. class="binfo_input"
  9462. cols
  9463. style="width: 95%; height: 120px"
  9464. v-model="questionAnswer"
  9465. ></textarea>
  9466. </div>
  9467. </div>
  9468. </div>
  9469. <div slot="footer">
  9470. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9471. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9472. </div>
  9473. </el-dialog>
  9474. <el-dialog
  9475. title="问答"
  9476. :visible.sync="answerDialogVisibleTeacher"
  9477. :append-to-body="true"
  9478. width="800px"
  9479. :before-close="handleClose"
  9480. class="dialog_diy"
  9481. >
  9482. <div>
  9483. <div class="w_name">
  9484. 学生姓名:<span>{{ sStudent.student }}</span>
  9485. </div>
  9486. <div
  9487. style="
  9488. display: flex;
  9489. flex-wrap: nowrap;
  9490. flex-direction: column;
  9491. position: relative;
  9492. "
  9493. >
  9494. <div class="queTop" style="padding: 20px 0 20px 0">
  9495. <div class="question">
  9496. <img src="../assets/icon/question.png" alt />
  9497. </div>
  9498. <div class="queTitle">
  9499. <div style="width: 90px; min-width: 90px">提问:</div>
  9500. <div>{{ answerQ }}</div>
  9501. </div>
  9502. </div>
  9503. <div class="ediBottom">
  9504. <textarea
  9505. rows="6"
  9506. class="binfo_input"
  9507. cols
  9508. style="width: 95%; height: 120px"
  9509. v-model="questionAnswer"
  9510. ></textarea>
  9511. </div>
  9512. </div>
  9513. </div>
  9514. <div slot="footer">
  9515. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9516. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9517. </div>
  9518. </el-dialog>
  9519. <el-dialog
  9520. title="倒计时"
  9521. :visible.sync="timeDialogVisible"
  9522. :append-to-body="true"
  9523. width="800px"
  9524. :before-close="handleClose"
  9525. class="dialog_diy"
  9526. >
  9527. <div>
  9528. <div style="margin-bottom: 20px; color: #999">
  9529. 提示:点击“+”或“-”修改倒计时时长。
  9530. </div>
  9531. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9532. </div>
  9533. <div slot="footer">
  9534. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9535. </div>
  9536. </el-dialog>
  9537. <el-dialog
  9538. title="权限设置"
  9539. :visible.sync="juriVisible"
  9540. :append-to-body="true"
  9541. width="400px"
  9542. :before-close="handleClose"
  9543. class="dialog_diy"
  9544. >
  9545. <div>
  9546. <div class="open_box">
  9547. <div class="switch_box">
  9548. <span>允许学生查看所有作业</span>
  9549. <el-switch
  9550. v-model="sIsOpen"
  9551. active-text=""
  9552. class="switchCss"
  9553. @change="updateSLook"
  9554. ></el-switch>
  9555. </div>
  9556. <div
  9557. class="switch_box"
  9558. v-if="
  9559. courseDetail.userid == userid ||
  9560. (courseDetail.course_teacher &&
  9561. courseDetail.course_teacher.indexOf(userid) != -1)
  9562. "
  9563. >
  9564. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9565. <span>禁止学生查看所有阶段</span>
  9566. <el-switch
  9567. v-model="IsLookOpen"
  9568. active-text=""
  9569. class="switchCss"
  9570. @change="updateLookOpen"
  9571. ></el-switch>
  9572. </div>
  9573. <div class="switch_box" v-if="courseDetail.userid == userid">
  9574. <span>开启跟随模式</span>
  9575. <el-switch
  9576. v-model="IsFollow"
  9577. active-text=""
  9578. class="switchCss"
  9579. @change="updateFollow"
  9580. ></el-switch>
  9581. </div>
  9582. </div>
  9583. </div>
  9584. <div slot="footer">
  9585. <el-button
  9586. style="background: #409efe; color: #fff"
  9587. @click="juriVisible = false"
  9588. >关 闭</el-button
  9589. >
  9590. </div>
  9591. </el-dialog>
  9592. <el-dialog
  9593. title="查看视频"
  9594. :visible.sync="videoVisible"
  9595. :append-to-body="true"
  9596. width="1000px"
  9597. :before-close="handleClose"
  9598. class="dialog_diy1"
  9599. >
  9600. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9601. <video-player
  9602. class="video-player vjs-custom-skin"
  9603. :playsinline="true"
  9604. :options="videoDetail"
  9605. @play="onPlayerPlay($event)"
  9606. style="width: 100%; height: 100%"
  9607. ></video-player>
  9608. </div>
  9609. <div slot="footer">
  9610. <el-button
  9611. style="background: #409efe; color: #fff"
  9612. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9613. >
  9614. 关 闭</el-button
  9615. >
  9616. </div>
  9617. </el-dialog>
  9618. <el-dialog
  9619. title="查看详情"
  9620. :visible.sync="commentDialogVisible"
  9621. :append-to-body="true"
  9622. width="800px"
  9623. :before-close="handleClose"
  9624. class="dialog_diy"
  9625. >
  9626. <div class="commentTop">
  9627. <div class="studentDetail">
  9628. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9629. <div class="nameAndTime">
  9630. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9631. <div>{{ commentDetail.time }}</div>
  9632. </div>
  9633. <div
  9634. class="returnBtn"
  9635. style="margin-left: auto; width: 80px"
  9636. v-if="
  9637. commentDetail.works &&
  9638. commentDetail.type == 0 &&
  9639. (tType == 1 || tType == 4)
  9640. "
  9641. @click="
  9642. showPicturePaint(
  9643. commentDetail.img ? commentDetail.img : commentDetail.works
  9644. )
  9645. "
  9646. >
  9647. 教师批注
  9648. </div>
  9649. </div>
  9650. <div
  9651. class="worksAnswer"
  9652. v-if="commentDetail.works && commentDetail.type == 2"
  9653. >
  9654. {{ JSON.parse(commentDetail.works)[0].answer }}
  9655. </div>
  9656. <div
  9657. class="worksAnswer"
  9658. v-if="commentDetail.works && commentDetail.type == 1"
  9659. >
  9660. <img
  9661. src="../assets/teacherWork.png"
  9662. v-if="commentDetail.ateacher"
  9663. class="w_teachert"
  9664. />
  9665. <pdf
  9666. v-if="showPDF"
  9667. :pdfUrl="pptImgUrl"
  9668. style="width: 100%; height: 520px; overflow: auto"
  9669. :class="{ fullStyle: full }"
  9670. ></pdf>
  9671. <iframe
  9672. v-else
  9673. :src="pptImgUrl"
  9674. frameborder="0"
  9675. width="100%"
  9676. height="600"
  9677. :class="{ fullStyle: full }"
  9678. ></iframe>
  9679. </div>
  9680. <div
  9681. class="worksAnswer"
  9682. v-if="commentDetail.works && commentDetail.type == 0"
  9683. >
  9684. <img
  9685. src="../assets/teacherWork.png"
  9686. v-if="commentDetail.ateacher"
  9687. class="w_teachert"
  9688. style="right: 105px"
  9689. />
  9690. <img
  9691. :src="commentDetail.works"
  9692. alt=""
  9693. @click="previewImg(commentDetail.works)"
  9694. />
  9695. </div>
  9696. <div
  9697. class="worksAnswer"
  9698. v-if="commentDetail.works && commentDetail.type == 3"
  9699. >
  9700. <img
  9701. src="../assets/teacherWork.png"
  9702. v-if="commentDetail.ateacher"
  9703. class="w_teachert"
  9704. />
  9705. <video-player
  9706. class="video-player vjs-custom-skin"
  9707. :playsinline="true"
  9708. :options="videoDetail"
  9709. @play="onPlayerPlay($event)"
  9710. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9711. ></video-player>
  9712. </div>
  9713. <div
  9714. class="worksAnswer"
  9715. v-if="commentDetail.works && commentDetail.type == 10"
  9716. >
  9717. <div class="cont" v-html="commentDetail.works.text"></div>
  9718. </div>
  9719. <div
  9720. class="worksAnswer codeFileBox"
  9721. v-if="commentDetail.works && commentDetail.type == 12"
  9722. @click="downloadFile(commentDetail.works)"
  9723. >
  9724. <img src="../assets/icon/codeFile.png" />
  9725. <div>点击下载文件</div>
  9726. </div>
  9727. <div
  9728. class="worksAnswer codeFileBox"
  9729. v-if="commentDetail.works && commentDetail.type == 15"
  9730. @click="
  9731. openCocoPi(
  9732. 57,
  9733. commentIndexJson.toolIndex,
  9734. commentDetail.userid,
  9735. commentDetail.sName
  9736. )
  9737. "
  9738. >
  9739. <img src="../assets/icon/codeFile.png" />
  9740. <div>点击打开CocoPi</div>
  9741. </div>
  9742. <div
  9743. class="worksAnswer"
  9744. v-if="commentDetail.works && commentDetail.type == 13"
  9745. >
  9746. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9747. </div>
  9748. <div
  9749. class="worksAnswer"
  9750. v-if="commentDetail.works && commentDetail.type == 4"
  9751. >
  9752. <div class="evalCss">
  9753. <div class="nav">请选择星星进行评分</div>
  9754. <div class="middleBox" v-if="eScore.eStar">
  9755. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9756. <div class="nameAndrate">
  9757. <div>{{ e.value }}</div>
  9758. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9759. </div>
  9760. <div v-if="e.detail">{{ e.detail }}</div>
  9761. </div>
  9762. <div class="bz">
  9763. <textarea
  9764. disabled
  9765. rows="4"
  9766. class="pj"
  9767. style="
  9768. padding: 10px 5px;
  9769. width: 70%;
  9770. background: #f7f6f9;
  9771. font-size: 14px;
  9772. text-indent: 10px;
  9773. color: #000;
  9774. "
  9775. cols
  9776. v-model="eScore.eBzText"
  9777. placeholder="请输入评价内容..."
  9778. ></textarea>
  9779. </div>
  9780. </div>
  9781. </div>
  9782. </div>
  9783. <div class="comment">
  9784. <div class="commentList">
  9785. <div class="commentImg">
  9786. <img
  9787. @click="
  9788. isLikes(
  9789. commentDetail.wid,
  9790. userid,
  9791. 1,
  9792. null,
  9793. commentDetail.isLikes,
  9794. commentDetail.sName
  9795. )
  9796. "
  9797. :src="commentDetail.isLikes == true ? likes : noLikes"
  9798. alt=""
  9799. />
  9800. </div>
  9801. <div>{{ commentDetail.likesCount }}</div>
  9802. </div>
  9803. <div class="commentList">
  9804. <div class="commentImg">
  9805. <img src="../assets/icon/comment/comment.png" alt="" />
  9806. </div>
  9807. <div>{{ commentDetail.commentCount }}</div>
  9808. </div>
  9809. </div>
  9810. <div class="drawPBox" v-if="commentDetail.img">
  9811. <span>教师批注</span>
  9812. <img
  9813. :src="commentDetail.img"
  9814. alt=""
  9815. @click="previewImg(commentDetail.img)"
  9816. />
  9817. <span
  9818. class="deleteImg"
  9819. v-if="tType == 1 || tType == 4"
  9820. @click.stop="deletePicturePaint(commentDetail.wid)"
  9821. style="
  9822. font-size: 14px;
  9823. width: auto !important;
  9824. color: #b4b4b4;
  9825. top: unset;
  9826. bottom: 0;
  9827. border: none;
  9828. padding: 0;
  9829. height: auto !important;
  9830. margin: 0;
  9831. "
  9832. >删除</span
  9833. >
  9834. </div>
  9835. </div>
  9836. <div class="commentBox">
  9837. <div class="pl">评论:</div>
  9838. <div style="max-height: 200px; overflow: auto">
  9839. <div
  9840. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9841. style="padding: 10px 0 0 0"
  9842. >
  9843. <div
  9844. class="studentDetail"
  9845. style="padding-top: 10px"
  9846. v-for="(co, coIndex) in commentDetail.commentJson"
  9847. :key="coIndex"
  9848. >
  9849. <div class="tx" style="min-width: 50px">
  9850. <img src="../assets/avatar.png" alt="" />
  9851. </div>
  9852. <div class="plPerson">
  9853. <div class="plName">
  9854. <div>{{ co.commentPeople }}</div>
  9855. <div style="margin-left: 5px">
  9856. {{ co.commentTime }}
  9857. </div>
  9858. <div
  9859. class="deleteComment"
  9860. v-if="userid == co.userid"
  9861. @click="deleteComment(co.wid)"
  9862. >
  9863. 删除
  9864. </div>
  9865. </div>
  9866. <div class="plContent">{{ co.commentText }}</div>
  9867. </div>
  9868. </div>
  9869. </div>
  9870. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9871. </div>
  9872. </div>
  9873. <div style="margin-top: 10px">
  9874. <div class="displayBox">
  9875. <div
  9876. style="
  9877. color: #556db4;
  9878. font-size: 14px;
  9879. font-weight: bold;
  9880. padding-bottom: 10px;
  9881. "
  9882. >
  9883. 评价
  9884. </div>
  9885. <div class="easy_comment" v-if="false">
  9886. <div
  9887. v-for="(p, pIndex) in PlTextList"
  9888. :key="pIndex"
  9889. @click="fastText(p, 1)"
  9890. >
  9891. {{ p }}
  9892. </div>
  9893. </div>
  9894. </div>
  9895. <div>
  9896. <textarea
  9897. rows="3"
  9898. class="pj"
  9899. style="padding: 10px 5px"
  9900. cols
  9901. v-model="commentText"
  9902. placeholder="请输入评论"
  9903. ></textarea>
  9904. </div>
  9905. </div>
  9906. <div slot="footer">
  9907. <el-button
  9908. @click="
  9909. (commentDialogVisible = false),
  9910. (commentIndexJson = {}),
  9911. videoDetail.sources && videoDetail.sources[0]
  9912. ? (videoDetail.sources[0].src = '')
  9913. : ''
  9914. "
  9915. >取 消</el-button
  9916. >
  9917. <el-button
  9918. type="primary"
  9919. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9920. >确 定</el-button
  9921. >
  9922. </div>
  9923. </el-dialog>
  9924. <el-dialog
  9925. title="查看文档"
  9926. :visible.sync="fullDialogVisible"
  9927. :append-to-body="true"
  9928. width="100%"
  9929. :before-close="handleClose"
  9930. :show-close="false"
  9931. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && splitScreenData.uid != splitScreenData.myUid) ? 'dialog_diyCopy' : ''] "
  9932. >
  9933. <div slot="title" class="header-title">
  9934. <div style="color: #fff">查看文档</div>
  9935. <div
  9936. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9937. style="
  9938. cursor: pointer;
  9939. position: absolute;
  9940. top: 20px;
  9941. right: 20px;
  9942. color: #fff;
  9943. "
  9944. >
  9945. 退出全屏
  9946. </div>
  9947. </div>
  9948. <div style="height: 100%">
  9949. <div
  9950. class="wheel"
  9951. v-if="
  9952. fulltype == 2 &&
  9953. fullUrl.indexOf(
  9954. 'https://view.officeapps.live.com/op/view.aspx?src='
  9955. ) != -1
  9956. "
  9957. style="width: 100%;height:100%; margin: 0 auto"
  9958. >
  9959. <iframe
  9960. style="width: 100%; height: 100%; border: none"
  9961. :src="fullUrl"
  9962. ></iframe>
  9963. </div>
  9964. <iframe
  9965. v-else-if="fulltype == 2"
  9966. style="width: 100%; height: 100%; border: none"
  9967. :src="fullUrl"
  9968. security="restricted"
  9969. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9970. ></iframe>
  9971. <pdf
  9972. v-else-if="fulltype == 3"
  9973. :pdfUrl="fullUrl"
  9974. style="width: 100%; height: 100%; overflow: auto"
  9975. ></pdf>
  9976. <div
  9977. class="wheel"
  9978. v-if="fulltype == 1"
  9979. style="
  9980. box-shadow: 0 0 6px 1px #f2f2f2;
  9981. width: 100%;
  9982. height:100%;
  9983. background: #f1f1f1;
  9984. "
  9985. >
  9986. <div class="title" style="width: 100%; box-sizing: border-box">
  9987. 查看文档
  9988. </div>
  9989. <el-form class="textBox" style="height: 90%">
  9990. <el-form-item class="textTitle">
  9991. <div style="font-size: 22px">
  9992. {{ fullUrl.name }}
  9993. </div>
  9994. </el-form-item>
  9995. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9996. <div
  9997. v-html="fullUrl.url"
  9998. class="textContent"
  9999. style="height: auto"
  10000. ></div>
  10001. </el-form>
  10002. </div>
  10003. </div>
  10004. <!-- <div slot="footer">
  10005. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10006. </div> -->
  10007. </el-dialog>
  10008. <el-dialog
  10009. title="个人评价"
  10010. :visible.sync="studentEvalDialogVisible"
  10011. :append-to-body="true"
  10012. width="800px"
  10013. :before-close="handleClose"
  10014. class="dialog_diy"
  10015. >
  10016. <div class="evalCss">
  10017. <div class="nav">请选择星星进行评分</div>
  10018. <div class="middleBox" v-if="eScore.eStar">
  10019. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10020. <div class="nameAndrate">
  10021. <div>{{ e.value }}</div>
  10022. <el-rate
  10023. v-model="eScore.eStar[eIndex]"
  10024. :disabled="isStar"
  10025. ></el-rate>
  10026. </div>
  10027. <div v-if="e.detail">{{ e.detail }}</div>
  10028. </div>
  10029. <div class="easy_comment" v-if="false">
  10030. <div
  10031. v-for="(p, pIndex) in PlTextList"
  10032. :key="pIndex"
  10033. @click="fastText(p, 2)"
  10034. >
  10035. {{ p }}
  10036. </div>
  10037. </div>
  10038. <div class="bz">
  10039. <textarea
  10040. :disabled="isStar"
  10041. rows="4"
  10042. class="pj"
  10043. style="
  10044. padding: 10px 5px;
  10045. width: 70%;
  10046. background: #f7f6f9;
  10047. font-size: 14px;
  10048. text-indent: 10px;
  10049. "
  10050. cols
  10051. v-model="eScore.eBzText"
  10052. placeholder="请输入评价内容..."
  10053. ></textarea>
  10054. </div>
  10055. </div>
  10056. </div>
  10057. <div slot="footer">
  10058. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10059. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10060. >确 定</el-button
  10061. >
  10062. </div>
  10063. </el-dialog>
  10064. <el-dialog
  10065. title="个人评价"
  10066. :visible.sync="studentEvalDialogVisibleTeacher"
  10067. :append-to-body="true"
  10068. width="800px"
  10069. :before-close="handleClose"
  10070. class="dialog_diy"
  10071. >
  10072. <div class="w_name">
  10073. 学生姓名:<span>{{ sStudent.student }}</span>
  10074. </div>
  10075. <div class="evalCss">
  10076. <div class="nav">请选择星星进行评分</div>
  10077. <div class="middleBox" v-if="eScore.eStar">
  10078. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10079. <div class="nameAndrate">
  10080. <div>{{ e.value }}</div>
  10081. <el-rate
  10082. v-model="eScore.eStar[eIndex]"
  10083. :disabled="isStar"
  10084. ></el-rate>
  10085. </div>
  10086. <div v-if="e.detail">{{ e.detail }}</div>
  10087. </div>
  10088. <div class="easy_comment" v-if="false">
  10089. <div
  10090. v-for="(p, pIndex) in PlTextList"
  10091. :key="pIndex"
  10092. @click="fastText(p, 2)"
  10093. >
  10094. {{ p }}
  10095. </div>
  10096. </div>
  10097. <div class="bz">
  10098. <textarea
  10099. :disabled="isStar"
  10100. rows="4"
  10101. class="pj"
  10102. style="
  10103. padding: 10px 5px;
  10104. width: 70%;
  10105. background: #f7f6f9;
  10106. font-size: 14px;
  10107. text-indent: 10px;
  10108. "
  10109. cols
  10110. v-model="eScore.eBzText"
  10111. placeholder="请输入评价内容..."
  10112. ></textarea>
  10113. </div>
  10114. </div>
  10115. </div>
  10116. <div slot="footer">
  10117. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10118. >取 消</el-button
  10119. >
  10120. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10121. >确 定</el-button
  10122. >
  10123. </div>
  10124. </el-dialog>
  10125. <el-dialog
  10126. title="选择匹配"
  10127. :visible.sync="dialogVisibleSelect"
  10128. :append-to-body="true"
  10129. width="90%"
  10130. :before-close="handleClose"
  10131. class="dialog_diy dialog_diy3"
  10132. >
  10133. <div v-if="selectJson">
  10134. <div class="select_box2">
  10135. <div class="select_box2_title">
  10136. <div>选择匹配</div>
  10137. <div>请选择对应的答案进行答题!</div>
  10138. </div>
  10139. <div class="select_box2_box">
  10140. <div class="select_box2_img">
  10141. <img
  10142. :src="selectJson.url"
  10143. @click="previewImg(selectJson.url)"
  10144. alt=""
  10145. />
  10146. </div>
  10147. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10148. <div style="padding-top: 15px">
  10149. <div class="select_answer_title" v-if="isSelect">
  10150. {{ selectAnswer.stu }}
  10151. </div>
  10152. <div class="select_answer_title" v-else>
  10153. 根据题目选择对应答案
  10154. </div>
  10155. <div
  10156. class="select_box2_answer_box"
  10157. v-for="(item2, checkIndex) in selectJson.select"
  10158. :key="checkIndex"
  10159. >
  10160. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10161. <el-select
  10162. :disabled="isSelect"
  10163. v-model="selectAnswer.answer[checkIndex]"
  10164. placeholder="请选择正确答案"
  10165. >
  10166. <el-option
  10167. v-for="(e, eIndex) in selectJson.select"
  10168. :key="eIndex"
  10169. :label="e"
  10170. :value="eIndex"
  10171. >
  10172. </el-option>
  10173. </el-select>
  10174. </div>
  10175. </div>
  10176. <div
  10177. class="rightAnswerCss"
  10178. v-if="isSelect && (tType == 1 || tType == 4)"
  10179. >
  10180. <div
  10181. v-for="(a, aIndex) in selectJson.answer"
  10182. :key="aIndex"
  10183. class="rightAnswer"
  10184. >
  10185. <div
  10186. v-if="selectAnswer.answer[aIndex] === a"
  10187. style="color: #767de1"
  10188. >
  10189. 回答正确
  10190. </div>
  10191. <div v-else>回答错误</div>
  10192. <div
  10193. style="margin-left: 10px"
  10194. v-if="selectAnswer.answer[aIndex] !== a"
  10195. >
  10196. 正确答案:
  10197. </div>
  10198. <div
  10199. :class="
  10200. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10201. "
  10202. >
  10203. {{ selectJson.select[a] }}
  10204. </div>
  10205. </div>
  10206. </div>
  10207. </div>
  10208. <div class="upAnswerCss">
  10209. <el-button
  10210. type="primary"
  10211. @click="addSelectAnswer"
  10212. v-if="!isSelect"
  10213. >提交答案</el-button
  10214. >
  10215. </div>
  10216. </div>
  10217. </div>
  10218. </div>
  10219. </el-dialog>
  10220. <el-dialog
  10221. title="选择匹配"
  10222. :visible.sync="dialogVisibleSelectTeacher"
  10223. :append-to-body="true"
  10224. width="90%"
  10225. :before-close="handleClose"
  10226. class="dialog_diy dialog_diy3"
  10227. >
  10228. <div v-if="selectJson">
  10229. <div class="w_name">
  10230. 学生姓名:<span>{{ sStudent.student }}</span>
  10231. </div>
  10232. <div class="select_box2">
  10233. <div class="select_box2_title">
  10234. <div>选择匹配</div>
  10235. <div>请选择对应的答案进行答题!</div>
  10236. </div>
  10237. <div class="select_box2_box">
  10238. <div class="select_box2_img">
  10239. <img
  10240. :src="selectJson.url"
  10241. @click="previewImg(selectJson.url)"
  10242. alt=""
  10243. />
  10244. </div>
  10245. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10246. <div style="padding-top: 15px">
  10247. <div class="select_answer_title" v-if="isSelect">
  10248. {{ selectAnswer.stu }}
  10249. </div>
  10250. <div class="select_answer_title" v-else>
  10251. 根据题目选择对应答案
  10252. </div>
  10253. <div
  10254. class="select_box2_answer_box"
  10255. v-for="(item2, checkIndex) in selectJson.select"
  10256. :key="checkIndex"
  10257. >
  10258. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10259. <el-select
  10260. :disabled="isSelect"
  10261. v-model="selectAnswer.answer[checkIndex]"
  10262. placeholder="请选择正确答案"
  10263. >
  10264. <el-option
  10265. v-for="(e, eIndex) in selectJson.select"
  10266. :key="eIndex"
  10267. :label="e"
  10268. :value="eIndex"
  10269. >
  10270. </el-option>
  10271. </el-select>
  10272. </div>
  10273. </div>
  10274. <div
  10275. class="rightAnswerCss"
  10276. v-if="isSelect && (tType == 1 || tType == 4)"
  10277. >
  10278. <div
  10279. v-for="(a, aIndex) in selectJson.answer"
  10280. :key="aIndex"
  10281. class="rightAnswer"
  10282. >
  10283. <div
  10284. v-if="selectAnswer.answer[aIndex] === a"
  10285. style="color: #767de1"
  10286. >
  10287. 回答正确
  10288. </div>
  10289. <div v-else>回答错误</div>
  10290. <div
  10291. style="margin-left: 10px"
  10292. v-if="selectAnswer.answer[aIndex] !== a"
  10293. >
  10294. 正确答案:
  10295. </div>
  10296. <div
  10297. :class="
  10298. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10299. "
  10300. >
  10301. {{ selectJson.select[a] }}
  10302. </div>
  10303. </div>
  10304. </div>
  10305. </div>
  10306. <div class="upAnswerCss">
  10307. <el-button
  10308. type="primary"
  10309. @click="addSelectAnswerTeacher"
  10310. v-if="!isSelect"
  10311. >提交答案</el-button
  10312. >
  10313. </div>
  10314. </div>
  10315. </div>
  10316. </div>
  10317. </el-dialog>
  10318. <el-dialog
  10319. title="教师评分"
  10320. :visible.sync="dialogVisibleScore"
  10321. :append-to-body="true"
  10322. width="800px"
  10323. :before-close="handleClose"
  10324. class="dialog_diy"
  10325. >
  10326. <div>
  10327. <div class="studentDetail">
  10328. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10329. <div class="nameAndTime">
  10330. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10331. <div>{{ commentDetail.time }}</div>
  10332. </div>
  10333. </div>
  10334. <div
  10335. class="worksAnswer"
  10336. v-if="commentDetail.works && commentDetail.type == 2"
  10337. >
  10338. {{ JSON.parse(commentDetail.works)[0].answer }}
  10339. </div>
  10340. <div
  10341. class="worksAnswer"
  10342. v-if="commentDetail.works && commentDetail.type == 1"
  10343. >
  10344. <pdf
  10345. v-if="showPDF"
  10346. :pdfUrl="pptImgUrl"
  10347. style="width: 100%; height: 520px; overflow: auto"
  10348. :class="{ fullStyle: full }"
  10349. ></pdf>
  10350. <iframe
  10351. v-else
  10352. :src="pptImgUrl"
  10353. frameborder="0"
  10354. width="100%"
  10355. height="600"
  10356. :class="{ fullStyle: full }"
  10357. ></iframe>
  10358. </div>
  10359. <div
  10360. class="worksAnswer"
  10361. v-if="commentDetail.works && commentDetail.type == 0"
  10362. >
  10363. <img
  10364. :src="commentDetail.works"
  10365. alt=""
  10366. @click="previewImg(commentDetail.works)"
  10367. />
  10368. </div>
  10369. <div
  10370. class="worksAnswer"
  10371. v-if="commentDetail.works && commentDetail.type == 3"
  10372. >
  10373. <video-player
  10374. class="video-player vjs-custom-skin"
  10375. :playsinline="true"
  10376. :options="videoDetail"
  10377. @play="onPlayerPlay($event)"
  10378. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10379. ></video-player>
  10380. </div>
  10381. <div
  10382. class="worksAnswer codeFileBox"
  10383. v-if="commentDetail.works && commentDetail.type == 12"
  10384. @click="downloadFile(commentDetail.works)"
  10385. >
  10386. <img src="../assets/icon/codeFile.png" />
  10387. <div>点击下载文件</div>
  10388. </div>
  10389. <div
  10390. class="worksAnswer codeFileBox"
  10391. v-if="commentDetail.works && commentDetail.type == 15"
  10392. @click="
  10393. openCocoPi(
  10394. 57,
  10395. commentIndexJson.toolIndex,
  10396. commentDetail.userid,
  10397. commentDetail.sName
  10398. )
  10399. "
  10400. >
  10401. <img src="../assets/icon/codeFile.png" />
  10402. <div>点击打开CocoPi</div>
  10403. </div>
  10404. <div
  10405. class="worksAnswer"
  10406. v-if="commentDetail.works && commentDetail.type == 13"
  10407. >
  10408. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10409. </div>
  10410. <div class="scoreBox">
  10411. <span class="t">请输入分数</span>
  10412. <el-input-number
  10413. :disabled="courseDetail.userid != userid"
  10414. v-model="wScore"
  10415. :controls="false"
  10416. :min="0"
  10417. :max="100"
  10418. ></el-input-number>
  10419. </div>
  10420. <div class="scoreDetailBox">
  10421. <span class="t">评分评论</span>
  10422. <el-input
  10423. type="textarea"
  10424. :rows="5"
  10425. :disabled="courseDetail.userid != userid"
  10426. resize="none"
  10427. v-model="scoreDetail"
  10428. placeholder="请输入对学生的评价"
  10429. >
  10430. </el-input>
  10431. </div>
  10432. </div>
  10433. <span slot="footer" class="dialog-footer">
  10434. <el-button
  10435. @click="
  10436. (dialogVisibleScore = false),
  10437. (commentIndexJson = {}),
  10438. videoDetail.sources && videoDetail.sources[0]
  10439. ? (videoDetail.sources[0].src = '')
  10440. : ''
  10441. "
  10442. >取 消</el-button
  10443. >
  10444. <el-button
  10445. type="primary"
  10446. v-if="courseDetail.userid == userid"
  10447. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10448. >确 定
  10449. </el-button>
  10450. </span>
  10451. </el-dialog>
  10452. <el-dialog
  10453. title="排序"
  10454. :visible.sync="dialogVisibleSentence"
  10455. :append-to-body="true"
  10456. width="1000px"
  10457. :before-close="handleClose"
  10458. class="dialog_diy dialog_diy3"
  10459. >
  10460. <div>
  10461. <div class="sentenBox">
  10462. <div
  10463. v-for="(st, stIndex) in sentenceList"
  10464. :key="stIndex"
  10465. style="padding-bottom: 20px"
  10466. >
  10467. <div
  10468. style="padding: 15px 0 10px 20px"
  10469. class="sentenceTitle"
  10470. :index="stIndex + 1"
  10471. >
  10472. 题目{{ stIndex + 1 }}:请选择正确顺序
  10473. </div>
  10474. <div class="cardList" v-if="st.chooseSenList">
  10475. <div class="cardBox">
  10476. <div
  10477. v-for="(r, rIndex) in st.chooseSenList"
  10478. :key="rIndex"
  10479. @click="returnCard(r, stIndex, rIndex)"
  10480. >
  10481. <el-tooltip
  10482. class="item"
  10483. effect="light"
  10484. :content="r"
  10485. placement="top"
  10486. v-if="r != '' && r != undefined"
  10487. >
  10488. <div
  10489. :class="{
  10490. isCard: r,
  10491. isChooseCard: r == '' || r == undefined,
  10492. }"
  10493. >
  10494. <div>{{ r }}</div>
  10495. </div>
  10496. </el-tooltip>
  10497. <div
  10498. :class="{
  10499. isCard: r,
  10500. isChooseCard: r == '' || r == undefined,
  10501. }"
  10502. v-else
  10503. >
  10504. <div>{{ r }}</div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. <div class="cardList" v-if="st.addChangeSen">
  10510. <div class="cardBox">
  10511. <div
  10512. v-for="(s, sIndex) in st.addChangeSen"
  10513. :key="sIndex"
  10514. @click="setRightAnswer(s, stIndex, sIndex)"
  10515. >
  10516. <el-tooltip
  10517. class="item"
  10518. effect="light"
  10519. :content="s"
  10520. placement="top"
  10521. v-if="s != '' && s != undefined"
  10522. >
  10523. <div
  10524. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10525. >
  10526. <div>{{ s }}</div>
  10527. </div>
  10528. </el-tooltip>
  10529. <div
  10530. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10531. v-else
  10532. >
  10533. <div>{{ s }}</div>
  10534. </div>
  10535. </div>
  10536. </div>
  10537. </div>
  10538. </div>
  10539. </div>
  10540. </div>
  10541. <span slot="footer" class="dialog-footer">
  10542. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10543. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10544. </span>
  10545. </el-dialog>
  10546. <el-dialog
  10547. title="排序"
  10548. :visible.sync="dialogVisibleSentenceTeacher"
  10549. :append-to-body="true"
  10550. width="1000px"
  10551. :before-close="handleClose"
  10552. class="dialog_diy dialog_diy3"
  10553. >
  10554. <div>
  10555. <div class="w_name">
  10556. 学生姓名:<span>{{ sStudent.student }}</span>
  10557. </div>
  10558. <div class="sentenBox">
  10559. <div
  10560. v-for="(st, stIndex) in sentenceList"
  10561. :key="stIndex"
  10562. style="padding-bottom: 20px"
  10563. >
  10564. <div
  10565. style="padding: 15px 0 10px 20px"
  10566. class="sentenceTitle"
  10567. :index="stIndex + 1"
  10568. >
  10569. 题目{{ stIndex + 1 }}:请选择正确顺序
  10570. </div>
  10571. <div class="cardList" v-if="st.chooseSenList">
  10572. <div class="cardBox">
  10573. <div
  10574. v-for="(r, rIndex) in st.chooseSenList"
  10575. :key="rIndex"
  10576. @click="returnCard(r, stIndex, rIndex)"
  10577. >
  10578. <el-tooltip
  10579. class="item"
  10580. effect="light"
  10581. :content="r"
  10582. placement="top"
  10583. v-if="r != '' && r != undefined"
  10584. >
  10585. <div
  10586. :class="{
  10587. isCard: r,
  10588. isChooseCard: r == '' || r == undefined,
  10589. }"
  10590. >
  10591. <div>{{ r }}</div>
  10592. </div>
  10593. </el-tooltip>
  10594. <div
  10595. :class="{
  10596. isCard: r,
  10597. isChooseCard: r == '' || r == undefined,
  10598. }"
  10599. v-else
  10600. >
  10601. <div>{{ r }}</div>
  10602. </div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. <div class="cardList" v-if="st.addChangeSen">
  10607. <div class="cardBox">
  10608. <div
  10609. v-for="(s, sIndex) in st.addChangeSen"
  10610. :key="sIndex"
  10611. @click="setRightAnswer(s, stIndex, sIndex)"
  10612. >
  10613. <el-tooltip
  10614. class="item"
  10615. effect="light"
  10616. :content="s"
  10617. placement="top"
  10618. v-if="s != '' && s != undefined"
  10619. >
  10620. <div
  10621. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10622. >
  10623. <div>{{ s }}</div>
  10624. </div>
  10625. </el-tooltip>
  10626. <div
  10627. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10628. v-else
  10629. >
  10630. <div>{{ s }}</div>
  10631. </div>
  10632. </div>
  10633. </div>
  10634. </div>
  10635. </div>
  10636. </div>
  10637. </div>
  10638. <span slot="footer" class="dialog-footer">
  10639. <el-button @click="dialogVisibleSentenceTeacher = false"
  10640. >取 消</el-button
  10641. >
  10642. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10643. </span>
  10644. </el-dialog>
  10645. <el-dialog
  10646. title="排序"
  10647. :visible.sync="dialogVisibleSentence1"
  10648. :append-to-body="true"
  10649. width="1000px"
  10650. :before-close="handleClose"
  10651. class="dialog_diy dialog_diy3"
  10652. >
  10653. <div>
  10654. <div class="sentenBox">
  10655. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10656. {{ sentenceList1.stuName }}的作业
  10657. </div>
  10658. <div
  10659. v-for="(st, stIndex) in sentenceList1"
  10660. :key="stIndex"
  10661. style="padding-bottom: 20px"
  10662. >
  10663. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10664. 第{{ stIndex + 1 }}题
  10665. </div>
  10666. <div class="isWrong">
  10667. <div class="cardList1" v-if="st.chooseSenList">
  10668. <div class="cardBox">
  10669. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10670. <el-tooltip
  10671. class="item"
  10672. effect="light"
  10673. :content="s"
  10674. placement="top"
  10675. >
  10676. <div class="isCard">
  10677. <div>{{ s }}</div>
  10678. </div>
  10679. </el-tooltip>
  10680. </div>
  10681. </div>
  10682. <div class="cardAnswerBox">
  10683. 组成句子:{{ st.chooseSenList.join(" ") }}
  10684. </div>
  10685. </div>
  10686. <div v-if="tType == 2" class="isTj">
  10687. <div class="isTjImg">
  10688. <img src="../assets/icon/conSentences/right.png" alt="" />
  10689. </div>
  10690. <div>已提交</div>
  10691. </div>
  10692. <div
  10693. class="answerRight isTj"
  10694. v-if="
  10695. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10696. (tType == 1 || tType == 4)
  10697. "
  10698. >
  10699. <div class="isTjImg">
  10700. <img src="../assets/icon/conSentences/right.png" alt="" />
  10701. </div>
  10702. <div>回答正确</div>
  10703. </div>
  10704. <div
  10705. class="answerRight isTj"
  10706. v-if="
  10707. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10708. (tType == 1 || tType == 4)
  10709. "
  10710. >
  10711. <div class="isTjImg">
  10712. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10713. </div>
  10714. <div>回答错误</div>
  10715. </div>
  10716. </div>
  10717. <div
  10718. v-if="
  10719. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10720. (tType == 1 || tType == 4)
  10721. "
  10722. >
  10723. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10724. <div
  10725. class="cardList"
  10726. v-if="st.rightAnswer"
  10727. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10728. >
  10729. <div class="cardBox">
  10730. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10731. <el-tooltip
  10732. class="item"
  10733. effect="light"
  10734. :content="r"
  10735. placement="top"
  10736. >
  10737. <div class="isCard1">
  10738. <div>{{ r }}</div>
  10739. </div>
  10740. </el-tooltip>
  10741. </div>
  10742. </div>
  10743. <div class="cardAnswerBox">
  10744. 组成句子:{{ st.rightAnswer.join(" ") }}
  10745. </div>
  10746. </div>
  10747. </div>
  10748. </div>
  10749. </div>
  10750. </div>
  10751. <span slot="footer" class="dialog-footer">
  10752. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10753. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10754. >确 定</el-button
  10755. >
  10756. </span>
  10757. </el-dialog>
  10758. <el-dialog
  10759. title="教师提交作业"
  10760. :visible.sync="dialogVisibleWorks"
  10761. :append-to-body="true"
  10762. width="500px"
  10763. :before-close="handleClose"
  10764. class="dialog_change"
  10765. >
  10766. <div class="marginT">
  10767. <div class="w_name">
  10768. 学生姓名:<span>{{ sStudent.student }}</span>
  10769. </div>
  10770. <div>上传文件</div>
  10771. <div
  10772. class="chapter_add"
  10773. @click="addImg($event)"
  10774. v-if="studyJuri[0].cover.length == 0"
  10775. >
  10776. <div class="up_photo">
  10777. <img src="../assets/uploadImg2.png" alt />
  10778. </div>
  10779. <!-- <input
  10780. type="file"
  10781. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10782. style="display: none"
  10783. @change="beforeUpload1($event, 1)"
  10784. /> -->
  10785. <input
  10786. type="file"
  10787. accept="*"
  10788. style="display: none"
  10789. @change="beforeUpload1($event, 1)"
  10790. />
  10791. </div>
  10792. <!-- capture="camera" -->
  10793. <div
  10794. class="chapter_add"
  10795. style="
  10796. display: flex;
  10797. width: 100%;
  10798. flex-direction: row;
  10799. flex-wrap: wrap;
  10800. justify-content: flex-start;
  10801. padding: 15px 0;
  10802. "
  10803. v-if="studyJuri[0].cover.length > 0"
  10804. >
  10805. <div class="upCover">
  10806. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10807. <img :src="word" alt v-else-if="fileType == 1" />
  10808. <img :src="video" alt v-else-if="fileType == 2" />
  10809. <img :src="word2" alt v-else-if="fileType == 3" />
  10810. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10811. <div class="deleteWord" @click="clean(1)">
  10812. <img src="../assets/icon/deleteWorks.png" alt />
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <div
  10818. class="upload_send"
  10819. @click="addCourseWorksTeacher(taskCount)"
  10820. v-if="!proVisible"
  10821. >
  10822. 提交
  10823. </div>
  10824. </el-dialog>
  10825. <ImgDraw
  10826. :drawShow="drawShow"
  10827. @closeDraw="closeDraw"
  10828. @addImgDraw="addImgDraw"
  10829. :bg="bg"
  10830. ></ImgDraw>
  10831. <el-dialog
  10832. title="表格"
  10833. :visible.sync="dialogVisibleTable"
  10834. :append-to-body="true"
  10835. width="95%"
  10836. :before-close="handleClose"
  10837. class="dialog_diy"
  10838. >
  10839. <el-form>
  10840. <div
  10841. style="
  10842. display: flex;
  10843. align-items: center;
  10844. justify-content: space-between;
  10845. "
  10846. >
  10847. <span>表格内容</span>
  10848. <el-button type="primary" size="small" @click="returnTableText"
  10849. >还原模板</el-button
  10850. >
  10851. </div>
  10852. <Table
  10853. v-model="tableJson.text"
  10854. @change="change"
  10855. v-if="dialogVisibleTable"
  10856. ></Table>
  10857. </el-form>
  10858. <span slot="footer" class="dialog-footer">
  10859. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10860. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10861. </span>
  10862. </el-dialog>
  10863. <el-dialog
  10864. title="表格"
  10865. :visible.sync="dialogVisibleTableTeacher"
  10866. :append-to-body="true"
  10867. width="95%"
  10868. :before-close="handleClose"
  10869. class="dialog_diy"
  10870. >
  10871. <el-form>
  10872. <div class="w_name">
  10873. 学生姓名:<span>{{ sStudent.student }}</span>
  10874. </div>
  10875. <div>表格内容</div>
  10876. <Table
  10877. v-model="tableJson.text"
  10878. @change="change"
  10879. v-if="dialogVisibleTableTeacher"
  10880. ></Table>
  10881. </el-form>
  10882. <span slot="footer" class="dialog-footer">
  10883. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10884. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10885. </span>
  10886. </el-dialog>
  10887. <el-dialog
  10888. title="文档"
  10889. :visible.sync="dialogVisibleWord"
  10890. :append-to-body="true"
  10891. width="95%"
  10892. :before-close="handleClose"
  10893. class="dialog_diy"
  10894. >
  10895. <el-form>
  10896. <div
  10897. style="
  10898. display: flex;
  10899. align-items: center;
  10900. justify-content: space-between;
  10901. "
  10902. >
  10903. <span>文档内容</span>
  10904. <el-button type="primary" size="small" @click="returnWordText"
  10905. >还原模板</el-button
  10906. >
  10907. </div>
  10908. <editor-bar
  10909. v-model="wordJson.text"
  10910. v-if="dialogVisibleWord"
  10911. ></editor-bar>
  10912. </el-form>
  10913. <span slot="footer" class="dialog-footer">
  10914. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10915. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10916. </span>
  10917. </el-dialog>
  10918. <el-dialog
  10919. title="文档"
  10920. :visible.sync="dialogVisibleWordTeacher"
  10921. :append-to-body="true"
  10922. width="95%"
  10923. :before-close="handleClose"
  10924. class="dialog_diy"
  10925. >
  10926. <el-form>
  10927. <div class="w_name">
  10928. 学生姓名:<span>{{ sStudent.student }}</span>
  10929. </div>
  10930. <div>文档内容</div>
  10931. <editor-bar
  10932. v-model="wordJson.text"
  10933. v-if="dialogVisibleWordTeacher"
  10934. ></editor-bar>
  10935. </el-form>
  10936. <span slot="footer" class="dialog-footer">
  10937. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10938. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10939. </span>
  10940. </el-dialog>
  10941. <el-dialog
  10942. title="表格"
  10943. :visible.sync="dialogVisibleTable2"
  10944. :append-to-body="true"
  10945. width="95%"
  10946. :before-close="handleClose"
  10947. class="dialog_diy"
  10948. >
  10949. <el-form>
  10950. <div class="cont" v-html="tableJson.text"></div>
  10951. </el-form>
  10952. <span slot="footer" class="dialog-footer">
  10953. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10954. </span>
  10955. </el-dialog>
  10956. <el-dialog
  10957. title="文档"
  10958. :visible.sync="dialogVisibleTable3"
  10959. :append-to-body="true"
  10960. width="95%"
  10961. :before-close="handleClose"
  10962. class="dialog_diy"
  10963. >
  10964. <el-form>
  10965. <div class="cont" v-html="tableJson.text"></div>
  10966. </el-form>
  10967. <span slot="footer" class="dialog-footer">
  10968. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10969. </span>
  10970. </el-dialog>
  10971. <el-dialog
  10972. title="分组设置"
  10973. :visible.sync="dialogVisibleGroup"
  10974. :append-to-body="true"
  10975. width="95%"
  10976. :before-close="handleClose"
  10977. class="dialog_diy"
  10978. >
  10979. <div v-if="dialogVisibleGroup">
  10980. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10981. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10982. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10983. </div>
  10984. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10985. @click="lockChair">
  10986. 锁定位置
  10987. </div>
  10988. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10989. 解锁位置
  10990. </div> -->
  10991. <div class="group_switch">
  10992. <span>开放选座</span>
  10993. <el-switch
  10994. v-model="islock"
  10995. active-text=""
  10996. class="switchCss"
  10997. @change="lockChair"
  10998. ></el-switch>
  10999. </div>
  11000. <div
  11001. type="primary"
  11002. @click="updateGroup"
  11003. class="returnBtn"
  11004. style="background-color: #225bc7"
  11005. >
  11006. 分组设置
  11007. </div>
  11008. </div>
  11009. <div>
  11010. <div
  11011. class="g_d_box"
  11012. v-if="groupJson.group && groupStudent[toolindex]"
  11013. >
  11014. <div
  11015. class="g_d_group"
  11016. v-for="(g, gindex) in groupJson.group"
  11017. :key="gindex"
  11018. >
  11019. <div class="g_d_group_chair">
  11020. <div v-if="groupJson.number > 1">
  11021. <span
  11022. :class="{
  11023. isChair:
  11024. groupStudent[toolindex][gindex] &&
  11025. groupStudent[toolindex][gindex][0],
  11026. updateChair:
  11027. courseDetail.userid == userid &&
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][0] &&
  11030. groupJson.islock == 2,
  11031. }"
  11032. ><span
  11033. class="updateChairBtn"
  11034. @click="
  11035. updateGroupChair(
  11036. groupStudent[toolindex][gindex] &&
  11037. groupStudent[toolindex][gindex][0]
  11038. )
  11039. "
  11040. >修改</span
  11041. ></span
  11042. ><span>{{
  11043. groupStudent[toolindex][gindex] &&
  11044. groupStudent[toolindex][gindex][0]
  11045. ? groupStudent[toolindex][gindex] &&
  11046. groupStudent[toolindex][gindex][0].name
  11047. : "空位置"
  11048. }}</span>
  11049. </div>
  11050. <div v-if="groupJson.number > 4">
  11051. <span
  11052. :class="{
  11053. isChair:
  11054. groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][4],
  11056. updateChair:
  11057. courseDetail.userid == userid &&
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][4] &&
  11060. groupJson.islock == 2,
  11061. }"
  11062. ><span
  11063. class="updateChairBtn"
  11064. @click="
  11065. updateGroupChair(
  11066. groupStudent[toolindex][gindex] &&
  11067. groupStudent[toolindex][gindex][4]
  11068. )
  11069. "
  11070. >修改</span
  11071. ></span
  11072. ><span>{{
  11073. groupStudent[toolindex][gindex] &&
  11074. groupStudent[toolindex][gindex][4]
  11075. ? groupStudent[toolindex][gindex] &&
  11076. groupStudent[toolindex][gindex][4].name
  11077. : "空位置"
  11078. }}</span>
  11079. </div>
  11080. <div v-if="groupJson.number > 8">
  11081. <span
  11082. :class="{
  11083. isChair:
  11084. groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][8],
  11086. updateChair:
  11087. courseDetail.userid == userid &&
  11088. groupStudent[toolindex][gindex] &&
  11089. groupStudent[toolindex][gindex][8] &&
  11090. groupJson.islock == 2,
  11091. }"
  11092. ><span
  11093. class="updateChairBtn"
  11094. @click="
  11095. updateGroupChair(
  11096. groupStudent[toolindex][gindex] &&
  11097. groupStudent[toolindex][gindex][8]
  11098. )
  11099. "
  11100. >修改</span
  11101. ></span
  11102. ><span>{{
  11103. groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][8]
  11105. ? groupStudent[toolindex][gindex] &&
  11106. groupStudent[toolindex][gindex][8].name
  11107. : "空位置"
  11108. }}</span>
  11109. </div>
  11110. </div>
  11111. <div class="g_d_group_tableBox">
  11112. <div class="g_d_group_chair2">
  11113. <div v-if="groupJson.number > 2">
  11114. <span
  11115. :class="{
  11116. isChair:
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][2],
  11119. updateChair:
  11120. courseDetail.userid == userid &&
  11121. groupStudent[toolindex][gindex] &&
  11122. groupStudent[toolindex][gindex][2] &&
  11123. groupJson.islock == 2,
  11124. }"
  11125. ><span
  11126. class="updateChairBtn"
  11127. @click="
  11128. updateGroupChair(
  11129. groupStudent[toolindex][gindex] &&
  11130. groupStudent[toolindex][gindex][2]
  11131. )
  11132. "
  11133. >修改</span
  11134. ></span
  11135. ><span>{{
  11136. groupStudent[toolindex][gindex] &&
  11137. groupStudent[toolindex][gindex][2]
  11138. ? groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][2].name
  11140. : "空位置"
  11141. }}</span>
  11142. </div>
  11143. <div v-if="groupJson.number > 6">
  11144. <span
  11145. :class="{
  11146. isChair:
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][6],
  11149. updateChair:
  11150. courseDetail.userid == userid &&
  11151. groupStudent[toolindex][gindex] &&
  11152. groupStudent[toolindex][gindex][6] &&
  11153. groupJson.islock == 2,
  11154. }"
  11155. ><span
  11156. class="updateChairBtn"
  11157. @click="
  11158. updateGroupChair(
  11159. groupStudent[toolindex][gindex] &&
  11160. groupStudent[toolindex][gindex][6]
  11161. )
  11162. "
  11163. >修改</span
  11164. ></span
  11165. ><span>{{
  11166. groupStudent[toolindex][gindex] &&
  11167. groupStudent[toolindex][gindex][6]
  11168. ? groupStudent[toolindex][gindex] &&
  11169. groupStudent[toolindex][gindex][6].name
  11170. : "空位置"
  11171. }}</span>
  11172. </div>
  11173. </div>
  11174. <div class="g_d_group_table">
  11175. <div>
  11176. {{ g.name }}
  11177. </div>
  11178. <div>
  11179. <div
  11180. v-if="
  11181. courseDetail.userid == userid && groupJson.islock == 2
  11182. "
  11183. @click="deleteGroupChair(gindex)"
  11184. >
  11185. 移除组员
  11186. </div>
  11187. <div
  11188. @click="selectGroup(gindex)"
  11189. v-else-if="
  11190. groupStudentUid[toolindex] &&
  11191. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11192. "
  11193. >
  11194. 加入分组
  11195. </div>
  11196. <div
  11197. @click="
  11198. exitGroup(
  11199. groupStudent[toolindex][gindex] &&
  11200. groupStudent[toolindex][gindex][
  11201. groupStudentUid[toolindex][gindex].indexOf(userid)
  11202. ].id
  11203. )
  11204. "
  11205. v-else-if="
  11206. groupStudentUid[toolindex] &&
  11207. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11208. "
  11209. >
  11210. 退出分组
  11211. </div>
  11212. </div>
  11213. </div>
  11214. <div class="g_d_group_chair2">
  11215. <div v-if="groupJson.number > 3">
  11216. <span
  11217. :class="{
  11218. isChair:
  11219. groupStudent[toolindex][gindex] &&
  11220. groupStudent[toolindex][gindex][3],
  11221. updateChair:
  11222. courseDetail.userid == userid &&
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][3] &&
  11225. groupJson.islock == 2,
  11226. }"
  11227. ><span
  11228. class="updateChairBtn"
  11229. @click="
  11230. updateGroupChair(
  11231. groupStudent[toolindex][gindex] &&
  11232. groupStudent[toolindex][gindex][3]
  11233. )
  11234. "
  11235. >修改</span
  11236. ></span
  11237. ><span>{{
  11238. groupStudent[toolindex][gindex] &&
  11239. groupStudent[toolindex][gindex][3]
  11240. ? groupStudent[toolindex][gindex] &&
  11241. groupStudent[toolindex][gindex][3].name
  11242. : "空位置"
  11243. }}</span>
  11244. </div>
  11245. <div v-if="groupJson.number > 7">
  11246. <span
  11247. :class="{
  11248. isChair:
  11249. groupStudent[toolindex][gindex] &&
  11250. groupStudent[toolindex][gindex][7],
  11251. updateChair:
  11252. courseDetail.userid == userid &&
  11253. groupStudent[toolindex][gindex] &&
  11254. groupStudent[toolindex][gindex][7] &&
  11255. groupJson.islock == 2,
  11256. }"
  11257. ><span
  11258. class="updateChairBtn"
  11259. @click="
  11260. updateGroupChair(
  11261. groupStudent[toolindex][gindex] &&
  11262. groupStudent[toolindex][gindex][7]
  11263. )
  11264. "
  11265. >修改</span
  11266. ></span
  11267. ><span>{{
  11268. groupStudent[toolindex][gindex] &&
  11269. groupStudent[toolindex][gindex][7]
  11270. ? groupStudent[toolindex][gindex] &&
  11271. groupStudent[toolindex][gindex][7].name
  11272. : "空位置"
  11273. }}</span>
  11274. </div>
  11275. </div>
  11276. </div>
  11277. <div class="g_d_group_chair">
  11278. <div v-if="groupJson.number > 1">
  11279. <span
  11280. :class="{
  11281. isChair:
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][1],
  11284. updateChair:
  11285. courseDetail.userid == userid &&
  11286. groupStudent[toolindex][gindex] &&
  11287. groupStudent[toolindex][gindex][1] &&
  11288. groupJson.islock == 2,
  11289. }"
  11290. ><span
  11291. class="updateChairBtn"
  11292. @click="
  11293. updateGroupChair(
  11294. groupStudent[toolindex][gindex] &&
  11295. groupStudent[toolindex][gindex][1]
  11296. )
  11297. "
  11298. >修改</span
  11299. ></span
  11300. ><span>{{
  11301. groupStudent[toolindex][gindex] &&
  11302. groupStudent[toolindex][gindex][1]
  11303. ? groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][1].name
  11305. : "空位置"
  11306. }}</span>
  11307. </div>
  11308. <div v-if="groupJson.number > 5">
  11309. <span
  11310. :class="{
  11311. isChair:
  11312. groupStudent[toolindex][gindex] &&
  11313. groupStudent[toolindex][gindex][5],
  11314. updateChair:
  11315. courseDetail.userid == userid &&
  11316. groupStudent[toolindex][gindex] &&
  11317. groupStudent[toolindex][gindex][5] &&
  11318. groupJson.islock == 2,
  11319. }"
  11320. ><span
  11321. class="updateChairBtn"
  11322. @click="
  11323. updateGroupChair(
  11324. groupStudent[toolindex][gindex] &&
  11325. groupStudent[toolindex][gindex][5]
  11326. )
  11327. "
  11328. >修改</span
  11329. ></span
  11330. ><span>{{
  11331. groupStudent[toolindex][gindex] &&
  11332. groupStudent[toolindex][gindex][5]
  11333. ? groupStudent[toolindex][gindex] &&
  11334. groupStudent[toolindex][gindex][5].name
  11335. : "空位置"
  11336. }}</span>
  11337. </div>
  11338. <div v-if="groupJson.number > 9">
  11339. <span
  11340. :class="{
  11341. isChair:
  11342. groupStudent[toolindex][gindex] &&
  11343. groupStudent[toolindex][gindex][9],
  11344. updateChair:
  11345. courseDetail.userid == userid &&
  11346. groupStudent[toolindex][gindex] &&
  11347. groupStudent[toolindex][gindex][9] &&
  11348. groupJson.islock == 2,
  11349. }"
  11350. ><span
  11351. class="updateChairBtn"
  11352. @click="
  11353. updateGroupChair(
  11354. groupStudent[toolindex][gindex] &&
  11355. groupStudent[toolindex][gindex][9]
  11356. )
  11357. "
  11358. >修改</span
  11359. ></span
  11360. ><span>{{
  11361. groupStudent[toolindex][gindex] &&
  11362. groupStudent[toolindex][gindex][9]
  11363. ? groupStudent[toolindex][gindex] &&
  11364. groupStudent[toolindex][gindex][9].name
  11365. : "空位置"
  11366. }}</span>
  11367. </div>
  11368. </div>
  11369. </div>
  11370. </div>
  11371. </div>
  11372. </div>
  11373. <span slot="footer" class="dialog-footer">
  11374. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11375. </span>
  11376. </el-dialog>
  11377. <el-dialog
  11378. title="分组设置"
  11379. :visible.sync="dialogVisibleGroup2"
  11380. :append-to-body="true"
  11381. width="650px"
  11382. :before-close="handleClose"
  11383. class="dialog_diy"
  11384. >
  11385. <div class="groupBox">
  11386. <div v-if="groupJson2.group" class="groupContent">
  11387. <div class="groupTitle">请设置小组数量及名称</div>
  11388. <div
  11389. v-for="(item, index) in groupJson2.group"
  11390. :key="index"
  11391. class="groupName"
  11392. >
  11393. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11394. <el-input
  11395. v-model="item.name"
  11396. placeholder="请输入名称..."
  11397. style="width: 250px"
  11398. ></el-input>
  11399. <!-- <div class="groupBtn">
  11400. <el-button type="primary" size="small" @click="addGroup(index)">
  11401. 添加</el-button>
  11402. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11403. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11404. </div> -->
  11405. </div>
  11406. </div>
  11407. <div class="groupContent">
  11408. <div class="groupTitle">请设置每组人数</div>
  11409. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11410. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11411. <el-input
  11412. v-model="groupJson.number"
  11413. style="width: 150px"
  11414. placeholder="请输入2-10的数字"
  11415. @change="numberPan"
  11416. ></el-input>
  11417. </div>
  11418. </div>
  11419. <span slot="footer" class="dialog-footer">
  11420. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11421. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11422. </span>
  11423. </el-dialog>
  11424. <el-dialog
  11425. title="作业提交"
  11426. :visible.sync="dialogVisibleGroupWork"
  11427. :append-to-body="true"
  11428. width="500px"
  11429. :before-close="handleClose"
  11430. class="dialog_change"
  11431. >
  11432. <div class="marginT">
  11433. <div>上传文件</div>
  11434. <div
  11435. class="chapter_add"
  11436. @click="addImg($event)"
  11437. v-if="studyJuri[0].cover.length == 0"
  11438. >
  11439. <div class="up_photo">
  11440. <img src="../assets/icon/uploadImg.png" alt />
  11441. </div>
  11442. <!-- <input
  11443. type="file"
  11444. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11445. style="display: none"
  11446. @change="beforeUpload1($event, 1)"
  11447. /> -->
  11448. <input
  11449. type="file"
  11450. accept="*"
  11451. style="display: none"
  11452. @change="beforeUpload1($event, 1)"
  11453. />
  11454. </div>
  11455. <!-- capture="camera" -->
  11456. <div
  11457. class="chapter_add"
  11458. style="
  11459. display: flex;
  11460. width: 100%;
  11461. flex-direction: row;
  11462. flex-wrap: wrap;
  11463. justify-content: flex-start;
  11464. padding: 15px 0;
  11465. "
  11466. v-if="studyJuri[0].cover.length > 0"
  11467. >
  11468. <div class="upCover">
  11469. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11470. <img :src="word" alt v-else-if="fileType == 1" />
  11471. <img :src="video" alt v-else-if="fileType == 2" />
  11472. <img :src="word2" alt v-else-if="fileType == 3" />
  11473. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11474. <div class="deleteWord" @click="clean(1)">
  11475. <img src="../assets/icon/deleteWorks.png" alt />
  11476. </div>
  11477. </div>
  11478. </div>
  11479. </div>
  11480. <div
  11481. class="upload_send"
  11482. @click="addCourseWorks2(taskCount)"
  11483. v-if="!proVisible"
  11484. >
  11485. 提交
  11486. </div>
  11487. </el-dialog>
  11488. <el-dialog
  11489. title="修改分组"
  11490. :visible.sync="dialogVisibleUpdateGroup"
  11491. :append-to-body="true"
  11492. width="350px"
  11493. :before-close="handleClose"
  11494. class="dialog_diy"
  11495. >
  11496. <div>
  11497. <h2>
  11498. {{ this.updateGroupUser.name }}
  11499. </h2>
  11500. <div style="color: rgb(171 171 171); margin-top: 10px">
  11501. 请选择要进入的分组
  11502. </div>
  11503. <el-radio-group v-model="checkChair">
  11504. <el-radio
  11505. style="display: block; margin-top: 20px"
  11506. v-for="(item, index) in updateGroupArray"
  11507. :label="item.label"
  11508. :key="index"
  11509. >{{ item.name }}</el-radio
  11510. >
  11511. </el-radio-group>
  11512. </div>
  11513. <span slot="footer" class="dialog-footer">
  11514. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11515. <el-button type="primary" @click="updateChair">确定</el-button>
  11516. </span>
  11517. </el-dialog>
  11518. <el-dialog
  11519. title="移除组员"
  11520. :visible.sync="dialogVisibleDeleteGroup"
  11521. :append-to-body="true"
  11522. width="350px"
  11523. :before-close="handleClose"
  11524. class="dialog_diy"
  11525. >
  11526. <div>
  11527. <h2>
  11528. {{ this.deleteGroupArray.name }}
  11529. </h2>
  11530. <div style="color: rgb(171 171 171); margin-top: 10px">
  11531. 请选择要删除的组员
  11532. </div>
  11533. <el-checkbox-group v-model="checkDeleteGroup">
  11534. <el-checkbox
  11535. style="display: flex; margin-top: 20px"
  11536. v-for="(item, index) in deleteGroupUser"
  11537. :label="item.userid"
  11538. :key="index"
  11539. >{{ item.name }}</el-checkbox
  11540. >
  11541. </el-checkbox-group>
  11542. </div>
  11543. <span slot="footer" class="dialog-footer">
  11544. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11545. <el-button type="primary" @click="deleteChair">确定</el-button>
  11546. </span>
  11547. </el-dialog>
  11548. <el-dialog
  11549. title="批量上传"
  11550. :visible.sync="dialogVisiblePl"
  11551. :append-to-body="true"
  11552. width="700px"
  11553. :before-close="handleClose"
  11554. class="dialog_change"
  11555. >
  11556. <div class="marginT">
  11557. <div class="plworkBox">
  11558. <div
  11559. class="chapter_add"
  11560. style="
  11561. display: flex;
  11562. width: 150px;
  11563. flex-direction: row;
  11564. flex-wrap: wrap;
  11565. justify-content: flex-start;
  11566. margin: 0 10px 10px 0;
  11567. "
  11568. v-for="(item, index) in plworkFile"
  11569. :key="index"
  11570. >
  11571. <div class="upCover2">
  11572. <img
  11573. :src="item.url"
  11574. alt
  11575. v-if="item.fileType == 1"
  11576. @click="previewImg(item.url)"
  11577. />
  11578. <img :src="word" alt v-else-if="item.fileType == 4" />
  11579. <img :src="video" alt v-else />
  11580. <!-- <span class="picName">{{ item.name }}</span> -->
  11581. <!-- <el-input
  11582. v-model="item.username"
  11583. placeholder="请输入学生名字"
  11584. style="margin-top: 10px"
  11585. ></el-input> -->
  11586. <div
  11587. class="pl_select_box"
  11588. @click="
  11589. getUpdateMore(true, checkUpload(), item.username, index)
  11590. "
  11591. >
  11592. {{ getSName(item.username) }}
  11593. </div>
  11594. <!-- <el-select
  11595. style="margin-top: 10px"
  11596. v-model="item.username"
  11597. filterable
  11598. allow-create
  11599. placeholder="请选择学生"
  11600. >
  11601. <el-option
  11602. v-for="item1 in checkUpload()"
  11603. :key="item1.userid"
  11604. :label="item1.name ? item1.name : item1.username"
  11605. :value="item1.userid"
  11606. >
  11607. </el-option>
  11608. </el-select> -->
  11609. <div class="deleteWord" @click="clean2(index)">
  11610. <img src="../assets/icon/deleteWorks.png" alt />
  11611. </div>
  11612. </div>
  11613. </div>
  11614. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11615. <div class="up_photo2">
  11616. <img src="../assets/icon/plwork.png" alt />
  11617. <span>点击上传文件</span>
  11618. </div>
  11619. <input
  11620. type="file"
  11621. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11622. multiple="multiple"
  11623. style="display: none"
  11624. @change="beforeUpload3($event, 6)"
  11625. />
  11626. </div>
  11627. </div>
  11628. </div>
  11629. <!-- capture="camera" -->
  11630. <div
  11631. class="upload_send"
  11632. @click="addCourseWorksPl(taskCount)"
  11633. v-if="!proVisible2"
  11634. >
  11635. 提交
  11636. </div>
  11637. </el-dialog>
  11638. <el-dialog
  11639. title="修改名称"
  11640. :visible.sync="dialogVisibleSname"
  11641. width="500px"
  11642. :before-close="handleClose"
  11643. class="dialog_diy"
  11644. center
  11645. >
  11646. <div
  11647. style="
  11648. text-align: center;
  11649. display: flex;
  11650. align-items: center;
  11651. justify-content: center;
  11652. "
  11653. >
  11654. <span class="tian1">名称</span>
  11655. <div
  11656. class="pl_select_box"
  11657. style="margin-left: 10px; width: 200px"
  11658. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11659. >
  11660. {{ getSName(worksSName) }}
  11661. </div>
  11662. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11663. placeholder="请选择学生">
  11664. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11665. :value="item.userid">
  11666. </el-option>
  11667. </el-select> -->
  11668. <!-- <el-input
  11669. v-model="worksSName"
  11670. style="width: 250px; margin: 15px 0px"
  11671. ></el-input> -->
  11672. </div>
  11673. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11674. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11675. <el-button type="primary" @click="updateName">确 定</el-button>
  11676. </span>
  11677. </el-dialog>
  11678. <el-dialog
  11679. title="英语写作"
  11680. :visible.sync="engDialogVisible"
  11681. :append-to-body="true"
  11682. width="800px"
  11683. :before-close="handleClose"
  11684. class="dialog_diy"
  11685. >
  11686. <onlineWrite
  11687. v-if="engDialogVisible"
  11688. :englishList="englishList"
  11689. :myAnswerList1="myAnswerList1"
  11690. :userid="userid"
  11691. ref="engJson"
  11692. ></onlineWrite>
  11693. <span slot="footer" class="dialog-footer">
  11694. <el-button @click="engDialogVisible = false">取 消</el-button>
  11695. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11696. </span>
  11697. </el-dialog>
  11698. <el-dialog
  11699. title="英语写作"
  11700. :visible.sync="engUpdateDialogVisible"
  11701. :append-to-body="true"
  11702. width="800px"
  11703. :before-close="handleClose"
  11704. class="dialog_diy fullStyle"
  11705. >
  11706. <div class="engUpBox">
  11707. <div class="engUpTop">
  11708. <div class="engTitle">
  11709. <div>作文题目:</div>
  11710. <div>{{ englishList1.engTitle }}</div>
  11711. </div>
  11712. <div class="engText">
  11713. <div>作文内容:</div>
  11714. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11715. </div>
  11716. </div>
  11717. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11718. <div class="oldBox">
  11719. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11720. <div class="oldText">
  11721. <div class="detailBox">
  11722. <div class="oldDetail">
  11723. <div>标题:</div>
  11724. <div>{{ oldEnglishJson.engTitle }} </div>
  11725. </div>
  11726. <div class="oldDetail1">
  11727. <div>正文:</div>
  11728. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11729. </div>
  11730. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11731. <div>图片:</div>
  11732. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11733. </div>
  11734. </div>
  11735. </div>
  11736. </div>
  11737. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11738. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11739. <div class="oldText">
  11740. <div class="detailBox" style="position: relative;">
  11741. <div class="oldDetail">
  11742. <div>标题:</div>
  11743. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11744. <div v-else v-html="newEnglishList.engTitle"></div>
  11745. </div>
  11746. <div class="oldDetail">
  11747. <div>正文:</div>
  11748. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11749. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11750. </div>
  11751. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11752. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11753. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11754. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11755. </div>
  11756. </div>
  11757. </div>
  11758. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11759. <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">
  11760. <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>
  11761. <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>
  11762. </div>
  11763. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11764. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11765. <div class="detailBox" style="position: relative;">
  11766. <div class="oldDetail">
  11767. <div>标题:</div>
  11768. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11769. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11770. </div>
  11771. <div class="oldDetail">
  11772. <div>正文:</div>
  11773. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11774. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11775. </div>
  11776. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11777. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11778. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11779. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11780. </div>
  11781. </div>
  11782. <div class="oldText" v-else-if="newEngIndex == -1">
  11783. <div class="detailBox" style="position: relative;">
  11784. <div class="oldDetail">
  11785. <div>标题:</div>
  11786. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11787. <div v-else v-html="newEnglishList.engTitle"></div>
  11788. </div>
  11789. <div class="oldDetail">
  11790. <div>正文:</div>
  11791. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11792. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11793. </div>
  11794. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11795. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11796. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11797. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11798. </div>
  11799. </div>
  11800. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11801. <div class="detailBox" style="position: relative;">
  11802. <div class="oldDetail">
  11803. <div>标题:</div>
  11804. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11805. <div v-else>
  11806. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11807. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11808. </div>
  11809. </div>
  11810. <div class="oldDetail">
  11811. <div>正文:</div>
  11812. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11813. <div v-else>
  11814. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11815. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11816. </div>
  11817. </div>
  11818. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11819. <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>
  11820. <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>
  11821. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11822. </div>
  11823. </div>
  11824. </div>
  11825. </div>
  11826. </div>
  11827. <span slot="footer" class="dialog-footer">
  11828. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11829. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11830. </span>
  11831. </el-dialog>
  11832. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11833. <interVideo
  11834. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11835. :videoJson="videoJson"
  11836. :userid="userid"
  11837. :id="id"
  11838. :courseType="courseType"
  11839. :taskCount="taskCount"
  11840. :toolindex="toolindex"
  11841. :videoType="videoType"
  11842. ></interVideo>
  11843. <UpdateMore
  11844. :dialogVisibleMember.sync="dialogVisibleMember"
  11845. :cList="uploadStudentJuri"
  11846. :userid="userid"
  11847. :searchTN="worksSName2"
  11848. @setPlname="setPlname"
  11849. ></UpdateMore>
  11850. <wordCloud
  11851. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11852. :data="wordCloudData"
  11853. ></wordCloud>
  11854. <el-dialog
  11855. title="挑人"
  11856. :visible.sync="dialogVisiblePickPeople"
  11857. width="650px"
  11858. :before-close="handleClose"
  11859. class="dialog_diy"
  11860. center
  11861. >
  11862. <div class="pick_box">
  11863. <div
  11864. class="noWorksName"
  11865. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11866. v-for="(item, index) in uploadStudentJuri"
  11867. :key="index"
  11868. @click="pickStudent(item)"
  11869. >
  11870. {{ item.name }}
  11871. </div>
  11872. </div>
  11873. </el-dialog>
  11874. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11875. :englishVoiceJson='englishVoiceJson'
  11876. :userid="userid"
  11877. :id="id"
  11878. :courseType="courseType"
  11879. :taskCount="taskCount"
  11880. :toolindex="toolindex"
  11881. @selectSWorks="selectSWorks"
  11882. @selectStudent="selectStudent"
  11883. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11884. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11885. :userid="userid"
  11886. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11887. :commentDetail="commentDetail"
  11888. :courseDetail="courseDetail"
  11889. :wScore="wScore"
  11890. :scoreDetail="scoreDetail"
  11891. @selectSWorks="selectSWorks"
  11892. @selectStudent="selectStudent"></checkEnglishVoice>
  11893. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11894. <choseWorksDetailDialog
  11895. ref="choseWorksDetailDialogRef"
  11896. :worksStudentData="this.worksStudent"
  11897. :noWorksSData="noWorksS"
  11898. :chapInfoListData="chapInfoList"
  11899. :courseType="courseType"
  11900. :taskCount="taskCount"
  11901. @deleteWorks="deleteWorks"
  11902. @openTools="openTools"
  11903. @openWord="openWord"
  11904. @openScore="openScore"
  11905. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11906. />
  11907. </div>
  11908. </template>
  11909. <script>
  11910. import "../common/aws-sdk-2.235.1.min.js";
  11911. // import pdf from "./components/pdf3";
  11912. import pdf from "./components/vpdf";
  11913. import AskStatic from "./components/askStatic";
  11914. import AskStatic2 from "./components/askStatic2";
  11915. import AnswerData2 from "./components/answerData2";
  11916. import AnswerData from "./components/answerData";
  11917. import EditorBar from "./tools/wangEnduit.vue";
  11918. import Table from "./tools/table.vue";
  11919. import Time from "./tools/time.vue";
  11920. import Mind from "./tools/jsmind.vue";
  11921. import Sunburst from "./tools/sunburst";
  11922. import SeeBoard from "./tools/seeBoard";
  11923. import * as imageConversion from "image-conversion";
  11924. import Audio from "./components/audio.vue";
  11925. import ImgDraw from "./tools/imgDraw/imgDraw";
  11926. import { Empty } from "element-ui";
  11927. import RecordRTC from "recordrtc";
  11928. import interVideo from "./interVideo/index.vue";
  11929. import UpdateMore from "./updateMore/updateMore.vue";
  11930. import wordCloud from "./wordCloud/index.vue";
  11931. import axios from "axios";
  11932. import JSZip from "jszip";
  11933. import FileSaver from "file-saver";
  11934. import onlineWrite from "./components/onlineWrite";
  11935. import englishEva from "./components/englishEva";
  11936. import * as Diff from 'diff'
  11937. import EnglishVoice from './EnglishVoice2/index.vue'
  11938. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11939. import correctText from './components/correctText.vue'
  11940. import scoreItem from './scoreList/scoreItem.vue'
  11941. import scoreZong from './scoreZong/index.vue'
  11942. import classRoomHelper from './classRoomHelper/index.vue'
  11943. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11944. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11945. import { v4 as uuidv4 } from "uuid";
  11946. const getFile = (url) => {
  11947. return new Promise((resolve, reject) => {
  11948. var credentials = {
  11949. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11950. secretAccessKey: "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",
  11951. }; //秘钥形式的登录上传
  11952. window.AWS.config.update(credentials);
  11953. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11954. let url2 = url;
  11955. let _url2 = "";
  11956. if (
  11957. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11958. ) {
  11959. _url2 = url2.split(
  11960. "https://view.officeapps.live.com/op/view.aspx?src="
  11961. )[1];
  11962. } else {
  11963. _url2 = url2;
  11964. }
  11965. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11966. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11967. var params = {
  11968. Bucket: "ccrb",
  11969. Key: name
  11970. };
  11971. s3.getObject(params, function (err, data) {
  11972. if (err) {
  11973. console.log(err, err.stack)
  11974. resolve({ data: 1 });
  11975. }else {
  11976. resolve({ data: data.Body });
  11977. console.log(data);
  11978. } // sxuccessful response
  11979. });
  11980. // axios({
  11981. // method: "get",
  11982. // url,
  11983. // responseType: "blob",
  11984. // })
  11985. // .then((data) => {
  11986. // resolve({ data: data.data });
  11987. // })
  11988. // .catch((error) => {
  11989. // resolve({ data: 1 });
  11990. // // reject(error.toString());
  11991. // });
  11992. });
  11993. };
  11994. export default {
  11995. components: {
  11996. EditorBar,
  11997. Time,
  11998. pdf,
  11999. AskStatic,
  12000. AskStatic2,
  12001. Mind,
  12002. Sunburst,
  12003. SeeBoard,
  12004. AnswerData2,
  12005. AnswerData,
  12006. Audio,
  12007. ImgDraw,
  12008. Table,
  12009. interVideo,
  12010. UpdateMore,
  12011. wordCloud,
  12012. onlineWrite,
  12013. englishEva,
  12014. EnglishVoice,
  12015. checkEnglishVoice,
  12016. correctText,
  12017. scoreItem,
  12018. classRoomHelper,
  12019. scoreZong,
  12020. statisticalAnalysis,
  12021. choseWorksDetailDialog
  12022. },
  12023. data() {
  12024. return {
  12025. bg: null,
  12026. drawShow: false,
  12027. dialogVisible: false,
  12028. dialogVisiblePl: false,
  12029. commentDialogVisible: false,
  12030. dialogVisibleMember: false,
  12031. dialogVisibleWordCloud: false,
  12032. videoVisible: false,
  12033. isStar: false,
  12034. studentEvalDialogVisible: false,
  12035. studentEvalDialogVisibleTeacher: false,
  12036. dialogVisibleSelect: false,
  12037. dialogVisibleSelectTeacher: false,
  12038. dialogVisibleScore: false,
  12039. dialogVisibleENScore: false,
  12040. dialogVisibleSentence: false,
  12041. dialogVisibleSentenceTeacher: false,
  12042. dialogVisibleSentence1: false,
  12043. dialogVisibleWorks: false,
  12044. dialogVisibleTable: false,
  12045. dialogVisibleTableTeacher: false,
  12046. dialogVisibleWord: false,
  12047. dialogVisibleWordTeacher: false,
  12048. dialogVisibleTable2: false,
  12049. dialogVisibleTable3: false,
  12050. dialogVisibleGroupWork: false,
  12051. dialogVisibleUpdateGroup: false,
  12052. dialogVisibleDeleteGroup: false,
  12053. dialogVisibleSname: false,
  12054. dialogVisibleVideo: false,
  12055. dialogVisiblePickPeople: false,
  12056. engDialogVisible: false,
  12057. engUpdateDialogVisible: false,
  12058. engEvaDialogVisible: false,
  12059. evaEngJson: {
  12060. teacherJson: {},
  12061. studentJson: {},
  12062. message: {},
  12063. },
  12064. isNoUserid:false,
  12065. engListLength:0,
  12066. engWid:"",
  12067. newEnglishList:{
  12068. engTitle:"",
  12069. engText:"",
  12070. },
  12071. newEnglishList1:[],
  12072. oldEnglishJson:{},
  12073. oldEnglishJson1:{},
  12074. englishList1:{},
  12075. englishList:{},
  12076. myAnswerList1:{},
  12077. topHeight:0,
  12078. newEngIndex:-1,
  12079. englishToolIndex:0,
  12080. worksSName: "",
  12081. classJuri: [],
  12082. uploadStudentJuri: [],
  12083. uploadCid: "",
  12084. snameWid: "",
  12085. sStudent: {},
  12086. sTool: "",
  12087. bzText: "",
  12088. commentDetail: [],
  12089. selectAnswer: [],
  12090. videoDetail: {},
  12091. selectJson: {},
  12092. eScore: { eBzText: "", eStar: [] },
  12093. id: this.$route.query.courseId,
  12094. userid: this.$route.query.userid,
  12095. classId: this.$route.query.cid,
  12096. // courseTypeLine: this.$route.query.type,
  12097. oid: this.$route.query.oid,
  12098. org: this.$route.query.org,
  12099. tType: this.$route.query.tType,
  12100. courseType: this.$route.query.type,
  12101. screenType: this.$route.query.screenType,
  12102. tcid2: this.$route.query.tcid,
  12103. tcid: "",
  12104. pptImgUrl: "",
  12105. pptImgUrl1: "",
  12106. commentText: "",
  12107. full: false,
  12108. sIsOpen: false,
  12109. IsLookOpen: false,
  12110. IsFollow: false,
  12111. pzDialog: false,
  12112. contentDialog: false,
  12113. mlDialog: false,
  12114. type: 1,
  12115. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12116. sentenceList1: [],
  12117. tableJson: [],
  12118. tableJsonO: [],
  12119. wordJson: [],
  12120. wordJsonO: [],
  12121. vedio: [],
  12122. text: [],
  12123. textList: [],
  12124. line: [],
  12125. lineList: [],
  12126. chapTools: [],
  12127. chapToolList: [],
  12128. file: [],
  12129. fileC: [],
  12130. vedioTime: [],
  12131. upToolImg: "",
  12132. preTime: 0,
  12133. rateList: {
  12134. ca: 0,
  12135. },
  12136. rateParams: [],
  12137. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12138. studyJuri: [
  12139. {
  12140. content: "",
  12141. cover: [],
  12142. upVedio: [],
  12143. upFile: [],
  12144. },
  12145. ],
  12146. isClose: 0,
  12147. plworkFile: [],
  12148. mr: require("../assets/vedioPic.png"),
  12149. word: require("../assets/icon/isWord.png"),
  12150. word2: require("../assets/icon/word2.png"),
  12151. video: require("../assets/icon/isVideo.png"),
  12152. noLikes: require("../assets/icon/comment/noLikes.png"),
  12153. likes: require("../assets/icon/comment/likes.png"),
  12154. scoreImg: require("../assets/score.png"),
  12155. courseDetail: {},
  12156. reply: "",
  12157. isSelect: false,
  12158. chapInfo: [],
  12159. chapInfoList: [],
  12160. taskCount: 0,
  12161. imgList: [],
  12162. noImgList: [],
  12163. pzList: [],
  12164. timeWorkList: [],
  12165. PlTextList: [
  12166. "Excellent!",
  12167. "nice!",
  12168. "很有创意!",
  12169. "还不错哦~",
  12170. "继续努力哦~",
  12171. ],
  12172. isClickNav: "",
  12173. navId: "",
  12174. playerOptions: {
  12175. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12176. autoplay: false, //如果true,浏览器准备好时开始回放。
  12177. muted: false, // 默认情况下将会消除任何音频。
  12178. loop: false, // 导致视频一结束就重新开始。
  12179. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12180. language: "zh-CN",
  12181. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12182. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12183. sources: [
  12184. {
  12185. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12186. src: "", //url地址require("../../assets/media/aaa.mp4")
  12187. },
  12188. ],
  12189. // poster: require("../../assets/tu31.png"), //你的封面地址
  12190. // poster: dataRes.imgUrl, //你的封面地址
  12191. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12192. controlBar: {
  12193. timeDivider: true, //当前时间和持续时间的分隔符
  12194. durationDisplay: true, //显示持续时间
  12195. remainingTimeDisplay: false, //是否显示剩余时间功能
  12196. fullscreenToggle: true, //全屏按钮
  12197. },
  12198. },
  12199. playerOptions1: {
  12200. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12201. autoplay: false, //如果true,浏览器准备好时开始回放。
  12202. muted: false, // 默认情况下将会消除任何音频。
  12203. loop: false, // 导致视频一结束就重新开始。
  12204. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12205. language: "zh-CN",
  12206. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12207. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12208. sources: [
  12209. {
  12210. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12211. src: "", //url地址require("../../assets/media/aaa.mp4")
  12212. },
  12213. ],
  12214. // poster: require("../../assets/tu31.png"), //你的封面地址
  12215. // poster: dataRes.imgUrl, //你的封面地址
  12216. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12217. controlBar: {
  12218. timeDivider: true, //当前时间和持续时间的分隔符
  12219. durationDisplay: true, //显示持续时间
  12220. remainingTimeDisplay: false, //是否显示剩余时间功能
  12221. fullscreenToggle: true, //全屏按钮
  12222. },
  12223. },
  12224. playerO: {},
  12225. noneBtnImg: false,
  12226. proVisible: false,
  12227. proVisible2: false,
  12228. progress: 0,
  12229. isFinishSize: 0,
  12230. isAllSize: 0,
  12231. questionAnswer: "",
  12232. answerQ: "", //问答标题
  12233. rateJson: [],
  12234. wbCount: 0,
  12235. wordCount: 0,
  12236. mindCount: 0,
  12237. askCount: 0,
  12238. noteCount: 0,
  12239. mindNetWorkCount: 0,
  12240. libraryCount: 0,
  12241. workCount: 0,
  12242. timeCount: 0,
  12243. answerCount: 0,
  12244. trainCount: 0,
  12245. evalCount: 0,
  12246. dialogImageUrl: "",
  12247. pictureDialog: false,
  12248. toolTypeList: [],
  12249. dialogVisible1: false,
  12250. dialogVisible2: false,
  12251. dialogVisible3: false,
  12252. dialogVisible6: false,
  12253. dialogVisible4: false,
  12254. isNoHomeWork: false,
  12255. dialogVisible5: false,
  12256. dialogVisible5Teacher: false,
  12257. dialogVisibleChoice: false,
  12258. dialogVisibleChoiceTeacher: false,
  12259. answerDialogVisible: false,
  12260. answerDialogVisibleTeacher: false,
  12261. juriVisible: false,
  12262. timeDialogVisible: false,
  12263. replyDialogVisible: false,
  12264. toolDialogVisible: false,
  12265. replyIndex: 0,
  12266. replyPid: "",
  12267. radio: [],
  12268. isAsk: false,
  12269. askJson: {
  12270. askCount: 1,
  12271. askTitle: "",
  12272. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12273. },
  12274. testJson: {},
  12275. videoType:0,
  12276. checkJson: [],
  12277. askList: [],
  12278. answerList: [],
  12279. navList: [],
  12280. addPzDialog: false,
  12281. pzConText: "",
  12282. worksStudent: [],
  12283. isCloseList: [],
  12284. workStudent: [],
  12285. groupStudent: [],
  12286. groupStudentUid: [],
  12287. noWorksS: [],
  12288. isWorksS: [],
  12289. noWorksStudent: [],
  12290. toolindex: 0,
  12291. toolDetailIndex: null,
  12292. groupIndex: 0,
  12293. workTypeB: false,
  12294. workTypeC: false,
  12295. isAnswer: false,
  12296. isHovered: false,
  12297. isHovered1: false,
  12298. isHovered2: false,
  12299. commentTagShow:0,
  12300. timer: null,
  12301. opertimer: null,
  12302. showType: 0,
  12303. fileType: 0,
  12304. showPDF: false,
  12305. noteName: "",
  12306. evaJuri: [],
  12307. evalua: "",
  12308. eTitle: "",
  12309. eName: "",
  12310. eJson: {},
  12311. fid: "", //一级
  12312. sid: "", //二级
  12313. tid: "", //二级
  12314. typeMode: 1,
  12315. eJSONNum: 0,
  12316. Etype: 1,
  12317. data: {
  12318. meta: {
  12319. name: "example",
  12320. author: "dd@163.com",
  12321. version: "0.2",
  12322. },
  12323. format: "node_array",
  12324. data: [{ id: "root", isroot: true, topic: "" }],
  12325. },
  12326. fullDialogVisible: false,
  12327. fulltype: "",
  12328. fullUrl: "",
  12329. commentIndexJson: {},
  12330. Stbodywidth: 0,
  12331. ispzType: 0,
  12332. pzType: 1,
  12333. wScore: 0,
  12334. scoreDetail: "",
  12335. videoStart: false,
  12336. recorder: null,
  12337. groupJson: {},
  12338. islock: false,
  12339. groupJson2: {},
  12340. dialogVisibleGroup: false,
  12341. dialogVisibleGroup2: false,
  12342. updateGroupArray: [],
  12343. updateGroupUser: {},
  12344. deleteGroupUser: [],
  12345. deleteGroupArray: {},
  12346. checkChair: "",
  12347. checkDeleteGroup: [],
  12348. inviteCode: "",
  12349. courseGroupStudent: [],
  12350. courseGroupStudentUid: [],
  12351. courseGroup: {},
  12352. isGroup: false,
  12353. // toolIndex: null,
  12354. tool: {},
  12355. isWorkTool: [
  12356. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12357. ], //, 40
  12358. videoJson: {},
  12359. toolType: 0,
  12360. checktoolArray: [],
  12361. vChapterData: [],
  12362. isUpdateToolDetail: false,
  12363. isUpdateToolDetail1: false,
  12364. updateToolDetailInner: "",
  12365. checkboxList: [],
  12366. plIndex: "",
  12367. worksSName2: "",
  12368. worksSid: "",
  12369. wordCloudData: [],
  12370. isPickStudent: [],
  12371. pzStype: 1,
  12372. myAnList: {},
  12373. userMes:{},
  12374. downLoading: false,
  12375. greyType: false,
  12376. correctWord: [],
  12377. isUpdateText: "",
  12378. EnglishVoiceDialog: false,
  12379. englishVoiceJson: {},
  12380. englishVoiceJsonWork:[],
  12381. scoreList:{
  12382. listdata:[],
  12383. isScoreList:[],
  12384. },
  12385. classRoomHelperWidth: '85px',
  12386. orgArray:[],
  12387. oidArray:[],
  12388. toolsList:{
  12389. 58: "模拟驾驶",
  12390. 59: "路径搜索",
  12391. 60: "深度学习",
  12392. 10: "倒计时",
  12393. 65: "挑人",
  12394. 7: "思维网格",
  12395. 1: "电子白板",
  12396. 52: "文档",
  12397. 3: "思维导图",
  12398. 48: "表格",
  12399. 49: "学生分组",
  12400. 4: "卷调查",
  12401. 45: "选择题",
  12402. 15: "问答",
  12403. 16: "作业提交",
  12404. 50: "批量上传",
  12405. 41: "选择匹配",
  12406. 47: "排序",
  12407. 40: "个人评价",
  12408. 18: "训练平台",
  12409. 21: "AIoT Blockly",
  12410. 23: "AI Python",
  12411. 24: "AI Blockly",
  12412. 32: "源码编辑",
  12413. 57: "CocoPi",
  12414. 63: "海龟编程",
  12415. 28: "翻译",
  12416. 31: "数字画板",
  12417. 39: "GeoGebra",
  12418. 66: "公式编辑",
  12419. 67: "分子结构",
  12420. 68: "时间轴",
  12421. 69: "英语写作",
  12422. 70: "英语口语",
  12423. 25: "目标管理",
  12424. 26: "课程设计",
  12425. 62: "交互视频",
  12426. 71: "AI智能体"
  12427. },
  12428. splitScreenData:{
  12429. isOpen:false,
  12430. userId:"",
  12431. uid:"",
  12432. myUid:"",
  12433. loading:false,
  12434. behavior:null,
  12435. }
  12436. };
  12437. },
  12438. methods: {
  12439. getAIJ(){
  12440. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12441. let oid = res.data[0];
  12442. let org = res.data[1];
  12443. let oidArray = [];
  12444. let orgArray = [];
  12445. oid.forEach(i=>oidArray.push(i.oid))
  12446. org.forEach(i=>orgArray.push(i.oid))
  12447. this.orgArray = orgArray;
  12448. this.oidArray = oidArray;
  12449. })
  12450. },
  12451. insertMemorandum(_html){//保存行为操作
  12452. //variable
  12453. //btn
  12454. let params = [{
  12455. uid:this.userid,
  12456. courseId:this.id+(this.tcid2?this.tcid2:''),
  12457. content:_html
  12458. }]
  12459. console.log("👇👇")
  12460. console.log(params)
  12461. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12462. if(res.data==1){
  12463. console.log('保存操作成功')
  12464. }else{
  12465. console.log('保存操作失败')
  12466. }
  12467. }).catch(e=>{
  12468. console.log('保存操作失败')
  12469. console.log(e)
  12470. })
  12471. },
  12472. gx(){
  12473. this.$forceUpdate();
  12474. },
  12475. isUpdateCorrect(t,p){
  12476. if(this.greyType == false){
  12477. this.isUpdateText = t;
  12478. this.greyType = true;
  12479. }else{
  12480. if(p == 1){
  12481. this.newEnglishList.engText = this.isUpdateText;
  12482. }else if(p == 2){
  12483. this.oldEnglishJson1.engText = this.isUpdateText;
  12484. }else if(p == 3){
  12485. this.newEnglishList.engText = this.isUpdateText;
  12486. }else{
  12487. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12488. }
  12489. this.greyType = false
  12490. }
  12491. },
  12492. aiCorrect(t,p){
  12493. let aiText = "";
  12494. const loading = this.$loading.service({
  12495. background: "rgba(255, 255, 255)",
  12496. target: document.querySelectorAll(".loadingText")[0],
  12497. });
  12498. let param = {
  12499. model: "gpt-3.5-turbo",
  12500. temperature: 0,
  12501. max_tokens: 2048,
  12502. top_p: 1,
  12503. frequency_penalty: 0,
  12504. presence_penalty: 0,
  12505. messages: [
  12506. {
  12507. role: "user",
  12508. content:
  12509.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12510. },
  12511. ],
  12512. uid: this.userid,
  12513. stream: false,
  12514. };
  12515. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12516. (res) => {
  12517. if (
  12518. res.data.FunctionResponse &&
  12519. res.data.FunctionResponse.result &&
  12520. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12521. ) {
  12522. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12523. return;
  12524. }
  12525. aiText =
  12526. res.data.FunctionResponse.choices[0].message.content;
  12527. aiText = aiText.replace(/%/g,"%25");
  12528. // let w = "";
  12529. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12530. // for(var k = 0;k<a.length;k++){
  12531. // //diffWordsWithSpace
  12532. // if(a.length > 1){
  12533. // if(a[k].added == true){
  12534. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12535. // }else if(a[k].removed == true){
  12536. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12537. // }else{
  12538. // w += '<span>' + a[k].value + '</span>';
  12539. // }
  12540. // }else{
  12541. // if(p == 1){
  12542. // w = this.newEnglishList.engText;
  12543. // }else if(p == 2){
  12544. // w = this.oldEnglishJson1.engText;
  12545. // }else if(p == 3){
  12546. // w = this.newEnglishList.engText;
  12547. // }else{
  12548. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12549. // }
  12550. // }
  12551. // }
  12552. if(p == 1){
  12553. this.newEnglishList.engText = aiText;
  12554. }else if(p == 2){
  12555. this.oldEnglishJson1.engText = aiText;
  12556. }else if(p == 3){
  12557. this.newEnglishList.engText = aiText;
  12558. }else{
  12559. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12560. }
  12561. loading.close();
  12562. },
  12563. (err) => {
  12564. console.log(err);
  12565. loading.close();
  12566. }
  12567. );
  12568. },
  12569. addToolChoose() {
  12570. if (!this.checktoolArray.length) {
  12571. this.$message.error("请选择要添加的任务");
  12572. return;
  12573. }
  12574. if (
  12575. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12576. this.taskCount
  12577. ].toolChoose[0].tool.length
  12578. ) {
  12579. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12580. this.taskCount
  12581. ].toolChoose[0].tool = this.checktoolArray;
  12582. } else {
  12583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12584. this.taskCount
  12585. ].toolChoose.push({
  12586. tool: this.checktoolArray,
  12587. toolDetail: "",
  12588. toolType: 0,
  12589. askCount: 1,
  12590. askTitle: "",
  12591. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12592. });
  12593. }
  12594. let params = [
  12595. {
  12596. cid: this.id,
  12597. chapters: JSON.stringify(this.chapInfoList),
  12598. uid: this.userid,
  12599. unitIndex: this.courseType,
  12600. },
  12601. ];
  12602. this.ajax
  12603. .post(this.$store.state.api + "updateWorkNew4", params)
  12604. .then((res) => {
  12605. this.$message({
  12606. message: "添加成功",
  12607. type: "success",
  12608. });
  12609. this.checktoolArray = [];
  12610. this.getCourseDetail(2);
  12611. this.checkBz(
  12612. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12613. this.taskCount
  12614. ].toolChoose.length - 1
  12615. );
  12616. this.toolDialogVisible = false;
  12617. this.refreshCourse();
  12618. this.$forceUpdate();
  12619. })
  12620. .catch((err) => {
  12621. console.error(err);
  12622. });
  12623. },
  12624. checkBz(index) {
  12625. this.isUpdateToolDetail = false;
  12626. this.$forceUpdate();
  12627. setTimeout(() => {
  12628. document.scrollingElement.scrollTop =
  12629. document.querySelectorAll(".filebox")[index].offsetTop +
  12630. document.querySelector(".student_body").offsetTop;
  12631. }, 500);
  12632. },
  12633. updateToolDetail(i, type) {
  12634. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12635. this.toolDetailIndex = i
  12636. this.isUpdateToolDetail1 = true;
  12637. setTimeout(() => {
  12638. this.updateToolDetailInner = JSON.parse(
  12639. JSON.stringify(
  12640. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12641. this.taskCount
  12642. ].toolChoose[i].toolDetail
  12643. )
  12644. );
  12645. document.querySelector(".checkTextArea").focus();
  12646. }, 0);
  12647. } else if((this.isUpdateToolDetail1 && type != 2)){
  12648. // this.toolDetailIndex = i;
  12649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12650. this.taskCount
  12651. ].toolChoose[i].toolDetail = JSON.parse(
  12652. JSON.stringify(this.updateToolDetailInner)
  12653. );
  12654. let params = [
  12655. {
  12656. cid: this.id,
  12657. chapters: JSON.stringify(this.chapInfoList),
  12658. uid: this.userid,
  12659. unitIndex: this.courseType,
  12660. },
  12661. ];
  12662. this.ajax
  12663. .post(this.$store.state.api + "updateWorkNew4", params)
  12664. .then((res) => {
  12665. this.isUpdateToolDetail1 = false;
  12666. this.$message({
  12667. message: "修改成功",
  12668. type: "success",
  12669. });
  12670. this.toolDetailIndex = null;
  12671. this.updateToolDetailInner = "";
  12672. this.getCourseDetail(2);
  12673. this.$forceUpdate();
  12674. })
  12675. .catch((err) => {
  12676. console.error(err);
  12677. });
  12678. } else if((this.isUpdateToolDetail1 && type == 2)){
  12679. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12680. this.taskCount
  12681. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12682. JSON.stringify(this.updateToolDetailInner)
  12683. );
  12684. let params = [
  12685. {
  12686. cid: this.id,
  12687. chapters: JSON.stringify(this.chapInfoList),
  12688. uid: this.userid,
  12689. unitIndex: this.courseType,
  12690. },
  12691. ];
  12692. this.ajax
  12693. .post(this.$store.state.api + "updateWorkNew4", params)
  12694. .then((res) => {
  12695. this.$message({
  12696. message: "修改成功",
  12697. type: "success",
  12698. });
  12699. this.toolDetailIndex = i;
  12700. this.isUpdateToolDetail1 = true;
  12701. setTimeout(() => {
  12702. this.updateToolDetailInner = JSON.parse(
  12703. JSON.stringify(
  12704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12705. this.taskCount
  12706. ].toolChoose[i].toolDetail
  12707. )
  12708. );
  12709. document.querySelector(".checkTextArea").focus();
  12710. }, 0);
  12711. this.getCourseDetail(2);
  12712. this.$forceUpdate();
  12713. })
  12714. .catch((err) => {
  12715. console.error(err);
  12716. });
  12717. }
  12718. },
  12719. jumpGj(i, j, k, l) {
  12720. for (var z = 0; z < this.navList.length; z++) {
  12721. for (var q = 0; q < this.navList[z].task.length; q++) {
  12722. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12723. this.navList[z].task[q].tool[w].isTool = false;
  12724. }
  12725. }
  12726. }
  12727. this.navList[i].task[j].tool[k].isTool =
  12728. !this.navList[i].task[j].tool[k].isTool;
  12729. var a = document.scrollingElement;
  12730. this.navId = ""
  12731. let target = document.querySelector(`#gj${k}`);
  12732. if (target) {
  12733. target.scrollIntoView(true);
  12734. setTimeout(() => {
  12735. a.scrollTop = a.scrollTop - 150;
  12736. }, 0);
  12737. }
  12738. let flag = this.courseType == i;
  12739. let flag2 = this.taskCount == j
  12740. if (l) {
  12741. this.courseType = i;
  12742. // this.navId = l;
  12743. this.taskCount = j;
  12744. this.selectPz();
  12745. this.getHomeWork();
  12746. this.getCourseDetail(2);
  12747. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12748. if(flag){
  12749. if(flag2){
  12750. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12751. }else{
  12752. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12753. }
  12754. }else{
  12755. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12756. }
  12757. }
  12758. // var b = this.$refs["bz" + k][0];
  12759. // a.scrollTop = b.offsetTop;
  12760. },
  12761. addTools2(i) {
  12762. if (i == 4) {
  12763. // this.openTools2(4);
  12764. this.$message.error("暂未开放");
  12765. return;
  12766. }
  12767. if (i == 45) {
  12768. // this.openTools2(45);
  12769. this.$message.error("暂未开放");
  12770. return;
  12771. }
  12772. if (i == 47) {
  12773. // this.openTools2(47);
  12774. this.$message.error("暂未开放");
  12775. return;
  12776. }
  12777. if (i == 49) {
  12778. // this.openTools2(49);
  12779. this.$message.error("暂未开放");
  12780. return;
  12781. }
  12782. if (i == 62) {
  12783. // this.openTools(itemTaskIndex, 62, toolIndex);
  12784. this.$message.error("暂未开放");
  12785. return;
  12786. }
  12787. if (i == 15) {
  12788. // this.openTools(itemTaskIndex, 15, toolIndex);
  12789. this.$message.error("暂未开放");
  12790. return;
  12791. }
  12792. if (i == 40) {
  12793. // this.openTools(itemTaskIndex, 40, toolIndex);
  12794. this.$message.error("暂未开放");
  12795. return;
  12796. }
  12797. if (i == 41) {
  12798. // this.openTools(itemTaskIndex, 41, toolIndex);
  12799. this.$message.error("暂未开放");
  12800. return;
  12801. }
  12802. if (i == 42) {
  12803. // this.openTools(itemTaskIndex, 42, toolIndex);
  12804. this.$message.error("暂未开放");
  12805. return;
  12806. }
  12807. if (this.checktoolArray.length > 0) {
  12808. if (this.checktoolArray.indexOf(i) != -1) {
  12809. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12810. } else {
  12811. this.checktoolArray = [];
  12812. this.checktoolArray.push(i);
  12813. }
  12814. } else {
  12815. this.checktoolArray.push(i);
  12816. }
  12817. this.$forceUpdate();
  12818. },
  12819. jump() {
  12820. window.parent.postMessage({ tools: "43" }, "*");
  12821. },
  12822. getUpdateMore(f, checkboxList, searchTN, index) {
  12823. this.dialogVisibleMember = f;
  12824. this.checkboxList = checkboxList;
  12825. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12826. this.plIndex = index;
  12827. },
  12828. setPlname(a) {
  12829. if (this.plworkFile.length) {
  12830. this.plworkFile[this.plIndex].username = a;
  12831. } else {
  12832. this.worksSName = a;
  12833. }
  12834. this.dialogVisibleMember = false;
  12835. },
  12836. previewImg(url,w=null) {
  12837. this.$hevueImgPreview(url);
  12838. if(w){
  12839. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12840. }
  12841. },
  12842. checkImg(list) {
  12843. if (!list.length) {
  12844. return;
  12845. }
  12846. this.$hevueImgPreview({
  12847. multiple: true, // 开启多图预览模式
  12848. imgList: list, // 需要预览的多图数组
  12849. });
  12850. },
  12851. change(val) {
  12852. console.log(val);
  12853. },
  12854. goTo(path) {
  12855. this.$router.push(path);
  12856. },
  12857. handlePictureCardPreview(url) {
  12858. this.dialogImageUrl = url;
  12859. this.pictureDialog = true;
  12860. },
  12861. clean(type) {
  12862. if (type == 1) {
  12863. this.studyJuri[0].cover.splice(0, 1);
  12864. } else if (type == 2) {
  12865. this.studyJuri[0].upVedio.splice(0, 1);
  12866. } else {
  12867. this.studyJuri[0].upFile.splice(0, 1);
  12868. }
  12869. },
  12870. clean2(index) {
  12871. this.plworkFile.splice(index, 1);
  12872. },
  12873. handleClose(done) {
  12874. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12875. this.videoDetail.sources[0].src = "";
  12876. }
  12877. this.commentIndexJson = {};
  12878. done();
  12879. },
  12880. fullTools() {
  12881. this.full = !this.full;
  12882. },
  12883. imgChange(file, fileList, type) {
  12884. if (type == 1) {
  12885. var _tmp = this.studyJuri[0].cover;
  12886. } else if (type == 2) {
  12887. var _tmp = this.studyJuri[0].upVedio;
  12888. } else {
  12889. var _tmp = this.studyJuri[0].upFile;
  12890. }
  12891. this.noneBtnImg = _tmp.length >= 1;
  12892. },
  12893. setContent(bool) {
  12894. this.contentDialog = bool;
  12895. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12896. document.querySelector(".workd_media").style.height = "650px";
  12897. } else if (document.querySelector(".workd_media")) {
  12898. document.querySelector(".workd_media").style.height = "auto";
  12899. }
  12900. },
  12901. setContent2(bool) {
  12902. this.mlDialog = bool;
  12903. if (
  12904. bool &&
  12905. this.contentDialog &&
  12906. document.querySelector(".workd_media")
  12907. ) {
  12908. document.querySelector(".workd_media").style.height = "650px";
  12909. } else if (document.querySelector(".workd_media")) {
  12910. document.querySelector(".workd_media").style.height = "auto";
  12911. }
  12912. this.$forceUpdate();
  12913. },
  12914. openToolAll() {
  12915. this.toolDialogVisible = true;
  12916. },
  12917. addImg(e) {
  12918. var el = e.currentTarget;
  12919. // this.$message.success('触发上传')
  12920. el.getElementsByTagName("input")[0].click();
  12921. e.target.value = "";
  12922. },
  12923. addSelectAnswer() {
  12924. let params = [
  12925. {
  12926. uid: this.userid,
  12927. cid: this.id,
  12928. stage: this.courseType,
  12929. task: this.taskCount,
  12930. tool: this.toolindex,
  12931. content: this.selectAnswer.answer,
  12932. type: 7,
  12933. },
  12934. ];
  12935. this.ajax
  12936. .post(this.$store.state.api + "addCourseWorks", params)
  12937. .then((res) => {
  12938. this.$message({
  12939. message: "提交成功",
  12940. type: "success",
  12941. });
  12942. this.dialogVisibleSelect = false;
  12943. // this.selectAnswer = {};
  12944. this.selectSWorks();
  12945. this.selectStudent();
  12946. })
  12947. .catch((err) => {
  12948. this.$message.error("提交失败");
  12949. console.error(err);
  12950. });
  12951. },
  12952. addSelectAnswerTeacher() {
  12953. let params = [
  12954. {
  12955. uid: this.sStudent.userid,
  12956. cid: this.id,
  12957. stage: this.courseType,
  12958. task: this.taskCount,
  12959. tool: this.toolindex,
  12960. content: this.selectAnswer.answer,
  12961. type: 7,
  12962. },
  12963. ];
  12964. this.ajax
  12965. .post(this.$store.state.api + "addCourseWorks", params)
  12966. .then((res) => {
  12967. this.$message({
  12968. message: "提交成功",
  12969. type: "success",
  12970. });
  12971. this.dialogVisibleSelectTeacher = false;
  12972. // this.selectAnswer = {};
  12973. this.selectSWorks();
  12974. this.selectStudent();
  12975. })
  12976. .catch((err) => {
  12977. this.$message.error("提交失败");
  12978. console.error(err);
  12979. });
  12980. },
  12981. addSenWorks() {
  12982. for (var i = 0; i < this.sentenceList.length; i++) {
  12983. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12984. if (
  12985. this.sentenceList[i].chooseSenList[j] == undefined ||
  12986. this.sentenceList[i].chooseSenList[j] == ""
  12987. ) {
  12988. this.$message.error("请将答案填写完整!");
  12989. return;
  12990. }
  12991. }
  12992. }
  12993. let params = [
  12994. {
  12995. uid: this.userid,
  12996. cid: this.id,
  12997. stage: this.courseType,
  12998. task: this.taskCount,
  12999. tool: this.toolindex,
  13000. content: JSON.stringify(this.sentenceList),
  13001. type: 9,
  13002. },
  13003. ];
  13004. this.ajax
  13005. .post(this.$store.state.api + "addCourseWorks", params)
  13006. .then((res) => {
  13007. this.$message({
  13008. message: "提交成功",
  13009. type: "success",
  13010. });
  13011. this.dialogVisibleSentence = false;
  13012. // this.selectAnswer = {};
  13013. this.selectSWorks();
  13014. this.selectStudent();
  13015. })
  13016. .catch((err) => {
  13017. this.$message.error("提交失败");
  13018. console.error(err);
  13019. });
  13020. },
  13021. addSenWorksTeacher() {
  13022. for (var i = 0; i < this.sentenceList.length; i++) {
  13023. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13024. if (
  13025. this.sentenceList[i].chooseSenList[j] == undefined ||
  13026. this.sentenceList[i].chooseSenList[j] == ""
  13027. ) {
  13028. this.$message.error("请将答案填写完整!");
  13029. return;
  13030. }
  13031. }
  13032. }
  13033. let params = [
  13034. {
  13035. uid: this.sStudent.userid,
  13036. cid: this.id,
  13037. stage: this.courseType,
  13038. task: this.taskCount,
  13039. tool: this.toolindex,
  13040. content: JSON.stringify(this.sentenceList),
  13041. type: 9,
  13042. },
  13043. ];
  13044. this.ajax
  13045. .post(this.$store.state.api + "addCourseWorks", params)
  13046. .then((res) => {
  13047. this.$message({
  13048. message: "提交成功",
  13049. type: "success",
  13050. });
  13051. this.dialogVisibleSentenceTeacher = false;
  13052. // this.selectAnswer = {};
  13053. this.selectSWorks();
  13054. this.selectStudent();
  13055. })
  13056. .catch((err) => {
  13057. this.$message.error("提交失败");
  13058. console.error(err);
  13059. });
  13060. },
  13061. returnTableText() {
  13062. this.$confirm("确定还原此模板吗?", "提示", {
  13063. confirmButtonText: "确定",
  13064. cancelButtonText: "取消",
  13065. type: "warning",
  13066. })
  13067. .then(() => {
  13068. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13069. })
  13070. .catch(() => {});
  13071. },
  13072. addTableWorks() {
  13073. let params = [
  13074. {
  13075. uid: this.userid,
  13076. cid: this.id,
  13077. stage: this.courseType,
  13078. task: this.taskCount,
  13079. tool: this.toolindex,
  13080. content: JSON.stringify(this.tableJson),
  13081. type: 10,
  13082. },
  13083. ];
  13084. this.ajax
  13085. .post(this.$store.state.api + "addCourseWorks", params)
  13086. .then((res) => {
  13087. this.$message({
  13088. message: "提交成功",
  13089. type: "success",
  13090. });
  13091. this.dialogVisibleTable = false;
  13092. // this.selectAnswer = {};
  13093. this.selectSWorks();
  13094. this.selectStudent();
  13095. })
  13096. .catch((err) => {
  13097. this.$message.error("提交失败");
  13098. console.error(err);
  13099. });
  13100. },
  13101. tableRowClassName({ row, rowIndex }) {
  13102. if ((rowIndex + 1) % 2 === 0) {
  13103. return "even_row";
  13104. } else {
  13105. return "";
  13106. }
  13107. },
  13108. addTableWorksTeacher() {
  13109. let params = [
  13110. {
  13111. uid: this.sStudent.userid,
  13112. cid: this.id,
  13113. stage: this.courseType,
  13114. task: this.taskCount,
  13115. tool: this.toolindex,
  13116. content: JSON.stringify(this.tableJson),
  13117. type: 10,
  13118. },
  13119. ];
  13120. this.ajax
  13121. .post(this.$store.state.api + "addCourseWorks", params)
  13122. .then((res) => {
  13123. this.$message({
  13124. message: "提交成功",
  13125. type: "success",
  13126. });
  13127. this.dialogVisibleTableTeacher = false;
  13128. // this.selectAnswer = {};
  13129. this.selectSWorks();
  13130. this.selectStudent();
  13131. })
  13132. .catch((err) => {
  13133. this.$message.error("提交失败");
  13134. console.error(err);
  13135. });
  13136. },
  13137. returnWordText() {
  13138. this.$confirm("确定还原此模板吗?", "提示", {
  13139. confirmButtonText: "确定",
  13140. cancelButtonText: "取消",
  13141. type: "warning",
  13142. })
  13143. .then(() => {
  13144. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13145. })
  13146. .catch(() => {});
  13147. },
  13148. addWordWorks() {
  13149. let params = [
  13150. {
  13151. uid: this.userid,
  13152. cid: this.id,
  13153. stage: this.courseType,
  13154. task: this.taskCount,
  13155. tool: this.toolindex,
  13156. content: JSON.stringify(this.wordJson),
  13157. type: 13,
  13158. atool: 52,
  13159. },
  13160. ];
  13161. this.ajax
  13162. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13163. .then((res) => {
  13164. this.$message({
  13165. message: "提交成功",
  13166. type: "success",
  13167. });
  13168. this.dialogVisibleWord = false;
  13169. // this.selectAnswer = {};
  13170. this.selectSWorks();
  13171. this.selectStudent();
  13172. })
  13173. .catch((err) => {
  13174. this.$message.error("提交失败");
  13175. console.error(err);
  13176. });
  13177. },
  13178. addWordWorksTeacher() {
  13179. let params = [
  13180. {
  13181. uid: this.sStudent.userid,
  13182. cid: this.id,
  13183. stage: this.courseType,
  13184. task: this.taskCount,
  13185. tool: this.toolindex,
  13186. content: JSON.stringify(this.wordJson),
  13187. type: 13,
  13188. atool: 52,
  13189. },
  13190. ];
  13191. this.ajax
  13192. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13193. .then((res) => {
  13194. this.$message({
  13195. message: "提交成功",
  13196. type: "success",
  13197. });
  13198. this.dialogVisibleWordTeacher = false;
  13199. // this.selectAnswer = {};
  13200. this.selectSWorks();
  13201. this.selectStudent();
  13202. })
  13203. .catch((err) => {
  13204. this.$message.error("提交失败");
  13205. console.error(err);
  13206. });
  13207. },
  13208. addCourseWorks(i) {
  13209. var typesql;
  13210. if (this.fileType === 0) {
  13211. typesql = 1;
  13212. } else if (this.fileType === 1) {
  13213. typesql = 4;
  13214. } else if (this.fileType === 2) {
  13215. typesql = 5;
  13216. } else if (this.fileType === 3) {
  13217. typesql = 12;
  13218. }
  13219. if (!this.studyJuri[0].cover[0].url) {
  13220. this.$message.error("请上传文件");
  13221. return;
  13222. }
  13223. let params = [
  13224. {
  13225. uid: this.userid,
  13226. cid: this.id,
  13227. stage: this.courseType,
  13228. task: i,
  13229. tool: this.toolindex,
  13230. content: this.studyJuri[0].cover[0].url,
  13231. type: typesql,
  13232. },
  13233. ];
  13234. this.ajax
  13235. .post(this.$store.state.api + "addCourseWorksR", params)
  13236. .then((res) => {
  13237. this.$message({
  13238. message: "提交成功",
  13239. type: "success",
  13240. });
  13241. this.studyJuri[0].cover = [];
  13242. this.dialogVisible = false;
  13243. this.getCourseDetail(2);
  13244. })
  13245. .catch((err) => {
  13246. this.$message.error("提交失败");
  13247. console.error(err);
  13248. });
  13249. },
  13250. addCourseWorksPl(i) {
  13251. let _files = this.plworkFile;
  13252. var c = 1;
  13253. for (var k = 0; k < _files.length; k++) {
  13254. if (!_files[k].username) {
  13255. c = 2;
  13256. }
  13257. }
  13258. if (c == 2) {
  13259. this.$message.error("请填写学生姓名");
  13260. return;
  13261. }
  13262. let params = [
  13263. {
  13264. ateacher: this.userid,
  13265. cid: this.id,
  13266. stage: this.courseType,
  13267. task: i,
  13268. tool: this.toolindex,
  13269. content: JSON.stringify(_files),
  13270. },
  13271. ];
  13272. this.ajax
  13273. .post(this.$store.state.api + "addCourseWorksPl", params)
  13274. .then((res) => {
  13275. this.$message({
  13276. message: "提交成功",
  13277. type: "success",
  13278. });
  13279. this.plworkFile = [];
  13280. this.dialogVisiblePl = false;
  13281. this.getCourseDetail(2);
  13282. })
  13283. .catch((err) => {
  13284. this.$message.error("提交失败");
  13285. console.error(err);
  13286. });
  13287. },
  13288. addCourseWorks2(i) {
  13289. var typesql;
  13290. if (this.fileType === 0) {
  13291. typesql = 0;
  13292. } else if (this.fileType === 1) {
  13293. typesql = 1;
  13294. } else if (this.fileType === 2) {
  13295. typesql = 3;
  13296. } else if (this.fileType === 3) {
  13297. typesql = 12;
  13298. }
  13299. if (!this.studyJuri[0].cover[0].url) {
  13300. this.$message.error("请上传文件");
  13301. return;
  13302. }
  13303. let params = [
  13304. {
  13305. uid: this.userid,
  13306. cid: this.id,
  13307. stage: this.courseType,
  13308. task: i,
  13309. tool: this.toolindex,
  13310. content: JSON.stringify({
  13311. type: typesql,
  13312. groupIndex: this.groupIndex,
  13313. url: this.studyJuri[0].cover[0].url,
  13314. }),
  13315. type: 11,
  13316. atool: 49,
  13317. text: "",
  13318. },
  13319. ];
  13320. this.ajax
  13321. .post(this.$store.state.api + "addCourseWorks5", params)
  13322. .then((res) => {
  13323. this.$message({
  13324. message: "提交成功",
  13325. type: "success",
  13326. });
  13327. this.studyJuri[0].cover = [];
  13328. this.dialogVisibleGroupWork = false;
  13329. this.getCourseDetail(2);
  13330. })
  13331. .catch((err) => {
  13332. this.$message.error("提交失败");
  13333. console.error(err);
  13334. });
  13335. },
  13336. addEnglishWork() {
  13337. this.myAnList = this.$refs['engJson'].myAnswerList;
  13338. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13339. this.$message.error("请输入作文标题和正文!");
  13340. return;
  13341. }
  13342. let params = [
  13343. {
  13344. uid: this.userid,
  13345. cid: this.id,
  13346. stage: this.courseType,
  13347. task: this.taskCount,
  13348. tool: this.englishToolIndex,
  13349. content: JSON.stringify(this.myAnList),
  13350. type: 16,
  13351. atool: 69,
  13352. text: "",
  13353. },
  13354. ];
  13355. this.ajax
  13356. .post(this.$store.state.api + "addCourseWorks5", params)
  13357. .then((res) => {
  13358. this.$message({
  13359. message: "提交成功",
  13360. type: "success",
  13361. });
  13362. this.myAnList = {};
  13363. this.englishList = {};
  13364. this.englishToolIndex = 0;
  13365. this.engDialogVisible = false;
  13366. this.selectSWorks();
  13367. this.selectStudent();
  13368. })
  13369. .catch((err) => {
  13370. this.$message.error("提交失败");
  13371. console.error(err);
  13372. });
  13373. },
  13374. addCourseWorksGong(i, data, tool) {
  13375. let params = [
  13376. {
  13377. uid: this.userid,
  13378. cid: this.id,
  13379. stage: this.courseType,
  13380. task: this.taskCount,
  13381. tool: i,
  13382. content: data,
  13383. type: 12,
  13384. atool: tool,
  13385. text: "",
  13386. },
  13387. ];
  13388. this.ajax
  13389. .post(this.$store.state.api + "addCourseWorks5", params)
  13390. .then((res) => {
  13391. this.$message({
  13392. message: "提交成功",
  13393. type: "success",
  13394. });
  13395. this.studyJuri[0].cover = [];
  13396. this.selectSWorks();
  13397. this.selectStudent();
  13398. })
  13399. .catch((err) => {
  13400. this.$message.error("提交失败");
  13401. console.error(err);
  13402. });
  13403. },
  13404. addCourseWorksGongTeacher(i, data, tool) {
  13405. let params = [
  13406. {
  13407. uid: this.sStudent.userid,
  13408. cid: this.id,
  13409. stage: this.courseType,
  13410. task: this.taskCount,
  13411. tool: i,
  13412. content: data,
  13413. type: 12,
  13414. atool: tool,
  13415. text: "",
  13416. },
  13417. ];
  13418. this.ajax
  13419. .post(this.$store.state.api + "addCourseWorks5", params)
  13420. .then((res) => {
  13421. this.$message({
  13422. message: "提交成功",
  13423. type: "success",
  13424. });
  13425. this.studyJuri[0].cover = [];
  13426. this.dialogVisibleWorks = false;
  13427. this.selectSWorks();
  13428. this.selectStudent();
  13429. })
  13430. .catch((err) => {
  13431. this.$message.error("提交失败");
  13432. console.error(err);
  13433. });
  13434. },
  13435. addCourseWorksGongPl(i, data, tool, type) {
  13436. let params = [
  13437. {
  13438. uid: this.sStudent.userid,
  13439. cid: this.id,
  13440. stage: this.courseType,
  13441. task: this.taskCount,
  13442. tool: i,
  13443. content: data,
  13444. type: type,
  13445. atool: tool,
  13446. text: "",
  13447. },
  13448. ];
  13449. this.ajax
  13450. .post(this.$store.state.api + "addCourseWorks5", params)
  13451. .then((res) => {
  13452. this.$message({
  13453. message: "提交成功",
  13454. type: "success",
  13455. });
  13456. this.studyJuri[0].cover = [];
  13457. this.dialogVisibleWorks = false;
  13458. this.selectSWorks();
  13459. this.selectStudent();
  13460. })
  13461. .catch((err) => {
  13462. this.$message.error("提交失败");
  13463. console.error(err);
  13464. });
  13465. },
  13466. addCourseWorksTeacher(i) {
  13467. var typesql;
  13468. if (this.sTool == 32) {
  13469. this.addCourseWorksGongTeacher(
  13470. this.toolindex,
  13471. this.studyJuri[0].cover[0].url,
  13472. this.sTool
  13473. );
  13474. return;
  13475. }
  13476. if (this.fileType === 0) {
  13477. typesql = 1;
  13478. } else if (this.fileType === 1) {
  13479. typesql = 4;
  13480. } else if (this.fileType === 2) {
  13481. typesql = 5;
  13482. } else if (this.fileType === 3) {
  13483. typesql = 12;
  13484. }
  13485. if (this.sTool == 50) {
  13486. this.addCourseWorksGongPl(
  13487. this.toolindex,
  13488. this.studyJuri[0].cover[0].url,
  13489. this.sTool,
  13490. typesql
  13491. );
  13492. return;
  13493. }
  13494. if (!this.studyJuri[0].cover[0].url) {
  13495. this.$message.error("请上传文件");
  13496. return;
  13497. }
  13498. let params = [
  13499. {
  13500. uid: this.sStudent.userid,
  13501. cid: this.id,
  13502. stage: this.courseType,
  13503. task: i,
  13504. tool: this.toolindex,
  13505. content: this.studyJuri[0].cover[0].url,
  13506. type: typesql,
  13507. ateacher: this.userid,
  13508. },
  13509. ];
  13510. this.ajax
  13511. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13512. .then((res) => {
  13513. this.$message({
  13514. message: "提交成功",
  13515. type: "success",
  13516. });
  13517. this.studyJuri[0].cover = [];
  13518. this.dialogVisibleWorks = false;
  13519. this.getCourseDetail(2);
  13520. })
  13521. .catch((err) => {
  13522. this.$message.error("提交失败");
  13523. console.error(err);
  13524. });
  13525. },
  13526. selectUploadStudent(type) {
  13527. const loading = this.$loading.service({
  13528. background: "rgba(255, 255, 255, 0.7)",
  13529. target: document.body,
  13530. });
  13531. let params = {
  13532. cid: this.uploadCid,
  13533. oid: this.oid,
  13534. cn: "",
  13535. };
  13536. this.ajax
  13537. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13538. .then((res) => {
  13539. loading.close();
  13540. var studentK = [];
  13541. if (this.isWorksS[this.toolindex].length > 0) {
  13542. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13543. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13544. }
  13545. studentK = studentK.join(",");
  13546. }
  13547. this.uploadStudentJuri = res.data[0].filter((el) => {
  13548. return studentK.indexOf(el.userid) == -1;
  13549. });
  13550. if (this.worksSName && this.worksSid) {
  13551. this.uploadStudentJuri.push({
  13552. userid: this.worksSid,
  13553. name: this.worksSName,
  13554. });
  13555. }
  13556. if (type == 1) {
  13557. this.plworkFile = [];
  13558. this.dialogVisibleSname = true;
  13559. } else if (type == 2) {
  13560. this.dialogVisiblePl = true;
  13561. }
  13562. })
  13563. .catch((err) => {
  13564. loading.close();
  13565. console.error(err);
  13566. });
  13567. },
  13568. selectPickStudent() {
  13569. const loading = this.$loading.service({
  13570. background: "rgba(255, 255, 255, 0.7)",
  13571. target: document.body,
  13572. });
  13573. let params = {
  13574. cid: this.uploadCid,
  13575. oid: this.oid,
  13576. cn: "",
  13577. };
  13578. this.ajax
  13579. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13580. .then((res) => {
  13581. loading.close();
  13582. this.uploadStudentJuri = res.data[0];
  13583. this.dialogVisiblePickPeople = true;
  13584. })
  13585. .catch((err) => {
  13586. loading.close();
  13587. console.error(err);
  13588. });
  13589. },
  13590. arrayToArray(arrayo, arrayt) {
  13591. let array1 = arrayo;
  13592. let array2 = arrayt;
  13593. let commonElements = [];
  13594. for (let i = 0; i < array1.length; i++) {
  13595. for (let j = 0; j < array2.length; j++) {
  13596. if (array1[i] === array2[j]) {
  13597. commonElements.push(array1[i]);
  13598. }
  13599. }
  13600. }
  13601. return commonElements;
  13602. },
  13603. selectWorksStudent() {
  13604. let params = {
  13605. oid: this.oid,
  13606. cid: this.courseDetail.juri,
  13607. };
  13608. this.ajax
  13609. .get(this.$store.state.api + "selectWorksStudent", params)
  13610. .then((res) => {
  13611. var a = res.data[0];
  13612. for (var i = 0; i < this.isWorksS.length; i++) {
  13613. this.noWorksS[i] = [];
  13614. var studentK = [];
  13615. if (this.isWorksS[i].length > 0) {
  13616. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13617. studentK.push(this.isWorksS[i][z].uid);
  13618. }
  13619. studentK = studentK.join(",");
  13620. for (var j = 0; j < a.length; j++) {
  13621. if (studentK.indexOf(a[j].userid) == -1) {
  13622. if (this.tcid) {
  13623. // a[j].classid.indexOf(this.tcid) != -1
  13624. if (
  13625. this.arrayToArray(
  13626. a[j].classid.split(","),
  13627. this.tcid.split(",")
  13628. ).length
  13629. ) {
  13630. this.noWorksS[i].push({
  13631. student: a[j].name,
  13632. userid: a[j].userid,
  13633. });
  13634. }
  13635. } else {
  13636. this.noWorksS[i].push({
  13637. student: a[j].name,
  13638. userid: a[j].userid,
  13639. });
  13640. }
  13641. }
  13642. }
  13643. } else {
  13644. for (var k = 0; k < a.length; k++) {
  13645. if (this.tcid) {
  13646. if (
  13647. this.arrayToArray(
  13648. a[k].classid.split(","),
  13649. this.tcid.split(",")
  13650. ).length
  13651. ) {
  13652. this.noWorksS[i].push({
  13653. student: a[k].name,
  13654. userid: a[k].userid,
  13655. });
  13656. }
  13657. } else {
  13658. this.noWorksS[i].push({
  13659. student: a[k].name,
  13660. userid: a[k].userid,
  13661. });
  13662. }
  13663. }
  13664. }
  13665. }
  13666. this.$forceUpdate();
  13667. if (
  13668. Object.keys(this.commentDetail).length &&
  13669. Object.keys(this.commentIndexJson).length &&
  13670. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13671. ) {
  13672. let a = 1;
  13673. let c = this.commentIndexJson;
  13674. if (
  13675. this.commentIndexJson.gindex ||
  13676. this.commentIndexJson.gindex === 0
  13677. ) {
  13678. for (
  13679. var i = 0;
  13680. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13681. i++
  13682. ) {
  13683. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13684. groupA: for (var k = 0; k < _el.length; k++) {
  13685. let el = _el[k];
  13686. if (el.wid == this.commentDetail.wid) {
  13687. a = 2;
  13688. this.commentOther(
  13689. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13690. this.commentIndexJson.toolIndex,
  13691. k,
  13692. this.commentIndexJson.gindex
  13693. );
  13694. break groupA;
  13695. }
  13696. }
  13697. }
  13698. if (a === 1) {
  13699. this.commentDetail = [];
  13700. this.commentIndexJson = {};
  13701. this.commentDialogVisible = false;
  13702. this.$message("此作业已被删除");
  13703. }
  13704. } else {
  13705. if (this.isGroup && this.commentIndexJson.gid) {
  13706. groupA: for (
  13707. var i = 0;
  13708. i < this.courseGroup.group.length;
  13709. i++
  13710. ) {
  13711. let _group = this.courseGroup.group[i];
  13712. if (_group.id == this.commentIndexJson.gid) {
  13713. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13714. for (var k = 0; k < _el2.length; k++) {
  13715. let el2 = _el2[k];
  13716. if (el2.wid == this.commentDetail.wid) {
  13717. a = 2;
  13718. this.commentOther(
  13719. _el2[k],
  13720. this.commentIndexJson.toolIndex,
  13721. k,
  13722. null,
  13723. this.commentIndexJson.gid
  13724. );
  13725. break groupA;
  13726. }
  13727. }
  13728. }
  13729. }
  13730. }
  13731. if (a == 1) {
  13732. for (
  13733. var i = 0;
  13734. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13735. i++
  13736. ) {
  13737. let el =
  13738. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13739. if (el.wid == this.commentDetail.wid) {
  13740. a = 2;
  13741. this.commentOther(
  13742. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13743. this.commentIndexJson.toolIndex,
  13744. i
  13745. );
  13746. break;
  13747. }
  13748. }
  13749. }
  13750. if (a === 1) {
  13751. this.commentDetail = [];
  13752. this.commentIndexJson = {};
  13753. this.commentDialogVisible = false;
  13754. this.$message("此作业已被删除");
  13755. }
  13756. }
  13757. }
  13758. })
  13759. .catch((err) => {
  13760. console.error(err);
  13761. });
  13762. },
  13763. selectStudent() {
  13764. //学生查看自己作业
  13765. let params = {
  13766. uid: this.userid,
  13767. cid: this.id,
  13768. s: this.courseType,
  13769. t: this.taskCount,
  13770. };
  13771. this.ajax
  13772. .get(this.$store.state.api + "selectStudentWorks", params)
  13773. .then((res) => {
  13774. var a =
  13775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13776. this.taskCount
  13777. ].toolChoose;
  13778. var b = res.data[0];
  13779. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13780. var y = [
  13781. "AVI",
  13782. "NAVI",
  13783. "MPEG",
  13784. "ASF",
  13785. "MOV",
  13786. "WMV",
  13787. "3GP",
  13788. "RM",
  13789. "RMVB",
  13790. "FLV",
  13791. "F4V",
  13792. "H.264",
  13793. "H.265",
  13794. "REAL VIDEO",
  13795. "MKV",
  13796. "WebM",
  13797. "HDDVD",
  13798. "MP4",
  13799. "MPG",
  13800. "M4V",
  13801. "MGV",
  13802. "OGV",
  13803. "QTM",
  13804. "STR",
  13805. "AMC",
  13806. "DVX",
  13807. "EVO",
  13808. "DAT",
  13809. "OGG",
  13810. "OGM",
  13811. ];
  13812. for (var i = 0; i < a.length; i++) {
  13813. this.workStudent[i] = [];
  13814. for (var j = 0; j < b.length; j++) {
  13815. if (i == b[j].tool) {
  13816. if (
  13817. (b[j].type == 1 ||
  13818. b[j].type == 4 ||
  13819. b[j].type == 5 ||
  13820. b[j].type == 6 ||
  13821. b[j].type == 12 ||
  13822. b[j].type == 7) &&
  13823. a[i].tool[0] != 15 &&
  13824. a[i].tool[0] != 4 &&
  13825. a[i].tool[0] != 45 &&
  13826. a[i].tool[0] != 50 &&
  13827. a[i].tool[0] != 32 &&
  13828. a[i].tool[0] != 57 &&
  13829. a[i].tool[0] != 52 &&
  13830. a[i].tool[0] != 69
  13831. ) {
  13832. if (
  13833. c.indexOf(
  13834. b[j].content
  13835. .split(".")
  13836. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13837. ) != -1 &&
  13838. a[i].tool[0] == 16 &&
  13839. b[j].atool != 50
  13840. ) {
  13841. this.workStudent[i].push({
  13842. works: b[j].content,
  13843. sName: b[j].name,
  13844. score: b[j].score,
  13845. img: b[j].img,
  13846. type: 1,
  13847. time: b[j].time,
  13848. userid: b[j].userid,
  13849. wid: b[j].id,
  13850. });
  13851. } else if (
  13852. y.indexOf(
  13853. b[j].content
  13854. .split(".")
  13855. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13856. ) != -1 &&
  13857. a[i].tool[0] == 16 &&
  13858. b[j].atool != 50
  13859. ) {
  13860. this.workStudent[i].push({
  13861. userid: b[j].userid,
  13862. wid: b[j].id,
  13863. works: b[j].content,
  13864. sName: b[j].name,
  13865. score: b[j].score,
  13866. img: b[j].img,
  13867. type: 3,
  13868. time: b[j].time,
  13869. });
  13870. } else if (b[j].type == 6 && b[j].atool != 50) {
  13871. this.workStudent[i].push({
  13872. userid: b[j].userid,
  13873. wid: b[j].id,
  13874. works: b[j].content,
  13875. sName: b[j].name,
  13876. score: b[j].score,
  13877. img: b[j].img,
  13878. type: 4,
  13879. time: b[j].time,
  13880. });
  13881. } else if (b[j].type == 7 && b[j].atool != 50) {
  13882. this.workStudent[i].push({
  13883. userid: b[j].userid,
  13884. wid: b[j].id,
  13885. works: b[j].content,
  13886. sName: b[j].name,
  13887. score: b[j].score,
  13888. img: b[j].img,
  13889. type: 5,
  13890. time: b[j].time,
  13891. });
  13892. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13893. this.workStudent[i].push({
  13894. works: b[j].content,
  13895. sName: b[j].name,
  13896. score: b[j].score,
  13897. img: b[j].img,
  13898. type: 12,
  13899. time: b[j].time,
  13900. userid: b[j].userid,
  13901. wid: b[j].id,
  13902. });
  13903. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13904. this.workStudent[i].push({
  13905. works: b[j].content,
  13906. sName: b[j].name,
  13907. score: b[j].score,
  13908. img: b[j].img,
  13909. type: 0,
  13910. time: b[j].time,
  13911. userid: b[j].userid,
  13912. wid: b[j].id,
  13913. });
  13914. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13915. this.workStudent[i].push({
  13916. works: b[j].content,
  13917. sName: b[j].name,
  13918. score: b[j].score,
  13919. img: b[j].img,
  13920. type: 0,
  13921. time: b[j].time,
  13922. userid: b[j].userid,
  13923. wid: b[j].id,
  13924. });
  13925. }
  13926. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13927. this.workStudent[i].push({
  13928. works: b[j].content,
  13929. sName: b[j].name,
  13930. score: b[j].score,
  13931. img: b[j].img,
  13932. type: 2,
  13933. time: b[j].time,
  13934. userid: b[j].userid,
  13935. wid: b[j].id,
  13936. });
  13937. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13938. //问卷
  13939. this.workStudent[i].push({
  13940. works: b[j].content,
  13941. sName: b[j].name,
  13942. score: b[j].score,
  13943. img: b[j].img,
  13944. type: 2,
  13945. time: b[j].time,
  13946. userid: b[j].userid,
  13947. wid: b[j].id,
  13948. });
  13949. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13950. //选择题
  13951. this.workStudent[i].push({
  13952. works: b[j].content,
  13953. sName: b[j].name,
  13954. score: b[j].score,
  13955. img: b[j].img,
  13956. type: 8,
  13957. time: b[j].time,
  13958. userid: b[j].userid,
  13959. wid: b[j].id,
  13960. });
  13961. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13962. //选择题
  13963. this.workStudent[i].push({
  13964. works: b[j].content,
  13965. sName: b[j].name,
  13966. score: b[j].score,
  13967. img: b[j].img,
  13968. type: 9,
  13969. time: b[j].time,
  13970. userid: b[j].userid,
  13971. wid: b[j].id,
  13972. });
  13973. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13974. //选择题
  13975. this.workStudent[i].push({
  13976. works: b[j].content,
  13977. sName: b[j].name,
  13978. score: b[j].score,
  13979. img: b[j].img,
  13980. type: 10,
  13981. time: b[j].time,
  13982. userid: b[j].userid,
  13983. wid: b[j].id,
  13984. });
  13985. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13986. //选择题
  13987. this.workStudent[i].push({
  13988. works: b[j].content,
  13989. sName: b[j].name,
  13990. score: b[j].score,
  13991. img: b[j].img,
  13992. type: 13,
  13993. time: b[j].time,
  13994. userid: b[j].userid,
  13995. wid: b[j].id,
  13996. });
  13997. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13998. //选择题
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 12,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14010. //选择题
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 12,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14022. //选择题
  14023. this.workStudent[i].push({
  14024. works: b[j].content,
  14025. sName: b[j].name,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. type: 15,
  14029. time: b[j].time,
  14030. userid: b[j].userid,
  14031. wid: b[j].id,
  14032. });
  14033. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14034. //英语写作
  14035. this.workStudent[i].push({
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 16,
  14041. time: b[j].time,
  14042. userid: b[j].userid,
  14043. wid: b[j].id,
  14044. aiCode: b[j].aiCode,
  14045. teacherCode: b[j].teacherCode
  14046. });
  14047. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14048. //英语口语
  14049. this.workStudent[i].push({
  14050. works: b[j].content,
  14051. sName: b[j].name,
  14052. score: b[j].score,
  14053. img: b[j].img,
  14054. type: 17,
  14055. time: b[j].time,
  14056. userid: b[j].userid,
  14057. wid: b[j].id,
  14058. });
  14059. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14060. //英语口语
  14061. this.workStudent[i].push({
  14062. works: b[j].content,
  14063. sName: b[j].name,
  14064. score: b[j].score,
  14065. img: b[j].img,
  14066. type: 14,
  14067. time: b[j].time,
  14068. userid: b[j].userid,
  14069. wid: b[j].id,
  14070. });
  14071. }
  14072. }
  14073. }
  14074. }
  14075. })
  14076. .catch((err) => {
  14077. console.error(err);
  14078. });
  14079. },
  14080. openVideo(w) {
  14081. this.videoDetail = {};
  14082. this.playerOptions1.sources[0].src = w.works;
  14083. this.videoDetail = this.playerOptions1;
  14084. this.videoVisible = true;
  14085. },
  14086. isLikes(wid, uid, t, c, isLikes,sName) {
  14087. if (isLikes == false) {
  14088. let params = [
  14089. {
  14090. wid: wid,
  14091. lid: uid,
  14092. t: t,
  14093. c: c,
  14094. },
  14095. ];
  14096. this.ajax
  14097. .post(this.$store.state.api + "insertComment", params)
  14098. .then((res) => {
  14099. this.$message({
  14100. message: "点赞成功",
  14101. type: "success",
  14102. });
  14103. this.selectSWorks();
  14104. this.selectStudent();
  14105. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("点赞失败");
  14109. console.error(err);
  14110. });
  14111. } else {
  14112. let params = {
  14113. wid: wid,
  14114. lid: uid,
  14115. type: t,
  14116. };
  14117. this.ajax
  14118. .get(this.$store.state.api + "deleteComment", params)
  14119. .then((res) => {
  14120. this.$message({
  14121. message: "取消点赞成功",
  14122. type: "success",
  14123. });
  14124. this.selectSWorks();
  14125. this.selectStudent();
  14126. })
  14127. .catch((err) => {
  14128. console.error(err);
  14129. });
  14130. }
  14131. },
  14132. deleteComment(wid) {
  14133. this.$confirm("确定删除此评论吗?", "提示", {
  14134. confirmButtonText: "确定",
  14135. cancelButtonText: "取消",
  14136. type: "warning",
  14137. })
  14138. .then(() => {
  14139. let params = {
  14140. id: wid,
  14141. };
  14142. this.ajax
  14143. .get(this.$store.state.api + "deleteComment2", params)
  14144. .then((res) => {
  14145. this.$message({
  14146. message: "删除评论成功",
  14147. type: "success",
  14148. });
  14149. this.selectSWorks();
  14150. this.selectStudent();
  14151. })
  14152. .catch((err) => {
  14153. console.error(err);
  14154. });
  14155. })
  14156. .catch(() => {});
  14157. },
  14158. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14159. this.commentIndexJson = {
  14160. toolIndex: toolIndex,
  14161. wIndex: wIndex,
  14162. gindex: gindex,
  14163. gid: gid,
  14164. };
  14165. this.commentDetail = [];
  14166. this.commentDialogVisible = true;
  14167. this.commentDetail = w;
  14168. if (w.works && w.type == 1) {
  14169. // this.pptImgUrl = "";
  14170. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14171. if (
  14172. a.indexOf(
  14173. w.works
  14174. .split(".")
  14175. [w.works.split(".").length - 1].toLocaleUpperCase()
  14176. ) != -1
  14177. ) {
  14178. let _uuurl = await this.checkLink(w.works);
  14179. this.pptImgUrl =
  14180. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14181. this.showPDF = false;
  14182. } else if (
  14183. w.works
  14184. .split(".")
  14185. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14186. ) {
  14187. this.pptImgUrl = w.works;
  14188. this.showPDF = true;
  14189. }
  14190. } else if (w.works && w.type == 3) {
  14191. this.videoDetail = {};
  14192. this.playerOptions1.sources[0].src = w.works;
  14193. this.videoDetail = this.playerOptions1;
  14194. // this.videoVisible = true;
  14195. } else if (w.works && w.type == 4) {
  14196. this.eScore = JSON.parse(w.works);
  14197. this.rateJson =
  14198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14199. this.taskCount
  14200. ].toolChoose[toolIndex].rateJson;
  14201. } else if (w.works && w.type == 10) {
  14202. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14203. } else if (w.works && w.type == 13) {
  14204. this.wordJson =
  14205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14206. this.taskCount
  14207. ].toolChoose[toolIndex].wordJson;
  14208. }
  14209. },
  14210. async openScore(w, index) {
  14211. this.wScore = 0;
  14212. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14213. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14214. this.commentDetail = [];
  14215. if(w.type == 17){
  14216. this.dialogVisibleENScore = true;
  14217. }else{
  14218. this.dialogVisibleScore = true;
  14219. }
  14220. this.commentDetail = w;
  14221. if (w.works && w.type == 1) {
  14222. this.pptImgUrl = "";
  14223. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14224. if (
  14225. a.indexOf(
  14226. w.works
  14227. .split(".")
  14228. [w.works.split(".").length - 1].toLocaleUpperCase()
  14229. ) != -1
  14230. ) {
  14231. let _uuurl = await this.checkLink(w.works);
  14232. this.pptImgUrl =
  14233. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14234. this.showPDF = false;
  14235. } else if (
  14236. w.works
  14237. .split(".")
  14238. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14239. ) {
  14240. this.pptImgUrl = w.works;
  14241. this.showPDF = true;
  14242. }
  14243. } else if (w.works && w.type == 3) {
  14244. this.videoDetail = {};
  14245. this.playerOptions1.sources[0].src = w.works;
  14246. this.videoDetail = this.playerOptions1;
  14247. }else if(w.type == 17){
  14248. let englishVoiceJson = {}
  14249. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14250. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14251. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14252. .toolChoose[index].englishVoiceJson
  14253. : {};
  14254. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14255. }
  14256. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14257. },
  14258. addComment(wid, uid, t,detail) {
  14259. if (this.commentText == "") {
  14260. this.$message.error("请输入评论");
  14261. return;
  14262. }
  14263. let params2 = [
  14264. {
  14265. wid: wid,
  14266. lid: uid,
  14267. t: t,
  14268. },
  14269. ];
  14270. this.ajax
  14271. .post(this.$store.state.api + "getComment", params2)
  14272. .then((res) => {
  14273. if (res.data[0].length > 0) {
  14274. this.$message.error("一个作业只能评论一条");
  14275. } else {
  14276. let params = [
  14277. {
  14278. wid: wid,
  14279. lid: uid,
  14280. t: t,
  14281. c: this.commentText,
  14282. },
  14283. ];
  14284. this.ajax
  14285. .post(this.$store.state.api + "insertComment", params)
  14286. .then((res) => {
  14287. this.$message({
  14288. message: "评论成功",
  14289. type: "success",
  14290. });
  14291. this.commentText = "";
  14292. this.selectSWorks();
  14293. this.selectStudent();
  14294. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14295. })
  14296. .catch((err) => {
  14297. this.$message.error("评论失败");
  14298. console.error(err);
  14299. });
  14300. }
  14301. })
  14302. .catch((err) => {
  14303. // this.$message.error("评论失败");
  14304. console.error(err);
  14305. });
  14306. },
  14307. scoreWork(wid,sName) {
  14308. if (this.wScore == 0) {
  14309. this.$message.error("请评分");
  14310. return;
  14311. }
  14312. let params = [
  14313. {
  14314. wid: wid,
  14315. score: JSON.stringify({
  14316. wScore: this.wScore,
  14317. detail: this.scoreDetail,
  14318. }),
  14319. },
  14320. ];
  14321. this.ajax
  14322. .post(this.$store.state.api + "scoreWork", params)
  14323. .then((res) => {
  14324. this.$message({
  14325. message: "评分成功",
  14326. type: "success",
  14327. });
  14328. this.wScore = 0;
  14329. this.scoreDetail = "";
  14330. this.dialogVisibleScore = false;
  14331. this.selectSWorks();
  14332. this.selectStudent();
  14333. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14334. })
  14335. .catch((err) => {
  14336. this.$message.error("评分失败");
  14337. console.error(err);
  14338. });
  14339. },
  14340. openXz(w, i) {
  14341. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14342. .taskJson[this.taskCount].toolChoose[i].selectJson
  14343. ? JSON.parse(
  14344. JSON.stringify(
  14345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14346. this.taskCount
  14347. ].toolChoose[i].selectJson
  14348. )
  14349. )
  14350. : { url: "", select: [], answer: [] };
  14351. var a = w.works.split(",");
  14352. for (var k = 0; k < a.length; k++) {
  14353. a[k] = parseInt(a[k]);
  14354. }
  14355. this.selectAnswer = { answer: a, stu: w.sName };
  14356. this.isSelect = true;
  14357. this.dialogVisibleSelect = true;
  14358. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14359. },
  14360. openSen(w, i) {
  14361. console.log("openSen")
  14362. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14363. this.sentenceList1 = JSON.parse(w.works);
  14364. this.sentenceList1.stuName = w.sName;
  14365. this.dialogVisibleSentence1 = true;
  14366. },
  14367. openPj(w, toolindex) {
  14368. console.log("openPJ")
  14369. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14370. this.isStar = true;
  14371. this.eScore = JSON.parse(w);
  14372. this.rateJson =
  14373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14374. this.taskCount
  14375. ].toolChoose[toolindex].rateJson;
  14376. this.studentEvalDialogVisible = true;
  14377. },
  14378. openEnglishEva(id,i){
  14379. let params = {
  14380. wid: id
  14381. };
  14382. this.ajax
  14383. .get(this.$store.state.api + "selectEngWork", params)
  14384. .then((res) => {
  14385. this.evaEngJson.message = res.data[0][0];
  14386. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14387. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14388. .toolChoose[i].englishList;
  14389. this.engEvaDialogVisible = true;
  14390. })
  14391. .catch((err) => {
  14392. console.error(err);
  14393. });
  14394. },
  14395. deleteWorks(id) {
  14396. this.$confirm("确定删除此作业吗?", "提示", {
  14397. confirmButtonText: "确定",
  14398. cancelButtonText: "取消",
  14399. type: "warning",
  14400. })
  14401. .then(() => {
  14402. let params = [
  14403. {
  14404. id: id,
  14405. },
  14406. ];
  14407. this.ajax
  14408. .post(this.$store.state.api + "deleteCourseWork", params)
  14409. .then((res) => {
  14410. this.$message({
  14411. message: "删除成功",
  14412. type: "success",
  14413. });
  14414. this.selectStudent();
  14415. this.selectSWorks();
  14416. this.selectSLook();
  14417. })
  14418. .catch((err) => {
  14419. this.$message.error("网络异常");
  14420. console.error(err);
  14421. });
  14422. })
  14423. .catch(() => {});
  14424. },
  14425. selectSWorks(gindex) {
  14426. //教师查看全部作业
  14427. let params = {
  14428. cid: this.id,
  14429. s: this.courseType,
  14430. t: this.taskCount,
  14431. };
  14432. this.ajax
  14433. .get(this.$store.state.api + "selectSWorks", params)
  14434. .then((res) => {
  14435. var a =
  14436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14437. this.taskCount
  14438. ].toolChoose;
  14439. var b = res.data[0];
  14440. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14441. var y = [
  14442. "AVI",
  14443. "NAVI",
  14444. "MPEG",
  14445. "ASF",
  14446. "MOV",
  14447. "WMV",
  14448. "3GP",
  14449. "RM",
  14450. "RMVB",
  14451. "FLV",
  14452. "F4V",
  14453. "H.264",
  14454. "H.265",
  14455. "REAL VIDEO",
  14456. "MKV",
  14457. "WebM",
  14458. "HDDVD",
  14459. "MP4",
  14460. "MPG",
  14461. "M4V",
  14462. "MGV",
  14463. "OGV",
  14464. "QTM",
  14465. "STR",
  14466. "AMC",
  14467. "DVX",
  14468. "EVO",
  14469. "DAT",
  14470. "OGG",
  14471. "OGM",
  14472. ];
  14473. var d = res.data[1];
  14474. var e = res.data[2];
  14475. var f = res.data[3];
  14476. let _worksStudent = [];
  14477. var _worksStudent2 = [];
  14478. for (var i = 0; i < a.length; i++) {
  14479. _worksStudent[i] = [];
  14480. _worksStudent2[i] = [];
  14481. if (
  14482. !this.isCloseList[i] ||
  14483. this.isCloseList[i].isClose == undefined
  14484. ) {
  14485. this.isCloseList[i] = { isClose: 0 };
  14486. }
  14487. this.groupStudent[i] = [];
  14488. this.groupStudentUid[i] = [];
  14489. if (this.isGroup) {
  14490. for (
  14491. var groupI = 0;
  14492. groupI < this.courseGroup.group.length;
  14493. groupI++
  14494. ) {
  14495. this.courseGroup.group[groupI].works[i] = [];
  14496. }
  14497. }
  14498. this.isWorksS[i] = [];
  14499. this.checkJson[i] = [];
  14500. if (a[i].tool[0] == 49) {
  14501. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14502. this.groupStudent[i][gA] = [];
  14503. this.groupStudentUid[i][gA] = [];
  14504. _worksStudent[i][gA] = [];
  14505. _worksStudent2[i][gA] = [];
  14506. this.isCloseList[i][gA] = [];
  14507. // debugger
  14508. for (var g = 0; g < f.length; g++) {
  14509. if (
  14510. f[g].ttype == 2 &&
  14511. this.tcid &&
  14512. this.arrayToArray(
  14513. (f[g].classid ? f[g].classid.split(",") : []),
  14514. this.tcid.split(",")
  14515. ).length == 0
  14516. ) {
  14517. continue;
  14518. }
  14519. let _classId = this.arrayToArray(
  14520. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14521. this.classId ? this.classId.split(",") : []
  14522. )
  14523. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14524. (f[g].classid ? f[g].classid.split(",") : []),
  14525. this.tcid.split(",")
  14526. ).length !== 0 || this.arrayToArray(
  14527. (f[g].classid ? f[g].classid.split(",") : []),
  14528. _classId
  14529. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14530. this.groupStudent[i][gA].push(f[g]);
  14531. this.groupStudentUid[i][gA].push(f[g].userid);
  14532. }
  14533. }
  14534. }
  14535. this.$forceUpdate();
  14536. }
  14537. for (var j = 0; j < b.length; j++) {
  14538. if (
  14539. b[j].ttype == 2 &&
  14540. this.tcid &&
  14541. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14542. .length == 0
  14543. ) {
  14544. continue;
  14545. }
  14546. var likesCount = 0;
  14547. var commentCount = 0;
  14548. var isLikes = false;
  14549. var commentJson = [];
  14550. var likeJson = [];
  14551. var data = b[j];
  14552. if (i == b[j].tool) {
  14553. if (data.type == 2 && a[i].tool[0] == 4) {
  14554. // if(JSON.parse(data.content)[0].anwer){
  14555. var checkL =
  14556. JSON.parse(data.content)[0].anwer instanceof Array
  14557. ? JSON.parse(data.content)[0].anwer
  14558. : JSON.parse(data.content)[0].anwer.split(",");
  14559. for (var z = 0; z < checkL.length; z++) {
  14560. if (!this.checkJson[i][z]) {
  14561. this.checkJson[i].push({
  14562. checkCount: [],
  14563. checkPerson: [],
  14564. rightPerson: [],
  14565. });
  14566. }
  14567. if (!this.checkJson[i][z].checkCount.length) {
  14568. this.checkJson[i][z].checkCount = [];
  14569. let _askItemCount = JSON.parse(data.content)[0].askJson
  14570. .askJson[z].askItem;
  14571. for (var aic = 0; aic < _askItemCount; aic++) {
  14572. this.checkJson[i][z].checkCount.push(0);
  14573. }
  14574. }
  14575. if (checkL[z] instanceof Array) {
  14576. if (
  14577. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14578. checkL[z].sort().join(",")
  14579. ) {
  14580. this.checkJson[i][z].rightPerson.push(data.name);
  14581. }
  14582. for (var q = 0; q < checkL[z].length; q++) {
  14583. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14584. ? this.checkJson[i][z].checkPerson[
  14585. parseInt(checkL[z][q])
  14586. ].push(data.name)
  14587. : (this.checkJson[i][z].checkPerson[
  14588. parseInt(checkL[z][q])
  14589. ] = [data.name]);
  14590. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14591. ? this.checkJson[i][z].checkCount[
  14592. parseInt(checkL[z][q])
  14593. ]++
  14594. : (this.checkJson[i][z].checkCount[
  14595. parseInt(checkL[z][q])
  14596. ] = 1);
  14597. }
  14598. } else {
  14599. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14600. this.checkJson[i][z].rightPerson.push(data.name);
  14601. }
  14602. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14603. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14604. ? this.checkJson[i][z].checkPerson[
  14605. parseInt(checkL[z])
  14606. ].push(data.name)
  14607. : (this.checkJson[i][z].checkPerson[
  14608. parseInt(checkL[z])
  14609. ] = [data.name]);
  14610. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14611. ? this.checkJson[i][z].checkCount[
  14612. parseInt(checkL[z])
  14613. ]++
  14614. : (this.checkJson[i][z].checkCount[
  14615. parseInt(checkL[z])
  14616. ] = 1);
  14617. }
  14618. }
  14619. }
  14620. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14621. var checkL = JSON.parse(data.content)[0].anwer;
  14622. for (var z = 0; z < checkL.length; z++) {
  14623. if (!this.checkJson[i][z]) {
  14624. this.checkJson[i].push({
  14625. checkCount: [],
  14626. checkPerson: [],
  14627. rightPerson: [],
  14628. });
  14629. }
  14630. if (!this.checkJson[i][z].checkCount.length) {
  14631. this.checkJson[i][z].checkCount = [];
  14632. let _askItemCount = JSON.parse(data.content)[0].testJson
  14633. .testJson[z].testItem;
  14634. for (var aic = 0; aic < _askItemCount; aic++) {
  14635. this.checkJson[i][z].checkCount.push(0);
  14636. }
  14637. }
  14638. if (checkL[z] instanceof Array) {
  14639. if (
  14640. JSON.parse(data.content)[0]
  14641. .testJson.testJson[z].answer.sort()
  14642. .join(",") == checkL[z].sort().join(",")
  14643. ) {
  14644. this.checkJson[i][z].rightPerson.push(data.name);
  14645. }
  14646. for (var q = 0; q < checkL[z].length; q++) {
  14647. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14648. ? this.checkJson[i][z].checkPerson[
  14649. parseInt(checkL[z][q])
  14650. ].push(data.name)
  14651. : (this.checkJson[i][z].checkPerson[
  14652. parseInt(checkL[z][q])
  14653. ] = [data.name]);
  14654. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14655. ? this.checkJson[i][z].checkCount[
  14656. parseInt(checkL[z][q])
  14657. ]++
  14658. : (this.checkJson[i][z].checkCount[
  14659. parseInt(checkL[z][q])
  14660. ] = 1);
  14661. }
  14662. } else {
  14663. if (
  14664. JSON.parse(data.content)[0].testJson.testJson[z]
  14665. .answer == checkL[z]
  14666. ) {
  14667. this.checkJson[i][z].rightPerson.push(data.name);
  14668. }
  14669. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14670. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14671. ? this.checkJson[i][z].checkPerson[
  14672. parseInt(checkL[z])
  14673. ].push(data.name)
  14674. : (this.checkJson[i][z].checkPerson[
  14675. parseInt(checkL[z])
  14676. ] = [data.name]);
  14677. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14678. ? this.checkJson[i][z].checkCount[
  14679. parseInt(checkL[z])
  14680. ]++
  14681. : (this.checkJson[i][z].checkCount[
  14682. parseInt(checkL[z])
  14683. ] = 1);
  14684. }
  14685. }
  14686. }
  14687. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14688. var checkL = JSON.parse(data.content);
  14689. for (var z = 0; z < checkL.length; z++) {
  14690. if (!this.checkJson[i][z]) {
  14691. this.checkJson[i].push({
  14692. checkCount: [],
  14693. checkPerson: [],
  14694. rightPerson: [],
  14695. });
  14696. }
  14697. this.checkJson[i][z].checkPerson.push(data.name);
  14698. if (
  14699. checkL[z].chooseSenList.toString() ==
  14700. checkL[z].rightAnswer.toString()
  14701. ) {
  14702. this.checkJson[i][z].rightPerson.push(data.name);
  14703. }
  14704. }
  14705. }
  14706. for (var k = 0; k < d.length; k++) {
  14707. //点赞
  14708. if (d[k].workId == b[j].id) {
  14709. likesCount++;
  14710. likeJson.push(d[k])
  14711. if (d[k].likesId == this.userid) {
  14712. isLikes = true;
  14713. }
  14714. }
  14715. }
  14716. for (var l = 0; l < e.length; l++) {
  14717. //评论
  14718. if (e[l].workId == b[j].id) {
  14719. if (e[l].comment != "") {
  14720. commentCount++;
  14721. commentJson.push({
  14722. commentText: e[l].comment,
  14723. commentTime: e[l].commentTime,
  14724. commentPeople: e[l].commentPeople,
  14725. userid: e[l].userid,
  14726. wid: e[l].id,
  14727. });
  14728. }
  14729. }
  14730. }
  14731. if (
  14732. (b[j].type == 1 ||
  14733. b[j].type == 4 ||
  14734. b[j].type == 5 ||
  14735. b[j].type == 6 ||
  14736. b[j].type == 12 ||
  14737. b[j].type == 7) &&
  14738. a[i].tool[0] != 15 &&
  14739. a[i].tool[0] != 4 &&
  14740. a[i].tool[0] != 45 &&
  14741. a[i].tool[0] != 50 &&
  14742. a[i].tool[0] != 32 &&
  14743. a[i].tool[0] != 57 &&
  14744. a[i].tool[0] != 52
  14745. ) {
  14746. if (
  14747. c.indexOf(
  14748. b[j].content
  14749. .split(".")
  14750. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14751. ) != -1 &&
  14752. a[i].tool[0] == 16 &&
  14753. b[j].atool != 50
  14754. ) {
  14755. let _works = {
  14756. userid: b[j].userid,
  14757. ateacher: b[j].ateacher,
  14758. wid: b[j].id,
  14759. works: b[j].content,
  14760. sName: b[j].name,
  14761. type: 1,
  14762. ttype:b[j].ttype,
  14763. time: b[j].time,
  14764. score: b[j].score,
  14765. img: b[j].img,
  14766. likesCount: likesCount,
  14767. commentCount: commentCount,
  14768. isLikes: isLikes,
  14769. commentJson: commentJson,
  14770. likeJson:likeJson
  14771. };
  14772. if (this.isGroup) {
  14773. let isGw = 1;
  14774. for (
  14775. var groupI = 0;
  14776. groupI < this.courseGroup.group.length;
  14777. groupI++
  14778. ) {
  14779. let gid = this.courseGroup.group[groupI].id;
  14780. if (
  14781. this.courseGroupStudentUid[gid].indexOf(
  14782. b[j].userid
  14783. ) != -1
  14784. ) {
  14785. isGw = 2;
  14786. this.courseGroup.group[groupI].works[i].push(_works);
  14787. break;
  14788. }
  14789. }
  14790. if (isGw == 1) {
  14791. _worksStudent[i].push(_works);
  14792. }
  14793. } else {
  14794. _worksStudent[i].push(_works);
  14795. }
  14796. _worksStudent2[i].push(_works);
  14797. this.isWorksS[i].push({
  14798. uid: b[j].userid,
  14799. sName: b[j].name,
  14800. });
  14801. } else if (
  14802. y.indexOf(
  14803. b[j].content
  14804. .split(".")
  14805. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14806. ) != -1 &&
  14807. a[i].tool[0] == 16 &&
  14808. b[j].atool != 50
  14809. ) {
  14810. let _works = {
  14811. userid: b[j].userid,
  14812. ateacher: b[j].ateacher,
  14813. wid: b[j].id,
  14814. works: b[j].content,
  14815. sName: b[j].name,
  14816. type: 3,
  14817. ttype:b[j].ttype,
  14818. time: b[j].time,
  14819. score: b[j].score,
  14820. img: b[j].img,
  14821. likesCount: likesCount,
  14822. commentCount: commentCount,
  14823. isLikes: isLikes,
  14824. commentJson: commentJson,
  14825. likeJson:likeJson
  14826. };
  14827. if (this.isGroup) {
  14828. let isGw = 1;
  14829. for (
  14830. var groupI = 0;
  14831. groupI < this.courseGroup.group.length;
  14832. groupI++
  14833. ) {
  14834. let gid = this.courseGroup.group[groupI].id;
  14835. if (
  14836. this.courseGroupStudentUid[gid].indexOf(
  14837. b[j].userid
  14838. ) != -1
  14839. ) {
  14840. isGw = 2;
  14841. this.courseGroup.group[groupI].works[i].push(_works);
  14842. break;
  14843. }
  14844. }
  14845. if (isGw == 1) {
  14846. _worksStudent[i].push(_works);
  14847. }
  14848. } else {
  14849. _worksStudent[i].push(_works);
  14850. }
  14851. _worksStudent2[i].push(_works);
  14852. this.isWorksS[i].push({
  14853. uid: b[j].userid,
  14854. sName: b[j].name,
  14855. });
  14856. } else if (b[j].type == 6 && b[j].atool != 50) {
  14857. let _works = {
  14858. userid: b[j].userid,
  14859. ateacher: b[j].ateacher,
  14860. wid: b[j].id,
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. type: 4,
  14864. ttype:b[j].ttype,
  14865. time: b[j].time,
  14866. score: b[j].score,
  14867. img: b[j].img,
  14868. likesCount: likesCount,
  14869. commentCount: commentCount,
  14870. isLikes: isLikes,
  14871. commentJson: commentJson,
  14872. likeJson:likeJson
  14873. };
  14874. _worksStudent[i].push(_works);
  14875. _worksStudent2[i].push(_works);
  14876. this.isWorksS[i].push({
  14877. uid: b[j].userid,
  14878. sName: b[j].name,
  14879. });
  14880. } else if (b[j].type == 7 && b[j].atool != 50) {
  14881. let _work = {
  14882. userid: b[j].userid,
  14883. ateacher: b[j].ateacher,
  14884. wid: b[j].id,
  14885. works: b[j].content,
  14886. sName: b[j].name,
  14887. type: 5,
  14888. ttype:b[j].ttype,
  14889. time: b[j].time,
  14890. score: b[j].score,
  14891. img: b[j].img,
  14892. likesCount: likesCount,
  14893. commentCount: commentCount,
  14894. isLikes: isLikes,
  14895. commentJson: commentJson,
  14896. likeJson:likeJson
  14897. };
  14898. _worksStudent[i].push(_work);
  14899. _worksStudent2[i].push(_work);
  14900. this.isWorksS[i].push({
  14901. uid: b[j].userid,
  14902. sName: b[j].name,
  14903. });
  14904. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14905. let _works = {
  14906. userid: b[j].userid,
  14907. ateacher: b[j].ateacher,
  14908. wid: b[j].id,
  14909. works: b[j].content,
  14910. sName: b[j].name,
  14911. type: 12,
  14912. ttype:b[j].ttype,
  14913. time: b[j].time,
  14914. score: b[j].score,
  14915. img: b[j].img,
  14916. likesCount: likesCount,
  14917. commentCount: commentCount,
  14918. isLikes: isLikes,
  14919. commentJson: commentJson,
  14920. likeJson:likeJson
  14921. };
  14922. if (this.isGroup) {
  14923. let isGw = 1;
  14924. for (
  14925. var groupI = 0;
  14926. groupI < this.courseGroup.group.length;
  14927. groupI++
  14928. ) {
  14929. let gid = this.courseGroup.group[groupI].id;
  14930. if (
  14931. this.courseGroupStudentUid[gid].indexOf(
  14932. b[j].userid
  14933. ) != -1
  14934. ) {
  14935. isGw = 2;
  14936. this.courseGroup.group[groupI].works[i].push(_works);
  14937. break;
  14938. }
  14939. }
  14940. if (isGw == 1) {
  14941. _worksStudent[i].push(_works);
  14942. }
  14943. } else {
  14944. _worksStudent[i].push(_works);
  14945. }
  14946. _worksStudent2[i].push(_works);
  14947. this.isWorksS[i].push({
  14948. uid: b[j].userid,
  14949. sName: b[j].name,
  14950. });
  14951. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14952. let _works = {
  14953. userid: b[j].userid,
  14954. ateacher: b[j].ateacher,
  14955. wid: b[j].id,
  14956. works: b[j].content,
  14957. sName: b[j].name,
  14958. type: 0,
  14959. ttype:b[j].ttype,
  14960. time: b[j].time,
  14961. score: b[j].score,
  14962. img: b[j].img,
  14963. likesCount: likesCount,
  14964. commentCount: commentCount,
  14965. isLikes: isLikes,
  14966. commentJson: commentJson,
  14967. likeJson:likeJson
  14968. };
  14969. if (this.isGroup) {
  14970. let isGw = 1;
  14971. for (
  14972. var groupI = 0;
  14973. groupI < this.courseGroup.group.length;
  14974. groupI++
  14975. ) {
  14976. let gid = this.courseGroup.group[groupI].id;
  14977. if (
  14978. this.courseGroupStudentUid[gid].indexOf(
  14979. b[j].userid
  14980. ) != -1
  14981. ) {
  14982. isGw = 2;
  14983. this.courseGroup.group[groupI].works[i].push(_works);
  14984. break;
  14985. }
  14986. }
  14987. if (isGw == 1) {
  14988. _worksStudent[i].push(_works);
  14989. }
  14990. } else {
  14991. _worksStudent[i].push(_works);
  14992. }
  14993. _worksStudent2[i].push(_works);
  14994. this.isWorksS[i].push({
  14995. uid: b[j].userid,
  14996. sName: b[j].name,
  14997. });
  14998. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14999. let _works = {
  15000. userid: b[j].userid,
  15001. ateacher: b[j].ateacher,
  15002. wid: b[j].id,
  15003. works: b[j].content,
  15004. sName: b[j].name,
  15005. type: 0,
  15006. ttype:b[j].ttype,
  15007. time: b[j].time,
  15008. score: b[j].score,
  15009. img: b[j].img,
  15010. likesCount: likesCount,
  15011. commentCount: commentCount,
  15012. isLikes: isLikes,
  15013. commentJson: commentJson,
  15014. likeJson:likeJson
  15015. };
  15016. if (this.isGroup) {
  15017. let isGw = 1;
  15018. for (
  15019. var groupI = 0;
  15020. groupI < this.courseGroup.group.length;
  15021. groupI++
  15022. ) {
  15023. let gid = this.courseGroup.group[groupI].id;
  15024. if (
  15025. this.courseGroupStudentUid[gid].indexOf(
  15026. b[j].userid
  15027. ) != -1
  15028. ) {
  15029. isGw = 2;
  15030. this.courseGroup.group[groupI].works[i].push(_works);
  15031. break;
  15032. }
  15033. }
  15034. if (isGw == 1) {
  15035. _worksStudent[i].push(_works);
  15036. }
  15037. } else {
  15038. _worksStudent[i].push(_works);
  15039. }
  15040. _worksStudent2[i].push(_works);
  15041. this.isWorksS[i].push({
  15042. uid: b[j].userid,
  15043. sName: b[j].name,
  15044. });
  15045. }
  15046. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15047. let _works = {
  15048. userid: b[j].userid,
  15049. ateacher: b[j].ateacher,
  15050. wid: b[j].id,
  15051. works: b[j].content,
  15052. sName: b[j].name,
  15053. type: 2,
  15054. ttype:b[j].ttype,
  15055. time: b[j].time,
  15056. score: b[j].score,
  15057. img: b[j].img,
  15058. likesCount: likesCount,
  15059. commentCount: commentCount,
  15060. isLikes: isLikes,
  15061. commentJson: commentJson,
  15062. likeJson:likeJson
  15063. };
  15064. if (this.isGroup) {
  15065. let isGw = 1;
  15066. for (
  15067. var groupI = 0;
  15068. groupI < this.courseGroup.group.length;
  15069. groupI++
  15070. ) {
  15071. let gid = this.courseGroup.group[groupI].id;
  15072. if (
  15073. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15074. -1
  15075. ) {
  15076. isGw = 2;
  15077. this.courseGroup.group[groupI].works[i].push(_works);
  15078. break;
  15079. }
  15080. }
  15081. if (isGw == 1) {
  15082. _worksStudent[i].push(_works);
  15083. }
  15084. } else {
  15085. _worksStudent[i].push(_works);
  15086. }
  15087. _worksStudent2[i].push(_works);
  15088. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15089. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15090. //问卷
  15091. let _work = {
  15092. userid: b[j].userid,
  15093. ateacher: b[j].ateacher,
  15094. wid: b[j].id,
  15095. works: b[j].content,
  15096. sName: b[j].name,
  15097. type: 2,
  15098. ttype:b[j].ttype,
  15099. time: b[j].time,
  15100. score: b[j].score,
  15101. img: b[j].img,
  15102. likesCount: likesCount,
  15103. commentCount: commentCount,
  15104. isLikes: isLikes,
  15105. commentJson: commentJson,
  15106. likeJson:likeJson
  15107. };
  15108. _worksStudent[i].push(_work);
  15109. _worksStudent2[i].push(_work);
  15110. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15111. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15112. //选择题
  15113. let _work = {
  15114. userid: b[j].userid,
  15115. ateacher: b[j].ateacher,
  15116. wid: b[j].id,
  15117. works: b[j].content,
  15118. sName: b[j].name,
  15119. type: 8,
  15120. ttype:b[j].ttype,
  15121. time: b[j].time,
  15122. score: b[j].score,
  15123. img: b[j].img,
  15124. likesCount: likesCount,
  15125. commentCount: commentCount,
  15126. isLikes: isLikes,
  15127. commentJson: commentJson,
  15128. likeJson:likeJson
  15129. };
  15130. _worksStudent[i].push(_work);
  15131. _worksStudent2[i].push(_work);
  15132. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15133. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15134. //选择题
  15135. let _work = {
  15136. userid: b[j].userid,
  15137. ateacher: b[j].ateacher,
  15138. wid: b[j].id,
  15139. works: b[j].content,
  15140. sName: b[j].name,
  15141. type: 9,
  15142. ttype:b[j].ttype,
  15143. time: b[j].time,
  15144. score: b[j].score,
  15145. img: b[j].img,
  15146. likesCount: likesCount,
  15147. commentCount: commentCount,
  15148. isLikes: isLikes,
  15149. commentJson: commentJson,
  15150. likeJson:likeJson
  15151. };
  15152. _worksStudent[i].push(_work);
  15153. _worksStudent2[i].push(_work);
  15154. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15155. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15156. //选择题
  15157. let _work = {
  15158. userid: b[j].userid,
  15159. ateacher: b[j].ateacher,
  15160. wid: b[j].id,
  15161. works: b[j].content,
  15162. sName: b[j].name,
  15163. type: 10,
  15164. ttype:b[j].ttype,
  15165. time: b[j].time,
  15166. score: b[j].score,
  15167. img: b[j].img,
  15168. likesCount: likesCount,
  15169. commentCount: commentCount,
  15170. isLikes: isLikes,
  15171. commentJson: commentJson,
  15172. likeJson:likeJson
  15173. };
  15174. _worksStudent[i].push(_work);
  15175. _worksStudent2[i].push(_work);
  15176. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15177. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15178. //选择题
  15179. let _work = {
  15180. userid: b[j].userid,
  15181. ateacher: b[j].ateacher,
  15182. wid: b[j].id,
  15183. works: b[j].content,
  15184. sName: b[j].name,
  15185. type: 13,
  15186. ttype:b[j].ttype,
  15187. time: b[j].time,
  15188. score: b[j].score,
  15189. img: b[j].img,
  15190. likesCount: likesCount,
  15191. commentCount: commentCount,
  15192. isLikes: isLikes,
  15193. commentJson: commentJson,
  15194. likeJson:likeJson
  15195. };
  15196. _worksStudent[i].push(_work);
  15197. _worksStudent2[i].push(_work);
  15198. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15199. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15200. //选择题
  15201. let _work = {
  15202. userid: b[j].userid,
  15203. ateacher: b[j].ateacher,
  15204. wid: b[j].id,
  15205. works: b[j].content,
  15206. sName: b[j].name,
  15207. type: 16,
  15208. ttype:b[j].ttype,
  15209. time: b[j].time,
  15210. score: b[j].score,
  15211. img: b[j].img,
  15212. likesCount: likesCount,
  15213. commentCount: commentCount,
  15214. isLikes: isLikes,
  15215. commentJson: commentJson,
  15216. aiCode: b[j].aiCode,
  15217. teacherCode: b[j].teacherCode,
  15218. likeJson:likeJson
  15219. };
  15220. _worksStudent[i].push(_work);
  15221. _worksStudent2[i].push(_work);
  15222. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15223. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15224. //英语口语
  15225. let _work = {
  15226. userid: b[j].userid,
  15227. ateacher: b[j].ateacher,
  15228. wid: b[j].id,
  15229. works: b[j].content,
  15230. sName: b[j].name,
  15231. type: 17,
  15232. ttype:b[j].ttype,
  15233. time: b[j].time,
  15234. score: b[j].score,
  15235. img: b[j].img,
  15236. likesCount: likesCount,
  15237. commentCount: commentCount,
  15238. isLikes: isLikes,
  15239. commentJson: commentJson,
  15240. likeJson:likeJson
  15241. };
  15242. _worksStudent[i].push(_work);
  15243. _worksStudent2[i].push(_work);
  15244. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15245. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15246. //交互视频
  15247. let _work = {
  15248. userid: b[j].userid,
  15249. ateacher: b[j].ateacher,
  15250. wid: b[j].id,
  15251. works: b[j].content,
  15252. sName: b[j].name,
  15253. type: 14,
  15254. ttype:b[j].ttype,
  15255. time: b[j].time,
  15256. score: b[j].score,
  15257. img: b[j].img,
  15258. likesCount: likesCount,
  15259. commentCount: commentCount,
  15260. isLikes: isLikes,
  15261. commentJson: commentJson,
  15262. likeJson:likeJson
  15263. };
  15264. _worksStudent[i].push(_work);
  15265. _worksStudent2[i].push(_work);
  15266. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15267. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15268. let _gindex = JSON.parse(b[j].content);
  15269. if (
  15270. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15271. b[j].userid
  15272. ) != -1
  15273. ) {
  15274. let _work = {
  15275. userid: b[j].userid,
  15276. ateacher: b[j].ateacher,
  15277. wid: b[j].id,
  15278. works: _gindex.url,
  15279. sName: b[j].name,
  15280. type: _gindex.type,
  15281. ttype:b[j].ttype,
  15282. time: b[j].time,
  15283. score: b[j].score,
  15284. img: b[j].img,
  15285. likesCount: likesCount,
  15286. commentCount: commentCount,
  15287. isLikes: isLikes,
  15288. commentJson: commentJson,
  15289. likeJson:likeJson
  15290. };
  15291. _worksStudent[i][_gindex.groupIndex].push(_work);
  15292. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15293. }
  15294. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15295. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15296. let _work = {
  15297. userid: b[j].userid,
  15298. ateacher: b[j].ateacher,
  15299. wid: b[j].id,
  15300. works: b[j].content,
  15301. sName: b[j].name ? b[j].name : b[j].userid,
  15302. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15303. ttype:b[j].ttype,
  15304. time: b[j].time,
  15305. score: b[j].score,
  15306. img: b[j].img,
  15307. likesCount: likesCount,
  15308. commentCount: commentCount,
  15309. isLikes: isLikes,
  15310. commentJson: commentJson,
  15311. likeJson:likeJson
  15312. };
  15313. _worksStudent[i].push(_work);
  15314. _worksStudent2[i].push(_work);
  15315. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15316. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15317. let _work = {
  15318. userid: b[j].userid,
  15319. ateacher: b[j].ateacher,
  15320. wid: b[j].id,
  15321. works: b[j].content,
  15322. sName: b[j].name ? b[j].name : b[j].userid,
  15323. type: 12,
  15324. ttype:b[j].ttype,
  15325. time: b[j].time,
  15326. score: b[j].score,
  15327. img: b[j].img,
  15328. likesCount: likesCount,
  15329. commentCount: commentCount,
  15330. isLikes: isLikes,
  15331. commentJson: commentJson,
  15332. likeJson:likeJson
  15333. };
  15334. _worksStudent[i].push(_work);
  15335. _worksStudent2[i].push(_work);
  15336. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15337. } else if (
  15338. a[i].tool[0] == 57 &&
  15339. b[j].atool == 57 &&
  15340. b[j].type == 12
  15341. ) {
  15342. let _work = {
  15343. userid: b[j].userid,
  15344. ateacher: b[j].ateacher,
  15345. wid: b[j].id,
  15346. works: b[j].content,
  15347. sName: b[j].name ? b[j].name : b[j].userid,
  15348. type: 12,
  15349. ttype:b[j].ttype,
  15350. time: b[j].time,
  15351. score: b[j].score,
  15352. img: b[j].img,
  15353. likesCount: likesCount,
  15354. commentCount: commentCount,
  15355. isLikes: isLikes,
  15356. commentJson: commentJson,
  15357. likeJson:likeJson
  15358. };
  15359. _worksStudent[i].push(_work);
  15360. _worksStudent2[i].push(_work);
  15361. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15362. } else if (
  15363. a[i].tool[0] == 57 &&
  15364. b[j].atool == 57 &&
  15365. b[j].type == 15
  15366. ) {
  15367. let _work = {
  15368. userid: b[j].userid,
  15369. ateacher: b[j].ateacher,
  15370. wid: b[j].id,
  15371. works: b[j].content,
  15372. sName: b[j].name ? b[j].name : b[j].userid,
  15373. type: 15,
  15374. ttype:b[j].ttype,
  15375. time: b[j].time,
  15376. score: b[j].score,
  15377. img: b[j].img,
  15378. likesCount: likesCount,
  15379. commentCount: commentCount,
  15380. isLikes: isLikes,
  15381. commentJson: commentJson,
  15382. likeJson:likeJson
  15383. };
  15384. _worksStudent[i].push(_work);
  15385. _worksStudent2[i].push(_work);
  15386. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15387. }
  15388. }
  15389. }
  15390. if (_worksStudent[i] && _worksStudent[i].length) {
  15391. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15392. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15393. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15394. var scoreA = parseFloat(jscoreA);
  15395. var scoreB = parseFloat(jscoreB);
  15396. if (scoreA == scoreB) {
  15397. return b.likesCount - a.likesCount;
  15398. }
  15399. return scoreB - scoreA;
  15400. });
  15401. if (this.isGroup) {
  15402. for (
  15403. var groupI = 0;
  15404. groupI < this.courseGroup.group.length;
  15405. groupI++
  15406. ) {
  15407. this.courseGroup.group[groupI].works[i] =
  15408. this.courseGroup.group[groupI].works[i].sort(function (
  15409. a,
  15410. b
  15411. ) {
  15412. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15413. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15414. var scoreA = parseFloat(jscoreA);
  15415. var scoreB = parseFloat(jscoreB);
  15416. if (scoreA == scoreB) {
  15417. return b.likesCount - a.likesCount;
  15418. }
  15419. return scoreB - scoreA;
  15420. });
  15421. }
  15422. }
  15423. }
  15424. }
  15425. this.timeWorkList = _worksStudent2;
  15426. for (var i = 0; i < a.length; i++) {
  15427. for (var j = 0; j < b.length; j++) {
  15428. var data = b[j];
  15429. if (i == b[j].tool) {
  15430. if (data.type == 2 || data.type == 8) {
  15431. for (var z = 0; z < this.checkJson[i].length; z++) {
  15432. this.checkJson[i][z].checkPerent = [];
  15433. this.checkJson[i][z].right = Math.round(
  15434. (this.checkJson[i][z].rightPerson.length /
  15435. parseInt(_worksStudent[i].length)) *
  15436. 100
  15437. );
  15438. let aaaa = this.checkJson[i][z];
  15439. for (
  15440. var k = 0;
  15441. k < this.checkJson[i][z].checkCount.length;
  15442. k++
  15443. ) {
  15444. this.checkJson[i][z].checkPerent.push(
  15445. Math.round(
  15446. (this.checkJson[i][z].checkCount[k] /
  15447. parseInt(_worksStudent[i].length)) *
  15448. 100
  15449. )
  15450. );
  15451. }
  15452. }
  15453. } else if (data.type == 9) {
  15454. for (var z = 0; z < this.checkJson[i].length; z++) {
  15455. this.checkJson[i][z].checkPerent = [];
  15456. this.checkJson[i][z].right = Math.round(
  15457. (this.checkJson[i][z].rightPerson.length /
  15458. this.checkJson[i][z].checkPerson.length) *
  15459. 100
  15460. );
  15461. }
  15462. }
  15463. }
  15464. }
  15465. }
  15466. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15467. this.joinGroup(gindex);
  15468. }
  15469. this.worksStudent = _worksStudent;
  15470. this.selectWorksStudent();
  15471. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15472. this.$nextTick(()=>{
  15473. setTimeout(()=>{
  15474. setTimeout(()=>{
  15475. this.panToolHeight('tool-'+ci);
  15476. }, 500)
  15477. }, 0)
  15478. })
  15479. }
  15480. })
  15481. .catch((err) => {
  15482. console.error(err);
  15483. });
  15484. },
  15485. pngToWhiteBg(file) {
  15486. const _file = file;
  15487. let read = new FileReader();
  15488. read.readAsDataURL(file); // 文件转base64
  15489. return new Promise((resolve, reject) => {
  15490. read.onload = (e) => {
  15491. let img = new Image();
  15492. img.src = e.target.result;
  15493. img.onload = async () => {
  15494. // 生成canvas
  15495. let canvas = document.createElement("canvas");
  15496. let context = canvas.getContext("2d");
  15497. // 绘制图片到canvas上
  15498. canvas.width = img.width;
  15499. canvas.height = img.height;
  15500. // 在canvas绘制前填充白色背景
  15501. context.fillStyle = "#fff";
  15502. context.fillRect(0, 0, canvas.width, canvas.height);
  15503. context.drawImage(img, 0, 0);
  15504. let base64 = canvas.toDataURL(file["type"], 1);
  15505. let newFile = this.dataUrlToFile(base64, _file);
  15506. resolve(newFile);
  15507. };
  15508. };
  15509. });
  15510. },
  15511. dataUrlToFile(dataurl, file) {
  15512. let arr = dataurl.split(","),
  15513. mime = arr[0].match(/:(.*?);/)[1],
  15514. bstr = atob(arr[1]),
  15515. n = bstr.length,
  15516. u8arr = new Uint8Array(n);
  15517. while (n--) {
  15518. u8arr[n] = bstr.charCodeAt(n);
  15519. }
  15520. // return new Blob([u8arr], { type: mime });
  15521. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15522. type: mime,
  15523. });
  15524. },
  15525. async beforeUpload1(event, type, i) {
  15526. // this.$message.success('进入上传')
  15527. var file = "";
  15528. if (type == 5) {
  15529. file = event;
  15530. } else {
  15531. file = event.target.files[0];
  15532. }
  15533. var credentials = {
  15534. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15535. secretAccessKey: "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",
  15536. }; //秘钥形式的登录上传
  15537. window.AWS.config.update(credentials);
  15538. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15539. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15540. var _this = this;
  15541. _this.progress = 0;
  15542. _this.proVisible = true;
  15543. _this.isFinishSize = 0;
  15544. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15545. var b = [
  15546. "DOC",
  15547. "DOCX",
  15548. "DOCM",
  15549. "DOTM",
  15550. "DOTX",
  15551. "PPTX",
  15552. "PPSX",
  15553. "PPT",
  15554. "PPS",
  15555. "PPTM",
  15556. "POTM",
  15557. "PPAM",
  15558. "POTX",
  15559. "PPSM",
  15560. ];
  15561. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15562. var photoA = [
  15563. "BMP",
  15564. "GIF",
  15565. "PNG",
  15566. "JPEG",
  15567. "JPEG",
  15568. "JPG",
  15569. "TIF",
  15570. "PCX",
  15571. "TGA",
  15572. "EXIF",
  15573. "FPX",
  15574. "SVG",
  15575. "APNG",
  15576. ];
  15577. // if (
  15578. // b.indexOf(
  15579. // file.name
  15580. // .split(".")
  15581. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15582. // ) != -1
  15583. // ) {
  15584. // if (file.size / 1024 / 1024 > 10) {
  15585. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15586. // return;
  15587. // }
  15588. // } else if (
  15589. // excelA.indexOf(
  15590. // file.name
  15591. // .split(".")
  15592. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15593. // ) != "-1"
  15594. // ) {
  15595. // if (file.size / 1024 / 1024 > 5) {
  15596. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15597. // return;
  15598. // }
  15599. // }
  15600. if (
  15601. photoA.indexOf(
  15602. file.name
  15603. .split(".")
  15604. [file.name.split(".").length - 1].toLocaleUpperCase()
  15605. ) != -1 &&
  15606. type != 4
  15607. ) {
  15608. // const blob = await imageConversion.compress(file, 0.8)
  15609. file = await this.pngToWhiteBg(file);
  15610. const blob = await imageConversion.compressAccurately(file, 256);
  15611. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15612. file = new File([blob], file.name, { type: file.type });
  15613. }
  15614. if (file) {
  15615. var params = {
  15616. Key:
  15617. file.name.split(".")[0] +
  15618. new Date().getTime() +
  15619. "." +
  15620. file.name.split(".")[file.name.split(".").length - 1],
  15621. ContentType: file.type,
  15622. Body: file,
  15623. "Access-Control-Allow-Credentials": "*",
  15624. ACL: "public-read",
  15625. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15626. var options = {
  15627. // partSize: 2048 * 1024 * 1024,
  15628. partSize: 1024 * 1024 * 1024,
  15629. queueSize: 2,
  15630. leavePartsOnError: true,
  15631. };
  15632. bucket
  15633. .upload(params, options)
  15634. .on("httpUploadProgress", function (evt) {
  15635. //这里可以写进度条
  15636. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15637. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15638. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15639. })
  15640. .send(function (err, data) {
  15641. _this.progress = 100;
  15642. _this.isFinishSize = _this.isAllSize;
  15643. setTimeout(() => {
  15644. _this.proVisible = false;
  15645. }, 1000);
  15646. if (err) {
  15647. var a = _this.$refs.upload1.uploadFiles;
  15648. a.splice(a.length - 1, a.length);
  15649. _this.$message.error("上传失败");
  15650. } else {
  15651. // _this.$message.success('上传成功')
  15652. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15653. var c = [
  15654. "AVI",
  15655. "NAVI",
  15656. "MPEG",
  15657. "ASF",
  15658. "MOV",
  15659. "WMV",
  15660. "3GP",
  15661. "RM",
  15662. "RMVB",
  15663. "FLV",
  15664. "F4V",
  15665. "H.264",
  15666. "H.265",
  15667. "REAL VIDEO",
  15668. "MKV",
  15669. "WebM",
  15670. "HDDVD",
  15671. "MP4",
  15672. "MPG",
  15673. "M4V",
  15674. "MGV",
  15675. "OGV",
  15676. "QTM",
  15677. "STR",
  15678. "AMC",
  15679. "DVX",
  15680. "EVO",
  15681. "DAT",
  15682. "OGG",
  15683. "OGM",
  15684. ];
  15685. if (type == 1) {
  15686. _this.studyJuri[0].cover.push({
  15687. name: file.name,
  15688. url: data.Location,
  15689. uid: file.uid,
  15690. });
  15691. if (
  15692. c.indexOf(
  15693. _this.studyJuri[0].cover[0].url
  15694. .split(".")
  15695. [
  15696. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15697. ].toLocaleUpperCase()
  15698. ) != -1
  15699. ) {
  15700. _this.fileType = 2;
  15701. } else if (
  15702. b.indexOf(
  15703. _this.studyJuri[0].cover[0].url
  15704. .split(".")
  15705. [
  15706. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15707. ].toLocaleUpperCase()
  15708. ) != -1
  15709. ) {
  15710. _this.fileType = 1;
  15711. } else if (
  15712. photoA.indexOf(
  15713. _this.studyJuri[0].cover[0].url
  15714. .split(".")
  15715. [
  15716. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15717. ].toLocaleUpperCase()
  15718. ) != -1
  15719. ) {
  15720. _this.fileType = 0;
  15721. } else {
  15722. _this.fileType = 3;
  15723. }
  15724. _this.imgChange(null, null, type);
  15725. } else if (type == 2) {
  15726. _this.upToolImg = data.Location;
  15727. _this.imgChange(null, null, type);
  15728. _this.addCourseWorks(i);
  15729. } else if (type == 4) {
  15730. _this.addPz("3", data.Location);
  15731. } else if (type == 5) {
  15732. _this.addImgDrawImG(data.Location);
  15733. } else if (type == 6) {
  15734. var _ftype = 1;
  15735. if (
  15736. c.indexOf(
  15737. data.Location.split(".")[
  15738. data.Location.split(".").length - 1
  15739. ].toLocaleUpperCase()
  15740. ) != -1
  15741. ) {
  15742. _ftype = 5;
  15743. } else if (
  15744. b.indexOf(
  15745. data.Location.split(".")[
  15746. data.Location.split(".").length - 1
  15747. ].toLocaleUpperCase()
  15748. ) != -1
  15749. ) {
  15750. _ftype = 4;
  15751. } else {
  15752. _ftype = 1;
  15753. }
  15754. _this.plworkFile.push({
  15755. name: file.name,
  15756. url: data.Location,
  15757. uid: file.uid,
  15758. fileType: _ftype,
  15759. username:
  15760. _this.plworkFile.length > 10
  15761. ? _this.plworkFile.length + 1
  15762. : "0" + (_this.plworkFile.length + 1),
  15763. });
  15764. } else if (type == 7) {
  15765. _this.addCourseWorksGong(i, data.Location, 32);
  15766. } else if (type == 8) {
  15767. _this.addCourseWorksGong(i, data.Location, 57);
  15768. }
  15769. _this.imgChange(null, null, type);
  15770. console.log(data.Location);
  15771. // _this.$message.success('上传成功'+data.Location)
  15772. }
  15773. });
  15774. }
  15775. },
  15776. async beforeUpload3(event, type, i) {
  15777. // this.$message.success('进入上传')
  15778. let file = "";
  15779. let cfindex2 = 0;
  15780. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15781. file = event.target.files[cfindex];
  15782. var credentials = {
  15783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15784. secretAccessKey: "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",
  15785. }; //秘钥形式的登录上传
  15786. window.AWS.config.update(credentials);
  15787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15789. var _this = this;
  15790. // _this.progress = 0;
  15791. _this.proVisible2 = true;
  15792. var b = [
  15793. "DOC",
  15794. "DOCX",
  15795. "DOCM",
  15796. "DOTM",
  15797. "DOTX",
  15798. "PPTX",
  15799. "PPSX",
  15800. "PPT",
  15801. "PPS",
  15802. "PPTM",
  15803. "POTM",
  15804. "PPAM",
  15805. "POTX",
  15806. "PPSM",
  15807. ];
  15808. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15809. var photoA = [
  15810. "BMP",
  15811. "GIF",
  15812. "PNG",
  15813. "JPEG",
  15814. "JPG",
  15815. "TIF",
  15816. "PCX",
  15817. "TGA",
  15818. "EXIF",
  15819. "FPX",
  15820. "SVG",
  15821. "APNG",
  15822. ];
  15823. if (
  15824. photoA.indexOf(
  15825. file.name
  15826. .split(".")
  15827. [file.name.split(".").length - 1].toLocaleUpperCase()
  15828. ) != -1 &&
  15829. type != 4
  15830. ) {
  15831. // const blob = await imageConversion.compress(file, 0.8)
  15832. file = await this.pngToWhiteBg(file);
  15833. const blob = await imageConversion.compressAccurately(file, 256);
  15834. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15835. file = new File([blob], file.name, { type: file.type });
  15836. }
  15837. if (file) {
  15838. var params = {
  15839. Key:
  15840. file.name.split(".")[0] +
  15841. new Date().getTime() +
  15842. "." +
  15843. file.name.split(".")[file.name.split(".").length - 1],
  15844. ContentType: file.type,
  15845. Body: file,
  15846. "Access-Control-Allow-Credentials": "*",
  15847. ACL: "public-read",
  15848. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15849. var options = {
  15850. // partSize: 2048 * 1024 * 1024,
  15851. partSize: 1024 * 1024 * 1024,
  15852. queueSize: 2,
  15853. leavePartsOnError: true,
  15854. };
  15855. bucket
  15856. .upload(params, options)
  15857. .on("httpUploadProgress", function (evt) {
  15858. //这里可以写进度条
  15859. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15860. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15861. })
  15862. .send(function (err, data) {
  15863. // _this.progress = 100;
  15864. cfindex2++;
  15865. setTimeout(() => {
  15866. if (
  15867. cfindex2 == event.target.files.length - 1 ||
  15868. cfindex2 > event.target.files.length - 1
  15869. ) {
  15870. _this.proVisible2 = false;
  15871. }
  15872. }, 1000);
  15873. if (err) {
  15874. var a = _this.$refs.upload1.uploadFiles;
  15875. a.splice(a.length - 1, a.length);
  15876. _this.$message.error("上传失败");
  15877. } else {
  15878. // _this.$message.success('上传成功')
  15879. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15880. var c = [
  15881. "AVI",
  15882. "NAVI",
  15883. "MPEG",
  15884. "ASF",
  15885. "MOV",
  15886. "WMV",
  15887. "3GP",
  15888. "RM",
  15889. "RMVB",
  15890. "FLV",
  15891. "F4V",
  15892. "H.264",
  15893. "H.265",
  15894. "REAL VIDEO",
  15895. "MKV",
  15896. "WebM",
  15897. "HDDVD",
  15898. "MP4",
  15899. "MPG",
  15900. "M4V",
  15901. "MGV",
  15902. "OGV",
  15903. "QTM",
  15904. "STR",
  15905. "AMC",
  15906. "DVX",
  15907. "EVO",
  15908. "DAT",
  15909. "OGG",
  15910. "OGM",
  15911. ];
  15912. if (type == 1) {
  15913. _this.studyJuri[0].cover.push({
  15914. name: file.name,
  15915. url: data.Location,
  15916. uid: file.uid,
  15917. });
  15918. if (
  15919. c.indexOf(
  15920. _this.studyJuri[0].cover[0].url
  15921. .split(".")
  15922. [
  15923. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15924. ].toLocaleUpperCase()
  15925. ) != -1
  15926. ) {
  15927. _this.fileType = 2;
  15928. } else if (
  15929. b.indexOf(
  15930. _this.studyJuri[0].cover[0].url
  15931. .split(".")
  15932. [
  15933. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15934. ].toLocaleUpperCase()
  15935. ) != -1
  15936. ) {
  15937. _this.fileType = 1;
  15938. } else {
  15939. _this.fileType = 0;
  15940. }
  15941. _this.imgChange(null, null, type);
  15942. } else if (type == 2) {
  15943. _this.upToolImg = data.Location;
  15944. _this.imgChange(null, null, type);
  15945. _this.addCourseWorks(i);
  15946. } else if (type == 4) {
  15947. _this.addPz("3", data.Location);
  15948. } else if (type == 5) {
  15949. _this.addImgDrawImG(data.Location);
  15950. } else if (type == 6) {
  15951. var _ftype = 1;
  15952. if (
  15953. c.indexOf(
  15954. data.Location.split(".")[
  15955. data.Location.split(".").length - 1
  15956. ].toLocaleUpperCase()
  15957. ) != -1
  15958. ) {
  15959. _ftype = 5;
  15960. } else if (
  15961. b.indexOf(
  15962. data.Location.split(".")[
  15963. data.Location.split(".").length - 1
  15964. ].toLocaleUpperCase()
  15965. ) != -1
  15966. ) {
  15967. _ftype = 4;
  15968. } else {
  15969. _ftype = 1;
  15970. }
  15971. _this.plworkFile.push({
  15972. name: file.name,
  15973. url: data.Location,
  15974. uid: file.uid,
  15975. fileType: _ftype,
  15976. username:
  15977. _this.plworkFile.length + 1 > 9
  15978. ? _this.plworkFile.length + 1
  15979. : "0" + (_this.plworkFile.length + 1),
  15980. });
  15981. }
  15982. _this.imgChange(null, null, type);
  15983. console.log(data.Location);
  15984. // _this.$message.success('上传成功'+data.Location)
  15985. }
  15986. });
  15987. }
  15988. }
  15989. },
  15990. beforeUpload2(event, type) {
  15991. var file = event.target.files[0];
  15992. var credentials = {
  15993. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15994. secretAccessKey: "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",
  15995. }; //秘钥形式的登录上传
  15996. window.AWS.config.update(credentials);
  15997. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15998. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15999. var _this = this;
  16000. _this.progress = 0;
  16001. _this.proVisible = true;
  16002. if (file) {
  16003. var params = {
  16004. Key:
  16005. file.name.split(".")[0] +
  16006. new Date().getTime() +
  16007. "." +
  16008. file.name.split(".")[file.name.split(".").length - 1],
  16009. ContentType: file.type,
  16010. Body: file,
  16011. "Access-Control-Allow-Credentials": "*",
  16012. ACL: "public-read",
  16013. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16014. var options = {
  16015. partSize: 2048 * 1024 * 1024,
  16016. queueSize: 2,
  16017. leavePartsOnError: true,
  16018. };
  16019. bucket
  16020. .upload(params, options)
  16021. .on("httpUploadProgress", function (evt) {
  16022. //这里可以写进度条
  16023. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16024. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16025. })
  16026. .send(function (err, data) {
  16027. _this.progress = 100;
  16028. setTimeout(() => {
  16029. _this.proVisible = false;
  16030. }, 1000);
  16031. if (err) {
  16032. var a = _this.$refs.upload1.uploadFiles;
  16033. a.splice(a.length - 1, a.length);
  16034. _this.$message.error("上传失败");
  16035. } else {
  16036. if (type == 2) {
  16037. _this.studyJuri[0].upVedio.push({
  16038. name: file.name,
  16039. url: data.Location,
  16040. uid: file.uid,
  16041. });
  16042. _this.imgChange(null, null, type);
  16043. } else if (type == 3) {
  16044. _this.studyJuri[0].upFile.push({
  16045. name: file.name,
  16046. url: data.Location,
  16047. uid: file.uid,
  16048. });
  16049. _this.imgChange(null, null, type);
  16050. }
  16051. console.log(data.Location);
  16052. }
  16053. });
  16054. }
  16055. },
  16056. allScrell() {
  16057. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16058. },
  16059. nextOrpreSteps(t) {
  16060. if (this.IsFollow && this.tType == 2) {
  16061. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16062. return;
  16063. }
  16064. var b = this.chapInfoList.length - 1;
  16065. if (t == 0) {
  16066. if (this.courseType == 0) {
  16067. if (this.taskCount == 0) {
  16068. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16069. if (this.IsLookOpen) {
  16070. if (
  16071. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16072. ) {
  16073. if (
  16074. this.courseDetail.userid != this.userid &&
  16075. (!this.courseDetail.course_teacher ||
  16076. (this.courseDetail.course_teacher &&
  16077. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16078. ) {
  16079. this.$message.error("任务未解锁");
  16080. } else {
  16081. this.$message.error("上一任务未解锁");
  16082. }
  16083. return;
  16084. }
  16085. }
  16086. this.navList[this.courseType].isOpen = false;
  16087. this.courseType = b;
  16088. this.taskCount =
  16089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16090. .length - 1;
  16091. this.navList[this.courseType].isOpen = true;
  16092. } else {
  16093. this.taskCount--;
  16094. }
  16095. } else {
  16096. if (this.taskCount == 0) {
  16097. this.navList[this.courseType].isOpen = false;
  16098. this.courseType--;
  16099. this.taskCount =
  16100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16101. .length - 1;
  16102. this.navList[this.courseType].isOpen = true;
  16103. } else {
  16104. this.taskCount--;
  16105. }
  16106. }
  16107. } else {
  16108. if (this.courseType == b) {
  16109. if (
  16110. this.taskCount ==
  16111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16112. 1
  16113. ) {
  16114. this.navList[this.courseType].isOpen = false;
  16115. this.courseType = 0;
  16116. this.taskCount = 0;
  16117. this.navList[this.courseType].isOpen = true;
  16118. } else {
  16119. var bbb = parseInt(this.taskCount) + 1;
  16120. if (
  16121. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16122. .isLook &&
  16123. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16124. (this.courseDetail.course_teacher &&
  16125. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16126. this.IsLookOpen
  16127. ) {
  16128. this.$message.error("任务未解锁");
  16129. return;
  16130. }
  16131. this.taskCount++;
  16132. if (this.IsLookOpen) {
  16133. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16134. this.taskCount
  16135. ].isLook = true;
  16136. this.addCourseState(3);
  16137. }
  16138. }
  16139. } else {
  16140. if (
  16141. this.taskCount ==
  16142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16143. 1
  16144. ) {
  16145. var bbb = parseInt(this.courseType) + 1;
  16146. if (
  16147. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16148. this.courseDetail.userid != this.userid &&
  16149. (!this.courseDetail.course_teacher ||
  16150. (this.courseDetail.course_teacher &&
  16151. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16152. this.IsLookOpen
  16153. ) {
  16154. this.$message.error("任务未解锁");
  16155. return;
  16156. }
  16157. this.navList[this.courseType].isOpen = false;
  16158. this.courseType++;
  16159. this.taskCount = 0;
  16160. this.navList[this.courseType].isOpen = true;
  16161. } else {
  16162. var bbb = parseInt(this.taskCount) + 1;
  16163. if (
  16164. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16165. .isLook &&
  16166. this.courseDetail.userid != this.userid &&
  16167. (!this.courseDetail.course_teacher ||
  16168. (this.courseDetail.course_teacher &&
  16169. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16170. this.IsLookOpen
  16171. ) {
  16172. this.$message.error("任务未解锁");
  16173. return;
  16174. }
  16175. this.taskCount++;
  16176. }
  16177. if (this.IsLookOpen) {
  16178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16179. this.taskCount
  16180. ].isLook = true;
  16181. this.addCourseState(3);
  16182. }
  16183. }
  16184. // if (
  16185. // this.taskCount ==
  16186. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16187. // ) {
  16188. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16189. // } else {
  16190. // this.taskCount++;
  16191. // }
  16192. }
  16193. document.scrollingElement.scrollTop = 0;
  16194. this.showType = 7;
  16195. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16196. // if (this.vedio[this.taskCount].length > 0) {
  16197. // var a =
  16198. // document.getElementsByClassName("box_course")[this.taskCount]
  16199. // .offsetHeight;
  16200. // document.getElementsByClassName("vedioList")[
  16201. // this.taskCount
  16202. // ].style.height = a + "px";
  16203. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16204. // a - 40 + "px";
  16205. // }
  16206. this.isNoHomeWork = false;
  16207. (this.studyJuri = [
  16208. {
  16209. content: "",
  16210. cover: [],
  16211. upVedio: [],
  16212. upFile: [],
  16213. },
  16214. ]),
  16215. (this.radio = []);
  16216. this.isClickNav = "";
  16217. this.selectPz();
  16218. this.getHomeWork();
  16219. this.getCourseDetail(2);
  16220. this.$forceUpdate();
  16221. },
  16222. openTask(s, n, i,ctype) {
  16223. console.log(s, n, i,ctype)
  16224. if (this.IsFollow && this.tType == 2) {
  16225. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16226. return;
  16227. }
  16228. if (this.IsLookOpen) {
  16229. if (
  16230. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16231. this.courseDetail.userid != this.userid &&
  16232. (!this.courseDetail.course_teacher ||
  16233. (this.courseDetail.course_teacher &&
  16234. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16235. ) {
  16236. this.$message.error("任务未解锁");
  16237. return;
  16238. }
  16239. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16240. if (
  16241. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16242. .isLook
  16243. ) {
  16244. this.$message.error("上一任务未解锁");
  16245. return;
  16246. }
  16247. } else if (s > this.courseType) {
  16248. if (n > 0) {
  16249. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16250. this.$message.error("上一任务未解锁");
  16251. return;
  16252. }
  16253. } else {
  16254. if (
  16255. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16256. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16257. ].isLook
  16258. ) {
  16259. this.$message.error("上一任务未解锁");
  16260. return;
  16261. }
  16262. }
  16263. }
  16264. }
  16265. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16266. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16267. return;
  16268. }
  16269. let flag = this.courseType==s;
  16270. this.courseType = s;
  16271. this.navId = i;
  16272. this.taskCount = n;
  16273. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,navId:this.navId}})
  16274. if(ctype == 2){
  16275. this.navList[s].task[n].isOpen = true
  16276. }else{
  16277. this.navList[this.courseType].task[this.taskCount].isOpen =
  16278. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16279. }
  16280. if (this.IsLookOpen) {
  16281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16282. this.taskCount
  16283. ].isLook = true;
  16284. this.addCourseState(3);
  16285. }
  16286. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16287. this.isCloseList[ci].isClose = 0;
  16288. this.isCloseList[ci].isCloseBoolean = false;
  16289. this.$nextTick(()=>{
  16290. setTimeout(()=>{
  16291. setTimeout(()=>{
  16292. this.panToolHeight('tool-'+ci);
  16293. }, 0)
  16294. }, 0)
  16295. })
  16296. }
  16297. this.showType = 0;
  16298. this.isNoHomeWork = false;
  16299. (this.studyJuri = [
  16300. {
  16301. content: "",
  16302. cover: [],
  16303. upVedio: [],
  16304. upFile: [],
  16305. },
  16306. ]),
  16307. (this.radio = []);
  16308. document.scrollingElement.scrollTop = 0;
  16309. // setTimeout(() => {
  16310. // let a = document.getElementById(i);
  16311. // if (a.offsetTop - 110 == 0) {
  16312. // window.scrollTo(0, 0);
  16313. // } else {
  16314. // window.scrollTo(0, a.offsetTop);
  16315. // }
  16316. // }, 0);
  16317. for (var z = 0; z < this.navList.length; z++) {
  16318. for (var q = 0; q < this.navList[z].task.length; q++) {
  16319. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16320. this.navList[z].task[q].tool[w].isTool = false;
  16321. }
  16322. }
  16323. }
  16324. this.selectPz();
  16325. this.getHomeWork();
  16326. this.getCourseDetail(2);
  16327. if(flag){
  16328. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16329. }else{
  16330. 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>`)
  16331. }
  16332. },
  16333. get(i) {
  16334. if (this.IsFollow && this.tType == 2) {
  16335. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16336. return;
  16337. }
  16338. // for(var k=0;k<this.navList.length;k++){
  16339. // this.navList[k].isOpen = false;
  16340. // }
  16341. // this.navList[i].isOpen = true;
  16342. let a = this.navList[i].isOpen
  16343. this.navList[i].isOpen = !this.navList[i].isOpen;
  16344. this.$forceUpdate()
  16345. if (this.navList[i].isOpen) {
  16346. this.openTask(i, 0, (i + "-0"),2);
  16347. }
  16348. },
  16349. addQuestion() {
  16350. this.answerList.push({
  16351. answerTitle: this.answerQ,
  16352. answer: this.questionAnswer,
  16353. });
  16354. let params = [
  16355. {
  16356. uid: this.userid,
  16357. cid: this.id,
  16358. stage: this.courseType,
  16359. task: this.taskCount,
  16360. tool: this.toolindex,
  16361. content: JSON.stringify(this.answerList),
  16362. type: 3,
  16363. },
  16364. ];
  16365. this.ajax
  16366. .post(this.$store.state.api + "addCourseWorks", params)
  16367. .then((res) => {
  16368. this.$message({
  16369. message: "提交成功",
  16370. type: "success",
  16371. });
  16372. this.answerList = [];
  16373. this.answerDialogVisible = false;
  16374. this.selectStudent();
  16375. this.selectSWorks();
  16376. this.selectSLook();
  16377. })
  16378. .catch((err) => {
  16379. this.$message.error("提交失败");
  16380. console.error(err);
  16381. });
  16382. },
  16383. addQuestionTeacher() {
  16384. this.answerList.push({
  16385. answerTitle: this.answerQ,
  16386. answer: this.questionAnswer,
  16387. });
  16388. let params = [
  16389. {
  16390. uid: this.sStudent.userid,
  16391. cid: this.id,
  16392. stage: this.courseType,
  16393. task: this.taskCount,
  16394. tool: this.toolindex,
  16395. content: JSON.stringify(this.answerList),
  16396. type: 3,
  16397. ateacher: this.userid,
  16398. },
  16399. ];
  16400. this.ajax
  16401. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16402. .then((res) => {
  16403. this.$message({
  16404. message: "提交成功",
  16405. type: "success",
  16406. });
  16407. this.answerList = [];
  16408. this.questionAnswer = "";
  16409. this.answerDialogVisibleTeacher = false;
  16410. this.selectStudent();
  16411. this.selectSWorks();
  16412. this.selectSLook();
  16413. })
  16414. .catch((err) => {
  16415. this.$message.error("提交失败");
  16416. console.error(err);
  16417. });
  16418. },
  16419. refreshCourse() {
  16420. // window.location.reload();
  16421. this.navList = [];
  16422. this.getCourseDetail(1);
  16423. },
  16424. getCourseDetail(type, gindex) {
  16425. let loading;
  16426. if (type != 2) {
  16427. loading = this.$loading.service({
  16428. background: "rgba(255, 255, 255, 0.7)",
  16429. target: document.querySelector(".student_table"),
  16430. });
  16431. }
  16432. this.downLoading = false
  16433. // this.navList[0].isOpen = false;
  16434. // this.navList[this.courseType].isOpen = true;
  16435. // this.courseType = this.courseTypeLine;
  16436. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16437. let params = {
  16438. courseId: this.id,
  16439. };
  16440. this.ajax
  16441. .get(this.$store.state.api + "selectCourseDetail3", params)
  16442. .then((res) => {
  16443. if (type != 2) {
  16444. loading.close();
  16445. if (
  16446. this.courseType >
  16447. JSON.parse(res.data[0][0].chapters).length - 1
  16448. ) {
  16449. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16450. }
  16451. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16452. .chapterInfo[0].taskJson;
  16453. var b = [
  16454. "AVI",
  16455. "NAVI",
  16456. "MPEG",
  16457. "ASF",
  16458. "MOV",
  16459. "WMV",
  16460. "3GP",
  16461. "RM",
  16462. "RMVB",
  16463. "FLV",
  16464. "F4V",
  16465. "H.264",
  16466. "H.265",
  16467. "REAL VIDEO",
  16468. "MKV",
  16469. "WebM",
  16470. "HDDVD",
  16471. "MP4",
  16472. "MPG",
  16473. "M4V",
  16474. "MGV",
  16475. "OGV",
  16476. "QTM",
  16477. "STR",
  16478. "AMC",
  16479. "DVX",
  16480. "EVO",
  16481. "DAT",
  16482. "OGG",
  16483. "OGM",
  16484. "MP3",
  16485. ];
  16486. let _chapterData = [];
  16487. for (var i = 0; i < a.length; i++) {
  16488. var c = a[i].chapterData;
  16489. this.vedio[i] = [];
  16490. this.textList[i] = [];
  16491. this.lineList[i] = [];
  16492. this.chapToolList[i] = [];
  16493. this.file[i] = [];
  16494. this.fileC[i] = [];
  16495. _chapterData[i] = c.filter((el) => {
  16496. return el.type != 12;
  16497. });
  16498. this.fileC[i] = c.filter((el) => {
  16499. return el.type == 12;
  16500. });
  16501. // else if (c[j].type == 12) {
  16502. // this.fileC[i].push(c[j]);
  16503. // }
  16504. for (var j = 0; j < c.length; j++) {
  16505. if (c[j].type == 7) {
  16506. this.chapToolList[i].push(c[j]);
  16507. } else if (c[j].type == 8 || c[j].type == 14) {
  16508. this.lineList[i].push(c[j]);
  16509. } else if (c[j].type == 6) {
  16510. this.textList[i].push(c[j]);
  16511. } else {
  16512. if (
  16513. b.indexOf(
  16514. c[j].url
  16515. .split(".")
  16516. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16517. ) != -1
  16518. ) {
  16519. this.vedio[i].push(c[j]);
  16520. } else {
  16521. this.file[i].push(c[j]);
  16522. }
  16523. }
  16524. }
  16525. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16526. d.sources[0].src =
  16527. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16528. this.playerO[i] = d;
  16529. }
  16530. this.courseDetail = res.data[0][0];
  16531. this.tcid = this.arrayToArray(
  16532. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16533. this.tcid2 ? this.tcid2.split(",") : []
  16534. ).join(",");
  16535. this.evalua = res.data[0][0].evaId;
  16536. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16537. this.courseType
  16538. ];
  16539. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16540. if (this.tcid && res.data[1].length) {
  16541. let _inviteA = [];
  16542. for (var ik = 0; ik < res.data[1].length; ik++) {
  16543. _inviteA.push({
  16544. cid: res.data[1][ik].classid,
  16545. ic: res.data[1][ik].code,
  16546. });
  16547. }
  16548. for (var ik = 0; ik < _inviteA.length; ik++) {
  16549. if (
  16550. this.arrayToArray(
  16551. _inviteA[ik].cid.split(","),
  16552. this.tcid.split(",")
  16553. ).length
  16554. ) {
  16555. this.inviteCode = _inviteA[ik].ic;
  16556. break;
  16557. }
  16558. }
  16559. }
  16560. for (var l = 0; l < this.chapInfoList.length; l++) {
  16561. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16562. for (var m = 0; m < w.length; m++) {
  16563. w[m].id = l + "-" + m;
  16564. }
  16565. }
  16566. if (
  16567. _chapterData[this.taskCount].length &&
  16568. _chapterData[this.taskCount][0].type == 2
  16569. ) {
  16570. this.showType = 0;
  16571. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16572. } else {
  16573. if (_chapterData[this.taskCount].length > 0) {
  16574. let _url = _chapterData[this.taskCount][0].url;
  16575. if (
  16576. _chapterData[this.taskCount][0].type == 8 ||
  16577. _chapterData[this.taskCount][0].type == 14
  16578. ) {
  16579. this.showType = 2;
  16580. if (
  16581. _url.indexOf("https://") == -1 &&
  16582. _url.indexOf("http://") == -1
  16583. ) {
  16584. _url = "https://" + _url;
  16585. }
  16586. this.pptImgUrl1 = _url;
  16587. } else if (_chapterData[this.taskCount][0].type == 3) {
  16588. if (
  16589. _url
  16590. .split(".")
  16591. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16592. ) {
  16593. this.showType = 3;
  16594. this.pptImgUrl1 = _url;
  16595. } else if (
  16596. this.isAssetTypeAnImage(
  16597. _url
  16598. .split(".")
  16599. [_url.split(".").length - 1].toLocaleLowerCase()
  16600. )
  16601. ) {
  16602. this.showType = 4;
  16603. this.pptImgUrl1 = _url;
  16604. } else {
  16605. this.showType = 2;
  16606. this.pptImgUrl1 =
  16607. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16608. encodeURIComponent(_url);
  16609. }
  16610. } else if (_chapterData[this.taskCount][0].type == 13) {
  16611. this.showType = 4;
  16612. this.pptImgUrl1 = _url;
  16613. } else if (_chapterData[this.taskCount][0].type == 6) {
  16614. this.showType = 1;
  16615. this.text = this.textList[this.taskCount][0];
  16616. }
  16617. }
  16618. }
  16619. this.isClickNav = 0;
  16620. if (
  16621. !_chapterData[this.taskCount].length ||
  16622. _chapterData[this.taskCount][0].type == 12
  16623. ) {
  16624. this.isClickNav = "";
  16625. this.showType = "";
  16626. }
  16627. this.vChapterData = _chapterData;
  16628. } else {
  16629. this.showType = 0;
  16630. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16631. .chapterInfo[0].taskJson;
  16632. var b = [
  16633. "AVI",
  16634. "NAVI",
  16635. "MPEG",
  16636. "ASF",
  16637. "MOV",
  16638. "WMV",
  16639. "3GP",
  16640. "RM",
  16641. "RMVB",
  16642. "FLV",
  16643. "F4V",
  16644. "H.264",
  16645. "H.265",
  16646. "REAL VIDEO",
  16647. "MKV",
  16648. "WebM",
  16649. "HDDVD",
  16650. "MP4",
  16651. "MPG",
  16652. "M4V",
  16653. "MGV",
  16654. "OGV",
  16655. "QTM",
  16656. "STR",
  16657. "AMC",
  16658. "DVX",
  16659. "EVO",
  16660. "DAT",
  16661. "OGG",
  16662. "OGM",
  16663. "MP3",
  16664. ];
  16665. let _chapterData = [];
  16666. for (var i = 0; i < a.length; i++) {
  16667. var c = a[i].chapterData;
  16668. this.vedio[i] = [];
  16669. this.textList[i] = [];
  16670. this.lineList[i] = [];
  16671. this.chapToolList[i] = [];
  16672. this.file[i] = [];
  16673. this.fileC[i] = [];
  16674. _chapterData[i] = c.filter((el) => {
  16675. return el.type != 12;
  16676. });
  16677. this.fileC[i] = c.filter((el) => {
  16678. return el.type == 12;
  16679. });
  16680. for (var j = 0; j < c.length; j++) {
  16681. if (c[j].type == 7) {
  16682. this.chapToolList[i].push(c[j]);
  16683. } else if (c[j].type == 8 || c[j].type == 14) {
  16684. this.lineList[i].push(c[j]);
  16685. } else if (c[j].type == 6) {
  16686. this.textList[i].push(c[j]);
  16687. } else {
  16688. if (
  16689. b.indexOf(
  16690. c[j].url
  16691. .split(".")
  16692. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16693. ) != -1
  16694. ) {
  16695. this.vedio[i].push(c[j]);
  16696. } else {
  16697. this.file[i].push(c[j]);
  16698. }
  16699. }
  16700. }
  16701. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16702. d.sources[0].src =
  16703. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16704. this.playerO[i] = d;
  16705. }
  16706. if (
  16707. _chapterData[this.taskCount].length &&
  16708. _chapterData[this.taskCount][0].type == 2
  16709. ) {
  16710. this.showType = 0;
  16711. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16712. } else {
  16713. if (_chapterData[this.taskCount].length > 0) {
  16714. let _url = _chapterData[this.taskCount][0].url;
  16715. if (
  16716. _chapterData[this.taskCount][0].type == 8 ||
  16717. _chapterData[this.taskCount][0].type == 14
  16718. ) {
  16719. this.showType = 2;
  16720. if (
  16721. _url.indexOf("https://") == -1 &&
  16722. _url.indexOf("http://") == -1
  16723. ) {
  16724. _url = "https://" + _url;
  16725. }
  16726. this.pptImgUrl1 = _url;
  16727. } else if (_chapterData[this.taskCount][0].type == 3) {
  16728. if (
  16729. _url
  16730. .split(".")
  16731. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16732. ) {
  16733. this.showType = 3;
  16734. this.pptImgUrl1 = _url;
  16735. } else if (
  16736. this.isAssetTypeAnImage(
  16737. _url
  16738. .split(".")
  16739. [_url.split(".").length - 1].toLocaleLowerCase()
  16740. )
  16741. ) {
  16742. this.showType = 4;
  16743. this.pptImgUrl1 = _url;
  16744. } else {
  16745. this.showType = 2;
  16746. this.pptImgUrl1 =
  16747. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16748. encodeURIComponent(_url);
  16749. }
  16750. } else if (_chapterData[this.taskCount][0].type == 13) {
  16751. this.showType = 4;
  16752. this.pptImgUrl1 = _url;
  16753. } else if (_chapterData[this.taskCount][0].type == 6) {
  16754. this.showType = 1;
  16755. this.text = this.textList[this.taskCount][0];
  16756. }
  16757. }
  16758. }
  16759. this.isClickNav = 0;
  16760. if (
  16761. !_chapterData[this.taskCount].length ||
  16762. _chapterData[this.taskCount][0].type == 12
  16763. ) {
  16764. this.isClickNav = "";
  16765. this.showType = "";
  16766. }
  16767. this.vChapterData = _chapterData;
  16768. this.$forceUpdate();
  16769. }
  16770. // else {
  16771. // this.courseDetail = res.data[0][0];
  16772. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16773. // }
  16774. let _this = this;
  16775. if (_this.timer) {
  16776. clearInterval(_this.timer);
  16777. _this.timer = null;
  16778. }
  16779. if (_this.tcid) {
  16780. _this.getCourseGroup(gindex);
  16781. } else {
  16782. _this.selectSWorks(gindex);
  16783. }
  16784. _this.selectStudent();
  16785. _this.selectSLook();
  16786. _this.getPick();
  16787. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16788. _this.setCTask();
  16789. }
  16790. if (_this.dialogVisibleGroup) {
  16791. _this.groupJson =
  16792. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16793. _this.taskCount
  16794. ].toolChoose[_this.toolindex].groupJson;
  16795. }
  16796. _this.$nextTick(() => {
  16797. setTimeout(() => {
  16798. _this.checkEva();
  16799. }, 1000);
  16800. });
  16801. _this.timer = setInterval(function () {
  16802. // _this.getCourseDetail(2);
  16803. if (_this.tcid) {
  16804. _this.getCourseGroup(gindex);
  16805. } else {
  16806. _this.selectSWorks(gindex);
  16807. }
  16808. _this.selectStudent();
  16809. _this.selectSLook();
  16810. _this.getPick();
  16811. _this.getSplitScreenData();
  16812. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16813. _this.setCTask();
  16814. }
  16815. if (_this.dialogVisibleGroup) {
  16816. _this.groupJson =
  16817. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16818. _this.taskCount
  16819. ].toolChoose[_this.toolindex].groupJson;
  16820. }
  16821. if (_this.tType == 4 || _this.ispzType == 4) {
  16822. _this.selectPz();
  16823. }
  16824. }, 5000);
  16825. _this.$nextTick(function () {
  16826. setTimeout(() => {
  16827. // var a =
  16828. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16829. // document.getElementsByClassName("vedioList")[0].style.height =
  16830. // a + "px";
  16831. // document.getElementsByClassName("navBox")[0].style.height =
  16832. // a - 40 + "px";
  16833. // if (_this.vedio[_this.taskCount].length > 0) {
  16834. // _this.vedioTime = [];
  16835. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16836. // _this.vedioTime[i] = document.getElementsByClassName(
  16837. // "vjs-duration-display"
  16838. // )[i].textContent;
  16839. // }
  16840. // }
  16841. }, 1000);
  16842. });
  16843. })
  16844. .catch((err) => {
  16845. loading.close();
  16846. console.error(err);
  16847. });
  16848. },
  16849. getCourseGroup(gindex) {
  16850. let params = {
  16851. cid: this.id,
  16852. classid: this.tcid ? this.tcid : "1",
  16853. };
  16854. this.ajax
  16855. .get(this.$store.state.api + "getCourseGroup", params)
  16856. .then((res) => {
  16857. if (res.data && res.data[0].length) {
  16858. if (!this.isGroup) {
  16859. let courseGroup = JSON.parse(res.data[0][0].group);
  16860. courseGroup.group = courseGroup.group.filter((el) => {
  16861. el.works = [];
  16862. return el;
  16863. });
  16864. if (courseGroup.isopen == 2) {
  16865. this.isGroup = false;
  16866. this.selectSWorks(gindex);
  16867. return;
  16868. }
  16869. this.courseGroup = courseGroup;
  16870. let groupPerson = res.data[1];
  16871. let group = JSON.parse(res.data[0][0].group).group;
  16872. let courseGroupStudent = {};
  16873. let courseGroupStudentUid = {};
  16874. for (var i = 0; i < group.length; i++) {
  16875. courseGroupStudent[group[i].id] = [];
  16876. courseGroupStudentUid[group[i].id] = [];
  16877. for (var j = 0; j < groupPerson.length; j++) {
  16878. if (groupPerson[j].groupCid == group[i].id) {
  16879. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16880. courseGroupStudentUid[group[i].id].push(
  16881. groupPerson[j].userid
  16882. );
  16883. }
  16884. }
  16885. }
  16886. this.courseGroupStudent = courseGroupStudent;
  16887. this.courseGroupStudentUid = courseGroupStudentUid;
  16888. }
  16889. if (this.courseGroup.isopen == 2) {
  16890. this.isGroup = false;
  16891. } else {
  16892. this.isGroup = true;
  16893. }
  16894. this.selectSWorks(gindex);
  16895. } else {
  16896. this.selectSWorks(gindex);
  16897. this.isGroup = false;
  16898. }
  16899. })
  16900. .catch((err) => {
  16901. // this.$message.error("网络不佳");
  16902. console.error(err);
  16903. });
  16904. },
  16905. setOperationTime() {
  16906. let _this = this;
  16907. if (_this.opertimer) {
  16908. clearInterval(_this.opertimer);
  16909. _this.opertimer = null;
  16910. }
  16911. _this.opertimer = setInterval(() => {
  16912. _this.setoTime("600");
  16913. }, 600000);
  16914. },
  16915. setoTime(time) {
  16916. let params = [
  16917. {
  16918. uid: this.userid,
  16919. cid: this.id,
  16920. type: "2",
  16921. time: time,
  16922. },
  16923. ];
  16924. this.ajax
  16925. .post(this.$store.state.api + "addOperationTimeT2", params)
  16926. .then((res) => {})
  16927. .catch((err) => {
  16928. console.error(err);
  16929. });
  16930. },
  16931. addPz(type, content) {
  16932. if (type == "1" && this.pzConText == "") {
  16933. this.$message.error("评论不能为空!");
  16934. return;
  16935. }
  16936. let params = [
  16937. {
  16938. cid: this.id,
  16939. uid: this.userid,
  16940. s: this.courseType,
  16941. t: this.taskCount,
  16942. c: type == "1" ? this.pzConText : content,
  16943. type: type,
  16944. },
  16945. ];
  16946. this.ajax
  16947. .post(this.$store.state.api + "addPz2", params)
  16948. .then((res) => {
  16949. this.$message({
  16950. message: "添加成功",
  16951. type: "success",
  16952. });
  16953. this.pzConText = "";
  16954. this.addPzDialog = false;
  16955. this.selectPz();
  16956. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16957. })
  16958. .catch((err) => {
  16959. this.$message.error("添加失败");
  16960. console.error(err);
  16961. });
  16962. },
  16963. setReplyIndex(id, i) {
  16964. this.replyIndex = i;
  16965. this.replyPid = id;
  16966. this.replyDialogVisible = true;
  16967. },
  16968. addHf() {
  16969. if (this.reply == "") {
  16970. this.$message.error("回复不能为空!");
  16971. return;
  16972. }
  16973. let params = [
  16974. {
  16975. cid: this.id,
  16976. uid: this.userid,
  16977. s: this.courseType,
  16978. t: this.taskCount,
  16979. type: "1",
  16980. ct: 2,
  16981. pid: this.replyPid,
  16982. c: this.reply,
  16983. },
  16984. ];
  16985. this.ajax
  16986. .post(this.$store.state.api + "addHf", params)
  16987. .then((res) => {
  16988. this.reply = "";
  16989. this.$message({
  16990. message: "回复成功",
  16991. type: "success",
  16992. });
  16993. this.replyDialogVisible = false;
  16994. this.selectPz();
  16995. })
  16996. .catch((err) => {
  16997. this.$message.error("回复失败");
  16998. console.error(err);
  16999. });
  17000. },
  17001. deletePz(id) {
  17002. this.$confirm("确定删除此评论吗?", "提示", {
  17003. confirmButtonText: "确定",
  17004. cancelButtonText: "取消",
  17005. type: "warning",
  17006. })
  17007. .then(() => {
  17008. let params = [
  17009. {
  17010. id: id,
  17011. },
  17012. ];
  17013. this.ajax
  17014. .post(this.$store.state.api + "deletePz", params)
  17015. .then((res) => {
  17016. this.$message({
  17017. message: "删除成功",
  17018. type: "success",
  17019. });
  17020. this.selectPz();
  17021. })
  17022. .catch((err) => {
  17023. this.$message.error("网络异常");
  17024. console.error(err);
  17025. });
  17026. })
  17027. .catch(() => {});
  17028. },
  17029. deleteReply(id) {
  17030. this.$confirm("确定删除此回复吗?", "提示", {
  17031. confirmButtonText: "确定",
  17032. cancelButtonText: "取消",
  17033. type: "warning",
  17034. })
  17035. .then(() => {
  17036. let params = [
  17037. {
  17038. id: id,
  17039. },
  17040. ];
  17041. this.ajax
  17042. .post(this.$store.state.api + "deleteReply", params)
  17043. .then((res) => {
  17044. this.$message({
  17045. message: "删除成功",
  17046. type: "success",
  17047. });
  17048. this.selectPz();
  17049. })
  17050. .catch((err) => {
  17051. this.$message.error("网络异常");
  17052. console.error(err);
  17053. });
  17054. })
  17055. .catch(() => {});
  17056. },
  17057. setPz() {
  17058. if (this.ispzType == 4) {
  17059. this.ispzType = 0;
  17060. this.pzDialog = false;
  17061. return;
  17062. }
  17063. this.ispzType = 4;
  17064. this.pzDialog = true;
  17065. this.selectPz();
  17066. },
  17067. selectPz() {
  17068. let params = {
  17069. cid: this.id,
  17070. s: this.courseType,
  17071. t: this.taskCount,
  17072. type: this.pzStype,
  17073. uid: this.userid,
  17074. };
  17075. this.ajax
  17076. .get(this.$store.state.api + "selectPzListType", params)
  17077. .then((res) => {
  17078. this.pzList = res.data[0];
  17079. var a = res.data[1];
  17080. for (var i = 0; i < a.length; i++) {
  17081. for (var j = 0; j < this.pzList.length; j++) {
  17082. if (!this.pzList[j].hfList) {
  17083. this.pzList[j].hfList = [];
  17084. }
  17085. if (a[i].pid == this.pzList[j].id) {
  17086. this.pzList[j].hfList.push(a[i]);
  17087. }
  17088. }
  17089. }
  17090. })
  17091. .catch((err) => {
  17092. console.error(err);
  17093. });
  17094. },
  17095. // selectHf() {
  17096. // let params = {
  17097. // cid: this.id,
  17098. // s: this.courseType,
  17099. // t: this.taskCount,
  17100. // };
  17101. // this.ajax
  17102. // .get(this.$store.state.api + "selectHfList", params)
  17103. // .then((res) => {
  17104. // var a = res.data[0];
  17105. // for (var i = 0; i < a.length; i++) {
  17106. // for (var j = 0; j < this.pzList.length; j++) {
  17107. // if (!this.pzList[i].hfList) {
  17108. // this.pzList[i].hfList = [];
  17109. // }
  17110. // if (a[i].pid == this.pzList[j].id) {
  17111. // this.pzList[i].hfList.push(a[i]);
  17112. // }
  17113. // }
  17114. // }
  17115. // })
  17116. // .catch((err) => {
  17117. // console.error(err);
  17118. // });
  17119. // },
  17120. updateSLook() {
  17121. let params = {
  17122. sopen: this.sIsOpen == false ? 1 : 2,
  17123. cid: this.id,
  17124. };
  17125. this.ajax
  17126. .get(this.$store.state.api + "updateCourseSLook", params)
  17127. .then((res) => {
  17128. if (this.sIsOpen == true) {
  17129. this.$message({
  17130. message: "权限设置成功",
  17131. type: "success",
  17132. });
  17133. } else {
  17134. this.$message({
  17135. message: "权限关闭成功",
  17136. type: "success",
  17137. });
  17138. }
  17139. })
  17140. .catch((err) => {
  17141. console.error(err);
  17142. });
  17143. },
  17144. updateFollow() {
  17145. let params = [
  17146. {
  17147. sopen: this.IsFollow == false ? 1 : 2,
  17148. cid: this.id,
  17149. },
  17150. ];
  17151. this.ajax
  17152. .post(this.$store.state.api + "updateCourseFollow", params)
  17153. .then((res) => {
  17154. if (this.IsFollow == true) {
  17155. this.$message({
  17156. message: "开启成功",
  17157. type: "success",
  17158. });
  17159. } else {
  17160. this.$message({
  17161. message: "关闭成功",
  17162. type: "success",
  17163. });
  17164. }
  17165. this.setCTask();
  17166. })
  17167. .catch((err) => {
  17168. console.error(err);
  17169. });
  17170. },
  17171. setCTask() {
  17172. let params = [
  17173. {
  17174. sopen: this.courseType + "-" + this.taskCount,
  17175. cid: this.id,
  17176. },
  17177. ];
  17178. this.ajax
  17179. .post(this.$store.state.api + "updateCourseFollowC", params)
  17180. .then((res) => {})
  17181. .catch((err) => {
  17182. console.error(err);
  17183. });
  17184. },
  17185. updateLookOpen() {
  17186. let params = [
  17187. {
  17188. sopen: this.IsLookOpen == false ? 1 : 2,
  17189. cid: this.id,
  17190. },
  17191. ];
  17192. this.ajax
  17193. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17194. .then((res) => {
  17195. if (this.IsLookOpen == true) {
  17196. // if (this.courseType != 0 && this.taskCount != 0) {
  17197. // this.openTask(0, 0, "0-0");
  17198. // }
  17199. this.$message({
  17200. message: "权限设置成功",
  17201. type: "success",
  17202. });
  17203. } else {
  17204. this.$message({
  17205. message: "权限关闭成功",
  17206. type: "success",
  17207. });
  17208. }
  17209. this.getCourseState(2);
  17210. })
  17211. .catch((err) => {
  17212. console.error(err);
  17213. });
  17214. },
  17215. selectSLook() {
  17216. let params = {
  17217. cid: this.id,
  17218. };
  17219. this.ajax
  17220. .get(this.$store.state.api + "selectCourseSLook", params)
  17221. .then((res) => {
  17222. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17223. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17224. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17225. if (!this.IsLookOpen) {
  17226. this.setNavList();
  17227. } else {
  17228. this.getCourseState(1);
  17229. }
  17230. if ((this.IsFollow && this.tType == 2)) {
  17231. this.setContent2(false);
  17232. let _followC = res.data[0][0].followC.split("-");
  17233. if (
  17234. this.courseType != _followC[0] ||
  17235. this.taskCount != _followC[1]
  17236. ) {
  17237. this.navList[this.courseType].isOpen = false;
  17238. this.courseType = _followC[0];
  17239. this.navList[this.courseType].isOpen = true;
  17240. this.taskCount = parseInt(_followC[1]);
  17241. this.navId = res.data[0][0].followC;
  17242. document.scrollingElement.scrollTop = 0;
  17243. this.getCourseDetail(2);
  17244. }
  17245. }
  17246. })
  17247. .catch((err) => {
  17248. console.error(err);
  17249. });
  17250. },
  17251. setNavList() {
  17252. if (this.navList.length == 0) {
  17253. this.navList = [];
  17254. var copyList = [];
  17255. for (var l = 0; l < this.chapInfoList.length; l++) {
  17256. var q = this.chapInfoList[l].dyName;
  17257. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17258. var e;
  17259. copyList.push({
  17260. dyName: q,
  17261. isOpen: l === 0 ? true : false,
  17262. task: [],
  17263. });
  17264. for (var r = 0; r < w.length; r++) {
  17265. e = w[r].task;
  17266. if (this.chapInfoList[l].easy == 1) {
  17267. copyList[l].task.push({
  17268. taskName: q,
  17269. id: l + "-" + r,
  17270. isLook: w[r].isLook,
  17271. isOpen: r === 0 ? true : false,
  17272. tool: [],
  17273. });
  17274. } else {
  17275. copyList[l].task.push({
  17276. taskName: e,
  17277. id: l + "-" + r,
  17278. isLook: w[r].isLook,
  17279. isOpen: r === 0 ? true : false,
  17280. tool: [],
  17281. });
  17282. }
  17283. var t = w[r].toolChoose;
  17284. for (var k = 0; k < t.length; k++) {
  17285. var tool = t[k].tool[0];
  17286. copyList[l].task[r].tool.push({
  17287. tool: tool,
  17288. isTool: false,
  17289. });
  17290. }
  17291. // this.navId = this.navId ? this.navId : l + "-" + r;
  17292. // this.navId = l + "-" + r;
  17293. }
  17294. }
  17295. this.navList = copyList;
  17296. this.navList[0].isOpen = false;
  17297. this.navList[this.courseType].isOpen = true;
  17298. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17299. } else {
  17300. this.setNavList2();
  17301. }
  17302. },
  17303. setNavList2() {
  17304. for (var l = 0; l < this.chapInfoList.length; l++) {
  17305. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17306. for (var r = 0; r < w.length; r++) {
  17307. this.navList[l].task[r].isLook = w[r].isLook;
  17308. }
  17309. }
  17310. if (
  17311. this.IsLookOpen &&
  17312. !this.navList[this.courseType].task[this.taskCount].isLook
  17313. ) {
  17314. this.openTask(0, 0, "0-0");
  17315. }
  17316. this.$forceUpdate();
  17317. },
  17318. getCourseState(type) {
  17319. let params = {
  17320. cid: this.id,
  17321. };
  17322. this.ajax
  17323. .get(this.$store.state.api + "getCourseState", params)
  17324. .then((res) => {
  17325. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17326. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17327. this.setNavList();
  17328. this.$forceUpdate();
  17329. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17330. this.addCourseState(2);
  17331. } else {
  17332. this.addCourseState(1);
  17333. }
  17334. })
  17335. .catch((err) => {
  17336. console.error(err);
  17337. });
  17338. },
  17339. addCourseState(type) {
  17340. let _state = this.chapInfoList;
  17341. // this.courseType this.taskCount
  17342. if (type == 1 || type == 2) {
  17343. for (var i = 0; i < _state.length; i++) {
  17344. let el = _state[i].chapterInfo[0].taskJson;
  17345. for (var j = 0; j < el.length; j++) {
  17346. // if (i == 0 && j == 0) {
  17347. // el[j].isLook = true;
  17348. // } else {
  17349. // el[j].isLook = false;
  17350. // }
  17351. if (
  17352. this.courseType > i ||
  17353. (this.courseType == i && this.taskCount + 1 > j)
  17354. ) {
  17355. el[j].isLook = true;
  17356. } else {
  17357. el[j].isLook = false;
  17358. }
  17359. }
  17360. }
  17361. }
  17362. let params = [
  17363. {
  17364. cid: this.id,
  17365. state: JSON.stringify(_state),
  17366. },
  17367. ];
  17368. this.ajax
  17369. .post(
  17370. this.$store.state.api +
  17371. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17372. params
  17373. )
  17374. .then((res) => {
  17375. if (this.IsLookOpen) {
  17376. this.setNavList();
  17377. }
  17378. if (type == 3 && type == 2) {
  17379. this.getCourseState(1);
  17380. }
  17381. })
  17382. .catch((err) => {
  17383. console.error(err);
  17384. });
  17385. },
  17386. getHomeWork() {
  17387. let params = {
  17388. cid: this.id,
  17389. stage: this.courseType,
  17390. task: this.taskCount,
  17391. uid: this.userid,
  17392. };
  17393. this.ajax
  17394. .get(this.$store.state.api + "selectWork", params)
  17395. .then((res) => {
  17396. if (res.data[0].length > 0) {
  17397. this.studyJuri = JSON.parse(res.data[0][0].content);
  17398. this.isNoHomeWork = true;
  17399. }
  17400. })
  17401. .catch((err) => {
  17402. console.error(err);
  17403. });
  17404. },
  17405. isAssetTypeAnImage(ext) {
  17406. return (
  17407. [
  17408. "png",
  17409. "jpg",
  17410. "jpeg",
  17411. "bmp",
  17412. "gif",
  17413. "webp",
  17414. "psd",
  17415. "svg",
  17416. "tiff",
  17417. ].indexOf(ext) !== -1
  17418. );
  17419. },
  17420. switchVideo(media) {
  17421. this.playerO = {};
  17422. this.playerOptions.poster = "";
  17423. this.playerOptions.sources[0].src = media;
  17424. this.playerO = this.playerOptions;
  17425. },
  17426. onPlayerPlay() {},
  17427. onPlayerTimeupdate(player) {
  17428. let gklog = player.cache_.currentTime; //当前播放的秒数
  17429. let a = player.cache_.duration; //视频的总时长
  17430. let gklog2 = parseInt(gklog);
  17431. // if(gklog2 == '3'){
  17432. // player.pause()
  17433. // setTimeout(()=>{
  17434. // player.currentTime(gklog2+1)
  17435. // player.play()
  17436. // },1000)
  17437. // }
  17438. console.log(" onPlayerTimeupdate!", gklog);
  17439. console.log(" onPlayerTimeupdate!", gklog2);
  17440. },
  17441. lookVedio(u, i) {
  17442. this.isClickNav = "";
  17443. // this.playerOptions.sources[0].src = u;
  17444. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17445. d.sources[0].src = u;
  17446. this.playerO[this.taskCount] = d;
  17447. this.showType = 0;
  17448. // this.isClickNav = "video" + i;
  17449. this.isClickNav = i;
  17450. this.$forceUpdate();
  17451. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17452. },
  17453. lookText(i, t) {
  17454. this.isClickNav = "";
  17455. // this.text = this.textList[i][t];
  17456. this.text = this.vChapterData[i][t];
  17457. // this.dialogVisible1 = true;
  17458. this.showType = 1;
  17459. // this.isClickNav = "text" + t;
  17460. this.isClickNav = t;
  17461. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17462. },
  17463. lookTools(i, t) {
  17464. this.chapTools = this.chapToolList[i][t];
  17465. this.dialogVisible2 = true;
  17466. },
  17467. async openFile(f,w) {
  17468. this.pptImgUrl = "";
  17469. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17470. if (
  17471. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17472. -1
  17473. ) {
  17474. let _uuurl = await this.checkLink(f);
  17475. this.pptImgUrl =
  17476. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17477. this.showPDF = false;
  17478. this.dialogVisible3 = true;
  17479. } else if (
  17480. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17481. ) {
  17482. this.pptImgUrl = f;
  17483. this.showPDF = true;
  17484. this.dialogVisible3 = true;
  17485. }
  17486. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17487. },
  17488. openTable(f) {
  17489. this.tableJson = JSON.parse(f.works);
  17490. this.dialogVisibleTable2 = true;
  17491. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17492. },
  17493. openWord(f) {
  17494. this.tableJson = JSON.parse(f.works);
  17495. this.dialogVisibleTable3 = true;
  17496. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17497. },
  17498. doUrl(url, i) {
  17499. this.isClickNav = "";
  17500. this.pptImgUrl1 = "";
  17501. this.showType = 2;
  17502. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17503. url = "https://" + url;
  17504. }
  17505. this.pptImgUrl1 = "";
  17506. setTimeout(() => {
  17507. this.pptImgUrl1 = url;
  17508. }, 500);
  17509. // this.isClickNav = "line" + i;
  17510. this.isClickNav = i;
  17511. this.$forceUpdate();
  17512. },
  17513. checkPhoto(f, i) {
  17514. this.showType = 4;
  17515. this.pptImgUrl1 = f.url;
  17516. this.isClickNav = i;
  17517. this.$forceUpdate();
  17518. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17519. },
  17520. async downFile(f, i) {
  17521. this.isClickNav = "";
  17522. this.pptImgUrl1 = "";
  17523. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17524. if (
  17525. a.indexOf(
  17526. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17527. ) != -1
  17528. ) {
  17529. let _uuurl = await this.checkLink(f.url);
  17530. this.pptImgUrl1 =
  17531. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17532. // this.dialogVisible3 = true;
  17533. this.showType = 2;
  17534. } else if (
  17535. this.isAssetTypeAnImage(
  17536. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17537. )
  17538. ) {
  17539. this.showType = 4;
  17540. this.pptImgUrl1 = f.url;
  17541. } else if (
  17542. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17543. "PDF"
  17544. ) {
  17545. this.pptImgUrl1 = f.url;
  17546. // this.dialogVisible3 = true;
  17547. this.showType = 3;
  17548. } else {
  17549. window.open(this.file[i].url);
  17550. }
  17551. // this.isClickNav = "word" + i;
  17552. this.isClickNav = i;
  17553. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17554. },
  17555. downFileList(i) {
  17556. window.open(this.noImgList[i].url);
  17557. },
  17558. openAddWork() {
  17559. this.dialogVisible = true;
  17560. },
  17561. addBzWorks() {
  17562. let params = [
  17563. {
  17564. uid: this.userid,
  17565. cid: this.id,
  17566. stage: this.courseType,
  17567. task: this.taskCount,
  17568. tool: this.toolindex,
  17569. content: JSON.stringify(this.eScore),
  17570. type: 6,
  17571. },
  17572. ];
  17573. this.ajax
  17574. .post(this.$store.state.api + "addCourseWorks", params)
  17575. .then((res) => {
  17576. this.$message({
  17577. message: "提交成功",
  17578. type: "success",
  17579. });
  17580. this.eScore = { eBzText: "", eStar: [] };
  17581. this.studentEvalDialogVisible = false;
  17582. this.selectSWorks();
  17583. })
  17584. .catch((err) => {
  17585. this.$message.error("提交失败");
  17586. console.error(err);
  17587. });
  17588. },
  17589. addBzWorksTeacher() {
  17590. let params = [
  17591. {
  17592. uid: this.sStudent.userid,
  17593. cid: this.id,
  17594. stage: this.courseType,
  17595. task: this.taskCount,
  17596. tool: this.toolindex,
  17597. content: JSON.stringify(this.eScore),
  17598. type: 6,
  17599. },
  17600. ];
  17601. this.ajax
  17602. .post(this.$store.state.api + "addCourseWorks", params)
  17603. .then((res) => {
  17604. this.$message({
  17605. message: "提交成功",
  17606. type: "success",
  17607. });
  17608. this.eScore = { eBzText: "", eStar: [] };
  17609. this.studentEvalDialogVisibleTeacher = false;
  17610. this.selectSWorks();
  17611. })
  17612. .catch((err) => {
  17613. this.$message.error("提交失败");
  17614. console.error(err);
  17615. });
  17616. },
  17617. addStudentAsk() {
  17618. if (!this.radio.length) {
  17619. this.$message.error("请选择选项");
  17620. return;
  17621. }
  17622. for (var i = 0; i < this.askJson.askCount; i++) {
  17623. if (
  17624. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17625. (this.radio[i] !== 0 && !this.radio[i])
  17626. ) {
  17627. this.$message.error("请选择选项");
  17628. return;
  17629. }
  17630. }
  17631. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17632. let params = [
  17633. {
  17634. uid: this.userid,
  17635. cid: this.id,
  17636. stage: this.courseType,
  17637. task: this.taskCount,
  17638. tool: this.toolindex,
  17639. content: JSON.stringify(this.askList),
  17640. type: 2,
  17641. },
  17642. ];
  17643. this.ajax
  17644. .post(this.$store.state.api + "addCourseWorks", params)
  17645. .then((res) => {
  17646. this.$message({
  17647. message: "提交成功",
  17648. type: "success",
  17649. });
  17650. this.askList = [];
  17651. this.dialogVisible5 = false;
  17652. this.selectStudent();
  17653. this.selectSWorks();
  17654. this.selectSLook();
  17655. })
  17656. .catch((err) => {
  17657. this.$message.error("提交失败");
  17658. console.error(err);
  17659. });
  17660. },
  17661. addStudentAskTeacher() {
  17662. if (!this.radio.length) {
  17663. this.$message.error("请选择选项");
  17664. return;
  17665. }
  17666. for (var i = 0; i < this.askJson.askCount; i++) {
  17667. if (
  17668. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17669. (this.radio[i] !== 0 && !this.radio[i])
  17670. ) {
  17671. this.$message.error("请选择选项");
  17672. return;
  17673. }
  17674. }
  17675. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17676. let params = [
  17677. {
  17678. uid: this.sStudent.userid,
  17679. cid: this.id,
  17680. stage: this.courseType,
  17681. task: this.taskCount,
  17682. tool: this.toolindex,
  17683. content: JSON.stringify(this.askList),
  17684. type: 2,
  17685. },
  17686. ];
  17687. this.ajax
  17688. .post(this.$store.state.api + "addCourseWorks", params)
  17689. .then((res) => {
  17690. this.$message({
  17691. message: "提交成功",
  17692. type: "success",
  17693. });
  17694. this.askList = [];
  17695. this.dialogVisible5Teacher = false;
  17696. this.selectStudent();
  17697. this.selectSWorks();
  17698. this.selectSLook();
  17699. })
  17700. .catch((err) => {
  17701. this.$message.error("提交失败");
  17702. console.error(err);
  17703. });
  17704. },
  17705. addStudentTest() {
  17706. if (!this.radio.length) {
  17707. this.$message.error("请选择选项");
  17708. return;
  17709. }
  17710. for (var i = 0; i < this.testJson.testCount; i++) {
  17711. if (
  17712. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17713. (this.radio[i] !== 0 && !this.radio[i])
  17714. ) {
  17715. this.$message.error("请选择选项");
  17716. return;
  17717. }
  17718. }
  17719. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17720. let params = [
  17721. {
  17722. uid: this.userid,
  17723. cid: this.id,
  17724. stage: this.courseType,
  17725. task: this.taskCount,
  17726. tool: this.toolindex,
  17727. content: JSON.stringify(this.askList),
  17728. type: 8,
  17729. },
  17730. ];
  17731. this.ajax
  17732. .post(this.$store.state.api + "addCourseWorks", params)
  17733. .then((res) => {
  17734. this.$message({
  17735. message: "提交成功",
  17736. type: "success",
  17737. });
  17738. this.askList = [];
  17739. this.dialogVisibleChoice = false;
  17740. this.selectStudent();
  17741. this.selectSWorks();
  17742. this.selectSLook();
  17743. })
  17744. .catch((err) => {
  17745. this.$message.error("提交失败");
  17746. console.error(err);
  17747. });
  17748. },
  17749. addStudentTestTeacher() {
  17750. if (!this.radio.length) {
  17751. this.$message.error("请选择选项");
  17752. return;
  17753. }
  17754. for (var i = 0; i < this.testJson.testCount; i++) {
  17755. if (
  17756. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17757. (this.radio[i] !== 0 && !this.radio[i])
  17758. ) {
  17759. this.$message.error("请选择选项");
  17760. return;
  17761. }
  17762. }
  17763. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17764. let params = [
  17765. {
  17766. uid: this.sStudent.userid,
  17767. cid: this.id,
  17768. stage: this.courseType,
  17769. task: this.taskCount,
  17770. tool: this.toolindex,
  17771. content: JSON.stringify(this.askList),
  17772. type: 8,
  17773. },
  17774. ];
  17775. this.ajax
  17776. .post(this.$store.state.api + "addCourseWorks", params)
  17777. .then((res) => {
  17778. this.$message({
  17779. message: "提交成功",
  17780. type: "success",
  17781. });
  17782. this.askList = [];
  17783. this.dialogVisibleChoiceTeacher = false;
  17784. this.selectStudent();
  17785. this.selectSWorks();
  17786. this.selectSLook();
  17787. })
  17788. .catch((err) => {
  17789. this.$message.error("提交失败");
  17790. console.error(err);
  17791. });
  17792. },
  17793. addWork() {
  17794. if (this.studyJuri[0].content == "") {
  17795. this.$message.error("请将信息填写完整");
  17796. return;
  17797. } else if (this.studyJuri[0].cover.length == 0) {
  17798. this.$message.error("请将信息填写完整");
  17799. return;
  17800. } else if (this.studyJuri[0].upVedio.length == 0) {
  17801. this.$message.error("请将信息填写完整");
  17802. return;
  17803. }
  17804. if (this.isNoHomeWork) {
  17805. this.$confirm(
  17806. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17807. "提示",
  17808. {
  17809. confirmButtonText: "确定",
  17810. cancelButtonText: "取消",
  17811. type: "warning",
  17812. }
  17813. )
  17814. .then(() => {
  17815. let params = [
  17816. {
  17817. uid: this.userid,
  17818. cid: this.id,
  17819. stage: this.courseType,
  17820. task: this.taskCount,
  17821. content: JSON.stringify(this.studyJuri),
  17822. },
  17823. ];
  17824. this.ajax
  17825. .post(this.$store.state.api + "addWorks", params)
  17826. .then((res) => {
  17827. this.$message({
  17828. message: "提交成功",
  17829. type: "success",
  17830. });
  17831. this.isNoHomeWork = true;
  17832. this.dialogVisible = false;
  17833. })
  17834. .catch((err) => {
  17835. this.$message.error("提交失败");
  17836. console.error(err);
  17837. });
  17838. })
  17839. .catch(() => {});
  17840. } else {
  17841. let params = [
  17842. {
  17843. uid: this.userid,
  17844. cid: this.id,
  17845. stage: this.courseType,
  17846. task: this.taskCount,
  17847. content: JSON.stringify(this.studyJuri),
  17848. },
  17849. ];
  17850. this.ajax
  17851. .post(this.$store.state.api + "addWorks", params)
  17852. .then((res) => {
  17853. this.$message({
  17854. message: "提交成功",
  17855. type: "success",
  17856. });
  17857. this.isNoHomeWork = true;
  17858. this.dialogVisible = false;
  17859. })
  17860. .catch((err) => {
  17861. this.$message.error("提交失败");
  17862. console.error(err);
  17863. });
  17864. }
  17865. },
  17866. selectCount() {
  17867. let params = {
  17868. cid: this.id,
  17869. chid: this.courseType,
  17870. uid: this.userid,
  17871. };
  17872. this.ajax
  17873. .get(this.$store.state.api + "selectToolsCount", params)
  17874. .then((res) => {
  17875. for (var i = 0; i < res.data[0].length; i++) {
  17876. if (res.data[0][i].tools == 1) {
  17877. this.wbCount = res.data[0][i].count;
  17878. } else if (res.data[0][i].tools == 2) {
  17879. this.wordCount = res.data[0][i].count;
  17880. } else if (res.data[0][i].tools == 3) {
  17881. this.mindCount = res.data[0][i].count;
  17882. } else if (res.data[0][i].tools == 4) {
  17883. this.askCount = res.data[0][i].count;
  17884. } else if (res.data[0][i].tools == 6) {
  17885. this.noteCount = res.data[0][i].count;
  17886. } else if (res.data[0][i].tools == 7) {
  17887. this.mindNetWorkCount = res.data[0][i].count;
  17888. } else if (res.data[0][i].tools == 8) {
  17889. this.libraryCount = res.data[0][i].count;
  17890. } else if (res.data[0][i].tools == 16) {
  17891. this.workCount = res.data[0][i].count;
  17892. } else if (res.data[0][i].tools == 10) {
  17893. this.timeCount = res.data[0][i].count;
  17894. } else if (res.data[0][i].tools == 15) {
  17895. this.answerCount = res.data[0][i].count;
  17896. } else if (res.data[0][i].tools == 18) {
  17897. this.trainCount = res.data[0][i].count;
  17898. }
  17899. }
  17900. })
  17901. .catch((err) => {
  17902. console.error(err);
  17903. });
  17904. },
  17905. openTools(t, i, index, c, sName,id) {
  17906. var z = JSON.parse(c);
  17907. this.noteName = sName;
  17908. if (t == 4) {
  17909. this.radio = [];
  17910. this.isAnswer = false;
  17911. let b = z[0].anwer;
  17912. this.radio = b;
  17913. this.askJson = z[0].askJson;
  17914. this.isAnswer = true;
  17915. this.dialogVisible5 = true;
  17916. } else if (t == 45) {
  17917. this.radio = [];
  17918. this.isAnswer = false;
  17919. let b = z[0].anwer;
  17920. this.radio = b;
  17921. this.testJson = z[0].testJson;
  17922. this.isAnswer = true;
  17923. this.dialogVisibleChoice = true;
  17924. }else if(t == 69){
  17925. this.oldEnglishJson1 = {}
  17926. this.oldEnglishJson = {}
  17927. this.englishList1 = {}
  17928. this.newEngIndex = -1;
  17929. this.isNoUserid = false;
  17930. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17931. .toolChoose[i].englishList;
  17932. this.oldEnglishJson = z;
  17933. this.engWid = id;
  17934. this.newEnglishList = { engTitle:"",engText:"" }
  17935. this.newEnglishList1 = []
  17936. this.selectEngC(id,z);
  17937. }else if(t == 62){
  17938. this.videoType = 1;
  17939. this.videoJson = {};
  17940. this.videoJson = JSON.parse(c);
  17941. // this.videoJson =
  17942. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17943. // index
  17944. // ].toolChoose[i].videoJson;
  17945. this.dialogVisibleVideo = true;
  17946. //this.dialog
  17947. }
  17948. // else if (t == 15) {
  17949. // this.answerQ = "";
  17950. // this.questionAnswer = "";
  17951. // this.answerQ = z[0].answerTitle;
  17952. // this.questionAnswer = z[0].answer;
  17953. // this.answerDialogVisible = true;
  17954. // }
  17955. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17956. },
  17957. fastText(p, t) {
  17958. if (t == 1) {
  17959. this.commentText += p;
  17960. } else {
  17961. this.eScore.eBzText += p;
  17962. }
  17963. },
  17964. addTools(t, i, index) {
  17965. var a = 0;
  17966. // this.taskCount = index;
  17967. this.toolindex = i;
  17968. if (t == 1) {
  17969. if (this.wbCount > 0) {
  17970. this.updateCount(this.wbCount, t);
  17971. } else {
  17972. this.wbCount++;
  17973. a = this.wbCount;
  17974. this.toolsCount(a, t);
  17975. }
  17976. window.parent.postMessage(
  17977. {
  17978. tools: "1",
  17979. cid: this.id,
  17980. stage: this.courseType,
  17981. task: this.taskCount,
  17982. tool: i,
  17983. },
  17984. "*"
  17985. );
  17986. } else if (t == 2) {
  17987. if (this.wordCount > 0) {
  17988. this.updateCount(this.wordCount, t);
  17989. } else {
  17990. this.wordCount++;
  17991. a = this.wordCount;
  17992. this.toolsCount(a, t);
  17993. }
  17994. window.parent.postMessage({ tools: "2" }, "*");
  17995. } else if (t == 3) {
  17996. if (this.mindCount > 0) {
  17997. this.updateCount(this.mindCount, t);
  17998. } else {
  17999. this.mindCount++;
  18000. a = this.mindCount;
  18001. this.toolsCount(a, t);
  18002. }
  18003. window.parent.postMessage(
  18004. {
  18005. tools: "3",
  18006. cid: this.id,
  18007. stage: this.courseType,
  18008. task: this.taskCount,
  18009. tool: i,
  18010. },
  18011. "*"
  18012. );
  18013. } else if (t == 4) {
  18014. this.radio = [];
  18015. this.noteName = "";
  18016. this.isAnswer = false;
  18017. if (this.askCount > 0) {
  18018. this.updateCount(this.askCount, t);
  18019. } else {
  18020. this.askCount++;
  18021. a = this.askCount;
  18022. this.toolsCount(a, t);
  18023. }
  18024. if (!this.dialogVisible2) {
  18025. this.askJson.askJson =
  18026. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18027. index
  18028. ].toolChoose[i].askJson;
  18029. this.askJson.askTitle =
  18030. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18031. index
  18032. ].toolChoose[i].askTitle;
  18033. this.askJson.askCount =
  18034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18035. index
  18036. ].toolChoose[i].askCount;
  18037. } else {
  18038. this.askJson.askJson = this.chapTools.askJson.askJson;
  18039. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18040. this.askJson.askCount = this.chapTools.askJson.askCount;
  18041. }
  18042. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18043. if (this.askJson.askJson[k].type == "2") {
  18044. this.radio.push([]);
  18045. } else {
  18046. this.radio.push("");
  18047. }
  18048. }
  18049. this.dialogVisible5 = true;
  18050. // window.parent.postMessage({ tools: "4" }, "*");
  18051. } else if (t == 45) {
  18052. this.noteName = "";
  18053. this.radio = [];
  18054. this.isAnswer = false;
  18055. if (this.askCount > 0) {
  18056. this.updateCount(this.askCount, t);
  18057. } else {
  18058. this.askCount++;
  18059. a = this.askCount;
  18060. this.toolsCount(a, t);
  18061. }
  18062. this.testJson =
  18063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18064. index
  18065. ].toolChoose[i].testJson;
  18066. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18067. if (this.testJson.testJson[k].type == "2") {
  18068. this.radio.push([]);
  18069. } else {
  18070. this.radio.push("");
  18071. }
  18072. }
  18073. this.dialogVisibleChoice = true;
  18074. // window.parent.postMessage({ tools: "4" }, "*");
  18075. } else if (t == 5) {
  18076. if (this.scoreCount > 0) {
  18077. this.updateCount(this.scoreCount, t);
  18078. } else {
  18079. this.scoreCount++;
  18080. a = this.scoreCount;
  18081. this.toolsCount(a, t);
  18082. }
  18083. this.dialogVisible4 = true;
  18084. // window.parent.postMessage({ tools: "5" }, "*");
  18085. } else if (t == 6) {
  18086. if (this.noteCount > 0) {
  18087. this.updateCount(this.noteCount, t);
  18088. } else {
  18089. this.noteCount++;
  18090. a = this.noteCount;
  18091. this.toolsCount(a, t);
  18092. }
  18093. window.parent.postMessage(
  18094. {
  18095. tools: "6",
  18096. cid: this.id,
  18097. stage: this.courseType,
  18098. task: this.taskCount,
  18099. tool: i,
  18100. },
  18101. "*"
  18102. );
  18103. } else if (t == 7) {
  18104. if (this.mindNetWorkCount > 0) {
  18105. this.updateCount(this.mindNetWorkCount, t);
  18106. } else {
  18107. this.mindNetWorkCount++;
  18108. a = this.mindNetWorkCount;
  18109. this.toolsCount(a, t);
  18110. }
  18111. window.parent.postMessage(
  18112. {
  18113. tools: "7",
  18114. cid: this.id,
  18115. stage: this.courseType,
  18116. task: this.taskCount,
  18117. tool: i,
  18118. },
  18119. "*"
  18120. );
  18121. } else if (t == 16) {
  18122. if (this.workCount > 0) {
  18123. this.updateCount(this.workCount, t);
  18124. } else {
  18125. this.workCount++;
  18126. a = this.workCount;
  18127. this.toolsCount(a, t);
  18128. }
  18129. this.dialogVisible = true;
  18130. } else if (t == 50) {
  18131. if (this.tType == 2) {
  18132. this.$message.error("不支持学生使用");
  18133. return;
  18134. }
  18135. this.plworkFile = [];
  18136. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18137. if (!this.uploadCid) {
  18138. this.$message.error(
  18139. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18140. );
  18141. return;
  18142. }
  18143. // this.uploadCid =
  18144. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18145. // index
  18146. // ].toolChoose[i].uploadJson[0];
  18147. this.selectUploadStudent(2);
  18148. } else if (t == 8) {
  18149. if (this.libraryCount > 0) {
  18150. this.updateCount(this.libraryCount, t);
  18151. } else {
  18152. this.libraryCount++;
  18153. a = this.libraryCount;
  18154. this.toolsCount(a, t);
  18155. }
  18156. window.parent.postMessage({ tools: "8" }, "*");
  18157. } else if (t == 17) {
  18158. if (this.libraryCount > 0) {
  18159. this.updateCount(this.libraryCount, t);
  18160. } else {
  18161. this.libraryCount++;
  18162. a = this.libraryCount;
  18163. this.toolsCount(a, t);
  18164. }
  18165. window.parent.postMessage({ tools: "17" }, "*");
  18166. } else if (t == 18) {
  18167. if (this.trainCount > 0) {
  18168. this.updateCount(this.trainCount, t);
  18169. } else {
  18170. this.trainCount++;
  18171. a = this.trainCount;
  18172. this.toolsCount(a, t);
  18173. }
  18174. window.parent.postMessage({ tools: "18" }, "*");
  18175. } else if (t == 10) {
  18176. if (this.timeCount > 0) {
  18177. this.updateCount(this.timeCount, t);
  18178. } else {
  18179. this.timeCount++;
  18180. a = this.timeCount;
  18181. this.toolsCount(a, t);
  18182. }
  18183. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18184. .taskJson[index].toolChoose[i].preTime
  18185. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18186. .toolChoose[i].preTime
  18187. : "";
  18188. this.timeDialogVisible = true;
  18189. } else if (t == 15) {
  18190. this.answerQ = "";
  18191. this.questionAnswer = "";
  18192. if (this.answerCount > 0) {
  18193. this.updateCount(this.answerCount, t);
  18194. } else {
  18195. this.answerCount++;
  18196. a = this.answerCount;
  18197. this.toolsCount(a, t);
  18198. }
  18199. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18200. .taskJson[index].toolChoose[i].answerQ
  18201. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18202. .toolChoose[i].answerQ
  18203. : "";
  18204. this.answerDialogVisible = true;
  18205. } else if (t == 21) {
  18206. window.parent.postMessage({ tools: "21" }, "*");
  18207. } else if (t == 22) {
  18208. window.parent.postMessage({ tools: "22" }, "*");
  18209. } else if (t == 23) {
  18210. window.parent.postMessage({ tools: "23" }, "*");
  18211. } else if (t == 24) {
  18212. window.parent.postMessage({ tools: "24" }, "*");
  18213. } else if (t == 25) {
  18214. window.parent.postMessage({ tools: "25" }, "*");
  18215. } else if (t == 31) {
  18216. window.parent.postMessage({ tools: "31" }, "*");
  18217. } else if (t == 28) {
  18218. window.parent.postMessage({ tools: "28" }, "*");
  18219. } else if (t == 37) {
  18220. window.parent.postMessage({ tools: "37" }, "*");
  18221. } else if (t == 38) {
  18222. window.parent.postMessage({ tools: "38" }, "*");
  18223. } else if (t == 39) {
  18224. window.parent.postMessage({ tools: "39" }, "*");
  18225. } else if (t == 32) {
  18226. window.parent.postMessage({ tools: "32" }, "*");
  18227. } else if (t == 66) {
  18228. window.parent.postMessage({ tools: "66" }, "*");
  18229. } else if (t == 67) {
  18230. window.parent.postMessage({ tools: "67" }, "*");
  18231. } else if (t == 68) {
  18232. window.parent.postMessage({ tools: "68" }, "*");
  18233. } else if (t == 57) {
  18234. // window.parent.postMessage({ tools: "57" }, "*");
  18235. window.parent.postMessage(
  18236. {
  18237. tools: "57u",
  18238. cid: this.id,
  18239. stage: this.courseType,
  18240. task: this.taskCount,
  18241. tool: i,
  18242. },
  18243. "*"
  18244. );
  18245. } else if (t == 58) {
  18246. window.parent.postMessage({ tools: "58" }, "*");
  18247. } else if (t == 59) {
  18248. window.parent.postMessage({ tools: "59" }, "*");
  18249. } else if (t == 60) {
  18250. window.parent.postMessage({ tools: "60" }, "*");
  18251. } else if (t == 61) {
  18252. window.parent.postMessage({ tools: "61" }, "*");
  18253. } else if (t == 63) {
  18254. window.parent.postMessage({ tools: "63" }, "*");
  18255. } else if (t == 71) {
  18256. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18257. this.$message.error("该工具不可使用");
  18258. return
  18259. }
  18260. window.parent.postMessage({ tools: "71" }, "*");
  18261. } else if (t == 69) {
  18262. if (this.worksStudent[i].length) {
  18263. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18264. if (this.userid == this.worksStudent[i][k].userid) {
  18265. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18266. break;
  18267. } else {
  18268. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18269. }
  18270. }
  18271. } else {
  18272. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18273. }
  18274. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18275. .taskJson[index].toolChoose[i].englishList
  18276. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18277. .toolChoose[i].englishList
  18278. : {};
  18279. this.englishToolIndex = i;
  18280. this.myAnList = this.myAnswerList1;
  18281. this.engDialogVisible = true;
  18282. } else if (t == 70) {
  18283. if (this.worksStudent[i].length) {
  18284. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18285. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18286. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18287. break;
  18288. } else {
  18289. this.englishVoiceJsonWork = [];
  18290. }
  18291. }
  18292. } else {
  18293. this.englishVoiceJsonWork = [];
  18294. }
  18295. let englishVoiceJson = {}
  18296. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18297. .taskJson[index].toolChoose[i].englishVoiceJson
  18298. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18299. .toolChoose[i].englishVoiceJson
  18300. : {};
  18301. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18302. this.EnglishVoiceDialog = true;
  18303. } else if (t == 65) {
  18304. if (this.tType == 2) {
  18305. this.$message.error("不支持学生使用");
  18306. return;
  18307. }
  18308. this.uploadCid = this.tcid;
  18309. if (!this.uploadCid) {
  18310. this.$message.error(
  18311. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18312. );
  18313. return;
  18314. }
  18315. this.selectPickStudent();
  18316. } else if (t == 26) {
  18317. window.parent.postMessage(
  18318. {
  18319. tools: "26",
  18320. cid: this.id,
  18321. stage: this.courseType,
  18322. task: this.taskCount,
  18323. tool: i,
  18324. },
  18325. "*"
  18326. );
  18327. } else if (t == 40) {
  18328. if (this.evalCount > 0) {
  18329. this.updateCount(this.evalCount, t);
  18330. } else {
  18331. this.evalCount++;
  18332. a = this.evalCount;
  18333. this.toolsCount(a, t);
  18334. }
  18335. this.eScore = { eBzText: "", eStar: [] };
  18336. if (this.worksStudent[i].length) {
  18337. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18338. if (this.userid == this.worksStudent[i][k].userid) {
  18339. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18340. this.rateJson =
  18341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18342. index
  18343. ].toolChoose[i].rateJson;
  18344. break;
  18345. } else {
  18346. this.rateJson =
  18347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18348. index
  18349. ].toolChoose[i].rateJson;
  18350. }
  18351. }
  18352. } else {
  18353. this.rateJson =
  18354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18355. index
  18356. ].toolChoose[i].rateJson;
  18357. }
  18358. this.isStar = false;
  18359. this.studentEvalDialogVisible = true;
  18360. } else if (t == 41) {
  18361. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18362. .taskJson[index].toolChoose[i].selectJson
  18363. ? JSON.parse(
  18364. JSON.stringify(
  18365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18366. index
  18367. ].toolChoose[i].selectJson
  18368. )
  18369. )
  18370. : { url: "", select: [], answer: [] };
  18371. if (this.worksStudent[i].length) {
  18372. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18373. if (this.userid == this.worksStudent[i][k].userid) {
  18374. var a = this.worksStudent[i][k].works.split(",");
  18375. for (var ki = 0; ki < a.length; ki++) {
  18376. a[ki] = parseInt(a[ki]);
  18377. }
  18378. this.selectAnswer = {
  18379. answer: a,
  18380. stu: this.worksStudent[i][k].sName,
  18381. };
  18382. break;
  18383. } else {
  18384. this.selectAnswer = { answer: [], stu: "" };
  18385. }
  18386. }
  18387. } else {
  18388. this.selectAnswer = { answer: [], stu: "" };
  18389. }
  18390. this.isSelect = false;
  18391. this.dialogVisibleSelect = true;
  18392. } else if (t == 44) {
  18393. window.parent.postMessage({ tools: "44" }, "*");
  18394. } else if (t == 47) {
  18395. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18396. .taskJson[index].toolChoose[i].sentenceList
  18397. ? JSON.parse(
  18398. JSON.stringify(
  18399. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18400. index
  18401. ].toolChoose[i].sentenceList
  18402. )
  18403. )
  18404. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18405. for (var q = 0; q < this.sentenceList.length; q++) {
  18406. this.sentenceList[q].chooseSenList = [];
  18407. this.sentenceList[q].addChangeSen = [];
  18408. this.sentenceList[q].addChangeSen = JSON.parse(
  18409. JSON.stringify(this.sentenceList[q].addSentence)
  18410. );
  18411. this.sentenceList[q].chooseSenList.length =
  18412. this.sentenceList[q].rightAnswer.length;
  18413. }
  18414. this.dialogVisibleSentence = true;
  18415. } else if (t == 48) {
  18416. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18417. .taskJson[index].toolChoose[i].tableJson
  18418. ? JSON.parse(
  18419. JSON.stringify(
  18420. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18421. index
  18422. ].toolChoose[i].tableJson
  18423. )
  18424. )
  18425. : { text: "" };
  18426. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18427. if (this.worksStudent[i].length) {
  18428. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18429. if (this.userid == this.worksStudent[i][k].userid) {
  18430. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18431. break;
  18432. }
  18433. }
  18434. }
  18435. this.dialogVisibleTable = true;
  18436. } else if (t == 52) {
  18437. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18438. .taskJson[index].toolChoose[i].wordJson
  18439. ? JSON.parse(
  18440. JSON.stringify(
  18441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18442. index
  18443. ].toolChoose[i].wordJson
  18444. )
  18445. )
  18446. : { text: "" };
  18447. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18448. if (this.worksStudent[i].length) {
  18449. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18450. if (this.userid == this.worksStudent[i][k].userid) {
  18451. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18452. break;
  18453. }
  18454. }
  18455. }
  18456. this.dialogVisibleWord = true;
  18457. } else if (t == 49) {
  18458. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18459. return
  18460. }
  18461. this.groupJson =
  18462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18463. index
  18464. ].toolChoose[i].groupJson;
  18465. this.islock = this.groupJson.islock == 1 ? true : false;
  18466. this.dialogVisibleGroup = true;
  18467. } else if (t == 62) {
  18468. this.videoType = 0;
  18469. this.videoJson = {};
  18470. this.videoJson =
  18471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18472. index
  18473. ].toolChoose[i].videoJson;
  18474. this.dialogVisibleVideo = true;
  18475. }
  18476. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18477. },
  18478. teacherWorkSubmit(t, i, index, s) {
  18479. this.sStudent = s;
  18480. this.toolindex = i;
  18481. this.sTool = t;
  18482. if (this.tType !== "1" && this.tType !== "4") {
  18483. return;
  18484. }
  18485. if (t == 16 || t == 32 || t == 50) {
  18486. this.dialogVisibleWorks = true;
  18487. } else if (t == 15) {
  18488. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18489. .taskJson[index].toolChoose[i].answerQ
  18490. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18491. .toolChoose[i].answerQ
  18492. : "";
  18493. this.questionAnswer = "";
  18494. this.answerDialogVisibleTeacher = true; //问答
  18495. } else if (t == 52) {
  18496. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18497. .taskJson[index].toolChoose[i].wordJson
  18498. ? JSON.parse(
  18499. JSON.stringify(
  18500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18501. index
  18502. ].toolChoose[i].wordJson
  18503. )
  18504. )
  18505. : { text: "" };
  18506. if (this.worksStudent[i].length) {
  18507. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18508. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18509. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18510. break;
  18511. }
  18512. }
  18513. }
  18514. this.dialogVisibleWordTeacher = true; //文档
  18515. } else if (t == 4) {
  18516. this.radio = [];
  18517. this.noteName = "";
  18518. this.isAnswer = false;
  18519. if (this.askCount > 0) {
  18520. this.updateCount(this.askCount, t);
  18521. } else {
  18522. this.askCount++;
  18523. a = this.askCount;
  18524. this.toolsCount(a, t);
  18525. }
  18526. if (!this.dialogVisible2) {
  18527. this.askJson.askJson =
  18528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18529. index
  18530. ].toolChoose[i].askJson;
  18531. this.askJson.askTitle =
  18532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18533. index
  18534. ].toolChoose[i].askTitle;
  18535. this.askJson.askCount =
  18536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18537. index
  18538. ].toolChoose[i].askCount;
  18539. } else {
  18540. this.askJson.askJson = this.chapTools.askJson.askJson;
  18541. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18542. this.askJson.askCount = this.chapTools.askJson.askCount;
  18543. }
  18544. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18545. if (this.askJson.askJson[k].type == "2") {
  18546. this.radio.push([]);
  18547. } else {
  18548. this.radio.push("");
  18549. }
  18550. }
  18551. this.dialogVisible5Teacher = true;
  18552. } else if (t == 45) {
  18553. this.noteName = "";
  18554. this.radio = [];
  18555. this.isAnswer = false;
  18556. if (this.askCount > 0) {
  18557. this.updateCount(this.askCount, t);
  18558. } else {
  18559. this.askCount++;
  18560. a = this.askCount;
  18561. this.toolsCount(a, t);
  18562. }
  18563. this.testJson =
  18564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18565. index
  18566. ].toolChoose[i].testJson;
  18567. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18568. if (this.testJson.testJson[k].type == "2") {
  18569. this.radio.push([]);
  18570. } else {
  18571. this.radio.push("");
  18572. }
  18573. }
  18574. this.dialogVisibleChoiceTeacher = true;
  18575. } else if (t == 41) {
  18576. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18577. .taskJson[index].toolChoose[i].selectJson
  18578. ? JSON.parse(
  18579. JSON.stringify(
  18580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18581. index
  18582. ].toolChoose[i].selectJson
  18583. )
  18584. )
  18585. : { url: "", select: [], answer: [] };
  18586. if (this.worksStudent[i].length) {
  18587. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18588. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18589. var a = this.worksStudent[i][k].works.split(",");
  18590. for (var ki = 0; ki < a.length; ki++) {
  18591. a[ki] = parseInt(a[ki]);
  18592. }
  18593. this.selectAnswer = {
  18594. answer: a,
  18595. stu: this.worksStudent[i][k].sName,
  18596. };
  18597. break;
  18598. } else {
  18599. this.selectAnswer = { answer: [], stu: "" };
  18600. }
  18601. }
  18602. } else {
  18603. this.selectAnswer = { answer: [], stu: "" };
  18604. }
  18605. this.isSelect = false;
  18606. this.dialogVisibleSelectTeacher = true;
  18607. } else if (t == 47) {
  18608. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18609. .taskJson[index].toolChoose[i].sentenceList
  18610. ? JSON.parse(
  18611. JSON.stringify(
  18612. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18613. index
  18614. ].toolChoose[i].sentenceList
  18615. )
  18616. )
  18617. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18618. for (var q = 0; q < this.sentenceList.length; q++) {
  18619. this.sentenceList[q].chooseSenList = [];
  18620. this.sentenceList[q].addChangeSen = [];
  18621. this.sentenceList[q].addChangeSen = JSON.parse(
  18622. JSON.stringify(this.sentenceList[q].addSentence)
  18623. );
  18624. this.sentenceList[q].chooseSenList.length =
  18625. this.sentenceList[q].rightAnswer.length;
  18626. }
  18627. this.dialogVisibleSentenceTeacher = true;
  18628. } else if (t == 48) {
  18629. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18630. .taskJson[index].toolChoose[i].tableJson
  18631. ? JSON.parse(
  18632. JSON.stringify(
  18633. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18634. index
  18635. ].toolChoose[i].tableJson
  18636. )
  18637. )
  18638. : { text: "" };
  18639. if (this.worksStudent[i].length) {
  18640. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18641. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18642. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18643. break;
  18644. }
  18645. }
  18646. }
  18647. this.dialogVisibleTableTeacher = true;
  18648. } else if (t == 40) {
  18649. if (this.evalCount > 0) {
  18650. this.updateCount(this.evalCount, t);
  18651. } else {
  18652. this.evalCount++;
  18653. a = this.evalCount;
  18654. this.toolsCount(a, t);
  18655. }
  18656. this.eScore = { eBzText: "", eStar: [] };
  18657. if (this.worksStudent[i].length) {
  18658. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18659. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18660. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18661. this.rateJson =
  18662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18663. index
  18664. ].toolChoose[i].rateJson;
  18665. break;
  18666. } else {
  18667. this.rateJson =
  18668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18669. index
  18670. ].toolChoose[i].rateJson;
  18671. }
  18672. }
  18673. } else {
  18674. this.rateJson =
  18675. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18676. index
  18677. ].toolChoose[i].rateJson;
  18678. }
  18679. this.isStar = false;
  18680. this.studentEvalDialogVisibleTeacher = true;
  18681. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18682. window.parent.postMessage(
  18683. {
  18684. tools: t + "teacher",
  18685. cid: this.id,
  18686. stage: this.courseType,
  18687. task: this.taskCount,
  18688. tool: i,
  18689. student: this.sStudent,
  18690. },
  18691. "*"
  18692. );
  18693. }
  18694. },
  18695. openCocoPi(tool, i, uid, uname) {
  18696. let student = {
  18697. userid: uid,
  18698. student: uname,
  18699. };
  18700. if (tool == 57) {
  18701. window.parent.postMessage(
  18702. {
  18703. tools: tool + "teacher",
  18704. cid: this.id,
  18705. stage: this.courseType,
  18706. task: this.taskCount,
  18707. tool: i,
  18708. student: student,
  18709. },
  18710. "*"
  18711. );
  18712. }
  18713. },
  18714. setRightAnswer(s, i, j) {
  18715. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18716. if (
  18717. this.sentenceList[i].chooseSenList[q] == undefined ||
  18718. this.sentenceList[i].chooseSenList[q] == ""
  18719. ) {
  18720. this.sentenceList[i].chooseSenList[q] = s;
  18721. this.sentenceList[i].addChangeSen[j] = "";
  18722. break;
  18723. }
  18724. }
  18725. this.$forceUpdate();
  18726. },
  18727. returnCard(r, i, j) {
  18728. var a = this.sentenceList[i].addSentence.indexOf(r);
  18729. this.sentenceList[i].chooseSenList[j] = "";
  18730. this.sentenceList[i].addChangeSen[a] = r;
  18731. this.$forceUpdate();
  18732. },
  18733. // addSentenceTool() {
  18734. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18735. // this.taskCount
  18736. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18737. // this.sentenceList = [
  18738. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18739. // ];
  18740. // this.dialogVisibleSentence = false;
  18741. // },
  18742. toolsCount(a, t) {
  18743. let params = {
  18744. cid: this.id,
  18745. chid: this.courseType,
  18746. uid: this.userid,
  18747. tid: t,
  18748. count: a,
  18749. };
  18750. this.ajax
  18751. .get(this.$store.state.api + "insertToolsCount", params)
  18752. .then((res) => {
  18753. this.selectCount();
  18754. })
  18755. .catch((err) => {
  18756. console.error(err);
  18757. });
  18758. },
  18759. updateCount(c, t) {
  18760. c++;
  18761. let params = {
  18762. cid: this.id,
  18763. chid: this.courseType,
  18764. uid: this.userid,
  18765. tid: t,
  18766. count: c,
  18767. };
  18768. this.ajax
  18769. .get(this.$store.state.api + "updateToolsCount", params)
  18770. .then((res) => {
  18771. this.selectCount();
  18772. })
  18773. .catch((err) => {
  18774. console.error(err);
  18775. });
  18776. },
  18777. checkEva() {
  18778. if (this.evalua != "") {
  18779. for (var i = 0; i < this.evaJuri.length; i++) {
  18780. if (this.evalua == this.evaJuri[i].id) {
  18781. this.eTitle = this.evaJuri[i].title;
  18782. this.eJson = JSON.parse(this.evaJuri[i].content);
  18783. }
  18784. }
  18785. this.$forceUpdate();
  18786. setTimeout(() => {
  18787. this.setMindData();
  18788. }, 0);
  18789. }
  18790. },
  18791. selectEva() {
  18792. let params = {
  18793. oid: this.oid,
  18794. };
  18795. this.ajax
  18796. .get(this.$store.state.api + "selectAllEvaluation", params)
  18797. .then((res) => {
  18798. this.evaJuri = res.data[0];
  18799. })
  18800. .catch((err) => {
  18801. console.error(err);
  18802. });
  18803. },
  18804. setMindData() {
  18805. this.data.data = [];
  18806. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18807. let _eJson = Object.keys(this.eJson);
  18808. let _e = this.eJson;
  18809. for (let i = 0; i < _eJson.length; i++) {
  18810. let element = _e[_eJson[i]];
  18811. this.data.data.push({
  18812. id: element.id,
  18813. parentid: "root",
  18814. topic: element.name,
  18815. });
  18816. let _eJsonc = Object.keys(element.child);
  18817. let _e2 = element.child;
  18818. for (let j = 0; j < _eJsonc.length; j++) {
  18819. let _ec = _e2[_eJsonc[j]];
  18820. this.data.data.push({
  18821. id: _ec.id,
  18822. parentid: element.id,
  18823. topic: _ec.name,
  18824. });
  18825. let _eJsonz = Object.keys(_ec.child);
  18826. let _e3 = _ec.child;
  18827. for (let z = 0; z < _eJsonz.length; z++) {
  18828. let _ez = _e3[_eJsonz[z]];
  18829. this.data.data.push({
  18830. id: _ez.id,
  18831. parentid: _ec.id,
  18832. topic: _ez.name,
  18833. });
  18834. }
  18835. }
  18836. }
  18837. this.$forceUpdate();
  18838. },
  18839. checkFileFull(type, url) {
  18840. this.fullDialogVisible = true;
  18841. this.fulltype = type;
  18842. this.fullUrl = url;
  18843. },
  18844. async checkFileFull1(t, f) {
  18845. this.fullDialogVisible = true;
  18846. if (t == 6) {
  18847. this.fulltype = 1;
  18848. this.fullUrl = JSON.parse(JSON.stringify(f));
  18849. } else if (t == 8) {
  18850. this.fulltype = 2;
  18851. this.fullUrl = f.url;
  18852. } else if (
  18853. t == 3 &&
  18854. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18855. "PDF"
  18856. ) {
  18857. this.fulltype = 3;
  18858. this.fullUrl = f.url;
  18859. } else if (t == 3) {
  18860. this.fulltype = 2;
  18861. let _uuurl = await this.checkLink(f.url);
  18862. this.fullUrl =
  18863. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18864. }
  18865. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18866. },
  18867. openSname(n, id, i, uid) {
  18868. this.snameWid = id;
  18869. this.worksSName = n;
  18870. this.worksSid = uid == n ? "" : uid;
  18871. this.toolindex = i;
  18872. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18873. if (!this.uploadCid) {
  18874. this.$message.error(
  18875. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18876. );
  18877. return;
  18878. }
  18879. this.selectUploadStudent(1);
  18880. },
  18881. updateName() {
  18882. let params = {
  18883. n: this.worksSName,
  18884. cid: this.snameWid,
  18885. };
  18886. this.ajax
  18887. .get(this.$store.state.api + "updateCourseWorksName", params)
  18888. .then((res) => {
  18889. this.$message({
  18890. message: "修改成功",
  18891. type: "success",
  18892. });
  18893. this.dialogVisibleSname = false;
  18894. this.getCourseDetail(2);
  18895. this.snameWid = "";
  18896. this.worksSName = "";
  18897. })
  18898. .catch((err) => {
  18899. console.error(err);
  18900. });
  18901. },
  18902. downloadFile2(f) {
  18903. // const loading = this.$loading.service({
  18904. // background: "rgba(255, 255, 255, 0.7)",
  18905. // target: document.body,
  18906. // text: "文件加载中...",
  18907. // });
  18908. // let url2 = f.url;
  18909. // let _url2 = "";
  18910. // if (
  18911. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18912. // ) {
  18913. // _url2 = url2.split(
  18914. // "https://view.officeapps.live.com/op/view.aspx?src="
  18915. // )[1];
  18916. // } else {
  18917. // _url2 = url2;
  18918. // }
  18919. // let params = {
  18920. // url: _url2,
  18921. // name: f.name,
  18922. // };
  18923. // this.ajax
  18924. // .get(this.$store.state.api + "download", params)
  18925. // .then((res) => {
  18926. // loading.close();
  18927. // let content = res.data.data.data;
  18928. // let ab = new ArrayBuffer(content.length);
  18929. // let view = new Uint8Array(ab);
  18930. // for (var i = 0; i < content.length; ++i) {
  18931. // view[i] = content[i];
  18932. // }
  18933. // let elink = document.createElement("a");
  18934. // elink.download = f.name;
  18935. // elink.style.display = "none";
  18936. // let blob = new Blob([ab], {
  18937. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18938. // });
  18939. // elink.href = URL.createObjectURL(blob);
  18940. // document.body.appendChild(elink);
  18941. // elink.click();
  18942. // document.body.removeChild(elink);
  18943. // })
  18944. // .catch((err) => {
  18945. // loading.close();
  18946. // console.error(err);
  18947. // });
  18948. var credentials = {
  18949. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18950. secretAccessKey: "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",
  18951. }; //秘钥形式的登录上传
  18952. window.AWS.config.update(credentials);
  18953. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18954. let url2 = f.url;
  18955. let _url2 = "";
  18956. if (
  18957. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18958. ) {
  18959. _url2 = url2.split(
  18960. "https://view.officeapps.live.com/op/view.aspx?src="
  18961. )[1];
  18962. } else {
  18963. _url2 = url2;
  18964. }
  18965. let _this = this;
  18966. _this.downLoading = true
  18967. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18968. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18969. var params = {
  18970. Bucket: "ccrb",
  18971. Key: name
  18972. };
  18973. s3.getObject(params, function (err, data) {
  18974. _this.downLoading = false
  18975. if (err) console.log(err, err.stack); // an error occurred
  18976. else {
  18977. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18978. let a = document.createElement("a");
  18979. a.name = f.name;
  18980. a.href = url;
  18981. a.download = f.name;
  18982. a.click();
  18983. console.log(data);
  18984. } // sxuccessful response
  18985. });
  18986. return;
  18987. let url = f.url;
  18988. let _url = "";
  18989. if (
  18990. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18991. ) {
  18992. _url = url.split(
  18993. "https://view.officeapps.live.com/op/view.aspx?src="
  18994. )[1];
  18995. } else {
  18996. _url = url;
  18997. }
  18998. _this.downLoading = true
  18999. let x = new XMLHttpRequest();
  19000. x.open("GET", _url, true);
  19001. x.responseType = "blob";
  19002. x.onload = function () {
  19003. _this.downLoading = false
  19004. let url = window.URL.createObjectURL(new Blob([x.response]));
  19005. let a = document.createElement("a");
  19006. a.name = f.name;
  19007. a.href = url;
  19008. a.download = f.name;
  19009. a.click();
  19010. };
  19011. x.send();
  19012. },
  19013. downloadFile(url) {
  19014. // this.$message.info("查看作业-下载文件")
  19015. var credentials = {
  19016. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19017. secretAccessKey: "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",
  19018. }; //秘钥形式的登录上传
  19019. window.AWS.config.update(credentials);
  19020. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19021. let url2 = url;
  19022. let _url2 = "";
  19023. if (
  19024. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19025. ) {
  19026. _url2 = url2.split(
  19027. "https://view.officeapps.live.com/op/view.aspx?src="
  19028. )[1];
  19029. } else {
  19030. _url2 = url2;
  19031. }
  19032. const loading2 = this.$loading.service({
  19033. background: "rgba(255, 255, 255, 0.7)",
  19034. target: document.body,
  19035. text: "文件加载中...",
  19036. });
  19037. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19038. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19039. var params = {
  19040. Bucket: "ccrb",
  19041. Key: name
  19042. };
  19043. s3.getObject(params, function (err, data) {
  19044. loading2.close();
  19045. if (err) console.log(err, err.stack); // an error occurred
  19046. else {
  19047. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19048. let a = document.createElement("a");
  19049. a.name = name;
  19050. a.href = url;
  19051. a.download = name;
  19052. a.click();
  19053. console.log(data);
  19054. } // sxuccessful response
  19055. });
  19056. return;
  19057. let _this = this;
  19058. let _url = "";
  19059. if (
  19060. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19061. ) {
  19062. _url = url.split(
  19063. "https://view.officeapps.live.com/op/view.aspx?src="
  19064. )[1];
  19065. } else {
  19066. _url = url;
  19067. }
  19068. const x = new XMLHttpRequest();
  19069. x.open("GET", _url, true);
  19070. x.responseType = "blob";
  19071. // this.downLoading = true
  19072. const loading = _this.$loading.service({
  19073. background: "rgba(255, 255, 255, 0.7)",
  19074. target: document.body,
  19075. text: "文件加载中...",
  19076. });
  19077. // _this.$message.success("文件下载中...");
  19078. x.onload = function (e) {
  19079. loading.close();
  19080. let content = x.response;
  19081. let elink = document.createElement("a");
  19082. elink.download = decodeURI(
  19083. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19084. );
  19085. elink.style.display = "none";
  19086. let blob = new Blob([content]);
  19087. elink.href = URL.createObjectURL(blob);
  19088. document.body.appendChild(elink);
  19089. elink.click();
  19090. document.body.removeChild(elink);
  19091. };
  19092. x.send();
  19093. },
  19094. openLine(url) {
  19095. window.open(url);
  19096. },
  19097. resize() {
  19098. if (document.getElementsByClassName("box_course").length) {
  19099. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19100. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19101. if (this.showType == 2 || this.showType == 3) {
  19102. document.getElementsByClassName("navBox")[0].style.height =
  19103. a - 40 + 0+ "px";
  19104. } else {
  19105. document.getElementsByClassName("navBox")[0].style.height =
  19106. a - 40 + "px";
  19107. }
  19108. }
  19109. this.Stbodywidth =
  19110. document.getElementsByClassName("student_body").length &&
  19111. document.getElementsByClassName("student_body")[0].offsetWidth;
  19112. },
  19113. closeDraw() {
  19114. this.bg = null;
  19115. this.drawShow = false;
  19116. },
  19117. showPicturePaint(url) {
  19118. let params = {
  19119. img: url,
  19120. };
  19121. this.ajax
  19122. .get(this.$store.state.api + "imgToBase64", params)
  19123. .then((res) => {
  19124. this.drawShow = true;
  19125. this.bg = res.data[0].img;
  19126. })
  19127. .catch((err) => {
  19128. console.error(err);
  19129. });
  19130. },
  19131. addImgDraw(base64) {
  19132. let file = { name: "批注图.png" };
  19133. let img = this.dataUrlToFile(base64, file);
  19134. this.beforeUpload1(img, 5);
  19135. },
  19136. addImgDrawImG(url) {
  19137. // console.log(url);
  19138. let params = [
  19139. {
  19140. wid: this.commentDetail.wid,
  19141. img: url,
  19142. },
  19143. ];
  19144. this.ajax
  19145. .post(this.$store.state.api + "updateCourseWorks", params)
  19146. .then((res) => {
  19147. this.$message({
  19148. message: "提交成功",
  19149. type: "success",
  19150. });
  19151. this.drawShow = false;
  19152. this.bg = "";
  19153. this.selectSWorks();
  19154. this.selectStudent();
  19155. })
  19156. .catch((err) => {
  19157. this.$message.error("提交失败");
  19158. console.error(err);
  19159. });
  19160. },
  19161. deletePicturePaint() {
  19162. this.$confirm("确定删除此批注吗?", "提示", {
  19163. confirmButtonText: "确定",
  19164. cancelButtonText: "取消",
  19165. type: "warning",
  19166. })
  19167. .then(() => {
  19168. let params = [
  19169. {
  19170. wid: this.commentDetail.wid,
  19171. img: "",
  19172. },
  19173. ];
  19174. this.ajax
  19175. .post(this.$store.state.api + "updateCourseWorks", params)
  19176. .then((res) => {
  19177. this.$message({
  19178. message: "删除成功",
  19179. type: "success",
  19180. });
  19181. this.selectSWorks();
  19182. this.selectStudent();
  19183. })
  19184. .catch((err) => {
  19185. this.$message.error("删除失败");
  19186. console.error(err);
  19187. });
  19188. })
  19189. .catch(() => {});
  19190. },
  19191. getAudioVideo(constraintsData) {
  19192. if (navigator.mediaDevices === undefined) {
  19193. navigator.mediaDevices = {};
  19194. }
  19195. if (navigator.mediaDevices.getUserMedia === undefined) {
  19196. navigator.mediaDevices.getUserMedia = function (constraints) {
  19197. // 首先,如果有getUserMedia的话,就获得它
  19198. var getUserMedia =
  19199. navigator.getUserMedia ||
  19200. navigator.webkitGetUserMedia ||
  19201. navigator.mozGetUserMedia ||
  19202. navigator.msGetUserMedia;
  19203. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19204. if (!getUserMedia) {
  19205. return Promise.reject({ code: 404 });
  19206. }
  19207. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19208. return new Promise(function (resolve, reject) {
  19209. getUserMedia.call(navigator, constraints, resolve, reject);
  19210. });
  19211. };
  19212. }
  19213. return navigator.mediaDevices.getUserMedia(constraintsData);
  19214. },
  19215. /**
  19216. * 开始录制
  19217. */
  19218. startRecording(callback) {
  19219. let _function = (screenStream) => {
  19220. this.addStreamStopListener(screenStream, () => {
  19221. console.log("流停止监听");
  19222. this.stopRecording();
  19223. this.$emit("streamStop", {});
  19224. // this.stopRecording();
  19225. });
  19226. var options = {
  19227. type: "video",
  19228. mimeType: "video/webm",
  19229. disableLogs: false,
  19230. getNativeBlob: false, // enable it for longer recordings
  19231. ignoreMutedMedia: false,
  19232. };
  19233. // this.video.srcObject = screenStream;
  19234. this.recorder = RecordRTC(screenStream, options);
  19235. this.recorder.startRecording();
  19236. this.recorder.screen = screenStream;
  19237. this.videoStart = true;
  19238. // callback(true);
  19239. };
  19240. this.getAudioVideo({ audio: true })
  19241. .then((res) => {
  19242. this.captureScreen(_function, true);
  19243. console.log("已点击允许,开启成功");
  19244. })
  19245. .catch((err) => {
  19246. // console.log('浏览器不支持,请更换浏览器')
  19247. // } else {
  19248. this.captureScreen(_function, false);
  19249. console.log("请检查是否存在麦克风");
  19250. });
  19251. },
  19252. /**
  19253. * 停止录制
  19254. */
  19255. stopRecording(callback) {
  19256. this.recorder.stopRecording(() => {
  19257. // this.video.src = this.video.srcObject = null;
  19258. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19259. const url = URL.createObjectURL(this.recorder.getBlob());
  19260. const a = document.createElement("a"); //this.fileName+
  19261. let videoFile = new File(
  19262. [this.recorder.getBlob()],
  19263. this.courseDetail.title + "录屏.mp4",
  19264. {
  19265. type: "video/mp4",
  19266. }
  19267. );
  19268. let downloadUrl = URL.createObjectURL(videoFile);
  19269. if(this.$refs.classRoomHelperRef){
  19270. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19271. }
  19272. document.body.appendChild(a);
  19273. a.style.display = "none";
  19274. a.href = url;
  19275. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19276. a.click();
  19277. this.recorder.screen.stop();
  19278. this.recorder.destroy();
  19279. this.recorder = null;
  19280. this.videoStart = false;
  19281. // callback(false);
  19282. });
  19283. },
  19284. //初始化
  19285. captureScreen(callback, type) {
  19286. if (navigator.getDisplayMedia) {
  19287. //录制结束,文件下载
  19288. navigator
  19289. .getDisplayMedia({
  19290. video: true,
  19291. })
  19292. .then((screenStream) => {
  19293. if (type) {
  19294. navigator.mediaDevices
  19295. .getUserMedia({ audio: true })
  19296. .then((mic) => {
  19297. screenStream.addTrack(mic.getTracks()[0]);
  19298. callback(screenStream);
  19299. });
  19300. } else {
  19301. callback(screenStream);
  19302. }
  19303. })
  19304. .catch(function (error) {
  19305. console.log("error", error);
  19306. });
  19307. } else if (navigator.mediaDevices.getDisplayMedia) {
  19308. navigator.mediaDevices
  19309. .getDisplayMedia({
  19310. video: true,
  19311. })
  19312. .then((screenStream) => {
  19313. if (type) {
  19314. navigator.mediaDevices
  19315. .getUserMedia({ audio: true })
  19316. .then((mic) => {
  19317. screenStream.addTrack(mic.getTracks()[0]);
  19318. callback(screenStream);
  19319. });
  19320. } else {
  19321. callback(screenStream);
  19322. }
  19323. })
  19324. .catch(function (error) {
  19325. console.log("error", error);
  19326. });
  19327. } else {
  19328. var error = "getDisplayMedia API are not supported in this browser.";
  19329. console.log("error", error);
  19330. alert(error);
  19331. }
  19332. },
  19333. //流监听
  19334. addStreamStopListener(stream, callback) {
  19335. stream.addEventListener(
  19336. "ended",
  19337. function () {
  19338. callback();
  19339. callback = function () {};
  19340. },
  19341. false
  19342. );
  19343. stream.addEventListener(
  19344. "inactive",
  19345. function () {
  19346. callback();
  19347. callback = function () {};
  19348. },
  19349. false
  19350. );
  19351. stream.getTracks().forEach(function (track) {
  19352. track.addEventListener(
  19353. "ended",
  19354. function () {
  19355. callback();
  19356. callback = function () {};
  19357. },
  19358. false
  19359. );
  19360. track.addEventListener(
  19361. "inactive",
  19362. function () {
  19363. callback();
  19364. callback = function () {};
  19365. },
  19366. false
  19367. );
  19368. });
  19369. },
  19370. updateGroup() {
  19371. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19372. this.dialogVisibleGroup2 = true;
  19373. },
  19374. numberPan() {
  19375. if (
  19376. /[^\d]/.test(this.groupJson.number) ||
  19377. this.groupJson.number < 2 ||
  19378. this.groupJson.number > 10
  19379. ) {
  19380. this.$message.error("请输入2-10的数字");
  19381. this.groupJson.number = "";
  19382. }
  19383. },
  19384. updateGroupJson() {
  19385. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19386. if (
  19387. this.groupStudentUid[this.toolindex][i].length >
  19388. this.groupJson2.number
  19389. ) {
  19390. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19391. return;
  19392. }
  19393. }
  19394. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19395. this.islock = this.groupJson.islock == 1 ? true : false;
  19396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19397. this.taskCount
  19398. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19399. let params = [
  19400. {
  19401. cid: this.id,
  19402. chapters: JSON.stringify(this.chapInfoList),
  19403. uid: this.userid,
  19404. unitIndex: this.courseType,
  19405. },
  19406. ];
  19407. this.ajax
  19408. .post(this.$store.state.api + "updateWorkNew4", params)
  19409. .then((res) => {
  19410. this.$message.success("设置成功");
  19411. this.getCourseDetail(2);
  19412. this.dialogVisibleGroup2 = false;
  19413. this.groupJson2 = {};
  19414. this.$forceUpdate();
  19415. })
  19416. .catch((err) => {
  19417. this.$message.error("网络不佳");
  19418. console.error(err);
  19419. });
  19420. },
  19421. lockChair() {
  19422. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19423. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19424. this.updateGroupJson();
  19425. },
  19426. selectGroup(index) {
  19427. this.getCourseDetail(2, index);
  19428. },
  19429. joinGroup(index) {
  19430. if (this.groupJson.islock == 2) {
  19431. this.$message.error("位置已被锁定,无法加入");
  19432. return;
  19433. }
  19434. if (
  19435. this.groupStudent[this.toolindex][index].length >
  19436. this.groupJson.number ||
  19437. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19438. ) {
  19439. this.$message.error("位置已满,无法加入");
  19440. return;
  19441. }
  19442. let params = [
  19443. {
  19444. cid: this.id,
  19445. stage: this.courseType,
  19446. task: this.taskCount,
  19447. tool: this.toolindex,
  19448. g: index,
  19449. uid: this.userid,
  19450. },
  19451. ];
  19452. this.ajax
  19453. .post(this.$store.state.api + "joinGroup", params)
  19454. .then((res) => {
  19455. this.$message.success("加入成功");
  19456. this.getCourseDetail(2);
  19457. })
  19458. .catch((err) => {
  19459. this.$message.error("网络不佳");
  19460. console.error(err);
  19461. });
  19462. },
  19463. exitGroup(id) {
  19464. if (this.groupJson.islock == 2) {
  19465. this.$message.error("位置已被锁定,无法退出");
  19466. return;
  19467. }
  19468. let params = [
  19469. {
  19470. gid: id,
  19471. },
  19472. ];
  19473. this.ajax
  19474. .post(this.$store.state.api + "exitGroup", params)
  19475. .then((res) => {
  19476. this.$message.success("退出成功");
  19477. this.getCourseDetail(2);
  19478. })
  19479. .catch((err) => {
  19480. this.$message.error("网络不佳");
  19481. console.error(err);
  19482. });
  19483. },
  19484. groupUpload(index, task, gindex) {
  19485. this.taskCount = task;
  19486. this.toolindex = index;
  19487. this.groupIndex = gindex;
  19488. this.dialogVisibleGroupWork = true;
  19489. },
  19490. updateGroupChair(user) {
  19491. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19492. el.label = index;
  19493. return index != user.group;
  19494. });
  19495. this.updateGroupUser = user;
  19496. this.dialogVisibleUpdateGroup = true;
  19497. },
  19498. updateChair() {
  19499. if (
  19500. this.groupStudent[this.toolindex][this.checkChair].length >
  19501. this.groupJson.number ||
  19502. this.groupStudent[this.toolindex][this.checkChair].length ==
  19503. this.groupJson.number
  19504. ) {
  19505. this.$message.error("位置已满,无法加入");
  19506. return;
  19507. }
  19508. let params = [
  19509. {
  19510. cid: this.id,
  19511. stage: this.courseType,
  19512. task: this.taskCount,
  19513. tool: this.toolindex,
  19514. g: this.checkChair,
  19515. uid: this.updateGroupUser.userid,
  19516. },
  19517. ];
  19518. this.ajax
  19519. .post(this.$store.state.api + "joinGroup", params)
  19520. .then((res) => {
  19521. this.$message.success("修改成功");
  19522. this.updateGroupUser = {};
  19523. this.checkChair = "";
  19524. this.updateGroupArray = {};
  19525. this.dialogVisibleUpdateGroup = false;
  19526. this.getCourseDetail(2);
  19527. })
  19528. .catch((err) => {
  19529. this.$message.error("网络不佳");
  19530. console.error(err);
  19531. });
  19532. },
  19533. deleteGroupChair(gindex) {
  19534. this.checkDeleteGroup = [];
  19535. this.deleteGroupUser = JSON.parse(
  19536. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19537. );
  19538. this.deleteGroupArray = this.groupJson.group[gindex];
  19539. this.groupIndex = gindex;
  19540. this.dialogVisibleDeleteGroup = true;
  19541. },
  19542. async deleteChair() {
  19543. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19544. const gid =
  19545. this.groupStudent[this.toolindex][this.groupIndex][
  19546. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19547. this.checkDeleteGroup[i]
  19548. )
  19549. ];
  19550. let params = [
  19551. {
  19552. gid: gid.id,
  19553. },
  19554. ];
  19555. var a = await this.deleteChairA(params);
  19556. if (i == this.checkDeleteGroup.length - 1) {
  19557. this.$message.success("退出成功");
  19558. this.dialogVisibleDeleteGroup = false;
  19559. this.deleteGroupUser = [];
  19560. this.deleteGroupArray = {};
  19561. this.groupIndex = "";
  19562. this.checkDeleteGroup = [];
  19563. this.getCourseDetail(2);
  19564. }
  19565. }
  19566. },
  19567. deleteChairA(params) {
  19568. return new Promise((resolve, reject) => {
  19569. this.ajax
  19570. .post(this.$store.state.api + "exitGroup", params)
  19571. .then((res) => {
  19572. resolve(1);
  19573. })
  19574. .catch((err) => {
  19575. this.$message.error("网络不佳");
  19576. console.error(err);
  19577. });
  19578. });
  19579. },
  19580. contract(i) {
  19581. if (this.isCloseList[i].isClose == 0) {
  19582. this.isCloseList[i].isClose = 1;
  19583. } else {
  19584. this.isCloseList[i].isClose = 0;
  19585. }
  19586. this.$forceUpdate();
  19587. },
  19588. openWordCloud(toolindex) {
  19589. let array = [];
  19590. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19591. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19592. array.push({ name: works });
  19593. }
  19594. if (this.isGroup) {
  19595. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19596. let works = this.courseGroup.group[i].works[toolindex];
  19597. for (var j = 0; j < works.length; j++) {
  19598. let answer = JSON.parse(works[j].works)[0].answer;
  19599. array.push({ name: answer });
  19600. }
  19601. }
  19602. }
  19603. this.wordCloudData = array;
  19604. this.dialogVisibleWordCloud = true;
  19605. },
  19606. uploadWorks(i) {
  19607. this.$confirm("确定导出作业吗?", "提示", {
  19608. confirmButtonText: "确定",
  19609. cancelButtonText: "取消",
  19610. type: "warning",
  19611. })
  19612. .then(() => {
  19613. const loading = this.$loading.service({
  19614. background: "rgba(255, 255, 255, 0.7)",
  19615. target: document.body,
  19616. text: "文件加载中...",
  19617. });
  19618. const _worksStudent = this.worksStudent;
  19619. let url = [];
  19620. var counts = {};
  19621. for (var l = 0; l < _worksStudent[i].length; l++) {
  19622. var item = _worksStudent[i][l];
  19623. var name = item.sName;
  19624. if (!counts.hasOwnProperty(name)) {
  19625. counts[name] = 0;
  19626. } else {
  19627. counts[name]++;
  19628. }
  19629. if (counts[name] > 0) {
  19630. item.sName += " (" + counts[name] + ")";
  19631. }
  19632. }
  19633. for (var l = 0; l < _worksStudent[i].length; l++) {
  19634. var item = _worksStudent[i][l];
  19635. if (
  19636. item.works.indexOf(
  19637. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19638. ) !== -1 &&
  19639. item.works.indexOf("img") === -1
  19640. ) {
  19641. url.push({ name: item.sName, url: item.works });
  19642. }
  19643. }
  19644. // var toolList = [
  19645. // { name: "电子白板", tool: 1 },
  19646. // { name: "思维导图", tool: 3 },
  19647. // { name: "协同文档", tool: 6 },
  19648. // { name: "思维网格", tool: 7 },
  19649. // { name: "素材库", tool: 8 },
  19650. // { name: "学习资料", tool: 17 },
  19651. // { name: "便签", tool: 2 },
  19652. // { name: "问卷调查", tool: 4 },
  19653. // { name: "选择题", tool: 45 },
  19654. // { name: "倒计时", tool: 10 },
  19655. // { name: "问答", tool: 15 },
  19656. // { name: "课程设计", tool: 26 },
  19657. // { name: "训练服务器", tool: 18 },
  19658. // { name: "作业提交", tool: 16 },
  19659. // { name: "批量上传", tool: 50 },
  19660. // { name: "AIoT Blockly", tool: 21 },
  19661. // { name: "AI Python", tool: 23 },
  19662. // { name: "AI Blockly", tool: 24 },
  19663. // { name: "目标管理", tool: 25 },
  19664. // { name: "数学画板", tool: 31 },
  19665. // { name: "翻译", tool: 28 },
  19666. // { name: "魔盒识字", tool: 37 },
  19667. // { name: "数学画板", tool: 31 },
  19668. // { name: "24点", tool: 38 },
  19669. // { name: "GeoGebra", tool: 39 },
  19670. // { name: "源码编辑", tool: 32 },
  19671. // { name: "个人评价", tool: 40 },
  19672. // { name: "选择匹配", tool: 41 },
  19673. // { name: "汉字宫", tool: 44 },
  19674. // { name: "排序", tool: 47 },
  19675. // { name: "表格", tool: 48 },
  19676. // { name: "文档", tool: 52 },
  19677. // { name: "学生分组", tool: 49 },
  19678. // { name: "CocoPi", tool: 57 },
  19679. // { name: "模拟驾驶", tool: 58 },
  19680. // { name: "路径搜索", tool: 59 },
  19681. // { name: "深度学习", tool: 60 },
  19682. // { name: "全历史", tool: 61 },
  19683. // { name: "交互视频", tool: 62 },
  19684. // { name: "海龟编程", tool: 63 },
  19685. // { name: "挑人", tool: 65 },
  19686. // { name: "公式编辑", tool: 66 },
  19687. // { name: "分子结构", tool: 67 },
  19688. // { name: "时间轴", tool: 68 },
  19689. // ];
  19690. // var toolName = "";
  19691. // for(var w = 0;w<toolList.length;w++){
  19692. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19693. // toolName = toolList[w].name;
  19694. // }
  19695. // }
  19696. console.log(url);
  19697. this.downLoadAll(url, loading);
  19698. })
  19699. .catch(() => {});
  19700. },
  19701. downLoadAll(url, loading) {
  19702. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19703. const zip = new JSZip();
  19704. const cache = {};
  19705. const promises = [];
  19706. data.forEach((item) => {
  19707. const promise = getFile(item.url).then((data) => {
  19708. if (data.data != 1) {
  19709. // 下载文件, 并存成ArrayBuffer对象
  19710. const file_name =
  19711. item.name +
  19712. "." +
  19713. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19714. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19715. cache[file_name] = data.data;
  19716. }
  19717. });
  19718. promises.push(promise);
  19719. });
  19720. Promise.all(promises).then(() => {
  19721. zip.generateAsync({ type: "blob" }).then((content) => {
  19722. // 生成二进制流
  19723. FileSaver.saveAs(
  19724. content,
  19725. this.courseDetail.title + "-" + "作业提交工具.zip"
  19726. ); // 利用file-saver保存文件 自定义文件名
  19727. setTimeout(() => {
  19728. loading.close();
  19729. }, 2000);
  19730. });
  19731. });
  19732. },
  19733. pickStudent(stu) {
  19734. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19735. return;
  19736. }
  19737. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19738. confirmButtonText: "确定",
  19739. cancelButtonText: "取消",
  19740. type: "warning",
  19741. })
  19742. .then(() => {
  19743. let params = [
  19744. {
  19745. uid: stu.userid,
  19746. cid: this.id,
  19747. stage: this.courseType,
  19748. task: this.taskCount,
  19749. tool: this.toolindex,
  19750. },
  19751. ];
  19752. this.ajax
  19753. .post(this.$store.state.api + "updateCoursePick", params)
  19754. .then((res) => {
  19755. this.$message.success("操作成功");
  19756. this.getPick();
  19757. })
  19758. .catch((err) => {
  19759. this.$message.error("网络不佳");
  19760. console.error(err);
  19761. });
  19762. })
  19763. .catch(() => {});
  19764. },
  19765. selectUser(){
  19766. let params = {
  19767. userid: this.userid,
  19768. };
  19769. this.ajax
  19770. .get(this.$store.state.api + "selectUser", params)
  19771. .then((res) => {
  19772. this.userMes = res.data[0];
  19773. })
  19774. .catch((err) => {
  19775. console.error(err);
  19776. });
  19777. },
  19778. setEngText(i){
  19779. this.newEngIndex = i;
  19780. this.$forceUpdate();
  19781. },
  19782. addCorrect(){
  19783. this.$confirm("你确定提交批改嘛?", "提示", {
  19784. confirmButtonText: "确定",
  19785. showCancelButton: false,
  19786. closeOnClickModal: false,
  19787. type: "warning",
  19788. })
  19789. .then(() => {
  19790. let params = {
  19791. cid: this.id,
  19792. s: parseInt(this.courseType),
  19793. t: this.taskCount,
  19794. tool: this.toolindex,
  19795. wid: this.engWid,
  19796. c: this.userid,
  19797. 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) : "",
  19798. };
  19799. this.ajax
  19800. .get(this.$store.state.api + "addEngC", params)
  19801. .then((res) => {
  19802. this.$message.success("提交成功");
  19803. this.engUpdateDialogVisible = false;
  19804. })
  19805. .catch((err) => {
  19806. console.error(err);
  19807. });
  19808. })
  19809. .catch(() => {});
  19810. },
  19811. selectEngC(id,z){
  19812. let params = {
  19813. workid: id,
  19814. };
  19815. this.ajax
  19816. .get(this.$store.state.api + "selectEngC", params)
  19817. .then((res) => {
  19818. if(res.data[0].length == 0){
  19819. this.newEnglishList.engTitle = z.engTitle;
  19820. this.newEnglishList.engText = z.engText;
  19821. }else{
  19822. var a = res.data[0];
  19823. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19824. if(this.userMes[0].type == 2){
  19825. var snum = 0;
  19826. for(var i = 0;i<a.length;i++){
  19827. if(this.userMes[0].userid == a[i].correct){
  19828. this.newEnglishList = JSON.parse(a[i].cWork);
  19829. snum = 1;
  19830. }
  19831. }
  19832. if(snum == 0){
  19833. this.newEnglishList = { engTitle:"",engText:"" };
  19834. this.newEnglishList.engTitle = z.engTitle;
  19835. this.newEnglishList.engText = z.engText;
  19836. }
  19837. }else if(this.userMes[0].type == 1){
  19838. var num = 0;
  19839. for(var w= 0;w<a.length;w++){
  19840. if(this.userMes[0].userid == a[w].correct){
  19841. num = 1;
  19842. }
  19843. }
  19844. if(num == 0){
  19845. this.isNoUserid = true;
  19846. var c = JSON.parse(JSON.stringify(z));
  19847. this.oldEnglishJson1 = c;
  19848. }else{
  19849. this.isNoUserid = false;
  19850. }
  19851. var b = a.sort((item, index) => {
  19852. console.log(item)
  19853. if (item.correct === this.userMes[0].userid) {
  19854. return -1; // 将a移到前面
  19855. } else if (index.correct === this.userMes[0].userid) {
  19856. return 1; // 将b移到前面
  19857. } else {
  19858. return 0; // 保持默认顺序
  19859. }
  19860. });
  19861. for(var p = 0;p<b.length;p++){
  19862. for(var y = 0;y<ppp.length;y++){
  19863. if(b[p].id == ppp[y].id){
  19864. b[p].cWork = JSON.parse(ppp[y].cWork);
  19865. break
  19866. }
  19867. }
  19868. }
  19869. this.newEnglishList1 = b;
  19870. }
  19871. }
  19872. this.greyType = false;
  19873. setTimeout(() => {
  19874. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19875. if(this.newEnglishList1.length > 0){
  19876. if(this.isNoUserid == true){
  19877. this.engListLength = this.newEnglishList1.length + 1;
  19878. this.newEngIndex = -1;
  19879. }else{
  19880. this.engListLength = this.newEnglishList1.length;
  19881. this.newEngIndex = 0;
  19882. }
  19883. }
  19884. if(this.userMes[0].type == 2){
  19885. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19886. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19887. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19888. }else if(this.newEngIndex == -1){
  19889. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19890. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19891. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19892. }
  19893. }, 500);
  19894. this.engUpdateDialogVisible = true;
  19895. this.$forceUpdate();
  19896. })
  19897. .catch((err) => {
  19898. console.error(err);
  19899. });
  19900. },
  19901. getPick() {
  19902. let params = {
  19903. cid: this.id,
  19904. };
  19905. this.ajax
  19906. .get(this.$store.state.api + "getPick", params)
  19907. .then((res) => {
  19908. let array = [];
  19909. for (var i = 0; i < res.data[0].length; i++) {
  19910. array.push(res.data[0][i].userid);
  19911. }
  19912. this.isPickStudent = array;
  19913. if (array.indexOf(this.userid) !== -1) {
  19914. this.$confirm("你被老师选到啦!", "提示", {
  19915. confirmButtonText: "确定",
  19916. showCancelButton: false,
  19917. closeOnClickModal: false,
  19918. type: "warning",
  19919. })
  19920. .then(() => {
  19921. let pa = [
  19922. {
  19923. uid: this.userid,
  19924. cid: this.id,
  19925. },
  19926. ];
  19927. this.ajax
  19928. .post(this.$store.state.api + "deletePick", pa)
  19929. .then((res) => {
  19930. this.getPick();
  19931. })
  19932. .catch((err) => {
  19933. this.$message.error("网络不佳");
  19934. console.error(err);
  19935. });
  19936. })
  19937. .catch(() => {});
  19938. }
  19939. })
  19940. .catch((err) => {
  19941. this.$message.error("网络不佳");
  19942. console.error(err);
  19943. });
  19944. },
  19945. foldEva() {
  19946. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19947. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19948. } else {
  19949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19950. setTimeout(() => {
  19951. this.checkEva();
  19952. setTimeout(() => {
  19953. this.checkEva();
  19954. }, 500);
  19955. }, 0);
  19956. }
  19957. this.$forceUpdate();
  19958. },
  19959. panToolHeight(tool) {
  19960. var _tool = document.querySelectorAll('#'+tool)[0]
  19961. var _toolA = _tool ? _tool.offsetHeight : 0
  19962. var _toolC = 0
  19963. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19964. let boolean2 = (_toolA > _toolC) ? true : false
  19965. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19966. this.$forceUpdate();
  19967. },
  19968. async checkLink(url) {
  19969. console.log(url)
  19970. let _url = url
  19971. try {
  19972. const response = await fetch(url);
  19973. if(!response.ok){
  19974. _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]))
  19975. }
  19976. console.log(response.ok)
  19977. } catch (error) {
  19978. console.error('Error checking link:', error);
  19979. // console.log(false)
  19980. _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]))
  19981. }
  19982. // console.log(_url)
  19983. return _url
  19984. },
  19985. getScoreList(){
  19986. let params = {
  19987. cid: this.id,
  19988. };
  19989. this.ajax
  19990. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19991. .then((res) => {
  19992. let result = res.data;
  19993. this.scoreList.datalist = result[0];
  19994. this.scoreList.isScoreList = result[1];
  19995. })
  19996. .catch((err) => {
  19997. console.error(err);
  19998. });
  19999. },
  20000. setClassRoomHelperWidth(width){
  20001. this.classRoomHelperWidth = width
  20002. },
  20003. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20004. this.$refs.choseWorksDetailDialogRef.open({
  20005. toolType:tooc,
  20006. tType: this.tType,
  20007. toolIndex: toolIndex
  20008. });
  20009. this.changeSplitScreenBehavior({
  20010. code: 1,
  20011. form: {
  20012. toolType:tooc,
  20013. toolIndex: toolIndex,
  20014. courseType: this.courseType,
  20015. taskCount: this.taskCount,
  20016. type: 0
  20017. }
  20018. });
  20019. },
  20020. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20021. this.$refs.statisticalAnalysisRef.open({
  20022. worksStudent: this.worksStudent[toolIndex],
  20023. tType: this.tType,
  20024. toolIndex: toolIndex
  20025. });
  20026. this.changeSplitScreenBehavior({
  20027. code: 2,
  20028. form: {
  20029. toolType:4,
  20030. courseType: this.courseType,
  20031. taskCount: this.taskCount,
  20032. toolIndex: toolIndex,
  20033. type: 0
  20034. }
  20035. });
  20036. },
  20037. statisticalAnalysisRefresh(toolIndex) {
  20038. this.$refs.statisticalAnalysisRef.refreshData({
  20039. worksStudent: this.worksStudent[toolIndex],
  20040. tType: this.tType,
  20041. toolIndex: toolIndex
  20042. });
  20043. },
  20044. async splitScreenBehavior(type = 0) {
  20045. // return;
  20046. if (this.splitScreenData.loading)
  20047. return this.$message.info("操作过快,请稍等");
  20048. if (type == 0) {
  20049. //关闭分屏
  20050. this.splitScreenData.isOpen = false;
  20051. // this.splitScreenData.userId = "";
  20052. // this.splitScreenData.uid = "";
  20053. this.splitScreenData.behavior = null;
  20054. await this.updateSplitScreenData(1);
  20055. this.$message.success("已关闭分屏模式");
  20056. this.studentFreePreview(false);
  20057. this.OpenJobPreview(false);
  20058. // this.followingMode(false);
  20059. } else if (type == 1) {
  20060. //开启分屏
  20061. this.splitScreenData.isOpen = true;
  20062. this.splitScreenData.userId = this.userid;
  20063. this.splitScreenData.uid = this.splitScreenData.myUid;
  20064. this.splitScreenData.behavior = null;
  20065. let status = await this.updateSplitScreenData(0);
  20066. this.changeSplitScreenBehavior({form:{}})
  20067. if (status == 1) {
  20068. this.$message.success("已开启分屏");
  20069. this.studentFreePreview(true);
  20070. this.OpenJobPreview(true);
  20071. // this.followingMode(true);
  20072. } else {
  20073. this.splitScreenData.isOpen = false;
  20074. this.splitScreenData.userId = "";
  20075. this.splitScreenData.uid = "";
  20076. this.splitScreenData.behavior = null;
  20077. this.$message.success("分屏开启失败");
  20078. }
  20079. }
  20080. },
  20081. getSplitScreenData() {
  20082. // return;
  20083. if (this.tType != 1) return;
  20084. let params = {
  20085. cid: this.id
  20086. };
  20087. this.ajax
  20088. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20089. .then(async res => {
  20090. let data = res.data[0][0]["splitScreenData"];
  20091. console.log("获取了分屏数:", data);
  20092. if (data) {
  20093. data = JSON.parse(data);
  20094. if (
  20095. !this.splitScreenData.isOpen &&
  20096. data.isOpen &&
  20097. this.splitScreenData.myUid == data.uid
  20098. ) {
  20099. this.splitScreenData.isOpen = false;
  20100. this.splitScreenData.userId = "";
  20101. this.splitScreenData.uid = "";
  20102. this.splitScreenData.behavior = null;
  20103. await this.updateSplitScreenData(1);
  20104. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20105. this.splitScreenData.isOpen = true;
  20106. this.splitScreenData.uid = data.uid;
  20107. this.splitScreenData.userId = data.userId;
  20108. this.splitScreenData.behavior = data.behavior;
  20109. this.$message.success("分屏模式已开启");
  20110. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20111. this.splitScreenData.isOpen = false;
  20112. this.splitScreenData.userId = "";
  20113. this.splitScreenData.uid = "";
  20114. this.splitScreenData.behavior = null;
  20115. this.$message.error("已结束分屏模式");
  20116. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20117. this.splitScreenData.isOpen = true;
  20118. this.splitScreenData.uid = data.uid;
  20119. this.splitScreenData.userId = data.userId;
  20120. this.splitScreenData.behavior = data.behavior;
  20121. }
  20122. this.doSplitScreenBehavior();
  20123. } else {
  20124. if (this.splitScreenData.isOpen) {
  20125. this.splitScreenData.isOpen = false;
  20126. this.splitScreenData.userId = "";
  20127. this.splitScreenData.uid = "";
  20128. this.splitScreenData.behavior = null;
  20129. this.$message.error("已结束分屏模式");
  20130. }
  20131. }
  20132. })
  20133. .catch(e => {
  20134. console.log("获取分屏数出错:", e);
  20135. });
  20136. },
  20137. doSplitScreenBehavior() {
  20138. if (
  20139. this.splitScreenData.isOpen &&
  20140. this.splitScreenData.uid != this.splitScreenData.myUid
  20141. ) {
  20142. let behavior = this.splitScreenData.behavior;
  20143. if (behavior) {
  20144. if (behavior.code === 99) {
  20145. //初始化
  20146. this.fullDialogVisible = false;
  20147. if(this.$refs.choseWorksDetailDialogRef.show){
  20148. this.$refs.choseWorksDetailDialogRef.close();
  20149. }
  20150. if(this.$refs.statisticalAnalysisRef.show){
  20151. this.$refs.statisticalAnalysisRef.close();
  20152. }
  20153. } else if (behavior.code === 0) {
  20154. //开启内容列表弹窗
  20155. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20156. } else if (behavior.code === 1) {
  20157. //关于选择题的作业详细的操作
  20158. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20159. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20160. this.courseType = behavior.form.courseType;
  20161. this.taskCount = behavior.form.taskCount;
  20162. }
  20163. this.$nextTick(() => {
  20164. if (this.$refs.choseWorksDetailDialogRef.show) {
  20165. //已经打开了
  20166. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20167. } else {
  20168. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20169. }
  20170. });
  20171. }else if(behavior.code === 2){
  20172. if(this.$refs.statisticalAnalysisRef.show){
  20173. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20174. }else{
  20175. this.$refs.statisticalAnalysisRef.open({
  20176. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20177. tType: this.tType,
  20178. toolIndex: behavior.form.toolIndex
  20179. });
  20180. }
  20181. }
  20182. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20183. if(this.courseType !=behavior.form.courseType){
  20184. this.courseType = behavior.form.courseType;
  20185. }
  20186. if(this.taskCount !=behavior.form.taskCount){
  20187. this.taskCount = behavior.form.taskCount;
  20188. }
  20189. var a = document.scrollingElement;
  20190. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20191. if (target) {
  20192. target.scrollIntoView(true);
  20193. setTimeout(() => {
  20194. a.scrollTop = 0
  20195. }, 0);
  20196. }
  20197. if(behavior.form.navId){
  20198. this.navId = behavior.form.navId
  20199. }
  20200. this.setContent2(false)
  20201. }
  20202. } else {
  20203. }
  20204. }
  20205. },
  20206. updateSplitScreenData(empty = 0) {
  20207. return new Promise(resolve => {
  20208. if(this.userid!==this.courseDetail.userid){
  20209. if(!this.courseDetail.userid){
  20210. return setTimeout(()=>{
  20211. this.updateSplitScreenData(empty)
  20212. },2000)
  20213. }
  20214. return;
  20215. };
  20216. if (
  20217. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20218. this.splitScreenData.userId == this.userid
  20219. ) {
  20220. this.splitScreenData.loading = true;
  20221. let params = [
  20222. {
  20223. cid: this.id,
  20224. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20225. }
  20226. ];
  20227. this.ajax
  20228. .post(
  20229. this.$store.state.api + "update_courseSplitScreenData",
  20230. params
  20231. )
  20232. .then(res => {
  20233. this.splitScreenData.loading = false;
  20234. if (res.data == 1) {
  20235. resolve(1);
  20236. console.log("修改分屏数据成功");
  20237. }
  20238. })
  20239. .catch(e => {
  20240. this.splitScreenData.loading = false;
  20241. console.log("修改分屏数据失败", e);
  20242. resoleve(0);
  20243. });
  20244. } else if (empty == 2 && this.tType == 1) {
  20245. console.log("清空清空清空清空")
  20246. let params = [
  20247. {
  20248. cid: this.id,
  20249. nData: ""
  20250. }
  20251. ];
  20252. return this.ajax
  20253. .post(
  20254. this.$store.state.api + "update_courseSplitScreenData",
  20255. params
  20256. )
  20257. .then(_ => resolve(1))
  20258. .catch(_ => resolve(0));
  20259. } else {
  20260. return resolve(0);
  20261. }
  20262. });
  20263. },
  20264. changeSplitScreenBehavior(newValue) {
  20265. if (
  20266. this.splitScreenData.isOpen &&
  20267. this.splitScreenData.uid == this.splitScreenData.myUid
  20268. ) {
  20269. let _behavior = null;
  20270. if(!newValue){
  20271. _behavior = {}
  20272. }else{
  20273. _behavior = newValue
  20274. }
  20275. if(_behavior.form){
  20276. _behavior.form.taskCount = this.taskCount;
  20277. _behavior.form.courseType = this.courseType
  20278. }else{
  20279. _behavior.form = {
  20280. taskCount:this.taskCount,
  20281. courseType:this.courseType
  20282. }
  20283. }
  20284. this.splitScreenData.behavior = _behavior;
  20285. this.updateSplitScreenData(0);
  20286. }
  20287. },
  20288. studentFreePreview(flag) {
  20289. this.IsLookOpen = flag;
  20290. this.updateLookOpen();
  20291. this.followingMode(flag)
  20292. },
  20293. OpenJobPreview(flag) {
  20294. this.sIsOpen = flag;
  20295. this.updateSLook();
  20296. },
  20297. followingMode(flag) {
  20298. this.IsFollow = flag;
  20299. this.updateFollow();
  20300. }
  20301. },
  20302. directives: {
  20303. // 使用局部注册指令的方式
  20304. resize: {
  20305. // 指令的名称
  20306. bind(el, binding) {
  20307. // el为绑定的元素,binding为绑定给指令的对象
  20308. let width = "",
  20309. height = "";
  20310. function isReize() {
  20311. const style = document.defaultView.getComputedStyle(el);
  20312. if (width !== style.width || height !== style.height) {
  20313. binding.value(); // 关键
  20314. }
  20315. width = style.width;
  20316. height = style.height;
  20317. }
  20318. el.__vueSetInterval__ = setInterval(isReize, 300);
  20319. },
  20320. unbind(el) {
  20321. clearInterval(el.__vueSetInterval__);
  20322. },
  20323. },
  20324. autoHeight: {
  20325. update(el, binding) {
  20326. const { value } = binding
  20327. if (value && typeof value === 'number') {
  20328. el.style.height = `${value}px`
  20329. } else {
  20330. el.style.height = 'auto'
  20331. }
  20332. },
  20333. componentUpdated(el) {
  20334. el.style.height = `${el.scrollHeight}px`
  20335. },
  20336. },
  20337. },
  20338. beforeDestroy() {
  20339. window.onresize = null;
  20340. clearInterval(this.timer);
  20341. this.timer = null;
  20342. clearInterval(this.opertimer);
  20343. this.opertimer = null;
  20344. this.updateSplitScreenData(1);
  20345. },
  20346. computed: {
  20347. contentConvent() {
  20348. return function (c) {
  20349. return c
  20350. ? c
  20351. .replaceAll(/\r\n/g, "<br/>")
  20352. .replaceAll(/\n/g, "<br/>")
  20353. .replaceAll(/\s/g, " &nbsp")
  20354. : "";
  20355. };
  20356. },
  20357. commentRight(){
  20358. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20359. return "35px";
  20360. }
  20361. return `calc(${this.classRoomHelperWidth} + 5px)`
  20362. // if(this.$refs["classRoomHelperRef"].type==0){
  20363. // return "100px";
  20364. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20365. // return "502px"
  20366. // }else{
  20367. // return "0px"
  20368. // }
  20369. },
  20370. checkUpload() {
  20371. return function () {
  20372. var studentK = [];
  20373. if (this.plworkFile.length > 0) {
  20374. for (var z = 0; z < this.plworkFile.length; z++) {
  20375. studentK.push(this.plworkFile[z].username);
  20376. }
  20377. studentK = studentK.join(",");
  20378. }
  20379. var a = this.uploadStudentJuri.filter((el) => {
  20380. return studentK.indexOf(el.userid) == -1;
  20381. });
  20382. return a;
  20383. };
  20384. },
  20385. getSName() {
  20386. return function (name) {
  20387. var check = name;
  20388. this.uploadStudentJuri.forEach((el) => {
  20389. if (el.userid == check) {
  20390. check = el.name ? el.name : el.username;
  20391. }
  20392. });
  20393. return check;
  20394. };
  20395. },
  20396. getImgList() {
  20397. return function (val) {
  20398. let srcList = []; // 定义一个数组用来接收后面的img地址
  20399. val.replace(
  20400. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20401. function (match, capture) {
  20402. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20403. srcList.push(capture);
  20404. }
  20405. );
  20406. return srcList;
  20407. };
  20408. },
  20409. retrnToolHeight(){
  20410. return function (tool) {
  20411. var _tool = document.querySelectorAll('#'+tool)[0]
  20412. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20413. };
  20414. },
  20415. Correct() {
  20416. return function (c) {
  20417. let w = "";
  20418. let a = this.correctWord;
  20419. for(var k = 0;k<a.length;k++){
  20420. //diffWordsWithSpace
  20421. if(a.length > 1){
  20422. if(a[k].added == true){
  20423. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20424. }else if(a[k].removed == true){
  20425. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20426. }else{
  20427. w += '<span>' + a[k].value + '</span>';
  20428. }
  20429. }else{
  20430. w = c
  20431. }
  20432. //diffChars方法
  20433. // if(a.length > 1){
  20434. // if(w == ""){
  20435. // if(a[k].added == true){
  20436. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20437. // }else if(a[k].removed == true){
  20438. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20439. // }
  20440. // }else{
  20441. // if(k == a.length - 1){
  20442. // if(a[k].added == true){
  20443. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20444. // }else if(a[k].removed == true){
  20445. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20446. // }
  20447. // }else{
  20448. // if(a[k].added == true){
  20449. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20450. // }else if(a[k].removed == true){
  20451. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20452. // }
  20453. // }
  20454. // }
  20455. // }else{
  20456. // w = c
  20457. // }
  20458. }
  20459. c = w;
  20460. return c;
  20461. };
  20462. },
  20463. },
  20464. mounted() {
  20465. document.body.addEventListener("click", (e) => {
  20466. if (this.isUpdateToolDetail1) {
  20467. this.updateToolDetail(this.toolDetailIndex);
  20468. }
  20469. });
  20470. if (this.screenType == 2) {
  20471. window.parent.postMessage({ allScreen: 4 }, "*");
  20472. } else if (this.screenType == 3) {
  20473. window.parent.postMessage({ allScreen: 5 }, "*");
  20474. } else if (this.screenType == 1) {
  20475. window.parent.postMessage({ allScreen: 6 }, "*");
  20476. }
  20477. this.setOperationTime();
  20478. this.selectEva();
  20479. this.getCourseDetail();
  20480. this.selectCount();
  20481. this.getHomeWork();
  20482. this.selectUser();
  20483. this.getAIJ();
  20484. this.updateSplitScreenData(2);
  20485. this.splitScreenData.myUid = uuidv4();
  20486. this.contentDialog = true;
  20487. this.setContent2(true);
  20488. if (this.tType == 4) {
  20489. this.pzDialog = true;
  20490. this.selectPz();
  20491. }
  20492. // 获取评分列表
  20493. this.getScoreList()
  20494. document.scrollingElement.scrollTop = 0;
  20495. window.addEventListener("resize", () => {
  20496. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20497. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20498. if (this.showType == 2 || this.showType == 3) {
  20499. document.getElementsByClassName("navBox")[0].style.height =
  20500. a - 40 + 0+ "px";
  20501. } else {
  20502. document.getElementsByClassName("navBox")[0].style.height =
  20503. a - 40 + "px";
  20504. }
  20505. });
  20506. let _this = this;
  20507. setTimeout(() => {
  20508. // _this.vedioTime = [];
  20509. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20510. // _this.vedioTime[i] = document.getElementsByClassName(
  20511. // "vjs-duration-display"
  20512. // )[i].textContent;
  20513. // }
  20514. }, 1000);
  20515. },
  20516. };
  20517. </script>
  20518. <style scoped>
  20519. @media screen and (max-width: 1280px) {
  20520. /* .courseIndex > div:first-child(2) {
  20521. width: 15% !important;
  20522. } */
  20523. /* .navText {
  20524. width: 120px !important;
  20525. } */
  20526. .evaCss {
  20527. flex-direction: column !important;
  20528. align-items: center !important;
  20529. }
  20530. .elist_input {
  20531. width: 90% !important;
  20532. }
  20533. .dialog_diy1 >>> .el-dialog {
  20534. width: 100% !important;
  20535. }
  20536. .rightWidthCss {
  20537. width: 100% !important;
  20538. }
  20539. .dialog_diy3 >>> .el-dialog {
  20540. width: 100% !important;
  20541. }
  20542. .addToolCss {
  20543. right: 0 !important;
  20544. width: 100% !important;
  20545. min-width: unset !important;
  20546. }
  20547. }
  20548. .evaCssMax {
  20549. flex-direction: column !important;
  20550. align-items: center !important;
  20551. }
  20552. .dialog_diy >>> .el-dialog {
  20553. margin-top: 10vh !important;
  20554. }
  20555. .body_student {
  20556. width: 77%;
  20557. height: 100%;
  20558. position: absolute;
  20559. left: 22%;
  20560. top: 0;
  20561. }
  20562. .student_head {
  20563. width: 100%;
  20564. margin: 20px auto 0;
  20565. padding-bottom: 20px;
  20566. display: flex;
  20567. flex-direction: column;
  20568. flex-wrap: nowrap;
  20569. align-items: flex-start;
  20570. justify-content: flex-start;
  20571. }
  20572. .pb_left {
  20573. width: 20%;
  20574. margin-right: 10px;
  20575. background: rgb(255, 255, 255);
  20576. position: fixed;
  20577. height: calc(100% - 40px);
  20578. border-radius: 20px;
  20579. padding-bottom: 15px;
  20580. box-sizing: border-box;
  20581. }
  20582. .wheel > img,
  20583. .project > img,
  20584. .star > img,
  20585. .evaluate > img,
  20586. .up_photo > img,
  20587. .chapter_add > img,
  20588. .deleteWord > img,
  20589. .question > img,
  20590. .homework > img {
  20591. width: 100%;
  20592. height: 100%;
  20593. }
  20594. .upCover > img {
  20595. width: 131px;
  20596. height: 69px;
  20597. object-fit: cover;
  20598. }
  20599. .upCover {
  20600. width: calc(100% / 3.5);
  20601. position: relative;
  20602. margin: 0 15px 10px 0;
  20603. display: flex;
  20604. flex-direction: column;
  20605. flex-wrap: nowrap;
  20606. justify-content: center;
  20607. align-content: center;
  20608. align-items: center;
  20609. height: fit-content;
  20610. }
  20611. .upCover2 {
  20612. width: 100%;
  20613. position: relative;
  20614. margin: 0 15px 10px 0;
  20615. display: flex;
  20616. flex-direction: column;
  20617. flex-wrap: nowrap;
  20618. justify-content: center;
  20619. align-content: center;
  20620. align-items: center;
  20621. }
  20622. .upCover2 > img {
  20623. width: 100%;
  20624. height: 90px;
  20625. object-fit: contain;
  20626. }
  20627. .chapter_add {
  20628. width: 120px;
  20629. position: relative;
  20630. text-align: center;
  20631. }
  20632. .isAddThings {
  20633. margin-top: 20px;
  20634. position: relative;
  20635. text-align: center;
  20636. background: #f7f8fa;
  20637. height: 90px;
  20638. width: 90px;
  20639. display: flex;
  20640. flex-direction: column;
  20641. justify-content: center;
  20642. }
  20643. .deleteWord {
  20644. width: 22px;
  20645. height: 22px;
  20646. position: absolute;
  20647. right: -5px;
  20648. top: -5px;
  20649. cursor: pointer;
  20650. }
  20651. .box_course {
  20652. /* width: 60%; */
  20653. width: calc(100% - 300px);
  20654. }
  20655. .wheel {
  20656. width: 100%;
  20657. /* height: 100%; */
  20658. height: 650px;
  20659. }
  20660. .right_box {
  20661. display: flex;
  20662. flex-direction: column;
  20663. margin-left: 30px;
  20664. justify-content: space-around;
  20665. }
  20666. .right_box_title {
  20667. font-size: 23px;
  20668. }
  20669. .people {
  20670. display: flex;
  20671. }
  20672. .student_body {
  20673. width: 100%;
  20674. margin: 0 auto;
  20675. margin-top: 10px;
  20676. padding: 0 0 20px;
  20677. }
  20678. .study_top {
  20679. margin-top: 100px;
  20680. width: 100%;
  20681. height: auto;
  20682. padding-bottom: 20px;
  20683. }
  20684. .study_top .checkbox {
  20685. display: flex;
  20686. align-items: center;
  20687. padding: 15px 0 15px 30px;
  20688. flex: 0 0 auto;
  20689. font-weight: bold;
  20690. border-bottom: 1px solid #eee;
  20691. }
  20692. .study_top .check {
  20693. padding-bottom: 5px;
  20694. text-align: center;
  20695. cursor: pointer;
  20696. height: 30px;
  20697. box-sizing: border-box;
  20698. display: flex;
  20699. }
  20700. .study_top .checked {
  20701. border-bottom: 4px solid #3fc6a0;
  20702. padding-bottom: 5px;
  20703. color: #3fc6a0;
  20704. display: flex;
  20705. height: 35px;
  20706. }
  20707. .study_top .checked > div,
  20708. .study_top .check > div {
  20709. margin-right: 5px;
  20710. }
  20711. .videoTop {
  20712. display: flex;
  20713. flex-direction: row;
  20714. justify-content: space-between;
  20715. background: #fff;
  20716. align-items: center;
  20717. width: 95%;
  20718. padding: 20px;
  20719. }
  20720. .filebox {
  20721. display: flex;
  20722. flex-wrap: wrap;
  20723. flex-direction: column;
  20724. padding: 0 0 5px;
  20725. position: relative;
  20726. }
  20727. .filebox:before {
  20728. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20729. position: absolute;
  20730. top: 20px;
  20731. left: 13px;
  20732. border-left: 2px dotted #cad1dc;
  20733. height: calc(100% - 15px);
  20734. }
  20735. .toolHeng2 > div:last-child::before {
  20736. height: calc(100% - 43px);
  20737. }
  20738. .filebox .tooldetail {
  20739. width: calc(100%);
  20740. margin: 0px 12px;
  20741. padding: 12px;
  20742. line-height: 30px;
  20743. word-break: break-word;
  20744. background: #ffffff;
  20745. border-radius: 8px 8px 8px 8px;
  20746. opacity: 1;
  20747. border: 1px solid #cad1dc;
  20748. overflow:hidden;
  20749. box-sizing:border-box;
  20750. }
  20751. .file {
  20752. display: flex;
  20753. flex-direction: column;
  20754. align-items: center;
  20755. justify-content: center;
  20756. cursor: pointer;
  20757. width: 200px;
  20758. }
  20759. .file div {
  20760. margin-top: 10px;
  20761. width: 150px;
  20762. text-align: center;
  20763. overflow: hidden;
  20764. white-space: nowrap;
  20765. text-overflow: ellipsis;
  20766. }
  20767. .media {
  20768. display: flex;
  20769. flex-direction: column;
  20770. align-items: center;
  20771. justify-content: center;
  20772. margin: 0 20px 20px 0;
  20773. cursor: pointer;
  20774. margin: 12px 0 5px 15px;
  20775. overflow: hidden;
  20776. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20777. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20778. box-sizing: border-box;
  20779. }
  20780. .media img {
  20781. height: 90px;
  20782. width: 160px;
  20783. object-fit: cover;
  20784. }
  20785. .media .title {
  20786. padding: 5px;
  20787. text-align: left;
  20788. width: 100%;
  20789. box-sizing: border-box;
  20790. }
  20791. .media .btn {
  20792. width: 100%;
  20793. height: 35px;
  20794. line-height: 35px;
  20795. color: #fff;
  20796. background: #606060;
  20797. text-align: center;
  20798. overflow: hidden;
  20799. white-space: nowrap;
  20800. text-overflow: ellipsis;
  20801. }
  20802. .detail_content_top {
  20803. width: 100%;
  20804. padding: 25px 0 25px 0;
  20805. }
  20806. .detail_title {
  20807. text-align: center;
  20808. font-size: 24px;
  20809. }
  20810. .detail_time {
  20811. font-size: 13px;
  20812. padding: 15px 0 0 40px;
  20813. }
  20814. .detail_content {
  20815. line-height: 2pc;
  20816. width: 90%;
  20817. margin: 0 auto;
  20818. padding-top: 30px;
  20819. text-indent: 30px;
  20820. overflow: auto;
  20821. height: 200px;
  20822. }
  20823. .score_box >>> .el-rate {
  20824. margin-left: 10px;
  20825. }
  20826. .dialog_change >>> .el-dialog {
  20827. border-radius: 5px;
  20828. }
  20829. .dialog_change >>> .el-dialog__header {
  20830. background: #f2f2f2;
  20831. text-align: center;
  20832. }
  20833. .dialog_change >>> .el-dialog__title {
  20834. line-height: 5px;
  20835. }
  20836. .dialog_change >>> .el-dialog__body {
  20837. background: #fff;
  20838. padding: 10px 20px;
  20839. }
  20840. .score_box {
  20841. display: flex;
  20842. align-items: center;
  20843. margin-bottom: 18px;
  20844. margin-top: 20px;
  20845. }
  20846. .up_photo {
  20847. width: 120px;
  20848. cursor: pointer;
  20849. margin-top: 10px;
  20850. }
  20851. .up_photo2 {
  20852. width: 180px;
  20853. box-sizing: border-box;
  20854. min-width: 180px;
  20855. height: 180px;
  20856. max-height: 180px;
  20857. min-height: 180px;
  20858. cursor: pointer;
  20859. display: flex;
  20860. flex-direction: column;
  20861. align-items: center;
  20862. justify-content: center;
  20863. background: rgb(242, 246, 255);
  20864. /* padding: 25px; */
  20865. margin-bottom: 10px;
  20866. }
  20867. .up_photo2 img {
  20868. width: 50%;
  20869. height: auto;
  20870. }
  20871. .up_photo2 span {
  20872. color: #898989;
  20873. }
  20874. .plworkBox {
  20875. display: flex;
  20876. align-items: center;
  20877. margin-top: 10px;
  20878. flex-wrap: wrap;
  20879. }
  20880. .upload_send {
  20881. margin: 30px auto 30px;
  20882. width: 60%;
  20883. background: #3681fc;
  20884. text-align: center;
  20885. height: 35px;
  20886. line-height: 35px;
  20887. color: #fff;
  20888. border-radius: 5px;
  20889. cursor: pointer;
  20890. }
  20891. .marginT {
  20892. margin-top: 20px;
  20893. }
  20894. .cd_content_steps {
  20895. display: flex;
  20896. width: 90%;
  20897. justify-content: space-around;
  20898. border-top: 1px solid #eeeeee;
  20899. }
  20900. .cd_steps_box {
  20901. display: flex;
  20902. justify-content: center;
  20903. align-items: center;
  20904. flex-direction: column;
  20905. cursor: pointer;
  20906. }
  20907. .first {
  20908. display: flex;
  20909. align-items: center;
  20910. margin: 15px 0 20px 0;
  20911. font-size: 20px;
  20912. }
  20913. .first > div:nth-child(2) {
  20914. font-size: 16px !important;
  20915. padding-left: 10px;
  20916. line-height: 26px;
  20917. box-sizing: border-box;
  20918. }
  20919. .blue_box_one {
  20920. text-align: center;
  20921. color: #fff;
  20922. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20923. border-radius: 7px;
  20924. margin: 10px;
  20925. cursor: pointer;
  20926. width: 95%;
  20927. height: 45px;
  20928. display: flex;
  20929. flex-direction: row;
  20930. justify-content: flex-start;
  20931. align-items: center;
  20932. }
  20933. .blue_box_one > div:nth-child(1) {
  20934. line-height: 30px;
  20935. margin: 0 5px 0 10px;
  20936. width: 30%;
  20937. min-width: 70px;
  20938. border-radius: 4px;
  20939. }
  20940. .blue_box_one > div:nth-child(2) {
  20941. white-space: nowrap;
  20942. text-overflow: ellipsis;
  20943. overflow: hidden;
  20944. word-break: break-all;
  20945. width: 70%;
  20946. text-align: left;
  20947. margin-right: 10px;
  20948. max-width: calc(100% - 85px);
  20949. }
  20950. .blue_box_one > div:nth-child(2):hover {
  20951. overflow: hidden;
  20952. text-overflow: ellipsis;
  20953. white-space: nowrap;
  20954. cursor: pointer;
  20955. }
  20956. .upFile {
  20957. margin: 0 auto;
  20958. width: 120px;
  20959. background: #3681fc;
  20960. color: #fff;
  20961. height: 30px;
  20962. text-align: center;
  20963. line-height: 30px;
  20964. border-radius: 5px;
  20965. font-size: 14px;
  20966. cursor: pointer;
  20967. }
  20968. .courseTitle {
  20969. width: 85%;
  20970. margin: 10px auto 26px auto;
  20971. display: flex;
  20972. flex-direction: row;
  20973. align-items: center;
  20974. justify-content: space-between;
  20975. text-align: center;
  20976. }
  20977. .courseTitle .ctitle {
  20978. font-size: 20px;
  20979. font-weight: bold;
  20980. color: #0e1e33;
  20981. white-space: nowrap;
  20982. overflow: hidden;
  20983. text-overflow: ellipsis;
  20984. }
  20985. .inviteBox {
  20986. font-size: 14px;
  20987. /* margin-top: 5px; */
  20988. color: #00000099;
  20989. text-align: center;
  20990. }
  20991. .courseTitle >>> .el-tooltip {
  20992. width: 100%;
  20993. white-space: nowrap;
  20994. overflow: hidden;
  20995. text-overflow: ellipsis;
  20996. word-break: break-word;
  20997. }
  20998. .ml {
  20999. margin-left: 20px;
  21000. color: #5b7dba;
  21001. border-left: 3px solid #5b7dba;
  21002. padding-left: 5px;
  21003. font-weight: bold;
  21004. }
  21005. .return {
  21006. width: 2rem;
  21007. height: 2rem;
  21008. cursor: pointer;
  21009. }
  21010. .return > img {
  21011. width: 100%;
  21012. height: 100%;
  21013. }
  21014. .returnBtn {
  21015. width: 86px;
  21016. height: 36px;
  21017. background: #3681fc;
  21018. border-radius: 4px;
  21019. color: #fff;
  21020. text-align: center;
  21021. line-height: 36px;
  21022. margin-right: 20px;
  21023. cursor: pointer;
  21024. font-size: 14px;
  21025. font-weight: 400;
  21026. display: flex;
  21027. flex-direction: row;
  21028. flex-wrap: nowrap;
  21029. align-items: center;
  21030. justify-content: center;
  21031. }
  21032. .reBtnIcon,
  21033. .commentIcon,
  21034. .vedioIcon,
  21035. .vedioIcon1 {
  21036. /* width: 36px; */
  21037. height: 36px;
  21038. border-radius: 4px;
  21039. position: relative;
  21040. /* background: #e0eafb; */
  21041. background: #0061ff;
  21042. cursor: pointer;
  21043. margin-right: 12px;
  21044. display: flex;
  21045. align-items: center;
  21046. padding: 0 10px;
  21047. box-sizing: border-box;
  21048. font-size: 14px;
  21049. color: #fff;
  21050. }
  21051. .reBtnIcon::before,
  21052. .commentIcon::before,
  21053. .vedioIcon::before,
  21054. .vedioIcon1::before {
  21055. content: "";
  21056. display: block;
  21057. background-size: 100% 100%;
  21058. background-repeat: no-repeat;
  21059. width: 20px;
  21060. height: 20px;
  21061. margin-right: 5px;
  21062. /* position: absolute; */
  21063. /* top: 8px;
  21064. left: 8px; */
  21065. }
  21066. .vedioIcon1 {
  21067. background: #f63564;
  21068. }
  21069. .reBtnIcon::before {
  21070. background-image: url("../assets/icon/newIcons/refresh.png");
  21071. }
  21072. .commentIcon::before {
  21073. background-image: url("../assets/icon/newIcons/comment.png");
  21074. }
  21075. .vedioIcon::before {
  21076. background-image: url("../assets/icon/newIcons/transcribe.png");
  21077. }
  21078. .vedioIcon1::before {
  21079. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21080. background-image: url("../assets/icon/newIcons/transcribe.png");
  21081. }
  21082. .tool {
  21083. display: flex;
  21084. flex-direction: column;
  21085. flex-wrap: nowrap;
  21086. width: 13%;
  21087. margin: 0 30px;
  21088. align-items: center;
  21089. position: relative;
  21090. padding: 10px 25px;
  21091. cursor: pointer;
  21092. }
  21093. .whiteBIcon {
  21094. width: 150px;
  21095. }
  21096. .whiteBIcon > img {
  21097. width: 100%;
  21098. height: 100%;
  21099. }
  21100. .mask {
  21101. background-color: rgba(0, 0, 0, 0);
  21102. position: fixed;
  21103. top: 0;
  21104. left: 0;
  21105. width: 100%;
  21106. height: 100%;
  21107. z-index: 20000;
  21108. display: flex;
  21109. align-items: center;
  21110. justify-content: center;
  21111. }
  21112. .progressBox {
  21113. width: 500px;
  21114. height: 180px;
  21115. background: #fff;
  21116. border-radius: 10px;
  21117. box-shadow: 0 0 6px 1px #bfbfbf;
  21118. display: flex;
  21119. align-items: center;
  21120. justify-content: center;
  21121. flex-direction: column;
  21122. position: relative;
  21123. color: #6c6c6c;
  21124. }
  21125. .progressBox >>> .el-progress-bar__outer {
  21126. background-color: #d1dfff !important;
  21127. }
  21128. .progressBox .lbox {
  21129. height: 50px;
  21130. font-size: 19px;
  21131. display: flex;
  21132. align-items: center;
  21133. color: #747474;
  21134. }
  21135. .progressBox .lbox img {
  21136. width: 40px;
  21137. margin-right: 20px;
  21138. }
  21139. .closeCss {
  21140. position: absolute;
  21141. top: 8px;
  21142. right: 8px;
  21143. cursor: pointer;
  21144. width: 20px;
  21145. height: 20px;
  21146. }
  21147. .closeCss > img {
  21148. width: 100%;
  21149. height: 100%;
  21150. }
  21151. .uploadVedio {
  21152. display: flex;
  21153. flex-direction: column;
  21154. flex-wrap: nowrap;
  21155. justify-content: center;
  21156. align-items: center;
  21157. margin: 0 15px 10px 0;
  21158. }
  21159. .uploadVedio > img {
  21160. width: 30px;
  21161. height: 30px;
  21162. }
  21163. .uploadVedio > span {
  21164. white-space: nowrap;
  21165. overflow: hidden;
  21166. text-overflow: ellipsis;
  21167. width: 75px;
  21168. margin-top: 7px;
  21169. }
  21170. .picName {
  21171. white-space: nowrap;
  21172. overflow: hidden;
  21173. text-overflow: ellipsis;
  21174. width: 75px;
  21175. margin-top: 7px;
  21176. }
  21177. .new_top {
  21178. display: flex;
  21179. background: #fff;
  21180. flex-direction: row;
  21181. justify-content: flex-start;
  21182. align-items: center;
  21183. height: 60px;
  21184. position: fixed;
  21185. top: 20px;
  21186. left: 22%;
  21187. width: 77%;
  21188. z-index: 999;
  21189. border-radius: 12px 12px 0 0;
  21190. border-bottom: 1px solid #cad1dc;
  21191. padding: 10px 0;
  21192. }
  21193. .new_topFixed {
  21194. width: 100%;
  21195. height: 40px;
  21196. position: fixed;
  21197. top: 0px;
  21198. display: block;
  21199. background: #f2f2f2;
  21200. z-index: 998;
  21201. }
  21202. .before {
  21203. position: absolute;
  21204. background: #c3dad4;
  21205. width: 6px;
  21206. height: 100%;
  21207. }
  21208. .courseIndex {
  21209. display: flex;
  21210. flex-direction: row;
  21211. align-items: center;
  21212. width: calc(100% - 745px);
  21213. }
  21214. .courseIndex > div:nth-child(1) {
  21215. margin: 0 0 0 10px;
  21216. font-size: 20px;
  21217. min-width: 100px;
  21218. font-weight: bold;
  21219. border-left: 4px solid #3363b9;
  21220. height: 32px;
  21221. text-align: center;
  21222. line-height: 35px;
  21223. }
  21224. .courseIndex > div:nth-child(2) {
  21225. font-size: 20px;
  21226. /* width: 300px; */
  21227. max-width: calc(100% - 105px);
  21228. white-space: nowrap;
  21229. overflow: hidden;
  21230. text-overflow: ellipsis;
  21231. }
  21232. .courseIndex > div:nth-child(3) {
  21233. border-bottom: 1px solid #d7d7d7;
  21234. padding-bottom: 5px;
  21235. background: #3681fc;
  21236. width: 55px;
  21237. min-width: 55px;
  21238. border-radius: 5px;
  21239. color: #fff;
  21240. text-align: center;
  21241. height: 20px;
  21242. line-height: 26px;
  21243. font-size: 14px;
  21244. margin: 0 0 0 10px;
  21245. }
  21246. .course_text {
  21247. padding: 20px 0 0 15px;
  21248. text-indent: 30px;
  21249. width: 80%;
  21250. min-height: 20px;
  21251. }
  21252. .vedioList {
  21253. background: #f2f2f2;
  21254. border: 1px solid #ececec;
  21255. /* width: 38.8%; */
  21256. /* width: 300px; */
  21257. width: 100%;
  21258. height: 445px;
  21259. border-radius: 10px;
  21260. overflow: hidden;
  21261. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21262. }
  21263. .vedioNav {
  21264. margin: 10px 0 0 15px;
  21265. border-bottom: 1px solid #d7d7d7;
  21266. padding-bottom: 5px;
  21267. background: #3681fc;
  21268. width: 55px;
  21269. min-width: 55px;
  21270. border-radius: 5px;
  21271. color: #fff;
  21272. text-align: center;
  21273. height: 20px;
  21274. line-height: 26px;
  21275. font-size: 14px;
  21276. }
  21277. .queTop {
  21278. display: flex;
  21279. padding: 20px 0 20px 30px;
  21280. width: 100%;
  21281. flex-direction: row;
  21282. justify-content: flex-start;
  21283. align-items: center;
  21284. box-sizing: border-box;
  21285. }
  21286. .queTopTitle {
  21287. display: flex;
  21288. flex-direction: row;
  21289. flex-wrap: nowrap;
  21290. align-items: center;
  21291. font-weight: bold;
  21292. font-size: 20px;
  21293. color: rgb(14, 30, 51);
  21294. }
  21295. .queTopTitle::before {
  21296. content: "";
  21297. width: 2px;
  21298. height: 22px;
  21299. background: #3681fc;
  21300. border-radius: 3px;
  21301. display: block;
  21302. margin: 2px 6px 0 0;
  21303. }
  21304. .queTopRight {
  21305. display: flex;
  21306. flex-direction: row;
  21307. flex-wrap: nowrap;
  21308. align-items: center;
  21309. }
  21310. .queTopClose {
  21311. margin-right: 20px;
  21312. cursor: pointer;
  21313. position: relative;
  21314. display: flex;
  21315. }
  21316. .closeImg,
  21317. .openImg {
  21318. width: 25px;
  21319. height: 25px;
  21320. position: absolute;
  21321. left: -20px;
  21322. top: -1px;
  21323. }
  21324. .closeImg > img,
  21325. .openImg > img {
  21326. width: 100%;
  21327. height: 100%;
  21328. }
  21329. .question {
  21330. width: 40px;
  21331. margin-right: 10px;
  21332. margin-top: 7px;
  21333. }
  21334. .queTitle {
  21335. margin-left: 5px;
  21336. font-size: 25px;
  21337. display: flex;
  21338. align-items: center;
  21339. }
  21340. .addEditor {
  21341. width: 100px;
  21342. height: 30px;
  21343. background: #42cda6;
  21344. color: #fff;
  21345. border-radius: 5px;
  21346. text-align: center;
  21347. line-height: 30px;
  21348. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21349. cursor: pointer;
  21350. }
  21351. /* .vedioName {
  21352. cursor: pointer;
  21353. margin: 0px 0px 10px 5px;
  21354. white-space: nowrap;
  21355. overflow: hidden;
  21356. text-overflow: ellipsis;
  21357. width: 100%;
  21358. } */
  21359. .vedioTime {
  21360. width: 35px;
  21361. position: absolute;
  21362. color: #fff;
  21363. bottom: 0px;
  21364. right: 0px;
  21365. text-align: center;
  21366. background: #46411f;
  21367. height: 20px;
  21368. font-size: 14px;
  21369. line-height: 20px;
  21370. }
  21371. .homework {
  21372. width: 200px;
  21373. display: flex;
  21374. flex-direction: column;
  21375. flex-wrap: nowrap;
  21376. align-items: center;
  21377. cursor: pointer;
  21378. }
  21379. .homebox {
  21380. display: flex;
  21381. flex-wrap: wrap;
  21382. flex-direction: row;
  21383. justify-content: flex-start;
  21384. align-items: center;
  21385. padding: 15px 0;
  21386. }
  21387. .isChooseActive {
  21388. color: #3681fc !important;
  21389. font-weight: bold !important;
  21390. }
  21391. .chooseWho {
  21392. display: flex;
  21393. width: 100%;
  21394. flex-direction: row;
  21395. flex-wrap: nowrap;
  21396. justify-content: flex-start;
  21397. padding-bottom: 10px;
  21398. }
  21399. .chooseWho > div {
  21400. cursor: pointer;
  21401. padding-bottom: 10px;
  21402. margin: 0 30px 0 0;
  21403. font-weight: 400;
  21404. color: #0e1e33;
  21405. }
  21406. .addPoint > div > img {
  21407. cursor: pointer;
  21408. width: 85px;
  21409. border-radius: 15px;
  21410. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21411. }
  21412. .addPoint > div {
  21413. display: flex;
  21414. flex-direction: column;
  21415. flex-wrap: nowrap;
  21416. align-items: center;
  21417. }
  21418. .isBorder > div {
  21419. margin: 0 0 10px 0;
  21420. align-items: flex-start !important;
  21421. }
  21422. .noiframeBox {
  21423. display: flex;
  21424. flex-wrap: wrap;
  21425. }
  21426. .iframeBox iframe {
  21427. width: 100%;
  21428. height: 800px;
  21429. border: none;
  21430. margin-bottom: 20px;
  21431. border: 1px solid #ccc;
  21432. }
  21433. .upload_toolBtn {
  21434. background: #3681fc;
  21435. color: #fff;
  21436. width: 110px;
  21437. text-align: center;
  21438. height: 35px;
  21439. line-height: 35px;
  21440. font-size: 14px;
  21441. border-radius: 5px;
  21442. cursor: pointer;
  21443. position: absolute;
  21444. right: 10px;
  21445. bottom: 0;
  21446. }
  21447. .binfo_input,
  21448. .pj {
  21449. font: inherit;
  21450. color: currentColor;
  21451. width: 100%;
  21452. margin: 0;
  21453. padding: 15px 14px;
  21454. display: block;
  21455. min-width: 0;
  21456. outline: none;
  21457. box-sizing: content-box;
  21458. background: none;
  21459. -webkit-tap-highlight-color: transparent;
  21460. border: 1px solid rgba(0, 0, 0, 0.23);
  21461. border-radius: 4px;
  21462. box-sizing: border-box;
  21463. resize: none;
  21464. }
  21465. .binfo_input:focus-visible {
  21466. border: 1px solid rgba(61, 103, 188);
  21467. }
  21468. .dialog_diy >>> .el-dialog__header,
  21469. .dialog_diy1 >>> .el-dialog__header {
  21470. background: #454545 !important;
  21471. padding: 15px 20px;
  21472. }
  21473. .dialog_diy >>> .el-dialog__title,
  21474. .dialog_diy1 >>> .el-dialog__title {
  21475. color: #fff;
  21476. }
  21477. .dialog_diy >>> .el-dialog__headerbtn,
  21478. .dialog_diy1 >>> .el-dialog__headerbtn {
  21479. top: 19px;
  21480. }
  21481. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21482. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21483. color: #fff;
  21484. }
  21485. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21486. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21487. color: #fff;
  21488. }
  21489. .dialog_diy1 >>> .el-dialog__body {
  21490. padding: 0;
  21491. }
  21492. .dialog_diy >>> .el-dialog__body,
  21493. .dialog_diy >>> .el-dialog__footer,
  21494. .dialog_diy1 >>> .el-dialog__footer {
  21495. background: #fafafa;
  21496. }
  21497. .a_addBox {
  21498. padding: 0 0 0 15px;
  21499. }
  21500. .a_add_box {
  21501. padding: 10px;
  21502. background: #fff;
  21503. margin-bottom: 10px;
  21504. border-radius: 5px;
  21505. box-shadow: 0 0 5px 0 #d5d5d5;
  21506. }
  21507. .a_add_head {
  21508. display: flex;
  21509. align-items: flex-start;
  21510. /* justify-content: space-between; */
  21511. flex-direction: column;
  21512. /* flex-direction: row; */
  21513. margin: 10px 0 20px 0;
  21514. font-size: 18px;
  21515. width: 100%;
  21516. }
  21517. .askIndex {
  21518. background: #3681fc;
  21519. border-radius: 50%;
  21520. color: #fff;
  21521. width: 25px;
  21522. height: 25px;
  21523. min-width: 25px;
  21524. min-height: 25px;
  21525. text-align: center;
  21526. line-height: 25px;
  21527. margin-right: 5px;
  21528. }
  21529. .a_add_head .a_add_head_input {
  21530. width: 300px;
  21531. }
  21532. .a_add_head .a_add_head_div {
  21533. display: flex;
  21534. align-items: center;
  21535. justify-content: space-between;
  21536. }
  21537. .a_add_body {
  21538. display: flex;
  21539. align-items: center;
  21540. }
  21541. .a_add_input {
  21542. display: flex;
  21543. align-items: center;
  21544. flex-wrap: wrap;
  21545. width: 100%;
  21546. }
  21547. .a_add_input >>> .el-radio-group,
  21548. .a_add_input >>> .el-checkbox-group {
  21549. width: 100%;
  21550. }
  21551. .a_add_input >>> .el-radio,
  21552. .a_add_input >>> .el-checkbox {
  21553. display: flex;
  21554. flex-direction: row;
  21555. flex-wrap: nowrap;
  21556. align-items: center;
  21557. padding: 15px 0;
  21558. }
  21559. .a_add_input >>> .el-radio:not(:last-child),
  21560. .a_add_input >>> .el-checkbox:not(:last-child) {
  21561. width: 100%;
  21562. border-bottom: 1px solid #efefef;
  21563. }
  21564. .redioStyle >>> .el-radio__label {
  21565. font-size: 18px;
  21566. }
  21567. .redioStyle >>> .el-radio__label > span,
  21568. .redioStyle >>> .el-checkbox__label > span {
  21569. word-break: break-all;
  21570. white-space: normal;
  21571. }
  21572. .redioStyle >>> .el-checkbox__label {
  21573. font-size: 18px;
  21574. }
  21575. .toolHeng2 {
  21576. width: 100%;
  21577. padding-left: 15px;
  21578. box-sizing: border-box;
  21579. }
  21580. .workNav {
  21581. font-size: 20px;
  21582. font-weight: bold;
  21583. color: #0e1e33;
  21584. display: flex;
  21585. flex-direction: row;
  21586. flex-wrap: nowrap;
  21587. align-items: center;
  21588. padding: 15px 0 15px 0;
  21589. }
  21590. .workNav::before {
  21591. content: "";
  21592. width: 2px;
  21593. height: 22px;
  21594. background: #3681fc;
  21595. border-radius: 3px;
  21596. display: block;
  21597. margin: 2px 6px 0 0;
  21598. }
  21599. .toolHeng {
  21600. display: flex;
  21601. flex-direction: row;
  21602. flex-wrap: wrap;
  21603. justify-content: flex-start;
  21604. align-items: center;
  21605. width: 100%;
  21606. }
  21607. .toolHeng > div {
  21608. padding-left: 20px;
  21609. }
  21610. .isWidth {
  21611. width: 20%;
  21612. }
  21613. .textTitle {
  21614. display: flex;
  21615. flex-direction: row;
  21616. flex-wrap: nowrap;
  21617. align-items: center;
  21618. width: 95%;
  21619. }
  21620. .textTitle >>> .el-form-item__label {
  21621. font-size: 22px;
  21622. color: #918f8f;
  21623. width: 100px;
  21624. }
  21625. .textTitle >>> .el-form-item__content {
  21626. width: calc(100% - 100px);
  21627. }
  21628. .textCss >>> .el-dialog {
  21629. width: 800px !important;
  21630. height: 400px;
  21631. background: #fafafa;
  21632. }
  21633. .textCss >>> .el-dialog__body {
  21634. margin: 55px 8% 0 8%;
  21635. padding: 0 !important;
  21636. }
  21637. .textCss >>> .el-dialog__footer {
  21638. padding-top: 38px;
  21639. }
  21640. .toolsCss >>> .el-dialog__body {
  21641. padding: 20px;
  21642. }
  21643. .lineCss >>> .el-dialog__body {
  21644. display: flex;
  21645. flex-direction: row;
  21646. align-items: center;
  21647. justify-content: center;
  21648. }
  21649. .newNav {
  21650. display: flex;
  21651. flex-direction: row;
  21652. align-items: baseline;
  21653. justify-content: flex-start;
  21654. }
  21655. .navListItem {
  21656. width: calc(100% - 20px);
  21657. height: 50px;
  21658. margin: 0px auto 10px;
  21659. display: flex;
  21660. flex-direction: row;
  21661. flex-wrap: nowrap;
  21662. align-items: center;
  21663. justify-content: space-between;
  21664. background: #f0f4fa;
  21665. border-radius: 6px 6px 6px 6px;
  21666. }
  21667. .navText {
  21668. cursor: pointer;
  21669. white-space: nowrap;
  21670. overflow: hidden;
  21671. text-overflow: ellipsis;
  21672. width: 220px;
  21673. padding: 0 10px;
  21674. font-weight: 400;
  21675. color: #0e1e33;
  21676. }
  21677. .downIcon {
  21678. width: 20px;
  21679. min-width: 20px;
  21680. height: 20px;
  21681. margin-right: 15px;
  21682. cursor: pointer;
  21683. }
  21684. .downIcon > img {
  21685. width: 100%;
  21686. height: 100%;
  21687. }
  21688. .noVedio {
  21689. display: flex;
  21690. flex-direction: row;
  21691. justify-content: center;
  21692. align-content: center;
  21693. }
  21694. .noNavText {
  21695. cursor: pointer;
  21696. margin: 0px 0px 10px 5px;
  21697. width: 112px;
  21698. }
  21699. .listNoVedio {
  21700. margin: 0 0 0 30px;
  21701. width: 97%;
  21702. }
  21703. .video-player >>> .video-js {
  21704. height: 100%;
  21705. }
  21706. .hangVedioList {
  21707. width: 90% !important;
  21708. height: 150px !important;
  21709. margin: 20px 0 0 30px;
  21710. }
  21711. .hangVedio {
  21712. width: 100%;
  21713. height: 170px !important;
  21714. align-items: flex-start !important;
  21715. }
  21716. .hangHand {
  21717. height: 150px !important;
  21718. }
  21719. .twoChild {
  21720. width: 95%;
  21721. margin: 10px;
  21722. border-radius: 5px;
  21723. background: #f2f2f2;
  21724. display: flex;
  21725. flex-direction: column;
  21726. flex-wrap: nowrap;
  21727. justify-content: flex-start;
  21728. align-items: flex-start;
  21729. transition: all 0.5s;
  21730. overflow: hidden;
  21731. height: 0;
  21732. background: #e7f3ff;
  21733. }
  21734. .twoChild > div:nth-child(1) {
  21735. margin-top: 5px;
  21736. }
  21737. .navChild {
  21738. width: 100%;
  21739. cursor: pointer;
  21740. margin-bottom: 10px;
  21741. position: relative;
  21742. }
  21743. .navChild img {
  21744. position: absolute;
  21745. right: 11px;
  21746. width: 15px;
  21747. top: 50%;
  21748. transform: translateY(-50%);
  21749. }
  21750. .navActive,
  21751. .toolActive {
  21752. height: auto !important;
  21753. overflow: auto !important;
  21754. /* padding-bottom: 16px; */
  21755. }
  21756. .toolActive {
  21757. padding: 0;
  21758. }
  21759. .navTask {
  21760. display: flex;
  21761. flex-direction: row;
  21762. flex-wrap: nowrap;
  21763. align-items: center;
  21764. align-content: flex-start;
  21765. height: 40px;
  21766. justify-content: flex-start;
  21767. padding: 0 10px;
  21768. width: 100%;
  21769. box-sizing: border-box;
  21770. }
  21771. .navTaskname {
  21772. white-space: nowrap;
  21773. text-overflow: ellipsis;
  21774. overflow: hidden;
  21775. word-break: break-all;
  21776. padding-left: 5px;
  21777. }
  21778. .openTaskActive {
  21779. /* background-color: #e0eafb !important;
  21780. color: #0061ff; */
  21781. color:#fff;
  21782. background: rgb(55, 129, 252) !important;
  21783. }
  21784. .iframeName {
  21785. margin: 5px 0;
  21786. border-left: 4px solid #41c4a4;
  21787. padding-left: 4px;
  21788. }
  21789. .toolTitle {
  21790. margin: 0px 0px 20px;
  21791. font-size: 20px;
  21792. font-weight: 500;
  21793. border-left: 4px solid #41c4a4;
  21794. padding-left: 4px;
  21795. }
  21796. .cru_selectBox {
  21797. overflow: auto;
  21798. width: 95%;
  21799. margin: 17px auto 0;
  21800. height: calc(100% - 40px - 21px - 20px - 17px);
  21801. background: #fff;
  21802. border-radius: 8px;
  21803. }
  21804. .cru_selectBox::-webkit-scrollbar,
  21805. .study_top::-webkit-scrollbar,
  21806. .textContent::-webkit-scrollbar {
  21807. /*滚动条整体样式*/
  21808. width: 6px;
  21809. /*高宽分别对应横竖滚动条的尺寸*/
  21810. height: 6px;
  21811. }
  21812. /*定义滚动条轨道 内阴影+圆角*/
  21813. .cru_selectBox::-webkit-scrollbar-track,
  21814. .study_top::-webkit-scrollbar-track,
  21815. .textContent::-webkit-scrollbar {
  21816. border-radius: 10px;
  21817. background-color: #b8bdc9;
  21818. }
  21819. /*定义滑块 内阴影+圆角*/
  21820. .cru_selectBox::-webkit-scrollbar-thumb,
  21821. .study_top::-webkit-scrollbar-thumb,
  21822. .textContent::-webkit-scrollbar-thumb {
  21823. border-radius: 10px;
  21824. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21825. background-color: #2c5ab3;
  21826. }
  21827. .vedioBox {
  21828. border-radius: 0 0 20px 20px;
  21829. background: #fff;
  21830. overflow: auto;
  21831. }
  21832. .taskBox {
  21833. width: 98%;
  21834. background: #f0f4fa;
  21835. margin: 10px auto;
  21836. padding: 0 10px;
  21837. border-radius: 4px;
  21838. box-sizing: border-box;
  21839. }
  21840. .vedioTaskBox {
  21841. width: 100%;
  21842. display: flex;
  21843. flex-direction: row;
  21844. flex-wrap: nowrap;
  21845. align-items: flex-start;
  21846. position: relative;
  21847. }
  21848. .toolBox {
  21849. margin: 15px 0 0 25px;
  21850. display: flex;
  21851. position: relative;
  21852. padding: 18px 20px;
  21853. border-top-left-radius: 5px;
  21854. border-top-right-radius: 5px;
  21855. width: 90%;
  21856. }
  21857. .btnAll {
  21858. position: absolute;
  21859. right: 0;
  21860. display: flex;
  21861. flex-direction: row;
  21862. flex-wrap: nowrap;
  21863. align-items: center;
  21864. }
  21865. .btnLeft,
  21866. .btnRight {
  21867. display: flex;
  21868. flex-direction: row;
  21869. flex-wrap: nowrap;
  21870. align-items: center;
  21871. padding: 5px 0;
  21872. }
  21873. .btnLeft {
  21874. border-right: 1px solid #cad1dc;
  21875. }
  21876. .btnLeft > .custom-tooltip {
  21877. background: #3681fc;
  21878. color: #fff;
  21879. }
  21880. .last:hover {
  21881. background: #3383fa !important;
  21882. color: #fff;
  21883. border: 1px solid #3383fa !important;
  21884. }
  21885. .last,
  21886. .returnBtn1 {
  21887. width: 90px;
  21888. height: 36px;
  21889. background: #ffffff;
  21890. border-radius: 4px;
  21891. border: 1px solid #0061ff;
  21892. color: #0061ff;
  21893. cursor: pointer;
  21894. display: flex;
  21895. flex-direction: row;
  21896. flex-wrap: nowrap;
  21897. align-items: center;
  21898. justify-content: center;
  21899. margin-left: 12px;
  21900. }
  21901. .returnBtn1 {
  21902. background: #f0f4fa;
  21903. border-radius: 4px;
  21904. border: 1px solid #cad1dc;
  21905. margin: 0 12px;
  21906. }
  21907. .lastImg {
  21908. min-width: 15px;
  21909. width: 15px;
  21910. height: 15px;
  21911. display: flex;
  21912. }
  21913. .lastText {
  21914. padding: 0 5px 0 5px;
  21915. box-sizing: border-box;
  21916. font-size: 14px;
  21917. }
  21918. .lastImg > img {
  21919. width: 100%;
  21920. height: 100%;
  21921. }
  21922. /* .vedioTimeBox {
  21923. display: flex;
  21924. flex-direction: row;
  21925. align-items: center;
  21926. flex-wrap: nowrap;
  21927. position: relative;
  21928. } */
  21929. .navBox {
  21930. background: #fff;
  21931. height: calc(100% - 40px);
  21932. overflow-y: auto;
  21933. overflow-x: hidden;
  21934. }
  21935. .worksBox {
  21936. margin: 0 0 10px 25px;
  21937. border-bottom: 1px solid #eeeeee;
  21938. padding: 18px 20px;
  21939. border-radius: 4px;
  21940. width: 90%;
  21941. }
  21942. .worksBTitle {
  21943. font-size: 20px;
  21944. padding-bottom: 15px;
  21945. border-bottom: 1px solid #eeeeee;
  21946. display: flex;
  21947. align-items: center;
  21948. }
  21949. .greenBox {
  21950. width: 5px;
  21951. height: 30px;
  21952. background: #63b6fa;
  21953. margin-right: 5px;
  21954. }
  21955. .worksDetailBox {
  21956. display: flex;
  21957. width: 100%;
  21958. flex-direction: row;
  21959. flex-wrap: wrap;
  21960. align-items: flex-end;
  21961. justify-content: flex-start;
  21962. padding: 15px 5px;
  21963. box-sizing: border-box;
  21964. }
  21965. .works {
  21966. display: flex;
  21967. flex-direction: column;
  21968. flex-wrap: nowrap;
  21969. align-items: flex-start;
  21970. justify-content: flex-start;
  21971. align-content: center;
  21972. max-width: 240px;
  21973. width: calc(100% / 3 - 10px);
  21974. height: auto;
  21975. margin-right: 10px;
  21976. margin-bottom: 10px;
  21977. overflow: hidden;
  21978. height: 140px;
  21979. box-shadow: 0 0 6px 1px #dfdada;
  21980. border-radius: 15px;
  21981. }
  21982. .workImg {
  21983. width: 100%;
  21984. /* height: calc(100% - 40px); */
  21985. height: 105px;
  21986. position: relative;
  21987. }
  21988. .workImg > img {
  21989. width: 100%;
  21990. height: 100%;
  21991. object-fit: contain;
  21992. cursor: pointer;
  21993. }
  21994. .worksName {
  21995. height: 40px;
  21996. line-height: 40px;
  21997. display: flex;
  21998. width: 100%;
  21999. flex-direction: row;
  22000. flex-wrap: nowrap;
  22001. justify-content: space-between;
  22002. align-items: center;
  22003. margin: 0 0 0 10px;
  22004. }
  22005. .worksName > div:nth-child(1) {
  22006. width: 110px;
  22007. white-space: nowrap;
  22008. overflow: hidden;
  22009. text-overflow: ellipsis;
  22010. }
  22011. .worksName > div:nth-child(2) {
  22012. color: #b7b4b5;
  22013. }
  22014. .noWorksS {
  22015. padding: 15px 0;
  22016. display: flex;
  22017. flex-direction: row;
  22018. flex-wrap: wrap;
  22019. align-items: center;
  22020. justify-content: flex-start;
  22021. }
  22022. .noWorksName,
  22023. .isWorksName,
  22024. .isWorksName2 {
  22025. background: #ddebf8;
  22026. color: #000;
  22027. width: 90px;
  22028. height: 25px;
  22029. text-align: center;
  22030. line-height: 25px;
  22031. border-radius: 4px;
  22032. margin: 10px 15px 10px 0;
  22033. white-space: nowrap;
  22034. overflow: hidden;
  22035. padding: 5px;
  22036. text-overflow: ellipsis;
  22037. cursor: pointer;
  22038. border: 1px solid #ddebf8;
  22039. }
  22040. .noWorksName {
  22041. background: #fff;
  22042. color: #0061ff;
  22043. border: 1px solid #0061ff;
  22044. }
  22045. .noWorksName > span{
  22046. max-width: 100%;
  22047. display: block;
  22048. overflow: hidden;
  22049. text-overflow: ellipsis;
  22050. white-space: nowrap;
  22051. }
  22052. .isWorksName2 {
  22053. width: 100px;
  22054. height: 40px;
  22055. line-height: 40px;
  22056. position: relative;
  22057. background: #dae6f9;
  22058. }
  22059. .isWorksName {
  22060. background: #e7ebf1 !important;
  22061. width: 100px;
  22062. height: 40px;
  22063. line-height: 40px;
  22064. position: relative;
  22065. color: #acb4bf;
  22066. border: 1px solid #cad1dc !important;
  22067. }
  22068. .isSelectName,
  22069. .noWorksName:hover {
  22070. background: #3383fa !important;
  22071. color: #fff !important;
  22072. border: 1px solid #3383fa !important;
  22073. }
  22074. .title {
  22075. background: #1e5cc9;
  22076. /* width: 98%; */
  22077. height: 45px;
  22078. color: #fff;
  22079. line-height: 45px;
  22080. padding-left: 20px;
  22081. box-sizing: border-box;
  22082. }
  22083. .textBox {
  22084. font-size: 20px;
  22085. width: 90%;
  22086. display: flex;
  22087. flex-direction: column;
  22088. align-items: center;
  22089. margin: 20px auto 0;
  22090. max-height: calc(100% - 75px);
  22091. overflow: auto;
  22092. }
  22093. .textContent {
  22094. font-size: 18px;
  22095. width: 95%;
  22096. max-width: 95%;
  22097. }
  22098. .answerBg {
  22099. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22100. background-size: 100% 100%;
  22101. width: 100%;
  22102. height: 100%;
  22103. color: #fff;
  22104. text-align: center;
  22105. display: flex;
  22106. flex-direction: column;
  22107. flex-wrap: nowrap;
  22108. align-items: center;
  22109. position: relative;
  22110. justify-content: center;
  22111. }
  22112. .answerBg > div:nth-child(1) {
  22113. /* font-size: 22px;
  22114. padding: 25px 0 10px; */
  22115. }
  22116. .answerContent {
  22117. width: 215px;
  22118. max-height: 60px;
  22119. word-break: break-all;
  22120. text-align: center;
  22121. /* white-space: nowrap; */
  22122. overflow: hidden;
  22123. text-overflow: ellipsis;
  22124. /* padding: 23px 0 0; */
  22125. -webkit-line-clamp: 3;
  22126. -webkit-box-orient: vertical;
  22127. display: -webkit-box;
  22128. font-size: 15px;
  22129. cursor: pointer;
  22130. }
  22131. .elist_input_box {
  22132. display: flex;
  22133. align-items: flex-start;
  22134. flex-wrap: nowrap;
  22135. padding: 10px 0 15px 30px;
  22136. flex-direction: column;
  22137. }
  22138. .elist_input {
  22139. /* width: 40%; */
  22140. width: 45%;
  22141. margin: 20px;
  22142. }
  22143. .elist_input .elist_input_box input {
  22144. font: inherit;
  22145. color: currentColor;
  22146. width: 200px;
  22147. padding: 8px 14px;
  22148. display: block;
  22149. min-width: 0;
  22150. outline: none;
  22151. border: 1px solid rgba(0, 0, 0, 0.23);
  22152. border-radius: 4px;
  22153. box-sizing: border-box;
  22154. background: #fff;
  22155. margin: 0 20px 0 0;
  22156. }
  22157. .elist_input .elist_input_box span {
  22158. height: 36px;
  22159. line-height: 36px;
  22160. color: rgb(82, 82, 82);
  22161. }
  22162. .elist_input .elist_input_box .remove {
  22163. height: 20px;
  22164. width: 20px;
  22165. background-size: 100% 100%;
  22166. background-position: unset;
  22167. margin-left: 5px;
  22168. }
  22169. .elist_input_box >>> .el-rate {
  22170. display: flex;
  22171. height: 36px;
  22172. align-items: center;
  22173. }
  22174. .elist_input_box .elist_inptu_text {
  22175. min-height: 50px;
  22176. /* width: 500px;
  22177. max-height: 150px; */
  22178. width: 100%;
  22179. line-height: 50px;
  22180. color: rgb(82, 82, 82);
  22181. overflow: auto;
  22182. text-indent: 5px;
  22183. background: #f7f6f9;
  22184. border-radius: 10px;
  22185. }
  22186. .elist_input_box .elist_inptu_text input {
  22187. width: 500px;
  22188. }
  22189. .elist_input_box >>> .el-rate__icon {
  22190. font-size: 24px;
  22191. }
  22192. .isClick {
  22193. background: #4d9def;
  22194. }
  22195. .bzBox {
  22196. display: flex;
  22197. flex-direction: row;
  22198. align-items: center;
  22199. }
  22200. .bzBox .yCss {
  22201. width: 7px;
  22202. height: 7px;
  22203. background: #fff;
  22204. margin: 0 16px 0 6px;
  22205. border-radius: 50%;
  22206. border: 5px solid #3681fc;
  22207. z-index: 99;
  22208. }
  22209. .bzBox > div:nth-child(2) {
  22210. font-size: 18px;
  22211. font-weight: bold;
  22212. color: #0e1e33;
  22213. }
  22214. .navTitile {
  22215. padding: 0 0px 0 15px;
  22216. font-size: 16px;
  22217. font-weight: bold;
  22218. color: #0e1e33;
  22219. height: 40px;
  22220. line-height: 40px;
  22221. }
  22222. .isTypeOne {
  22223. width: 240px;
  22224. height: 170px;
  22225. /* border: 1px solid #f8f8f8; */
  22226. border-radius: 10px;
  22227. box-shadow: 0 0 6px 1px #dfdada;
  22228. }
  22229. .e_add_top {
  22230. display: flex;
  22231. justify-content: space-between;
  22232. padding: 10px 20px;
  22233. border-radius: 3px;
  22234. background: #fff;
  22235. }
  22236. .e_add_title2 {
  22237. display: flex;
  22238. align-items: center;
  22239. }
  22240. .e_add_title2 span {
  22241. width: 40px;
  22242. }
  22243. .e_add_title {
  22244. display: flex;
  22245. align-items: center;
  22246. color: #b8b8b8;
  22247. font-size: 18px;
  22248. position: relative;
  22249. height: 40px;
  22250. width: 100%;
  22251. }
  22252. .e_add_title span {
  22253. margin-right: 10px;
  22254. }
  22255. .e_add_title .el_input {
  22256. width: 300px;
  22257. }
  22258. .e_add_title >>> .el-input__inner {
  22259. width: 400px;
  22260. }
  22261. .e_add_btn {
  22262. }
  22263. .e_add_content {
  22264. display: flex;
  22265. width: 100%;
  22266. max-width: 650px;
  22267. height: 550px;
  22268. }
  22269. .e_add_list {
  22270. background: #fff;
  22271. height: 500px;
  22272. width: 210px;
  22273. position: relative;
  22274. margin: 15px 5px 0 0;
  22275. flex-shrink: 0;
  22276. display: flex;
  22277. flex-direction: column;
  22278. }
  22279. .e_add_list_title {
  22280. font-size: 20px;
  22281. width: 100%;
  22282. box-sizing: border-box;
  22283. padding: 15px 40px;
  22284. text-align: center;
  22285. border-bottom: 1px solid #eaeaea;
  22286. position: relative;
  22287. display: flex;
  22288. align-items: center;
  22289. justify-content: center;
  22290. height: 57px;
  22291. background: #f6f6f6;
  22292. }
  22293. .e_add_list_title span {
  22294. overflow: hidden;
  22295. white-space: nowrap;
  22296. text-overflow: ellipsis;
  22297. }
  22298. .e_add_list_title img {
  22299. position: absolute;
  22300. right: 15px;
  22301. width: 25px;
  22302. cursor: pointer;
  22303. top: 50%;
  22304. transform: translateY(-50%);
  22305. }
  22306. .e_add_list_body {
  22307. height: calc(100% - 187px);
  22308. overflow: auto;
  22309. }
  22310. .e_add_list_child {
  22311. width: 100%;
  22312. display: flex;
  22313. align-items: center;
  22314. justify-content: center;
  22315. position: relative;
  22316. box-sizing: border-box;
  22317. padding: 15px 40px;
  22318. text-align: center;
  22319. }
  22320. .e_add_list_child span {
  22321. overflow: hidden;
  22322. white-space: nowrap;
  22323. text-overflow: ellipsis;
  22324. cursor: pointer;
  22325. }
  22326. .e_add_list_child img {
  22327. position: absolute;
  22328. right: 10px;
  22329. width: 21px;
  22330. cursor: pointer;
  22331. top: 50%;
  22332. transform: translateY(-50%);
  22333. }
  22334. .e_add_list_child + .e_add_list_child {
  22335. border-top: 1px solid #eaeaea;
  22336. }
  22337. .e_add_list_child .active {
  22338. color: #409eff;
  22339. }
  22340. .e_add_list_btn {
  22341. position: absolute;
  22342. bottom: 0;
  22343. height: 50px;
  22344. background: rgb(120, 120, 254);
  22345. width: 100%;
  22346. color: #fff;
  22347. font-size: 16px;
  22348. text-align: center;
  22349. line-height: 50px;
  22350. cursor: pointer;
  22351. }
  22352. .e_add_list_detail {
  22353. position: absolute;
  22354. bottom: 0;
  22355. height: 130px;
  22356. background: rgb(120, 120, 254);
  22357. width: 100%;
  22358. color: #fff;
  22359. font-size: 16px;
  22360. display: flex;
  22361. align-items: center;
  22362. justify-content: center;
  22363. }
  22364. .e_add_list_detail textarea {
  22365. height: 90%;
  22366. width: 95%;
  22367. border: none;
  22368. resize: none;
  22369. outline: none;
  22370. padding: 5px;
  22371. box-sizing: border-box;
  22372. }
  22373. .e_add_list_pbox {
  22374. width: 100%;
  22375. max-width: 650px;
  22376. /* height: 600px; */
  22377. }
  22378. .e_add_list_pbox_title {
  22379. height: 50px;
  22380. background: #fff;
  22381. display: flex;
  22382. align-items: center;
  22383. width: 100%;
  22384. box-sizing: border-box;
  22385. padding: 0 20px;
  22386. }
  22387. .type_title {
  22388. font-size: 18px;
  22389. font-weight: 700;
  22390. }
  22391. .type_content {
  22392. font-size: 16px;
  22393. /* margin-left: 30px; */
  22394. }
  22395. .type_content span + span {
  22396. margin-left: 20px;
  22397. }
  22398. .type_content span {
  22399. cursor: pointer;
  22400. padding-bottom: 5px;
  22401. box-sizing: border-box;
  22402. }
  22403. .type_content .active {
  22404. color: #409eff;
  22405. border-bottom: 2px solid #409eff;
  22406. }
  22407. .e_add_list_pbox_content {
  22408. height: calc(100% - 50px);
  22409. display: flex;
  22410. align-items: center;
  22411. width: 100%;
  22412. background: #fff;
  22413. }
  22414. .evaCss {
  22415. display: flex;
  22416. flex-direction: row;
  22417. flex-wrap: nowrap;
  22418. align-items: flex-start;
  22419. padding: 0 0 20px;
  22420. }
  22421. .cru_line {
  22422. position: absolute;
  22423. bottom: 0px;
  22424. transition: all 0.5s;
  22425. left: 0px;
  22426. width: 125px;
  22427. margin-left: -25px;
  22428. }
  22429. .isNoMessage {
  22430. width: 20%;
  22431. margin: 25% auto 0;
  22432. }
  22433. .isNoMessage > img {
  22434. width: 100%;
  22435. height: 100%;
  22436. }
  22437. .fullStyle >>> .el-dialog__body {
  22438. height: 100% !important;
  22439. }
  22440. .fullStyle >>> .el-dialog,
  22441. .fullStyle {
  22442. width: 100% !important;
  22443. max-width: 100% !important;
  22444. height: 100% !important;
  22445. margin: 0 !important;
  22446. }
  22447. .full_diy >>> .el-dialog {
  22448. margin: 0 !important;
  22449. height: 100%;
  22450. padding: 4px;
  22451. }
  22452. .full_diy >>> .el-dialog__body {
  22453. height: calc(100% - 100px);
  22454. }
  22455. .full_diy2 >>> .el-dialog__body {
  22456. height: calc(100% - 50px);
  22457. padding: 0;
  22458. }
  22459. .switchCss {
  22460. /* width: 100%; */
  22461. display: flex;
  22462. flex-direction: row;
  22463. flex-wrap: nowrap;
  22464. align-items: center;
  22465. /* justify-content: center; */
  22466. }
  22467. .isClickNav {
  22468. /* color: #499eef; */
  22469. color: #000;
  22470. }
  22471. .commentImg {
  22472. width: 25px;
  22473. height: 25px;
  22474. cursor: pointer;
  22475. }
  22476. .commentImg > img {
  22477. width: 100%;
  22478. height: 100%;
  22479. }
  22480. .comment {
  22481. background: #f9f9f9;
  22482. border-radius: 0 0 4px 4px;
  22483. display: flex;
  22484. flex-direction: row;
  22485. flex-wrap: nowrap;
  22486. align-items: center;
  22487. justify-content: flex-end;
  22488. height: 35px;
  22489. }
  22490. .commentList {
  22491. display: flex;
  22492. flex-direction: row;
  22493. flex-wrap: nowrap;
  22494. align-items: center;
  22495. justify-content: center;
  22496. align-content: center;
  22497. /* margin-left: 15px; */
  22498. /* margin-left: 8px; */
  22499. }
  22500. .scoreImg {
  22501. width: 17px;
  22502. height: 17px;
  22503. }
  22504. .studentDetail {
  22505. display: flex;
  22506. flex-direction: row;
  22507. flex-wrap: nowrap;
  22508. /* align-items: center; */
  22509. align-items: flex-start;
  22510. }
  22511. .tx {
  22512. width: 50px;
  22513. }
  22514. .tx > img {
  22515. width: 100%;
  22516. height: 100%;
  22517. }
  22518. .nameAndTime {
  22519. display: flex;
  22520. flex-direction: column;
  22521. flex-wrap: nowrap;
  22522. align-items: flex-start;
  22523. margin-left: 10px;
  22524. }
  22525. .worksAnswer {
  22526. color: #4078dd;
  22527. margin: 10px 0;
  22528. font-size: 16px;
  22529. position: relative;
  22530. }
  22531. .worksAnswer > img {
  22532. width: 500px;
  22533. height: 300px;
  22534. object-fit: contain;
  22535. margin: 0 auto;
  22536. display: block;
  22537. }
  22538. .commentTop {
  22539. border-bottom: 1px solid #eaeaea;
  22540. padding-bottom: 10px;
  22541. }
  22542. .commentBox {
  22543. padding-top: 15px;
  22544. }
  22545. .pl {
  22546. font-size: 18px;
  22547. }
  22548. .plPerson {
  22549. width: 100%;
  22550. }
  22551. .plName {
  22552. display: flex;
  22553. flex-direction: row;
  22554. flex-wrap: nowrap;
  22555. align-items: baseline;
  22556. color: #78787a;
  22557. width: 100%;
  22558. }
  22559. .deleteComment {
  22560. cursor: pointer;
  22561. margin-left: auto;
  22562. color: #237ade;
  22563. }
  22564. .plContent {
  22565. margin-top: 5px;
  22566. }
  22567. .evalCss {
  22568. background: #fff;
  22569. font-size: 18px;
  22570. }
  22571. .nav {
  22572. color: #9d9d9d;
  22573. padding: 5px 0 15px 20px;
  22574. }
  22575. .middleBox {
  22576. padding: 5px 0 15px 20px;
  22577. }
  22578. .pfBox {
  22579. padding-bottom: 30px;
  22580. }
  22581. .nameAndrate {
  22582. display: flex;
  22583. flex-direction: row;
  22584. flex-wrap: nowrap;
  22585. align-items: center;
  22586. padding-bottom: 10px;
  22587. height: 30px;
  22588. line-height: 30px;
  22589. }
  22590. .nameAndrate > div {
  22591. margin-left: 10px;
  22592. color: #000;
  22593. height: 30px;
  22594. }
  22595. .nameAndrate >>> .el-rate__icon {
  22596. font-size: 28px !important;
  22597. }
  22598. .pfBox > div:nth-child(2) {
  22599. background: #f7f6f9;
  22600. width: 400px;
  22601. min-height: 45px;
  22602. border-radius: 10px;
  22603. font-size: 16px;
  22604. display: flex;
  22605. flex-wrap: wrap;
  22606. align-items: center;
  22607. padding: 10px 20px;
  22608. box-sizing: border-box;
  22609. color: #000;
  22610. }
  22611. .bz {
  22612. display: flex;
  22613. flex-direction: row;
  22614. flex-wrap: nowrap;
  22615. align-items: flex-start;
  22616. }
  22617. .bz > div {
  22618. padding: 0 10px;
  22619. }
  22620. .select_box2_title {
  22621. background: #fff;
  22622. border-radius: 5px;
  22623. padding: 15px 10px;
  22624. box-sizing: border-box;
  22625. margin-bottom: 10px;
  22626. display: flex;
  22627. flex-direction: row;
  22628. flex-wrap: nowrap;
  22629. align-items: center;
  22630. }
  22631. .select_box2_title > div:nth-child(2) {
  22632. margin-left: 10px;
  22633. color: #c4c4c4;
  22634. }
  22635. .select_box2_box {
  22636. display: flex;
  22637. height: 500px;
  22638. }
  22639. .select_box2_img {
  22640. width: calc(100% - 310px);
  22641. height: 100%;
  22642. overflow: auto;
  22643. background: #fff;
  22644. border-radius: 5px;
  22645. }
  22646. .select_box2_img img {
  22647. width: 100%;
  22648. }
  22649. .select_box2_answer {
  22650. background: #fff;
  22651. margin-left: 10px;
  22652. border-radius: 5px;
  22653. width: 300px;
  22654. overflow: auto;
  22655. height: 90%;
  22656. display: flex;
  22657. flex-direction: column;
  22658. align-items: flex-start;
  22659. padding-top: 10px;
  22660. box-sizing: border-box;
  22661. position: relative;
  22662. }
  22663. .select_answer_title {
  22664. padding: 0 0 15px 20px;
  22665. color: #c4c4c4;
  22666. }
  22667. .select_box2_answer_box {
  22668. margin: 0 0 10px 20px;
  22669. width: 85%;
  22670. display: flex;
  22671. flex-direction: row;
  22672. flex-wrap: nowrap;
  22673. align-items: center;
  22674. }
  22675. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22676. color: #000;
  22677. }
  22678. .upAnswerCss {
  22679. position: absolute;
  22680. bottom: 15px;
  22681. right: 15px;
  22682. }
  22683. .upAnswerCss >>> .el-button {
  22684. width: 95px;
  22685. height: 35px;
  22686. line-height: 35px;
  22687. padding: 0;
  22688. }
  22689. .rightWidthCss {
  22690. width: 60%;
  22691. display: flex;
  22692. flex-direction: row;
  22693. align-items: flex-start;
  22694. }
  22695. .rightAnswer {
  22696. display: flex;
  22697. flex-direction: row;
  22698. flex-wrap: nowrap;
  22699. align-items: center;
  22700. color: red;
  22701. margin-bottom: 31px;
  22702. }
  22703. .rightAnswerCss {
  22704. display: flex;
  22705. flex-direction: column;
  22706. flex-wrap: nowrap;
  22707. padding-top: 60px;
  22708. }
  22709. .blueCss {
  22710. color: #767de1;
  22711. margin-left: 10px;
  22712. }
  22713. .redCss {
  22714. color: red;
  22715. }
  22716. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22717. color: rgb(0 123 255) !important;
  22718. }
  22719. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22720. color: rgb(0 123 255) !important;
  22721. }
  22722. .zuoyeYulan {
  22723. padding-top: 0;
  22724. font-size: 18px;
  22725. display: flex;
  22726. align-items: flex-end;
  22727. }
  22728. .buttonA {
  22729. margin-left: 10px;
  22730. padding: 0;
  22731. }
  22732. .displayBox {
  22733. margin-bottom: 10px;
  22734. display: block;
  22735. border-bottom: 3px solid #eee;
  22736. display: flex;
  22737. align-items: center;
  22738. }
  22739. .easy_comment {
  22740. width: calc(100% - 90px);
  22741. margin-left: 10px;
  22742. display: flex;
  22743. flex-wrap: wrap;
  22744. }
  22745. .easy_comment > div {
  22746. border: 1px solid #4a4a4a;
  22747. color: #666;
  22748. border-radius: 15px;
  22749. padding: 5px 10px;
  22750. font-size: 16px;
  22751. margin-bottom: 10px;
  22752. margin-right: 5px;
  22753. cursor: pointer;
  22754. }
  22755. .easy_comment div:hover {
  22756. border: 1px solid #f7ba2a;
  22757. color: #c69217;
  22758. }
  22759. .xuan_right_box {
  22760. padding: 10px 0;
  22761. background: #f0f4fa;
  22762. margin: 0 15px 0 25px;
  22763. border-bottom-left-radius: 5px;
  22764. border-bottom-right-radius: 5px;
  22765. width: 91.5%;
  22766. }
  22767. .tool_right_box {
  22768. display: flex;
  22769. align-items: center;
  22770. }
  22771. .tool_right_box + .tool_right_box {
  22772. margin-top: 10px;
  22773. }
  22774. .right_box_xuan {
  22775. border-radius: 5px;
  22776. padding: 5px;
  22777. margin-left: 10px;
  22778. min-width: 85px;
  22779. background: #fff;
  22780. color: #0061ff;
  22781. border: 1px solid #0061ff;
  22782. font-size: 14px;
  22783. }
  22784. .pButton:hover {
  22785. opacity: 1 !important;
  22786. }
  22787. .pButton {
  22788. position: fixed;
  22789. text-align: center;
  22790. cursor: pointer;
  22791. z-index: 999;
  22792. right: 20px;
  22793. top: 110px;
  22794. width: 50px;
  22795. height: 50px;
  22796. display: flex;
  22797. align-items: center;
  22798. justify-content: center;
  22799. border-radius: 5px;
  22800. }
  22801. .pzClass {
  22802. width: calc(100% - 340px);
  22803. }
  22804. .newDialogCss {
  22805. /* position: fixed;
  22806. right: 5%;
  22807. top: 50%;
  22808. width: 340px;
  22809. transform: translateY(-50%);
  22810. height: 60%;
  22811. box-shadow: 0px 0 8px 0px #555555;
  22812. border-radius: 15px;
  22813. z-index: 999; */
  22814. position: fixed;
  22815. right: 20px;
  22816. top: 101px;
  22817. width: 330px;
  22818. height: calc(100% - 80px);
  22819. z-index: 999;
  22820. background: #fff;
  22821. border-top-right-radius: 0px;
  22822. border-bottom-right-radius: 0px;
  22823. overflow: hidden;
  22824. }
  22825. .newDialogCss>.scoreList{
  22826. width:100%;
  22827. height:100%;
  22828. box-sizing:border-box;
  22829. padding:10px 15px;
  22830. overflow:auto;
  22831. padding-bottom:80px;
  22832. }
  22833. .pzTop {
  22834. color: #fff;
  22835. background: #000;
  22836. display: flex;
  22837. flex-direction: row;
  22838. flex-wrap: nowrap;
  22839. align-items: center;
  22840. justify-content: space-between;
  22841. height: 40px;
  22842. border-radius: 15px 15px 0 0;
  22843. user-select: none;
  22844. }
  22845. .pzTop2 .checkbox {
  22846. display: flex;
  22847. align-items: center;
  22848. padding: 5px 10px;
  22849. flex: 0 0 auto;
  22850. font-weight: bold;
  22851. border-bottom: 1px solid #eee;
  22852. justify-content: space-between;
  22853. }
  22854. .checkbox>.cb-tabList{
  22855. display:flex;
  22856. align-items:center;
  22857. }
  22858. .cb-tabList>div{
  22859. margin-right:20px;
  22860. font-weight:400;
  22861. cursor:pointer;
  22862. }
  22863. .cb-tabList>.cb-tabItem{
  22864. color:#1684FC;
  22865. position:relative;
  22866. }
  22867. .cb-tabItem::after{
  22868. content:"";
  22869. width:100%;
  22870. height:2px;
  22871. background:#1684FC;
  22872. position:absolute;
  22873. bottom:-5px;
  22874. left:0
  22875. }
  22876. .pzTop2 .check {
  22877. text-align: center;
  22878. cursor: pointer;
  22879. box-sizing: border-box;
  22880. display: flex;
  22881. }
  22882. .pzTop2 img {
  22883. width: 25px;
  22884. cursor: pointer;
  22885. }
  22886. .pzTop > div:nth-child(1) {
  22887. padding-left: 10px;
  22888. }
  22889. .pzTop > div:nth-child(2) {
  22890. width: 15px;
  22891. height: 15px;
  22892. padding-right: 10px;
  22893. cursor: pointer;
  22894. }
  22895. .pzTop > div:nth-child(2) > img {
  22896. width: 100%;
  22897. height: 100%;
  22898. }
  22899. .pzBox,
  22900. .noPzBox {
  22901. height: calc(100% - 60px);
  22902. /* background: #ededed; */
  22903. background: #fff;
  22904. /* border-radius: 0 0 15px 15px; */
  22905. }
  22906. .noPzBox {
  22907. display: flex;
  22908. flex-direction: column;
  22909. flex-wrap: nowrap;
  22910. justify-content: center;
  22911. align-items: center;
  22912. }
  22913. .pzList {
  22914. background: #f7f7f7;
  22915. width: 90%;
  22916. margin: 0 auto 15px;
  22917. border-radius: 5px;
  22918. }
  22919. .pzNavTop {
  22920. display: flex;
  22921. flex-direction: row;
  22922. flex-wrap: nowrap;
  22923. padding: 10px 10px 0 10px;
  22924. align-items: center;
  22925. }
  22926. .pzDelete {
  22927. cursor: pointer;
  22928. margin-left: auto;
  22929. font-size: 14px;
  22930. color: #afafaf;
  22931. }
  22932. .pzNavTop > div:nth-child(1) {
  22933. background: #3760af;
  22934. width: 35px;
  22935. height: 35px;
  22936. color: #fff;
  22937. text-align: center;
  22938. line-height: 35px;
  22939. border-radius: 50%;
  22940. font-size: 14px;
  22941. }
  22942. .pzNavTop > div:nth-child(2) {
  22943. font-size: 18px;
  22944. color: #959595;
  22945. margin-left: 5px;
  22946. }
  22947. .pzContent {
  22948. padding: 10px;
  22949. word-break: break-word;
  22950. }
  22951. .pzContent audio {
  22952. width: 100%;
  22953. }
  22954. .pzContent audio::-webkit-media-controls-panel {
  22955. background: #fff;
  22956. }
  22957. .pzContent >>> img {
  22958. max-width: 100%;
  22959. }
  22960. .pzListBox {
  22961. padding-top: 15px;
  22962. height: calc(100% - 110px);
  22963. overflow: auto;
  22964. }
  22965. .addPzButton {
  22966. position: relative;
  22967. margin-top: 3px;
  22968. width: 100%;
  22969. }
  22970. .addPzButton .img1 {
  22971. position: absolute;
  22972. top: 50%;
  22973. right: 25px;
  22974. transform: translateY(-50%);
  22975. height: 100%;
  22976. display: flex;
  22977. align-items: center;
  22978. }
  22979. .addPzButton .img1 div {
  22980. display: flex;
  22981. }
  22982. .addPzButton .img1 div img {
  22983. width: 28px;
  22984. margin-left: 10px;
  22985. cursor: pointer;
  22986. }
  22987. .addPzButton .img1 div span {
  22988. font-size: 14px;
  22989. margin: 4px 0 0 3px;
  22990. color: #afafaf;
  22991. }
  22992. .addPz {
  22993. background: #4b79ce;
  22994. width: 100px;
  22995. color: #fff;
  22996. font-size: 12px;
  22997. height: 30px;
  22998. margin: 0 auto;
  22999. text-align: center;
  23000. line-height: 30px;
  23001. border-radius: 10px;
  23002. cursor: pointer;
  23003. }
  23004. .addDialogCss {
  23005. position: fixed;
  23006. width: 600px;
  23007. height: 70%;
  23008. min-height: 450px;
  23009. box-shadow: 0px 0 8px 0px #555555;
  23010. border-radius: 15px;
  23011. z-index: 999;
  23012. left: 50%;
  23013. top: 50%;
  23014. margin: -18% 0 0 -300px;
  23015. }
  23016. .teacherPz {
  23017. display: flex;
  23018. flex-direction: row;
  23019. align-items: center;
  23020. flex-wrap: nowrap;
  23021. }
  23022. .teacherPzImg {
  23023. width: 30px;
  23024. height: 30px;
  23025. }
  23026. .teacherPzImg > img {
  23027. width: 100%;
  23028. height: 100%;
  23029. }
  23030. .addPzBox {
  23031. height: calc(100% - 40px);
  23032. background: #ededed;
  23033. border-bottom-left-radius: 15px;
  23034. border-bottom-right-radius: 15px;
  23035. }
  23036. .pzAudioClass {
  23037. margin: 15px 14px;
  23038. background: #fff;
  23039. height: 100%;
  23040. display: flex;
  23041. justify-content: center;
  23042. align-items: center;
  23043. }
  23044. .pzConText {
  23045. width: 95%;
  23046. height: 100%;
  23047. margin: 10px auto 0;
  23048. border: none;
  23049. background: #fff;
  23050. border-radius: 0px;
  23051. }
  23052. .pzConText >>> .text {
  23053. height: calc(100% - 82px);
  23054. }
  23055. .addTextCss {
  23056. background: #4b79ce;
  23057. width: 80px;
  23058. height: 30px;
  23059. text-align: center;
  23060. color: #fff;
  23061. line-height: 30px;
  23062. border-radius: 10px;
  23063. margin: 10px auto 0;
  23064. cursor: pointer;
  23065. }
  23066. .pzConText:focus-visible {
  23067. border: none !important;
  23068. }
  23069. .maxWidth {
  23070. width: 1000px;
  23071. }
  23072. .noPz {
  23073. width: 150px;
  23074. margin: 0 auto 20%;
  23075. }
  23076. .noPz > img {
  23077. width: 100%;
  23078. height: 100%;
  23079. }
  23080. .timeAndReply {
  23081. display: flex;
  23082. flex-direction: row;
  23083. flex-wrap: nowrap;
  23084. justify-content: space-between;
  23085. align-items: center;
  23086. font-size: 14px;
  23087. box-sizing: border-box;
  23088. padding: 0 10px 10px 0px;
  23089. }
  23090. .timeAndReply .time {
  23091. color: #bfbfbf;
  23092. padding: 0 0 0 10px;
  23093. box-sizing: border-box;
  23094. }
  23095. .timeAndReply > div:last-child {
  23096. cursor: pointer;
  23097. color: #777;
  23098. }
  23099. /* table 样式 */
  23100. .cont >>> table {
  23101. border-top: 1px solid #ccc;
  23102. border-left: 1px solid #ccc;
  23103. }
  23104. .cont >>> table td,
  23105. .cont >>> table th {
  23106. border-bottom: 1px solid #ccc;
  23107. border-right: 1px solid #ccc;
  23108. /* padding: 20px 5px; */
  23109. padding: 5px 10px;
  23110. max-width: 0px;
  23111. height: 30px;
  23112. vertical-align: baseline;
  23113. box-sizing: border-box;
  23114. }
  23115. .cont >>> table th {
  23116. border-bottom: 2px solid #ccc;
  23117. text-align: center;
  23118. }
  23119. /* blockquote 样式 */
  23120. .cont >>> blockquote {
  23121. display: block;
  23122. border-left: 8px solid #d0e5f2;
  23123. padding: 5px 10px;
  23124. margin: 10px 0;
  23125. line-height: 1.4;
  23126. font-size: 100%;
  23127. background-color: #f1f1f1;
  23128. }
  23129. /* code 样式 */
  23130. .cont >>> code {
  23131. display: inline-block;
  23132. /* *display: inline; */
  23133. zoom: 1;
  23134. background-color: #f1f1f1;
  23135. border-radius: 3px;
  23136. padding: 3px 5px;
  23137. margin: 0 3px;
  23138. }
  23139. .cont >>> pre code {
  23140. display: block;
  23141. }
  23142. /* ul ol 样式 */
  23143. .cont >>> ul,
  23144. ol {
  23145. margin: 10px 0 10px 20px;
  23146. }
  23147. .addPzCheck {
  23148. display: flex;
  23149. flex-direction: row;
  23150. flex-wrap: nowrap;
  23151. padding: 10px 15px 0;
  23152. }
  23153. .addPzCheck span {
  23154. cursor: pointer;
  23155. padding-bottom: 5px;
  23156. font-weight: bold;
  23157. }
  23158. .addPzCheck span + span {
  23159. margin-left: 10px;
  23160. }
  23161. .addPzCheck .isChooseActive {
  23162. color: #3e88f4;
  23163. border-bottom: 2px solid #2f80f3;
  23164. }
  23165. /* code 样式 */
  23166. .cont {
  23167. /* -webkit-user-modify: read-write; */
  23168. overflow-wrap: break-word;
  23169. -webkit-line-break: after-white-space;
  23170. word-break: break-word;
  23171. white-space: pre-line;
  23172. }
  23173. .scoreBox,
  23174. .scoreDetailBox {
  23175. display: flex;
  23176. align-items: center;
  23177. justify-content: flex-start;
  23178. margin-top: 20px;
  23179. font-size: 18px;
  23180. width: 100%;
  23181. }
  23182. .scoreBox .t,
  23183. .scoreDetailBox .t {
  23184. margin-right: 10px;
  23185. width: 100px;
  23186. text-align: right;
  23187. }
  23188. .scoreDetailBox {
  23189. align-items: flex-start;
  23190. }
  23191. .scoreDetailBox >>> .el-textarea {
  23192. width: calc(100% - 200px);
  23193. }
  23194. .scoreBox >>> .el-input {
  23195. width: 130px;
  23196. font-size: 38px;
  23197. }
  23198. .scoreBox >>> .el-input__inner {
  23199. height: 60px;
  23200. }
  23201. .answerScore {
  23202. position: absolute;
  23203. top: 10px;
  23204. right: 10px;
  23205. background: #0000008f;
  23206. border-radius: 5px;
  23207. padding: 3px 5px;
  23208. font-size: 14px;
  23209. color: #fff;
  23210. cursor: pointer;
  23211. }
  23212. .open_box .switch_box {
  23213. width: 100%;
  23214. margin: 0 auto;
  23215. display: flex;
  23216. justify-content: space-between;
  23217. }
  23218. .open_box .switch_box + .switch_box {
  23219. margin-top: 10px;
  23220. }
  23221. .deleteImg,.deleteImg1 {
  23222. width: 25px !important;
  23223. height: 25px !important;
  23224. cursor: pointer;
  23225. position: absolute;
  23226. top: 10px;
  23227. right: 10px;
  23228. }
  23229. .deleteImg2 {
  23230. width: 23px !important;
  23231. height: 23px !important;
  23232. top: 5px;
  23233. right: 5px;
  23234. }
  23235. .deleteImg1{
  23236. width: 23px !important;
  23237. height: 23px !important;
  23238. top: 5px !important;
  23239. right: 30px !important;
  23240. }
  23241. .rightW {
  23242. right: 40px;
  23243. }
  23244. .drawPBox {
  23245. display: flex;
  23246. flex-direction: column;
  23247. position: relative;
  23248. }
  23249. .drawPBox span {
  23250. font-size: 18px;
  23251. color: #606266;
  23252. padding-bottom: 10px;
  23253. margin: 10px 0;
  23254. border-bottom: 1px solid #eaeaea;
  23255. }
  23256. .drawPBox img {
  23257. width: 500px;
  23258. height: 300px;
  23259. object-fit: contain;
  23260. cursor: pointer;
  23261. margin: 0 auto;
  23262. }
  23263. .sentenBox {
  23264. background: #fff;
  23265. height: 450px;
  23266. overflow: auto;
  23267. background-image: url("../assets/icon/conSentences/stuBg.png");
  23268. background-position: 102%;
  23269. background-repeat: no-repeat;
  23270. background-size: 60%;
  23271. }
  23272. .addSen {
  23273. background: #409efe;
  23274. width: 90px;
  23275. color: #fff;
  23276. height: 35px;
  23277. text-align: center;
  23278. line-height: 35px;
  23279. border-radius: 5px;
  23280. float: right;
  23281. margin: 10px 20px 0 0;
  23282. cursor: pointer;
  23283. }
  23284. .sentenTop {
  23285. display: flex;
  23286. flex-direction: row;
  23287. flex-wrap: nowrap;
  23288. align-items: center;
  23289. padding: 55px 0 0 20px;
  23290. box-sizing: border-box;
  23291. }
  23292. .sentenTop > div:nth-child(2) {
  23293. width: 300px;
  23294. margin: 0 15px;
  23295. }
  23296. .sentenTop > div:nth-child(3) {
  23297. background: #409efe;
  23298. color: #fff;
  23299. width: 65px;
  23300. height: 35px;
  23301. text-align: center;
  23302. line-height: 35px;
  23303. border-radius: 5px;
  23304. cursor: pointer;
  23305. }
  23306. .cardList,
  23307. .cardList1 {
  23308. padding: 10px 0 10px 0;
  23309. display: flex;
  23310. flex-direction: row;
  23311. flex-wrap: wrap;
  23312. align-items: center;
  23313. box-sizing: border-box;
  23314. border-bottom: 1px solid #f4f4f4;
  23315. width: 98%;
  23316. margin: 0 auto;
  23317. min-width: 60%;
  23318. max-width: 85%;
  23319. }
  23320. .cardList1 {
  23321. padding: 10px 0 10px 10px !important;
  23322. margin: 0 !important;
  23323. }
  23324. .cardBox {
  23325. display: flex;
  23326. flex-direction: row;
  23327. flex-wrap: wrap;
  23328. align-items: center;
  23329. align-content: center;
  23330. }
  23331. .cardBox > div {
  23332. margin-bottom: 10px;
  23333. }
  23334. .isCard,
  23335. .isChooseCard,
  23336. .noCard,
  23337. .isCard1 {
  23338. min-width: 130px;
  23339. width: auto;
  23340. height: 60px;
  23341. text-align: center;
  23342. line-height: 60px;
  23343. font-size: 20px;
  23344. cursor: pointer;
  23345. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23346. background-size: cover;
  23347. transition: all 2s;
  23348. margin-right: 20px;
  23349. background-size: 100% 100%;
  23350. padding: 0 20px;
  23351. box-sizing: border-box;
  23352. }
  23353. .isCard > div,
  23354. .noCard > div,
  23355. .isCard1 > div {
  23356. white-space: nowrap;
  23357. overflow: hidden;
  23358. text-overflow: ellipsis;
  23359. width: 100%;
  23360. margin: 0 auto;
  23361. }
  23362. .noCard {
  23363. background-image: none;
  23364. }
  23365. .isCard1 {
  23366. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23367. }
  23368. .isChooseCard {
  23369. background-image: none;
  23370. border: 1px dashed #b9b9b9;
  23371. border-radius: 10px;
  23372. }
  23373. .card {
  23374. width: 130px;
  23375. height: 60px;
  23376. }
  23377. .card > img {
  23378. width: 100%;
  23379. height: 100%;
  23380. }
  23381. .rightCardBox {
  23382. margin: 10px 0 0 10px;
  23383. }
  23384. .rightCardBox > div:nth-child(1) {
  23385. margin-bottom: 10px;
  23386. }
  23387. .cardCss {
  23388. display: flex;
  23389. flex-direction: column;
  23390. flex-wrap: nowrap;
  23391. align-items: center;
  23392. border-bottom: 3px solid #b4c3d3;
  23393. padding: 0 0 5px 0;
  23394. margin-right: 10px;
  23395. }
  23396. .cardCss > div:nth-child(2) {
  23397. background: #5b7b9d;
  23398. color: #fff;
  23399. width: 20px;
  23400. height: 20px;
  23401. border-radius: 50%;
  23402. text-align: center;
  23403. line-height: 20px;
  23404. }
  23405. .isWrong {
  23406. display: flex;
  23407. flex-direction: row;
  23408. flex-wrap: nowrap;
  23409. align-content: center;
  23410. align-items: center;
  23411. }
  23412. .answerRight {
  23413. width: 25%;
  23414. }
  23415. .isTj {
  23416. display: flex;
  23417. flex-direction: row;
  23418. flex-wrap: nowrap;
  23419. align-items: center;
  23420. }
  23421. .isTj > div:nth-child(2) {
  23422. color: #727070;
  23423. margin-left: 10px;
  23424. }
  23425. .isTjImg {
  23426. width: 30px;
  23427. height: 30px;
  23428. }
  23429. .isTjImg > img {
  23430. width: 100%;
  23431. height: 100%;
  23432. }
  23433. .cardAnswerBox {
  23434. font-size: 18px;
  23435. width: 97%;
  23436. border: 5px;
  23437. padding: 0;
  23438. border-radius: 5px;
  23439. margin: 10px auto;
  23440. word-break: break-word;
  23441. }
  23442. .w_name {
  23443. margin-bottom: 10px;
  23444. }
  23445. .w_name span {
  23446. font-size: 16px;
  23447. }
  23448. .w_teachert {
  23449. width: 50px !important;
  23450. position: absolute;
  23451. height: auto !important;
  23452. z-index: 10;
  23453. right: 25px;
  23454. top: -25px;
  23455. }
  23456. .group_workBox {
  23457. }
  23458. .group_workBox + .group_workBox {
  23459. margin-top: 20px;
  23460. }
  23461. .group_box {
  23462. padding-bottom: 20px;
  23463. border-bottom: 2px solid #f0f0f0;
  23464. margin-top: 10px;
  23465. }
  23466. .group_title {
  23467. display: flex;
  23468. align-items: center;
  23469. justify-content: space-between;
  23470. width: 95%;
  23471. }
  23472. .group_name {
  23473. background-image: url(../assets/icon/groupN.png);
  23474. width: 220px;
  23475. background-size: 100% 100%;
  23476. height: 67px;
  23477. padding: 0 20px 0 43px;
  23478. box-sizing: border-box;
  23479. line-height: 63px;
  23480. color: #fff;
  23481. overflow: hidden;
  23482. white-space: nowrap;
  23483. text-overflow: ellipsis;
  23484. }
  23485. .group_work {
  23486. width: 100%;
  23487. padding: 0 10px;
  23488. box-sizing: border-box;
  23489. display: flex;
  23490. flex-wrap: wrap;
  23491. }
  23492. .g_d_box {
  23493. display: flex;
  23494. flex-flow: wrap;
  23495. justify-content: space-around;
  23496. }
  23497. .g_d_box .isChair {
  23498. background-image: url(../assets/avatar.png) !important;
  23499. }
  23500. .g_d_group {
  23501. width: 500px;
  23502. margin-bottom: 80px;
  23503. }
  23504. .g_d_group_chair {
  23505. display: flex;
  23506. align-items: center;
  23507. justify-content: center;
  23508. }
  23509. .g_d_group_chair > div + div {
  23510. margin-left: 30px;
  23511. }
  23512. .g_d_group_chair > div,
  23513. .g_d_group_chair2 > div {
  23514. display: flex;
  23515. flex-direction: column;
  23516. align-items: center;
  23517. }
  23518. .g_d_group_chair > div > span:nth-child(1),
  23519. .g_d_group_chair2 > div > span:nth-child(1) {
  23520. background-image: url(../assets/icon/chair.png);
  23521. width: 50px;
  23522. height: 50px;
  23523. display: block;
  23524. background-size: 100% 100%;
  23525. }
  23526. .g_d_group_tableBox {
  23527. display: flex;
  23528. align-items: center;
  23529. justify-content: center;
  23530. }
  23531. .g_d_group_chair2 {
  23532. display: flex;
  23533. flex-direction: column;
  23534. align-items: center;
  23535. justify-content: center;
  23536. }
  23537. .g_d_group_chair2 > div + div {
  23538. margin-top: 10px;
  23539. }
  23540. .g_d_group_table {
  23541. background-image: url(../assets/icon/groupBg.png);
  23542. width: 354px;
  23543. height: 196px;
  23544. background-size: 100% 100%;
  23545. display: flex;
  23546. align-items: center;
  23547. justify-content: center;
  23548. flex-direction: column;
  23549. color: #fff;
  23550. }
  23551. .g_d_group_table > div:nth-child(1) {
  23552. font-size: 24px;
  23553. margin-bottom: 5px;
  23554. }
  23555. .g_d_group_table > div:nth-child(2) div {
  23556. cursor: pointer;
  23557. background: #2e77bf;
  23558. padding: 4px 10px;
  23559. border-radius: 5px;
  23560. }
  23561. .groupBox {
  23562. }
  23563. .groupContent + .groupContent {
  23564. margin-top: 30px;
  23565. }
  23566. .groupTitle {
  23567. font-size: 24px;
  23568. color: rgb(80, 80, 80);
  23569. margin-bottom: 20px;
  23570. }
  23571. .groupName {
  23572. display: flex;
  23573. align-items: center;
  23574. }
  23575. .groupn {
  23576. font-size: 15px;
  23577. margin-right: 10px;
  23578. }
  23579. .groupName + .groupName {
  23580. margin-top: 15px;
  23581. }
  23582. .groupBtn {
  23583. margin-left: 10px;
  23584. }
  23585. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23586. text-align: left;
  23587. }
  23588. .g_d_btnBox {
  23589. display: flex;
  23590. justify-content: flex-end;
  23591. align-items: center;
  23592. margin-bottom: 20px;
  23593. }
  23594. .updateChair {
  23595. position: relative;
  23596. }
  23597. .updateChairBtn {
  23598. position: absolute;
  23599. width: 50px;
  23600. height: 50px;
  23601. overflow: hidden;
  23602. /* display: flex; */
  23603. align-items: center;
  23604. justify-content: center;
  23605. background: #00000087;
  23606. color: #fff;
  23607. border-radius: 50px;
  23608. display: none;
  23609. cursor: pointer;
  23610. }
  23611. .updateChair:hover .updateChairBtn {
  23612. display: flex;
  23613. }
  23614. .group_staic_box {
  23615. display: flex;
  23616. padding: 30px 40px 10px;
  23617. flex-wrap: wrap;
  23618. }
  23619. .group_staic {
  23620. /* width: 50%; */
  23621. margin-bottom: 20px;
  23622. display: flex;
  23623. align-items: center;
  23624. }
  23625. .group_staic span:nth-child(1) {
  23626. width: 150px;
  23627. text-align: right;
  23628. margin-right: 15px;
  23629. }
  23630. .group_staic span:nth-child(2) {
  23631. background: rgb(0 123 255);
  23632. color: #fff;
  23633. border-radius: 5px;
  23634. padding: 5px;
  23635. }
  23636. .codeFileBox {
  23637. height: 300px;
  23638. background: #fff;
  23639. display: flex;
  23640. align-items: center;
  23641. justify-content: center;
  23642. }
  23643. .codeFileBox img {
  23644. width: 200px;
  23645. margin: 0;
  23646. height: auto;
  23647. }
  23648. .codeFileBox div {
  23649. background: rgb(80, 142, 226);
  23650. color: #fff;
  23651. padding: 10px 20px;
  23652. border-radius: 25px;
  23653. cursor: pointer;
  23654. margin-left: 15px;
  23655. }
  23656. .radioBox {
  23657. display: flex;
  23658. flex-direction: column;
  23659. flex-wrap: nowrap;
  23660. align-items: flex-start;
  23661. }
  23662. .radioBox > div {
  23663. margin: 10px 0 0 10px;
  23664. }
  23665. /* .radioBox >>> .el-radio__input,
  23666. .radioBox >>> .el-checkbox__inner {
  23667. margin-left: 10px;
  23668. } */
  23669. .radioBox >>> .el-radio__label,
  23670. .radioBox >>> .el-checkbox__label {
  23671. display: flex;
  23672. align-items: center;
  23673. width: 100%;
  23674. }
  23675. .radioBox >>> .el-radio__label > span {
  23676. width: 100%;
  23677. display: -webkit-box;
  23678. overflow: hidden;
  23679. white-space: normal !important;
  23680. text-overflow: ellipsis;
  23681. word-wrap: break-word;
  23682. }
  23683. .inImg {
  23684. width: 100px;
  23685. cursor: pointer;
  23686. }
  23687. .inImg > img {
  23688. width: 100%;
  23689. height: 100%;
  23690. object-fit: cover;
  23691. }
  23692. .timuImgBox {
  23693. margin: 10px 0;
  23694. display: flex;
  23695. flex-direction: column;
  23696. flex-wrap: wrap;
  23697. align-items: flex-start;
  23698. }
  23699. .timuImg {
  23700. width: 150px;
  23701. margin: 5px 0;
  23702. cursor: pointer;
  23703. }
  23704. .timuImg > img {
  23705. width: 100%;
  23706. height: 100%;
  23707. object-fit: cover;
  23708. }
  23709. .worksTop {
  23710. display: flex;
  23711. flex-direction: row;
  23712. align-items: flex-end;
  23713. }
  23714. .worksTitle{
  23715. display: flex;
  23716. flex-direction: row;
  23717. flex-wrap: nowrap;
  23718. align-items: center;
  23719. }
  23720. .worksTitle::before,.worksTop::before{
  23721. content: '';
  23722. display: block;
  23723. width: 3px;
  23724. height: 20px;
  23725. background: #0061FF;
  23726. border-radius: 3px;
  23727. margin: 0 5px 0 0;
  23728. }
  23729. .corOpen {
  23730. margin: 0 0 0 10px;
  23731. font-size: 14px;
  23732. cursor: pointer;
  23733. color: #505050;
  23734. }
  23735. .corOpen:hover {
  23736. color: #499eef;
  23737. }
  23738. .navCorOpenBox {
  23739. display: flex;
  23740. flex-direction: row;
  23741. align-items: center;
  23742. justify-content: space-between;
  23743. height: 55px;
  23744. background: #ffffff;
  23745. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23746. border-radius: 8px 8px 0px 0px;
  23747. z-index: 9;
  23748. position: relative;
  23749. }
  23750. .navCorOpen {
  23751. padding-right: 15px;
  23752. cursor: pointer;
  23753. width: 45px;
  23754. display: flex;
  23755. }
  23756. .navCorOpen > img {
  23757. width: 100%;
  23758. height: 100%;
  23759. }
  23760. .mlImg {
  23761. width: 40px !important;
  23762. min-width: 40px;
  23763. cursor: pointer;
  23764. transform: rotate(180deg);
  23765. }
  23766. .mlImg > img {
  23767. width: 100%;
  23768. height: 100%;
  23769. }
  23770. .navLeftCss {
  23771. width: 100% !important;
  23772. left: 0 !important;
  23773. }
  23774. .isContentCss {
  23775. width: 100% !important;
  23776. }
  23777. .isAllWidth {
  23778. width: 100% !important;
  23779. }
  23780. .group_switch {
  23781. margin-right: 10px;
  23782. height: 30px;
  23783. display: flex;
  23784. align-items: center;
  23785. }
  23786. .group_switch > span {
  23787. margin-right: 5px;
  23788. }
  23789. .fileC_box {
  23790. padding-top: 15px;
  23791. }
  23792. .fileC_box > .fileC_title {
  23793. padding: 10px 5px 14px 10px;
  23794. border-top: 1px solid #cad1dc;
  23795. font-size: 14px;
  23796. font-weight: 400;
  23797. color: #cad1dc;
  23798. width: calc(100% - 20px);
  23799. margin: 0 auto;
  23800. box-sizing: border-box;
  23801. }
  23802. .pl_select_box {
  23803. height: 40px;
  23804. line-height: 40px;
  23805. width: 100%;
  23806. cursor: pointer;
  23807. padding: 0 20px;
  23808. box-sizing: border-box;
  23809. border-radius: 5px;
  23810. border: 1px solid #d6d6d6;
  23811. white-space: nowrap;
  23812. overflow: hidden;
  23813. text-overflow: ellipsis;
  23814. background: #fff;
  23815. text-align: left;
  23816. }
  23817. .newButton {
  23818. width: 102px;
  23819. height: 36px;
  23820. background: #e7ebf1;
  23821. border-radius: 4px;
  23822. color: #0e1e33;
  23823. font-weight: 400;
  23824. font-size: 14px;
  23825. border: none;
  23826. float: right;
  23827. margin-left: 10px;
  23828. }
  23829. .el-table >>> .even_row {
  23830. background-color: #f0f4fa;
  23831. }
  23832. .stageBoxCss,
  23833. .stageBoxIsCss {
  23834. display: flex;
  23835. flex-direction: row;
  23836. flex-wrap: nowrap;
  23837. align-items: center;
  23838. height: 50px;
  23839. border-bottom: 1px solid #e2f5fc;
  23840. cursor: pointer;
  23841. width: 100%;
  23842. }
  23843. .stageBoxIsCss {
  23844. background: #0061ff;
  23845. color: #fff;
  23846. border-radius: 8px;
  23847. }
  23848. .stageItemTitle {
  23849. display: flex;
  23850. flex-direction: row;
  23851. flex-wrap: nowrap;
  23852. align-items: center;
  23853. margin-left: 15px;
  23854. width: calc(100% - 50px);
  23855. }
  23856. .stageNav{
  23857. /* font-weight: bold; */
  23858. }
  23859. .stageItemTitle > div:first-child {
  23860. min-width: 55px;
  23861. }
  23862. .stageItemTitle > div:last-child {
  23863. max-width: 242px;
  23864. white-space: nowrap;
  23865. overflow: hidden;
  23866. text-overflow: ellipsis;
  23867. word-break: break-word;
  23868. width: calc(100% - 55px);
  23869. }
  23870. .closeTri,
  23871. .closeTri1 {
  23872. min-width: 15px;
  23873. width: 15px;
  23874. height: 15px;
  23875. transition: all .5s;
  23876. }
  23877. .closeTri1 {
  23878. padding-left: 10px;
  23879. cursor: pointer;
  23880. }
  23881. .closeTri > img,
  23882. .closeTri1 > img {
  23883. width: 100%;
  23884. height: 100%;
  23885. /* transition: all .5s; */
  23886. }
  23887. .noToolBlue {
  23888. min-width: 10px;
  23889. width: 10px;
  23890. height: 10px;
  23891. background: #0061ff;
  23892. border-radius: 50%;
  23893. margin-left: 13px;
  23894. }
  23895. .stageChild,
  23896. .toolChild {
  23897. height: 0;
  23898. overflow: hidden;
  23899. transition: all 0.5s;
  23900. }
  23901. .toolChild {
  23902. /* margin: 0 0 0 17px;
  23903. padding: 0 0 0 20px;
  23904. border-left: 1px solid #d7d7d7; */
  23905. }
  23906. .toolChild > div + div{
  23907. margin-top:5px;
  23908. }
  23909. .gjCss {
  23910. display: flex;
  23911. flex-direction: row;
  23912. flex-wrap: nowrap;
  23913. align-items: center;
  23914. padding: 10px 0 10px 40px;
  23915. box-sizing: border-box;
  23916. font-size: 14px;
  23917. cursor: pointer;
  23918. border-radius:5px;
  23919. }
  23920. .toolChild > div {
  23921. position: relative;
  23922. width:100%;
  23923. }
  23924. .toolChild > div::before {
  23925. /* content: "";
  23926. width: 15px;
  23927. height: 1px;
  23928. background: #cad1dc;
  23929. position: absolute;
  23930. top: 24px;
  23931. left: -20px;
  23932. display: block; */
  23933. }
  23934. .isGjCss {
  23935. /* color: #0061ff; */
  23936. color:#fff;
  23937. background: rgb(55, 129, 252);
  23938. /* background-color: #e0eafb !important;
  23939. color: #0061ff !important; */
  23940. }
  23941. .navItem {
  23942. background: #ffffff;
  23943. border-radius: 4px;
  23944. width: 100%;
  23945. margin: 10px auto;
  23946. position: relative;
  23947. height: 40px;
  23948. display: flex;
  23949. flex-direction: row;
  23950. flex-wrap: nowrap;
  23951. align-items: center;
  23952. }
  23953. .navItemList {
  23954. display: flex;
  23955. flex-direction: row;
  23956. flex-wrap: nowrap;
  23957. align-items: center;
  23958. padding: 0 13px;
  23959. cursor: pointer;
  23960. width: calc(100% - 60px);
  23961. height: 100%;
  23962. }
  23963. .navItemList > div:first-child {
  23964. /* min-width: 60px; */
  23965. min-width:fit-content;
  23966. }
  23967. .navItemList > div:last-child {
  23968. width: calc(100% - 80px);
  23969. white-space: nowrap;
  23970. overflow: hidden;
  23971. text-overflow: ellipsis;
  23972. word-break: break-word;
  23973. }
  23974. /* .isItemList > div {
  23975. color: #fff !important;
  23976. } */
  23977. .tool_work_box {
  23978. width: 100%;
  23979. padding: 0 37px 0;
  23980. box-sizing: border-box;
  23981. }
  23982. .tool_box {
  23983. width: 100%;
  23984. padding: 0 0 0 20px;
  23985. }
  23986. .tool_type_box {
  23987. display: flex;
  23988. flex-direction: row;
  23989. align-items: baseline;
  23990. flex-wrap: nowrap;
  23991. justify-content: flex-start;
  23992. position: relative;
  23993. }
  23994. .toolSort {
  23995. display: flex;
  23996. flex-direction: row;
  23997. flex-wrap: wrap;
  23998. justify-content: flex-start;
  23999. align-items: flex-start;
  24000. padding: 0 0 15px 0;
  24001. }
  24002. .toolSort > div {
  24003. margin: 0 10px 0 0;
  24004. width: 135px;
  24005. box-sizing: border-box;
  24006. border: 2px solid transparent;
  24007. }
  24008. .tools {
  24009. width: 100%;
  24010. display: flex;
  24011. flex-direction: column;
  24012. flex-wrap: nowrap;
  24013. align-items: flex-start;
  24014. }
  24015. .whiteBIcon {
  24016. width: fit-content;
  24017. cursor: pointer;
  24018. display: flex;
  24019. flex-direction: column;
  24020. flex-wrap: nowrap;
  24021. align-items: center;
  24022. font-size: 14px;
  24023. }
  24024. .tool:hover {
  24025. border: 2px solid #a5c7ff;
  24026. border-radius: 5px;
  24027. }
  24028. .whiteBIcon > img {
  24029. width: 65px;
  24030. height: 100%;
  24031. }
  24032. .whiteBIcon > img {
  24033. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24034. border-radius: 15px;
  24035. }
  24036. .check {
  24037. /* width: 20px;
  24038. height: 20px; */
  24039. cursor: pointer;
  24040. margin: 10px 0;
  24041. position: absolute;
  24042. right: 2px;
  24043. top: -5px;
  24044. }
  24045. .noChoose,
  24046. .isChoose {
  24047. width: 15px;
  24048. height: 15px;
  24049. border-radius: 50%;
  24050. border: 1px solid #adadad;
  24051. }
  24052. .isChoose {
  24053. border: 4px solid #0363ff !important;
  24054. width: 10px;
  24055. height: 10px;
  24056. }
  24057. .isToolChoose {
  24058. border: 2px solid #5394ff !important;
  24059. border-radius: 5px;
  24060. box-shadow: 0 0 6px 0px #5394ff;
  24061. }
  24062. .checkDiv {
  24063. display: flex;
  24064. align-items: center;
  24065. }
  24066. .checkDiv span {
  24067. margin-left: 5px;
  24068. color: #858585;
  24069. }
  24070. .check img {
  24071. width: 20px;
  24072. height: 20px;
  24073. }
  24074. .lockTaskIcon {
  24075. width: 20px;
  24076. height: 20px;
  24077. position: absolute;
  24078. right: 10px;
  24079. top: 5px;
  24080. }
  24081. .lockTaskIcon > img {
  24082. width: 100%;
  24083. height: 100%;
  24084. }
  24085. .pick_box {
  24086. display: flex;
  24087. align-items: flex-start;
  24088. flex-wrap: wrap;
  24089. }
  24090. .selectBox {
  24091. width: 110px;
  24092. margin-left: 10px;
  24093. margin: 0 10px 0 auto;
  24094. }
  24095. .selectBox >>> .el-input__inner {
  24096. height: 30px;
  24097. line-height: 30px;
  24098. }
  24099. .selectBox >>> .el-input__icon {
  24100. line-height: 30px;
  24101. }
  24102. .sentenceTitle {
  24103. display: flex;
  24104. flex-direction: row;
  24105. flex-wrap: nowrap;
  24106. align-items: center;
  24107. }
  24108. .sentenceTitle::before {
  24109. content: attr(index);
  24110. background: #3681fc;
  24111. border-radius: 50%;
  24112. color: #fff;
  24113. width: 25px;
  24114. height: 25px;
  24115. min-width: 25px;
  24116. min-height: 25px;
  24117. text-align: center;
  24118. line-height: 25px;
  24119. margin-right: 5px;
  24120. }
  24121. .hfBox {
  24122. padding: 10px;
  24123. box-sizing: border-box;
  24124. }
  24125. .whoReplyWho {
  24126. display: flex;
  24127. flex-direction: row;
  24128. flex-wrap: nowrap;
  24129. align-items: baseline;
  24130. justify-content: flex-start;
  24131. }
  24132. .hfBottom {
  24133. display: flex;
  24134. flex-direction: row;
  24135. flex-wrap: nowrap;
  24136. align-items: center;
  24137. justify-content: space-between;
  24138. font-size: 14px;
  24139. }
  24140. .deleteHfItem {
  24141. cursor: pointer;
  24142. width: 20px;
  24143. height: 20px;
  24144. }
  24145. .deleteHfItem > img {
  24146. width: 100%;
  24147. height: 100%;
  24148. }
  24149. .whoReplyWho > .hfImg {
  24150. width: 12px;
  24151. height: 12px;
  24152. margin: 0 5px;
  24153. }
  24154. .whoReplyWho > .hfImg > img {
  24155. width: 100%;
  24156. height: 100%;
  24157. }
  24158. .hfContent {
  24159. padding-top: 10px;
  24160. box-sizing: border-box;
  24161. display: -webkit-box;
  24162. overflow: hidden;
  24163. white-space: normal !important;
  24164. text-overflow: ellipsis;
  24165. word-wrap: break-word;
  24166. -webkit-box-orient: vertical;
  24167. }
  24168. .hfTime {
  24169. text-align: left;
  24170. box-sizing: border-box;
  24171. padding: 10px 0 10px 0px;
  24172. color: #bfbfbf;
  24173. font-size: 14px;
  24174. }
  24175. .btnAllNT {
  24176. position: fixed;
  24177. bottom: 100px;
  24178. right: 40px;
  24179. z-index: 999;
  24180. display: flex;
  24181. flex-direction: row;
  24182. }
  24183. .btnAllNT > img {
  24184. cursor: pointer;
  24185. width: 80px;
  24186. }
  24187. .toolMask {
  24188. position: fixed;
  24189. width: 100%;
  24190. height: 100%;
  24191. background: #3f3c3c;
  24192. opacity: 0.5;
  24193. top: 0;
  24194. left: 0;
  24195. z-index: 999;
  24196. }
  24197. .addToolCss {
  24198. position: fixed;
  24199. z-index: 999;
  24200. background: #fff;
  24201. right: 5%;
  24202. bottom: 18%;
  24203. min-width: 1035px;
  24204. min-height: 300px;
  24205. border-radius: 10px;
  24206. box-shadow: 0 0 8px 1px #b2b2b2;
  24207. }
  24208. .toolTop {
  24209. display: flex;
  24210. flex-direction: row;
  24211. flex-wrap: nowrap;
  24212. justify-content: space-between;
  24213. align-items: center;
  24214. padding: 20px;
  24215. }
  24216. .toolTop > div:nth-child(2) {
  24217. width: 15px;
  24218. height: 15px;
  24219. padding-right: 10px;
  24220. cursor: pointer;
  24221. }
  24222. .toolTop > div:nth-child(2) > img {
  24223. width: 100%;
  24224. height: 100%;
  24225. }
  24226. .fullStyle>>>.el-dialog__body {
  24227. height: calc(100% - 125px) !important;
  24228. box-sizing: border-box;
  24229. padding: 30px 0 !important;
  24230. background: #fff !important;
  24231. }
  24232. .fullStyle>>>.el-dialog {
  24233. width: 100% !important;
  24234. max-width: 100% !important;
  24235. height: 100% !important;
  24236. margin: 0 !important;
  24237. }
  24238. .fullStyle {
  24239. width: 100% !important;
  24240. max-width: 100% !important;
  24241. height: 100% !important;
  24242. margin: 0 auto !important;
  24243. }
  24244. .fullStyle>>>.el-dialog__footer{
  24245. background: #fff !important;
  24246. }
  24247. .engUpBox {
  24248. width: 100%;
  24249. height: 100%;
  24250. }
  24251. .engTitle,
  24252. .engText {
  24253. display: flex;
  24254. flex-direction: row;
  24255. flex-wrap: nowrap;
  24256. align-items: flex-start;
  24257. padding: 0 20px 20px 20px;
  24258. box-sizing: border-box;
  24259. }
  24260. .engTitle > .div:first-child,
  24261. .engText > div:first-child {
  24262. min-width: 75px;
  24263. }
  24264. .correctBox{
  24265. width: 100%;
  24266. display: flex;
  24267. flex-direction: row;
  24268. flex-wrap: nowrap;
  24269. align-items: flex-start;
  24270. }
  24271. .oldBox{
  24272. width: 50%;
  24273. height: 100%;
  24274. display: flex;
  24275. flex-direction: column;
  24276. flex-wrap: nowrap;
  24277. align-items: center;
  24278. border-top: 1px solid #d9d9d9;
  24279. border-left: 1px solid #d9d9d9;
  24280. border-right: 1px solid #d9d9d9;
  24281. }
  24282. .oldBox>div:first-child{
  24283. width: 100%;
  24284. text-align: center;
  24285. background: #d9d9d9;
  24286. height: 35px;
  24287. line-height: 35px;
  24288. font-weight: bold;
  24289. }
  24290. .oldText{
  24291. width: 100%;
  24292. height: calc(100% - 35px);
  24293. overflow: auto;
  24294. margin: 10px 0;
  24295. display: flex;
  24296. flex-direction: column;
  24297. flex-wrap: nowrap;
  24298. align-content: center;
  24299. align-items: center;
  24300. }
  24301. .detailBox{
  24302. width: 50%;
  24303. padding: 10px;
  24304. background: #f6f6f6;
  24305. border-radius: 5px;
  24306. }
  24307. .oldDetail,.oldDetail1{
  24308. padding-bottom: 30px;
  24309. }
  24310. .oldImg{
  24311. width:30px;
  24312. height: 30px;
  24313. }
  24314. .oldImg>img{
  24315. width: 100%;
  24316. height: 100%;
  24317. }
  24318. .allName{
  24319. min-width: 200px;
  24320. white-space: nowrap;
  24321. overflow: hidden;
  24322. text-overflow: ellipsis;
  24323. word-break: break-word;
  24324. cursor: pointer;
  24325. text-align: center;
  24326. border: 1px solid #bcc2cc;
  24327. box-sizing: border-box;
  24328. }
  24329. .engUpTop{
  24330. max-height: 300px;
  24331. overflow: auto;
  24332. }
  24333. .isUpdateToolDetailClass{
  24334. padding: 0 !important;
  24335. }
  24336. .isUpdateToolDetailClass textarea{
  24337. padding:12px;
  24338. font-size: 16px;
  24339. min-height:100%;
  24340. width: 100%;
  24341. box-sizing:border-box;
  24342. outline: none;
  24343. border:none;
  24344. line-height: 30px;
  24345. resize: none;
  24346. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24347. color: #838383;
  24348. }
  24349. .show_taskD {
  24350. min-width: fit-content;
  24351. margin-left: 10px;
  24352. display: flex;
  24353. align-items: center;
  24354. font-size: 14px;
  24355. cursor: pointer;
  24356. color: #717c8d;
  24357. }
  24358. .show_taskD > img {
  24359. width: 15px;
  24360. margin-right: 5px;
  24361. transition: 0.2s all;
  24362. transform: rotate(-90deg);
  24363. }
  24364. .show_taskD.show > img {
  24365. transform: rotate(0deg);
  24366. }
  24367. .correctCss{
  24368. position: absolute;
  24369. bottom: -70px;
  24370. background: #409eff;
  24371. color: #fff;
  24372. }
  24373. .dialog_diyCopy >>> .el-dialog__header {
  24374. display: none !important;
  24375. }
  24376. .dialog_diyCopy >>> .el-dialog__body {
  24377. padding: 0 !important;
  24378. height: 100% !important;
  24379. }
  24380. </style>