studyStudent.vue 832 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003
  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">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <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' }">
  228. <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>
  229. <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' }">
  230. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  248. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  249. <div class="btnLeft">
  250. <el-tooltip effect="light" content="刷新" placement="top">
  251. <div class="reBtnIcon" @click="refreshCourse">
  252. <span>刷新</span>
  253. </div>
  254. </el-tooltip>
  255. <el-tooltip effect="light" content="评论" placement="top">
  256. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  257. <span>评论</span>
  258. </div>
  259. </el-tooltip>
  260. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  261. <el-tooltip effect="light" content="录制" placement="top">
  262. <div class="vedioIcon" @click="startRecording">
  263. <span>录制</span>
  264. </div>
  265. </el-tooltip>
  266. </div>
  267. <div v-else-if="tType == 1 || tType == 4">
  268. <el-tooltip effect="light" content="下载" placement="top">
  269. <div class="vedioIcon1" @click="stopRecording">
  270. <span>下载</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. </div>
  275. <div class="btnRight">
  276. <div
  277. class="last"
  278. @click="nextOrpreSteps(0)"
  279. v-if="!(IsFollow && tType == 2)"
  280. @mouseover="isHovered = true"
  281. @mouseout="isHovered = false"
  282. >
  283. <div class="lastImg">
  284. <img
  285. :src="
  286. isHovered
  287. ? require('../../assets/icon/newIcons/whiteLast.png')
  288. : require('../../assets/icon/newIcons/last.png')
  289. "
  290. alt=""
  291. />
  292. </div>
  293. <div class="lastText">上一步</div>
  294. </div>
  295. <div
  296. class="last"
  297. @click="nextOrpreSteps(1)"
  298. v-if="!(IsFollow && tType == 2)"
  299. @mouseover="isHovered1 = true"
  300. @mouseout="isHovered1 = false"
  301. >
  302. <div class="lastText">下一步</div>
  303. <div class="lastImg">
  304. <img
  305. :src="
  306. isHovered1
  307. ? require('../../assets/icon/newIcons/whiteNext.png')
  308. : require('../../assets/icon/newIcons/next.png')
  309. "
  310. alt=""
  311. />
  312. </div>
  313. </div>
  314. <div
  315. class="last"
  316. @click="juriVisible = true"
  317. v-if="tType == 1"
  318. @mouseover="isHovered2 = true"
  319. @mouseout="isHovered2 = false"
  320. >
  321. <div class="lastImg">
  322. <img
  323. :src="
  324. isHovered2
  325. ? require('../../assets/icon/newIcons/whiteLock.png')
  326. : require('../../assets/icon/newIcons/lock.png')
  327. "
  328. alt=""
  329. />
  330. </div>
  331. <div class="lastText">权限</div>
  332. </div>
  333. <div
  334. class="returnBtn1 returnIcon"
  335. @click.stop="
  336. goTo(
  337. '/courseDetail?userid=' +
  338. userid +
  339. '&oid=' +
  340. oid +
  341. '&org=' +
  342. org +
  343. '&cid=' +
  344. classId +
  345. '&courseId=' +
  346. id +
  347. '&tType=' +
  348. tType +
  349. '&screenType=' +
  350. screenType
  351. )
  352. "
  353. >
  354. <div class="lastImg">
  355. <img src="../../assets/icon/newIcon/return.png" alt="" />
  356. </div>
  357. <div class="lastText" style="color: #000">返回</div>
  358. </div>
  359. </div>
  360. <!-- <div
  361. class="returnBtn lockIcon"
  362. @click="juriVisible = true"
  363. v-if="tType == 1"
  364. >
  365. 权限
  366. </div>
  367. <div
  368. class="returnBtn vedioIcon"
  369. @click="startRecording"
  370. v-if="!videoStart && (tType == 1 || tType == 4)"
  371. >
  372. 录制
  373. </div>
  374. <div
  375. class="returnBtn"
  376. @click="stopRecording"
  377. v-else-if="tType == 1 || tType == 4"
  378. style="background: #ee5255"
  379. >
  380. 下载
  381. </div>
  382. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  383. 评论
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="nextOrpreSteps(0)"
  388. v-if="!(IsFollow && tType == 2)"
  389. >
  390. 上一步
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(1)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 下一步
  398. </div>
  399. <div class="returnBtn" @click="refreshCourse">刷新</div>
  400. <div
  401. class="returnBtn returnIcon"
  402. @click.stop="
  403. goTo(
  404. '/courseDetail?userid=' +
  405. userid +
  406. '&oid=' +
  407. oid +
  408. '&org=' +
  409. org +
  410. '&cid=' +
  411. classId +
  412. '&courseId=' +
  413. id +
  414. '&tType=' +
  415. tType +
  416. '&screenType=' +
  417. screenType
  418. )
  419. "
  420. >
  421. 返回
  422. </div> -->
  423. </div>
  424. </div>
  425. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  426. .taskDetail3 && -->
  427. <div
  428. class="isNoMessage"
  429. v-if="
  430. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  431. .chapterData.length == 0 &&
  432. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .toolChoose[0].tool.length == 0 &&
  434. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  435. .taskDetail == '' &&
  436. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .eList &&
  438. !(
  439. courseDetail.userid == userid ||
  440. (courseDetail.course_teacher &&
  441. courseDetail.course_teacher.indexOf(userid) != -1)
  442. )
  443. "
  444. >
  445. <img src="../../assets/icon/isNoMessage.png" alt />
  446. </div>
  447. <div class="study_top" :class="{ pzClass: pzDialog }">
  448. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail3 || -->
  450. <div
  451. class="vedioBox"
  452. v-if="
  453. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  454. .taskDetail != '' ||
  455. vChapterData[0].length > 0 ||
  456. fileC[0].length > 0
  457. "
  458. style="border-radius: 0 0 20px 20px"
  459. >
  460. <!-- <div
  461. class="taskBox"
  462. v-if="
  463. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  464. .taskDetail3
  465. "
  466. >
  467. <div
  468. style="
  469. display: flex;
  470. flex-wrap: nowrap;
  471. flex-direction: column;
  472. position: relative;
  473. "
  474. >
  475. <div
  476. style="
  477. padding: 15px 0;
  478. line-height: 29px;
  479. font-size: 18px;
  480. color: #0e1e33;
  481. "
  482. class="cont"
  483. v-if="
  484. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  485. .taskDetail3 != ''
  486. "
  487. v-html="
  488. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  489. .taskDetail3
  490. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  491. taskCount
  492. ].taskDetail3)
  493. : '暂无描述'
  494. "
  495. ></div>
  496. </div>
  497. </div> -->
  498. <div
  499. class="taskBox"
  500. v-if="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail != ''
  503. "
  504. >
  505. <div
  506. style="
  507. display: flex;
  508. flex-wrap: nowrap;
  509. flex-direction: column;
  510. position: relative;
  511. "
  512. >
  513. <div
  514. style="
  515. padding: 15px 0;
  516. line-height: 29px;
  517. font-size: 18px;
  518. color: #0e1e33;
  519. "
  520. class="cont"
  521. v-if="
  522. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  523. .taskDetail != ''
  524. "
  525. v-html="
  526. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  527. .taskDetail
  528. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  529. taskCount
  530. ].taskDetail
  531. : '暂无描述'
  532. "
  533. ></div>
  534. </div>
  535. </div>
  536. <div
  537. class="student_head"
  538. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  539. >
  540. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  541. <div
  542. :class="
  543. contentDialog == false
  544. ? 'box_course isContentCss'
  545. : 'box_course'
  546. "
  547. v-if="
  548. vChapterData.length > 0 &&
  549. vChapterData[0] &&
  550. showType !== ''
  551. "
  552. >
  553. <div class="wheel" style="height: auto" v-if="showType === 0">
  554. <div
  555. class="workd_media"
  556. style="height: 650px; width: calc(100% - 50px)"
  557. >
  558. <video-player
  559. class="video-player vjs-custom-skin"
  560. :class="contentDialog == false ? 'isAllWidth' : ''"
  561. :playsinline="true"
  562. :options="playerO[0]"
  563. @play="onPlayerPlay($event)"
  564. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  565. ></video-player>
  566. </div>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="showType == 1"
  571. style="
  572. box-shadow: 0 0 6px 1px #f2f2f2;
  573. width: 95%;
  574. margin: 0 auto;
  575. background: #f1f1f1;
  576. "
  577. >
  578. <div class="title">查看文档</div>
  579. <el-form class="textBox">
  580. <el-form-item class="textTitle">
  581. <div style="font-size: 22px">
  582. {{ text.name }}
  583. </div>
  584. </el-form-item>
  585. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  586. <div v-html="text.url" class="textContent cont"></div>
  587. </el-form>
  588. </div>
  589. <div
  590. class="wheel"
  591. v-if="
  592. pptImgUrl1.indexOf(
  593. 'https://view.officeapps.live.com/op/view.aspx?src='
  594. ) != -1 && showType == 2
  595. "
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <iframe
  599. style="width: 100%; height: 100%; border: none"
  600. :src="pptImgUrl1"
  601. ></iframe>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-else-if="showType == 2"
  606. style="width: 95%; margin: 0 auto"
  607. >
  608. <iframe
  609. style="width: 100%; height: 100%; border: none"
  610. security="restricted"
  611. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  612. :src="pptImgUrl1"
  613. ></iframe>
  614. </div>
  615. <div
  616. class="wheel"
  617. v-if="showType == 3"
  618. style="width: 95%; margin: 0 auto"
  619. >
  620. <pdf
  621. :pdfUrl="pptImgUrl1"
  622. style="width: 100%; height: 100%; overflow: auto"
  623. ></pdf>
  624. </div>
  625. <div
  626. class="wheel"
  627. v-if="showType == 4"
  628. style="width: 95%; margin: 0 auto"
  629. >
  630. <el-image
  631. :src="pptImgUrl1"
  632. fit="contain"
  633. style="width: 100%; height: 100%; cursor: pointer"
  634. @click="previewImg(pptImgUrl1)"
  635. ></el-image>
  636. </div>
  637. </div>
  638. <div
  639. class="pButton"
  640. style="position: absolute; right: 20px; top: 0; z-index: 998"
  641. v-if="!contentDialog"
  642. @click="setContent(true)"
  643. >
  644. <!-- 批 -->
  645. <img
  646. src="../../assets/icon/newIcons/isLeft.png"
  647. style="width: 45px"
  648. alt=""
  649. />
  650. </div>
  651. <div
  652. v-if="contentDialog == true"
  653. :style="{
  654. width:
  655. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  656. showType === ''
  657. ? 'calc(100%)'
  658. : '300px',
  659. margin:
  660. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  661. showType === ''
  662. ? '0 15px'
  663. : '0 15px 0 0',
  664. }"
  665. >
  666. <div
  667. class="vedioList"
  668. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  669. style="height: 650px"
  670. >
  671. <div class="navCorOpenBox">
  672. <div class="navTitile">内容列表:</div>
  673. <div class="navCorOpen" @click="setContent(false)">
  674. <img
  675. src="../../assets/icon/newIcons/isRight.png"
  676. alt=""
  677. />
  678. </div>
  679. </div>
  680. <div class="navBox">
  681. <div
  682. v-show="
  683. vChapterData[0].length > 0 || fileC[0].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[0]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img
  703. src="../../assets/icon/newIcon/down.png"
  704. alt
  705. />
  706. </div>
  707. </div>
  708. <div class="navListItem" v-if="vitem.type == 6">
  709. <div
  710. @click="lookText(0, vindex)"
  711. class="navText"
  712. :class="isClickNav == vindex ? 'isClickNav' : ''"
  713. >
  714. {{ vitem.name }}.doc
  715. </div>
  716. <div
  717. class="downIcon"
  718. @click="checkFileFull1(vitem.type, vitem)"
  719. >
  720. <img
  721. src="../../assets/icon/newIcon/allScreen.png"
  722. alt
  723. />
  724. </div>
  725. </div>
  726. <div
  727. class="navListItem"
  728. v-if="vitem.type == 8 || vitem.type == 14"
  729. >
  730. <div
  731. @click="doUrl(vitem.url, vindex)"
  732. class="navText"
  733. :class="isClickNav == vindex ? 'isClickNav' : ''"
  734. >
  735. {{ vitem.title ? vitem.title : vitem.url }}
  736. </div>
  737. <div
  738. class="downIcon"
  739. @click="checkFileFull1(vitem.type, vitem)"
  740. >
  741. <img
  742. src="../../assets/icon/newIcon/allScreen.png"
  743. alt
  744. />
  745. </div>
  746. </div>
  747. <div class="navListItem" v-if="vitem.type == 3">
  748. <div
  749. @click="downFile(vitem, vindex)"
  750. class="navText"
  751. :class="isClickNav == vindex ? 'isClickNav' : ''"
  752. >
  753. <span v-if="vitem.text">{{ vitem.text }}-</span
  754. >{{ vitem.name }}
  755. </div>
  756. <div
  757. class="downIcon"
  758. @click="checkFileFull1(vitem.type, vitem)"
  759. >
  760. <img
  761. src="../../assets/icon/newIcon/allScreen.png"
  762. alt
  763. />
  764. </div>
  765. <div class="downIcon" @click="downloadFile2(vitem)">
  766. <img
  767. src="../../assets/icon/newIcon/down.png"
  768. alt
  769. />
  770. </div>
  771. </div>
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" @click="downloadFile2(vitem)">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="checkFileFull1(vitem.type, vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/allScreen.png"
  783. alt
  784. />
  785. </div>
  786. <div class="downIcon" @click="downloadFile2(vitem)">
  787. <img
  788. src="../../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. <div class="navListItem" v-if="vitem.type == 13">
  794. <div
  795. class="navText"
  796. @click="checkPhoto(vitem, vindex)"
  797. :class="isClickNav == vindex ? 'isClickNav' : ''"
  798. >
  799. {{ vitem.name }}
  800. </div>
  801. <div class="downIcon" @click="downloadFile2(vitem)">
  802. <img
  803. src="../../assets/icon/newIcon/down.png"
  804. alt
  805. />
  806. </div>
  807. </div>
  808. </div>
  809. <div class="fileC_box" v-if="fileC[0].length > 0">
  810. <div class="fileC_title">以下文件不支持预览</div>
  811. <div
  812. class="vedioTimeBox"
  813. v-for="(vitem, vindex) in fileC[0]"
  814. :key="vindex + '1'"
  815. >
  816. <div class="navListItem" v-if="vitem.type == 12">
  817. <div class="navText" style="color: #acb4bf">
  818. <span v-if="vitem.text">{{ vitem.text }}-</span
  819. >{{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="downloadFile2(vitem)"
  824. >
  825. <img
  826. src="../../assets/icon/newIcon/down.png"
  827. alt
  828. />
  829. </div>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. <div style="width: calc(100% - 315px)">
  839. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  840. <!-- <el-button
  841. type="primary"
  842. class="newButton"
  843. @click="checkFileFull(showType, pptImgUrl1)"
  844. >全屏查看</el-button
  845. >
  846. <el-button
  847. type="primary"
  848. class="newButton"
  849. @click="downloadFile(pptImgUrl1)"
  850. v-if="showType != 2"
  851. >文件下载</el-button
  852. > -->
  853. <el-button
  854. v-if="
  855. showType == 2 &&
  856. pptImgUrl1.indexOf(
  857. 'https://view.officeapps.live.com/op/view.aspx?src='
  858. ) == -1
  859. "
  860. type="primary"
  861. class="newButton"
  862. @click="openLine(pptImgUrl1)"
  863. >打开链接
  864. </el-button>
  865. </div>
  866. <!-- <div
  867. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  868. v-if="showType == 1"
  869. >
  870. <el-button
  871. type="primary"
  872. class="newButton"
  873. @click="checkFileFull(showType, text)"
  874. >全屏查看</el-button
  875. >
  876. </div> -->
  877. </div>
  878. </div>
  879. </div>
  880. <div class="student_body" v-resize="resize">
  881. <div
  882. class="vedioBox"
  883. :style="{
  884. borderRadius:
  885. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  886. .taskDetail == '' &&
  887. vChapterData[taskCount].length == 0 &&
  888. fileC[taskCount].length == 0
  889. ? '0 0 20px 20px'
  890. : '20px',
  891. }"
  892. v-if="
  893. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  894. .toolChoose[0].tool &&
  895. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  896. .toolChoose[0].tool.length > 0
  897. "
  898. >
  899. <div
  900. class="toolHeng2"
  901. style="position: relative"
  902. v-if="
  903. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  904. .toolChoose[0].tool &&
  905. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  906. .toolChoose[0].tool.length &&
  907. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  908. .toolChoose[0].tool.length > 0
  909. "
  910. >
  911. <div class="workNav">工作区</div>
  912. <div
  913. class="filebox"
  914. style="flex-wrap: nowrap"
  915. v-for="(tool, toolIndex) in chapInfoList[courseType]
  916. .chapterInfo[0].taskJson[taskCount].toolChoose"
  917. :key="toolIndex"
  918. >
  919. <div class="bzBox">
  920. <div class="yCss"></div>
  921. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  922. 工具{{ toolIndex + 1 }}
  923. </div>
  924. <div
  925. v-if="timeWorkList[toolIndex].length > 0"
  926. style="margin: 0 0 0 10px"
  927. >
  928. {{
  929. timeWorkList[toolIndex][0].time
  930. ? "时间:" + timeWorkList[toolIndex][0].time
  931. : ""
  932. }}
  933. </div>
  934. </div>
  935. <div class="toolBox">
  936. <div>
  937. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  938. :key="indexTool"-->
  939. <!-- <div class="iframeBox">
  940. <div
  941. class="addPoint isBorder"
  942. v-for="(tooC, toolCIndex) in tool.tool"
  943. :key="toolCIndex"
  944. >
  945. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  946. <div
  947. class="iframeName"
  948. >
  949. 电子白板
  950. </div>
  951. <iframe
  952. src="https://iwb.cocorobo.cn/"
  953. ref="whiteBoard"
  954. ></iframe>
  955. </div>
  956. </div>
  957. </div>-->
  958. <div class="noiframeBox">
  959. <div
  960. class="addPoint"
  961. v-for="(tooC, toolCIndex) in tool.tool"
  962. :key="toolCIndex"
  963. >
  964. <div v-if="tooC == 1">
  965. <img
  966. src="../../assets/icon/secondToolList/whiteBoard.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">电子白板</div>
  971. </div>
  972. <div v-if="tooC == 3">
  973. <img
  974. src="../../assets/icon/secondToolList/mindMapping.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">思维导图</div>
  979. </div>
  980. <div v-if="tooC == 6">
  981. <img
  982. src="../../assets/icon/secondToolList/doc.png"
  983. alt
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. />
  986. <div style="margin: 5px 0">协同文档</div>
  987. </div>
  988. <div v-if="tooC == 7">
  989. <img
  990. src="../../assets/icon/secondToolList/mindNetwork.png"
  991. alt
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. />
  994. <div style="margin: 5px 0">思维网格</div>
  995. </div>
  996. <div v-if="tooC == 8">
  997. <img
  998. src="../../assets/icon/secondToolList/library.png"
  999. alt
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. />
  1002. <div style="margin: 5px 0">素材库</div>
  1003. </div>
  1004. <div v-if="tooC == 17">
  1005. <img
  1006. src="../../assets/icon/secondToolList/library.png"
  1007. alt
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. />
  1010. <div style="margin: 5px 0">学习资料</div>
  1011. </div>
  1012. <div v-if="tooC == 2">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/secondToolList/note.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">便签</div>
  1019. </div>
  1020. <div v-if="tooC == 4">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/ask.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问卷调查</div>
  1027. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1028. style="position: absolute;right: 33px;top: -30px;">
  1029. 统计分析
  1030. </div>
  1031. </div>
  1032. <div v-if="tooC == 45">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/choose.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">选择题</div>
  1039. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1040. style="position: absolute;right: 33px;top: -30px;">
  1041. 作业详细
  1042. </div>
  1043. </div>
  1044. <!-- <div v-if="tooC == 5">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/score.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">量规评分</div>
  1051. </div> -->
  1052. <div v-if="tooC == 10">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/time.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">倒计时</div>
  1059. </div>
  1060. <div v-if="tooC == 15">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/thirdToolList/answer.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">问答</div>
  1067. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1068. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1069. 作业详细
  1070. </div>
  1071. </div>
  1072. <div v-if="tooC == 26">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/thirdToolList/courseDesign.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">课程设计</div>
  1079. </div>
  1080. <div v-if="tooC == 18">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">训练服务器</div>
  1087. </div>
  1088. <div v-if="tooC == 16">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/thirdToolList/work.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">作业提交</div>
  1095. </div>
  1096. <div v-if="tooC == 50">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/thirdToolList/plwork.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">批量上传</div>
  1103. </div>
  1104. <div v-if="tooC == 21">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/fourthToolList/program.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">AIoT Blockly</div>
  1111. </div>
  1112. <!-- <div v-if="tooC == 22">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/fourthToolList/program.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">AI体验</div>
  1119. </div> -->
  1120. <div v-if="tooC == 23">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">AI Python</div>
  1127. </div>
  1128. <div v-if="tooC == 24">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/fourthToolList/AIprogram.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">AI Blockly</div>
  1135. </div>
  1136. <div v-if="tooC == 25">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/evalua.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">目标管理</div>
  1143. </div>
  1144. <div v-if="tooC == 31">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/secondToolList/networkPanel.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">数学画板</div>
  1151. </div>
  1152. <div v-if="tooC == 28">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../../assets/icon/secondToolList/translation.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">翻译</div>
  1159. </div>
  1160. <div v-if="tooC == 37">
  1161. <img
  1162. @click="addTools(tooC, toolIndex, taskCount)"
  1163. src="../../assets/icon/secondToolList/mohe.png"
  1164. alt
  1165. />
  1166. <div style="margin: 5px 0">魔盒识字</div>
  1167. </div>
  1168. <div v-if="tooC == 38">
  1169. <img
  1170. @click="addTools(tooC, toolIndex, taskCount)"
  1171. src="../../assets/icon/secondToolList/24game.png"
  1172. alt
  1173. />
  1174. <div style="margin: 5px 0">24点</div>
  1175. </div>
  1176. <div v-if="tooC == 39">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../../assets/icon/secondToolList/GeoGebra.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">GeoGebra</div>
  1183. </div>
  1184. <div v-if="tooC == 32">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/thirdToolList/code.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">源码编辑</div>
  1191. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1192. style="position: absolute;left: 110px;bottom: 30px;">
  1193. 上传文件
  1194. <input type="file" accept="*" style="display: none"
  1195. @change="beforeUpload1($event, 7, toolIndex)" />
  1196. </div> -->
  1197. </div>
  1198. <div v-if="tooC == 40">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/secondToolList/eval.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">个人评价</div>
  1205. </div>
  1206. <div v-if="tooC == 41">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/thirdToolList/select.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">选择匹配</div>
  1213. <!-- <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. 作业详细
  1216. </div> -->
  1217. </div>
  1218. <div v-if="tooC == 44">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/thirdToolList/hanClass.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">汉字宫</div>
  1225. </div>
  1226. <div v-if="tooC == 47">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/conSentences.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">排序</div>
  1233. </div>
  1234. <div v-if="tooC == 48">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/table.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">表格</div>
  1241. </div>
  1242. <div v-if="tooC == 52">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/text.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">文档</div>
  1249. </div>
  1250. <div v-if="tooC == 49">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/fourthToolList/group.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">学生分组</div>
  1257. </div>
  1258. <div v-if="tooC == 57">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/cocopi.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">CocoPi</div>
  1265. </div>
  1266. <div v-if="tooC == 58">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/fourthToolList/car.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">模拟驾驶</div>
  1273. </div>
  1274. <div v-if="tooC == 59">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/fourthToolList/lineSearch.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">路径搜索</div>
  1281. </div>
  1282. <div v-if="tooC == 60">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/fourthToolList/deepLearning.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">深度学习</div>
  1289. </div>
  1290. <div v-if="tooC == 61">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../assets/icon/fourthToolList/allHistory.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">全历史</div>
  1297. </div>
  1298. <div v-if="tooC == 62">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../assets/icon/fourthToolList/interVideo.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">交互视频</div>
  1305. </div>
  1306. <div v-if="tooC == 63">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/fourthToolList/Wood.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">海龟编程</div>
  1313. </div>
  1314. <div v-if="tooC == 71">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/fourthToolList/chatgpt.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">AI智能体</div>
  1321. </div>
  1322. <div v-if="tooC == 65">
  1323. <img
  1324. @click="addTools(tooC, toolIndex, taskCount)"
  1325. src="../../assets/icon/firstToolList/pickPeople.png"
  1326. alt
  1327. />
  1328. <div style="margin: 5px 0">挑人</div>
  1329. </div>
  1330. <div v-if="tooC == 66">
  1331. <img
  1332. @click="addTools(tooC, toolIndex, taskCount)"
  1333. src="../../assets/icon/secondToolList/formulaEdi.png"
  1334. alt
  1335. />
  1336. <div style="margin: 5px 0">公式编辑</div>
  1337. </div>
  1338. <div v-if="tooC == 67">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/secondToolList/molStr.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">分子结构</div>
  1345. </div>
  1346. <div v-if="tooC == 68">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/secondToolList/timeAxis.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">时间轴</div>
  1353. </div>
  1354. <div v-if="tooC == 69">
  1355. <img
  1356. @click="addTools(tooC, toolIndex, taskCount)"
  1357. src="../../assets/icon/secondToolList/english.png"
  1358. alt
  1359. />
  1360. <div style="margin: 5px 0">英语写作</div>
  1361. </div>
  1362. <div v-if="tooC == 70">
  1363. <img
  1364. @click="addTools(tooC, toolIndex, taskCount)"
  1365. src="../../assets/icon/thirdToolList/englishVoice.png"
  1366. alt
  1367. />
  1368. <div style="margin: 5px 0">英语口语</div>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1374. <!-- <div class="toolTitle">工具描述</div> -->
  1375. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1376. <div style="height:100%;"
  1377. v-html="contentConvent(tool.toolDetail)"
  1378. v-if="toolDetailIndex != toolIndex"
  1379. ></div>
  1380. <div v-else @click.stop="" style="height:100%;">
  1381. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1382. </div>
  1383. </div>
  1384. <el-button
  1385. type="primary"
  1386. v-if="tool.tool[0] == 32"
  1387. style="position: absolute; right: 30px; top: -45px"
  1388. @click="addImg($event)"
  1389. >上传作业<input
  1390. type="file"
  1391. accept="*"
  1392. style="display: none"
  1393. @change="beforeUpload1($event, 7, toolIndex)"
  1394. /></el-button>
  1395. <el-button
  1396. type="primary"
  1397. v-if="tool.tool[0] == 15"
  1398. style="position: absolute; right: 30px; top: -45px"
  1399. @click="openWordCloud(toolIndex)"
  1400. >生成词云</el-button
  1401. >
  1402. <el-button
  1403. type="primary"
  1404. v-if="
  1405. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1406. "
  1407. style="position: absolute; right: 30px; top: -45px"
  1408. @click="uploadWorks(toolIndex)"
  1409. >导出作业</el-button
  1410. >
  1411. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1412. position: absolute;
  1413. right: 30px;
  1414. transform: translateY(-130%);
  1415. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1416. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1417. </div>
  1418. <div
  1419. v-if="
  1420. tType &&
  1421. tType == 2 &&
  1422. !sIsOpen &&
  1423. tool.tool.indexOf(16) != -1
  1424. "
  1425. class="worksBox"
  1426. >
  1427. <div
  1428. class="zuoyeYulan"
  1429. v-if="workStudent[toolIndex].length > 0"
  1430. >
  1431. <span class="worksTitle">作业预览</span>
  1432. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1433. </div>
  1434. <div
  1435. class="worksDetailBox"
  1436. v-if="workStudent[toolIndex].length > 0"
  1437. >
  1438. <div
  1439. class="works"
  1440. style="
  1441. width: 200px;
  1442. height: 140px;
  1443. margin: 10px 10px 10px 0;
  1444. box-shadow: 0 0 6px 1px #dfdada;
  1445. "
  1446. v-for="(w, wIndex) in workStudent[toolIndex]"
  1447. :key="wIndex"
  1448. >
  1449. <div class="workImg" v-if="w.type == 0">
  1450. <img
  1451. :src="w.works"
  1452. @click="previewImg(w.works,w)"
  1453. alt
  1454. />
  1455. <div
  1456. class="answerScore"
  1457. v-if="w.score"
  1458. @click.stop="openScore(w)"
  1459. :class="{
  1460. rightW:
  1461. w.userid == userid || tType == 1 || tType == 4,
  1462. }"
  1463. >
  1464. {{ JSON.parse(w.score).wScore }}分
  1465. </div>
  1466. <div
  1467. class="answerScore"
  1468. @click.stop="openScore(w)"
  1469. v-else-if="courseDetail.userid == userid"
  1470. :class="{
  1471. rightW:
  1472. w.userid == userid || tType == 1 || tType == 4,
  1473. }"
  1474. >
  1475. 评分
  1476. </div>
  1477. <img
  1478. class="deleteImg"
  1479. src="../../assets/deleteworks.png"
  1480. v-if="
  1481. w.userid == userid || tType == 1 || tType == 4
  1482. "
  1483. @click.stop="deleteWorks(w.wid)"
  1484. alt
  1485. />
  1486. </div>
  1487. <div class="workImg" v-if="w.type == 1">
  1488. <img :src="word" @click="openFile(w.works)" alt />
  1489. <div
  1490. class="answerScore"
  1491. v-if="w.score"
  1492. @click.stop="openScore(w)"
  1493. :class="{
  1494. rightW:
  1495. w.userid == userid || tType == 1 || tType == 4,
  1496. }"
  1497. >
  1498. {{ JSON.parse(w.score).wScore }}分
  1499. </div>
  1500. <div
  1501. class="answerScore"
  1502. @click.stop="openScore(w)"
  1503. v-else-if="courseDetail.userid == userid"
  1504. :class="{
  1505. rightW:
  1506. w.userid == userid || tType == 1 || tType == 4,
  1507. }"
  1508. >
  1509. 评分
  1510. </div>
  1511. <img
  1512. class="deleteImg"
  1513. src="../../assets/deleteworks.png"
  1514. v-if="
  1515. w.userid == userid || tType == 1 || tType == 4
  1516. "
  1517. @click.stop="deleteWorks(w.wid)"
  1518. alt
  1519. />
  1520. </div>
  1521. <div class="workImg" v-if="w.type == 3">
  1522. <img
  1523. style="cursor: pointer"
  1524. :src="video"
  1525. @click="openVideo(w)"
  1526. alt
  1527. />
  1528. <div
  1529. class="answerScore"
  1530. v-if="w.score"
  1531. @click.stop="openScore(w)"
  1532. :class="{
  1533. rightW:
  1534. w.userid == userid || tType == 1 || tType == 4,
  1535. }"
  1536. >
  1537. {{ JSON.parse(w.score).wScore }}分
  1538. </div>
  1539. <div
  1540. class="answerScore"
  1541. @click.stop="openScore(w)"
  1542. v-else-if="courseDetail.userid == userid"
  1543. :class="{
  1544. rightW:
  1545. w.userid == userid || tType == 1 || tType == 4,
  1546. }"
  1547. >
  1548. 评分
  1549. </div>
  1550. <img
  1551. class="deleteImg"
  1552. src="../../assets/deleteworks.png"
  1553. v-if="
  1554. w.userid == userid || tType == 1 || tType == 4
  1555. "
  1556. @click.stop="deleteWorks(w.wid)"
  1557. alt
  1558. />
  1559. </div>
  1560. <div class="workImg" v-if="w.type == 12">
  1561. <img
  1562. style="cursor: pointer"
  1563. :src="word2"
  1564. @click="downloadFile(w.works)"
  1565. alt
  1566. />
  1567. <div
  1568. class="answerScore"
  1569. v-if="w.score"
  1570. @click.stop="openScore(w)"
  1571. :class="{
  1572. rightW:
  1573. w.userid == userid || tType == 1 || tType == 4,
  1574. }"
  1575. >
  1576. {{ JSON.parse(w.score).wScore }}分
  1577. </div>
  1578. <div
  1579. class="answerScore"
  1580. @click.stop="openScore(w)"
  1581. v-else-if="courseDetail.userid == userid"
  1582. :class="{
  1583. rightW:
  1584. w.userid == userid || tType == 1 || tType == 4,
  1585. }"
  1586. >
  1587. 评分
  1588. </div>
  1589. <img
  1590. class="deleteImg"
  1591. src="../../assets/deleteworks.png"
  1592. v-if="
  1593. w.userid == userid || tType == 1 || tType == 4
  1594. "
  1595. @click.stop="deleteWorks(w.wid)"
  1596. alt
  1597. />
  1598. </div>
  1599. <div class="worksName">
  1600. <div>{{ w.sName }}</div>
  1601. </div>
  1602. </div>
  1603. </div>
  1604. </div>
  1605. <div
  1606. v-if="
  1607. tType &&
  1608. tType == 2 &&
  1609. !sIsOpen &&
  1610. tool.tool.indexOf(32) != -1
  1611. "
  1612. class="worksBox"
  1613. >
  1614. <div
  1615. class="zuoyeYulan"
  1616. v-if="workStudent[toolIndex].length > 0"
  1617. >
  1618. <span class="worksTitle">作业预览</span>
  1619. </div>
  1620. <div
  1621. class="worksDetailBox"
  1622. v-if="workStudent[toolIndex].length > 0"
  1623. >
  1624. <div
  1625. class="works"
  1626. style="
  1627. width: 200px;
  1628. height: 140px;
  1629. margin: 10px 10px 10px 0;
  1630. box-shadow: 0 0 6px 1px #dfdada;
  1631. "
  1632. v-for="(w, wIndex) in workStudent[toolIndex]"
  1633. :key="wIndex"
  1634. >
  1635. <div class="workImg">
  1636. <img
  1637. :src="word2"
  1638. @click="downloadFile(w.works)"
  1639. alt
  1640. />
  1641. <div
  1642. class="answerScore"
  1643. v-if="w.score"
  1644. @click.stop="openScore(w)"
  1645. :class="{
  1646. rightW:
  1647. w.userid == userid || tType == 1 || tType == 4,
  1648. }"
  1649. >
  1650. {{ JSON.parse(w.score).wScore }}分
  1651. </div>
  1652. <div
  1653. class="answerScore"
  1654. @click.stop="openScore(w)"
  1655. v-else-if="courseDetail.userid == userid"
  1656. :class="{
  1657. rightW:
  1658. w.userid == userid || tType == 1 || tType == 4,
  1659. }"
  1660. >
  1661. 评分
  1662. </div>
  1663. <img
  1664. class="deleteImg"
  1665. src="../../assets/deleteworks.png"
  1666. v-if="
  1667. w.userid == userid || tType == 1 || tType == 4
  1668. "
  1669. @click.stop="deleteWorks(w.wid)"
  1670. alt
  1671. />
  1672. </div>
  1673. <div class="worksName">
  1674. <div>{{ w.sName }}</div>
  1675. </div>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. <div
  1680. v-if="
  1681. tType &&
  1682. tType == 2 &&
  1683. !sIsOpen &&
  1684. tool.tool.indexOf(57) != -1
  1685. "
  1686. class="worksBox"
  1687. >
  1688. <div
  1689. class="zuoyeYulan"
  1690. v-if="workStudent[toolIndex].length > 0"
  1691. >
  1692. <span class="worksTitle">作业预览</span>
  1693. </div>
  1694. <div
  1695. class="worksDetailBox"
  1696. v-if="workStudent[toolIndex].length > 0"
  1697. >
  1698. <div
  1699. class="works"
  1700. style="
  1701. width: 200px;
  1702. height: 140px;
  1703. margin: 10px 10px 10px 0;
  1704. box-shadow: 0 0 6px 1px #dfdada;
  1705. "
  1706. v-for="(w, wIndex) in workStudent[toolIndex]"
  1707. :key="wIndex"
  1708. >
  1709. <div class="workImg">
  1710. <img
  1711. :src="word2"
  1712. @click="downloadFile(w.works)"
  1713. v-if="w.type == 12"
  1714. alt
  1715. />
  1716. <img
  1717. :src="word2"
  1718. @click="
  1719. openCocoPi(57, toolIndex, w.userid, w.sName)
  1720. "
  1721. v-else-if="w.type == 15"
  1722. alt
  1723. />
  1724. <div
  1725. class="answerScore"
  1726. v-if="w.score"
  1727. @click.stop="openScore(w)"
  1728. :class="{
  1729. rightW:
  1730. w.userid == userid || tType == 1 || tType == 4,
  1731. }"
  1732. >
  1733. {{ JSON.parse(w.score).wScore }}分
  1734. </div>
  1735. <div
  1736. class="answerScore"
  1737. @click.stop="openScore(w)"
  1738. v-else-if="courseDetail.userid == userid"
  1739. :class="{
  1740. rightW:
  1741. w.userid == userid || tType == 1 || tType == 4,
  1742. }"
  1743. >
  1744. 评分
  1745. </div>
  1746. <img
  1747. class="deleteImg"
  1748. src="../../assets/deleteworks.png"
  1749. v-if="
  1750. w.userid == userid || tType == 1 || tType == 4
  1751. "
  1752. @click.stop="deleteWorks(w.wid)"
  1753. alt
  1754. />
  1755. </div>
  1756. <div class="worksName">
  1757. <div>{{ w.sName }}</div>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <div
  1763. v-if="
  1764. tType &&
  1765. tType == 2 &&
  1766. !sIsOpen &&
  1767. tool.tool.indexOf(4) != -1
  1768. "
  1769. class="worksBox"
  1770. >
  1771. <div
  1772. class="zuoyeYulan"
  1773. v-if="workStudent[toolIndex].length > 0"
  1774. >
  1775. <span class="worksTitle">作业预览</span>
  1776. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1777. </div>
  1778. <div
  1779. class="worksDetailBox"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <div
  1783. class="isWorksName2"
  1784. v-for="(w, wIndex) in workStudent[toolIndex]"
  1785. :key="wIndex"
  1786. @click="
  1787. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1788. "
  1789. >
  1790. {{ w.sName }}
  1791. <img
  1792. class="deleteImg deleteImg2"
  1793. src="../../assets/deleteworks.png"
  1794. v-if="w.userid == userid || tType == 1 || tType == 4"
  1795. @click.stop="deleteWorks(w.wid)"
  1796. alt
  1797. />
  1798. </div>
  1799. <!-- <div
  1800. class="works"
  1801. style="
  1802. width: 200px;
  1803. height: 140px;
  1804. border-radius: 10px;
  1805. box-shadow: 0 0 6px 1px #dfdada;
  1806. overflow: hidden;
  1807. "
  1808. v-for="(w, wIndex) in workStudent[toolIndex]"
  1809. :key="wIndex"
  1810. >
  1811. <div class="workImg">
  1812. <img
  1813. src="../../assets/icon/works/noImg.png"
  1814. @click="
  1815. openTools(
  1816. 4,
  1817. toolIndex,
  1818. taskCount,
  1819. w.works,
  1820. w.sName
  1821. )
  1822. "
  1823. alt
  1824. />
  1825. </div>
  1826. <div class="worksName">
  1827. <div>{{ w.sName }}</div>
  1828. <div>{{ w.time }}</div>
  1829. </div>
  1830. </div> -->
  1831. </div>
  1832. </div>
  1833. <div
  1834. v-if="
  1835. tType &&
  1836. ((tType == 2 && sIsOpen == true) ||
  1837. tType == 1 ||
  1838. tType == 4) &&
  1839. tool.tool.indexOf(62) != -1
  1840. "
  1841. class="worksBox"
  1842. >
  1843. <div
  1844. class="zuoyeYulan"
  1845. v-if="
  1846. worksStudent.length &&
  1847. worksStudent[toolIndex].length > 0
  1848. "
  1849. >
  1850. <div class="worksTop">
  1851. <div>作业预览</div>
  1852. <div
  1853. class="corOpen"
  1854. @click="contract(toolIndex)"
  1855. v-if="
  1856. (isCloseList[toolIndex].isCloseBoolean) &&
  1857. isCloseList[toolIndex].isClose == 0
  1858. "
  1859. >
  1860. 折叠
  1861. </div>
  1862. <div
  1863. class="corOpen"
  1864. @click="contract(toolIndex)"
  1865. v-if="isCloseList[toolIndex].isClose == 1"
  1866. >
  1867. 展开
  1868. </div>
  1869. </div>
  1870. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1871. </div>
  1872. <div>
  1873. <div
  1874. :id="'tool-' + toolIndex"
  1875. :style="{
  1876. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1877. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1878. }"
  1879. class="worksDetailBox"
  1880. v-if="
  1881. worksStudent.length &&
  1882. worksStudent[toolIndex].length > 0
  1883. "
  1884. >
  1885. <div
  1886. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1887. :key="wIndex"
  1888. class="isWorksName2"
  1889. @click="
  1890. openTools(
  1891. 62,
  1892. toolIndex,
  1893. taskCount,
  1894. w.works,
  1895. w.sName
  1896. )
  1897. "
  1898. >
  1899. {{ w.sName }}
  1900. <img
  1901. class="deleteImg deleteImg2"
  1902. src="../../assets/deleteworks.png"
  1903. v-if="
  1904. w.userid == userid || tType == 1 || tType == 4
  1905. "
  1906. @click.stop="deleteWorks(w.wid)"
  1907. alt
  1908. />
  1909. </div>
  1910. </div>
  1911. </div>
  1912. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1913. 未提交
  1914. </div>
  1915. <div
  1916. class="noWorksS"
  1917. v-if="noWorksS && noWorksS[toolIndex].length"
  1918. >
  1919. <div
  1920. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1921. :key="sIndex"
  1922. class="noWorksName"
  1923. >
  1924. <el-tooltip effect="dark" :content="s.student" placement="top">
  1925. <span>{{ s.student }}</span>
  1926. </el-tooltip>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. <div
  1931. v-if="
  1932. tType &&
  1933. tType == 2 &&
  1934. !sIsOpen &&
  1935. tool.tool.indexOf(62) != -1
  1936. "
  1937. class="worksBox"
  1938. >
  1939. <div
  1940. class="zuoyeYulan"
  1941. v-if="workStudent[toolIndex].length > 0"
  1942. >
  1943. <span class="worksTitle">作业预览</span>
  1944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1945. </div>
  1946. <div
  1947. class="worksDetailBox"
  1948. v-if="workStudent[toolIndex].length > 0"
  1949. >
  1950. <div
  1951. class="isWorksName2"
  1952. v-for="(w, wIndex) in workStudent[toolIndex]"
  1953. :key="wIndex"
  1954. @click="
  1955. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1956. "
  1957. >
  1958. {{ w.sName }}
  1959. <img
  1960. class="deleteImg deleteImg2"
  1961. src="../../assets/deleteworks.png"
  1962. v-if="w.userid == userid || tType == 1 || tType == 4"
  1963. @click.stop="deleteWorks(w.wid)"
  1964. alt
  1965. />
  1966. </div>
  1967. </div>
  1968. </div>
  1969. <div
  1970. v-if="
  1971. tType &&
  1972. tType == 2 &&
  1973. !sIsOpen &&
  1974. tool.tool.indexOf(45) != -1
  1975. "
  1976. class="worksBox"
  1977. >
  1978. <div
  1979. class="zuoyeYulan"
  1980. v-if="workStudent[toolIndex].length > 0"
  1981. >
  1982. <span class="worksTitle">作业预览</span>
  1983. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1984. </div>
  1985. <div
  1986. class="worksDetailBox"
  1987. v-if="workStudent[toolIndex].length > 0"
  1988. >
  1989. <div
  1990. class="isWorksName2"
  1991. v-for="(w, wIndex) in workStudent[toolIndex]"
  1992. :key="wIndex"
  1993. @click="
  1994. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1995. "
  1996. >
  1997. {{ w.sName }}
  1998. <img
  1999. class="deleteImg deleteImg2"
  2000. src="../../assets/deleteworks.png"
  2001. v-if="w.userid == userid || tType == 1 || tType == 4"
  2002. @click.stop="deleteWorks(w.wid)"
  2003. alt
  2004. />
  2005. </div>
  2006. </div>
  2007. </div>
  2008. <div
  2009. v-if="
  2010. tType &&
  2011. tType == 2 &&
  2012. !sIsOpen &&
  2013. tool.tool.indexOf(69) != -1
  2014. "
  2015. class="worksBox"
  2016. >
  2017. <div
  2018. class="zuoyeYulan"
  2019. v-if="workStudent[toolIndex].length > 0"
  2020. >
  2021. <span class="worksTitle">作业预览</span>
  2022. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2023. </div>
  2024. <div
  2025. class="worksDetailBox"
  2026. v-if="workStudent[toolIndex].length > 0"
  2027. >
  2028. <div
  2029. class="isWorksName2"
  2030. v-for="(w, wIndex) in workStudent[toolIndex]"
  2031. :key="wIndex"
  2032. @click="
  2033. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2034. "
  2035. >
  2036. {{ w.sName }}
  2037. <img
  2038. class="deleteImg deleteImg2"
  2039. src="../../assets/deleteworks.png"
  2040. v-if="w.userid == userid || tType == 1 || tType == 4"
  2041. @click.stop="deleteWorks(w.wid)"
  2042. alt
  2043. />
  2044. </div>
  2045. </div>
  2046. </div>
  2047. <div
  2048. v-if="
  2049. tType &&
  2050. tType == 2 &&
  2051. !sIsOpen &&
  2052. tool.tool.indexOf(15) != -1
  2053. "
  2054. class="worksBox"
  2055. >
  2056. <div
  2057. class="zuoyeYulan"
  2058. v-if="workStudent[toolIndex].length > 0"
  2059. >
  2060. <span class="worksTitle">作业预览</span>
  2061. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2062. </div>
  2063. <div
  2064. class="worksDetailBox"
  2065. v-if="workStudent[toolIndex].length > 0"
  2066. >
  2067. <div
  2068. class="works"
  2069. v-for="(w, wIndex) in workStudent[toolIndex]"
  2070. :key="wIndex"
  2071. >
  2072. <div class="workImg">
  2073. <!-- <img
  2074. src="../../assets/icon/works/noImg.png"
  2075. @click="openTools(15, toolIndex, taskCount, w.works)"
  2076. alt=""
  2077. />-->
  2078. <div class="answerBg">
  2079. <!-- <div>{{ w.sName }}</div> -->
  2080. <el-tooltip
  2081. class="item"
  2082. effect="light"
  2083. :content="JSON.parse(w.works)[0].answer"
  2084. placement="top"
  2085. >
  2086. <div class="answerContent">
  2087. {{ JSON.parse(w.works)[0].answer }}
  2088. </div>
  2089. </el-tooltip>
  2090. <div
  2091. class="answerScore"
  2092. v-if="w.score"
  2093. @click.stop="openScore(w)"
  2094. :class="{
  2095. rightW:
  2096. w.userid == userid ||
  2097. tType == 1 ||
  2098. tType == 4,
  2099. }"
  2100. >
  2101. {{ JSON.parse(w.score).wScore }}分
  2102. </div>
  2103. <div
  2104. class="answerScore"
  2105. @click.stop="openScore(w)"
  2106. v-else-if="courseDetail.userid == userid"
  2107. :class="{
  2108. rightW:
  2109. w.userid == userid ||
  2110. tType == 1 ||
  2111. tType == 4,
  2112. }"
  2113. >
  2114. 评分
  2115. </div>
  2116. <img
  2117. class="deleteImg"
  2118. src="../../assets/deleteworks.png"
  2119. v-if="
  2120. w.userid == userid || tType == 1 || tType == 4
  2121. "
  2122. @click.stop="deleteWorks(w.wid)"
  2123. alt
  2124. />
  2125. </div>
  2126. <div class="comment">
  2127. <div class="worksName">
  2128. <div>{{ w.sName }}</div>
  2129. </div>
  2130. </div>
  2131. </div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. <div
  2136. v-if="
  2137. tType &&
  2138. tType == 2 &&
  2139. !sIsOpen &&
  2140. tool.tool.indexOf(1) != -1
  2141. "
  2142. class="worksBox"
  2143. >
  2144. <div
  2145. class="zuoyeYulan"
  2146. v-if="workStudent[toolIndex].length > 0"
  2147. >
  2148. <span class="worksTitle">作业预览</span>
  2149. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2150. </div>
  2151. <div
  2152. class="worksDetailBox"
  2153. v-if="workStudent[toolIndex].length > 0"
  2154. >
  2155. <div
  2156. class="works"
  2157. style="
  2158. width: 200px;
  2159. height: 140px;
  2160. margin: 10px 10px 10px 0;
  2161. box-shadow: 0 0 6px 1px #dfdada;
  2162. "
  2163. v-for="(w, wIndex) in workStudent[toolIndex]"
  2164. :key="wIndex"
  2165. >
  2166. <div class="workImg">
  2167. <img
  2168. :src="w.works"
  2169. @click="previewImg(w.works,w)"
  2170. alt
  2171. />
  2172. <div
  2173. class="answerScore"
  2174. v-if="w.score"
  2175. @click.stop="openScore(w)"
  2176. :class="{
  2177. rightW:
  2178. w.userid == userid || tType == 1 || tType == 4,
  2179. }"
  2180. >
  2181. {{ JSON.parse(w.score).wScore }}分
  2182. </div>
  2183. <div
  2184. class="answerScore"
  2185. @click.stop="openScore(w)"
  2186. v-else-if="courseDetail.userid == userid"
  2187. :class="{
  2188. rightW:
  2189. w.userid == userid || tType == 1 || tType == 4,
  2190. }"
  2191. >
  2192. 评分
  2193. </div>
  2194. <img
  2195. class="deleteImg"
  2196. src="../../assets/deleteworks.png"
  2197. v-if="
  2198. w.userid == userid || tType == 1 || tType == 4
  2199. "
  2200. @click.stop="deleteWorks(w.wid)"
  2201. alt
  2202. />
  2203. </div>
  2204. <div class="worksName">
  2205. <div>{{ w.sName }}</div>
  2206. </div>
  2207. </div>
  2208. </div>
  2209. </div>
  2210. <div
  2211. v-if="
  2212. tType &&
  2213. tType == 2 &&
  2214. !sIsOpen &&
  2215. tool.tool.indexOf(3) != -1
  2216. "
  2217. class="worksBox"
  2218. >
  2219. <div
  2220. class="zuoyeYulan"
  2221. v-if="workStudent[toolIndex].length > 0"
  2222. >
  2223. <span class="worksTitle">作业预览</span>
  2224. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2225. </div>
  2226. <div
  2227. class="worksDetailBox"
  2228. v-if="workStudent[toolIndex].length > 0"
  2229. >
  2230. <div
  2231. class="works"
  2232. style="
  2233. width: 200px;
  2234. height: 140px;
  2235. margin: 10px 10px 10px 0;
  2236. box-shadow: 0 0 6px 1px #dfdada;
  2237. "
  2238. v-for="(w, wIndex) in workStudent[toolIndex]"
  2239. :key="wIndex"
  2240. >
  2241. <div class="workImg">
  2242. <img
  2243. :src="w.works"
  2244. @click="previewImg(w.works,w)"
  2245. alt
  2246. />
  2247. <div
  2248. class="answerScore"
  2249. v-if="w.score"
  2250. @click.stop="openScore(w)"
  2251. :class="{
  2252. rightW:
  2253. w.userid == userid || tType == 1 || tType == 4,
  2254. }"
  2255. >
  2256. {{ JSON.parse(w.score).wScore }}分
  2257. </div>
  2258. <div
  2259. class="answerScore"
  2260. @click.stop="openScore(w)"
  2261. v-else-if="courseDetail.userid == userid"
  2262. :class="{
  2263. rightW:
  2264. w.userid == userid || tType == 1 || tType == 4,
  2265. }"
  2266. >
  2267. 评分
  2268. </div>
  2269. <img
  2270. class="deleteImg"
  2271. src="../../assets/deleteworks.png"
  2272. v-if="
  2273. w.userid == userid || tType == 1 || tType == 4
  2274. "
  2275. @click.stop="deleteWorks(w.wid)"
  2276. alt
  2277. />
  2278. </div>
  2279. <div class="worksName">
  2280. <div>{{ w.sName }}</div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. <div
  2286. v-if="
  2287. tType &&
  2288. tType == 2 &&
  2289. !sIsOpen &&
  2290. tool.tool.indexOf(6) != -1
  2291. "
  2292. class="worksBox"
  2293. >
  2294. <div
  2295. class="zuoyeYulan"
  2296. v-if="workStudent[toolIndex].length > 0"
  2297. >
  2298. <span class="worksTitle">作业预览</span>
  2299. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2300. </div>
  2301. <div
  2302. class="worksDetailBox"
  2303. v-if="workStudent[toolIndex].length > 0"
  2304. >
  2305. <div
  2306. class="works"
  2307. style="
  2308. width: 200px;
  2309. height: 140px;
  2310. margin: 10px 10px 10px 0;
  2311. box-shadow: 0 0 6px 1px #dfdada;
  2312. "
  2313. v-for="(w, wIndex) in workStudent[toolIndex]"
  2314. :key="wIndex"
  2315. >
  2316. <div class="workImg">
  2317. <img
  2318. :src="w.works"
  2319. @click="previewImg(w.works,w)"
  2320. alt
  2321. />
  2322. <div
  2323. class="answerScore"
  2324. v-if="w.score"
  2325. @click.stop="openScore(w)"
  2326. :class="{
  2327. rightW:
  2328. w.userid == userid || tType == 1 || tType == 4,
  2329. }"
  2330. >
  2331. {{ JSON.parse(w.score).wScore }}分
  2332. </div>
  2333. <div
  2334. class="answerScore"
  2335. @click.stop="openScore(w)"
  2336. v-else-if="courseDetail.userid == userid"
  2337. :class="{
  2338. rightW:
  2339. w.userid == userid || tType == 1 || tType == 4,
  2340. }"
  2341. >
  2342. 评分
  2343. </div>
  2344. <img
  2345. class="deleteImg"
  2346. src="../../assets/deleteworks.png"
  2347. v-if="
  2348. w.userid == userid || tType == 1 || tType == 4
  2349. "
  2350. @click.stop="deleteWorks(w.wid)"
  2351. alt
  2352. />
  2353. </div>
  2354. <div class="worksName">
  2355. <div>{{ w.sName }}</div>
  2356. </div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. <div
  2361. v-if="
  2362. tType &&
  2363. tType == 2 &&
  2364. !sIsOpen &&
  2365. tool.tool.indexOf(7) != -1
  2366. "
  2367. class="worksBox"
  2368. >
  2369. <div
  2370. class="zuoyeYulan"
  2371. v-if="workStudent[toolIndex].length > 0"
  2372. >
  2373. <span class="worksTitle">作业预览</span>
  2374. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2375. </div>
  2376. <div
  2377. class="worksDetailBox"
  2378. v-if="workStudent[toolIndex].length > 0"
  2379. >
  2380. <div
  2381. class="works"
  2382. style="
  2383. width: 200px;
  2384. height: 140px;
  2385. margin: 10px 10px 10px 0;
  2386. box-shadow: 0 0 6px 1px #dfdada;
  2387. "
  2388. v-for="(w, wIndex) in workStudent[toolIndex]"
  2389. :key="wIndex"
  2390. >
  2391. <div class="workImg">
  2392. <img
  2393. :src="w.works"
  2394. @click="previewImg(w.works,w)"
  2395. alt
  2396. />
  2397. <div
  2398. class="answerScore"
  2399. v-if="w.score"
  2400. @click.stop="openScore(w)"
  2401. :class="{
  2402. rightW:
  2403. w.userid == userid || tType == 1 || tType == 4,
  2404. }"
  2405. >
  2406. {{ JSON.parse(w.score).wScore }}分
  2407. </div>
  2408. <div
  2409. class="answerScore"
  2410. @click.stop="openScore(w)"
  2411. v-else-if="courseDetail.userid == userid"
  2412. :class="{
  2413. rightW:
  2414. w.userid == userid || tType == 1 || tType == 4,
  2415. }"
  2416. >
  2417. 评分
  2418. </div>
  2419. <img
  2420. class="deleteImg"
  2421. src="../../assets/deleteworks.png"
  2422. v-if="
  2423. w.userid == userid || tType == 1 || tType == 4
  2424. "
  2425. @click.stop="deleteWorks(w.wid)"
  2426. alt
  2427. />
  2428. </div>
  2429. <div class="worksName">
  2430. <div>{{ w.sName }}</div>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. <div
  2436. v-if="
  2437. tType &&
  2438. tType == 2 &&
  2439. !sIsOpen &&
  2440. tool.tool.indexOf(26) != -1
  2441. "
  2442. class="worksBox"
  2443. >
  2444. <div
  2445. class="zuoyeYulan"
  2446. v-if="workStudent[toolIndex].length > 0"
  2447. >
  2448. <span class="worksTitle">作业预览</span>
  2449. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2450. </div>
  2451. <div
  2452. class="worksDetailBox"
  2453. v-if="workStudent[toolIndex].length > 0"
  2454. >
  2455. <div
  2456. class="works"
  2457. style="
  2458. width: 200px;
  2459. height: 140px;
  2460. margin: 10px 10px 10px 0;
  2461. box-shadow: 0 0 6px 1px #dfdada;
  2462. "
  2463. v-for="(w, wIndex) in workStudent[toolIndex]"
  2464. :key="wIndex"
  2465. >
  2466. <div class="workImg">
  2467. <img
  2468. :src="w.works"
  2469. @click="previewImg(w.works,w)"
  2470. alt
  2471. />
  2472. <img
  2473. class="deleteImg"
  2474. src="../../assets/deleteworks.png"
  2475. v-if="
  2476. w.userid == userid || tType == 1 || tType == 4
  2477. "
  2478. @click.stop="deleteWorks(w.wid)"
  2479. alt
  2480. />
  2481. </div>
  2482. <div class="worksName">
  2483. <div>{{ w.sName }}</div>
  2484. </div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. <div
  2489. v-if="
  2490. tType &&
  2491. ((tType == 2 && sIsOpen == true) ||
  2492. tType == 1 ||
  2493. tType == 4) &&
  2494. tool.tool.indexOf(16) != -1
  2495. "
  2496. class="worksBox"
  2497. >
  2498. <div
  2499. class="zuoyeYulan"
  2500. v-if="
  2501. (worksStudent.length &&
  2502. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2503. "
  2504. >
  2505. <div class="worksTop">
  2506. <div>作业预览</div>
  2507. <div
  2508. class="corOpen"
  2509. @click="contract(toolIndex)"
  2510. v-if="
  2511. (isCloseList[toolIndex].isCloseBoolean) &&
  2512. isCloseList[toolIndex].isClose == 0
  2513. "
  2514. >
  2515. 折叠
  2516. </div>
  2517. <div
  2518. class="corOpen"
  2519. @click="contract(toolIndex)"
  2520. v-if="isCloseList[toolIndex].isClose == 1"
  2521. >
  2522. 展开
  2523. </div>
  2524. </div>
  2525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2526. </div>
  2527. <div
  2528. class="group_workBox"
  2529. v-for="(g, gindex) in courseGroup.group"
  2530. :key="gindex"
  2531. >
  2532. <div class="group_box">
  2533. <div class="group_title">
  2534. <el-tooltip
  2535. class="item"
  2536. effect="light"
  2537. :content="g.name"
  2538. placement="top"
  2539. >
  2540. <div class="group_name">{{ g.name }}</div>
  2541. </el-tooltip>
  2542. </div>
  2543. <div
  2544. class="group_work"
  2545. v-if="
  2546. g.works &&
  2547. g.works.length &&
  2548. g.works[toolIndex].length
  2549. "
  2550. >
  2551. <div
  2552. class="works"
  2553. style="
  2554. width: 200px;
  2555. height: 140px;
  2556. margin: 10px 10px 10px 0;
  2557. border-radius: 15px;
  2558. box-shadow: 0 0 6px 1px #dfdada;
  2559. "
  2560. v-for="(w, wIndex) in g.works[toolIndex]"
  2561. :key="wIndex"
  2562. :class="w.type == 1 ? 'isTypeOne' : ''"
  2563. >
  2564. <div class="workImg" v-if="w.type == 0">
  2565. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2566. <img
  2567. :src="w.works"
  2568. @click="previewImg(w.works,w)"
  2569. alt
  2570. />
  2571. <div
  2572. class="answerScore"
  2573. v-if="w.score"
  2574. @click.stop="openScore(w)"
  2575. :class="{
  2576. rightW:
  2577. w.userid == userid ||
  2578. tType == 1 ||
  2579. tType == 4 ||
  2580. w.ateacher == userid,
  2581. }"
  2582. >
  2583. {{ JSON.parse(w.score).wScore }}分
  2584. </div>
  2585. <div
  2586. class="answerScore"
  2587. @click.stop="openScore(w)"
  2588. v-else-if="courseDetail.userid == userid"
  2589. :class="{
  2590. rightW:
  2591. w.userid == userid ||
  2592. tType == 1 ||
  2593. tType == 4 ||
  2594. w.ateacher == userid,
  2595. }"
  2596. >
  2597. 评分
  2598. </div>
  2599. <img
  2600. class="deleteImg"
  2601. src="../../assets/deleteworks.png"
  2602. v-if="
  2603. w.userid == userid || tType == 1 || tType == 4
  2604. "
  2605. @click.stop="deleteWorks(w.wid)"
  2606. alt
  2607. />
  2608. </div>
  2609. <div class="workImg" v-if="w.type == 1">
  2610. <img :src="word" @click="openFile(w.works)" alt />
  2611. <!-- @click="openFile(w.works)" -->
  2612. <div
  2613. class="answerScore"
  2614. v-if="w.score"
  2615. @click.stop="openScore(w)"
  2616. :class="{
  2617. rightW:
  2618. w.userid == userid ||
  2619. tType == 1 ||
  2620. tType == 4 ||
  2621. w.ateacher == userid,
  2622. }"
  2623. >
  2624. {{ JSON.parse(w.score).wScore }}分
  2625. </div>
  2626. <div
  2627. class="answerScore"
  2628. @click.stop="openScore(w)"
  2629. v-else-if="courseDetail.userid == userid"
  2630. :class="{
  2631. rightW:
  2632. w.userid == userid ||
  2633. tType == 1 ||
  2634. tType == 4 ||
  2635. w.ateacher == userid,
  2636. }"
  2637. >
  2638. 评分
  2639. </div>
  2640. <img
  2641. class="deleteImg"
  2642. src="../../assets/deleteworks.png"
  2643. v-if="
  2644. w.userid == userid || tType == 1 || tType == 4
  2645. "
  2646. @click.stop="deleteWorks(w.wid)"
  2647. alt
  2648. />
  2649. </div>
  2650. <div class="workImg" v-if="w.type == 3">
  2651. <img
  2652. style="cursor: pointer"
  2653. :src="video"
  2654. @click="openVideo(w)"
  2655. alt
  2656. />
  2657. <!-- @click="openVideo(w.works)" -->
  2658. <div
  2659. class="answerScore"
  2660. v-if="w.score"
  2661. @click.stop="openScore(w)"
  2662. :class="{
  2663. rightW:
  2664. w.userid == userid ||
  2665. tType == 1 ||
  2666. tType == 4 ||
  2667. w.ateacher == userid,
  2668. }"
  2669. >
  2670. {{ JSON.parse(w.score).wScore }}分
  2671. </div>
  2672. <div
  2673. class="answerScore"
  2674. @click.stop="openScore(w)"
  2675. v-else-if="courseDetail.userid == userid"
  2676. :class="{
  2677. rightW:
  2678. w.userid == userid ||
  2679. tType == 1 ||
  2680. tType == 4 ||
  2681. w.ateacher == userid,
  2682. }"
  2683. >
  2684. 评分
  2685. </div>
  2686. <img
  2687. class="deleteImg"
  2688. src="../../assets/deleteworks.png"
  2689. v-if="
  2690. w.userid == userid || tType == 1 || tType == 4
  2691. "
  2692. @click.stop="deleteWorks(w.wid)"
  2693. alt
  2694. />
  2695. </div>
  2696. <div class="workImg" v-if="w.type == 12">
  2697. <img
  2698. style="cursor: pointer"
  2699. :src="word2"
  2700. @click="downloadFile(w.works)"
  2701. alt
  2702. />
  2703. <!-- @click="openVideo(w.works)" -->
  2704. <div
  2705. class="answerScore"
  2706. v-if="w.score"
  2707. @click.stop="openScore(w)"
  2708. :class="{
  2709. rightW:
  2710. w.userid == userid ||
  2711. tType == 1 ||
  2712. tType == 4 ||
  2713. w.ateacher == userid,
  2714. }"
  2715. >
  2716. {{ JSON.parse(w.score).wScore }}分
  2717. </div>
  2718. <div
  2719. class="answerScore"
  2720. @click.stop="openScore(w)"
  2721. v-else-if="courseDetail.userid == userid"
  2722. :class="{
  2723. rightW:
  2724. w.userid == userid ||
  2725. tType == 1 ||
  2726. tType == 4 ||
  2727. w.ateacher == userid,
  2728. }"
  2729. >
  2730. 评分
  2731. </div>
  2732. <img
  2733. class="deleteImg"
  2734. src="../../assets/deleteworks.png"
  2735. v-if="
  2736. w.userid == userid || tType == 1 || tType == 4
  2737. "
  2738. @click.stop="deleteWorks(w.wid)"
  2739. alt
  2740. />
  2741. </div>
  2742. <div class="comment" style="min-width: 200px">
  2743. <div class="worksName">
  2744. <div>{{ w.sName }}</div>
  2745. </div>
  2746. <div class="commentList">
  2747. <div class="commentList">
  2748. <div
  2749. class="commentImg"
  2750. @click="
  2751. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2752. "
  2753. >
  2754. <img
  2755. :src="w.isLikes == true ? likes : noLikes"
  2756. alt=""
  2757. />
  2758. </div>
  2759. <div>{{ w.likesCount }}</div>
  2760. </div>
  2761. <div
  2762. class="commentList"
  2763. style="margin-right: 15px"
  2764. >
  2765. <div
  2766. class="commentImg"
  2767. @click="
  2768. commentOther(
  2769. w,
  2770. toolIndex,
  2771. wIndex,
  2772. null,
  2773. g.id
  2774. )
  2775. "
  2776. >
  2777. <img
  2778. src="../../assets/icon/comment/comment.png"
  2779. alt=""
  2780. />
  2781. </div>
  2782. <div>{{ w.commentCount }}</div>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. <div class="group_work" v-else>暂无提交作业</div>
  2789. </div>
  2790. </div>
  2791. <div
  2792. :id="'tool-' + toolIndex"
  2793. :style="{
  2794. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2795. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2796. }"
  2797. class="worksDetailBox"
  2798. v-if="
  2799. worksStudent.length &&
  2800. worksStudent[toolIndex].length > 0
  2801. "
  2802. >
  2803. <div
  2804. class="works"
  2805. style="
  2806. width: 200px;
  2807. height: 140px;
  2808. margin: 10px 10px 10px 0;
  2809. border-radius: 15px;
  2810. box-shadow: 0 0 6px 1px #dfdada;
  2811. "
  2812. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2813. :key="wIndex"
  2814. :class="w.type == 1 ? 'isTypeOne' : ''"
  2815. >
  2816. <div class="workImg" v-if="w.type == 0">
  2817. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2818. <img
  2819. :src="w.works"
  2820. @click="previewImg(w.works,w)"
  2821. alt
  2822. />
  2823. <div
  2824. class="answerScore"
  2825. v-if="w.score"
  2826. @click.stop="openScore(w)"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. {{ JSON.parse(w.score).wScore }}分
  2836. </div>
  2837. <div
  2838. class="answerScore"
  2839. @click.stop="openScore(w)"
  2840. v-else-if="courseDetail.userid == userid"
  2841. :class="{
  2842. rightW:
  2843. w.userid == userid ||
  2844. tType == 1 ||
  2845. tType == 4 ||
  2846. w.ateacher == userid,
  2847. }"
  2848. >
  2849. 评分
  2850. </div>
  2851. <img
  2852. class="deleteImg"
  2853. src="../../assets/deleteworks.png"
  2854. v-if="
  2855. w.userid == userid || tType == 1 || tType == 4
  2856. "
  2857. @click.stop="deleteWorks(w.wid)"
  2858. alt
  2859. />
  2860. </div>
  2861. <div class="workImg" v-if="w.type == 1">
  2862. <img :src="word" @click="openFile(w.works)" alt />
  2863. <!-- @click="openFile(w.works)" -->
  2864. <div
  2865. class="answerScore"
  2866. v-if="w.score"
  2867. @click.stop="openScore(w)"
  2868. :class="{
  2869. rightW:
  2870. w.userid == userid ||
  2871. tType == 1 ||
  2872. tType == 4 ||
  2873. w.ateacher == userid,
  2874. }"
  2875. >
  2876. {{ JSON.parse(w.score).wScore }}分
  2877. </div>
  2878. <div
  2879. class="answerScore"
  2880. @click.stop="openScore(w)"
  2881. v-else-if="courseDetail.userid == userid"
  2882. :class="{
  2883. rightW:
  2884. w.userid == userid ||
  2885. tType == 1 ||
  2886. tType == 4 ||
  2887. w.ateacher == userid,
  2888. }"
  2889. >
  2890. 评分
  2891. </div>
  2892. <img
  2893. class="deleteImg"
  2894. src="../../assets/deleteworks.png"
  2895. v-if="
  2896. w.userid == userid || tType == 1 || tType == 4
  2897. "
  2898. @click.stop="deleteWorks(w.wid)"
  2899. alt
  2900. />
  2901. </div>
  2902. <div class="workImg" v-if="w.type == 3">
  2903. <img
  2904. style="cursor: pointer"
  2905. :src="video"
  2906. @click="openVideo(w)"
  2907. alt
  2908. />
  2909. <!-- @click="openVideo(w.works)" -->
  2910. <div
  2911. class="answerScore"
  2912. v-if="w.score"
  2913. @click.stop="openScore(w)"
  2914. :class="{
  2915. rightW:
  2916. w.userid == userid ||
  2917. tType == 1 ||
  2918. tType == 4 ||
  2919. w.ateacher == userid,
  2920. }"
  2921. >
  2922. {{ JSON.parse(w.score).wScore }}分
  2923. </div>
  2924. <div
  2925. class="answerScore"
  2926. @click.stop="openScore(w)"
  2927. v-else-if="courseDetail.userid == userid"
  2928. :class="{
  2929. rightW:
  2930. w.userid == userid ||
  2931. tType == 1 ||
  2932. tType == 4 ||
  2933. w.ateacher == userid,
  2934. }"
  2935. >
  2936. 评分
  2937. </div>
  2938. <img
  2939. class="deleteImg"
  2940. src="../../assets/deleteworks.png"
  2941. v-if="
  2942. w.userid == userid || tType == 1 || tType == 4
  2943. "
  2944. @click.stop="deleteWorks(w.wid)"
  2945. alt
  2946. />
  2947. </div>
  2948. <div class="workImg" v-if="w.type == 12">
  2949. <img
  2950. style="cursor: pointer"
  2951. :src="word2"
  2952. @click="downloadFile(w.works)"
  2953. alt
  2954. />
  2955. <!-- @click="openVideo(w.works)" -->
  2956. <div
  2957. class="answerScore"
  2958. v-if="w.score"
  2959. @click.stop="openScore(w)"
  2960. :class="{
  2961. rightW:
  2962. w.userid == userid ||
  2963. tType == 1 ||
  2964. tType == 4 ||
  2965. w.ateacher == userid,
  2966. }"
  2967. >
  2968. {{ JSON.parse(w.score).wScore }}分
  2969. </div>
  2970. <div
  2971. class="answerScore"
  2972. @click.stop="openScore(w)"
  2973. v-else-if="courseDetail.userid == userid"
  2974. :class="{
  2975. rightW:
  2976. w.userid == userid ||
  2977. tType == 1 ||
  2978. tType == 4 ||
  2979. w.ateacher == userid,
  2980. }"
  2981. >
  2982. 评分
  2983. </div>
  2984. <img
  2985. class="deleteImg"
  2986. src="../../assets/deleteworks.png"
  2987. v-if="
  2988. w.userid == userid || tType == 1 || tType == 4
  2989. "
  2990. @click.stop="deleteWorks(w.wid)"
  2991. alt
  2992. />
  2993. </div>
  2994. <div class="comment" style="min-width: 200px">
  2995. <div class="worksName">
  2996. <div>{{ w.sName }}</div>
  2997. </div>
  2998. <div class="commentList">
  2999. <div class="commentList">
  3000. <div
  3001. class="commentImg"
  3002. @click="
  3003. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3004. "
  3005. >
  3006. <img
  3007. :src="w.isLikes == true ? likes : noLikes"
  3008. alt=""
  3009. />
  3010. </div>
  3011. <div>{{ w.likesCount }}</div>
  3012. </div>
  3013. <div class="commentList" style="margin-right: 15px">
  3014. <div
  3015. class="commentImg"
  3016. @click="commentOther(w, toolIndex, wIndex)"
  3017. >
  3018. <img
  3019. src="../../assets/icon/comment/comment.png"
  3020. alt=""
  3021. />
  3022. </div>
  3023. <div>{{ w.commentCount }}</div>
  3024. </div>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3030. 未提交
  3031. </div>
  3032. <div
  3033. class="noWorksS"
  3034. v-if="noWorksS && noWorksS[toolIndex].length"
  3035. >
  3036. <div
  3037. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3038. :key="sIndex"
  3039. class="noWorksName"
  3040. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3041. >
  3042. <el-tooltip effect="dark" :content="s.student" placement="top">
  3043. <span>{{ s.student }}</span>
  3044. </el-tooltip>
  3045. </div>
  3046. </div>
  3047. </div>
  3048. <div
  3049. v-if="
  3050. tType &&
  3051. ((tType == 2 && sIsOpen == true) ||
  3052. tType == 1 ||
  3053. tType == 4) &&
  3054. tool.tool.indexOf(70) != -1
  3055. "
  3056. class="worksBox"
  3057. >
  3058. <div
  3059. class="zuoyeYulan"
  3060. v-if="
  3061. (worksStudent.length &&
  3062. worksStudent[toolIndex].length > 0)
  3063. "
  3064. >
  3065. <div class="worksTop">
  3066. <div>作业预览</div>
  3067. <div
  3068. class="corOpen"
  3069. @click="contract(toolIndex)"
  3070. v-if="
  3071. (isCloseList[toolIndex].isCloseBoolean) &&
  3072. isCloseList[toolIndex].isClose == 0
  3073. "
  3074. >
  3075. 折叠
  3076. </div>
  3077. <div
  3078. class="corOpen"
  3079. @click="contract(toolIndex)"
  3080. v-if="isCloseList[toolIndex].isClose == 1"
  3081. >
  3082. 展开
  3083. </div>
  3084. </div>
  3085. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3086. </div>
  3087. <div
  3088. :id="'tool-' + toolIndex"
  3089. :style="{
  3090. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3091. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3092. }"
  3093. class="worksDetailBox"
  3094. v-if="
  3095. worksStudent.length &&
  3096. worksStudent[toolIndex].length > 0
  3097. "
  3098. >
  3099. <div
  3100. class="works"
  3101. style="
  3102. width: 200px;
  3103. height: 140px;
  3104. margin: 10px 10px 10px 0;
  3105. border-radius: 15px;
  3106. box-shadow: 0 0 6px 1px #dfdada;
  3107. "
  3108. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3109. :key="wIndex"
  3110. :class="w.type == 1 ? 'isTypeOne' : ''"
  3111. >
  3112. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3113. <img :src="word" alt />
  3114. <img
  3115. class="deleteImg"
  3116. src="../../assets/deleteworks.png"
  3117. v-if="
  3118. w.userid == userid || tType == 1 || tType == 4
  3119. "
  3120. @click.stop="deleteWorks(w.wid)"
  3121. alt
  3122. />
  3123. </div>
  3124. <div class="comment" style="min-width: 200px">
  3125. <div class="worksName">
  3126. <div>{{ w.sName }}</div>
  3127. </div>
  3128. </div>
  3129. </div>
  3130. </div>
  3131. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3132. 未提交
  3133. </div>
  3134. <div
  3135. class="noWorksS"
  3136. v-if="noWorksS && noWorksS[toolIndex].length"
  3137. >
  3138. <div
  3139. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3140. :key="sIndex"
  3141. class="noWorksName"
  3142. >
  3143. <el-tooltip effect="dark" :content="s.student" placement="top">
  3144. <span>{{ s.student }}</span>
  3145. </el-tooltip>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. <div
  3150. v-if="
  3151. tType &&
  3152. tType == 2 &&
  3153. !sIsOpen &&
  3154. tool.tool.indexOf(70) != -1
  3155. "
  3156. class="worksBox"
  3157. >
  3158. <div
  3159. class="zuoyeYulan"
  3160. v-if="workStudent[toolIndex].length > 0"
  3161. >
  3162. <span class="worksTitle">作业预览</span>
  3163. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3164. </div>
  3165. <div
  3166. class="worksDetailBox"
  3167. v-if="workStudent[toolIndex].length > 0"
  3168. >
  3169. <div
  3170. class="works"
  3171. style="
  3172. width: 200px;
  3173. height: 140px;
  3174. margin: 10px 10px 10px 0;
  3175. box-shadow: 0 0 6px 1px #dfdada;
  3176. "
  3177. v-for="(w, wIndex) in workStudent[toolIndex]"
  3178. :key="wIndex"
  3179. >
  3180. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3181. <img :src="word" alt />
  3182. <img
  3183. class="deleteImg"
  3184. src="../../assets/deleteworks.png"
  3185. v-if="
  3186. w.userid == userid || tType == 1 || tType == 4
  3187. "
  3188. @click.stop="deleteWorks(w.wid)"
  3189. alt
  3190. />
  3191. </div>
  3192. <div class="worksName">
  3193. <div>{{ w.sName }}</div>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. <div
  3199. v-if="
  3200. tType &&
  3201. ((tType == 2 && sIsOpen == true) ||
  3202. tType == 1 ||
  3203. tType == 4) &&
  3204. tool.tool.indexOf(32) != -1
  3205. "
  3206. class="worksBox"
  3207. >
  3208. <div
  3209. class="zuoyeYulan"
  3210. v-if="
  3211. worksStudent.length &&
  3212. worksStudent[toolIndex].length > 0
  3213. "
  3214. >
  3215. <div class="worksTop">
  3216. <div>作业预览</div>
  3217. <div
  3218. class="corOpen"
  3219. @click="contract(toolIndex)"
  3220. v-if="
  3221. (isCloseList[toolIndex].isCloseBoolean) &&
  3222. isCloseList[toolIndex].isClose == 0
  3223. "
  3224. >
  3225. 折叠
  3226. </div>
  3227. <div
  3228. class="corOpen"
  3229. @click="contract(toolIndex)"
  3230. v-if="isCloseList[toolIndex].isClose == 1"
  3231. >
  3232. 展开
  3233. </div>
  3234. </div>
  3235. </div>
  3236. <div
  3237. :id="'tool-' + toolIndex"
  3238. :style="{
  3239. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3240. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3241. }"
  3242. class="worksDetailBox"
  3243. v-if="
  3244. worksStudent.length &&
  3245. worksStudent[toolIndex].length > 0
  3246. "
  3247. >
  3248. <div
  3249. class="works"
  3250. style="
  3251. width: 200px;
  3252. height: 140px;
  3253. margin: 10px 10px 10px 0;
  3254. border-radius: 15px;
  3255. box-shadow: 0 0 6px 1px #dfdada;
  3256. "
  3257. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3258. :key="wIndex"
  3259. :class="w.type == 1 ? 'isTypeOne' : ''"
  3260. >
  3261. <div class="workImg">
  3262. <img
  3263. :src="word2"
  3264. @click="downloadFile(w.works)"
  3265. alt
  3266. />
  3267. <div
  3268. class="answerScore"
  3269. v-if="w.score"
  3270. @click.stop="openScore(w)"
  3271. :class="{
  3272. rightW:
  3273. w.userid == userid ||
  3274. tType == 1 ||
  3275. tType == 4 ||
  3276. w.ateacher == userid,
  3277. }"
  3278. >
  3279. {{ JSON.parse(w.score).wScore }}分
  3280. </div>
  3281. <div
  3282. class="answerScore"
  3283. @click.stop="openScore(w)"
  3284. v-else-if="courseDetail.userid == userid"
  3285. :class="{
  3286. rightW:
  3287. w.userid == userid ||
  3288. tType == 1 ||
  3289. tType == 4 ||
  3290. w.ateacher == userid,
  3291. }"
  3292. >
  3293. 评分
  3294. </div>
  3295. <img
  3296. class="deleteImg"
  3297. src="../../assets/deleteworks.png"
  3298. v-if="
  3299. w.userid == userid || tType == 1 || tType == 4
  3300. "
  3301. @click.stop="deleteWorks(w.wid)"
  3302. alt
  3303. />
  3304. </div>
  3305. <div class="comment" style="min-width: 200px">
  3306. <div class="worksName">
  3307. <div>{{ w.sName }}</div>
  3308. </div>
  3309. <div class="commentList">
  3310. <div class="commentList">
  3311. <div
  3312. class="commentImg"
  3313. @click="
  3314. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3315. "
  3316. >
  3317. <img
  3318. :src="w.isLikes == true ? likes : noLikes"
  3319. alt=""
  3320. />
  3321. </div>
  3322. <div>{{ w.likesCount }}</div>
  3323. </div>
  3324. <div class="commentList" style="margin-right: 15px">
  3325. <div
  3326. class="commentImg"
  3327. @click="commentOther(w, toolIndex, wIndex)"
  3328. >
  3329. <img
  3330. src="../../assets/icon/comment/comment.png"
  3331. alt=""
  3332. />
  3333. </div>
  3334. <div>{{ w.commentCount }}</div>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3341. 未提交
  3342. </div>
  3343. <div
  3344. class="noWorksS"
  3345. v-if="noWorksS && noWorksS[toolIndex].length"
  3346. >
  3347. <div
  3348. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3349. :key="sIndex"
  3350. class="noWorksName"
  3351. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3352. >
  3353. <el-tooltip effect="dark" :content="s.student" placement="top">
  3354. <span>{{ s.student }}</span>
  3355. </el-tooltip>
  3356. </div>
  3357. </div>
  3358. </div>
  3359. <div
  3360. v-if="
  3361. tType &&
  3362. ((tType == 2 && sIsOpen == true) ||
  3363. tType == 1 ||
  3364. tType == 4) &&
  3365. tool.tool.indexOf(57) != -1
  3366. "
  3367. class="worksBox"
  3368. >
  3369. <div
  3370. class="zuoyeYulan"
  3371. v-if="
  3372. worksStudent.length &&
  3373. worksStudent[toolIndex].length > 0
  3374. "
  3375. >
  3376. <div class="worksTop">
  3377. <div>作业预览</div>
  3378. <div
  3379. class="corOpen"
  3380. @click="contract(toolIndex)"
  3381. v-if="
  3382. (isCloseList[toolIndex].isCloseBoolean) &&
  3383. isCloseList[toolIndex].isClose == 0
  3384. "
  3385. >
  3386. 折叠
  3387. </div>
  3388. <div
  3389. class="corOpen"
  3390. @click="contract(toolIndex)"
  3391. v-if="isCloseList[toolIndex].isClose == 1"
  3392. >
  3393. 展开
  3394. </div>
  3395. </div>
  3396. </div>
  3397. <div
  3398. :id="'tool-' + toolIndex"
  3399. :style="{
  3400. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3401. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3402. }"
  3403. class="worksDetailBox"
  3404. v-if="
  3405. worksStudent.length &&
  3406. worksStudent[toolIndex].length > 0
  3407. "
  3408. >
  3409. <div
  3410. class="works"
  3411. style="
  3412. width: 200px;
  3413. height: 140px;
  3414. margin: 10px 10px 10px 0;
  3415. border-radius: 15px;
  3416. box-shadow: 0 0 6px 1px #dfdada;
  3417. "
  3418. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3419. :key="wIndex"
  3420. :class="w.type == 1 ? 'isTypeOne' : ''"
  3421. >
  3422. <div class="workImg">
  3423. <img
  3424. :src="word2"
  3425. @click="downloadFile(w.works)"
  3426. v-if="w.type == 12"
  3427. alt
  3428. />
  3429. <img
  3430. :src="word2"
  3431. @click="
  3432. openCocoPi(57, toolIndex, w.userid, w.sName)
  3433. "
  3434. v-else-if="w.type == 15"
  3435. alt
  3436. />
  3437. <div
  3438. class="answerScore"
  3439. v-if="w.score"
  3440. @click.stop="openScore(w)"
  3441. :class="{
  3442. rightW:
  3443. w.userid == userid ||
  3444. tType == 1 ||
  3445. tType == 4 ||
  3446. w.ateacher == userid,
  3447. }"
  3448. >
  3449. {{ JSON.parse(w.score).wScore }}分
  3450. </div>
  3451. <div
  3452. class="answerScore"
  3453. @click.stop="openScore(w)"
  3454. v-else-if="courseDetail.userid == userid"
  3455. :class="{
  3456. rightW:
  3457. w.userid == userid ||
  3458. tType == 1 ||
  3459. tType == 4 ||
  3460. w.ateacher == userid,
  3461. }"
  3462. >
  3463. 评分
  3464. </div>
  3465. <img
  3466. class="deleteImg"
  3467. src="../../assets/deleteworks.png"
  3468. v-if="
  3469. w.userid == userid || tType == 1 || tType == 4
  3470. "
  3471. @click.stop="deleteWorks(w.wid)"
  3472. alt
  3473. />
  3474. </div>
  3475. <div class="comment" style="min-width: 200px">
  3476. <div class="worksName">
  3477. <div>{{ w.sName }}</div>
  3478. </div>
  3479. <div class="commentList">
  3480. <div class="commentList">
  3481. <div
  3482. class="commentImg"
  3483. @click="
  3484. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3485. "
  3486. >
  3487. <img
  3488. :src="w.isLikes == true ? likes : noLikes"
  3489. alt=""
  3490. />
  3491. </div>
  3492. <div>{{ w.likesCount }}</div>
  3493. </div>
  3494. <div class="commentList" style="margin-right: 15px">
  3495. <div
  3496. class="commentImg"
  3497. @click="commentOther(w, toolIndex, wIndex)"
  3498. >
  3499. <img
  3500. src="../../assets/icon/comment/comment.png"
  3501. alt=""
  3502. />
  3503. </div>
  3504. <div>{{ w.commentCount }}</div>
  3505. </div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3511. 未提交
  3512. </div>
  3513. <div
  3514. class="noWorksS"
  3515. v-if="noWorksS && noWorksS[toolIndex].length"
  3516. >
  3517. <div
  3518. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3519. :key="sIndex"
  3520. class="noWorksName"
  3521. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3522. >
  3523. <el-tooltip effect="dark" :content="s.student" placement="top">
  3524. <span>{{ s.student }}</span>
  3525. </el-tooltip>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3530. <div
  3531. class="zuoyeYulan"
  3532. v-if="
  3533. worksStudent.length &&
  3534. worksStudent[toolIndex].length > 0
  3535. "
  3536. >
  3537. <span class="worksTitle">作业预览</span>
  3538. <div
  3539. class="corOpen"
  3540. @click="contract(toolIndex)"
  3541. v-if="
  3542. (isCloseList[toolIndex].isCloseBoolean) &&
  3543. isCloseList[toolIndex].isClose == 0
  3544. "
  3545. >
  3546. 折叠
  3547. </div>
  3548. <div
  3549. class="corOpen"
  3550. @click="contract(toolIndex)"
  3551. v-if="isCloseList[toolIndex].isClose == 1"
  3552. >
  3553. 展开
  3554. </div>
  3555. </div>
  3556. <div
  3557. :id="'tool-' + toolIndex"
  3558. :style="{
  3559. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3560. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3561. }"
  3562. class="worksDetailBox"
  3563. v-if="
  3564. worksStudent.length &&
  3565. worksStudent[toolIndex].length > 0
  3566. "
  3567. >
  3568. <div
  3569. class="works"
  3570. style="
  3571. width: 200px;
  3572. height: 140px;
  3573. margin: 10px 10px 10px 0;
  3574. border-radius: 15px;
  3575. box-shadow: 0 0 6px 1px #dfdada;
  3576. "
  3577. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3578. :key="wIndex"
  3579. :class="w.type == 1 ? 'isTypeOne' : ''"
  3580. >
  3581. <div class="workImg" v-if="w.type == 0">
  3582. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3583. <img
  3584. :src="w.works"
  3585. @click="previewImg(w.works,w)"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}分
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="courseDetail.userid == userid"
  3606. :class="{
  3607. rightW:
  3608. w.userid == userid ||
  3609. tType == 1 ||
  3610. tType == 4 ||
  3611. w.ateacher == userid,
  3612. }"
  3613. >
  3614. 评分
  3615. </div>
  3616. <img
  3617. class="deleteImg"
  3618. src="../../assets/deleteworks.png"
  3619. v-if="
  3620. w.userid == userid || tType == 1 || tType == 4
  3621. "
  3622. @click.stop="deleteWorks(w.wid)"
  3623. alt
  3624. />
  3625. </div>
  3626. <div
  3627. class="workImg"
  3628. style="cursor: pointer"
  3629. v-if="w.type == 1"
  3630. >
  3631. <img :src="word" @click="openFile(w.works)" alt />
  3632. <!-- @click="openFile(w.works)" -->
  3633. <div
  3634. class="answerScore"
  3635. v-if="w.score"
  3636. @click.stop="openScore(w)"
  3637. :class="{
  3638. rightW:
  3639. w.userid == userid ||
  3640. tType == 1 ||
  3641. tType == 4 ||
  3642. w.ateacher == userid,
  3643. }"
  3644. >
  3645. {{ JSON.parse(w.score).wScore }}分
  3646. </div>
  3647. <div
  3648. class="answerScore"
  3649. @click.stop="openScore(w)"
  3650. v-else-if="courseDetail.userid == userid"
  3651. :class="{
  3652. rightW:
  3653. w.userid == userid ||
  3654. tType == 1 ||
  3655. tType == 4 ||
  3656. w.ateacher == userid,
  3657. }"
  3658. >
  3659. 评分
  3660. </div>
  3661. <img
  3662. class="deleteImg"
  3663. src="../../assets/deleteworks.png"
  3664. v-if="
  3665. w.userid == userid || tType == 1 || tType == 4
  3666. "
  3667. @click.stop="deleteWorks(w.wid)"
  3668. alt
  3669. />
  3670. </div>
  3671. <div class="workImg" v-if="w.type == 3">
  3672. <img
  3673. style="cursor: pointer"
  3674. :src="video"
  3675. @click="openVideo(w)"
  3676. alt
  3677. />
  3678. <!-- @click="openVideo(w.works)" -->
  3679. <div
  3680. class="answerScore"
  3681. v-if="w.score"
  3682. @click.stop="openScore(w)"
  3683. :class="{
  3684. rightW:
  3685. w.userid == userid ||
  3686. tType == 1 ||
  3687. tType == 4 ||
  3688. w.ateacher == userid,
  3689. }"
  3690. >
  3691. {{ JSON.parse(w.score).wScore }}分
  3692. </div>
  3693. <div
  3694. class="answerScore"
  3695. @click.stop="openScore(w)"
  3696. v-else-if="courseDetail.userid == userid"
  3697. :class="{
  3698. rightW:
  3699. w.userid == userid ||
  3700. tType == 1 ||
  3701. tType == 4 ||
  3702. w.ateacher == userid,
  3703. }"
  3704. >
  3705. 评分
  3706. </div>
  3707. <img
  3708. class="deleteImg"
  3709. src="../../assets/deleteworks.png"
  3710. v-if="
  3711. w.userid == userid || tType == 1 || tType == 4
  3712. "
  3713. @click.stop="deleteWorks(w.wid)"
  3714. alt
  3715. />
  3716. </div>
  3717. <div class="comment" style="min-width: 200px">
  3718. <div class="worksName">
  3719. <div
  3720. style="cursor: pointer"
  3721. @click="
  3722. openSname(w.sName, w.wid, toolIndex, w.userid)
  3723. "
  3724. >
  3725. {{ w.sName }}
  3726. </div>
  3727. </div>
  3728. <div class="commentList">
  3729. <div class="commentList">
  3730. <div
  3731. class="commentImg"
  3732. @click="
  3733. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3734. "
  3735. >
  3736. <img
  3737. :src="w.isLikes == true ? likes : noLikes"
  3738. alt=""
  3739. />
  3740. </div>
  3741. <div>{{ w.likesCount }}</div>
  3742. </div>
  3743. <div class="commentList" style="margin-right: 15px">
  3744. <div
  3745. class="commentImg"
  3746. @click="commentOther(w, toolIndex, wIndex)"
  3747. >
  3748. <img
  3749. src="../../assets/icon/comment/comment.png"
  3750. alt=""
  3751. />
  3752. </div>
  3753. <div>{{ w.commentCount }}</div>
  3754. </div>
  3755. </div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3760. 未提交
  3761. </div>
  3762. <div
  3763. class="noWorksS"
  3764. v-if="noWorksS && noWorksS[toolIndex].length"
  3765. >
  3766. <div
  3767. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3768. :key="sIndex"
  3769. class="noWorksName"
  3770. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3771. >
  3772. <el-tooltip effect="dark" :content="s.student" placement="top">
  3773. <span>{{ s.student }}</span>
  3774. </el-tooltip>
  3775. </div>
  3776. </div>
  3777. </div>
  3778. <div
  3779. v-if="
  3780. tType &&
  3781. ((tType == 2 && sIsOpen == true) ||
  3782. tType == 1 ||
  3783. tType == 4) &&
  3784. tool.tool.indexOf(4) != -1 &&
  3785. (tool.askJson[0].answer ||
  3786. tool.askJson[0].answer === 0) &&
  3787. checkJson[toolIndex].length
  3788. "
  3789. class="xuan_right_box"
  3790. >
  3791. <div
  3792. class="tool_right_box"
  3793. v-for="(item, index) in tool.askJson"
  3794. :key="index"
  3795. >
  3796. <div style="width: calc(100% - 30px);">
  3797. <el-tooltip
  3798. effect="light"
  3799. :content="index + 1 + '、' + item.askstitle"
  3800. placement="top"
  3801. popper-class="text_tooltip"
  3802. >
  3803. <div
  3804. style="
  3805. width: calc(100% - 130px);
  3806. display: block;
  3807. white-space: nowrap;
  3808. overflow: hidden;
  3809. text-overflow: ellipsis;
  3810. word-break: break-word;
  3811. cursor: pointer;
  3812. "
  3813. >
  3814. {{ index + 1 + "、" + item.askstitle }}
  3815. </div>
  3816. </el-tooltip>
  3817. </div>
  3818. <div class="right_box_xuan">
  3819. <span>正确率</span>
  3820. <span>{{
  3821. (checkJson[toolIndex][index].right
  3822. ? checkJson[toolIndex][index].right
  3823. : 0) + "%"
  3824. }}</span>
  3825. </div>
  3826. </div>
  3827. </div>
  3828. <div
  3829. class="xuan_right_box"
  3830. style="background: unset; padding: 0 10px"
  3831. v-if="
  3832. tType &&
  3833. ((tType == 2 && sIsOpen == true) ||
  3834. tType == 1 ||
  3835. tType == 4) &&
  3836. tool.tool.indexOf(4) != -1
  3837. "
  3838. >
  3839. <AskStatic
  3840. v-if="
  3841. worksStudent.length &&
  3842. worksStudent[toolIndex].length > 0
  3843. "
  3844. :askJSON="tool"
  3845. :checkJson="checkJson[toolIndex]"
  3846. ></AskStatic>
  3847. </div>
  3848. <div
  3849. v-if="
  3850. tType &&
  3851. ((tType == 2 && sIsOpen == true) ||
  3852. tType == 1 ||
  3853. tType == 4) &&
  3854. tool.tool.indexOf(4) != -1
  3855. "
  3856. class="worksBox"
  3857. >
  3858. <div
  3859. class="zuoyeYulan"
  3860. v-if="
  3861. worksStudent.length &&
  3862. worksStudent[toolIndex].length > 0
  3863. "
  3864. >
  3865. <div class="worksTop">
  3866. <div>作业预览</div>
  3867. <div
  3868. class="corOpen"
  3869. @click="contract(toolIndex)"
  3870. v-if="
  3871. (isCloseList[toolIndex].isCloseBoolean) &&
  3872. isCloseList[toolIndex].isClose == 0
  3873. "
  3874. >
  3875. 折叠
  3876. </div>
  3877. <div
  3878. class="corOpen"
  3879. @click="contract(toolIndex)"
  3880. v-if="isCloseList[toolIndex].isClose == 1"
  3881. >
  3882. 展开
  3883. </div>
  3884. </div>
  3885. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3886. </div>
  3887. <div>
  3888. <div
  3889. :id="'tool-' + toolIndex"
  3890. :style="{
  3891. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3892. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3893. }"
  3894. class="worksDetailBox"
  3895. v-if="
  3896. worksStudent.length &&
  3897. worksStudent[toolIndex].length > 0
  3898. "
  3899. >
  3900. <div
  3901. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3902. :key="wIndex"
  3903. class="isWorksName2"
  3904. @click="
  3905. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3906. "
  3907. >
  3908. {{ w.sName }}
  3909. <img
  3910. class="deleteImg deleteImg2"
  3911. src="../../assets/deleteworks.png"
  3912. v-if="
  3913. w.userid == userid || tType == 1 || tType == 4
  3914. "
  3915. @click.stop="deleteWorks(w.wid)"
  3916. alt
  3917. />
  3918. </div>
  3919. <!-- <div class="works" style="
  3920. width: 200px;
  3921. height: 140px;
  3922. border-radius: 10px;
  3923. box-shadow: 0 0 6px 1px #dfdada;
  3924. overflow: hidden;
  3925. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3926. <div class="workImg">
  3927. <img src="../../assets/icon/works/noImg.png" @click="
  3928. openTools(
  3929. 4,
  3930. toolIndex,
  3931. taskCount,
  3932. w.works,
  3933. w.sName
  3934. )
  3935. " alt />
  3936. </div>
  3937. <div class="worksName">
  3938. <div>{{ w.sName }}</div>
  3939. <div>{{ w.time }}</div>
  3940. </div>
  3941. </div> -->
  3942. </div>
  3943. </div>
  3944. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3945. 未提交
  3946. </div>
  3947. <div
  3948. class="noWorksS"
  3949. v-if="noWorksS && noWorksS[toolIndex].length"
  3950. >
  3951. <div
  3952. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3953. :key="sIndex"
  3954. class="noWorksName"
  3955. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3956. >
  3957. <el-tooltip effect="dark" :content="s.student" placement="top">
  3958. <span>{{ s.student }}</span>
  3959. </el-tooltip>
  3960. </div>
  3961. </div>
  3962. </div>
  3963. <div
  3964. v-if="
  3965. tType &&
  3966. ((tType == 2 && sIsOpen == true) ||
  3967. tType == 1 ||
  3968. tType == 4) &&
  3969. tool.tool.indexOf(45) != -1 &&
  3970. (tool.testJson.testJson[0].answer ||
  3971. tool.testJson.testJson[0].answer === 0) &&
  3972. checkJson[toolIndex].length
  3973. "
  3974. class="xuan_right_box"
  3975. >
  3976. <div
  3977. class="tool_right_box"
  3978. v-for="(item, index) in tool.testJson.testJson"
  3979. :key="index"
  3980. >
  3981. <div class="right_box_xuan" style="margin-right: 10px">
  3982. <span>正确率</span>
  3983. <span>{{
  3984. (checkJson[toolIndex][index].right
  3985. ? checkJson[toolIndex][index].right
  3986. : 0) + "%"
  3987. }}</span>
  3988. </div>
  3989. <div style="width: calc(100% - 30px);">
  3990. <el-tooltip
  3991. effect="light"
  3992. :content="index + 1 + '、' + item.teststitle"
  3993. placement="top"
  3994. popper-class="text_tooltip"
  3995. >
  3996. <div
  3997. style="
  3998. width: calc(100% - 130px);
  3999. display: block;
  4000. white-space: nowrap;
  4001. overflow: hidden;
  4002. text-overflow: ellipsis;
  4003. word-break: break-word;
  4004. cursor: pointer;
  4005. "
  4006. >
  4007. {{ index + 1 + "、" + item.teststitle }}
  4008. </div>
  4009. </el-tooltip>
  4010. </div>
  4011. </div>
  4012. </div>
  4013. <div
  4014. class="xuan_right_box"
  4015. style="background: unset; padding: 0 10px; width: 91.5%"
  4016. v-if="
  4017. tType &&
  4018. ((tType == 2 && sIsOpen == true) ||
  4019. tType == 1 ||
  4020. tType == 4) &&
  4021. tool.tool.indexOf(45) != -1
  4022. "
  4023. >
  4024. <AskStatic2
  4025. v-if="
  4026. worksStudent.length &&
  4027. worksStudent[toolIndex].length > 0
  4028. "
  4029. :askJSON="tool"
  4030. :checkJson="checkJson[toolIndex]"
  4031. ></AskStatic2>
  4032. </div>
  4033. <div
  4034. v-if="
  4035. tType &&
  4036. ((tType == 2 && sIsOpen == true) ||
  4037. tType == 1 ||
  4038. tType == 4) &&
  4039. tool.tool.indexOf(45) != -1
  4040. "
  4041. class="worksBox"
  4042. >
  4043. <div
  4044. class="zuoyeYulan"
  4045. v-if="
  4046. worksStudent.length &&
  4047. worksStudent[toolIndex].length > 0
  4048. "
  4049. >
  4050. <div class="worksTop">
  4051. <div>作业预览</div>
  4052. <div
  4053. class="corOpen"
  4054. @click="contract(toolIndex)"
  4055. v-if="
  4056. (isCloseList[toolIndex].isCloseBoolean) &&
  4057. isCloseList[toolIndex].isClose == 0
  4058. "
  4059. >
  4060. 折叠
  4061. </div>
  4062. <div
  4063. class="corOpen"
  4064. @click="contract(toolIndex)"
  4065. v-if="isCloseList[toolIndex].isClose == 1"
  4066. >
  4067. 展开
  4068. </div>
  4069. </div>
  4070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4071. </div>
  4072. <div>
  4073. <div
  4074. :id="'tool-' + toolIndex"
  4075. :style="{
  4076. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4077. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4078. }"
  4079. class="worksDetailBox"
  4080. v-if="
  4081. worksStudent.length &&
  4082. worksStudent[toolIndex].length > 0
  4083. "
  4084. >
  4085. <div
  4086. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4087. :key="wIndex"
  4088. class="isWorksName2"
  4089. @click="
  4090. openTools(
  4091. 45,
  4092. toolIndex,
  4093. taskCount,
  4094. w.works,
  4095. w.sName
  4096. )
  4097. "
  4098. >
  4099. {{ w.sName }}
  4100. <img
  4101. class="deleteImg deleteImg2"
  4102. src="../../assets/deleteworks.png"
  4103. v-if="
  4104. w.userid == userid || tType == 1 || tType == 4
  4105. "
  4106. @click.stop="deleteWorks(w.wid)"
  4107. alt
  4108. />
  4109. </div>
  4110. </div>
  4111. </div>
  4112. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4113. 未提交
  4114. </div>
  4115. <div
  4116. class="noWorksS"
  4117. v-if="noWorksS && noWorksS[toolIndex].length"
  4118. >
  4119. <div
  4120. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4121. :key="sIndex"
  4122. class="noWorksName"
  4123. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4124. >
  4125. <el-tooltip effect="dark" :content="s.student" placement="top">
  4126. <span>{{ s.student }}</span>
  4127. </el-tooltip>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. <div
  4132. v-if="
  4133. tType &&
  4134. ((tType == 2 && sIsOpen == true) ||
  4135. tType == 1 ||
  4136. tType == 4) &&
  4137. tool.tool.indexOf(69) != -1
  4138. "
  4139. class="worksBox"
  4140. >
  4141. <div
  4142. class="zuoyeYulan"
  4143. v-if="
  4144. worksStudent.length &&
  4145. worksStudent[toolIndex].length > 0
  4146. "
  4147. >
  4148. <div class="worksTop">
  4149. <div>作业预览</div>
  4150. <div
  4151. class="corOpen"
  4152. @click="contract(toolIndex)"
  4153. v-if="
  4154. (isCloseList[toolIndex].isCloseBoolean) &&
  4155. isCloseList[toolIndex].isClose == 0
  4156. "
  4157. >
  4158. 折叠
  4159. </div>
  4160. <div
  4161. class="corOpen"
  4162. @click="contract(toolIndex)"
  4163. v-if="isCloseList[toolIndex].isClose == 1"
  4164. >
  4165. 展开
  4166. </div>
  4167. </div>
  4168. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4169. </div>
  4170. <div>
  4171. <div
  4172. :id="'tool-' + toolIndex"
  4173. :style="{
  4174. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4175. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4176. }"
  4177. class="worksDetailBox"
  4178. v-if="
  4179. worksStudent.length &&
  4180. worksStudent[toolIndex].length > 0
  4181. "
  4182. >
  4183. <div
  4184. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4185. :key="wIndex"
  4186. class="isWorksName2"
  4187. style="width: 160px;height: 65px;line-height: 65px;"
  4188. @click="
  4189. openTools(
  4190. 69,
  4191. toolIndex,
  4192. taskCount,
  4193. w.works,
  4194. w.sName,
  4195. w.wid
  4196. )
  4197. "
  4198. >
  4199. {{ w.sName }}
  4200. <img
  4201. class="deleteImg1"
  4202. src="../../assets/evaEnglish.png"
  4203. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4204. alt
  4205. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4206. />
  4207. <img
  4208. class="deleteImg deleteImg2"
  4209. src="../../assets/deleteworks.png"
  4210. v-if="
  4211. w.userid == userid || tType == 1 || tType == 4
  4212. "
  4213. @click.stop="deleteWorks(w.wid)"
  4214. alt
  4215. />
  4216. </div>
  4217. </div>
  4218. </div>
  4219. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4220. 未提交
  4221. </div>
  4222. <div
  4223. class="noWorksS"
  4224. v-if="noWorksS && noWorksS[toolIndex].length"
  4225. >
  4226. <div
  4227. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4228. :key="sIndex"
  4229. class="noWorksName"
  4230. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4231. >
  4232. <el-tooltip effect="dark" :content="s.student" placement="top">
  4233. <span>{{ s.student }}</span>
  4234. </el-tooltip>
  4235. </div>
  4236. </div>
  4237. </div>
  4238. <div
  4239. v-if="
  4240. tType &&
  4241. ((tType == 2 && sIsOpen == true) ||
  4242. tType == 1 ||
  4243. tType == 4) &&
  4244. tool.tool.indexOf(15) != -1
  4245. "
  4246. class="worksBox"
  4247. >
  4248. <div
  4249. class="zuoyeYulan"
  4250. v-if="
  4251. (worksStudent.length &&
  4252. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4253. "
  4254. >
  4255. <div class="worksTop">
  4256. <div>作业预览</div>
  4257. <div
  4258. class="corOpen"
  4259. @click="contract(toolIndex)"
  4260. v-if="
  4261. (isCloseList[toolIndex].isCloseBoolean) &&
  4262. isCloseList[toolIndex].isClose == 0
  4263. "
  4264. >
  4265. 折叠
  4266. </div>
  4267. <div
  4268. class="corOpen"
  4269. @click="contract(toolIndex)"
  4270. v-if="isCloseList[toolIndex].isClose == 1"
  4271. >
  4272. 展开
  4273. </div>
  4274. </div>
  4275. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4276. </div>
  4277. <div
  4278. class="group_workBox"
  4279. v-for="(g, gindex) in courseGroup.group"
  4280. :key="gindex"
  4281. >
  4282. <div class="group_box">
  4283. <div class="group_title">
  4284. <el-tooltip
  4285. class="item"
  4286. effect="light"
  4287. :content="g.name"
  4288. placement="top"
  4289. >
  4290. <div class="group_name">{{ g.name }}</div>
  4291. </el-tooltip>
  4292. </div>
  4293. <div
  4294. class="group_work"
  4295. v-if="
  4296. g.works &&
  4297. g.works.length &&
  4298. g.works[toolIndex].length
  4299. "
  4300. >
  4301. <div
  4302. class="works"
  4303. v-for="(w, wIndex) in g.works[toolIndex]"
  4304. :key="wIndex"
  4305. >
  4306. <div
  4307. class="workImg"
  4308. style="
  4309. border-radius: 15px;
  4310. box-shadow: 0px 0px 5px 5px #eee;
  4311. "
  4312. >
  4313. <div
  4314. class="answerBg"
  4315. style="border-radius: 15px 15px 0 0"
  4316. @click="
  4317. commentOther(w, toolIndex, wIndex, null, g.id)
  4318. "
  4319. >
  4320. <div class="answerContent">
  4321. {{ JSON.parse(w.works)[0].answer }}
  4322. </div>
  4323. <div
  4324. class="answerScore"
  4325. v-if="w.score"
  4326. @click.stop="openScore(w)"
  4327. :class="{
  4328. rightW:
  4329. w.userid == userid ||
  4330. tType == 1 ||
  4331. tType == 4,
  4332. }"
  4333. >
  4334. {{ JSON.parse(w.score).wScore }}分
  4335. </div>
  4336. <div
  4337. class="answerScore"
  4338. @click.stop="openScore(w)"
  4339. v-else-if="courseDetail.userid == userid"
  4340. :class="{
  4341. rightW:
  4342. w.userid == userid ||
  4343. tType == 1 ||
  4344. tType == 4,
  4345. }"
  4346. >
  4347. 评分
  4348. </div>
  4349. <img
  4350. class="deleteImg"
  4351. src="../../assets/deleteworks.png"
  4352. v-if="
  4353. w.userid == userid ||
  4354. tType == 1 ||
  4355. tType == 4
  4356. "
  4357. @click.stop="deleteWorks(w.wid)"
  4358. alt
  4359. />
  4360. </div>
  4361. <div class="comment">
  4362. <div class="worksName">
  4363. <div>{{ w.sName }}</div>
  4364. </div>
  4365. <div class="commentList">
  4366. <div
  4367. class="commentImg"
  4368. @click="
  4369. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4370. "
  4371. >
  4372. <img
  4373. :src="w.isLikes == true ? likes : noLikes"
  4374. alt=""
  4375. />
  4376. </div>
  4377. <div>{{ w.likesCount }}</div>
  4378. </div>
  4379. <div
  4380. class="commentList"
  4381. style="margin-right: 15px"
  4382. >
  4383. <div
  4384. class="commentImg"
  4385. @click="
  4386. commentOther(
  4387. w,
  4388. toolIndex,
  4389. wIndex,
  4390. null,
  4391. g.id
  4392. )
  4393. "
  4394. >
  4395. <img
  4396. src="../../assets/icon/comment/comment.png"
  4397. alt=""
  4398. />
  4399. </div>
  4400. <div>{{ w.commentCount }}</div>
  4401. </div>
  4402. </div>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. <div class="group_work" v-else>暂无提交作业</div>
  4407. </div>
  4408. </div>
  4409. <div
  4410. :id="'tool-' + toolIndex"
  4411. :style="{
  4412. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4413. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4414. }"
  4415. class="worksDetailBox"
  4416. v-if="
  4417. worksStudent.length &&
  4418. worksStudent[toolIndex].length > 0
  4419. "
  4420. >
  4421. <div
  4422. class="works"
  4423. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4424. :key="wIndex"
  4425. >
  4426. <div
  4427. class="workImg"
  4428. style="
  4429. border-radius: 15px;
  4430. box-shadow: 0px 0px 5px 5px #eee;
  4431. "
  4432. >
  4433. <!-- <img
  4434. src="../../assets/icon/works/noImg.png"
  4435. @click="openTools(15, toolIndex, taskCount, w.works)"
  4436. alt=""
  4437. />-->
  4438. <div
  4439. class="answerBg"
  4440. style="border-radius: 15px 15px 0 0"
  4441. @click="commentOther(w, toolIndex, wIndex)"
  4442. >
  4443. <!-- <div>{{ w.sName }}</div> -->
  4444. <div class="answerContent">
  4445. {{ JSON.parse(w.works)[0].answer }}
  4446. </div>
  4447. <div
  4448. class="answerScore"
  4449. v-if="w.score"
  4450. @click.stop="openScore(w)"
  4451. :class="{
  4452. rightW:
  4453. w.userid == userid ||
  4454. tType == 1 ||
  4455. tType == 4,
  4456. }"
  4457. >
  4458. {{ JSON.parse(w.score).wScore }}分
  4459. </div>
  4460. <div
  4461. class="answerScore"
  4462. @click.stop="openScore(w)"
  4463. v-else-if="courseDetail.userid == userid"
  4464. :class="{
  4465. rightW:
  4466. w.userid == userid ||
  4467. tType == 1 ||
  4468. tType == 4,
  4469. }"
  4470. >
  4471. 评分
  4472. </div>
  4473. <img
  4474. class="deleteImg"
  4475. src="../../assets/deleteworks.png"
  4476. v-if="
  4477. w.userid == userid || tType == 1 || tType == 4
  4478. "
  4479. @click.stop="deleteWorks(w.wid)"
  4480. alt
  4481. />
  4482. </div>
  4483. <div class="comment">
  4484. <div class="worksName">
  4485. <div>{{ w.sName }}</div>
  4486. </div>
  4487. <div class="commentList">
  4488. <div
  4489. class="commentImg"
  4490. @click="
  4491. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4492. "
  4493. >
  4494. <img
  4495. :src="w.isLikes == true ? likes : noLikes"
  4496. alt=""
  4497. />
  4498. </div>
  4499. <div>{{ w.likesCount }}</div>
  4500. </div>
  4501. <div class="commentList" style="margin-right: 15px">
  4502. <div
  4503. class="commentImg"
  4504. @click="commentOther(w, toolIndex, wIndex)"
  4505. >
  4506. <img
  4507. src="../../assets/icon/comment/comment.png"
  4508. alt=""
  4509. />
  4510. </div>
  4511. <div>{{ w.commentCount }}</div>
  4512. </div>
  4513. </div>
  4514. </div>
  4515. </div>
  4516. </div>
  4517. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4518. 未提交
  4519. </div>
  4520. <div
  4521. class="noWorksS"
  4522. v-if="noWorksS && noWorksS[toolIndex].length"
  4523. >
  4524. <div
  4525. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4526. :key="sIndex"
  4527. class="noWorksName"
  4528. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4529. >
  4530. <el-tooltip effect="dark" :content="s.student" placement="top">
  4531. <span>{{ s.student }}</span>
  4532. </el-tooltip>
  4533. </div>
  4534. </div>
  4535. </div>
  4536. <div
  4537. v-if="
  4538. tType &&
  4539. ((tType == 2 && sIsOpen == true) ||
  4540. tType == 1 ||
  4541. tType == 4) &&
  4542. tool.tool.indexOf(1) != -1
  4543. "
  4544. class="worksBox"
  4545. >
  4546. <div
  4547. class="zuoyeYulan"
  4548. v-if="
  4549. (worksStudent.length &&
  4550. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4551. "
  4552. >
  4553. <div class="worksTop">
  4554. <div>作业预览</div>
  4555. <div
  4556. class="corOpen"
  4557. @click="contract(toolIndex)"
  4558. v-if="
  4559. (isCloseList[toolIndex].isCloseBoolean) &&
  4560. isCloseList[toolIndex].isClose == 0
  4561. "
  4562. >
  4563. 折叠
  4564. </div>
  4565. <div
  4566. class="corOpen"
  4567. @click="contract(toolIndex)"
  4568. v-if="isCloseList[toolIndex].isClose == 1"
  4569. >
  4570. 展开
  4571. </div>
  4572. </div>
  4573. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4574. </div>
  4575. <div
  4576. class="group_workBox"
  4577. v-for="(g, gindex) in courseGroup.group"
  4578. :key="gindex"
  4579. >
  4580. <div class="group_box">
  4581. <div class="group_title">
  4582. <el-tooltip
  4583. class="item"
  4584. effect="light"
  4585. :content="g.name"
  4586. placement="top"
  4587. >
  4588. <div class="group_name">{{ g.name }}</div>
  4589. </el-tooltip>
  4590. </div>
  4591. <div
  4592. class="group_work"
  4593. v-if="
  4594. g.works &&
  4595. g.works.length &&
  4596. g.works[toolIndex].length
  4597. "
  4598. >
  4599. <div
  4600. class="works"
  4601. style="
  4602. width: 200px;
  4603. height: 140px;
  4604. margin: 10px 10px 10px 0;
  4605. border-radius: 15px;
  4606. box-shadow: 0 0 6px 1px #dfdada;
  4607. "
  4608. v-for="(w, wIndex) in g.works[toolIndex]"
  4609. :key="wIndex"
  4610. :class="w.type == 1 ? 'isTypeOne' : ''"
  4611. >
  4612. <div class="workImg">
  4613. <img
  4614. :src="w.works"
  4615. @click="previewImg(w.works,w)"
  4616. alt
  4617. />
  4618. <div
  4619. class="answerScore"
  4620. v-if="w.score"
  4621. @click.stop="openScore(w)"
  4622. :class="{
  4623. rightW:
  4624. w.userid == userid ||
  4625. tType == 1 ||
  4626. tType == 4,
  4627. }"
  4628. >
  4629. {{ JSON.parse(w.score).wScore }}分
  4630. </div>
  4631. <div
  4632. class="answerScore"
  4633. @click.stop="openScore(w)"
  4634. v-else-if="courseDetail.userid == userid"
  4635. :class="{
  4636. rightW:
  4637. w.userid == userid ||
  4638. tType == 1 ||
  4639. tType == 4,
  4640. }"
  4641. >
  4642. 评分
  4643. </div>
  4644. <img
  4645. class="deleteImg"
  4646. src="../../assets/deleteworks.png"
  4647. v-if="
  4648. w.userid == userid || tType == 1 || tType == 4
  4649. "
  4650. @click.stop="deleteWorks(w.wid)"
  4651. alt
  4652. />
  4653. </div>
  4654. <div class="comment" style="min-width: 200px">
  4655. <div class="worksName">
  4656. <div>{{ w.sName }}</div>
  4657. </div>
  4658. <div class="commentList">
  4659. <div class="commentList">
  4660. <div
  4661. class="commentImg"
  4662. @click="
  4663. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4664. "
  4665. >
  4666. <img
  4667. :src="w.isLikes == true ? likes : noLikes"
  4668. alt=""
  4669. />
  4670. </div>
  4671. <div>{{ w.likesCount }}</div>
  4672. </div>
  4673. <div
  4674. class="commentList"
  4675. style="margin-right: 15px"
  4676. >
  4677. <div
  4678. class="commentImg"
  4679. @click="
  4680. commentOther(
  4681. w,
  4682. toolIndex,
  4683. wIndex,
  4684. null,
  4685. g.id
  4686. )
  4687. "
  4688. >
  4689. <img
  4690. src="../../assets/icon/comment/comment.png"
  4691. alt=""
  4692. />
  4693. </div>
  4694. <div>{{ w.commentCount }}</div>
  4695. </div>
  4696. </div>
  4697. </div>
  4698. </div>
  4699. </div>
  4700. <div class="group_work" v-else>暂无提交作业</div>
  4701. </div>
  4702. </div>
  4703. <div
  4704. :id="'tool-' + toolIndex"
  4705. :style="{
  4706. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4707. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4708. }"
  4709. class="worksDetailBox"
  4710. v-if="
  4711. worksStudent.length &&
  4712. worksStudent[toolIndex].length > 0
  4713. "
  4714. >
  4715. <div
  4716. class="works"
  4717. style="
  4718. width: 200px;
  4719. height: 140px;
  4720. margin: 10px 10px 10px 0;
  4721. border-radius: 15px;
  4722. box-shadow: 0 0 6px 1px #dfdada;
  4723. "
  4724. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4725. :key="wIndex"
  4726. >
  4727. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4728. <div class="workImg">
  4729. <img
  4730. :src="w.works"
  4731. @click="previewImg(w.works,w)"
  4732. alt
  4733. />
  4734. <div
  4735. class="answerScore"
  4736. v-if="w.score"
  4737. @click.stop="openScore(w)"
  4738. :class="{
  4739. rightW:
  4740. w.userid == userid || tType == 1 || tType == 4,
  4741. }"
  4742. >
  4743. {{ JSON.parse(w.score).wScore }}分
  4744. </div>
  4745. <div
  4746. class="answerScore"
  4747. @click.stop="openScore(w)"
  4748. v-else-if="courseDetail.userid == userid"
  4749. :class="{
  4750. rightW:
  4751. w.userid == userid || tType == 1 || tType == 4,
  4752. }"
  4753. >
  4754. 评分
  4755. </div>
  4756. <img
  4757. class="deleteImg"
  4758. src="../../assets/deleteworks.png"
  4759. v-if="
  4760. w.userid == userid || tType == 1 || tType == 4
  4761. "
  4762. @click.stop="deleteWorks(w.wid)"
  4763. alt
  4764. />
  4765. </div>
  4766. <div class="comment" style="min-width: 200px">
  4767. <div class="worksName">
  4768. <div>{{ w.sName }}</div>
  4769. </div>
  4770. <div class="commentList">
  4771. <div class="commentList">
  4772. <div
  4773. class="commentImg"
  4774. @click="
  4775. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4776. "
  4777. >
  4778. <img
  4779. :src="w.isLikes == true ? likes : noLikes"
  4780. alt=""
  4781. />
  4782. </div>
  4783. <div>{{ w.likesCount }}</div>
  4784. </div>
  4785. <div class="commentList" style="margin-right: 15px">
  4786. <div
  4787. class="commentImg"
  4788. @click="commentOther(w, toolIndex, wIndex)"
  4789. >
  4790. <img
  4791. src="../../assets/icon/comment/comment.png"
  4792. alt=""
  4793. />
  4794. </div>
  4795. <div>{{ w.commentCount }}</div>
  4796. </div>
  4797. </div>
  4798. </div>
  4799. </div>
  4800. </div>
  4801. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4802. 未提交
  4803. </div>
  4804. <div
  4805. class="noWorksS"
  4806. v-if="noWorksS && noWorksS[toolIndex].length"
  4807. >
  4808. <div
  4809. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4810. :key="sIndex"
  4811. class="noWorksName"
  4812. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4813. >
  4814. <el-tooltip effect="dark" :content="s.student" placement="top">
  4815. <span>{{ s.student }}</span>
  4816. </el-tooltip>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. <div
  4821. v-if="
  4822. tType &&
  4823. ((tType == 2 && sIsOpen == true) ||
  4824. tType == 1 ||
  4825. tType == 4) &&
  4826. tool.tool.indexOf(3) != -1
  4827. "
  4828. class="worksBox"
  4829. >
  4830. <div
  4831. class="zuoyeYulan"
  4832. v-if="
  4833. (worksStudent.length &&
  4834. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4835. "
  4836. >
  4837. <div class="worksTop">
  4838. <div>作业预览</div>
  4839. <div
  4840. class="corOpen"
  4841. @click="contract(toolIndex)"
  4842. v-if="
  4843. (isCloseList[toolIndex].isCloseBoolean) &&
  4844. isCloseList[toolIndex].isClose == 0
  4845. "
  4846. >
  4847. 折叠
  4848. </div>
  4849. <div
  4850. class="corOpen"
  4851. @click="contract(toolIndex)"
  4852. v-if="isCloseList[toolIndex].isClose == 1"
  4853. >
  4854. 展开
  4855. </div>
  4856. </div>
  4857. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4858. </div>
  4859. <div
  4860. class="group_workBox"
  4861. v-for="(g, gindex) in courseGroup.group"
  4862. :key="gindex"
  4863. >
  4864. <div class="group_box">
  4865. <div class="group_title">
  4866. <el-tooltip
  4867. class="item"
  4868. effect="light"
  4869. :content="g.name"
  4870. placement="top"
  4871. >
  4872. <div class="group_name">{{ g.name }}</div>
  4873. </el-tooltip>
  4874. </div>
  4875. <div
  4876. class="group_work"
  4877. v-if="
  4878. g.works &&
  4879. g.works.length &&
  4880. g.works[toolIndex].length
  4881. "
  4882. >
  4883. <div
  4884. class="works"
  4885. style="
  4886. width: 200px;
  4887. height: 140px;
  4888. margin: 10px 10px 10px 0;
  4889. border-radius: 15px;
  4890. box-shadow: 0 0 6px 1px #dfdada;
  4891. "
  4892. v-for="(w, wIndex) in g.works[toolIndex]"
  4893. :key="wIndex"
  4894. :class="w.type == 1 ? 'isTypeOne' : ''"
  4895. >
  4896. <div class="workImg">
  4897. <img
  4898. :src="w.works"
  4899. @click="previewImg(w.works,w)"
  4900. alt
  4901. />
  4902. <div
  4903. class="answerScore"
  4904. v-if="w.score"
  4905. @click.stop="openScore(w)"
  4906. :class="{
  4907. rightW:
  4908. w.userid == userid ||
  4909. tType == 1 ||
  4910. tType == 4,
  4911. }"
  4912. >
  4913. {{ JSON.parse(w.score).wScore }}分
  4914. </div>
  4915. <div
  4916. class="answerScore"
  4917. @click.stop="openScore(w)"
  4918. v-else-if="courseDetail.userid == userid"
  4919. :class="{
  4920. rightW:
  4921. w.userid == userid ||
  4922. tType == 1 ||
  4923. tType == 4,
  4924. }"
  4925. >
  4926. 评分
  4927. </div>
  4928. <img
  4929. class="deleteImg"
  4930. src="../../assets/deleteworks.png"
  4931. v-if="
  4932. w.userid == userid || tType == 1 || tType == 4
  4933. "
  4934. @click.stop="deleteWorks(w.wid)"
  4935. alt
  4936. />
  4937. </div>
  4938. <div class="comment" style="min-width: 200px">
  4939. <div class="worksName">
  4940. <div>{{ w.sName }}</div>
  4941. </div>
  4942. <div class="commentList">
  4943. <div class="commentList">
  4944. <div
  4945. class="commentImg"
  4946. @click="
  4947. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4948. "
  4949. >
  4950. <img
  4951. :src="w.isLikes == true ? likes : noLikes"
  4952. alt=""
  4953. />
  4954. </div>
  4955. <div>{{ w.likesCount }}</div>
  4956. </div>
  4957. <div
  4958. class="commentList"
  4959. style="margin-right: 15px"
  4960. >
  4961. <div
  4962. class="commentImg"
  4963. @click="
  4964. commentOther(
  4965. w,
  4966. toolIndex,
  4967. wIndex,
  4968. null,
  4969. g.id
  4970. )
  4971. "
  4972. >
  4973. <img
  4974. src="../../assets/icon/comment/comment.png"
  4975. alt=""
  4976. />
  4977. </div>
  4978. <div>{{ w.commentCount }}</div>
  4979. </div>
  4980. </div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. <div class="group_work" v-else>暂无提交作业</div>
  4985. </div>
  4986. </div>
  4987. <div
  4988. :id="'tool-' + toolIndex"
  4989. :style="{
  4990. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4991. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4992. }"
  4993. class="worksDetailBox"
  4994. v-if="
  4995. worksStudent.length &&
  4996. worksStudent[toolIndex].length > 0
  4997. "
  4998. >
  4999. <div
  5000. class="works"
  5001. style="
  5002. width: 200px;
  5003. height: 140px;
  5004. margin: 10px 10px 10px 0;
  5005. border-radius: 15px;
  5006. box-shadow: 0 0 6px 1px #dfdada;
  5007. "
  5008. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5009. :key="wIndex"
  5010. >
  5011. <!-- @click="previewImg(w.works)" -->
  5012. <div class="workImg">
  5013. <img
  5014. :src="w.works"
  5015. @click="previewImg(w.works,w)"
  5016. alt
  5017. />
  5018. <div
  5019. class="answerScore"
  5020. v-if="w.score"
  5021. @click.stop="openScore(w)"
  5022. :class="{
  5023. rightW:
  5024. w.userid == userid || tType == 1 || tType == 4,
  5025. }"
  5026. >
  5027. {{ JSON.parse(w.score).wScore }}分
  5028. </div>
  5029. <div
  5030. class="answerScore"
  5031. @click.stop="openScore(w)"
  5032. v-else-if="courseDetail.userid == userid"
  5033. :class="{
  5034. rightW:
  5035. w.userid == userid || tType == 1 || tType == 4,
  5036. }"
  5037. >
  5038. 评分
  5039. </div>
  5040. <img
  5041. class="deleteImg"
  5042. src="../../assets/deleteworks.png"
  5043. v-if="
  5044. w.userid == userid || tType == 1 || tType == 4
  5045. "
  5046. @click.stop="deleteWorks(w.wid)"
  5047. alt
  5048. />
  5049. </div>
  5050. <div class="comment" style="min-width: 200px">
  5051. <div class="worksName">
  5052. <div>{{ w.sName }}</div>
  5053. </div>
  5054. <div class="commentList">
  5055. <div class="commentList">
  5056. <div
  5057. class="commentImg"
  5058. @click="
  5059. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5060. "
  5061. >
  5062. <img
  5063. :src="w.isLikes == true ? likes : noLikes"
  5064. alt=""
  5065. />
  5066. </div>
  5067. <div>{{ w.likesCount }}</div>
  5068. </div>
  5069. <div class="commentList" style="margin-right: 15px">
  5070. <div
  5071. class="commentImg"
  5072. @click="commentOther(w, toolIndex, wIndex)"
  5073. >
  5074. <img
  5075. src="../../assets/icon/comment/comment.png"
  5076. alt=""
  5077. />
  5078. </div>
  5079. <div>{{ w.commentCount }}</div>
  5080. </div>
  5081. </div>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5086. 未提交
  5087. </div>
  5088. <div
  5089. class="noWorksS"
  5090. v-if="noWorksS && noWorksS[toolIndex].length"
  5091. >
  5092. <div
  5093. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5094. :key="sIndex"
  5095. class="noWorksName"
  5096. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5097. >
  5098. <el-tooltip effect="dark" :content="s.student" placement="top">
  5099. <span>{{ s.student }}</span>
  5100. </el-tooltip>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. <div
  5105. v-if="
  5106. tType &&
  5107. ((tType == 2 && sIsOpen == true) ||
  5108. tType == 1 ||
  5109. tType == 4) &&
  5110. tool.tool.indexOf(6) != -1
  5111. "
  5112. class="worksBox"
  5113. >
  5114. <div
  5115. class="zuoyeYulan"
  5116. v-if="
  5117. (worksStudent.length &&
  5118. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5119. "
  5120. >
  5121. <div class="worksTop">
  5122. <div>作业预览</div>
  5123. <div
  5124. class="corOpen"
  5125. @click="contract(toolIndex)"
  5126. v-if="
  5127. (isCloseList[toolIndex].isCloseBoolean) &&
  5128. isCloseList[toolIndex].isClose == 0
  5129. "
  5130. >
  5131. 折叠
  5132. </div>
  5133. <div
  5134. class="corOpen"
  5135. @click="contract(toolIndex)"
  5136. v-if="isCloseList[toolIndex].isClose == 1"
  5137. >
  5138. 展开
  5139. </div>
  5140. </div>
  5141. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5142. </div>
  5143. <div
  5144. class="group_workBox"
  5145. v-for="(g, gindex) in courseGroup.group"
  5146. :key="gindex"
  5147. >
  5148. <div class="group_box">
  5149. <div class="group_title">
  5150. <el-tooltip
  5151. class="item"
  5152. effect="light"
  5153. :content="g.name"
  5154. placement="top"
  5155. >
  5156. <div class="group_name">{{ g.name }}</div>
  5157. </el-tooltip>
  5158. </div>
  5159. <div
  5160. class="group_work"
  5161. v-if="
  5162. g.works &&
  5163. g.works.length &&
  5164. g.works[toolIndex].length
  5165. "
  5166. >
  5167. <div
  5168. class="works"
  5169. style="
  5170. width: 200px;
  5171. height: 140px;
  5172. margin: 10px 10px 10px 0;
  5173. border-radius: 15px;
  5174. box-shadow: 0 0 6px 1px #dfdada;
  5175. "
  5176. v-for="(w, wIndex) in g.works[toolIndex]"
  5177. :key="wIndex"
  5178. :class="w.type == 1 ? 'isTypeOne' : ''"
  5179. >
  5180. <div class="workImg">
  5181. <img
  5182. :src="w.works"
  5183. @click="previewImg(w.works,w)"
  5184. alt
  5185. />
  5186. <div
  5187. class="answerScore"
  5188. v-if="w.score"
  5189. @click.stop="openScore(w)"
  5190. :class="{
  5191. rightW:
  5192. w.userid == userid ||
  5193. tType == 1 ||
  5194. tType == 4,
  5195. }"
  5196. >
  5197. {{ JSON.parse(w.score).wScore }}分
  5198. </div>
  5199. <div
  5200. class="answerScore"
  5201. @click.stop="openScore(w)"
  5202. v-else-if="courseDetail.userid == userid"
  5203. :class="{
  5204. rightW:
  5205. w.userid == userid ||
  5206. tType == 1 ||
  5207. tType == 4,
  5208. }"
  5209. >
  5210. 评分
  5211. </div>
  5212. <img
  5213. class="deleteImg"
  5214. src="../../assets/deleteworks.png"
  5215. v-if="
  5216. w.userid == userid || tType == 1 || tType == 4
  5217. "
  5218. @click.stop="deleteWorks(w.wid)"
  5219. alt
  5220. />
  5221. </div>
  5222. <div class="comment" style="min-width: 200px">
  5223. <div class="worksName">
  5224. <div>{{ w.sName }}</div>
  5225. </div>
  5226. <div class="commentList">
  5227. <div class="commentList">
  5228. <div
  5229. class="commentImg"
  5230. @click="
  5231. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5232. "
  5233. >
  5234. <img
  5235. :src="w.isLikes == true ? likes : noLikes"
  5236. alt=""
  5237. />
  5238. </div>
  5239. <div>{{ w.likesCount }}</div>
  5240. </div>
  5241. <div
  5242. class="commentList"
  5243. style="margin-right: 15px"
  5244. >
  5245. <div
  5246. class="commentImg"
  5247. @click="
  5248. commentOther(
  5249. w,
  5250. toolIndex,
  5251. wIndex,
  5252. null,
  5253. g.id
  5254. )
  5255. "
  5256. >
  5257. <img
  5258. src="../../assets/icon/comment/comment.png"
  5259. alt=""
  5260. />
  5261. </div>
  5262. <div>{{ w.commentCount }}</div>
  5263. </div>
  5264. </div>
  5265. </div>
  5266. </div>
  5267. </div>
  5268. <div class="group_work" v-else>暂无提交作业</div>
  5269. </div>
  5270. </div>
  5271. <div
  5272. :id="'tool-' + toolIndex"
  5273. :style="{
  5274. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5275. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5276. }"
  5277. class="worksDetailBox"
  5278. v-if="
  5279. worksStudent.length &&
  5280. worksStudent[toolIndex].length > 0
  5281. "
  5282. >
  5283. <div
  5284. class="works"
  5285. style="
  5286. width: 200px;
  5287. height: 140px;
  5288. margin: 10px 10px 10px 0;
  5289. border-radius: 15px;
  5290. box-shadow: 0 0 6px 1px #dfdada;
  5291. "
  5292. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5293. :key="wIndex"
  5294. >
  5295. <!-- @click="previewImg(w.works)" -->
  5296. <div class="workImg">
  5297. <img
  5298. :src="w.works"
  5299. @click="previewImg(w.works,w)"
  5300. alt
  5301. />
  5302. <div
  5303. class="answerScore"
  5304. v-if="w.score"
  5305. @click.stop="openScore(w)"
  5306. :class="{
  5307. rightW:
  5308. w.userid == userid || tType == 1 || tType == 4,
  5309. }"
  5310. >
  5311. {{ JSON.parse(w.score).wScore }}分
  5312. </div>
  5313. <div
  5314. class="answerScore"
  5315. @click.stop="openScore(w)"
  5316. v-else-if="courseDetail.userid == userid"
  5317. :class="{
  5318. rightW:
  5319. w.userid == userid || tType == 1 || tType == 4,
  5320. }"
  5321. >
  5322. 评分
  5323. </div>
  5324. <img
  5325. class="deleteImg"
  5326. src="../../assets/deleteworks.png"
  5327. v-if="
  5328. w.userid == userid || tType == 1 || tType == 4
  5329. "
  5330. @click.stop="deleteWorks(w.wid)"
  5331. alt
  5332. />
  5333. </div>
  5334. <div class="comment" style="min-width: 200px">
  5335. <div class="worksName">
  5336. <div>{{ w.sName }}</div>
  5337. </div>
  5338. <div class="commentList">
  5339. <div class="commentList">
  5340. <div
  5341. class="commentImg"
  5342. @click="
  5343. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5344. "
  5345. >
  5346. <img
  5347. :src="w.isLikes == true ? likes : noLikes"
  5348. alt=""
  5349. />
  5350. </div>
  5351. <div>{{ w.likesCount }}</div>
  5352. </div>
  5353. <div class="commentList" style="margin-right: 15px">
  5354. <div
  5355. class="commentImg"
  5356. @click="commentOther(w, toolIndex, wIndex)"
  5357. >
  5358. <img
  5359. src="../../assets/icon/comment/comment.png"
  5360. alt=""
  5361. />
  5362. </div>
  5363. <div>{{ w.commentCount }}</div>
  5364. </div>
  5365. </div>
  5366. </div>
  5367. </div>
  5368. </div>
  5369. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5370. 未提交
  5371. </div>
  5372. <div
  5373. class="noWorksS"
  5374. v-if="noWorksS && noWorksS[toolIndex].length"
  5375. >
  5376. <div
  5377. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5378. :key="sIndex"
  5379. class="noWorksName"
  5380. >
  5381. <el-tooltip effect="dark" :content="s.student" placement="top">
  5382. <span>{{ s.student }}</span>
  5383. </el-tooltip>
  5384. </div>
  5385. </div>
  5386. </div>
  5387. <div
  5388. v-if="
  5389. tType &&
  5390. ((tType == 2 && sIsOpen == true) ||
  5391. tType == 1 ||
  5392. tType == 4) &&
  5393. tool.tool.indexOf(7) != -1
  5394. "
  5395. class="worksBox"
  5396. >
  5397. <div
  5398. class="zuoyeYulan"
  5399. v-if="
  5400. (worksStudent.length &&
  5401. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5402. "
  5403. >
  5404. <div class="worksTop">
  5405. <div>作业预览</div>
  5406. <div
  5407. class="corOpen"
  5408. @click="contract(toolIndex)"
  5409. v-if="
  5410. (isCloseList[toolIndex].isCloseBoolean) &&
  5411. isCloseList[toolIndex].isClose == 0
  5412. "
  5413. >
  5414. 折叠
  5415. </div>
  5416. <div
  5417. class="corOpen"
  5418. @click="contract(toolIndex)"
  5419. v-if="isCloseList[toolIndex].isClose == 1"
  5420. >
  5421. 展开
  5422. </div>
  5423. </div>
  5424. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5425. </div>
  5426. <div
  5427. class="group_workBox"
  5428. v-for="(g, gindex) in courseGroup.group"
  5429. :key="gindex"
  5430. >
  5431. <div class="group_box">
  5432. <div class="group_title">
  5433. <el-tooltip
  5434. class="item"
  5435. effect="light"
  5436. :content="g.name"
  5437. placement="top"
  5438. >
  5439. <div class="group_name">{{ g.name }}</div>
  5440. </el-tooltip>
  5441. </div>
  5442. <div
  5443. class="group_work"
  5444. v-if="
  5445. g.works &&
  5446. g.works.length &&
  5447. g.works[toolIndex].length
  5448. "
  5449. >
  5450. <div
  5451. class="works"
  5452. style="
  5453. width: 200px;
  5454. height: 140px;
  5455. margin: 10px 10px 10px 0;
  5456. border-radius: 15px;
  5457. box-shadow: 0 0 6px 1px #dfdada;
  5458. "
  5459. v-for="(w, wIndex) in g.works[toolIndex]"
  5460. :key="wIndex"
  5461. :class="w.type == 1 ? 'isTypeOne' : ''"
  5462. >
  5463. <div class="workImg">
  5464. <img
  5465. :src="w.works"
  5466. @click="previewImg(w.works,w)"
  5467. alt
  5468. />
  5469. <div
  5470. class="answerScore"
  5471. v-if="w.score"
  5472. @click.stop="openScore(w)"
  5473. :class="{
  5474. rightW:
  5475. w.userid == userid ||
  5476. tType == 1 ||
  5477. tType == 4,
  5478. }"
  5479. >
  5480. {{ JSON.parse(w.score).wScore }}分
  5481. </div>
  5482. <div
  5483. class="answerScore"
  5484. @click.stop="openScore(w)"
  5485. v-else-if="courseDetail.userid == userid"
  5486. :class="{
  5487. rightW:
  5488. w.userid == userid ||
  5489. tType == 1 ||
  5490. tType == 4,
  5491. }"
  5492. >
  5493. 评分
  5494. </div>
  5495. <img
  5496. class="deleteImg"
  5497. src="../../assets/deleteworks.png"
  5498. v-if="
  5499. w.userid == userid || tType == 1 || tType == 4
  5500. "
  5501. @click.stop="deleteWorks(w.wid)"
  5502. alt
  5503. />
  5504. </div>
  5505. <div class="comment" style="min-width: 200px">
  5506. <div class="worksName">
  5507. <div>{{ w.sName }}</div>
  5508. </div>
  5509. <div class="commentList">
  5510. <div class="commentList">
  5511. <div
  5512. class="commentImg"
  5513. @click="
  5514. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5515. "
  5516. >
  5517. <img
  5518. :src="w.isLikes == true ? likes : noLikes"
  5519. alt=""
  5520. />
  5521. </div>
  5522. <div>{{ w.likesCount }}</div>
  5523. </div>
  5524. <div
  5525. class="commentList"
  5526. style="margin-right: 15px"
  5527. >
  5528. <div
  5529. class="commentImg"
  5530. @click="
  5531. commentOther(
  5532. w,
  5533. toolIndex,
  5534. wIndex,
  5535. null,
  5536. g.id
  5537. )
  5538. "
  5539. >
  5540. <img
  5541. src="../../assets/icon/comment/comment.png"
  5542. alt=""
  5543. />
  5544. </div>
  5545. <div>{{ w.commentCount }}</div>
  5546. </div>
  5547. </div>
  5548. </div>
  5549. </div>
  5550. </div>
  5551. <div class="group_work" v-else>暂无提交作业</div>
  5552. </div>
  5553. </div>
  5554. <div
  5555. :id="'tool-' + toolIndex"
  5556. :style="{
  5557. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5558. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5559. }"
  5560. class="worksDetailBox"
  5561. v-if="
  5562. worksStudent.length &&
  5563. worksStudent[toolIndex].length > 0
  5564. "
  5565. >
  5566. <div
  5567. class="works"
  5568. style="
  5569. width: 200px;
  5570. height: 140px;
  5571. margin: 10px 10px 10px 0;
  5572. border-radius: 15px;
  5573. box-shadow: 0 0 6px 1px #dfdada;
  5574. "
  5575. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5576. :key="wIndex"
  5577. >
  5578. <!-- @click="previewImg(w.works)" -->
  5579. <div class="workImg">
  5580. <img
  5581. :src="w.works"
  5582. @click="previewImg(w.works,w)"
  5583. alt
  5584. />
  5585. <div
  5586. class="answerScore"
  5587. v-if="w.score"
  5588. @click.stop="openScore(w)"
  5589. :class="{
  5590. rightW:
  5591. w.userid == userid || tType == 1 || tType == 4,
  5592. }"
  5593. >
  5594. {{ JSON.parse(w.score).wScore }}分
  5595. </div>
  5596. <div
  5597. class="answerScore"
  5598. @click.stop="openScore(w)"
  5599. v-else-if="courseDetail.userid == userid"
  5600. :class="{
  5601. rightW:
  5602. w.userid == userid || tType == 1 || tType == 4,
  5603. }"
  5604. >
  5605. 评分
  5606. </div>
  5607. <img
  5608. class="deleteImg"
  5609. src="../../assets/deleteworks.png"
  5610. v-if="
  5611. w.userid == userid || tType == 1 || tType == 4
  5612. "
  5613. @click.stop="deleteWorks(w.wid)"
  5614. alt
  5615. />
  5616. </div>
  5617. <div class="comment" style="min-width: 200px">
  5618. <div class="worksName">
  5619. <div>{{ w.sName }}</div>
  5620. </div>
  5621. <div class="commentList">
  5622. <div class="commentList">
  5623. <div
  5624. class="commentImg"
  5625. @click="
  5626. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5627. "
  5628. >
  5629. <img
  5630. :src="w.isLikes == true ? likes : noLikes"
  5631. alt=""
  5632. />
  5633. </div>
  5634. <div>{{ w.likesCount }}</div>
  5635. </div>
  5636. <div class="commentList" style="margin-right: 15px">
  5637. <div
  5638. class="commentImg"
  5639. @click="commentOther(w, toolIndex, wIndex)"
  5640. >
  5641. <img
  5642. src="../../assets/icon/comment/comment.png"
  5643. alt=""
  5644. />
  5645. </div>
  5646. <div>{{ w.commentCount }}</div>
  5647. </div>
  5648. </div>
  5649. </div>
  5650. </div>
  5651. </div>
  5652. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5653. 未提交
  5654. </div>
  5655. <div
  5656. class="noWorksS"
  5657. v-if="noWorksS && noWorksS[toolIndex].length"
  5658. >
  5659. <div
  5660. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5661. :key="sIndex"
  5662. class="noWorksName"
  5663. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5664. >
  5665. <el-tooltip effect="dark" :content="s.student" placement="top">
  5666. <span>{{ s.student }}</span>
  5667. </el-tooltip>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. <div
  5672. v-if="
  5673. tType &&
  5674. ((tType == 2 && sIsOpen == true) ||
  5675. tType == 1 ||
  5676. tType == 4) &&
  5677. tool.tool.indexOf(26) != -1
  5678. "
  5679. class="worksBox"
  5680. >
  5681. <div
  5682. class="zuoyeYulan"
  5683. v-if="
  5684. worksStudent.length &&
  5685. worksStudent[toolIndex].length > 0
  5686. "
  5687. >
  5688. <div class="worksTop">
  5689. <div>作业预览</div>
  5690. <div
  5691. class="corOpen"
  5692. @click="contract(toolIndex)"
  5693. v-if="
  5694. (isCloseList[toolIndex].isCloseBoolean) &&
  5695. isCloseList[toolIndex].isClose == 0
  5696. "
  5697. >
  5698. 折叠
  5699. </div>
  5700. <div
  5701. class="corOpen"
  5702. @click="contract(toolIndex)"
  5703. v-if="isCloseList[toolIndex].isClose == 1"
  5704. >
  5705. 展开
  5706. </div>
  5707. </div>
  5708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5709. </div>
  5710. <div
  5711. :id="'tool-' + toolIndex"
  5712. :style="{
  5713. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5714. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5715. }"
  5716. class="worksDetailBox"
  5717. v-if="
  5718. worksStudent.length &&
  5719. worksStudent[toolIndex].length > 0
  5720. "
  5721. >
  5722. <div
  5723. class="works"
  5724. style="width: 240px; height: 140px; overflow: hidden"
  5725. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5726. :key="wIndex"
  5727. :class="w.type == 1 ? 'isTypeOne' : ''"
  5728. >
  5729. <div class="workImg" v-if="w.type == 0">
  5730. <img
  5731. :src="w.works"
  5732. @click="previewImg(w.works,w)"
  5733. alt
  5734. />
  5735. <img
  5736. class="deleteImg"
  5737. src="../../assets/deleteworks.png"
  5738. v-if="
  5739. w.userid == userid || tType == 1 || tType == 4
  5740. "
  5741. @click.stop="deleteWorks(w.wid)"
  5742. alt
  5743. />
  5744. </div>
  5745. <div class="workImg" v-if="w.type == 1">
  5746. <img :src="word" @click="openFile(w.works)" alt />
  5747. <img
  5748. class="deleteImg"
  5749. src="../../assets/deleteworks.png"
  5750. v-if="
  5751. w.userid == userid || tType == 1 || tType == 4
  5752. "
  5753. @click.stop="deleteWorks(w.wid)"
  5754. alt
  5755. />
  5756. </div>
  5757. <div class="worksName">
  5758. <div>{{ w.sName }}</div>
  5759. </div>
  5760. </div>
  5761. </div>
  5762. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5763. 未提交
  5764. </div>
  5765. <div
  5766. class="noWorksS"
  5767. v-if="noWorksS && noWorksS[toolIndex].length"
  5768. >
  5769. <div
  5770. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5771. :key="sIndex"
  5772. class="noWorksName"
  5773. >
  5774. <el-tooltip effect="dark" :content="s.student" placement="top">
  5775. <span>{{ s.student }}</span>
  5776. </el-tooltip>
  5777. </div>
  5778. </div>
  5779. </div>
  5780. <div
  5781. v-if="
  5782. tType &&
  5783. ((tType == 2 && sIsOpen == true) ||
  5784. tType == 1 ||
  5785. tType == 4) &&
  5786. tool.tool.indexOf(40) != -1
  5787. "
  5788. class="worksBox"
  5789. >
  5790. <div
  5791. class="zuoyeYulan"
  5792. v-if="
  5793. worksStudent.length &&
  5794. worksStudent[toolIndex].length > 0
  5795. "
  5796. >
  5797. <div class="worksTop">
  5798. <div>作业预览</div>
  5799. <div
  5800. class="corOpen"
  5801. @click="contract(toolIndex)"
  5802. v-if="
  5803. (isCloseList[toolIndex].isCloseBoolean) &&
  5804. isCloseList[toolIndex].isClose == 0
  5805. "
  5806. >
  5807. 折叠
  5808. </div>
  5809. <div
  5810. class="corOpen"
  5811. @click="contract(toolIndex)"
  5812. v-if="isCloseList[toolIndex].isClose == 1"
  5813. >
  5814. 展开
  5815. </div>
  5816. </div>
  5817. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5818. </div>
  5819. <div
  5820. :id="'tool-' + toolIndex"
  5821. :style="{
  5822. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5823. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5824. }"
  5825. class="worksDetailBox"
  5826. v-if="
  5827. worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0
  5829. "
  5830. >
  5831. <div
  5832. class="works"
  5833. style="
  5834. width: 200px;
  5835. height: 140px;
  5836. margin: 10px 10px 10px 0;
  5837. border-radius: 15px;
  5838. box-shadow: 0 0 6px 1px #dfdada;
  5839. "
  5840. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5841. :key="wIndex"
  5842. :class="w.type == 1 ? 'isTypeOne' : ''"
  5843. >
  5844. <div class="workImg">
  5845. <img
  5846. src="../../assets/icon/works/noImg.png"
  5847. @click="openPj(w.works, toolIndex)"
  5848. alt
  5849. />
  5850. <img
  5851. class="deleteImg"
  5852. src="../../assets/deleteworks.png"
  5853. v-if="
  5854. w.userid == userid || tType == 1 || tType == 4
  5855. "
  5856. @click.stop="deleteWorks(w.wid)"
  5857. alt
  5858. />
  5859. </div>
  5860. <div class="comment" style="min-width: 200px">
  5861. <div class="worksName">
  5862. <div>{{ w.sName }}</div>
  5863. </div>
  5864. <div class="commentList">
  5865. <div class="commentList">
  5866. <div
  5867. class="commentImg"
  5868. @click="
  5869. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5870. "
  5871. >
  5872. <img
  5873. :src="w.isLikes == true ? likes : noLikes"
  5874. alt=""
  5875. />
  5876. </div>
  5877. <div>{{ w.likesCount }}</div>
  5878. </div>
  5879. <div class="commentList" style="margin-right: 15px">
  5880. <div
  5881. class="commentImg"
  5882. @click="commentOther(w, toolIndex, wIndex)"
  5883. >
  5884. <img
  5885. src="../../assets/icon/comment/comment.png"
  5886. alt=""
  5887. />
  5888. </div>
  5889. <div>{{ w.commentCount }}</div>
  5890. </div>
  5891. </div>
  5892. </div>
  5893. </div>
  5894. </div>
  5895. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5896. 未提交
  5897. </div>
  5898. <div
  5899. class="noWorksS"
  5900. v-if="noWorksS && noWorksS[toolIndex].length"
  5901. >
  5902. <div
  5903. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5904. :key="sIndex"
  5905. class="noWorksName"
  5906. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5907. >
  5908. <el-tooltip effect="dark" :content="s.student" placement="top">
  5909. <span>{{ s.student }}</span>
  5910. </el-tooltip>
  5911. </div>
  5912. </div>
  5913. </div>
  5914. <div
  5915. v-if="
  5916. tType &&
  5917. tType == 2 &&
  5918. !sIsOpen &&
  5919. tool.tool.indexOf(40) != -1
  5920. "
  5921. class="worksBox"
  5922. >
  5923. <div
  5924. class="zuoyeYulan"
  5925. v-if="workStudent[toolIndex].length > 0"
  5926. >
  5927. <span class="worksTitle">作业预览</span>
  5928. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5929. </div>
  5930. <div
  5931. class="worksDetailBox"
  5932. v-if="workStudent[toolIndex].length > 0"
  5933. >
  5934. <div
  5935. class="works"
  5936. style="
  5937. width: 200px;
  5938. height: 140px;
  5939. margin: 10px 10px 10px 0;
  5940. "
  5941. v-for="(w, wIndex) in workStudent[toolIndex]"
  5942. :key="wIndex"
  5943. >
  5944. <div class="workImg">
  5945. <img
  5946. src="../../assets/icon/works/noImg.png"
  5947. @click="openPj(w.works, toolIndex)"
  5948. alt
  5949. />
  5950. <img
  5951. class="deleteImg"
  5952. src="../../assets/deleteworks.png"
  5953. v-if="
  5954. w.userid == userid || tType == 1 || tType == 4
  5955. "
  5956. @click.stop="deleteWorks(w.wid)"
  5957. alt
  5958. />
  5959. </div>
  5960. <div class="worksName">
  5961. <div>{{ w.sName }}</div>
  5962. </div>
  5963. </div>
  5964. </div>
  5965. </div>
  5966. <div
  5967. v-if="
  5968. tType &&
  5969. ((tType == 2 && sIsOpen == true) ||
  5970. tType == 1 ||
  5971. tType == 4) &&
  5972. tool.tool.indexOf(41) != -1
  5973. "
  5974. >
  5975. <AnswerData2
  5976. v-if="
  5977. worksStudent.length &&
  5978. worksStudent[toolIndex].length > 0
  5979. "
  5980. :problemJson="tool.selectJson.answer"
  5981. :people="worksStudent[toolIndex]"
  5982. ></AnswerData2>
  5983. </div>
  5984. <div
  5985. v-if="
  5986. tType &&
  5987. ((tType == 2 && sIsOpen == true) ||
  5988. tType == 1 ||
  5989. tType == 4) &&
  5990. tool.tool.indexOf(41) != -1
  5991. "
  5992. class="worksBox"
  5993. >
  5994. <div
  5995. class="zuoyeYulan"
  5996. v-if="
  5997. worksStudent.length &&
  5998. worksStudent[toolIndex].length > 0
  5999. "
  6000. >
  6001. <div class="worksTop">
  6002. <div>作业预览</div>
  6003. <div
  6004. class="corOpen"
  6005. @click="contract(toolIndex)"
  6006. v-if="
  6007. (isCloseList[toolIndex].isCloseBoolean) &&
  6008. isCloseList[toolIndex].isClose == 0
  6009. "
  6010. >
  6011. 折叠
  6012. </div>
  6013. <div
  6014. class="corOpen"
  6015. @click="contract(toolIndex)"
  6016. v-if="isCloseList[toolIndex].isClose == 1"
  6017. >
  6018. 展开
  6019. </div>
  6020. </div>
  6021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6022. </div>
  6023. <div
  6024. :id="'tool-' + toolIndex"
  6025. :style="{
  6026. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6027. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6028. }"
  6029. class="worksDetailBox"
  6030. v-if="
  6031. worksStudent.length &&
  6032. worksStudent[toolIndex].length > 0
  6033. "
  6034. >
  6035. <div
  6036. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6037. :key="wIndex"
  6038. class="isWorksName2"
  6039. @click="openXz(w, toolIndex)"
  6040. >
  6041. {{ w.sName }}
  6042. <img
  6043. class="deleteImg deleteImg2"
  6044. src="../../assets/deleteworks.png"
  6045. v-if="w.userid == userid || tType == 1 || tType == 4"
  6046. @click.stop="deleteWorks(w.wid)"
  6047. alt
  6048. />
  6049. </div>
  6050. <!-- <div
  6051. class="works"
  6052. style="
  6053. width: 200px;
  6054. height: 140px;
  6055. margin: 10px 10px 10px 0;
  6056. border-radius: 15px;
  6057. box-shadow: 0 0 6px 1px #dfdada;
  6058. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6059. :class="w.type == 5 ? 'isTypeOne' : ''">
  6060. <div class="workImg">
  6061. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6062. </div>
  6063. <div class="worksName">
  6064. <div>{{ w.sName }}</div>
  6065. </div>
  6066. </div> -->
  6067. </div>
  6068. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6069. 未提交
  6070. </div>
  6071. <div
  6072. class="noWorksS"
  6073. v-if="noWorksS && noWorksS[toolIndex].length"
  6074. >
  6075. <div
  6076. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6077. :key="sIndex"
  6078. class="noWorksName"
  6079. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6080. >
  6081. <el-tooltip effect="dark" :content="s.student" placement="top">
  6082. <span>{{ s.student }}</span>
  6083. </el-tooltip>
  6084. </div>
  6085. </div>
  6086. </div>
  6087. <div
  6088. v-if="
  6089. tType &&
  6090. tType == 2 &&
  6091. !sIsOpen &&
  6092. tool.tool.indexOf(41) != -1
  6093. "
  6094. class="worksBox"
  6095. >
  6096. <div
  6097. class="zuoyeYulan"
  6098. v-if="workStudent[toolIndex].length > 0"
  6099. >
  6100. <span class="worksTitle">作业预览</span>
  6101. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6102. </div>
  6103. <div
  6104. class="worksDetailBox"
  6105. v-if="workStudent[toolIndex].length > 0"
  6106. >
  6107. <div
  6108. class="works"
  6109. style="
  6110. width: 200px;
  6111. height: 140px;
  6112. margin: 10px 10px 10px 0;
  6113. "
  6114. v-for="(w, wIndex) in workStudent[toolIndex]"
  6115. :key="wIndex"
  6116. >
  6117. <div class="workImg">
  6118. <img
  6119. src="../../assets/icon/works/noImg.png"
  6120. @click="openXz(w, toolIndex)"
  6121. alt
  6122. />
  6123. <img
  6124. class="deleteImg"
  6125. src="../../assets/deleteworks.png"
  6126. v-if="
  6127. w.userid == userid || tType == 1 || tType == 4
  6128. "
  6129. @click.stop="deleteWorks(w.wid)"
  6130. alt
  6131. />
  6132. </div>
  6133. <div class="worksName">
  6134. <div>{{ w.sName }}</div>
  6135. </div>
  6136. </div>
  6137. </div>
  6138. </div>
  6139. <div v-if="false" class="xuan_right_box">
  6140. <div
  6141. class="tool_right_box"
  6142. v-for="(item, index) in tool.sentenceList"
  6143. :key="index"
  6144. >
  6145. <div>
  6146. <span
  6147. style="word-break: break-all; white-space: normal"
  6148. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6149. >
  6150. </div>
  6151. <div class="right_box_xuan">
  6152. <span>正确率</span>
  6153. <span>{{
  6154. (checkJson[toolIndex][index].right
  6155. ? checkJson[toolIndex][index].right
  6156. : 0) + "%"
  6157. }}</span>
  6158. </div>
  6159. <div class="right_box_xuan">
  6160. <span>答对人数</span>
  6161. <span>{{
  6162. checkJson[toolIndex][index].rightPerson.length
  6163. }}</span>
  6164. </div>
  6165. </div>
  6166. </div>
  6167. <div
  6168. v-if="
  6169. tType &&
  6170. ((tType == 2 && sIsOpen == true) ||
  6171. tType == 1 ||
  6172. tType == 4) &&
  6173. tool.tool.indexOf(47) != -1
  6174. "
  6175. >
  6176. <AnswerData
  6177. v-if="
  6178. checkJson[toolIndex].length &&
  6179. (tool.sentenceList || tool.sentenceList.length > 0)
  6180. "
  6181. :people="checkJson[toolIndex]"
  6182. ></AnswerData>
  6183. </div>
  6184. <div
  6185. v-if="
  6186. tType &&
  6187. tType == 2 &&
  6188. !sIsOpen &&
  6189. tool.tool.indexOf(47) != -1
  6190. "
  6191. class="worksBox"
  6192. >
  6193. <div
  6194. class="zuoyeYulan"
  6195. v-if="workStudent[toolIndex].length > 0"
  6196. >
  6197. <span class="worksTitle">作业预览</span>
  6198. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6199. </div>
  6200. <div
  6201. class="worksDetailBox"
  6202. v-if="workStudent[toolIndex].length > 0"
  6203. >
  6204. <div
  6205. class="works"
  6206. style="
  6207. width: 200px;
  6208. height: 140px;
  6209. margin: 10px 10px 10px 0;
  6210. "
  6211. v-for="(w, wIndex) in workStudent[toolIndex]"
  6212. :key="wIndex"
  6213. >
  6214. <!-- @click="openXz(w, toolIndex)" -->
  6215. <div class="workImg" @click="openSen(w, toolIndex)">
  6216. <img src="../../assets/icon/works/noImg.png" alt />
  6217. <img
  6218. class="deleteImg"
  6219. src="../../assets/deleteworks.png"
  6220. v-if="
  6221. w.userid == userid || tType == 1 || tType == 4
  6222. "
  6223. @click.stop="deleteWorks(w.wid)"
  6224. alt
  6225. />
  6226. </div>
  6227. <div class="worksName">
  6228. <div>
  6229. {{ w.sName }}
  6230. </div>
  6231. </div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. <div
  6236. v-if="
  6237. tType &&
  6238. ((tType == 2 && sIsOpen == true) ||
  6239. tType == 1 ||
  6240. tType == 4) &&
  6241. tool.tool.indexOf(47) != -1
  6242. "
  6243. class="worksBox"
  6244. >
  6245. <div
  6246. class="zuoyeYulan"
  6247. v-if="
  6248. worksStudent.length &&
  6249. worksStudent[toolIndex].length > 0
  6250. "
  6251. >
  6252. <div class="worksTop">
  6253. <div>作业预览</div>
  6254. <div
  6255. class="corOpen"
  6256. @click="contract(toolIndex)"
  6257. v-if="
  6258. (isCloseList[toolIndex].isCloseBoolean) &&
  6259. isCloseList[toolIndex].isClose == 0
  6260. "
  6261. >
  6262. 折叠
  6263. </div>
  6264. <div
  6265. class="corOpen"
  6266. @click="contract(toolIndex)"
  6267. v-if="isCloseList[toolIndex].isClose == 1"
  6268. >
  6269. 展开
  6270. </div>
  6271. </div>
  6272. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6273. </div>
  6274. <div
  6275. :id="'tool-' + toolIndex"
  6276. :style="{
  6277. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6278. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6279. }"
  6280. class="worksDetailBox"
  6281. v-if="
  6282. worksStudent.length &&
  6283. worksStudent[toolIndex].length > 0
  6284. "
  6285. >
  6286. <!-- @click="openXz(w, toolIndex)" -->
  6287. <div
  6288. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6289. :key="wIndex"
  6290. class="isWorksName2"
  6291. @click="openSen(w, toolIndex)"
  6292. >
  6293. {{ w.sName }}
  6294. <img
  6295. class="deleteImg deleteImg2"
  6296. src="../../assets/deleteworks.png"
  6297. v-if="w.userid == userid || tType == 1 || tType == 4"
  6298. @click.stop="deleteWorks(w.wid)"
  6299. alt
  6300. />
  6301. </div>
  6302. </div>
  6303. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6304. 未提交
  6305. </div>
  6306. <div
  6307. class="noWorksS"
  6308. v-if="noWorksS && noWorksS[toolIndex].length"
  6309. >
  6310. <div
  6311. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6312. :key="sIndex"
  6313. class="noWorksName"
  6314. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6315. >
  6316. <el-tooltip effect="dark" :content="s.student" placement="top">
  6317. <span>{{ s.student }}</span>
  6318. </el-tooltip>
  6319. </div>
  6320. </div>
  6321. </div>
  6322. <div
  6323. v-if="
  6324. tType &&
  6325. ((tType == 2 && sIsOpen == true) ||
  6326. tType == 1 ||
  6327. tType == 4) &&
  6328. tool.tool.indexOf(48) != -1
  6329. "
  6330. class="worksBox"
  6331. >
  6332. <div
  6333. class="zuoyeYulan"
  6334. v-if="
  6335. worksStudent.length &&
  6336. worksStudent[toolIndex].length > 0
  6337. "
  6338. >
  6339. <div class="worksTop">
  6340. <div>作业预览</div>
  6341. <div
  6342. class="corOpen"
  6343. @click="contract(toolIndex)"
  6344. v-if="
  6345. (isCloseList[toolIndex].isCloseBoolean) &&
  6346. isCloseList[toolIndex].isClose == 0
  6347. "
  6348. >
  6349. 折叠
  6350. </div>
  6351. <div
  6352. class="corOpen"
  6353. @click="contract(toolIndex)"
  6354. v-if="isCloseList[toolIndex].isClose == 1"
  6355. >
  6356. 展开
  6357. </div>
  6358. </div>
  6359. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6360. </div>
  6361. <div
  6362. :id="'tool-' + toolIndex"
  6363. :style="{
  6364. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6365. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6366. }"
  6367. class="worksDetailBox"
  6368. v-if="
  6369. worksStudent.length &&
  6370. worksStudent[toolIndex].length > 0
  6371. "
  6372. >
  6373. <div
  6374. class="works"
  6375. style="
  6376. width: 200px;
  6377. height: 140px;
  6378. margin: 10px 10px 10px 0;
  6379. border-radius: 15px;
  6380. box-shadow: 0 0 6px 1px #dfdada;
  6381. "
  6382. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6383. :key="wIndex"
  6384. :class="w.type == 1 ? 'isTypeOne' : ''"
  6385. >
  6386. <div class="workImg">
  6387. <img :src="word" @click="openTable(w)" alt />
  6388. <!-- @click="openFile(w.works)" -->
  6389. <div
  6390. class="answerScore"
  6391. v-if="w.score"
  6392. @click.stop="openScore(w)"
  6393. :class="{
  6394. rightW:
  6395. w.userid == userid ||
  6396. tType == 1 ||
  6397. tType == 4 ||
  6398. w.ateacher == userid,
  6399. }"
  6400. >
  6401. {{ JSON.parse(w.score).wScore }}分
  6402. </div>
  6403. <div
  6404. class="answerScore"
  6405. @click.stop="openScore(w)"
  6406. v-else-if="courseDetail.userid == userid"
  6407. :class="{
  6408. rightW:
  6409. w.userid == userid ||
  6410. tType == 1 ||
  6411. tType == 4 ||
  6412. w.ateacher == userid,
  6413. }"
  6414. >
  6415. 评分
  6416. </div>
  6417. <img
  6418. class="deleteImg"
  6419. src="../../assets/deleteworks.png"
  6420. v-if="
  6421. w.userid == userid || tType == 1 || tType == 4
  6422. "
  6423. @click.stop="deleteWorks(w.wid)"
  6424. alt
  6425. />
  6426. </div>
  6427. <div class="comment" style="min-width: 200px">
  6428. <div class="worksName">
  6429. <div>{{ w.sName }}</div>
  6430. </div>
  6431. <div class="commentList">
  6432. <div class="commentList">
  6433. <div
  6434. class="commentImg"
  6435. @click="
  6436. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6437. "
  6438. >
  6439. <img
  6440. :src="w.isLikes == true ? likes : noLikes"
  6441. alt=""
  6442. />
  6443. </div>
  6444. <div>{{ w.likesCount }}</div>
  6445. </div>
  6446. <div class="commentList" style="margin-right: 15px">
  6447. <div
  6448. class="commentImg"
  6449. @click="commentOther(w, toolIndex, wIndex)"
  6450. >
  6451. <img
  6452. src="../../assets/icon/comment/comment.png"
  6453. alt=""
  6454. />
  6455. </div>
  6456. <div>{{ w.commentCount }}</div>
  6457. </div>
  6458. </div>
  6459. </div>
  6460. </div>
  6461. </div>
  6462. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6463. 未提交
  6464. </div>
  6465. <div
  6466. class="noWorksS"
  6467. v-if="noWorksS && noWorksS[toolIndex].length"
  6468. >
  6469. <div
  6470. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6471. :key="sIndex"
  6472. class="noWorksName"
  6473. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6474. >
  6475. <el-tooltip effect="dark" :content="s.student" placement="top">
  6476. <span>{{ s.student }}</span>
  6477. </el-tooltip>
  6478. </div>
  6479. </div>
  6480. </div>
  6481. <div
  6482. v-if="
  6483. tType &&
  6484. tType == 2 &&
  6485. !sIsOpen &&
  6486. tool.tool.indexOf(48) != -1
  6487. "
  6488. class="worksBox"
  6489. >
  6490. <div
  6491. class="zuoyeYulan"
  6492. v-if="workStudent[toolIndex].length > 0"
  6493. >
  6494. <span class="worksTitle">作业预览</span>
  6495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6496. </div>
  6497. <div
  6498. class="worksDetailBox"
  6499. v-if="workStudent[toolIndex].length > 0"
  6500. >
  6501. <div
  6502. class="works"
  6503. style="
  6504. width: 200px;
  6505. height: 140px;
  6506. margin: 10px 10px 10px 0;
  6507. box-shadow: 0 0 6px 1px #dfdada;
  6508. "
  6509. v-for="(w, wIndex) in workStudent[toolIndex]"
  6510. :key="wIndex"
  6511. >
  6512. <div class="workImg">
  6513. <img :src="word" @click="openTable(w)" alt />
  6514. <div
  6515. class="answerScore"
  6516. v-if="w.score"
  6517. @click.stop="openScore(w)"
  6518. :class="{
  6519. rightW:
  6520. w.userid == userid || tType == 1 || tType == 4,
  6521. }"
  6522. >
  6523. {{ JSON.parse(w.score).wScore }}分
  6524. </div>
  6525. <div
  6526. class="answerScore"
  6527. @click.stop="openScore(w)"
  6528. v-else-if="courseDetail.userid == userid"
  6529. :class="{
  6530. rightW:
  6531. w.userid == userid || tType == 1 || tType == 4,
  6532. }"
  6533. >
  6534. 评分
  6535. </div>
  6536. <img
  6537. class="deleteImg"
  6538. src="../../assets/deleteworks.png"
  6539. v-if="
  6540. w.userid == userid || tType == 1 || tType == 4
  6541. "
  6542. @click.stop="deleteWorks(w.wid)"
  6543. alt
  6544. />
  6545. </div>
  6546. <div class="worksName">
  6547. <div>{{ w.sName }}</div>
  6548. </div>
  6549. </div>
  6550. </div>
  6551. </div>
  6552. <div
  6553. v-if="
  6554. tType &&
  6555. ((tType == 2 && sIsOpen == true) ||
  6556. tType == 1 ||
  6557. tType == 4) &&
  6558. tool.tool.indexOf(52) != -1
  6559. "
  6560. class="worksBox"
  6561. >
  6562. <div
  6563. class="zuoyeYulan"
  6564. v-if="
  6565. worksStudent.length &&
  6566. worksStudent[toolIndex].length > 0
  6567. "
  6568. >
  6569. <div class="worksTop">
  6570. <div>作业预览</div>
  6571. <div
  6572. class="corOpen"
  6573. @click="contract(toolIndex)"
  6574. v-if="
  6575. (isCloseList[toolIndex].isCloseBoolean) &&
  6576. isCloseList[toolIndex].isClose == 0
  6577. "
  6578. >
  6579. 折叠
  6580. </div>
  6581. <div
  6582. class="corOpen"
  6583. @click="contract(toolIndex)"
  6584. v-if="isCloseList[toolIndex].isClose == 1"
  6585. >
  6586. 展开
  6587. </div>
  6588. </div>
  6589. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6590. </div>
  6591. <div
  6592. :id="'tool-' + toolIndex"
  6593. :style="{
  6594. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6595. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6596. }"
  6597. class="worksDetailBox"
  6598. v-if="
  6599. worksStudent.length &&
  6600. worksStudent[toolIndex].length > 0
  6601. "
  6602. >
  6603. <div
  6604. class="works"
  6605. style="
  6606. width: 200px;
  6607. height: 140px;
  6608. margin: 10px 10px 10px 0;
  6609. border-radius: 15px;
  6610. box-shadow: 0 0 6px 1px #dfdada;
  6611. "
  6612. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6613. :key="wIndex"
  6614. :class="w.type == 1 ? 'isTypeOne' : ''"
  6615. >
  6616. <div class="workImg">
  6617. <img :src="word" @click="openWord(w)" alt />
  6618. <!-- @click="openFile(w.works)" -->
  6619. <div
  6620. class="answerScore"
  6621. v-if="w.score"
  6622. @click.stop="openScore(w)"
  6623. :class="{
  6624. rightW:
  6625. w.userid == userid ||
  6626. tType == 1 ||
  6627. tType == 4 ||
  6628. w.ateacher == userid,
  6629. }"
  6630. >
  6631. {{ JSON.parse(w.score).wScore }}分
  6632. </div>
  6633. <div
  6634. class="answerScore"
  6635. @click.stop="openScore(w)"
  6636. v-else-if="courseDetail.userid == userid"
  6637. :class="{
  6638. rightW:
  6639. w.userid == userid ||
  6640. tType == 1 ||
  6641. tType == 4 ||
  6642. w.ateacher == userid,
  6643. }"
  6644. >
  6645. 评分
  6646. </div>
  6647. <img
  6648. class="deleteImg"
  6649. src="../../assets/deleteworks.png"
  6650. v-if="
  6651. w.userid == userid || tType == 1 || tType == 4
  6652. "
  6653. @click.stop="deleteWorks(w.wid)"
  6654. alt
  6655. />
  6656. </div>
  6657. <div class="comment" style="min-width: 200px">
  6658. <div class="worksName">
  6659. <div>{{ w.sName }}</div>
  6660. </div>
  6661. <div class="commentList">
  6662. <div class="commentList">
  6663. <div
  6664. class="commentImg"
  6665. @click="
  6666. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6667. "
  6668. >
  6669. <img
  6670. :src="w.isLikes == true ? likes : noLikes"
  6671. alt=""
  6672. />
  6673. </div>
  6674. <div>{{ w.likesCount }}</div>
  6675. </div>
  6676. <div class="commentList" style="margin-right: 15px">
  6677. <div
  6678. class="commentImg"
  6679. @click="commentOther(w, toolIndex, wIndex)"
  6680. >
  6681. <img
  6682. src="../../assets/icon/comment/comment.png"
  6683. alt=""
  6684. />
  6685. </div>
  6686. <div>{{ w.commentCount }}</div>
  6687. </div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6693. 未提交
  6694. </div>
  6695. <div
  6696. class="noWorksS"
  6697. v-if="noWorksS && noWorksS[toolIndex].length"
  6698. >
  6699. <div
  6700. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6701. :key="sIndex"
  6702. class="noWorksName"
  6703. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6704. >
  6705. <el-tooltip effect="dark" :content="s.student" placement="top">
  6706. <span>{{ s.student }}</span>
  6707. </el-tooltip>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. <div
  6712. v-if="
  6713. tType &&
  6714. tType == 2 &&
  6715. !sIsOpen &&
  6716. tool.tool.indexOf(52) != -1
  6717. "
  6718. class="worksBox"
  6719. >
  6720. <div
  6721. class="zuoyeYulan"
  6722. v-if="workStudent[toolIndex].length > 0"
  6723. >
  6724. <span class="worksTitle">作业预览</span>
  6725. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6726. </div>
  6727. <div
  6728. class="worksDetailBox"
  6729. v-if="workStudent[toolIndex].length > 0"
  6730. >
  6731. <div
  6732. class="works"
  6733. style="
  6734. width: 200px;
  6735. height: 140px;
  6736. margin: 10px 10px 10px 0;
  6737. box-shadow: 0 0 6px 1px #dfdada;
  6738. "
  6739. v-for="(w, wIndex) in workStudent[toolIndex]"
  6740. :key="wIndex"
  6741. >
  6742. <div class="workImg">
  6743. <img :src="word" @click="openWord(w)" alt />
  6744. <div
  6745. class="answerScore"
  6746. v-if="w.score"
  6747. @click.stop="openScore(w)"
  6748. :class="{
  6749. rightW:
  6750. w.userid == userid || tType == 1 || tType == 4,
  6751. }"
  6752. >
  6753. {{ JSON.parse(w.score).wScore }}分
  6754. </div>
  6755. <div
  6756. class="answerScore"
  6757. @click.stop="openScore(w)"
  6758. v-else-if="courseDetail.userid == userid"
  6759. :class="{
  6760. rightW:
  6761. w.userid == userid || tType == 1 || tType == 4,
  6762. }"
  6763. >
  6764. 评分
  6765. </div>
  6766. <img
  6767. class="deleteImg"
  6768. src="../../assets/deleteworks.png"
  6769. v-if="
  6770. w.userid == userid || tType == 1 || tType == 4
  6771. "
  6772. @click.stop="deleteWorks(w.wid)"
  6773. alt
  6774. />
  6775. </div>
  6776. <div class="worksName">
  6777. <div>{{ w.sName }}</div>
  6778. </div>
  6779. </div>
  6780. </div>
  6781. </div>
  6782. <div
  6783. v-if="tool.tool.indexOf(49) != -1"
  6784. class="xuan_right_box"
  6785. style="margin: 0 15px 0 25px; width: 93%"
  6786. >
  6787. <div
  6788. v-if="courseDetail.userid == userid"
  6789. style="
  6790. display: flex;
  6791. justify-content: flex-end;
  6792. margin-right: 10px;
  6793. "
  6794. >
  6795. <el-button
  6796. type="primary"
  6797. size="small"
  6798. @click="addTools(49, toolIndex, taskCount)"
  6799. >分组设置</el-button
  6800. >
  6801. </div>
  6802. <div
  6803. v-if="groupStudentUid[toolIndex]"
  6804. class="group_staic_box"
  6805. >
  6806. <div
  6807. v-for="(gp, gd) in tool.groupJson.group"
  6808. :key="gd"
  6809. class="group_staic"
  6810. >
  6811. <span> {{ gp.name }}</span>
  6812. <span>
  6813. 目前人数{{
  6814. groupStudentUid[toolIndex][gd].length
  6815. }}人</span
  6816. >
  6817. </div>
  6818. </div>
  6819. </div>
  6820. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6821. <div
  6822. class="zuoyeYulan"
  6823. v-if="
  6824. worksStudent.length &&
  6825. worksStudent[toolIndex].length > 0
  6826. "
  6827. >
  6828. <span class="worksTitle">作业预览</span>
  6829. </div>
  6830. <div>
  6831. <div
  6832. class="group_workBox"
  6833. v-for="(g, gindex) in tool.groupJson.group"
  6834. :key="gindex"
  6835. >
  6836. <div
  6837. class="group_box"
  6838. v-if="
  6839. groupStudentUid[toolIndex] &&
  6840. worksStudent[toolIndex] &&
  6841. (worksStudent[toolIndex][gindex].length ||
  6842. groupStudentUid[toolIndex][gindex].indexOf(
  6843. userid
  6844. ) != -1)
  6845. "
  6846. >
  6847. <div class="group_title">
  6848. <el-tooltip
  6849. class="item"
  6850. effect="light"
  6851. :content="g.name"
  6852. placement="top"
  6853. >
  6854. <div class="group_name">{{ g.name }}</div>
  6855. </el-tooltip>
  6856. <el-button
  6857. type="primary"
  6858. v-if="
  6859. groupStudentUid[toolIndex][gindex].indexOf(
  6860. userid
  6861. ) != -1
  6862. "
  6863. @click="groupUpload(toolIndex, taskCount, gindex)"
  6864. >上传作业</el-button
  6865. >
  6866. </div>
  6867. <div class="group_work">
  6868. <div
  6869. class="works"
  6870. style="
  6871. width: 200px;
  6872. height: 140px;
  6873. margin: 10px 10px 10px 0;
  6874. border-radius: 15px;
  6875. box-shadow: 0 0 6px 1px #dfdada;
  6876. "
  6877. v-for="(w, wIndex) in worksStudent[toolIndex][
  6878. gindex
  6879. ]"
  6880. :key="wIndex"
  6881. :class="w.type == 1 ? 'isTypeOne' : ''"
  6882. >
  6883. <div class="workImg" v-if="w.type == 0">
  6884. <img
  6885. :src="w.works"
  6886. @click="previewImg(w.works,w)"
  6887. alt
  6888. />
  6889. <div
  6890. class="answerScore"
  6891. v-if="w.score"
  6892. @click.stop="openScore(w)"
  6893. :class="{
  6894. rightW:
  6895. w.userid == userid ||
  6896. tType == 1 ||
  6897. tType == 4 ||
  6898. w.ateacher == userid,
  6899. }"
  6900. >
  6901. {{ JSON.parse(w.score).wScore }}分
  6902. </div>
  6903. <div
  6904. class="answerScore"
  6905. @click.stop="openScore(w)"
  6906. v-else-if="courseDetail.userid == userid"
  6907. :class="{
  6908. rightW:
  6909. w.userid == userid ||
  6910. tType == 1 ||
  6911. tType == 4 ||
  6912. w.ateacher == userid,
  6913. }"
  6914. >
  6915. 评分
  6916. </div>
  6917. <img
  6918. class="deleteImg"
  6919. src="../../assets/deleteworks.png"
  6920. v-if="
  6921. w.userid == userid ||
  6922. tType == 1 ||
  6923. tType == 4
  6924. "
  6925. @click.stop="deleteWorks(w.wid)"
  6926. alt
  6927. />
  6928. </div>
  6929. <div class="workImg" v-if="w.type == 1">
  6930. <img
  6931. :src="word"
  6932. @click="openFile(w.works)"
  6933. alt
  6934. />
  6935. <!-- @click="openFile(w.works)" -->
  6936. <div
  6937. class="answerScore"
  6938. v-if="w.score"
  6939. @click.stop="openScore(w)"
  6940. :class="{
  6941. rightW:
  6942. w.userid == userid ||
  6943. tType == 1 ||
  6944. tType == 4 ||
  6945. w.ateacher == userid,
  6946. }"
  6947. >
  6948. {{ JSON.parse(w.score).wScore }}分
  6949. </div>
  6950. <div
  6951. class="answerScore"
  6952. @click.stop="openScore(w)"
  6953. v-else-if="courseDetail.userid == userid"
  6954. :class="{
  6955. rightW:
  6956. w.userid == userid ||
  6957. tType == 1 ||
  6958. tType == 4 ||
  6959. w.ateacher == userid,
  6960. }"
  6961. >
  6962. 评分
  6963. </div>
  6964. <img
  6965. class="deleteImg"
  6966. src="../../assets/deleteworks.png"
  6967. v-if="
  6968. w.userid == userid ||
  6969. tType == 1 ||
  6970. tType == 4
  6971. "
  6972. @click.stop="deleteWorks(w.wid)"
  6973. alt
  6974. />
  6975. </div>
  6976. <div class="workImg" v-if="w.type == 3">
  6977. <img
  6978. style="cursor: pointer"
  6979. :src="video"
  6980. @click="openVideo(w)"
  6981. alt
  6982. />
  6983. <!-- @click="openVideo(w.works)" -->
  6984. <div
  6985. class="answerScore"
  6986. v-if="w.score"
  6987. @click.stop="openScore(w)"
  6988. :class="{
  6989. rightW:
  6990. w.userid == userid ||
  6991. tType == 1 ||
  6992. tType == 4 ||
  6993. w.ateacher == userid,
  6994. }"
  6995. >
  6996. {{ JSON.parse(w.score).wScore }}分
  6997. </div>
  6998. <div
  6999. class="answerScore"
  7000. @click.stop="openScore(w)"
  7001. v-else-if="courseDetail.userid == userid"
  7002. :class="{
  7003. rightW:
  7004. w.userid == userid ||
  7005. tType == 1 ||
  7006. tType == 4 ||
  7007. w.ateacher == userid,
  7008. }"
  7009. >
  7010. 评分
  7011. </div>
  7012. <img
  7013. class="deleteImg"
  7014. src="../../assets/deleteworks.png"
  7015. v-if="
  7016. w.userid == userid ||
  7017. tType == 1 ||
  7018. tType == 4
  7019. "
  7020. @click.stop="deleteWorks(w.wid)"
  7021. alt
  7022. />
  7023. </div>
  7024. <div class="workImg" v-if="w.type == 12">
  7025. <img
  7026. style="cursor: pointer"
  7027. :src="word2"
  7028. @click="downloadFile(w.works)"
  7029. alt
  7030. />
  7031. <!-- @click="openVideo(w.works)" -->
  7032. <div
  7033. class="answerScore"
  7034. v-if="w.score"
  7035. @click.stop="openScore(w)"
  7036. :class="{
  7037. rightW:
  7038. w.userid == userid ||
  7039. tType == 1 ||
  7040. tType == 4 ||
  7041. w.ateacher == userid,
  7042. }"
  7043. >
  7044. {{ JSON.parse(w.score).wScore }}分
  7045. </div>
  7046. <div
  7047. class="answerScore"
  7048. @click.stop="openScore(w)"
  7049. v-else-if="courseDetail.userid == userid"
  7050. :class="{
  7051. rightW:
  7052. w.userid == userid ||
  7053. tType == 1 ||
  7054. tType == 4 ||
  7055. w.ateacher == userid,
  7056. }"
  7057. >
  7058. 评分
  7059. </div>
  7060. <img
  7061. class="deleteImg"
  7062. src="../../assets/deleteworks.png"
  7063. v-if="
  7064. w.userid == userid ||
  7065. tType == 1 ||
  7066. tType == 4
  7067. "
  7068. @click.stop="deleteWorks(w.wid)"
  7069. alt
  7070. />
  7071. </div>
  7072. <div class="comment" style="min-width: 200px">
  7073. <div class="worksName">
  7074. <div>{{ w.sName }}</div>
  7075. </div>
  7076. <div class="commentList">
  7077. <div class="commentList">
  7078. <div
  7079. class="commentImg"
  7080. @click="
  7081. isLikes(
  7082. w.wid,
  7083. userid,
  7084. 1,
  7085. null,
  7086. w.isLikes,
  7087. w.sName
  7088. )
  7089. "
  7090. >
  7091. <img
  7092. :src="
  7093. w.isLikes == true ? likes : noLikes
  7094. "
  7095. alt=""
  7096. />
  7097. </div>
  7098. <div>{{ w.likesCount }}</div>
  7099. </div>
  7100. <div
  7101. class="commentList"
  7102. style="margin-right: 15px"
  7103. >
  7104. <div
  7105. class="commentImg"
  7106. @click="
  7107. commentOther(
  7108. w,
  7109. toolIndex,
  7110. wIndex,
  7111. gindex
  7112. )
  7113. "
  7114. >
  7115. <img
  7116. src="../../assets/icon/comment/comment.png"
  7117. alt=""
  7118. />
  7119. </div>
  7120. <div>{{ w.commentCount }}</div>
  7121. </div>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. </div>
  7126. </div>
  7127. </div>
  7128. </div>
  7129. </div>
  7130. </div>
  7131. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7132. 上传文件
  7133. <input
  7134. type="file"
  7135. accept="image/png, image/gif, image/jpeg"
  7136. style="display: none"
  7137. @change="beforeUpload1($event, 2, index)"
  7138. />
  7139. </div>-->
  7140. </div>
  7141. </div>
  7142. <!-- <div
  7143. class="vedioBox"
  7144. style="margin-top: 10px"
  7145. v-if="
  7146. courseDetail.userid == userid ||
  7147. (courseDetail.course_teacher &&
  7148. courseDetail.course_teacher.indexOf(userid) != -1)
  7149. "
  7150. :style="{
  7151. borderRadius:
  7152. !(
  7153. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7154. .toolChoose[0].tool &&
  7155. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7156. .toolChoose[0].tool.length > 0
  7157. ) &&
  7158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7159. .taskDetail == '' &&
  7160. vChapterData[taskCount].length == 0 &&
  7161. fileC[taskCount].length == 0
  7162. ? '0 0 20px 20px'
  7163. : '20px',
  7164. }"
  7165. >
  7166. <div
  7167. class="queTop"
  7168. @click="isClose = !isClose"
  7169. style="
  7170. padding: 15px 0 15px 37px;
  7171. justify-content: space-between;
  7172. "
  7173. >
  7174. <div class="queTopTitle">新增工具</div>
  7175. <div class="queTopRight">
  7176. <div class="queTopClose" v-if="isClose == 0">
  7177. 展开
  7178. <div class="closeImg">
  7179. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7180. </div>
  7181. </div>
  7182. <div class="queTopClose" v-if="isClose == 1">
  7183. 折叠
  7184. <div class="openImg">
  7185. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7186. </div>
  7187. </div>
  7188. <el-button
  7189. style="margin: 0 30px 0 auto"
  7190. type="primary"
  7191. size="small"
  7192. v-if="isClose == 1 && checktoolArray.length > 0"
  7193. @click.stop="addToolChoose"
  7194. >确定</el-button
  7195. >
  7196. </div>
  7197. </div>
  7198. <div
  7199. class="tool_work_box"
  7200. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7201. >
  7202. <div class="tool_box">
  7203. <div class="tool_type_box">
  7204. <div class="chooseWho">
  7205. <div
  7206. :class="toolType == 0 ? 'isChooseActive' : ''"
  7207. @click="(toolType = 0), $forceUpdate()"
  7208. >
  7209. 互动类
  7210. </div>
  7211. <div
  7212. :class="toolType == 1 ? 'isChooseActive' : ''"
  7213. @click="(toolType = 1), $forceUpdate()"
  7214. >
  7215. 思维类
  7216. </div>
  7217. <div
  7218. :class="toolType == 2 ? 'isChooseActive' : ''"
  7219. @click="(toolType = 2), $forceUpdate()"
  7220. >
  7221. 测评类
  7222. </div>
  7223. <div
  7224. :class="toolType == 3 ? 'isChooseActive' : ''"
  7225. @click="(toolType = 3), $forceUpdate()"
  7226. >
  7227. 编程类
  7228. </div>
  7229. <div
  7230. :class="toolType == 5 ? 'isChooseActive' : ''"
  7231. @click="(toolType = 5), $forceUpdate()"
  7232. >
  7233. 学科类
  7234. </div>
  7235. </div>
  7236. </div>
  7237. <div>
  7238. <div class="toolSort" v-if="toolType == 0">
  7239. <div class="tool">
  7240. <div class="whiteBIcon" @click="addTools2(10)">
  7241. <img
  7242. src="../../assets/icon/thirdToolList/time.png"
  7243. alt
  7244. />
  7245. <div style="margin: 5px 0">倒计时</div>
  7246. </div>
  7247. <div class="check" @click="addTools2(10)">
  7248. <img
  7249. src="../../assets/icon/checkNo.png"
  7250. alt
  7251. v-if="checktoolArray.indexOf(10) == -1"
  7252. />
  7253. <div class="checkDiv" v-else>
  7254. <img src="../../assets/icon/checkedIs.png" alt /><span
  7255. >已选择</span
  7256. >
  7257. </div>
  7258. </div>
  7259. </div>
  7260. <div class="tool">
  7261. <div class="whiteBIcon" @click="addTools2(65)">
  7262. <img
  7263. src="../../assets/icon/firstToolList/pickPeople.png"
  7264. alt
  7265. />
  7266. <div style="margin: 5px 0">挑人</div>
  7267. </div>
  7268. <div class="check" @click="addTools2(65)">
  7269. <img
  7270. src="../../assets/icon/checkNo.png"
  7271. alt
  7272. v-if="checktoolArray.indexOf(65) == -1"
  7273. />
  7274. <div class="checkDiv" v-else>
  7275. <img src="../../assets/icon/checkedIs.png" alt /><span
  7276. >已选择</span
  7277. >
  7278. </div>
  7279. </div>
  7280. </div>
  7281. </div>
  7282. <div class="toolSort" v-if="toolType == 1">
  7283. <div class="tool">
  7284. <div class="whiteBIcon" @click="addTools2(7)">
  7285. <img
  7286. src="../../assets/icon/secondToolList/mindNetwork.png"
  7287. alt
  7288. />
  7289. <div style="margin: 5px 0">思维网格</div>
  7290. </div>
  7291. <div class="check" @click="addTools2(7)">
  7292. <img
  7293. src="../../assets/icon/checkNo.png"
  7294. alt
  7295. v-if="checktoolArray.indexOf(7) == -1"
  7296. />
  7297. <div class="checkDiv" v-else>
  7298. <img src="../../assets/icon/checkedIs.png" alt /><span
  7299. >已选择</span
  7300. >
  7301. </div>
  7302. </div>
  7303. </div>
  7304. <div class="tool">
  7305. <div class="whiteBIcon" @click="addTools2(1)">
  7306. <img
  7307. src="../../assets/icon/secondToolList/whiteBoard.png"
  7308. alt
  7309. />
  7310. <div style="margin: 5px 0">电子白板</div>
  7311. </div>
  7312. <div class="check" @click="addTools2(1)">
  7313. <img
  7314. src="../../assets/icon/checkNo.png"
  7315. alt
  7316. v-if="checktoolArray.indexOf(1) == -1"
  7317. />
  7318. <div class="checkDiv" v-else>
  7319. <img src="../../assets/icon/checkedIs.png" alt /><span
  7320. >已选择</span
  7321. >
  7322. </div>
  7323. </div>
  7324. </div>
  7325. <div class="tool">
  7326. <div class="whiteBIcon" @click="addTools2(52)">
  7327. <img
  7328. src="../../assets/icon/fourthToolList/text.png"
  7329. alt
  7330. />
  7331. <div style="margin: 5px 0">文档</div>
  7332. </div>
  7333. <div class="check" @click="addTools2(52)">
  7334. <img
  7335. src="../../assets/icon/checkNo.png"
  7336. alt
  7337. v-if="checktoolArray.indexOf(52) == -1"
  7338. />
  7339. <div class="checkDiv" v-else>
  7340. <img src="../../assets/icon/checkedIs.png" alt /><span
  7341. >已选择</span
  7342. >
  7343. </div>
  7344. </div>
  7345. </div>
  7346. <div class="tool">
  7347. <div class="whiteBIcon" @click="addTools2(3)">
  7348. <img
  7349. src="../../assets/icon/secondToolList/mindMapping.png"
  7350. alt
  7351. />
  7352. <div style="margin: 5px 0">思维导图</div>
  7353. </div>
  7354. <div class="check" @click="addTools2(3)">
  7355. <img
  7356. src="../../assets/icon/checkNo.png"
  7357. alt
  7358. v-if="checktoolArray.indexOf(3) == -1"
  7359. />
  7360. <div class="checkDiv" v-else>
  7361. <img src="../../assets/icon/checkedIs.png" alt /><span
  7362. >已选择</span
  7363. >
  7364. </div>
  7365. </div>
  7366. </div>
  7367. <div class="tool">
  7368. <div class="whiteBIcon" @click="addTools2(48)">
  7369. <img
  7370. src="../../assets/icon/fourthToolList/table.png"
  7371. alt
  7372. />
  7373. <div style="margin: 5px 0">表格</div>
  7374. </div>
  7375. <div class="check" @click="addTools2(48)">
  7376. <img
  7377. src="../../assets/icon/checkNo.png"
  7378. alt
  7379. v-if="checktoolArray.indexOf(48) == -1"
  7380. />
  7381. <div class="checkDiv" v-else>
  7382. <img src="../../assets/icon/checkedIs.png" alt /><span
  7383. >已选择</span
  7384. >
  7385. </div>
  7386. </div>
  7387. </div>
  7388. </div>
  7389. <div class="toolSort" v-if="toolType == 6">
  7390. <div v-show="tooC == 49">
  7391. <img
  7392. @click="addTools(tooC, toolIndex, taskCount)"
  7393. src="../../assets/icon/fourthToolList/group.png"
  7394. alt
  7395. />
  7396. <div style="margin: 5px 0">学生分组</div>
  7397. </div>
  7398. </div>
  7399. <div class="toolSort" v-if="toolType == 2">
  7400. <div class="tool">
  7401. <div class="whiteBIcon" @click="addTools2(16)">
  7402. <img
  7403. src="../../assets/icon/thirdToolList/work.png"
  7404. alt
  7405. />
  7406. <div style="margin: 5px 0">作业提交</div>
  7407. </div>
  7408. <div class="check" @click="addTools2(16)">
  7409. <img
  7410. src="../../assets/icon/checkNo.png"
  7411. alt
  7412. v-if="checktoolArray.indexOf(16) == -1"
  7413. />
  7414. <div class="checkDiv" v-else>
  7415. <img src="../../assets/icon/checkedIs.png" alt /><span
  7416. >已选择</span
  7417. >
  7418. </div>
  7419. </div>
  7420. </div>
  7421. <div class="tool">
  7422. <div class="whiteBIcon" @click="addTools2(50)">
  7423. <img
  7424. src="../../assets/icon/thirdToolList/plwork.png"
  7425. alt
  7426. />
  7427. <div style="margin: 5px 0">批量上传</div>
  7428. </div>
  7429. <div class="check" @click="addTools2(50)">
  7430. <img
  7431. src="../../assets/icon/checkNo.png"
  7432. alt
  7433. v-if="checktoolArray.indexOf(50) == -1"
  7434. />
  7435. <div class="checkDiv" v-else>
  7436. <img src="../../assets/icon/checkedIs.png" alt /><span
  7437. >已选择</span
  7438. >
  7439. </div>
  7440. </div>
  7441. </div>
  7442. </div>
  7443. <div class="toolSort" v-if="toolType == 3">
  7444. <div class="tool">
  7445. <div class="whiteBIcon" @click="addTools2(18)">
  7446. <img
  7447. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7448. alt
  7449. />
  7450. <div style="margin: 5px 0">训练平台</div>
  7451. </div>
  7452. <div class="check" @click="addTools2(18)">
  7453. <img
  7454. src="../../assets/icon/checkNo.png"
  7455. alt
  7456. v-if="checktoolArray.indexOf(18) == -1"
  7457. />
  7458. <div class="checkDiv" v-else>
  7459. <img src="../../assets/icon/checkedIs.png" alt /><span
  7460. >已选择</span
  7461. >
  7462. </div>
  7463. </div>
  7464. </div>
  7465. <div class="tool">
  7466. <div class="whiteBIcon" @click="addTools2(21)">
  7467. <img
  7468. src="../../assets/icon/fourthToolList/program.png"
  7469. alt
  7470. />
  7471. <div style="margin: 5px 0">AIoT Blockly</div>
  7472. </div>
  7473. <div class="check" @click="addTools2(21)">
  7474. <img
  7475. src="../../assets/icon/checkNo.png"
  7476. alt
  7477. v-if="checktoolArray.indexOf(21) == -1"
  7478. />
  7479. <div class="checkDiv" v-else>
  7480. <img src="../../assets/icon/checkedIs.png" alt /><span
  7481. >已选择</span
  7482. >
  7483. </div>
  7484. </div>
  7485. </div>
  7486. <div class="tool">
  7487. <div class="whiteBIcon" @click="addTools2(23)">
  7488. <img
  7489. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7490. alt
  7491. />
  7492. <div style="margin: 5px 0">AI Python</div>
  7493. </div>
  7494. <div class="check" @click="addTools2(23)">
  7495. <img
  7496. src="../../assets/icon/checkNo.png"
  7497. alt
  7498. v-if="checktoolArray.indexOf(23) == -1"
  7499. />
  7500. <div class="checkDiv" v-else>
  7501. <img src="../../assets/icon/checkedIs.png" alt /><span
  7502. >已选择</span
  7503. >
  7504. </div>
  7505. </div>
  7506. </div>
  7507. <div class="tool">
  7508. <div class="whiteBIcon" @click="addTools2(24)">
  7509. <img
  7510. src="../../assets/icon/fourthToolList/AIprogram.png"
  7511. alt
  7512. />
  7513. <div style="margin: 5px 0">AI Blockly</div>
  7514. </div>
  7515. <div class="check" @click="addTools2(24)">
  7516. <img
  7517. src="../../assets/icon/checkNo.png"
  7518. alt
  7519. v-if="checktoolArray.indexOf(24) == -1"
  7520. />
  7521. <div class="checkDiv" v-else>
  7522. <img src="../../assets/icon/checkedIs.png" alt /><span
  7523. >已选择</span
  7524. >
  7525. </div>
  7526. </div>
  7527. </div>
  7528. <div class="tool">
  7529. <div class="whiteBIcon" @click="addTools2(32)">
  7530. <img
  7531. src="../../assets/icon/thirdToolList/code.png"
  7532. alt
  7533. />
  7534. <div style="margin: 5px 0">源码编辑</div>
  7535. </div>
  7536. <div class="check" @click="addTools2(32)">
  7537. <img
  7538. src="../../assets/icon/checkNo.png"
  7539. alt
  7540. v-if="checktoolArray.indexOf(32) == -1"
  7541. />
  7542. <div class="checkDiv" v-else>
  7543. <img src="../../assets/icon/checkedIs.png" alt /><span
  7544. >已选择</span
  7545. >
  7546. </div>
  7547. </div>
  7548. </div>
  7549. <div class="tool">
  7550. <div class="whiteBIcon" @click="addTools2(57)">
  7551. <img
  7552. src="../../assets/icon/fourthToolList/cocopi.png"
  7553. alt
  7554. />
  7555. <div style="margin: 5px 0">CocoPi</div>
  7556. </div>
  7557. <div class="check" @click="addTools2(57)">
  7558. <img
  7559. src="../../assets/icon/checkNo.png"
  7560. alt
  7561. v-if="checktoolArray.indexOf(57) == -1"
  7562. />
  7563. <div class="checkDiv" v-else>
  7564. <img src="../../assets/icon/checkedIs.png" alt /><span
  7565. >已选择</span
  7566. >
  7567. </div>
  7568. </div>
  7569. </div>
  7570. <div class="tool">
  7571. <div class="whiteBIcon" @click="addTools2(63)">
  7572. <img
  7573. src="../../assets/icon/fourthToolList/Wood.png"
  7574. alt
  7575. />
  7576. <div style="margin: 5px 0">海龟编程</div>
  7577. </div>
  7578. <div class="check" @click="addTools2(63)">
  7579. <img
  7580. src="../../assets/icon/checkNo.png"
  7581. alt
  7582. v-if="checktoolArray.indexOf(63) == -1"
  7583. />
  7584. <div class="checkDiv" v-else>
  7585. <img src="../../assets/icon/checkedIs.png" alt /><span
  7586. >已选择</span
  7587. >
  7588. </div>
  7589. </div>
  7590. </div>
  7591. </div>
  7592. <div class="toolSort" v-if="toolType == 5">
  7593. <div class="tool">
  7594. <div class="whiteBIcon" @click="addTools2(28)">
  7595. <img
  7596. src="../../assets/icon/secondToolList/translation.png"
  7597. alt
  7598. />
  7599. <div style="margin: 5px 0">翻译</div>
  7600. </div>
  7601. <div class="check" @click="addTools2(28)">
  7602. <img
  7603. src="../../assets/icon/checkNo.png"
  7604. alt
  7605. v-if="checktoolArray.indexOf(28) == -1"
  7606. />
  7607. <div class="checkDiv" v-else>
  7608. <img src="../../assets/icon/checkedIs.png" alt /><span
  7609. >已选择</span
  7610. >
  7611. </div>
  7612. </div>
  7613. </div>
  7614. <div class="tool">
  7615. <div class="whiteBIcon" @click="addTools2(31)">
  7616. <img
  7617. src="../../assets/icon/secondToolList/networkPanel.png"
  7618. alt
  7619. />
  7620. <div style="margin: 5px 0">数字画板</div>
  7621. </div>
  7622. <div class="check" @click="addTools2(31)">
  7623. <img
  7624. src="../../assets/icon/checkNo.png"
  7625. alt
  7626. v-if="checktoolArray.indexOf(31) == -1"
  7627. />
  7628. <div class="checkDiv" v-else>
  7629. <img src="../../assets/icon/checkedIs.png" alt /><span
  7630. >已选择</span
  7631. >
  7632. </div>
  7633. </div>
  7634. </div>
  7635. <div class="tool">
  7636. <div class="whiteBIcon" @click="addTools2(39)">
  7637. <img
  7638. src="../../assets/icon/secondToolList/GeoGebra.png"
  7639. alt
  7640. />
  7641. <div style="margin: 5px 0">GeoGebra</div>
  7642. </div>
  7643. <div class="check" @click="addTools2(39)">
  7644. <img
  7645. src="../../assets/icon/checkNo.png"
  7646. alt
  7647. v-if="checktoolArray.indexOf(39) == -1"
  7648. />
  7649. <div class="checkDiv" v-else>
  7650. <img src="../../assets/icon/checkedIs.png" alt /><span
  7651. >已选择</span
  7652. >
  7653. </div>
  7654. </div>
  7655. </div>
  7656. <div class="tool">
  7657. <div class="whiteBIcon" @click="addTools2(66)">
  7658. <img
  7659. src="../../assets/icon/secondToolList/formulaEdi.png"
  7660. alt
  7661. />
  7662. <div style="margin: 5px 0">公式编辑</div>
  7663. </div>
  7664. <div class="check" @click="addTools2(66)">
  7665. <img
  7666. src="../../assets/icon/checkNo.png"
  7667. alt
  7668. v-if="checktoolArray.indexOf(66) == -1"
  7669. />
  7670. <div class="checkDiv" v-else>
  7671. <img src="../../assets/icon/checkedIs.png" alt /><span
  7672. >已选择</span
  7673. >
  7674. </div>
  7675. </div>
  7676. </div>
  7677. <div class="tool">
  7678. <div class="whiteBIcon" @click="addTools2(67)">
  7679. <img
  7680. src="../../assets/icon/secondToolList/molStr.png"
  7681. alt
  7682. />
  7683. <div style="margin: 5px 0">分子结构</div>
  7684. </div>
  7685. <div class="check" @click="addTools2(67)">
  7686. <img
  7687. src="../../assets/icon/checkNo.png"
  7688. alt
  7689. v-if="checktoolArray.indexOf(67) == -1"
  7690. />
  7691. <div class="checkDiv" v-else>
  7692. <img src="../../assets/icon/checkedIs.png" alt /><span
  7693. >已选择</span
  7694. >
  7695. </div>
  7696. </div>
  7697. </div>
  7698. <div class="tool">
  7699. <div class="whiteBIcon" @click="addTools2(68)">
  7700. <img
  7701. src="../../assets/icon/secondToolList/timeAxis.png"
  7702. alt
  7703. />
  7704. <div style="margin: 5px 0">时间轴</div>
  7705. </div>
  7706. <div class="check" @click="addTools2(68)">
  7707. <img
  7708. src="../../assets/icon/checkNo.png"
  7709. alt
  7710. v-if="checktoolArray.indexOf(68) == -1"
  7711. />
  7712. <div class="checkDiv" v-else>
  7713. <img src="../../assets/icon/checkedIs.png" alt /><span
  7714. >已选择</span
  7715. >
  7716. </div>
  7717. </div>
  7718. </div>
  7719. </div>
  7720. <div class="toolSort" v-if="toolType == 7">
  7721. <div class="tool">
  7722. <div class="whiteBIcon" @click="addTools2(40)">
  7723. <img
  7724. src="../../assets/icon/secondToolList/eval.png"
  7725. alt
  7726. />
  7727. <div style="margin: 5px 0">个人评价</div>
  7728. </div>
  7729. <div class="check" @click="addTools2(40)">
  7730. <img
  7731. src="../../assets/icon/checkNo.png"
  7732. alt
  7733. v-if="checktoolArray.indexOf(40) == -1"
  7734. />
  7735. <div class="checkDiv" v-else>
  7736. <img src="../../assets/icon/checkedIs.png" alt /><span
  7737. >已选择</span
  7738. >
  7739. </div>
  7740. </div>
  7741. </div>
  7742. </div>
  7743. <div class="toolSort" v-if="toolType == 4">
  7744. <div class="tool">
  7745. <div class="whiteBIcon" @click="addTools2(26)">
  7746. <img
  7747. src="../../assets/icon/thirdToolList/courseDesign.png"
  7748. alt
  7749. />
  7750. <div style="margin: 5px 0">课程设计</div>
  7751. </div>
  7752. <div class="check" @click="addTools2(26)">
  7753. <img
  7754. src="../../assets/icon/checkNo.png"
  7755. alt
  7756. v-if="checktoolArray.indexOf(26) == -1"
  7757. />
  7758. <div class="checkDiv" v-else>
  7759. <img src="../../assets/icon/checkedIs.png" alt /><span
  7760. >已选择</span
  7761. >
  7762. </div>
  7763. </div>
  7764. </div>
  7765. <div class="tool">
  7766. <div class="whiteBIcon" @click="addTools2(25)">
  7767. <img
  7768. src="../../assets/icon/thirdToolList/evalua.png"
  7769. alt
  7770. />
  7771. <div style="margin: 5px 0">目标管理</div>
  7772. </div>
  7773. <div class="check" @click="addTools2(25)">
  7774. <img
  7775. src="../../assets/icon/checkNo.png"
  7776. alt
  7777. v-if="checktoolArray.indexOf(25) == -1"
  7778. />
  7779. <div class="checkDiv" v-else>
  7780. <img src="../../assets/icon/checkedIs.png" alt /><span
  7781. >已选择</span
  7782. >
  7783. </div>
  7784. </div>
  7785. </div>
  7786. </div>
  7787. </div>
  7788. </div>
  7789. </div>
  7790. </div> -->
  7791. <div
  7792. class="vedioBox"
  7793. style="margin-top: 10px; border-radius: 20px"
  7794. v-if="
  7795. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7796. .eList &&
  7797. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7798. .eList.length &&
  7799. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7800. .eList.length > 0 &&
  7801. tType != 2
  7802. "
  7803. >
  7804. <div
  7805. class="queTop"
  7806. style="
  7807. font-size: 20px;
  7808. padding: 15px 0 15px 37px;
  7809. font-weight: bold;
  7810. "
  7811. >
  7812. <!-- <div class="question" style="width: 30px">
  7813. <img src="../assets/icon/toolIcon.png" alt />
  7814. </div>
  7815. <div class="queTitle">
  7816. <div>工具</div>
  7817. </div>-->
  7818. 评一评
  7819. </div>
  7820. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7821. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7822. <el-table
  7823. :data="
  7824. chapInfoList[courseType].chapterInfo[0].taskJson[
  7825. taskCount
  7826. ].eList
  7827. "
  7828. :header-cell-style="{ background: '#F0F4FA' }"
  7829. :row-class-name="tableRowClassName"
  7830. border
  7831. stripe
  7832. style="width: 100%"
  7833. >
  7834. <el-table-column
  7835. label="评价名称"
  7836. align="center"
  7837. >
  7838. <template slot-scope="scope"
  7839. ><div>{{ scope.row.value }}</div></template
  7840. >
  7841. </el-table-column>
  7842. <el-table-column
  7843. label="评价描述"
  7844. align="center"
  7845. >
  7846. <template slot-scope="scope"
  7847. ><div>
  7848. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7849. </div></template
  7850. >
  7851. </el-table-column>
  7852. <el-table-column label="目标" align="center">
  7853. <template slot-scope="scope"
  7854. ><div>
  7855. {{
  7856. scope.row.target
  7857. ? scope.row.target[scope.row.target.length - 1]
  7858. : "-"
  7859. }}
  7860. </div></template
  7861. ></el-table-column
  7862. >
  7863. </el-table>
  7864. <!-- <div
  7865. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7866. .chapterInfo[0].taskJson[taskCount].eList"
  7867. :key="eIndex"
  7868. class="elist_input_box"
  7869. >
  7870. <div style="width: 95%">
  7871. <div
  7872. style="
  7873. display: flex;
  7874. flex-direction: row;
  7875. flex-wrap: nowrap;
  7876. align-items: center;
  7877. "
  7878. >
  7879. <div style="max-width: calc(100% - 285px)">
  7880. <span>{{ eItem.value }}</span>
  7881. </div>
  7882. <div
  7883. style="
  7884. padding-left: 25px;
  7885. display: flex;
  7886. flex-direction: row;
  7887. align-items: center;
  7888. "
  7889. >
  7890. <el-rate
  7891. v-model="eItem.score"
  7892. :colors="colors"
  7893. disabled
  7894. ></el-rate>
  7895. </div>
  7896. </div>
  7897. <div class="elist_inptu_text" style="padding-left: 10px">
  7898. <span v-if="eItem.detail != ''">{{
  7899. eItem.detail
  7900. }}</span>
  7901. <span v-else style="color: #b2b1b3; font-size: 14px"
  7902. >暂无描述...</span
  7903. >
  7904. </div>
  7905. </div>
  7906. </div> -->
  7907. </div>
  7908. <div
  7909. v-if="evalua"
  7910. style="
  7911. border: 1px solid #e5e5e5;
  7912. max-width: 650px;
  7913. width: 100%;
  7914. margin-top: 20px;
  7915. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7916. "
  7917. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7918. >
  7919. <div class="e_add_top">
  7920. <div class="e_add_title" style="width: 100%">
  7921. <!-- <span>目标管理名称</span> -->
  7922. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7923. <img
  7924. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7925. src="../../assets/line.png"
  7926. class="cru_line"
  7927. style="
  7928. width: 125px;
  7929. height: 20px;
  7930. bottom: -10px;
  7931. left: 5px;
  7932. "
  7933. />
  7934. <!-- <el-input
  7935. v-model="eTitle"
  7936. placeholder="请输入名称"
  7937. @change="setMindData"
  7938. ></el-input>-->
  7939. <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>
  7940. <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>
  7941. </div>
  7942. </div>
  7943. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7944. <div class="e_add_list_pbox">
  7945. <div class="e_add_list_pbox_title">
  7946. <!-- <span class="type_title">切换模式</span> -->
  7947. <div class="type_content">
  7948. <span
  7949. :class="{ active: typeMode == 1 }"
  7950. @click="typeMode = 1"
  7951. >目标树</span
  7952. >
  7953. <span
  7954. :class="{ active: typeMode == 2 }"
  7955. @click="typeMode = 2"
  7956. >目标罗盘</span
  7957. >
  7958. <!-- <span
  7959. :class="{ active: typeMode == 3 }"
  7960. @click="typeMode = 3"
  7961. >目标看板</span
  7962. > -->
  7963. </div>
  7964. </div>
  7965. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7966. <Mind
  7967. :showBar="false"
  7968. :mindData="data"
  7969. style="width: 100%"
  7970. v-show="typeMode == 1"
  7971. ></Mind>
  7972. <Sunburst
  7973. :Josn="eJson"
  7974. :num="eJSONNum"
  7975. style="width: 100%"
  7976. v-if="typeMode == 2"
  7977. ></Sunburst>
  7978. <SeeBoard
  7979. :Josn="eJson"
  7980. :num="eJSONNum"
  7981. :ename="eTitle"
  7982. style="width: 100%"
  7983. v-if="typeMode == 3"
  7984. >
  7985. </SeeBoard>
  7986. </div>
  7987. </div>
  7988. </div>
  7989. </div>
  7990. </div>
  7991. </div>
  7992. <!-- <div
  7993. class="project_box"
  7994. style="margin-top: 15px; padding-bottom: 30px"
  7995. >
  7996. <div
  7997. style="
  7998. display: flex;
  7999. flex-wrap: nowrap;
  8000. flex-direction: column;
  8001. position: relative;
  8002. "
  8003. >
  8004. <div class="queTop">
  8005. <div class="question">
  8006. <img src="../../assets/icon/homeWork.png" alt="" />
  8007. </div>
  8008. <div class="queTitle">
  8009. <div>作业提交<span>(提交图文视频等)</span></div>
  8010. <div>:任务:{{ task.task }}</div>
  8011. </div>
  8012. </div>
  8013. <div class="ediBottom">
  8014. <div
  8015. class="addEditor"
  8016. style="margin-top: 23px"
  8017. @click="openAddWork"
  8018. v-if="!isNoHomeWork"
  8019. >
  8020. 选择文件
  8021. </div>
  8022. <div
  8023. class="addEditor"
  8024. style="margin-top: 23px"
  8025. @click="openAddWork"
  8026. v-else
  8027. >
  8028. 已提交
  8029. </div>
  8030. </div>
  8031. </div>
  8032. </div>-->
  8033. </div>
  8034. </div>
  8035. <el-dialog
  8036. title="作业提交"
  8037. :visible.sync="dialogVisible"
  8038. :append-to-body="true"
  8039. width="500px"
  8040. :before-close="handleClose"
  8041. class="dialog_change"
  8042. >
  8043. <div class="marginT">
  8044. <div>上传文件</div>
  8045. <div
  8046. class="chapter_add"
  8047. @click="addImg($event)"
  8048. v-if="studyJuri[0].cover.length == 0"
  8049. >
  8050. <div class="up_photo">
  8051. <img src="../../assets/icon/uploadImg.png" alt />
  8052. </div>
  8053. <!-- <input
  8054. type="file"
  8055. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8056. style="display: none"
  8057. @change="beforeUpload1($event, 1)"
  8058. /> -->
  8059. <input
  8060. type="file"
  8061. accept="*"
  8062. style="display: none"
  8063. @change="beforeUpload1($event, 1)"
  8064. />
  8065. <!-- <input
  8066. type="file"
  8067. accept="image/*"
  8068. capture="camera"
  8069. style="display: none"
  8070. @change="beforeUpload1($event, 1)"
  8071. /> -->
  8072. </div>
  8073. <div
  8074. class="chapter_add"
  8075. style="
  8076. display: flex;
  8077. width: 100%;
  8078. flex-direction: row;
  8079. flex-wrap: wrap;
  8080. justify-content: flex-start;
  8081. padding: 15px 0;
  8082. "
  8083. v-if="studyJuri[0].cover.length > 0"
  8084. >
  8085. <div class="upCover">
  8086. <img
  8087. :src="studyJuri[0].cover[0].url"
  8088. alt
  8089. v-if="fileType == 0"
  8090. />
  8091. <img :src="word" alt v-else-if="fileType == 1" />
  8092. <img :src="video" alt v-else-if="fileType == 2" />
  8093. <img :src="word2" alt v-else-if="fileType == 3" />
  8094. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8095. <div class="deleteWord" @click="clean(1)">
  8096. <img src="../../assets/icon/deleteWorks.png" alt />
  8097. </div>
  8098. </div>
  8099. </div>
  8100. </div>
  8101. <div
  8102. class="upload_send"
  8103. @click="addCourseWorks(taskCount)"
  8104. v-if="!proVisible"
  8105. >
  8106. 提交
  8107. </div>
  8108. </el-dialog>
  8109. </div>
  8110. </div>
  8111. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8112. <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(
  8113. '/courseDetail?userid=' +
  8114. userid +
  8115. '&oid=' +
  8116. oid +
  8117. '&org=' +
  8118. org +
  8119. '&cid=' +
  8120. classId +
  8121. '&courseId=' +
  8122. id +
  8123. '&tType=' +
  8124. tType +
  8125. '&screenType=' +
  8126. screenType
  8127. )"></classRoomHelper>
  8128. <div
  8129. class="pButton"
  8130. @click="(pzDialog = true), selectPz()"
  8131. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8132. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8133. >
  8134. <!-- 批 -->
  8135. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8136. </div>
  8137. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8138. <div class="pzTop2">
  8139. <!-- <div>评论</div>
  8140. <div @click="pzDialog = false">
  8141. <img src="../../assets/close1.png" alt="" />
  8142. </div> -->
  8143. <div class="checkbox">
  8144. <!-- <div class="check" style="font-size: 25px; position: unset">
  8145. 评论
  8146. </div> -->
  8147. <div class="cb-tabList">
  8148. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8149. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8150. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8151. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8152. </div>
  8153. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8154. <el-option label="时间降序" :value="1"></el-option>
  8155. <el-option label="时间升序" :value="2"></el-option>
  8156. <el-option label="我的评课" :value="3"></el-option>
  8157. </el-select>
  8158. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8159. </div>
  8160. </div>
  8161. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8162. <div class="pzListBox" v-if="pzList && pzList.length">
  8163. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8164. <div class="pzNavTop">
  8165. <div>评</div>
  8166. <div>
  8167. {{
  8168. pz.username && pz.username.length > 5
  8169. ? pz.username.substring(0, 5) + "..."
  8170. : pz.username
  8171. }}的评论
  8172. </div>
  8173. <div
  8174. class="pzDelete"
  8175. v-if="pz.userid == userid"
  8176. @click="deletePz(pz.id)"
  8177. >
  8178. 删除
  8179. </div>
  8180. </div>
  8181. <div
  8182. @click="checkImg(getImgList(pz.content))"
  8183. class="pzContent cont"
  8184. v-html="pz.content"
  8185. v-if="pz.type == '1'"
  8186. ></div>
  8187. <div class="pzContent" v-if="pz.type == '2'">
  8188. <audio :src="pz.content" controls="controls" ref="audio">
  8189. Your browser does not support the audio element.
  8190. </audio>
  8191. </div>
  8192. <div class="pzContent" v-if="pz.type == '3'">
  8193. <img
  8194. :src="pz.content"
  8195. style="width: 90%; margin: 0 auto; display: block"
  8196. @click="previewImg(pz.content)"
  8197. />
  8198. </div>
  8199. <div class="timeAndReply">
  8200. <div class="time">
  8201. {{ pz.time }}
  8202. </div>
  8203. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8204. </div>
  8205. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8206. <div
  8207. v-for="(h, hIndex) in pz.hfList"
  8208. :key="hIndex"
  8209. class="hfItem"
  8210. >
  8211. <div class="whoReplyWho">
  8212. <div class="hfName">{{ h.username }}</div>
  8213. <div class="hfImg">
  8214. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8215. </div>
  8216. <div class="hfName">{{ pz.username }}</div>
  8217. </div>
  8218. <div class="hfContent" v-html="h.content"></div>
  8219. <div class="hfBottom">
  8220. <div class="hfTime">{{ h.time }}</div>
  8221. <div
  8222. class="deleteHfItem"
  8223. @click="deleteReply(h.id)"
  8224. v-if="userid == h.userid"
  8225. >
  8226. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8227. </div>
  8228. </div>
  8229. </div>
  8230. </div>
  8231. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8232. <div class="replyInput">
  8233. <el-input v-model="reply[pzIndex]"></el-input>
  8234. </div>
  8235. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8236. </div> -->
  8237. </div>
  8238. </div>
  8239. <div class="noPz" v-else>
  8240. <img src="../../assets/icon/noPz.png" alt="" />
  8241. </div>
  8242. <div class="addPzButton">
  8243. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8244. 添加评论
  8245. </div>
  8246. <!-- <div class="img1">
  8247. <div @click="(addPzDialog = true), (pzType = 2)">
  8248. <img src="../../assets/audio.png" /><span>音频</span>
  8249. </div>
  8250. </div> -->
  8251. </div>
  8252. </div>
  8253. <div class="scoreList" v-if="commentTagShow==1">
  8254. <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"/>
  8255. </div>
  8256. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8257. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8258. </div>
  8259. </div>
  8260. <div
  8261. v-if="toolDialogVisible == true"
  8262. class="toolMask"
  8263. @click="toolDialogVisible = false"
  8264. ></div>
  8265. <div v-if="toolDialogVisible == true" class="addToolCss">
  8266. <div class="toolTop">
  8267. <div style="font-weight: bold">新增工具</div>
  8268. <div @click="toolDialogVisible = false">
  8269. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8270. </div>
  8271. </div>
  8272. <div class="tool_box">
  8273. <div class="tool_type_box">
  8274. <div class="chooseWho">
  8275. <div
  8276. :class="toolType == 0 ? 'isChooseActive' : ''"
  8277. @click="(toolType = 0), $forceUpdate()"
  8278. >
  8279. 互动类
  8280. </div>
  8281. <div
  8282. :class="toolType == 1 ? 'isChooseActive' : ''"
  8283. @click="(toolType = 1), $forceUpdate()"
  8284. >
  8285. 思维类
  8286. </div>
  8287. <div
  8288. :class="toolType == 2 ? 'isChooseActive' : ''"
  8289. @click="(toolType = 2), $forceUpdate()"
  8290. >
  8291. 测评类
  8292. </div>
  8293. <div
  8294. :class="toolType == 3 ? 'isChooseActive' : ''"
  8295. @click="(toolType = 3), $forceUpdate()"
  8296. >
  8297. 编程类
  8298. </div>
  8299. <div
  8300. :class="toolType == 5 ? 'isChooseActive' : ''"
  8301. @click="(toolType = 5), $forceUpdate()"
  8302. >
  8303. 学科类
  8304. </div>
  8305. </div>
  8306. </div>
  8307. <div>
  8308. <div class="toolSort" v-if="toolType == 0">
  8309. <div
  8310. class="tool"
  8311. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8312. @click="addTools2(10)"
  8313. >
  8314. <div class="whiteBIcon">
  8315. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8316. <div style="margin: 5px 0">倒计时</div>
  8317. </div>
  8318. <div class="check">
  8319. <div
  8320. v-if="checktoolArray.indexOf(10) == -1"
  8321. class="noChoose"
  8322. ></div>
  8323. <div v-else class="isChoose"></div>
  8324. </div>
  8325. </div>
  8326. <div
  8327. class="tool"
  8328. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8329. @click="addTools2(65)"
  8330. >
  8331. <div class="whiteBIcon">
  8332. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8333. <div style="margin: 5px 0">挑人</div>
  8334. </div>
  8335. <div class="check">
  8336. <div
  8337. v-if="checktoolArray.indexOf(65) == -1"
  8338. class="noChoose"
  8339. ></div>
  8340. <div v-else class="isChoose"></div>
  8341. </div>
  8342. </div>
  8343. </div>
  8344. <div class="toolSort" v-if="toolType == 1">
  8345. <div
  8346. class="tool"
  8347. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8348. @click="addTools2(7)"
  8349. >
  8350. <div class="whiteBIcon">
  8351. <img
  8352. src="../../assets/icon/secondToolList/mindNetwork.png"
  8353. alt
  8354. />
  8355. <div style="margin: 5px 0">思维网格</div>
  8356. </div>
  8357. <div class="check">
  8358. <div
  8359. v-if="checktoolArray.indexOf(7) == -1"
  8360. class="noChoose"
  8361. ></div>
  8362. <div v-else class="isChoose"></div>
  8363. </div>
  8364. </div>
  8365. <div
  8366. class="tool"
  8367. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8368. @click="addTools2(1)"
  8369. >
  8370. <div class="whiteBIcon">
  8371. <img
  8372. src="../../assets/icon/secondToolList/whiteBoard.png"
  8373. alt
  8374. />
  8375. <div style="margin: 5px 0">电子白板</div>
  8376. </div>
  8377. <div class="check">
  8378. <div
  8379. v-if="checktoolArray.indexOf(1) == -1"
  8380. class="noChoose"
  8381. ></div>
  8382. <div v-else class="isChoose"></div>
  8383. </div>
  8384. </div>
  8385. <div
  8386. class="tool"
  8387. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8388. @click="addTools2(52)"
  8389. >
  8390. <div class="whiteBIcon">
  8391. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8392. <div style="margin: 5px 0">文档</div>
  8393. </div>
  8394. <div class="check">
  8395. <div
  8396. v-if="checktoolArray.indexOf(52) == -1"
  8397. class="noChoose"
  8398. ></div>
  8399. <div v-else class="isChoose"></div>
  8400. </div>
  8401. </div>
  8402. <div
  8403. class="tool"
  8404. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8405. @click="addTools2(3)"
  8406. >
  8407. <div class="whiteBIcon">
  8408. <img
  8409. src="../../assets/icon/secondToolList/mindMapping.png"
  8410. alt
  8411. />
  8412. <div style="margin: 5px 0">思维导图</div>
  8413. </div>
  8414. <div class="check">
  8415. <div
  8416. v-if="checktoolArray.indexOf(3) == -1"
  8417. class="noChoose"
  8418. ></div>
  8419. <div v-else class="isChoose"></div>
  8420. </div>
  8421. </div>
  8422. <div
  8423. class="tool"
  8424. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8425. @click="addTools2(48)"
  8426. >
  8427. <div class="whiteBIcon">
  8428. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8429. <div style="margin: 5px 0">表格</div>
  8430. </div>
  8431. <div class="check">
  8432. <div
  8433. v-if="checktoolArray.indexOf(48) == -1"
  8434. class="noChoose"
  8435. ></div>
  8436. <div v-else class="isChoose"></div>
  8437. </div>
  8438. </div>
  8439. </div>
  8440. <div class="toolSort" v-if="toolType == 6">
  8441. <div v-show="tooC == 49">
  8442. <img
  8443. @click="addTools(tooC, toolIndex, taskCount)"
  8444. src="../../assets/icon/fourthToolList/group.png"
  8445. alt
  8446. />
  8447. <div style="margin: 5px 0">学生分组</div>
  8448. </div>
  8449. </div>
  8450. <div class="toolSort" v-if="toolType == 2">
  8451. <div
  8452. class="tool"
  8453. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8454. @click="addTools2(16)"
  8455. >
  8456. <div class="whiteBIcon">
  8457. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8458. <div style="margin: 5px 0">作业提交</div>
  8459. </div>
  8460. <div class="check">
  8461. <div
  8462. v-if="checktoolArray.indexOf(16) == -1"
  8463. class="noChoose"
  8464. ></div>
  8465. <div v-else class="isChoose"></div>
  8466. </div>
  8467. </div>
  8468. <div
  8469. class="tool"
  8470. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8471. @click="addTools2(50)"
  8472. >
  8473. <div class="whiteBIcon">
  8474. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8475. <div style="margin: 5px 0">批量上传</div>
  8476. </div>
  8477. <div class="check">
  8478. <div
  8479. v-if="checktoolArray.indexOf(50) == -1"
  8480. class="noChoose"
  8481. ></div>
  8482. <div v-else class="isChoose"></div>
  8483. </div>
  8484. </div>
  8485. </div>
  8486. <div class="toolSort" v-if="toolType == 3">
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8490. @click="addTools2(18)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img
  8494. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8495. alt
  8496. />
  8497. <div style="margin: 5px 0">训练平台</div>
  8498. </div>
  8499. <div class="check">
  8500. <div
  8501. v-if="checktoolArray.indexOf(18) == -1"
  8502. class="noChoose"
  8503. ></div>
  8504. <div v-else class="isChoose"></div>
  8505. </div>
  8506. </div>
  8507. <div
  8508. class="tool"
  8509. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8510. @click="addTools2(21)"
  8511. >
  8512. <div class="whiteBIcon">
  8513. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8514. <div style="margin: 5px 0">AIoT Blockly</div>
  8515. </div>
  8516. <div class="check">
  8517. <div
  8518. v-if="checktoolArray.indexOf(21) == -1"
  8519. class="noChoose"
  8520. ></div>
  8521. <div v-else class="isChoose"></div>
  8522. </div>
  8523. </div>
  8524. <div
  8525. class="tool"
  8526. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8527. @click="addTools2(23)"
  8528. >
  8529. <div class="whiteBIcon">
  8530. <img
  8531. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8532. alt
  8533. />
  8534. <div style="margin: 5px 0">AI Python</div>
  8535. </div>
  8536. <div class="check">
  8537. <div
  8538. v-if="checktoolArray.indexOf(23) == -1"
  8539. class="noChoose"
  8540. ></div>
  8541. <div v-else class="isChoose"></div>
  8542. </div>
  8543. </div>
  8544. <div
  8545. class="tool"
  8546. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8547. @click="addTools2(24)"
  8548. >
  8549. <div class="whiteBIcon">
  8550. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8551. <div style="margin: 5px 0">AI Blockly</div>
  8552. </div>
  8553. <div class="check">
  8554. <div
  8555. v-if="checktoolArray.indexOf(24) == -1"
  8556. class="noChoose"
  8557. ></div>
  8558. <div v-else class="isChoose"></div>
  8559. </div>
  8560. </div>
  8561. <div
  8562. class="tool"
  8563. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8564. @click="addTools2(32)"
  8565. >
  8566. <div class="whiteBIcon">
  8567. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8568. <div style="margin: 5px 0">源码编辑</div>
  8569. </div>
  8570. <div class="check">
  8571. <div
  8572. v-if="checktoolArray.indexOf(32) == -1"
  8573. class="noChoose"
  8574. ></div>
  8575. <div v-else class="isChoose"></div>
  8576. </div>
  8577. </div>
  8578. <div
  8579. class="tool"
  8580. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8581. @click="addTools2(57)"
  8582. >
  8583. <div class="whiteBIcon">
  8584. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8585. <div style="margin: 5px 0">CocoPi</div>
  8586. </div>
  8587. <div class="check">
  8588. <div
  8589. v-if="checktoolArray.indexOf(57) == -1"
  8590. class="noChoose"
  8591. ></div>
  8592. <div v-else class="isChoose"></div>
  8593. </div>
  8594. </div>
  8595. <div
  8596. class="tool"
  8597. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8598. @click="addTools2(63)"
  8599. >
  8600. <div class="whiteBIcon">
  8601. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8602. <div style="margin: 5px 0">海龟编程</div>
  8603. </div>
  8604. <div class="check">
  8605. <div
  8606. v-if="checktoolArray.indexOf(63) == -1"
  8607. class="noChoose"
  8608. ></div>
  8609. <div v-else class="isChoose"></div>
  8610. </div>
  8611. </div>
  8612. <div
  8613. class="tool"
  8614. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8615. @click="addTools2(71)"
  8616. >
  8617. <div class="whiteBIcon">
  8618. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8619. <div style="margin: 5px 0">AI智能体</div>
  8620. </div>
  8621. <div class="check">
  8622. <div
  8623. v-if="checktoolArray.indexOf(71) == -1"
  8624. class="noChoose"
  8625. ></div>
  8626. <div v-else class="isChoose"></div>
  8627. </div>
  8628. </div>
  8629. </div>
  8630. <div class="toolSort" v-if="toolType == 7">
  8631. <div
  8632. class="tool"
  8633. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8634. @click="addTools2(40)"
  8635. >
  8636. <div class="whiteBIcon">
  8637. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8638. <div style="margin: 5px 0">个人评价</div>
  8639. </div>
  8640. <div class="check">
  8641. <div
  8642. v-if="checktoolArray.indexOf(40) == -1"
  8643. class="noChoose"
  8644. ></div>
  8645. <div v-else class="isChoose"></div>
  8646. </div>
  8647. </div>
  8648. </div>
  8649. <div class="toolSort" v-if="toolType == 5">
  8650. <div
  8651. class="tool"
  8652. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8653. @click="addTools2(28)"
  8654. >
  8655. <div class="whiteBIcon">
  8656. <img
  8657. src="../../assets/icon/secondToolList/translation.png"
  8658. alt
  8659. />
  8660. <div style="margin: 5px 0">翻译</div>
  8661. </div>
  8662. <div class="check">
  8663. <div
  8664. v-if="checktoolArray.indexOf(28) == -1"
  8665. class="noChoose"
  8666. ></div>
  8667. <div v-else class="isChoose"></div>
  8668. </div>
  8669. </div>
  8670. <div
  8671. class="tool"
  8672. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8673. @click="addTools2(31)"
  8674. >
  8675. <div class="whiteBIcon">
  8676. <img
  8677. src="../../assets/icon/secondToolList/networkPanel.png"
  8678. alt
  8679. />
  8680. <div style="margin: 5px 0">数字画板</div>
  8681. </div>
  8682. <div class="check">
  8683. <div
  8684. v-if="checktoolArray.indexOf(31) == -1"
  8685. class="noChoose"
  8686. ></div>
  8687. <div v-else class="isChoose"></div>
  8688. </div>
  8689. </div>
  8690. <div
  8691. class="tool"
  8692. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8693. @click="addTools2(39)"
  8694. >
  8695. <div class="whiteBIcon">
  8696. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8697. <div style="margin: 5px 0">GeoGebra</div>
  8698. </div>
  8699. <div class="check">
  8700. <div
  8701. v-if="checktoolArray.indexOf(39) == -1"
  8702. class="noChoose"
  8703. ></div>
  8704. <div v-else class="isChoose"></div>
  8705. </div>
  8706. </div>
  8707. <div
  8708. class="tool"
  8709. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8710. @click="addTools2(66)"
  8711. >
  8712. <div class="whiteBIcon">
  8713. <img
  8714. src="../../assets/icon/secondToolList/formulaEdi.png"
  8715. alt
  8716. />
  8717. <div style="margin: 5px 0">公式编辑</div>
  8718. </div>
  8719. <div class="check">
  8720. <div
  8721. v-if="checktoolArray.indexOf(66) == -1"
  8722. class="noChoose"
  8723. ></div>
  8724. <div v-else class="isChoose"></div>
  8725. </div>
  8726. </div>
  8727. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8728. <div class="whiteBIcon" @click="addTools2(67)">
  8729. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8730. <div style="margin: 5px 0">分子结构</div>
  8731. </div>
  8732. <div class="check" @click="addTools2(67)">
  8733. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div> -->
  8737. <div
  8738. class="tool"
  8739. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8740. @click="addTools2(68)"
  8741. >
  8742. <div class="whiteBIcon">
  8743. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8744. <div style="margin: 5px 0">时间轴</div>
  8745. </div>
  8746. <div class="check">
  8747. <div
  8748. v-if="checktoolArray.indexOf(68) == -1"
  8749. class="noChoose"
  8750. ></div>
  8751. <div v-else class="isChoose"></div>
  8752. </div>
  8753. </div>
  8754. <!-- <div
  8755. class="tool"
  8756. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8757. @click="addTools2(69)"
  8758. >
  8759. <div class="whiteBIcon">
  8760. <img src="../../assets/icon/secondToolList/english.png" alt />
  8761. <div style="margin: 5px 0">英语写作</div>
  8762. </div>
  8763. <div class="check">
  8764. <div
  8765. v-if="checktoolArray.indexOf(69) == -1"
  8766. class="noChoose"
  8767. ></div>
  8768. <div v-else class="isChoose"></div>
  8769. </div>
  8770. </div> -->
  8771. </div>
  8772. <div class="toolSort" v-if="toolType == 4">
  8773. <div
  8774. class="tool"
  8775. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8776. @click="addTools2(26)"
  8777. >
  8778. <div class="whiteBIcon">
  8779. <img
  8780. src="../../assets/icon/thirdToolList/courseDesign.png"
  8781. alt
  8782. />
  8783. <div style="margin: 5px 0">课程设计</div>
  8784. </div>
  8785. <div class="check">
  8786. <div
  8787. v-if="checktoolArray.indexOf(26) == -1"
  8788. class="noChoose"
  8789. ></div>
  8790. <div v-else class="isChoose"></div>
  8791. </div>
  8792. </div>
  8793. <div
  8794. class="tool"
  8795. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8796. @click="addTools2(25)"
  8797. >
  8798. <div class="whiteBIcon">
  8799. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8800. <div style="margin: 5px 0">目标管理</div>
  8801. </div>
  8802. <div class="check">
  8803. <div
  8804. v-if="checktoolArray.indexOf(25) == -1"
  8805. class="noChoose"
  8806. ></div>
  8807. <div v-else class="isChoose"></div>
  8808. </div>
  8809. </div>
  8810. </div>
  8811. </div>
  8812. </div>
  8813. <span
  8814. slot="footer"
  8815. class="dialog-footer"
  8816. style="display: block; text-align: center; padding: 0 0 10px 0"
  8817. >
  8818. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8819. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8820. </span>
  8821. </div>
  8822. <div
  8823. v-if="replyDialogVisible == true"
  8824. class="addDialogCss"
  8825. v-el-drag-dialog
  8826. >
  8827. <div class="pzTop">
  8828. <div class="teacherPz">
  8829. <div class="teacherPzImg">
  8830. <img src="../../assets/icon/teacherPz.png" alt="" />
  8831. </div>
  8832. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8833. </div>
  8834. <div @click="replyDialogVisible = false">
  8835. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8836. </div>
  8837. </div>
  8838. <div class="addPzBox">
  8839. <!-- <div class="addPzCheck">
  8840. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8841. >文本</span
  8842. >
  8843. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8844. >音频</span
  8845. >
  8846. </div> -->
  8847. <div style="height: calc(100% - 50px)">
  8848. <editor-bar
  8849. class="binfo_input pzConText"
  8850. style="width: 100% !important; margin: 0 auto"
  8851. placeholder="请输入回复描述"
  8852. v-model="reply"
  8853. @change="change"
  8854. ></editor-bar>
  8855. </div>
  8856. <div class="addTextCss" @click="addHf">确定</div>
  8857. </div>
  8858. </div>
  8859. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8860. <div class="pzTop">
  8861. <div class="teacherPz">
  8862. <div class="teacherPzImg">
  8863. <img src="../../assets/icon/teacherPz.png" alt="" />
  8864. </div>
  8865. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8866. </div>
  8867. <div @click="addPzDialog = false">
  8868. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8869. </div>
  8870. </div>
  8871. <div class="addPzBox">
  8872. <div class="addPzCheck">
  8873. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8874. >文本</span
  8875. >
  8876. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8877. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8878. >音频</span
  8879. >
  8880. </div>
  8881. <div style="height: calc(100% - 95px)">
  8882. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8883. v-if="pzType == 1"></textarea> -->
  8884. <editor-bar
  8885. class="binfo_input pzConText"
  8886. style="width: 100% !important"
  8887. placeholder="请输入任务描述"
  8888. v-model="pzConText"
  8889. @change="change"
  8890. v-if="pzType == 1"
  8891. ></editor-bar>
  8892. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8893. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8894. <div @click="addImg($event)">
  8895. <el-button type="primary">上传图片</el-button>
  8896. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8897. @change="beforeUpload1($event, 4)" />
  8898. </div>
  8899. </div> -->
  8900. </div>
  8901. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8902. 确定
  8903. </div>
  8904. </div>
  8905. </div>
  8906. <div v-if="proVisible" class="mask">
  8907. <div class="progressBox">
  8908. <!-- <div id="closePro" class="closeCss">
  8909. <img src="../../assets/icon/close.png" alt />
  8910. </div> -->
  8911. <div class="lbox">
  8912. <img src="../../assets/loading.gif" />上传中,请稍后
  8913. </div>
  8914. <div style="margin-bottom: 10px">
  8915. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8916. </div>
  8917. <el-progress
  8918. :text-inside="true"
  8919. :stroke-width="20"
  8920. :percentage="progress"
  8921. style="width: 80%"
  8922. ></el-progress>
  8923. </div>
  8924. </div>
  8925. <div v-if="proVisible2" class="mask">
  8926. <div class="progressBox">
  8927. <div class="lbox">
  8928. <img src="../../assets/loading.gif" />上传中,请稍后
  8929. </div>
  8930. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8931. </div>
  8932. </div>
  8933. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8934. <img width="100%" :src="dialogImageUrl" alt />
  8935. </el-dialog>
  8936. <el-dialog
  8937. :title="noteName != '' ? noteName : '查看问卷'"
  8938. :visible.sync="dialogVisible5"
  8939. :append-to-body="true"
  8940. width="1000px"
  8941. :before-close="handleClose"
  8942. class="dialog_diy dialog_diy3"
  8943. >
  8944. <div>
  8945. <div
  8946. class="a_add_title"
  8947. style="
  8948. display: flex;
  8949. flex-direction: row;
  8950. align-items: center;
  8951. justify-content: center;
  8952. "
  8953. >
  8954. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8955. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8956. </div>
  8957. <div class="a_addBox">
  8958. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8959. 题目内容
  8960. </div>
  8961. <div
  8962. class="a_add_box"
  8963. v-for="(item1, index1) in askJson.askCount"
  8964. :key="index1"
  8965. >
  8966. <div class="a_add_head">
  8967. <div style="display: flex">
  8968. <span class="askIndex"> {{ index1 + 1 }}</span>
  8969. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8970. </div>
  8971. <img
  8972. v-if="askJson.askJson[index1].img"
  8973. :src="askJson.askJson[index1].img"
  8974. style="height: 300px; margin-top: 10px; max-width: 100%"
  8975. />
  8976. </div>
  8977. <div class="a_add_body">
  8978. <div class="a_add_input">
  8979. <el-radio-group
  8980. v-model="radio[index1]"
  8981. v-if="
  8982. askJson.askJson[index1].type == '1' ||
  8983. !askJson.askJson[index1].type
  8984. "
  8985. >
  8986. <el-radio
  8987. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8988. .checkList"
  8989. :key="checkIndex"
  8990. :label="checkIndex"
  8991. :disabled="isAnswer"
  8992. class="redioStyle"
  8993. ><span v-html="item2"></span
  8994. ></el-radio>
  8995. </el-radio-group>
  8996. <el-checkbox-group
  8997. v-model="radio[index1]"
  8998. v-if="askJson.askJson[index1].type == '2'"
  8999. >
  9000. <el-checkbox
  9001. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9002. .checkList"
  9003. :key="checkIndex1"
  9004. :label="checkIndex1"
  9005. :disabled="isAnswer"
  9006. class="redioStyle"
  9007. ><span v-html="item2"></span>
  9008. </el-checkbox>
  9009. </el-checkbox-group>
  9010. </div>
  9011. </div>
  9012. </div>
  9013. </div>
  9014. </div>
  9015. <span slot="footer" class="dialog-footer">
  9016. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9017. >取 消</el-button
  9018. >
  9019. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9020. >确 定</el-button
  9021. >
  9022. </span>
  9023. </el-dialog>
  9024. <el-dialog
  9025. :title="noteName != '' ? noteName : '查看问卷'"
  9026. :visible.sync="dialogVisible5Teacher"
  9027. :append-to-body="true"
  9028. width="1000px"
  9029. :before-close="handleClose"
  9030. class="dialog_diy dialog_diy3"
  9031. >
  9032. <div>
  9033. <div class="w_name">
  9034. 学生姓名:<span>{{ sStudent.student }}</span>
  9035. </div>
  9036. <div
  9037. class="a_add_title"
  9038. style="
  9039. display: flex;
  9040. flex-direction: row;
  9041. align-items: center;
  9042. justify-content: center;
  9043. "
  9044. >
  9045. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9046. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9047. </div>
  9048. <div class="a_addBox">
  9049. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9050. 题目内容
  9051. </div>
  9052. <div
  9053. class="a_add_box"
  9054. v-for="(item1, index1) in askJson.askCount"
  9055. :key="index1"
  9056. >
  9057. <div class="a_add_head">
  9058. <div style="display: flex">
  9059. <span class="askIndex">{{ index1 + 1 }}</span>
  9060. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9061. </div>
  9062. <img
  9063. v-if="askJson.askJson[index1].img"
  9064. :src="askJson.askJson[index1].img"
  9065. style="height: 300px; margin-top: 10px; max-width: 100%"
  9066. />
  9067. </div>
  9068. <div class="a_add_body">
  9069. <div class="a_add_input">
  9070. <el-radio-group
  9071. v-model="radio[index1]"
  9072. v-if="
  9073. askJson.askJson[index1].type == '1' ||
  9074. !askJson.askJson[index1].type
  9075. "
  9076. >
  9077. <el-radio
  9078. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9079. .checkList"
  9080. :key="checkIndex"
  9081. :label="checkIndex"
  9082. :disabled="isAnswer"
  9083. class="redioStyle"
  9084. ><span v-html="item2"></span
  9085. ></el-radio>
  9086. </el-radio-group>
  9087. <el-checkbox-group
  9088. v-model="radio[index1]"
  9089. v-if="askJson.askJson[index1].type == '2'"
  9090. >
  9091. <el-checkbox
  9092. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9093. .checkList"
  9094. :key="checkIndex1"
  9095. :label="checkIndex1"
  9096. :disabled="isAnswer"
  9097. class="redioStyle"
  9098. ><span v-html="item2"></span>
  9099. </el-checkbox>
  9100. </el-checkbox-group>
  9101. </div>
  9102. </div>
  9103. </div>
  9104. </div>
  9105. </div>
  9106. <span slot="footer" class="dialog-footer">
  9107. <el-button
  9108. @click="dialogVisible5Teacher = false"
  9109. v-show="noteName == ''"
  9110. >取 消</el-button
  9111. >
  9112. <el-button
  9113. type="primary"
  9114. @click="addStudentAskTeacher"
  9115. v-show="noteName == ''"
  9116. >确 定</el-button
  9117. >
  9118. </span>
  9119. </el-dialog>
  9120. <el-dialog
  9121. :title="noteName != '' ? noteName : '查看选择题'"
  9122. :visible.sync="dialogVisibleChoice"
  9123. :append-to-body="true"
  9124. width="1000px"
  9125. :before-close="handleClose"
  9126. class="dialog_diy dialog_diy3"
  9127. >
  9128. <div>
  9129. <!-- <div class="a_add_title" style="
  9130. display: flex;
  9131. flex-direction: row;
  9132. align-items: center;
  9133. justify-content: center;
  9134. ">
  9135. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9136. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9137. </div> -->
  9138. <div class="a_addBox">
  9139. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9140. 题目内容
  9141. </div>
  9142. <div
  9143. class="a_add_box"
  9144. v-for="(item1, index1) in testJson.testCount"
  9145. :key="index1"
  9146. >
  9147. <div class="a_add_head">
  9148. <div style="display: flex">
  9149. <span class="askIndex">{{ index1 + 1 }}</span>
  9150. <div
  9151. v-if="testJson.testJson[index1].type == '1'"
  9152. style="margin-right: 5px; min-width: 70px"
  9153. >
  9154. (单选题)
  9155. </div>
  9156. <div
  9157. v-if="testJson.testJson[index1].type == '2'"
  9158. style="margin-right: 5px; min-width: 70px"
  9159. >
  9160. (多选题)
  9161. </div>
  9162. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9163. </div>
  9164. <img
  9165. v-if="testJson.testJson[index1].img"
  9166. :src="testJson.testJson[index1].img"
  9167. style="height: 300px; margin-top: 10px; max-width: 100%"
  9168. />
  9169. </div>
  9170. <div
  9171. class="timuImgBox"
  9172. v-if="
  9173. testJson.testJson[index1].timuList &&
  9174. testJson.testJson[index1].timuList.length
  9175. "
  9176. >
  9177. <div
  9178. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9179. :key="tIndex"
  9180. class="timuImg"
  9181. @click.stop="previewImg(timg.src)"
  9182. >
  9183. <img :src="timg.src" alt="" />
  9184. </div>
  9185. </div>
  9186. <div class="a_add_body">
  9187. <div class="a_add_input">
  9188. <el-radio-group
  9189. v-model="radio[index1]"
  9190. v-if="testJson.testJson[index1].type == '1'"
  9191. >
  9192. <div class="radioBox">
  9193. <el-radio
  9194. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9195. .checkList"
  9196. :key="checkIndex"
  9197. :label="checkIndex"
  9198. :disabled="isAnswer"
  9199. class="redioStyle"
  9200. >
  9201. <div
  9202. style="margin-right: 10px"
  9203. v-if="item2 && item2.imgType && item2.imgType == 1"
  9204. >
  9205. <div class="inImg" @click.stop="previewImg(item2.src)">
  9206. <img :src="item2.src" alt="" />
  9207. </div>
  9208. </div>
  9209. <span v-else v-html="item2"></span>
  9210. </el-radio>
  9211. </div>
  9212. </el-radio-group>
  9213. <el-checkbox-group
  9214. v-model="radio[index1]"
  9215. v-if="testJson.testJson[index1].type == '2'"
  9216. >
  9217. <div class="radioBox">
  9218. <el-checkbox
  9219. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9220. .checkList"
  9221. :key="checkIndex"
  9222. :label="checkIndex"
  9223. :disabled="isAnswer"
  9224. class="redioStyle"
  9225. >
  9226. <div
  9227. style="margin-right: 10px"
  9228. v-if="item2 && item2.imgType && item2.imgType == 1"
  9229. >
  9230. <div class="inImg" @click.stop="previewImg(item2.src)">
  9231. <img :src="item2.src" alt="" />
  9232. </div>
  9233. </div>
  9234. <span v-else v-html="item2"></span>
  9235. </el-checkbox>
  9236. </div>
  9237. </el-checkbox-group>
  9238. </div>
  9239. </div>
  9240. </div>
  9241. </div>
  9242. </div>
  9243. <span slot="footer" class="dialog-footer">
  9244. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9245. >取 消</el-button
  9246. >
  9247. <el-button
  9248. type="primary"
  9249. @click="addStudentTest"
  9250. v-show="noteName == ''"
  9251. >确 定</el-button
  9252. >
  9253. </span>
  9254. </el-dialog>
  9255. <el-dialog
  9256. :title="noteName != '' ? noteName : '查看选择题'"
  9257. :visible.sync="dialogVisibleChoiceTeacher"
  9258. :append-to-body="true"
  9259. width="1000px"
  9260. :before-close="handleClose"
  9261. class="dialog_diy dialog_diy3"
  9262. >
  9263. <div>
  9264. <div class="w_name">
  9265. 学生姓名:<span>{{ sStudent.student }}</span>
  9266. </div>
  9267. <div class="a_addBox">
  9268. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9269. 题目内容
  9270. </div>
  9271. <div
  9272. class="a_add_box"
  9273. v-for="(item1, index1) in testJson.testCount"
  9274. :key="index1"
  9275. >
  9276. <div class="a_add_head">
  9277. <div style="display: flex">
  9278. <span class="askIndex">{{ index1 + 1 }}</span>
  9279. <div
  9280. v-if="testJson.testJson[index1].type == '1'"
  9281. style="margin-right: 5px; min-width: 70px"
  9282. >
  9283. (单选题)
  9284. </div>
  9285. <div
  9286. v-if="testJson.testJson[index1].type == '2'"
  9287. style="margin-right: 5px; min-width: 70px"
  9288. >
  9289. (多选题)
  9290. </div>
  9291. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9292. </div>
  9293. <img
  9294. v-if="testJson.testJson[index1].img"
  9295. :src="testJson.testJson[index1].img"
  9296. style="height: 300px; margin-top: 10px; max-width: 100%"
  9297. />
  9298. </div>
  9299. <div
  9300. class="timuImgBox"
  9301. v-if="
  9302. testJson.testJson[index1].timuList &&
  9303. testJson.testJson[index1].timuList.length
  9304. "
  9305. >
  9306. <div
  9307. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9308. :key="tIndex"
  9309. class="timuImg"
  9310. @click.stop="previewImg(timg.src)"
  9311. >
  9312. <img :src="timg.src" alt="" />
  9313. </div>
  9314. </div>
  9315. <div class="a_add_body">
  9316. <div class="a_add_input">
  9317. <el-radio-group
  9318. v-model="radio[index1]"
  9319. v-if="testJson.testJson[index1].type == '1'"
  9320. >
  9321. <div class="radioBox">
  9322. <el-radio
  9323. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9324. .checkList"
  9325. :key="checkIndex"
  9326. :label="checkIndex"
  9327. :disabled="isAnswer"
  9328. class="redioStyle"
  9329. >
  9330. <div
  9331. style="margin-right: 10px"
  9332. v-if="item2 && item2.imgType && item2.imgType == 1"
  9333. >
  9334. <div class="inImg" @click.stop="previewImg(item2.src)">
  9335. <img :src="item2.src" alt="" />
  9336. </div>
  9337. </div>
  9338. <span v-else v-html="item2"></span>
  9339. </el-radio>
  9340. </div>
  9341. </el-radio-group>
  9342. <el-checkbox-group
  9343. v-model="radio[index1]"
  9344. v-if="testJson.testJson[index1].type == '2'"
  9345. >
  9346. <div class="radioBox">
  9347. <el-checkbox
  9348. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9349. .checkList"
  9350. :key="checkIndex"
  9351. :label="checkIndex"
  9352. :disabled="isAnswer"
  9353. class="redioStyle"
  9354. >
  9355. <div
  9356. style="margin-right: 10px"
  9357. v-if="item2 && item2.imgType && item2.imgType == 1"
  9358. >
  9359. <div class="inImg" @click.stop="previewImg(item2.src)">
  9360. <img :src="item2.src" alt="" />
  9361. </div>
  9362. </div>
  9363. <span v-else v-html="item2"></span>
  9364. </el-checkbox>
  9365. </div>
  9366. </el-checkbox-group>
  9367. </div>
  9368. </div>
  9369. </div>
  9370. </div>
  9371. </div>
  9372. <span slot="footer" class="dialog-footer">
  9373. <el-button
  9374. @click="dialogVisibleChoiceTeacher = false"
  9375. v-show="noteName == ''"
  9376. >取 消</el-button
  9377. >
  9378. <el-button
  9379. type="primary"
  9380. @click="addStudentTestTeacher"
  9381. v-show="noteName == ''"
  9382. >确 定</el-button
  9383. >
  9384. </span>
  9385. </el-dialog>
  9386. <el-dialog
  9387. title="查看富文本"
  9388. :visible.sync="dialogVisible1"
  9389. :append-to-body="true"
  9390. width="500px"
  9391. :before-close="handleClose"
  9392. class="dialog_diy textCss"
  9393. >
  9394. <el-form style="font-size: 20px">
  9395. <el-form-item label="文本标题" class="textTitle">
  9396. <div style="font-size: 20px">{{ text.name }}</div>
  9397. </el-form-item>
  9398. <div>富文本内容</div>
  9399. <div
  9400. v-html="text.url"
  9401. style="font-size: 18px; padding: 40px 0 0 0"
  9402. ></div>
  9403. </el-form>
  9404. <span slot="footer" class="dialog-footer">
  9405. <el-button type="primary" @click="dialogVisible1 = false"
  9406. >确定</el-button
  9407. >
  9408. </span>
  9409. </el-dialog>
  9410. <el-dialog
  9411. title="文件预览"
  9412. :visible.sync="dialogVisible3"
  9413. width="50%"
  9414. :before-close="handleClose"
  9415. class="dialog_diy"
  9416. :class="{ fullStyle: full }"
  9417. >
  9418. <div slot="title" class="header-title">
  9419. <div style="color: #fff">文件预览</div>
  9420. <div style="position: absolute; top: 19px; right: 50px">
  9421. <img
  9422. src="../../assets/full.png"
  9423. style="height: 16px; cursor: pointer"
  9424. alt=""
  9425. @click="fullTools"
  9426. />
  9427. </div>
  9428. </div>
  9429. <pdf
  9430. v-if="showPDF"
  9431. :pdfUrl="pptImgUrl"
  9432. style="width: 100%; height: 520px; overflow: auto"
  9433. :class="{ fullStyle: full }"
  9434. ></pdf>
  9435. <iframe
  9436. v-else
  9437. :src="pptImgUrl"
  9438. frameborder="0"
  9439. width="100%"
  9440. height="600"
  9441. :class="{ fullStyle: full }"
  9442. ></iframe>
  9443. </el-dialog>
  9444. <el-dialog
  9445. title="文件预览"
  9446. :visible.sync="dialogVisible6"
  9447. width="50%"
  9448. :before-close="handleClose"
  9449. class="dialog_diy"
  9450. >
  9451. <iframe
  9452. :src="pptImgUrl1"
  9453. frameborder="0"
  9454. width="100%"
  9455. height="600"
  9456. ></iframe>
  9457. </el-dialog>
  9458. <el-dialog
  9459. title="提示"
  9460. :visible.sync="dialogVisible4"
  9461. :append-to-body="true"
  9462. width="800px"
  9463. :before-close="handleClose"
  9464. class="dialog_diy notice"
  9465. >
  9466. <div>此功能暂未开放!</div>
  9467. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9468. </el-dialog>
  9469. <el-dialog
  9470. title="问答"
  9471. :visible.sync="answerDialogVisible"
  9472. :append-to-body="true"
  9473. width="800px"
  9474. :before-close="handleClose"
  9475. class="dialog_diy"
  9476. >
  9477. <div>
  9478. <div
  9479. style="
  9480. display: flex;
  9481. flex-wrap: nowrap;
  9482. flex-direction: column;
  9483. position: relative;
  9484. "
  9485. >
  9486. <div class="queTop" style="padding: 20px 0 20px 0">
  9487. <div class="question">
  9488. <img src="../../assets/icon/question.png" alt />
  9489. </div>
  9490. <div class="queTitle">
  9491. <div style="width: 90px; min-width: 90px">提问:</div>
  9492. <div>{{ answerQ }}</div>
  9493. </div>
  9494. </div>
  9495. <div class="ediBottom">
  9496. <textarea
  9497. rows="6"
  9498. class="binfo_input"
  9499. cols
  9500. style="width: 95%; height: 120px"
  9501. v-model="questionAnswer"
  9502. ></textarea>
  9503. </div>
  9504. </div>
  9505. </div>
  9506. <div slot="footer">
  9507. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9508. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9509. </div>
  9510. </el-dialog>
  9511. <el-dialog
  9512. title="问答"
  9513. :visible.sync="answerDialogVisibleTeacher"
  9514. :append-to-body="true"
  9515. width="800px"
  9516. :before-close="handleClose"
  9517. class="dialog_diy"
  9518. >
  9519. <div>
  9520. <div class="w_name">
  9521. 学生姓名:<span>{{ sStudent.student }}</span>
  9522. </div>
  9523. <div
  9524. style="
  9525. display: flex;
  9526. flex-wrap: nowrap;
  9527. flex-direction: column;
  9528. position: relative;
  9529. "
  9530. >
  9531. <div class="queTop" style="padding: 20px 0 20px 0">
  9532. <div class="question">
  9533. <img src="../../assets/icon/question.png" alt />
  9534. </div>
  9535. <div class="queTitle">
  9536. <div style="width: 90px; min-width: 90px">提问:</div>
  9537. <div>{{ answerQ }}</div>
  9538. </div>
  9539. </div>
  9540. <div class="ediBottom">
  9541. <textarea
  9542. rows="6"
  9543. class="binfo_input"
  9544. cols
  9545. style="width: 95%; height: 120px"
  9546. v-model="questionAnswer"
  9547. ></textarea>
  9548. </div>
  9549. </div>
  9550. </div>
  9551. <div slot="footer">
  9552. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9553. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9554. </div>
  9555. </el-dialog>
  9556. <el-dialog
  9557. title="倒计时"
  9558. :visible.sync="timeDialogVisible"
  9559. :append-to-body="true"
  9560. width="800px"
  9561. :before-close="handleClose"
  9562. class="dialog_diy"
  9563. >
  9564. <div>
  9565. <div style="margin-bottom: 20px; color: #999">
  9566. 提示:点击“+”或“-”修改倒计时时长。
  9567. </div>
  9568. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9569. </div>
  9570. <div slot="footer">
  9571. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9572. </div>
  9573. </el-dialog>
  9574. <el-dialog
  9575. title="权限设置"
  9576. :visible.sync="juriVisible"
  9577. :append-to-body="true"
  9578. width="400px"
  9579. :before-close="handleClose"
  9580. class="dialog_diy"
  9581. >
  9582. <div>
  9583. <div class="open_box">
  9584. <div class="switch_box">
  9585. <span>允许学生查看所有作业</span>
  9586. <el-switch
  9587. v-model="sIsOpen"
  9588. active-text=""
  9589. class="switchCss"
  9590. @change="updateSLook"
  9591. ></el-switch>
  9592. </div>
  9593. <div
  9594. class="switch_box"
  9595. v-if="
  9596. courseDetail.userid == userid ||
  9597. (courseDetail.course_teacher &&
  9598. courseDetail.course_teacher.indexOf(userid) != -1)
  9599. "
  9600. >
  9601. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9602. <span>禁止学生查看所有阶段</span>
  9603. <el-switch
  9604. v-model="IsLookOpen"
  9605. active-text=""
  9606. class="switchCss"
  9607. @change="updateLookOpen"
  9608. ></el-switch>
  9609. </div>
  9610. <div class="switch_box" v-if="courseDetail.userid == userid">
  9611. <span>开启跟随模式</span>
  9612. <el-switch
  9613. v-model="IsFollow"
  9614. active-text=""
  9615. class="switchCss"
  9616. @change="updateFollow"
  9617. ></el-switch>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. <div slot="footer">
  9622. <el-button
  9623. style="background: #409efe; color: #fff"
  9624. @click="juriVisible = false"
  9625. >关 闭</el-button
  9626. >
  9627. </div>
  9628. </el-dialog>
  9629. <el-dialog
  9630. title="查看视频"
  9631. :visible.sync="videoVisible"
  9632. :append-to-body="true"
  9633. width="1000px"
  9634. :before-close="handleClose"
  9635. class="dialog_diy1"
  9636. >
  9637. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9638. <video-player
  9639. class="video-player vjs-custom-skin"
  9640. :playsinline="true"
  9641. :options="videoDetail"
  9642. @play="onPlayerPlay($event)"
  9643. style="width: 100%; height: 100%"
  9644. ></video-player>
  9645. </div>
  9646. <div slot="footer">
  9647. <el-button
  9648. style="background: #409efe; color: #fff"
  9649. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9650. >
  9651. 关 闭</el-button
  9652. >
  9653. </div>
  9654. </el-dialog>
  9655. <el-dialog
  9656. title="查看详情"
  9657. :visible.sync="commentDialogVisible"
  9658. :append-to-body="true"
  9659. width="800px"
  9660. :before-close="handleClose"
  9661. class="dialog_diy"
  9662. >
  9663. <div class="commentTop">
  9664. <div class="studentDetail">
  9665. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9666. <div class="nameAndTime">
  9667. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9668. <div>{{ commentDetail.time }}</div>
  9669. </div>
  9670. <div
  9671. class="returnBtn"
  9672. style="margin-left: auto; width: 80px"
  9673. v-if="
  9674. commentDetail.works &&
  9675. commentDetail.type == 0 &&
  9676. (tType == 1 || tType == 4)
  9677. "
  9678. @click="
  9679. showPicturePaint(
  9680. commentDetail.img ? commentDetail.img : commentDetail.works
  9681. )
  9682. "
  9683. >
  9684. 教师批注
  9685. </div>
  9686. </div>
  9687. <div
  9688. class="worksAnswer"
  9689. v-if="commentDetail.works && commentDetail.type == 2"
  9690. >
  9691. {{ JSON.parse(commentDetail.works)[0].answer }}
  9692. </div>
  9693. <div
  9694. class="worksAnswer"
  9695. v-if="commentDetail.works && commentDetail.type == 1"
  9696. >
  9697. <img
  9698. src="../../assets/teacherWork.png"
  9699. v-if="commentDetail.ateacher"
  9700. class="w_teachert"
  9701. />
  9702. <pdf
  9703. v-if="showPDF"
  9704. :pdfUrl="pptImgUrl"
  9705. style="width: 100%; height: 520px; overflow: auto"
  9706. :class="{ fullStyle: full }"
  9707. ></pdf>
  9708. <iframe
  9709. v-else
  9710. :src="pptImgUrl"
  9711. frameborder="0"
  9712. width="100%"
  9713. height="600"
  9714. :class="{ fullStyle: full }"
  9715. ></iframe>
  9716. </div>
  9717. <div
  9718. class="worksAnswer"
  9719. v-if="commentDetail.works && commentDetail.type == 0"
  9720. >
  9721. <img
  9722. src="../../assets/teacherWork.png"
  9723. v-if="commentDetail.ateacher"
  9724. class="w_teachert"
  9725. style="right: 105px"
  9726. />
  9727. <img
  9728. :src="commentDetail.works"
  9729. alt=""
  9730. @click="previewImg(commentDetail.works)"
  9731. />
  9732. </div>
  9733. <div
  9734. class="worksAnswer"
  9735. v-if="commentDetail.works && commentDetail.type == 3"
  9736. >
  9737. <img
  9738. src="../../assets/teacherWork.png"
  9739. v-if="commentDetail.ateacher"
  9740. class="w_teachert"
  9741. />
  9742. <video-player
  9743. class="video-player vjs-custom-skin"
  9744. :playsinline="true"
  9745. :options="videoDetail"
  9746. @play="onPlayerPlay($event)"
  9747. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9748. ></video-player>
  9749. </div>
  9750. <div
  9751. class="worksAnswer"
  9752. v-if="commentDetail.works && commentDetail.type == 10"
  9753. >
  9754. <div class="cont" v-html="commentDetail.works.text"></div>
  9755. </div>
  9756. <div
  9757. class="worksAnswer codeFileBox"
  9758. v-if="commentDetail.works && commentDetail.type == 12"
  9759. @click="downloadFile(commentDetail.works)"
  9760. >
  9761. <img src="../../assets/icon/codeFile.png" />
  9762. <div>点击下载文件</div>
  9763. </div>
  9764. <div
  9765. class="worksAnswer codeFileBox"
  9766. v-if="commentDetail.works && commentDetail.type == 15"
  9767. @click="
  9768. openCocoPi(
  9769. 57,
  9770. commentIndexJson.toolIndex,
  9771. commentDetail.userid,
  9772. commentDetail.sName
  9773. )
  9774. "
  9775. >
  9776. <img src="../../assets/icon/codeFile.png" />
  9777. <div>点击打开CocoPi</div>
  9778. </div>
  9779. <div
  9780. class="worksAnswer"
  9781. v-if="commentDetail.works && commentDetail.type == 13"
  9782. >
  9783. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9784. </div>
  9785. <div
  9786. class="worksAnswer"
  9787. v-if="commentDetail.works && commentDetail.type == 4"
  9788. >
  9789. <div class="evalCss">
  9790. <div class="nav">请选择星星进行评分</div>
  9791. <div class="middleBox" v-if="eScore.eStar">
  9792. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9793. <div class="nameAndrate">
  9794. <div>{{ e.value }}</div>
  9795. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9796. </div>
  9797. <div v-if="e.detail">{{ e.detail }}</div>
  9798. </div>
  9799. <div class="bz">
  9800. <textarea
  9801. disabled
  9802. rows="4"
  9803. class="pj"
  9804. style="
  9805. padding: 10px 5px;
  9806. width: 70%;
  9807. background: #f7f6f9;
  9808. font-size: 14px;
  9809. text-indent: 10px;
  9810. color: #000;
  9811. "
  9812. cols
  9813. v-model="eScore.eBzText"
  9814. placeholder="请输入评价内容..."
  9815. ></textarea>
  9816. </div>
  9817. </div>
  9818. </div>
  9819. </div>
  9820. <div class="comment">
  9821. <div class="commentList">
  9822. <div class="commentImg">
  9823. <img
  9824. @click="
  9825. isLikes(
  9826. commentDetail.wid,
  9827. userid,
  9828. 1,
  9829. null,
  9830. commentDetail.isLikes,
  9831. commentDetail.sName
  9832. )
  9833. "
  9834. :src="commentDetail.isLikes == true ? likes : noLikes"
  9835. alt=""
  9836. />
  9837. </div>
  9838. <div>{{ commentDetail.likesCount }}</div>
  9839. </div>
  9840. <div class="commentList">
  9841. <div class="commentImg">
  9842. <img src="../../assets/icon/comment/comment.png" alt="" />
  9843. </div>
  9844. <div>{{ commentDetail.commentCount }}</div>
  9845. </div>
  9846. </div>
  9847. <div class="drawPBox" v-if="commentDetail.img">
  9848. <span>教师批注</span>
  9849. <img
  9850. :src="commentDetail.img"
  9851. alt=""
  9852. @click="previewImg(commentDetail.img)"
  9853. />
  9854. <span
  9855. class="deleteImg"
  9856. v-if="tType == 1 || tType == 4"
  9857. @click.stop="deletePicturePaint(commentDetail.wid)"
  9858. style="
  9859. font-size: 14px;
  9860. width: auto !important;
  9861. color: #b4b4b4;
  9862. top: unset;
  9863. bottom: 0;
  9864. border: none;
  9865. padding: 0;
  9866. height: auto !important;
  9867. margin: 0;
  9868. "
  9869. >删除</span
  9870. >
  9871. </div>
  9872. </div>
  9873. <div class="commentBox">
  9874. <div class="pl">评论:</div>
  9875. <div style="max-height: 200px; overflow: auto">
  9876. <div
  9877. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9878. style="padding: 10px 0 0 0"
  9879. >
  9880. <div
  9881. class="studentDetail"
  9882. style="padding-top: 10px"
  9883. v-for="(co, coIndex) in commentDetail.commentJson"
  9884. :key="coIndex"
  9885. >
  9886. <div class="tx" style="min-width: 50px">
  9887. <img src="../../assets/avatar.png" alt="" />
  9888. </div>
  9889. <div class="plPerson">
  9890. <div class="plName">
  9891. <div>{{ co.commentPeople }}</div>
  9892. <div style="margin-left: 5px">
  9893. {{ co.commentTime }}
  9894. </div>
  9895. <div
  9896. class="deleteComment"
  9897. v-if="userid == co.userid"
  9898. @click="deleteComment(co.wid)"
  9899. >
  9900. 删除
  9901. </div>
  9902. </div>
  9903. <div class="plContent">{{ co.commentText }}</div>
  9904. </div>
  9905. </div>
  9906. </div>
  9907. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9908. </div>
  9909. </div>
  9910. <div style="margin-top: 10px">
  9911. <div class="displayBox">
  9912. <div
  9913. style="
  9914. color: #556db4;
  9915. font-size: 14px;
  9916. font-weight: bold;
  9917. padding-bottom: 10px;
  9918. "
  9919. >
  9920. 评价
  9921. </div>
  9922. <div class="easy_comment" v-if="false">
  9923. <div
  9924. v-for="(p, pIndex) in PlTextList"
  9925. :key="pIndex"
  9926. @click="fastText(p, 1)"
  9927. >
  9928. {{ p }}
  9929. </div>
  9930. </div>
  9931. </div>
  9932. <div>
  9933. <textarea
  9934. rows="3"
  9935. class="pj"
  9936. style="padding: 10px 5px"
  9937. cols
  9938. v-model="commentText"
  9939. placeholder="请输入评论"
  9940. ></textarea>
  9941. </div>
  9942. </div>
  9943. <div slot="footer">
  9944. <el-button
  9945. @click="
  9946. (commentDialogVisible = false),
  9947. (commentIndexJson = {}),
  9948. videoDetail.sources && videoDetail.sources[0]
  9949. ? (videoDetail.sources[0].src = '')
  9950. : ''
  9951. "
  9952. >取 消</el-button
  9953. >
  9954. <el-button
  9955. type="primary"
  9956. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9957. >确 定</el-button
  9958. >
  9959. </div>
  9960. </el-dialog>
  9961. <el-dialog
  9962. title="查看文档"
  9963. :visible.sync="fullDialogVisible"
  9964. :append-to-body="true"
  9965. width="100%"
  9966. :before-close="handleClose"
  9967. :show-close="false"
  9968. class="dialog_diy full_diy"
  9969. :class="{ full_diy2: fulltype == 3 }"
  9970. >
  9971. <div slot="title" class="header-title">
  9972. <div style="color: #fff">查看文档</div>
  9973. <div
  9974. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9975. style="
  9976. cursor: pointer;
  9977. position: absolute;
  9978. top: 20px;
  9979. right: 20px;
  9980. color: #fff;
  9981. "
  9982. >
  9983. 退出全屏
  9984. </div>
  9985. </div>
  9986. <div style="height: 100%">
  9987. <div
  9988. class="wheel"
  9989. v-if="
  9990. fulltype == 2 &&
  9991. fullUrl.indexOf(
  9992. 'https://view.officeapps.live.com/op/view.aspx?src='
  9993. ) != -1
  9994. "
  9995. style="width: 100%;height:100%; margin: 0 auto"
  9996. >
  9997. <iframe
  9998. style="width: 100%; height: 100%; border: none"
  9999. :src="fullUrl"
  10000. ></iframe>
  10001. </div>
  10002. <iframe
  10003. v-else-if="fulltype == 2"
  10004. style="width: 100%; height: 100%; border: none"
  10005. :src="fullUrl"
  10006. security="restricted"
  10007. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10008. ></iframe>
  10009. <pdf
  10010. v-else-if="fulltype == 3"
  10011. :pdfUrl="fullUrl"
  10012. style="width: 100%; height: 100%; overflow: auto"
  10013. ></pdf>
  10014. <div
  10015. class="wheel"
  10016. v-if="fulltype == 1"
  10017. style="
  10018. box-shadow: 0 0 6px 1px #f2f2f2;
  10019. height:100%;
  10020. width: 100%;
  10021. background: #f1f1f1;
  10022. "
  10023. >
  10024. <div class="title" style="width: 100%; box-sizing: border-box">
  10025. 查看文档
  10026. </div>
  10027. <el-form class="textBox" style="height: 90%">
  10028. <el-form-item class="textTitle">
  10029. <div style="font-size: 22px">
  10030. {{ fullUrl.name }}
  10031. </div>
  10032. </el-form-item>
  10033. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10034. <div
  10035. v-html="fullUrl.url"
  10036. class="textContent"
  10037. style="height: auto"
  10038. ></div>
  10039. </el-form>
  10040. </div>
  10041. </div>
  10042. <!-- <div slot="footer">
  10043. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10044. </div> -->
  10045. </el-dialog>
  10046. <el-dialog
  10047. title="个人评价"
  10048. :visible.sync="studentEvalDialogVisible"
  10049. :append-to-body="true"
  10050. width="800px"
  10051. :before-close="handleClose"
  10052. class="dialog_diy"
  10053. >
  10054. <div class="evalCss">
  10055. <div class="nav">请选择星星进行评分</div>
  10056. <div class="middleBox" v-if="eScore.eStar">
  10057. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10058. <div class="nameAndrate">
  10059. <div>{{ e.value }}</div>
  10060. <el-rate
  10061. v-model="eScore.eStar[eIndex]"
  10062. :disabled="isStar"
  10063. ></el-rate>
  10064. </div>
  10065. <div v-if="e.detail">{{ e.detail }}</div>
  10066. </div>
  10067. <div class="easy_comment" v-if="false">
  10068. <div
  10069. v-for="(p, pIndex) in PlTextList"
  10070. :key="pIndex"
  10071. @click="fastText(p, 2)"
  10072. >
  10073. {{ p }}
  10074. </div>
  10075. </div>
  10076. <div class="bz">
  10077. <textarea
  10078. :disabled="isStar"
  10079. rows="4"
  10080. class="pj"
  10081. style="
  10082. padding: 10px 5px;
  10083. width: 70%;
  10084. background: #f7f6f9;
  10085. font-size: 14px;
  10086. text-indent: 10px;
  10087. "
  10088. cols
  10089. v-model="eScore.eBzText"
  10090. placeholder="请输入评价内容..."
  10091. ></textarea>
  10092. </div>
  10093. </div>
  10094. </div>
  10095. <div slot="footer">
  10096. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10097. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10098. >确 定</el-button
  10099. >
  10100. </div>
  10101. </el-dialog>
  10102. <el-dialog
  10103. title="个人评价"
  10104. :visible.sync="studentEvalDialogVisibleTeacher"
  10105. :append-to-body="true"
  10106. width="800px"
  10107. :before-close="handleClose"
  10108. class="dialog_diy"
  10109. >
  10110. <div class="w_name">
  10111. 学生姓名:<span>{{ sStudent.student }}</span>
  10112. </div>
  10113. <div class="evalCss">
  10114. <div class="nav">请选择星星进行评分</div>
  10115. <div class="middleBox" v-if="eScore.eStar">
  10116. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10117. <div class="nameAndrate">
  10118. <div>{{ e.value }}</div>
  10119. <el-rate
  10120. v-model="eScore.eStar[eIndex]"
  10121. :disabled="isStar"
  10122. ></el-rate>
  10123. </div>
  10124. <div v-if="e.detail">{{ e.detail }}</div>
  10125. </div>
  10126. <div class="easy_comment" v-if="false">
  10127. <div
  10128. v-for="(p, pIndex) in PlTextList"
  10129. :key="pIndex"
  10130. @click="fastText(p, 2)"
  10131. >
  10132. {{ p }}
  10133. </div>
  10134. </div>
  10135. <div class="bz">
  10136. <textarea
  10137. :disabled="isStar"
  10138. rows="4"
  10139. class="pj"
  10140. style="
  10141. padding: 10px 5px;
  10142. width: 70%;
  10143. background: #f7f6f9;
  10144. font-size: 14px;
  10145. text-indent: 10px;
  10146. "
  10147. cols
  10148. v-model="eScore.eBzText"
  10149. placeholder="请输入评价内容..."
  10150. ></textarea>
  10151. </div>
  10152. </div>
  10153. </div>
  10154. <div slot="footer">
  10155. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10156. >取 消</el-button
  10157. >
  10158. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10159. >确 定</el-button
  10160. >
  10161. </div>
  10162. </el-dialog>
  10163. <el-dialog
  10164. title="选择匹配"
  10165. :visible.sync="dialogVisibleSelect"
  10166. :append-to-body="true"
  10167. width="90%"
  10168. :before-close="handleClose"
  10169. class="dialog_diy dialog_diy3"
  10170. >
  10171. <div v-if="selectJson">
  10172. <div class="select_box2">
  10173. <div class="select_box2_title">
  10174. <div>选择匹配</div>
  10175. <div>请选择对应的答案进行答题!</div>
  10176. </div>
  10177. <div class="select_box2_box">
  10178. <div class="select_box2_img">
  10179. <img
  10180. :src="selectJson.url"
  10181. @click="previewImg(selectJson.url)"
  10182. alt=""
  10183. />
  10184. </div>
  10185. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10186. <div style="padding-top: 15px">
  10187. <div class="select_answer_title" v-if="isSelect">
  10188. {{ selectAnswer.stu }}
  10189. </div>
  10190. <div class="select_answer_title" v-else>
  10191. 根据题目选择对应答案
  10192. </div>
  10193. <div
  10194. class="select_box2_answer_box"
  10195. v-for="(item2, checkIndex) in selectJson.select"
  10196. :key="checkIndex"
  10197. >
  10198. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10199. <el-select
  10200. :disabled="isSelect"
  10201. v-model="selectAnswer.answer[checkIndex]"
  10202. placeholder="请选择正确答案"
  10203. >
  10204. <el-option
  10205. v-for="(e, eIndex) in selectJson.select"
  10206. :key="eIndex"
  10207. :label="e"
  10208. :value="eIndex"
  10209. >
  10210. </el-option>
  10211. </el-select>
  10212. </div>
  10213. </div>
  10214. <div
  10215. class="rightAnswerCss"
  10216. v-if="isSelect && (tType == 1 || tType == 4)"
  10217. >
  10218. <div
  10219. v-for="(a, aIndex) in selectJson.answer"
  10220. :key="aIndex"
  10221. class="rightAnswer"
  10222. >
  10223. <div
  10224. v-if="selectAnswer.answer[aIndex] === a"
  10225. style="color: #767de1"
  10226. >
  10227. 回答正确
  10228. </div>
  10229. <div v-else>回答错误</div>
  10230. <div
  10231. style="margin-left: 10px"
  10232. v-if="selectAnswer.answer[aIndex] !== a"
  10233. >
  10234. 正确答案:
  10235. </div>
  10236. <div
  10237. :class="
  10238. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10239. "
  10240. >
  10241. {{ selectJson.select[a] }}
  10242. </div>
  10243. </div>
  10244. </div>
  10245. </div>
  10246. <div class="upAnswerCss">
  10247. <el-button
  10248. type="primary"
  10249. @click="addSelectAnswer"
  10250. v-if="!isSelect"
  10251. >提交答案</el-button
  10252. >
  10253. </div>
  10254. </div>
  10255. </div>
  10256. </div>
  10257. </el-dialog>
  10258. <el-dialog
  10259. title="选择匹配"
  10260. :visible.sync="dialogVisibleSelectTeacher"
  10261. :append-to-body="true"
  10262. width="90%"
  10263. :before-close="handleClose"
  10264. class="dialog_diy dialog_diy3"
  10265. >
  10266. <div v-if="selectJson">
  10267. <div class="w_name">
  10268. 学生姓名:<span>{{ sStudent.student }}</span>
  10269. </div>
  10270. <div class="select_box2">
  10271. <div class="select_box2_title">
  10272. <div>选择匹配</div>
  10273. <div>请选择对应的答案进行答题!</div>
  10274. </div>
  10275. <div class="select_box2_box">
  10276. <div class="select_box2_img">
  10277. <img
  10278. :src="selectJson.url"
  10279. @click="previewImg(selectJson.url)"
  10280. alt=""
  10281. />
  10282. </div>
  10283. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10284. <div style="padding-top: 15px">
  10285. <div class="select_answer_title" v-if="isSelect">
  10286. {{ selectAnswer.stu }}
  10287. </div>
  10288. <div class="select_answer_title" v-else>
  10289. 根据题目选择对应答案
  10290. </div>
  10291. <div
  10292. class="select_box2_answer_box"
  10293. v-for="(item2, checkIndex) in selectJson.select"
  10294. :key="checkIndex"
  10295. >
  10296. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10297. <el-select
  10298. :disabled="isSelect"
  10299. v-model="selectAnswer.answer[checkIndex]"
  10300. placeholder="请选择正确答案"
  10301. >
  10302. <el-option
  10303. v-for="(e, eIndex) in selectJson.select"
  10304. :key="eIndex"
  10305. :label="e"
  10306. :value="eIndex"
  10307. >
  10308. </el-option>
  10309. </el-select>
  10310. </div>
  10311. </div>
  10312. <div
  10313. class="rightAnswerCss"
  10314. v-if="isSelect && (tType == 1 || tType == 4)"
  10315. >
  10316. <div
  10317. v-for="(a, aIndex) in selectJson.answer"
  10318. :key="aIndex"
  10319. class="rightAnswer"
  10320. >
  10321. <div
  10322. v-if="selectAnswer.answer[aIndex] === a"
  10323. style="color: #767de1"
  10324. >
  10325. 回答正确
  10326. </div>
  10327. <div v-else>回答错误</div>
  10328. <div
  10329. style="margin-left: 10px"
  10330. v-if="selectAnswer.answer[aIndex] !== a"
  10331. >
  10332. 正确答案:
  10333. </div>
  10334. <div
  10335. :class="
  10336. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10337. "
  10338. >
  10339. {{ selectJson.select[a] }}
  10340. </div>
  10341. </div>
  10342. </div>
  10343. </div>
  10344. <div class="upAnswerCss">
  10345. <el-button
  10346. type="primary"
  10347. @click="addSelectAnswerTeacher"
  10348. v-if="!isSelect"
  10349. >提交答案</el-button
  10350. >
  10351. </div>
  10352. </div>
  10353. </div>
  10354. </div>
  10355. </el-dialog>
  10356. <el-dialog
  10357. title="教师评分"
  10358. :visible.sync="dialogVisibleScore"
  10359. :append-to-body="true"
  10360. width="800px"
  10361. :before-close="handleClose"
  10362. class="dialog_diy"
  10363. >
  10364. <div>
  10365. <div class="studentDetail">
  10366. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10367. <div class="nameAndTime">
  10368. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10369. <div>{{ commentDetail.time }}</div>
  10370. </div>
  10371. </div>
  10372. <div
  10373. class="worksAnswer"
  10374. v-if="commentDetail.works && commentDetail.type == 2"
  10375. >
  10376. {{ JSON.parse(commentDetail.works)[0].answer }}
  10377. </div>
  10378. <div
  10379. class="worksAnswer"
  10380. v-if="commentDetail.works && commentDetail.type == 1"
  10381. >
  10382. <pdf
  10383. v-if="showPDF"
  10384. :pdfUrl="pptImgUrl"
  10385. style="width: 100%; height: 520px; overflow: auto"
  10386. :class="{ fullStyle: full }"
  10387. ></pdf>
  10388. <iframe
  10389. v-else
  10390. :src="pptImgUrl"
  10391. frameborder="0"
  10392. width="100%"
  10393. height="600"
  10394. :class="{ fullStyle: full }"
  10395. ></iframe>
  10396. </div>
  10397. <div
  10398. class="worksAnswer"
  10399. v-if="commentDetail.works && commentDetail.type == 0"
  10400. >
  10401. <img
  10402. :src="commentDetail.works"
  10403. alt=""
  10404. @click="previewImg(commentDetail.works)"
  10405. />
  10406. </div>
  10407. <div
  10408. class="worksAnswer"
  10409. v-if="commentDetail.works && commentDetail.type == 3"
  10410. >
  10411. <video-player
  10412. class="video-player vjs-custom-skin"
  10413. :playsinline="true"
  10414. :options="videoDetail"
  10415. @play="onPlayerPlay($event)"
  10416. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10417. ></video-player>
  10418. </div>
  10419. <div
  10420. class="worksAnswer codeFileBox"
  10421. v-if="commentDetail.works && commentDetail.type == 12"
  10422. @click="downloadFile(commentDetail.works)"
  10423. >
  10424. <img src="../../assets/icon/codeFile.png" />
  10425. <div>点击下载文件</div>
  10426. </div>
  10427. <div
  10428. class="worksAnswer codeFileBox"
  10429. v-if="commentDetail.works && commentDetail.type == 15"
  10430. @click="
  10431. openCocoPi(
  10432. 57,
  10433. commentIndexJson.toolIndex,
  10434. commentDetail.userid,
  10435. commentDetail.sName
  10436. )
  10437. "
  10438. >
  10439. <img src="../../assets/icon/codeFile.png" />
  10440. <div>点击打开CocoPi</div>
  10441. </div>
  10442. <div
  10443. class="worksAnswer"
  10444. v-if="commentDetail.works && commentDetail.type == 13"
  10445. >
  10446. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10447. </div>
  10448. <div class="scoreBox">
  10449. <span class="t">请输入分数</span>
  10450. <el-input-number
  10451. :disabled="courseDetail.userid != userid"
  10452. v-model="wScore"
  10453. :controls="false"
  10454. :min="0"
  10455. :max="100"
  10456. ></el-input-number>
  10457. </div>
  10458. <div class="scoreDetailBox">
  10459. <span class="t">评分评论</span>
  10460. <el-input
  10461. type="textarea"
  10462. :rows="5"
  10463. :disabled="courseDetail.userid != userid"
  10464. resize="none"
  10465. v-model="scoreDetail"
  10466. placeholder="请输入对学生的评价"
  10467. >
  10468. </el-input>
  10469. </div>
  10470. </div>
  10471. <span slot="footer" class="dialog-footer">
  10472. <el-button
  10473. @click="
  10474. (dialogVisibleScore = false),
  10475. (commentIndexJson = {}),
  10476. videoDetail.sources && videoDetail.sources[0]
  10477. ? (videoDetail.sources[0].src = '')
  10478. : ''
  10479. "
  10480. >取 消</el-button
  10481. >
  10482. <el-button
  10483. type="primary"
  10484. v-if="courseDetail.userid == userid"
  10485. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10486. >确 定
  10487. </el-button>
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="排序"
  10492. :visible.sync="dialogVisibleSentence"
  10493. :append-to-body="true"
  10494. width="1000px"
  10495. :before-close="handleClose"
  10496. class="dialog_diy dialog_diy3"
  10497. >
  10498. <div>
  10499. <div class="sentenBox">
  10500. <div
  10501. v-for="(st, stIndex) in sentenceList"
  10502. :key="stIndex"
  10503. style="padding-bottom: 20px"
  10504. >
  10505. <div
  10506. style="padding: 15px 0 10px 20px"
  10507. class="sentenceTitle"
  10508. :index="stIndex + 1"
  10509. >
  10510. 题目{{ stIndex + 1 }}:请选择正确顺序
  10511. </div>
  10512. <div class="cardList" v-if="st.chooseSenList">
  10513. <div class="cardBox">
  10514. <div
  10515. v-for="(r, rIndex) in st.chooseSenList"
  10516. :key="rIndex"
  10517. @click="returnCard(r, stIndex, rIndex)"
  10518. >
  10519. <el-tooltip
  10520. class="item"
  10521. effect="light"
  10522. :content="r"
  10523. placement="top"
  10524. v-if="r != '' && r != undefined"
  10525. >
  10526. <div
  10527. :class="{
  10528. isCard: r,
  10529. isChooseCard: r == '' || r == undefined,
  10530. }"
  10531. >
  10532. <div>{{ r }}</div>
  10533. </div>
  10534. </el-tooltip>
  10535. <div
  10536. :class="{
  10537. isCard: r,
  10538. isChooseCard: r == '' || r == undefined,
  10539. }"
  10540. v-else
  10541. >
  10542. <div>{{ r }}</div>
  10543. </div>
  10544. </div>
  10545. </div>
  10546. </div>
  10547. <div class="cardList" v-if="st.addChangeSen">
  10548. <div class="cardBox">
  10549. <div
  10550. v-for="(s, sIndex) in st.addChangeSen"
  10551. :key="sIndex"
  10552. @click="setRightAnswer(s, stIndex, sIndex)"
  10553. >
  10554. <el-tooltip
  10555. class="item"
  10556. effect="light"
  10557. :content="s"
  10558. placement="top"
  10559. v-if="s != '' && s != undefined"
  10560. >
  10561. <div
  10562. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10563. >
  10564. <div>{{ s }}</div>
  10565. </div>
  10566. </el-tooltip>
  10567. <div
  10568. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10569. v-else
  10570. >
  10571. <div>{{ s }}</div>
  10572. </div>
  10573. </div>
  10574. </div>
  10575. </div>
  10576. </div>
  10577. </div>
  10578. </div>
  10579. <span slot="footer" class="dialog-footer">
  10580. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10581. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10582. </span>
  10583. </el-dialog>
  10584. <el-dialog
  10585. title="排序"
  10586. :visible.sync="dialogVisibleSentenceTeacher"
  10587. :append-to-body="true"
  10588. width="1000px"
  10589. :before-close="handleClose"
  10590. class="dialog_diy dialog_diy3"
  10591. >
  10592. <div>
  10593. <div class="w_name">
  10594. 学生姓名:<span>{{ sStudent.student }}</span>
  10595. </div>
  10596. <div class="sentenBox">
  10597. <div
  10598. v-for="(st, stIndex) in sentenceList"
  10599. :key="stIndex"
  10600. style="padding-bottom: 20px"
  10601. >
  10602. <div
  10603. style="padding: 15px 0 10px 20px"
  10604. class="sentenceTitle"
  10605. :index="stIndex + 1"
  10606. >
  10607. 题目{{ stIndex + 1 }}:请选择正确顺序
  10608. </div>
  10609. <div class="cardList" v-if="st.chooseSenList">
  10610. <div class="cardBox">
  10611. <div
  10612. v-for="(r, rIndex) in st.chooseSenList"
  10613. :key="rIndex"
  10614. @click="returnCard(r, stIndex, rIndex)"
  10615. >
  10616. <el-tooltip
  10617. class="item"
  10618. effect="light"
  10619. :content="r"
  10620. placement="top"
  10621. v-if="r != '' && r != undefined"
  10622. >
  10623. <div
  10624. :class="{
  10625. isCard: r,
  10626. isChooseCard: r == '' || r == undefined,
  10627. }"
  10628. >
  10629. <div>{{ r }}</div>
  10630. </div>
  10631. </el-tooltip>
  10632. <div
  10633. :class="{
  10634. isCard: r,
  10635. isChooseCard: r == '' || r == undefined,
  10636. }"
  10637. v-else
  10638. >
  10639. <div>{{ r }}</div>
  10640. </div>
  10641. </div>
  10642. </div>
  10643. </div>
  10644. <div class="cardList" v-if="st.addChangeSen">
  10645. <div class="cardBox">
  10646. <div
  10647. v-for="(s, sIndex) in st.addChangeSen"
  10648. :key="sIndex"
  10649. @click="setRightAnswer(s, stIndex, sIndex)"
  10650. >
  10651. <el-tooltip
  10652. class="item"
  10653. effect="light"
  10654. :content="s"
  10655. placement="top"
  10656. v-if="s != '' && s != undefined"
  10657. >
  10658. <div
  10659. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10660. >
  10661. <div>{{ s }}</div>
  10662. </div>
  10663. </el-tooltip>
  10664. <div
  10665. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10666. v-else
  10667. >
  10668. <div>{{ s }}</div>
  10669. </div>
  10670. </div>
  10671. </div>
  10672. </div>
  10673. </div>
  10674. </div>
  10675. </div>
  10676. <span slot="footer" class="dialog-footer">
  10677. <el-button @click="dialogVisibleSentenceTeacher = false"
  10678. >取 消</el-button
  10679. >
  10680. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10681. </span>
  10682. </el-dialog>
  10683. <el-dialog
  10684. title="排序"
  10685. :visible.sync="dialogVisibleSentence1"
  10686. :append-to-body="true"
  10687. width="1000px"
  10688. :before-close="handleClose"
  10689. class="dialog_diy dialog_diy3"
  10690. >
  10691. <div>
  10692. <div class="sentenBox">
  10693. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10694. {{ sentenceList1.stuName }}的作业
  10695. </div>
  10696. <div
  10697. v-for="(st, stIndex) in sentenceList1"
  10698. :key="stIndex"
  10699. style="padding-bottom: 20px"
  10700. >
  10701. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10702. 第{{ stIndex + 1 }}题
  10703. </div>
  10704. <div class="isWrong">
  10705. <div class="cardList1" v-if="st.chooseSenList">
  10706. <div class="cardBox">
  10707. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10708. <el-tooltip
  10709. class="item"
  10710. effect="light"
  10711. :content="s"
  10712. placement="top"
  10713. >
  10714. <div class="isCard">
  10715. <div>{{ s }}</div>
  10716. </div>
  10717. </el-tooltip>
  10718. </div>
  10719. </div>
  10720. <div class="cardAnswerBox">
  10721. 组成句子:{{ st.chooseSenList.join(" ") }}
  10722. </div>
  10723. </div>
  10724. <div v-if="tType == 2" class="isTj">
  10725. <div class="isTjImg">
  10726. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10727. </div>
  10728. <div>已提交</div>
  10729. </div>
  10730. <div
  10731. class="answerRight isTj"
  10732. v-if="
  10733. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10734. (tType == 1 || tType == 4)
  10735. "
  10736. >
  10737. <div class="isTjImg">
  10738. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10739. </div>
  10740. <div>回答正确</div>
  10741. </div>
  10742. <div
  10743. class="answerRight isTj"
  10744. v-if="
  10745. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10746. (tType == 1 || tType == 4)
  10747. "
  10748. >
  10749. <div class="isTjImg">
  10750. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10751. </div>
  10752. <div>回答错误</div>
  10753. </div>
  10754. </div>
  10755. <div
  10756. v-if="
  10757. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10758. (tType == 1 || tType == 4)
  10759. "
  10760. >
  10761. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10762. <div
  10763. class="cardList"
  10764. v-if="st.rightAnswer"
  10765. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10766. >
  10767. <div class="cardBox">
  10768. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10769. <el-tooltip
  10770. class="item"
  10771. effect="light"
  10772. :content="r"
  10773. placement="top"
  10774. >
  10775. <div class="isCard1">
  10776. <div>{{ r }}</div>
  10777. </div>
  10778. </el-tooltip>
  10779. </div>
  10780. </div>
  10781. <div class="cardAnswerBox">
  10782. 组成句子:{{ st.rightAnswer.join(" ") }}
  10783. </div>
  10784. </div>
  10785. </div>
  10786. </div>
  10787. </div>
  10788. </div>
  10789. <span slot="footer" class="dialog-footer">
  10790. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10791. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10792. >确 定</el-button
  10793. >
  10794. </span>
  10795. </el-dialog>
  10796. <el-dialog
  10797. title="教师提交作业"
  10798. :visible.sync="dialogVisibleWorks"
  10799. :append-to-body="true"
  10800. width="500px"
  10801. :before-close="handleClose"
  10802. class="dialog_change"
  10803. >
  10804. <div class="marginT">
  10805. <div class="w_name">
  10806. 学生姓名:<span>{{ sStudent.student }}</span>
  10807. </div>
  10808. <div>上传文件</div>
  10809. <div
  10810. class="chapter_add"
  10811. @click="addImg($event)"
  10812. v-if="studyJuri[0].cover.length == 0"
  10813. >
  10814. <div class="up_photo">
  10815. <img src="../../assets/uploadImg2.png" alt />
  10816. </div>
  10817. <!-- <input
  10818. type="file"
  10819. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10820. style="display: none"
  10821. @change="beforeUpload1($event, 1)"
  10822. /> -->
  10823. <input
  10824. type="file"
  10825. accept="*"
  10826. style="display: none"
  10827. @change="beforeUpload1($event, 1)"
  10828. />
  10829. </div>
  10830. <!-- capture="camera" -->
  10831. <div
  10832. class="chapter_add"
  10833. style="
  10834. display: flex;
  10835. width: 100%;
  10836. flex-direction: row;
  10837. flex-wrap: wrap;
  10838. justify-content: flex-start;
  10839. padding: 15px 0;
  10840. "
  10841. v-if="studyJuri[0].cover.length > 0"
  10842. >
  10843. <div class="upCover">
  10844. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10845. <img :src="word" alt v-else-if="fileType == 1" />
  10846. <img :src="video" alt v-else-if="fileType == 2" />
  10847. <img :src="word2" alt v-else-if="fileType == 3" />
  10848. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10849. <div class="deleteWord" @click="clean(1)">
  10850. <img src="../../assets/icon/deleteWorks.png" alt />
  10851. </div>
  10852. </div>
  10853. </div>
  10854. </div>
  10855. <div
  10856. class="upload_send"
  10857. @click="addCourseWorksTeacher(taskCount)"
  10858. v-if="!proVisible"
  10859. >
  10860. 提交
  10861. </div>
  10862. </el-dialog>
  10863. <ImgDraw
  10864. :drawShow="drawShow"
  10865. @closeDraw="closeDraw"
  10866. @addImgDraw="addImgDraw"
  10867. :bg="bg"
  10868. ></ImgDraw>
  10869. <el-dialog
  10870. title="表格"
  10871. :visible.sync="dialogVisibleTable"
  10872. :append-to-body="true"
  10873. width="95%"
  10874. :before-close="handleClose"
  10875. class="dialog_diy"
  10876. >
  10877. <el-form>
  10878. <div
  10879. style="
  10880. display: flex;
  10881. align-items: center;
  10882. justify-content: space-between;
  10883. "
  10884. >
  10885. <span>表格内容</span>
  10886. <el-button type="primary" size="small" @click="returnTableText"
  10887. >还原模板</el-button
  10888. >
  10889. </div>
  10890. <Table
  10891. v-model="tableJson.text"
  10892. @change="change"
  10893. v-if="dialogVisibleTable"
  10894. ></Table>
  10895. </el-form>
  10896. <span slot="footer" class="dialog-footer">
  10897. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10898. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10899. </span>
  10900. </el-dialog>
  10901. <el-dialog
  10902. title="表格"
  10903. :visible.sync="dialogVisibleTableTeacher"
  10904. :append-to-body="true"
  10905. width="95%"
  10906. :before-close="handleClose"
  10907. class="dialog_diy"
  10908. >
  10909. <el-form>
  10910. <div class="w_name">
  10911. 学生姓名:<span>{{ sStudent.student }}</span>
  10912. </div>
  10913. <div>表格内容</div>
  10914. <Table
  10915. v-model="tableJson.text"
  10916. @change="change"
  10917. v-if="dialogVisibleTableTeacher"
  10918. ></Table>
  10919. </el-form>
  10920. <span slot="footer" class="dialog-footer">
  10921. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10922. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10923. </span>
  10924. </el-dialog>
  10925. <el-dialog
  10926. title="文档"
  10927. :visible.sync="dialogVisibleWord"
  10928. :append-to-body="true"
  10929. width="95%"
  10930. :before-close="handleClose"
  10931. class="dialog_diy"
  10932. >
  10933. <el-form>
  10934. <div
  10935. style="
  10936. display: flex;
  10937. align-items: center;
  10938. justify-content: space-between;
  10939. "
  10940. >
  10941. <span>文档内容</span>
  10942. <el-button type="primary" size="small" @click="returnWordText"
  10943. >还原模板</el-button
  10944. >
  10945. </div>
  10946. <editor-bar
  10947. v-model="wordJson.text"
  10948. v-if="dialogVisibleWord"
  10949. ></editor-bar>
  10950. </el-form>
  10951. <span slot="footer" class="dialog-footer">
  10952. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10953. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10954. </span>
  10955. </el-dialog>
  10956. <el-dialog
  10957. title="文档"
  10958. :visible.sync="dialogVisibleWordTeacher"
  10959. :append-to-body="true"
  10960. width="95%"
  10961. :before-close="handleClose"
  10962. class="dialog_diy"
  10963. >
  10964. <el-form>
  10965. <div class="w_name">
  10966. 学生姓名:<span>{{ sStudent.student }}</span>
  10967. </div>
  10968. <div>文档内容</div>
  10969. <editor-bar
  10970. v-model="wordJson.text"
  10971. v-if="dialogVisibleWordTeacher"
  10972. ></editor-bar>
  10973. </el-form>
  10974. <span slot="footer" class="dialog-footer">
  10975. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10976. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10977. </span>
  10978. </el-dialog>
  10979. <el-dialog
  10980. title="表格"
  10981. :visible.sync="dialogVisibleTable2"
  10982. :append-to-body="true"
  10983. width="95%"
  10984. :before-close="handleClose"
  10985. class="dialog_diy"
  10986. >
  10987. <el-form>
  10988. <div class="cont" v-html="tableJson.text"></div>
  10989. </el-form>
  10990. <span slot="footer" class="dialog-footer">
  10991. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10992. </span>
  10993. </el-dialog>
  10994. <el-dialog
  10995. title="文档"
  10996. :visible.sync="dialogVisibleTable3"
  10997. :append-to-body="true"
  10998. width="95%"
  10999. :before-close="handleClose"
  11000. class="dialog_diy"
  11001. >
  11002. <el-form>
  11003. <div class="cont" v-html="tableJson.text"></div>
  11004. </el-form>
  11005. <span slot="footer" class="dialog-footer">
  11006. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11007. </span>
  11008. </el-dialog>
  11009. <el-dialog
  11010. title="分组设置"
  11011. :visible.sync="dialogVisibleGroup"
  11012. :append-to-body="true"
  11013. width="95%"
  11014. :before-close="handleClose"
  11015. class="dialog_diy"
  11016. >
  11017. <div v-if="dialogVisibleGroup">
  11018. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11019. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11020. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11021. </div>
  11022. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11023. @click="lockChair">
  11024. 锁定位置
  11025. </div>
  11026. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11027. 解锁位置
  11028. </div> -->
  11029. <div class="group_switch">
  11030. <span>开放选座</span>
  11031. <el-switch
  11032. v-model="islock"
  11033. active-text=""
  11034. class="switchCss"
  11035. @change="lockChair"
  11036. ></el-switch>
  11037. </div>
  11038. <div
  11039. type="primary"
  11040. @click="updateGroup"
  11041. class="returnBtn"
  11042. style="background-color: #225bc7"
  11043. >
  11044. 分组设置
  11045. </div>
  11046. </div>
  11047. <div>
  11048. <div
  11049. class="g_d_box"
  11050. v-if="groupJson.group && groupStudent[toolindex]"
  11051. >
  11052. <div
  11053. class="g_d_group"
  11054. v-for="(g, gindex) in groupJson.group"
  11055. :key="gindex"
  11056. >
  11057. <div class="g_d_group_chair">
  11058. <div v-if="groupJson.number > 1">
  11059. <span
  11060. :class="{
  11061. isChair:
  11062. groupStudent[toolindex][gindex] &&
  11063. groupStudent[toolindex][gindex][0],
  11064. updateChair:
  11065. courseDetail.userid == userid &&
  11066. groupStudent[toolindex][gindex] &&
  11067. groupStudent[toolindex][gindex][0] &&
  11068. groupJson.islock == 2,
  11069. }"
  11070. ><span
  11071. class="updateChairBtn"
  11072. @click="
  11073. updateGroupChair(
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][0]
  11076. )
  11077. "
  11078. >修改</span
  11079. ></span
  11080. ><span>{{
  11081. groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][0]
  11083. ? groupStudent[toolindex][gindex] &&
  11084. groupStudent[toolindex][gindex][0].name
  11085. : "空位置"
  11086. }}</span>
  11087. </div>
  11088. <div v-if="groupJson.number > 4">
  11089. <span
  11090. :class="{
  11091. isChair:
  11092. groupStudent[toolindex][gindex] &&
  11093. groupStudent[toolindex][gindex][4],
  11094. updateChair:
  11095. courseDetail.userid == userid &&
  11096. groupStudent[toolindex][gindex] &&
  11097. groupStudent[toolindex][gindex][4] &&
  11098. groupJson.islock == 2,
  11099. }"
  11100. ><span
  11101. class="updateChairBtn"
  11102. @click="
  11103. updateGroupChair(
  11104. groupStudent[toolindex][gindex] &&
  11105. groupStudent[toolindex][gindex][4]
  11106. )
  11107. "
  11108. >修改</span
  11109. ></span
  11110. ><span>{{
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][4]
  11113. ? groupStudent[toolindex][gindex] &&
  11114. groupStudent[toolindex][gindex][4].name
  11115. : "空位置"
  11116. }}</span>
  11117. </div>
  11118. <div v-if="groupJson.number > 8">
  11119. <span
  11120. :class="{
  11121. isChair:
  11122. groupStudent[toolindex][gindex] &&
  11123. groupStudent[toolindex][gindex][8],
  11124. updateChair:
  11125. courseDetail.userid == userid &&
  11126. groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][8] &&
  11128. groupJson.islock == 2,
  11129. }"
  11130. ><span
  11131. class="updateChairBtn"
  11132. @click="
  11133. updateGroupChair(
  11134. groupStudent[toolindex][gindex] &&
  11135. groupStudent[toolindex][gindex][8]
  11136. )
  11137. "
  11138. >修改</span
  11139. ></span
  11140. ><span>{{
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][8]
  11143. ? groupStudent[toolindex][gindex] &&
  11144. groupStudent[toolindex][gindex][8].name
  11145. : "空位置"
  11146. }}</span>
  11147. </div>
  11148. </div>
  11149. <div class="g_d_group_tableBox">
  11150. <div class="g_d_group_chair2">
  11151. <div v-if="groupJson.number > 2">
  11152. <span
  11153. :class="{
  11154. isChair:
  11155. groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][2],
  11157. updateChair:
  11158. courseDetail.userid == userid &&
  11159. groupStudent[toolindex][gindex] &&
  11160. groupStudent[toolindex][gindex][2] &&
  11161. groupJson.islock == 2,
  11162. }"
  11163. ><span
  11164. class="updateChairBtn"
  11165. @click="
  11166. updateGroupChair(
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][2]
  11169. )
  11170. "
  11171. >修改</span
  11172. ></span
  11173. ><span>{{
  11174. groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][2]
  11176. ? groupStudent[toolindex][gindex] &&
  11177. groupStudent[toolindex][gindex][2].name
  11178. : "空位置"
  11179. }}</span>
  11180. </div>
  11181. <div v-if="groupJson.number > 6">
  11182. <span
  11183. :class="{
  11184. isChair:
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][6],
  11187. updateChair:
  11188. courseDetail.userid == userid &&
  11189. groupStudent[toolindex][gindex] &&
  11190. groupStudent[toolindex][gindex][6] &&
  11191. groupJson.islock == 2,
  11192. }"
  11193. ><span
  11194. class="updateChairBtn"
  11195. @click="
  11196. updateGroupChair(
  11197. groupStudent[toolindex][gindex] &&
  11198. groupStudent[toolindex][gindex][6]
  11199. )
  11200. "
  11201. >修改</span
  11202. ></span
  11203. ><span>{{
  11204. groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][6]
  11206. ? groupStudent[toolindex][gindex] &&
  11207. groupStudent[toolindex][gindex][6].name
  11208. : "空位置"
  11209. }}</span>
  11210. </div>
  11211. </div>
  11212. <div class="g_d_group_table">
  11213. <div>
  11214. {{ g.name }}
  11215. </div>
  11216. <div>
  11217. <div
  11218. v-if="
  11219. courseDetail.userid == userid && groupJson.islock == 2
  11220. "
  11221. @click="deleteGroupChair(gindex)"
  11222. >
  11223. 移除组员
  11224. </div>
  11225. <div
  11226. @click="selectGroup(gindex)"
  11227. v-else-if="
  11228. groupStudentUid[toolindex] &&
  11229. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11230. "
  11231. >
  11232. 加入分组
  11233. </div>
  11234. <div
  11235. @click="
  11236. exitGroup(
  11237. groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][
  11239. groupStudentUid[toolindex][gindex].indexOf(userid)
  11240. ].id
  11241. )
  11242. "
  11243. v-else-if="
  11244. groupStudentUid[toolindex] &&
  11245. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11246. "
  11247. >
  11248. 退出分组
  11249. </div>
  11250. </div>
  11251. </div>
  11252. <div class="g_d_group_chair2">
  11253. <div v-if="groupJson.number > 3">
  11254. <span
  11255. :class="{
  11256. isChair:
  11257. groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][3],
  11259. updateChair:
  11260. courseDetail.userid == userid &&
  11261. groupStudent[toolindex][gindex] &&
  11262. groupStudent[toolindex][gindex][3] &&
  11263. groupJson.islock == 2,
  11264. }"
  11265. ><span
  11266. class="updateChairBtn"
  11267. @click="
  11268. updateGroupChair(
  11269. groupStudent[toolindex][gindex] &&
  11270. groupStudent[toolindex][gindex][3]
  11271. )
  11272. "
  11273. >修改</span
  11274. ></span
  11275. ><span>{{
  11276. groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][3]
  11278. ? groupStudent[toolindex][gindex] &&
  11279. groupStudent[toolindex][gindex][3].name
  11280. : "空位置"
  11281. }}</span>
  11282. </div>
  11283. <div v-if="groupJson.number > 7">
  11284. <span
  11285. :class="{
  11286. isChair:
  11287. groupStudent[toolindex][gindex] &&
  11288. groupStudent[toolindex][gindex][7],
  11289. updateChair:
  11290. courseDetail.userid == userid &&
  11291. groupStudent[toolindex][gindex] &&
  11292. groupStudent[toolindex][gindex][7] &&
  11293. groupJson.islock == 2,
  11294. }"
  11295. ><span
  11296. class="updateChairBtn"
  11297. @click="
  11298. updateGroupChair(
  11299. groupStudent[toolindex][gindex] &&
  11300. groupStudent[toolindex][gindex][7]
  11301. )
  11302. "
  11303. >修改</span
  11304. ></span
  11305. ><span>{{
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][7]
  11308. ? groupStudent[toolindex][gindex] &&
  11309. groupStudent[toolindex][gindex][7].name
  11310. : "空位置"
  11311. }}</span>
  11312. </div>
  11313. </div>
  11314. </div>
  11315. <div class="g_d_group_chair">
  11316. <div v-if="groupJson.number > 1">
  11317. <span
  11318. :class="{
  11319. isChair:
  11320. groupStudent[toolindex][gindex] &&
  11321. groupStudent[toolindex][gindex][1],
  11322. updateChair:
  11323. courseDetail.userid == userid &&
  11324. groupStudent[toolindex][gindex] &&
  11325. groupStudent[toolindex][gindex][1] &&
  11326. groupJson.islock == 2,
  11327. }"
  11328. ><span
  11329. class="updateChairBtn"
  11330. @click="
  11331. updateGroupChair(
  11332. groupStudent[toolindex][gindex] &&
  11333. groupStudent[toolindex][gindex][1]
  11334. )
  11335. "
  11336. >修改</span
  11337. ></span
  11338. ><span>{{
  11339. groupStudent[toolindex][gindex] &&
  11340. groupStudent[toolindex][gindex][1]
  11341. ? groupStudent[toolindex][gindex] &&
  11342. groupStudent[toolindex][gindex][1].name
  11343. : "空位置"
  11344. }}</span>
  11345. </div>
  11346. <div v-if="groupJson.number > 5">
  11347. <span
  11348. :class="{
  11349. isChair:
  11350. groupStudent[toolindex][gindex] &&
  11351. groupStudent[toolindex][gindex][5],
  11352. updateChair:
  11353. courseDetail.userid == userid &&
  11354. groupStudent[toolindex][gindex] &&
  11355. groupStudent[toolindex][gindex][5] &&
  11356. groupJson.islock == 2,
  11357. }"
  11358. ><span
  11359. class="updateChairBtn"
  11360. @click="
  11361. updateGroupChair(
  11362. groupStudent[toolindex][gindex] &&
  11363. groupStudent[toolindex][gindex][5]
  11364. )
  11365. "
  11366. >修改</span
  11367. ></span
  11368. ><span>{{
  11369. groupStudent[toolindex][gindex] &&
  11370. groupStudent[toolindex][gindex][5]
  11371. ? groupStudent[toolindex][gindex] &&
  11372. groupStudent[toolindex][gindex][5].name
  11373. : "空位置"
  11374. }}</span>
  11375. </div>
  11376. <div v-if="groupJson.number > 9">
  11377. <span
  11378. :class="{
  11379. isChair:
  11380. groupStudent[toolindex][gindex] &&
  11381. groupStudent[toolindex][gindex][9],
  11382. updateChair:
  11383. courseDetail.userid == userid &&
  11384. groupStudent[toolindex][gindex] &&
  11385. groupStudent[toolindex][gindex][9] &&
  11386. groupJson.islock == 2,
  11387. }"
  11388. ><span
  11389. class="updateChairBtn"
  11390. @click="
  11391. updateGroupChair(
  11392. groupStudent[toolindex][gindex] &&
  11393. groupStudent[toolindex][gindex][9]
  11394. )
  11395. "
  11396. >修改</span
  11397. ></span
  11398. ><span>{{
  11399. groupStudent[toolindex][gindex] &&
  11400. groupStudent[toolindex][gindex][9]
  11401. ? groupStudent[toolindex][gindex] &&
  11402. groupStudent[toolindex][gindex][9].name
  11403. : "空位置"
  11404. }}</span>
  11405. </div>
  11406. </div>
  11407. </div>
  11408. </div>
  11409. </div>
  11410. </div>
  11411. <span slot="footer" class="dialog-footer">
  11412. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11413. </span>
  11414. </el-dialog>
  11415. <el-dialog
  11416. title="分组设置"
  11417. :visible.sync="dialogVisibleGroup2"
  11418. :append-to-body="true"
  11419. width="650px"
  11420. :before-close="handleClose"
  11421. class="dialog_diy"
  11422. >
  11423. <div class="groupBox">
  11424. <div v-if="groupJson2.group" class="groupContent">
  11425. <div class="groupTitle">请设置小组数量及名称</div>
  11426. <div
  11427. v-for="(item, index) in groupJson2.group"
  11428. :key="index"
  11429. class="groupName"
  11430. >
  11431. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11432. <el-input
  11433. v-model="item.name"
  11434. placeholder="请输入名称..."
  11435. style="width: 250px"
  11436. ></el-input>
  11437. <!-- <div class="groupBtn">
  11438. <el-button type="primary" size="small" @click="addGroup(index)">
  11439. 添加</el-button>
  11440. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11441. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11442. </div> -->
  11443. </div>
  11444. </div>
  11445. <div class="groupContent">
  11446. <div class="groupTitle">请设置每组人数</div>
  11447. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11448. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11449. <el-input
  11450. v-model="groupJson.number"
  11451. style="width: 150px"
  11452. placeholder="请输入2-10的数字"
  11453. @change="numberPan"
  11454. ></el-input>
  11455. </div>
  11456. </div>
  11457. <span slot="footer" class="dialog-footer">
  11458. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11459. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11460. </span>
  11461. </el-dialog>
  11462. <el-dialog
  11463. title="作业提交"
  11464. :visible.sync="dialogVisibleGroupWork"
  11465. :append-to-body="true"
  11466. width="500px"
  11467. :before-close="handleClose"
  11468. class="dialog_change"
  11469. >
  11470. <div class="marginT">
  11471. <div>上传文件</div>
  11472. <div
  11473. class="chapter_add"
  11474. @click="addImg($event)"
  11475. v-if="studyJuri[0].cover.length == 0"
  11476. >
  11477. <div class="up_photo">
  11478. <img src="../../assets/icon/uploadImg.png" alt />
  11479. </div>
  11480. <!-- <input
  11481. type="file"
  11482. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11483. style="display: none"
  11484. @change="beforeUpload1($event, 1)"
  11485. /> -->
  11486. <input
  11487. type="file"
  11488. accept="*"
  11489. style="display: none"
  11490. @change="beforeUpload1($event, 1)"
  11491. />
  11492. </div>
  11493. <!-- capture="camera" -->
  11494. <div
  11495. class="chapter_add"
  11496. style="
  11497. display: flex;
  11498. width: 100%;
  11499. flex-direction: row;
  11500. flex-wrap: wrap;
  11501. justify-content: flex-start;
  11502. padding: 15px 0;
  11503. "
  11504. v-if="studyJuri[0].cover.length > 0"
  11505. >
  11506. <div class="upCover">
  11507. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11508. <img :src="word" alt v-else-if="fileType == 1" />
  11509. <img :src="video" alt v-else-if="fileType == 2" />
  11510. <img :src="word2" alt v-else-if="fileType == 3" />
  11511. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11512. <div class="deleteWord" @click="clean(1)">
  11513. <img src="../../assets/icon/deleteWorks.png" alt />
  11514. </div>
  11515. </div>
  11516. </div>
  11517. </div>
  11518. <div
  11519. class="upload_send"
  11520. @click="addCourseWorks2(taskCount)"
  11521. v-if="!proVisible"
  11522. >
  11523. 提交
  11524. </div>
  11525. </el-dialog>
  11526. <el-dialog
  11527. title="修改分组"
  11528. :visible.sync="dialogVisibleUpdateGroup"
  11529. :append-to-body="true"
  11530. width="350px"
  11531. :before-close="handleClose"
  11532. class="dialog_diy"
  11533. >
  11534. <div>
  11535. <h2>
  11536. {{ this.updateGroupUser.name }}
  11537. </h2>
  11538. <div style="color: rgb(171 171 171); margin-top: 10px">
  11539. 请选择要进入的分组
  11540. </div>
  11541. <el-radio-group v-model="checkChair">
  11542. <el-radio
  11543. style="display: block; margin-top: 20px"
  11544. v-for="(item, index) in updateGroupArray"
  11545. :label="item.label"
  11546. :key="index"
  11547. >{{ item.name }}</el-radio
  11548. >
  11549. </el-radio-group>
  11550. </div>
  11551. <span slot="footer" class="dialog-footer">
  11552. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11553. <el-button type="primary" @click="updateChair">确定</el-button>
  11554. </span>
  11555. </el-dialog>
  11556. <el-dialog
  11557. title="移除组员"
  11558. :visible.sync="dialogVisibleDeleteGroup"
  11559. :append-to-body="true"
  11560. width="350px"
  11561. :before-close="handleClose"
  11562. class="dialog_diy"
  11563. >
  11564. <div>
  11565. <h2>
  11566. {{ this.deleteGroupArray.name }}
  11567. </h2>
  11568. <div style="color: rgb(171 171 171); margin-top: 10px">
  11569. 请选择要删除的组员
  11570. </div>
  11571. <el-checkbox-group v-model="checkDeleteGroup">
  11572. <el-checkbox
  11573. style="display: flex; margin-top: 20px"
  11574. v-for="(item, index) in deleteGroupUser"
  11575. :label="item.userid"
  11576. :key="index"
  11577. >{{ item.name }}</el-checkbox
  11578. >
  11579. </el-checkbox-group>
  11580. </div>
  11581. <span slot="footer" class="dialog-footer">
  11582. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11583. <el-button type="primary" @click="deleteChair">确定</el-button>
  11584. </span>
  11585. </el-dialog>
  11586. <el-dialog
  11587. title="批量上传"
  11588. :visible.sync="dialogVisiblePl"
  11589. :append-to-body="true"
  11590. width="700px"
  11591. :before-close="handleClose"
  11592. class="dialog_change"
  11593. >
  11594. <div class="marginT">
  11595. <div class="plworkBox">
  11596. <div
  11597. class="chapter_add"
  11598. style="
  11599. display: flex;
  11600. width: 150px;
  11601. flex-direction: row;
  11602. flex-wrap: wrap;
  11603. justify-content: flex-start;
  11604. margin: 0 10px 10px 0;
  11605. "
  11606. v-for="(item, index) in plworkFile"
  11607. :key="index"
  11608. >
  11609. <div class="upCover2">
  11610. <img
  11611. :src="item.url"
  11612. alt
  11613. v-if="item.fileType == 1"
  11614. @click="previewImg(item.url)"
  11615. />
  11616. <img :src="word" alt v-else-if="item.fileType == 4" />
  11617. <img :src="video" alt v-else />
  11618. <!-- <span class="picName">{{ item.name }}</span> -->
  11619. <!-- <el-input
  11620. v-model="item.username"
  11621. placeholder="请输入学生名字"
  11622. style="margin-top: 10px"
  11623. ></el-input> -->
  11624. <div
  11625. class="pl_select_box"
  11626. @click="
  11627. getUpdateMore(true, checkUpload(), item.username, index)
  11628. "
  11629. >
  11630. {{ getSName(item.username) }}
  11631. </div>
  11632. <!-- <el-select
  11633. style="margin-top: 10px"
  11634. v-model="item.username"
  11635. filterable
  11636. allow-create
  11637. placeholder="请选择学生"
  11638. >
  11639. <el-option
  11640. v-for="item1 in checkUpload()"
  11641. :key="item1.userid"
  11642. :label="item1.name ? item1.name : item1.username"
  11643. :value="item1.userid"
  11644. >
  11645. </el-option>
  11646. </el-select> -->
  11647. <div class="deleteWord" @click="clean2(index)">
  11648. <img src="../../assets/icon/deleteWorks.png" alt />
  11649. </div>
  11650. </div>
  11651. </div>
  11652. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11653. <div class="up_photo2">
  11654. <img src="../../assets/icon/plwork.png" alt />
  11655. <span>点击上传文件</span>
  11656. </div>
  11657. <input
  11658. type="file"
  11659. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11660. multiple="multiple"
  11661. style="display: none"
  11662. @change="beforeUpload3($event, 6)"
  11663. />
  11664. </div>
  11665. </div>
  11666. </div>
  11667. <!-- capture="camera" -->
  11668. <div
  11669. class="upload_send"
  11670. @click="addCourseWorksPl(taskCount)"
  11671. v-if="!proVisible2"
  11672. >
  11673. 提交
  11674. </div>
  11675. </el-dialog>
  11676. <el-dialog
  11677. title="修改名称"
  11678. :visible.sync="dialogVisibleSname"
  11679. width="500px"
  11680. :before-close="handleClose"
  11681. class="dialog_diy"
  11682. center
  11683. >
  11684. <div
  11685. style="
  11686. text-align: center;
  11687. display: flex;
  11688. align-items: center;
  11689. justify-content: center;
  11690. "
  11691. >
  11692. <span class="tian1">名称</span>
  11693. <div
  11694. class="pl_select_box"
  11695. style="margin-left: 10px; width: 200px"
  11696. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11697. >
  11698. {{ getSName(worksSName) }}
  11699. </div>
  11700. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11701. placeholder="请选择学生">
  11702. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11703. :value="item.userid">
  11704. </el-option>
  11705. </el-select> -->
  11706. <!-- <el-input
  11707. v-model="worksSName"
  11708. style="width: 250px; margin: 15px 0px"
  11709. ></el-input> -->
  11710. </div>
  11711. <span slot="footer" class="dialog-footer">
  11712. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11713. <el-button type="primary" @click="updateName">确 定</el-button>
  11714. </span>
  11715. </el-dialog>
  11716. <el-dialog
  11717. title="英语写作"
  11718. :visible.sync="engDialogVisible"
  11719. :append-to-body="true"
  11720. width="800px"
  11721. :before-close="handleClose"
  11722. class="dialog_diy"
  11723. >
  11724. <onlineWrite
  11725. v-if="engDialogVisible"
  11726. :englishList="englishList"
  11727. :myAnswerList1="myAnswerList1"
  11728. ref="engJson"
  11729. ></onlineWrite>
  11730. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11731. <el-button @click="engDialogVisible = false">取 消</el-button>
  11732. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11733. </span>
  11734. </el-dialog>
  11735. <el-dialog
  11736. title="英语写作"
  11737. :visible.sync="engUpdateDialogVisible"
  11738. :append-to-body="true"
  11739. width="800px"
  11740. :before-close="handleClose"
  11741. class="dialog_diy fullStyle"
  11742. >
  11743. <div class="engUpBox">
  11744. <div class="engUpTop">
  11745. <div class="engTitle">
  11746. <div>作文题目:</div>
  11747. <div>{{ englishList1.engTitle }}</div>
  11748. </div>
  11749. <div class="engText">
  11750. <div>作文内容:</div>
  11751. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11752. </div>
  11753. </div>
  11754. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11755. <div class="oldBox">
  11756. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11757. <div class="oldText">
  11758. <div class="detailBox">
  11759. <div class="oldDetail">
  11760. <div>标题:</div>
  11761. <div>{{ oldEnglishJson.engTitle }} </div>
  11762. </div>
  11763. <div class="oldDetail1">
  11764. <div>正文:</div>
  11765. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11766. </div>
  11767. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11768. <div>图片:</div>
  11769. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11770. </div>
  11771. </div>
  11772. </div>
  11773. </div>
  11774. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11775. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11776. <div class="oldText">
  11777. <div class="detailBox" style="position: relative;">
  11778. <div class="oldDetail">
  11779. <div>标题:</div>
  11780. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11781. <div v-else v-html="newEnglishList.engTitle"></div>
  11782. </div>
  11783. <div class="oldDetail">
  11784. <div>正文:</div>
  11785. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11786. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11787. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11788. </div>
  11789. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11790. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11791. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11792. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11793. </div>
  11794. </div>
  11795. </div>
  11796. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11797. <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">
  11798. <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>
  11799. <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>
  11800. </div>
  11801. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11802. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11803. <div class="detailBox" style="position: relative;">
  11804. <div class="oldDetail">
  11805. <div>标题:</div>
  11806. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11807. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11808. </div>
  11809. <div class="oldDetail">
  11810. <div>正文:</div>
  11811. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11812. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11813. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11814. </div>
  11815. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11816. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11817. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11818. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11819. </div>
  11820. </div>
  11821. <div class="oldText" v-else-if="newEngIndex == -1">
  11822. <div class="detailBox" style="position: relative;">
  11823. <div class="oldDetail">
  11824. <div>标题:</div>
  11825. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11826. <div v-else v-html="newEnglishList.engTitle"></div>
  11827. </div>
  11828. <div class="oldDetail">
  11829. <div>正文:</div>
  11830. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11831. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11832. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11833. </div>
  11834. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11835. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11836. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11837. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11838. </div>
  11839. </div>
  11840. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11841. <div class="detailBox" style="position: relative;">
  11842. <div class="oldDetail">
  11843. <div>标题:</div>
  11844. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11845. <div v-else>
  11846. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11847. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11848. </div>
  11849. </div>
  11850. <div class="oldDetail">
  11851. <div>正文:</div>
  11852. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11853. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11854. <div v-else>
  11855. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11856. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11857. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11858. </div>
  11859. </div>
  11860. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11861. <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>
  11862. <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>
  11863. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11864. </div>
  11865. </div>
  11866. </div>
  11867. </div>
  11868. </div>
  11869. <span slot="footer" class="dialog-footer">
  11870. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11871. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11872. </span>
  11873. </el-dialog>
  11874. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11875. <interVideo
  11876. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11877. :videoJson="videoJson"
  11878. :userid="userid"
  11879. :id="id"
  11880. :courseType="courseType"
  11881. :taskCount="taskCount"
  11882. :toolindex="toolindex"
  11883. :videoType="videoType"
  11884. ></interVideo>
  11885. <UpdateMore
  11886. :dialogVisibleMember.sync="dialogVisibleMember"
  11887. :cList="uploadStudentJuri"
  11888. :userid="userid"
  11889. :searchTN="worksSName2"
  11890. @setPlname="setPlname"
  11891. ></UpdateMore>
  11892. <wordCloud
  11893. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11894. :data="wordCloudData"
  11895. ></wordCloud>
  11896. <el-dialog
  11897. title="挑人"
  11898. :visible.sync="dialogVisiblePickPeople"
  11899. width="650px"
  11900. :before-close="handleClose"
  11901. class="dialog_diy"
  11902. center
  11903. >
  11904. <div class="pick_box">
  11905. <div
  11906. class="noWorksName"
  11907. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11908. v-for="(item, index) in uploadStudentJuri"
  11909. :key="index"
  11910. @click="pickStudent(item)"
  11911. >
  11912. {{ item.name }}
  11913. </div>
  11914. </div>
  11915. </el-dialog>
  11916. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11917. :englishVoiceJson='englishVoiceJson'
  11918. :userid="userid"
  11919. :id="id"
  11920. :courseType="courseType"
  11921. :taskCount="taskCount"
  11922. :toolindex="toolindex"
  11923. @selectSWorks="selectSWorks"
  11924. @selectStudent="selectStudent"
  11925. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11926. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11927. :userid="userid"
  11928. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11929. :commentDetail="commentDetail"
  11930. :courseDetail="courseDetail"
  11931. :wScore="wScore"
  11932. :scoreDetail="scoreDetail"
  11933. @selectSWorks="selectSWorks"
  11934. @selectStudent="selectStudent"></checkEnglishVoice>
  11935. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11936. <choseWorksDetailDialog
  11937. ref="choseWorksDetailDialogRef"
  11938. :worksStudentData="this.worksStudent"
  11939. :noWorksSData="noWorksS"
  11940. :chapInfoListData="chapInfoList"
  11941. :courseType="courseType"
  11942. :taskCount="taskCount"
  11943. @deleteWorks="deleteWorks"
  11944. @openTools="openTools"
  11945. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11946. />
  11947. </div>
  11948. </template>
  11949. <script>
  11950. import "../../common/aws-sdk-2.235.1.min.js";
  11951. // import pdf from "../components/pdf3";
  11952. import pdf from "../components/vpdf";
  11953. import AskStatic from "../components/askStatic";
  11954. import AskStatic2 from "../components/askStatic2";
  11955. import AnswerData2 from "../components/answerData2";
  11956. import AnswerData from "../components/answerData";
  11957. import EditorBar from "../tools/wangEnduit.vue";
  11958. import Table from "../tools/table.vue";
  11959. import Time from "../tools/time.vue";
  11960. import Mind from "../tools/jsmind.vue";
  11961. import Sunburst from "../tools/sunburst";
  11962. import SeeBoard from "../tools/seeBoard";
  11963. import * as imageConversion from "image-conversion";
  11964. import Audio from "../components/audio.vue";
  11965. import ImgDraw from "../tools/imgDraw/imgDraw";
  11966. import { Empty } from "element-ui";
  11967. import RecordRTC from "recordrtc";
  11968. import interVideo from "../interVideo/index.vue";
  11969. import UpdateMore from "../updateMore/updateMore.vue";
  11970. import wordCloud from "../wordCloud/index.vue";
  11971. import axios from "axios";
  11972. import JSZip from "jszip";
  11973. import FileSaver from "file-saver";
  11974. import onlineWrite from "./commpont/onlineWrite";
  11975. import englishEva from "../components/englishEva";
  11976. import * as Diff from 'diff'
  11977. import EnglishVoice from '../EnglishVoice2/index.vue'
  11978. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11979. import correctText from '../components/correctText.vue'
  11980. import scoreItem from '../scoreList/scoreItem.vue'
  11981. import scoreZong from '../scoreZong/index.vue'
  11982. import classRoomHelper from '../classRoomHelper/index.vue'
  11983. import MarkdownIt from "markdown-it";
  11984. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  11985. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  11986. import { v4 as uuidv4 } from "uuid";
  11987. const getFile = (url) => {
  11988. return new Promise((resolve, reject) => {
  11989. var credentials = {
  11990. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11991. secretAccessKey: "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",
  11992. }; //秘钥形式的登录上传
  11993. window.AWS.config.update(credentials);
  11994. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11995. let url2 = url;
  11996. let _url2 = "";
  11997. if (
  11998. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11999. ) {
  12000. _url2 = url2.split(
  12001. "https://view.officeapps.live.com/op/view.aspx?src="
  12002. )[1];
  12003. } else {
  12004. _url2 = url2;
  12005. }
  12006. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12007. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12008. var params = {
  12009. Bucket: "ccrb",
  12010. Key: name
  12011. };
  12012. s3.getObject(params, function (err, data) {
  12013. if (err) {
  12014. console.log(err, err.stack)
  12015. resolve({ data: 1 });
  12016. }else {
  12017. resolve({ data: data.Body });
  12018. console.log(data);
  12019. } // sxuccessful response
  12020. });
  12021. // axios({
  12022. // method: "get",
  12023. // url,
  12024. // responseType: "blob",
  12025. // })
  12026. // .then((data) => {
  12027. // resolve({ data: data.data });
  12028. // })
  12029. // .catch((error) => {
  12030. // resolve({ data: 1 });
  12031. // // reject(error.toString());
  12032. // });
  12033. });
  12034. };
  12035. export default {
  12036. components: {
  12037. EditorBar,
  12038. Time,
  12039. pdf,
  12040. AskStatic,
  12041. AskStatic2,
  12042. Mind,
  12043. Sunburst,
  12044. SeeBoard,
  12045. AnswerData2,
  12046. AnswerData,
  12047. Audio,
  12048. ImgDraw,
  12049. Table,
  12050. interVideo,
  12051. UpdateMore,
  12052. wordCloud,
  12053. onlineWrite,
  12054. englishEva,
  12055. EnglishVoice,
  12056. checkEnglishVoice,
  12057. correctText,
  12058. scoreItem,
  12059. classRoomHelper,
  12060. scoreZong,
  12061. statisticalAnalysis,
  12062. choseWorksDetailDialog
  12063. },
  12064. data() {
  12065. return {
  12066. bg: null,
  12067. drawShow: false,
  12068. dialogVisible: false,
  12069. dialogVisiblePl: false,
  12070. commentDialogVisible: false,
  12071. dialogVisibleMember: false,
  12072. dialogVisibleWordCloud: false,
  12073. videoVisible: false,
  12074. isStar: false,
  12075. studentEvalDialogVisible: false,
  12076. studentEvalDialogVisibleTeacher: false,
  12077. dialogVisibleSelect: false,
  12078. dialogVisibleSelectTeacher: false,
  12079. dialogVisibleScore: false,
  12080. dialogVisibleENScore: false,
  12081. dialogVisibleSentence: false,
  12082. dialogVisibleSentenceTeacher: false,
  12083. dialogVisibleSentence1: false,
  12084. dialogVisibleWorks: false,
  12085. dialogVisibleTable: false,
  12086. dialogVisibleTableTeacher: false,
  12087. dialogVisibleWord: false,
  12088. dialogVisibleWordTeacher: false,
  12089. dialogVisibleTable2: false,
  12090. dialogVisibleTable3: false,
  12091. dialogVisibleGroupWork: false,
  12092. dialogVisibleUpdateGroup: false,
  12093. dialogVisibleDeleteGroup: false,
  12094. dialogVisibleSname: false,
  12095. dialogVisibleVideo: false,
  12096. dialogVisiblePickPeople: false,
  12097. worksSName: "",
  12098. classJuri: [],
  12099. uploadStudentJuri: [],
  12100. uploadCid: "",
  12101. snameWid: "",
  12102. sStudent: {},
  12103. sTool: "",
  12104. bzText: "",
  12105. commentDetail: [],
  12106. selectAnswer: [],
  12107. videoDetail: {},
  12108. selectJson: {},
  12109. eScore: { eBzText: "", eStar: [] },
  12110. id: this.$route.query.courseId,
  12111. userid: this.$route.query.userid,
  12112. classId: this.$route.query.cid,
  12113. // courseTypeLine: this.$route.query.type,
  12114. oid: this.$route.query.oid,
  12115. org: this.$route.query.org,
  12116. tType: this.$route.query.tType,
  12117. courseType: this.$route.query.type,
  12118. screenType: this.$route.query.screenType,
  12119. tcid2: this.$route.query.tcid,
  12120. tcid: "",
  12121. pptImgUrl: "",
  12122. pptImgUrl1: "",
  12123. commentText: "",
  12124. full: false,
  12125. sIsOpen: false,
  12126. IsLookOpen: false,
  12127. IsFollow: false,
  12128. pzDialog: false,
  12129. contentDialog: false,
  12130. mlDialog: false,
  12131. type: 1,
  12132. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12133. sentenceList1: [],
  12134. tableJson: [],
  12135. tableJsonO: [],
  12136. wordJson: [],
  12137. wordJsonO: [],
  12138. vedio: [],
  12139. text: [],
  12140. textList: [],
  12141. line: [],
  12142. lineList: [],
  12143. chapTools: [],
  12144. chapToolList: [],
  12145. file: [],
  12146. fileC: [],
  12147. vedioTime: [],
  12148. upToolImg: "",
  12149. preTime: 0,
  12150. rateList: {
  12151. ca: 0,
  12152. },
  12153. rateParams: [],
  12154. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12155. studyJuri: [
  12156. {
  12157. content: "",
  12158. cover: [],
  12159. upVedio: [],
  12160. upFile: [],
  12161. },
  12162. ],
  12163. isClose: 0,
  12164. plworkFile: [],
  12165. mr: require("../../assets/vedioPic.png"),
  12166. word: require("../../assets/icon/isWord.png"),
  12167. word2: require("../../assets/icon/word2.png"),
  12168. video: require("../../assets/icon/isVideo.png"),
  12169. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12170. likes: require("../../assets/icon/comment/likes.png"),
  12171. scoreImg: require("../../assets/score.png"),
  12172. courseDetail: {},
  12173. reply: "",
  12174. isSelect: false,
  12175. chapInfo: [],
  12176. chapInfoList: [],
  12177. taskCount: 0,
  12178. imgList: [],
  12179. noImgList: [],
  12180. pzList: [],
  12181. timeWorkList: [],
  12182. PlTextList: [
  12183. "Excellent!",
  12184. "nice!",
  12185. "很有创意!",
  12186. "还不错哦~",
  12187. "继续努力哦~",
  12188. ],
  12189. isClickNav: "",
  12190. navId: "",
  12191. playerOptions: {
  12192. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12193. autoplay: false, //如果true,浏览器准备好时开始回放。
  12194. muted: false, // 默认情况下将会消除任何音频。
  12195. loop: false, // 导致视频一结束就重新开始。
  12196. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12197. language: "zh-CN",
  12198. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12199. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12200. sources: [
  12201. {
  12202. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12203. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12204. },
  12205. ],
  12206. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12207. // poster: dataRes.imgUrl, //你的封面地址
  12208. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12209. controlBar: {
  12210. timeDivider: true, //当前时间和持续时间的分隔符
  12211. durationDisplay: true, //显示持续时间
  12212. remainingTimeDisplay: false, //是否显示剩余时间功能
  12213. fullscreenToggle: true, //全屏按钮
  12214. },
  12215. },
  12216. playerOptions1: {
  12217. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12218. autoplay: false, //如果true,浏览器准备好时开始回放。
  12219. muted: false, // 默认情况下将会消除任何音频。
  12220. loop: false, // 导致视频一结束就重新开始。
  12221. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12222. language: "zh-CN",
  12223. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12224. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12225. sources: [
  12226. {
  12227. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12228. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12229. },
  12230. ],
  12231. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12232. // poster: dataRes.imgUrl, //你的封面地址
  12233. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12234. controlBar: {
  12235. timeDivider: true, //当前时间和持续时间的分隔符
  12236. durationDisplay: true, //显示持续时间
  12237. remainingTimeDisplay: false, //是否显示剩余时间功能
  12238. fullscreenToggle: true, //全屏按钮
  12239. },
  12240. },
  12241. playerO: {},
  12242. noneBtnImg: false,
  12243. proVisible: false,
  12244. proVisible2: false,
  12245. progress: 0,
  12246. isFinishSize: 0,
  12247. isAllSize: 0,
  12248. questionAnswer: "",
  12249. answerQ: "", //问答标题
  12250. rateJson: [],
  12251. wbCount: 0,
  12252. wordCount: 0,
  12253. mindCount: 0,
  12254. askCount: 0,
  12255. noteCount: 0,
  12256. mindNetWorkCount: 0,
  12257. libraryCount: 0,
  12258. workCount: 0,
  12259. timeCount: 0,
  12260. answerCount: 0,
  12261. trainCount: 0,
  12262. evalCount: 0,
  12263. dialogImageUrl: "",
  12264. pictureDialog: false,
  12265. toolTypeList: [],
  12266. dialogVisible1: false,
  12267. dialogVisible2: false,
  12268. dialogVisible3: false,
  12269. dialogVisible6: false,
  12270. dialogVisible4: false,
  12271. isNoHomeWork: false,
  12272. dialogVisible5: false,
  12273. dialogVisible5Teacher: false,
  12274. dialogVisibleChoice: false,
  12275. dialogVisibleChoiceTeacher: false,
  12276. answerDialogVisible: false,
  12277. answerDialogVisibleTeacher: false,
  12278. juriVisible: false,
  12279. timeDialogVisible: false,
  12280. replyDialogVisible: false,
  12281. toolDialogVisible: false,
  12282. engDialogVisible: false,
  12283. engUpdateDialogVisible:false,
  12284. engEvaDialogVisible: false,
  12285. evaEngJson: {
  12286. teacherJson: {},
  12287. studentJson: {},
  12288. message: {},
  12289. },
  12290. isNoUserid:false,
  12291. engListLength:0,
  12292. engWid:"",
  12293. newEnglishList:{
  12294. engTitle:"",
  12295. engText:"",
  12296. },
  12297. newEnglishList1:[],
  12298. oldEnglishJson:{},
  12299. oldEnglishJson1:{},
  12300. englishList1:{},
  12301. englishList:{},
  12302. myAnswerList1:{},
  12303. topHeight:0,
  12304. newEngIndex:-1,
  12305. englishToolIndex:0,
  12306. userMes:{},
  12307. englishToolIndex:0,
  12308. replyIndex: 0,
  12309. replyPid: "",
  12310. radio: [],
  12311. isAsk: false,
  12312. askJson: {
  12313. askCount: 1,
  12314. askTitle: "",
  12315. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12316. },
  12317. testJson: {},
  12318. englishList: {},
  12319. topHeight:0,
  12320. checkJson: [],
  12321. askList: [],
  12322. answerList: [],
  12323. navList: [],
  12324. addPzDialog: false,
  12325. pzConText: "",
  12326. worksStudent: [],
  12327. isCloseList: [],
  12328. workStudent: [],
  12329. groupStudent: [],
  12330. groupStudentUid: [],
  12331. noWorksS: [],
  12332. isWorksS: [],
  12333. noWorksStudent: [],
  12334. toolindex: 0,
  12335. toolDetailIndex: null,
  12336. groupIndex: 0,
  12337. workTypeB: false,
  12338. workTypeC: false,
  12339. isAnswer: false,
  12340. isHovered: false,
  12341. isHovered1: false,
  12342. isHovered2: false,
  12343. commentTagShow:0,
  12344. timer: null,
  12345. opertimer: null,
  12346. showType: '',
  12347. fileType: 0,
  12348. showPDF: false,
  12349. noteName: "",
  12350. evaJuri: [],
  12351. evalua: "",
  12352. eTitle: "",
  12353. eName: "",
  12354. eJson: {},
  12355. fid: "", //一级
  12356. sid: "", //二级
  12357. tid: "", //二级
  12358. typeMode: 1,
  12359. eJSONNum: 0,
  12360. Etype: 1,
  12361. data: {
  12362. meta: {
  12363. name: "example",
  12364. author: "dd@163.com",
  12365. version: "0.2",
  12366. },
  12367. format: "node_array",
  12368. data: [{ id: "root", isroot: true, topic: "" }],
  12369. },
  12370. fullDialogVisible: false,
  12371. fulltype: "",
  12372. fullUrl: "",
  12373. commentIndexJson: {},
  12374. Stbodywidth: 0,
  12375. ispzType: 0,
  12376. pzType: 1,
  12377. wScore: 0,
  12378. scoreDetail: "",
  12379. videoStart: false,
  12380. recorder: null,
  12381. groupJson: {},
  12382. islock: false,
  12383. groupJson2: {},
  12384. dialogVisibleGroup: false,
  12385. dialogVisibleGroup2: false,
  12386. updateGroupArray: [],
  12387. updateGroupUser: {},
  12388. deleteGroupUser: [],
  12389. deleteGroupArray: {},
  12390. checkChair: "",
  12391. checkDeleteGroup: [],
  12392. inviteCode: "",
  12393. courseGroupStudent: [],
  12394. courseGroupStudentUid: [],
  12395. courseGroup: {},
  12396. isGroup: false,
  12397. toolIndex: null,
  12398. tool: {},
  12399. isWorkTool: [
  12400. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12401. ], //, 40
  12402. videoJson: {},
  12403. videoType:0,
  12404. toolType: 0,
  12405. checktoolArray: [],
  12406. vChapterData: [],
  12407. isUpdateToolDetail: false,
  12408. isUpdateToolDetail1: false,
  12409. updateToolDetailInner: "",
  12410. checkboxList: [],
  12411. plIndex: "",
  12412. worksSName2: "",
  12413. worksSid: "",
  12414. wordCloudData: [],
  12415. isPickStudent: [],
  12416. pzStype: 1,
  12417. myAnList: {},
  12418. downLoading: false,
  12419. greyType: false,
  12420. correctWord: [],
  12421. EnglishVoiceDialog: false,
  12422. englishVoiceJson: {},
  12423. englishVoiceJsonWork:[],
  12424. scoreList:{
  12425. listdata:[],
  12426. isScoreList:[],
  12427. },
  12428. classRoomHelperWidth: '85px',
  12429. orgArray:[],
  12430. oidArray:[],
  12431. splitScreenData:{
  12432. isOpen:false,
  12433. userId:"",
  12434. uid:"",
  12435. myUid:"",
  12436. loading:false,
  12437. behavior:null,
  12438. }
  12439. };
  12440. },
  12441. methods: {
  12442. getAIJ(){
  12443. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12444. let oid = res.data[0];
  12445. let org = res.data[1];
  12446. let oidArray = [];
  12447. let orgArray = [];
  12448. oid.forEach(i=>oidArray.push(i.oid))
  12449. org.forEach(i=>orgArray.push(i.oid))
  12450. this.orgArray = orgArray;
  12451. this.oidArray = oidArray;
  12452. })
  12453. },
  12454. insertMemorandum(_html){//保存行为操作
  12455. //variable
  12456. //btn
  12457. let params = [{
  12458. uid:this.userid,
  12459. courseId:this.id+(this.tcid2?this.tcid2:''),
  12460. content:_html
  12461. }]
  12462. console.log(params)
  12463. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12464. if(res.data==1){
  12465. console.log('保存操作成功')
  12466. }else{
  12467. console.log('保存操作失败')
  12468. }
  12469. }).catch(e=>{
  12470. console.log('保存操作失败')
  12471. console.log(e)
  12472. })
  12473. },
  12474. gx(){
  12475. this.$forceUpdate();
  12476. },
  12477. isUpdateCorrect(t,p){
  12478. if(this.greyType == false){
  12479. this.isUpdateText = t;
  12480. this.greyType = true;
  12481. }else{
  12482. if(p == 1){
  12483. this.newEnglishList.engText = this.isUpdateText;
  12484. }else if(p == 2){
  12485. this.oldEnglishJson1.engText = this.isUpdateText;
  12486. }else if(p == 3){
  12487. this.newEnglishList.engText = this.isUpdateText;
  12488. }else{
  12489. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12490. }
  12491. this.greyType = false
  12492. }
  12493. },
  12494. aiCorrect(t,p){
  12495. let aiText = "";
  12496. const loading = this.$loading.service({
  12497. background: "rgba(255, 255, 255)",
  12498. target: document.querySelectorAll(".loadingText")[0],
  12499. });
  12500. let param = {
  12501. model: "gpt-3.5-turbo",
  12502. temperature: 0,
  12503. max_tokens: 2048,
  12504. top_p: 1,
  12505. frequency_penalty: 0,
  12506. presence_penalty: 0,
  12507. messages: [
  12508. {
  12509. role: "user",
  12510. content:
  12511.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12512. },
  12513. ],
  12514. uid: this.userid,
  12515. stream: false,
  12516. };
  12517. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12518. (res) => {
  12519. if (
  12520. res.data.FunctionResponse &&
  12521. res.data.FunctionResponse.result &&
  12522. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12523. ) {
  12524. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12525. return;
  12526. }
  12527. aiText =
  12528. res.data.FunctionResponse.choices[0].message.content;
  12529. aiText = aiText.replace(/%/g,"%25");
  12530. // let w = "";
  12531. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12532. // for(var k = 0;k<a.length;k++){
  12533. // //diffWordsWithSpace
  12534. // if(a.length > 1){
  12535. // if(a[k].added == true){
  12536. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12537. // }else if(a[k].removed == true){
  12538. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12539. // }else{
  12540. // w += '<span>' + a[k].value + '</span>';
  12541. // }
  12542. // }else{
  12543. // if(p == 1){
  12544. // w = this.newEnglishList.engText;
  12545. // }else if(p == 2){
  12546. // w = this.oldEnglishJson1.engText;
  12547. // }else if(p == 3){
  12548. // w = this.newEnglishList.engText;
  12549. // }else{
  12550. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12551. // }
  12552. // }
  12553. // }
  12554. if(p == 1){
  12555. this.newEnglishList.engText = aiText;
  12556. }else if(p == 2){
  12557. this.oldEnglishJson1.engText = aiText;
  12558. }else if(p == 3){
  12559. this.newEnglishList.engText = aiText;
  12560. }else{
  12561. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12562. }
  12563. loading.close();
  12564. },
  12565. (err) => {
  12566. console.log(err);
  12567. loading.close();
  12568. }
  12569. );
  12570. },
  12571. addToolChoose() {
  12572. if (!this.checktoolArray.length) {
  12573. this.$message.error("请选择要添加的任务");
  12574. return;
  12575. }
  12576. if (
  12577. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12578. this.taskCount
  12579. ].toolChoose[0].tool.length
  12580. ) {
  12581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12582. this.taskCount
  12583. ].toolChoose[0].tool = this.checktoolArray;
  12584. } else {
  12585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12586. this.taskCount
  12587. ].toolChoose.push({
  12588. tool: this.checktoolArray,
  12589. toolDetail: "",
  12590. toolType: 0,
  12591. askCount: 1,
  12592. askTitle: "",
  12593. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12594. });
  12595. }
  12596. let params = [
  12597. {
  12598. cid: this.id,
  12599. chapters: JSON.stringify(this.chapInfoList),
  12600. uid: this.userid,
  12601. unitIndex: this.courseType,
  12602. },
  12603. ];
  12604. this.ajax
  12605. .post(this.$store.state.api + "updateWorkNew4", params)
  12606. .then((res) => {
  12607. this.$message({
  12608. message: "添加成功",
  12609. type: "success",
  12610. });
  12611. this.checktoolArray = [];
  12612. this.getCourseDetail(2);
  12613. this.checkBz(
  12614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12615. this.taskCount
  12616. ].toolChoose.length - 1
  12617. );
  12618. this.toolDialogVisible = false;
  12619. this.refreshCourse();
  12620. this.$forceUpdate();
  12621. })
  12622. .catch((err) => {
  12623. console.error(err);
  12624. });
  12625. },
  12626. checkBz(index) {
  12627. this.isUpdateToolDetail = false;
  12628. this.$forceUpdate();
  12629. setTimeout(() => {
  12630. document.scrollingElement.scrollTop =
  12631. document.querySelectorAll(".filebox")[index].offsetTop +
  12632. document.querySelector(".student_body").offsetTop;
  12633. }, 500);
  12634. },
  12635. updateToolDetail(i, type) {
  12636. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12637. this.toolDetailIndex = i
  12638. this.isUpdateToolDetail1 = true;
  12639. setTimeout(() => {
  12640. this.updateToolDetailInner = JSON.parse(
  12641. JSON.stringify(
  12642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12643. this.taskCount
  12644. ].toolChoose[i].toolDetail
  12645. )
  12646. );
  12647. document.querySelector(".checkTextArea").focus();
  12648. }, 0);
  12649. } else if((this.isUpdateToolDetail1 && type != 2)){
  12650. // this.toolDetailIndex = i;
  12651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12652. this.taskCount
  12653. ].toolChoose[i].toolDetail = JSON.parse(
  12654. JSON.stringify(this.updateToolDetailInner)
  12655. );
  12656. let params = [
  12657. {
  12658. cid: this.id,
  12659. chapters: JSON.stringify(this.chapInfoList),
  12660. uid: this.userid,
  12661. unitIndex: this.courseType,
  12662. },
  12663. ];
  12664. this.ajax
  12665. .post(this.$store.state.api + "updateWorkNew4", params)
  12666. .then((res) => {
  12667. this.isUpdateToolDetail1 = false;
  12668. this.$message({
  12669. message: "修改成功",
  12670. type: "success",
  12671. });
  12672. this.toolDetailIndex = null;
  12673. this.updateToolDetailInner = "";
  12674. this.getCourseDetail(2);
  12675. this.$forceUpdate();
  12676. })
  12677. .catch((err) => {
  12678. console.error(err);
  12679. });
  12680. } else if((this.isUpdateToolDetail1 && type == 2)){
  12681. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12682. this.taskCount
  12683. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12684. JSON.stringify(this.updateToolDetailInner)
  12685. );
  12686. let params = [
  12687. {
  12688. cid: this.id,
  12689. chapters: JSON.stringify(this.chapInfoList),
  12690. uid: this.userid,
  12691. unitIndex: this.courseType,
  12692. },
  12693. ];
  12694. this.ajax
  12695. .post(this.$store.state.api + "updateWorkNew4", params)
  12696. .then((res) => {
  12697. this.$message({
  12698. message: "修改成功",
  12699. type: "success",
  12700. });
  12701. this.toolDetailIndex = i;
  12702. this.isUpdateToolDetail1 = true;
  12703. setTimeout(() => {
  12704. this.updateToolDetailInner = JSON.parse(
  12705. JSON.stringify(
  12706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12707. this.taskCount
  12708. ].toolChoose[i].toolDetail
  12709. )
  12710. );
  12711. document.querySelector(".checkTextArea").focus();
  12712. }, 0);
  12713. this.getCourseDetail(2);
  12714. this.$forceUpdate();
  12715. })
  12716. .catch((err) => {
  12717. console.error(err);
  12718. });
  12719. }
  12720. },
  12721. jumpGj(i, j, k, l) {
  12722. for (var z = 0; z < this.navList.length; z++) {
  12723. for (var q = 0; q < this.navList[z].task.length; q++) {
  12724. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12725. this.navList[z].task[q].tool[w].isTool = false;
  12726. }
  12727. }
  12728. }
  12729. console.log(this.navList);
  12730. this.navList[i].task[j].tool[k].isTool =
  12731. !this.navList[i].task[j].tool[k].isTool;
  12732. var a = document.scrollingElement;
  12733. let target = document.querySelector(`#gj${k}`);
  12734. if (target) {
  12735. target.scrollIntoView(true);
  12736. setTimeout(() => {
  12737. a.scrollTop = a.scrollTop - 150;
  12738. }, 0);
  12739. }
  12740. this.navId = ""
  12741. let flag = this.courseType == i;
  12742. let flag2 = this.taskCount == j
  12743. if (l) {
  12744. this.courseType = i;
  12745. // this.navId = l;
  12746. this.taskCount = j;
  12747. this.selectPz();
  12748. this.getHomeWork();
  12749. this.getCourseDetail(2);
  12750. if(flag){
  12751. if(flag2){
  12752. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12753. }else{
  12754. 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>`)
  12755. }
  12756. }else{
  12757. 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>`)
  12758. }
  12759. }
  12760. // var b = this.$refs["bz" + k][0];
  12761. // a.scrollTop = b.offsetTop;
  12762. },
  12763. addTools2(i) {
  12764. if (i == 4) {
  12765. // this.openTools2(4);
  12766. this.$message.error("暂未开放");
  12767. return;
  12768. }
  12769. if (i == 45) {
  12770. // this.openTools2(45);
  12771. this.$message.error("暂未开放");
  12772. return;
  12773. }
  12774. if (i == 47) {
  12775. // this.openTools2(47);
  12776. this.$message.error("暂未开放");
  12777. return;
  12778. }
  12779. if (i == 49) {
  12780. // this.openTools2(49);
  12781. this.$message.error("暂未开放");
  12782. return;
  12783. }
  12784. if (i == 62) {
  12785. // this.openTools(itemTaskIndex, 62, toolIndex);
  12786. this.$message.error("暂未开放");
  12787. return;
  12788. }
  12789. if (i == 15) {
  12790. // this.openTools(itemTaskIndex, 15, toolIndex);
  12791. this.$message.error("暂未开放");
  12792. return;
  12793. }
  12794. if (i == 40) {
  12795. // this.openTools(itemTaskIndex, 40, toolIndex);
  12796. this.$message.error("暂未开放");
  12797. return;
  12798. }
  12799. if (i == 41) {
  12800. // this.openTools(itemTaskIndex, 41, toolIndex);
  12801. this.$message.error("暂未开放");
  12802. return;
  12803. }
  12804. if (i == 42) {
  12805. // this.openTools(itemTaskIndex, 42, toolIndex);
  12806. this.$message.error("暂未开放");
  12807. return;
  12808. }
  12809. if (this.checktoolArray.length > 0) {
  12810. if (this.checktoolArray.indexOf(i) != -1) {
  12811. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12812. } else {
  12813. this.checktoolArray = [];
  12814. this.checktoolArray.push(i);
  12815. }
  12816. } else {
  12817. this.checktoolArray.push(i);
  12818. }
  12819. this.$forceUpdate();
  12820. },
  12821. jump() {
  12822. window.parent.postMessage({ tools: "43" }, "*");
  12823. },
  12824. getUpdateMore(f, checkboxList, searchTN, index) {
  12825. this.dialogVisibleMember = f;
  12826. this.checkboxList = checkboxList;
  12827. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12828. this.plIndex = index;
  12829. },
  12830. setPlname(a) {
  12831. if (this.plworkFile.length) {
  12832. this.plworkFile[this.plIndex].username = a;
  12833. } else {
  12834. this.worksSName = a;
  12835. }
  12836. this.dialogVisibleMember = false;
  12837. },
  12838. previewImg(url,w) {
  12839. this.$hevueImgPreview(url);
  12840. if(w){
  12841. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12842. }
  12843. },
  12844. checkImg(list) {
  12845. if (!list.length) {
  12846. return;
  12847. }
  12848. this.$hevueImgPreview({
  12849. multiple: true, // 开启多图预览模式
  12850. imgList: list, // 需要预览的多图数组
  12851. });
  12852. },
  12853. change(val) {
  12854. console.log(val);
  12855. },
  12856. goTo(path) {
  12857. this.$router.push(path);
  12858. },
  12859. handlePictureCardPreview(url) {
  12860. this.dialogImageUrl = url;
  12861. this.pictureDialog = true;
  12862. },
  12863. clean(type) {
  12864. if (type == 1) {
  12865. this.studyJuri[0].cover.splice(0, 1);
  12866. } else if (type == 2) {
  12867. this.studyJuri[0].upVedio.splice(0, 1);
  12868. } else {
  12869. this.studyJuri[0].upFile.splice(0, 1);
  12870. }
  12871. },
  12872. clean2(index) {
  12873. this.plworkFile.splice(index, 1);
  12874. },
  12875. handleClose(done) {
  12876. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12877. this.videoDetail.sources[0].src = "";
  12878. }
  12879. this.commentIndexJson = {};
  12880. done();
  12881. },
  12882. fullTools() {
  12883. this.full = !this.full;
  12884. },
  12885. imgChange(file, fileList, type) {
  12886. if (type == 1) {
  12887. var _tmp = this.studyJuri[0].cover;
  12888. } else if (type == 2) {
  12889. var _tmp = this.studyJuri[0].upVedio;
  12890. } else {
  12891. var _tmp = this.studyJuri[0].upFile;
  12892. }
  12893. this.noneBtnImg = _tmp.length >= 1;
  12894. },
  12895. setContent(bool) {
  12896. this.contentDialog = bool;
  12897. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12898. document.querySelector(".workd_media").style.height = "650px";
  12899. } else if (document.querySelector(".workd_media")) {
  12900. document.querySelector(".workd_media").style.height = "auto";
  12901. }
  12902. },
  12903. setContent2(bool) {
  12904. this.mlDialog = bool;
  12905. if (
  12906. bool &&
  12907. this.contentDialog &&
  12908. document.querySelector(".workd_media")
  12909. ) {
  12910. document.querySelector(".workd_media").style.height = "650px";
  12911. } else if (document.querySelector(".workd_media")) {
  12912. document.querySelector(".workd_media").style.height = "auto";
  12913. }
  12914. },
  12915. openToolAll() {
  12916. this.toolDialogVisible = true;
  12917. },
  12918. addImg(e) {
  12919. var el = e.currentTarget;
  12920. // this.$message.success('触发上传')
  12921. el.getElementsByTagName("input")[0].click();
  12922. e.target.value = "";
  12923. },
  12924. addSelectAnswer() {
  12925. let params = [
  12926. {
  12927. uid: this.userid,
  12928. cid: this.id,
  12929. stage: this.courseType,
  12930. task: this.taskCount,
  12931. tool: this.toolindex,
  12932. content: this.selectAnswer.answer,
  12933. type: 7,
  12934. },
  12935. ];
  12936. this.ajax
  12937. .post(this.$store.state.api + "addCourseWorks", params)
  12938. .then((res) => {
  12939. this.$message({
  12940. message: "提交成功",
  12941. type: "success",
  12942. });
  12943. this.dialogVisibleSelect = false;
  12944. // this.selectAnswer = {};
  12945. this.selectSWorks();
  12946. this.selectStudent();
  12947. })
  12948. .catch((err) => {
  12949. this.$message.error("提交失败");
  12950. console.error(err);
  12951. });
  12952. },
  12953. addSelectAnswerTeacher() {
  12954. let params = [
  12955. {
  12956. uid: this.sStudent.userid,
  12957. cid: this.id,
  12958. stage: this.courseType,
  12959. task: this.taskCount,
  12960. tool: this.toolindex,
  12961. content: this.selectAnswer.answer,
  12962. type: 7,
  12963. },
  12964. ];
  12965. this.ajax
  12966. .post(this.$store.state.api + "addCourseWorks", params)
  12967. .then((res) => {
  12968. this.$message({
  12969. message: "提交成功",
  12970. type: "success",
  12971. });
  12972. this.dialogVisibleSelectTeacher = false;
  12973. // this.selectAnswer = {};
  12974. this.selectSWorks();
  12975. this.selectStudent();
  12976. })
  12977. .catch((err) => {
  12978. this.$message.error("提交失败");
  12979. console.error(err);
  12980. });
  12981. },
  12982. addSenWorks() {
  12983. for (var i = 0; i < this.sentenceList.length; i++) {
  12984. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12985. if (
  12986. this.sentenceList[i].chooseSenList[j] == undefined ||
  12987. this.sentenceList[i].chooseSenList[j] == ""
  12988. ) {
  12989. this.$message.error("请将答案填写完整!");
  12990. return;
  12991. }
  12992. }
  12993. }
  12994. let params = [
  12995. {
  12996. uid: this.userid,
  12997. cid: this.id,
  12998. stage: this.courseType,
  12999. task: this.taskCount,
  13000. tool: this.toolindex,
  13001. content: JSON.stringify(this.sentenceList),
  13002. type: 9,
  13003. },
  13004. ];
  13005. this.ajax
  13006. .post(this.$store.state.api + "addCourseWorks", params)
  13007. .then((res) => {
  13008. this.$message({
  13009. message: "提交成功",
  13010. type: "success",
  13011. });
  13012. this.dialogVisibleSentence = false;
  13013. // this.selectAnswer = {};
  13014. this.selectSWorks();
  13015. this.selectStudent();
  13016. })
  13017. .catch((err) => {
  13018. this.$message.error("提交失败");
  13019. console.error(err);
  13020. });
  13021. },
  13022. addSenWorksTeacher() {
  13023. for (var i = 0; i < this.sentenceList.length; i++) {
  13024. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13025. if (
  13026. this.sentenceList[i].chooseSenList[j] == undefined ||
  13027. this.sentenceList[i].chooseSenList[j] == ""
  13028. ) {
  13029. this.$message.error("请将答案填写完整!");
  13030. return;
  13031. }
  13032. }
  13033. }
  13034. let params = [
  13035. {
  13036. uid: this.sStudent.userid,
  13037. cid: this.id,
  13038. stage: this.courseType,
  13039. task: this.taskCount,
  13040. tool: this.toolindex,
  13041. content: JSON.stringify(this.sentenceList),
  13042. type: 9,
  13043. },
  13044. ];
  13045. this.ajax
  13046. .post(this.$store.state.api + "addCourseWorks", params)
  13047. .then((res) => {
  13048. this.$message({
  13049. message: "提交成功",
  13050. type: "success",
  13051. });
  13052. this.dialogVisibleSentenceTeacher = false;
  13053. // this.selectAnswer = {};
  13054. this.selectSWorks();
  13055. this.selectStudent();
  13056. })
  13057. .catch((err) => {
  13058. this.$message.error("提交失败");
  13059. console.error(err);
  13060. });
  13061. },
  13062. returnTableText() {
  13063. this.$confirm("确定还原此模板吗?", "提示", {
  13064. confirmButtonText: "确定",
  13065. cancelButtonText: "取消",
  13066. type: "warning",
  13067. })
  13068. .then(() => {
  13069. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13070. })
  13071. .catch(() => {});
  13072. },
  13073. addTableWorks() {
  13074. let params = [
  13075. {
  13076. uid: this.userid,
  13077. cid: this.id,
  13078. stage: this.courseType,
  13079. task: this.taskCount,
  13080. tool: this.toolindex,
  13081. content: JSON.stringify(this.tableJson),
  13082. type: 10,
  13083. },
  13084. ];
  13085. this.ajax
  13086. .post(this.$store.state.api + "addCourseWorks", params)
  13087. .then((res) => {
  13088. this.$message({
  13089. message: "提交成功",
  13090. type: "success",
  13091. });
  13092. this.dialogVisibleTable = false;
  13093. // this.selectAnswer = {};
  13094. this.selectSWorks();
  13095. this.selectStudent();
  13096. })
  13097. .catch((err) => {
  13098. this.$message.error("提交失败");
  13099. console.error(err);
  13100. });
  13101. },
  13102. tableRowClassName({ row, rowIndex }) {
  13103. if ((rowIndex + 1) % 2 === 0) {
  13104. return "even_row";
  13105. } else {
  13106. return "";
  13107. }
  13108. },
  13109. addTableWorksTeacher() {
  13110. let params = [
  13111. {
  13112. uid: this.sStudent.userid,
  13113. cid: this.id,
  13114. stage: this.courseType,
  13115. task: this.taskCount,
  13116. tool: this.toolindex,
  13117. content: JSON.stringify(this.tableJson),
  13118. type: 10,
  13119. },
  13120. ];
  13121. this.ajax
  13122. .post(this.$store.state.api + "addCourseWorks", params)
  13123. .then((res) => {
  13124. this.$message({
  13125. message: "提交成功",
  13126. type: "success",
  13127. });
  13128. this.dialogVisibleTableTeacher = false;
  13129. // this.selectAnswer = {};
  13130. this.selectSWorks();
  13131. this.selectStudent();
  13132. })
  13133. .catch((err) => {
  13134. this.$message.error("提交失败");
  13135. console.error(err);
  13136. });
  13137. },
  13138. returnWordText() {
  13139. this.$confirm("确定还原此模板吗?", "提示", {
  13140. confirmButtonText: "确定",
  13141. cancelButtonText: "取消",
  13142. type: "warning",
  13143. })
  13144. .then(() => {
  13145. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13146. })
  13147. .catch(() => {});
  13148. },
  13149. addWordWorks() {
  13150. let params = [
  13151. {
  13152. uid: this.userid,
  13153. cid: this.id,
  13154. stage: this.courseType,
  13155. task: this.taskCount,
  13156. tool: this.toolindex,
  13157. content: JSON.stringify(this.wordJson),
  13158. type: 13,
  13159. atool: 52,
  13160. },
  13161. ];
  13162. this.ajax
  13163. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13164. .then((res) => {
  13165. this.$message({
  13166. message: "提交成功",
  13167. type: "success",
  13168. });
  13169. this.dialogVisibleWord = false;
  13170. // this.selectAnswer = {};
  13171. this.selectSWorks();
  13172. this.selectStudent();
  13173. })
  13174. .catch((err) => {
  13175. this.$message.error("提交失败");
  13176. console.error(err);
  13177. });
  13178. },
  13179. addWordWorksTeacher() {
  13180. let params = [
  13181. {
  13182. uid: this.sStudent.userid,
  13183. cid: this.id,
  13184. stage: this.courseType,
  13185. task: this.taskCount,
  13186. tool: this.toolindex,
  13187. content: JSON.stringify(this.wordJson),
  13188. type: 13,
  13189. atool: 52,
  13190. },
  13191. ];
  13192. this.ajax
  13193. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13194. .then((res) => {
  13195. this.$message({
  13196. message: "提交成功",
  13197. type: "success",
  13198. });
  13199. this.dialogVisibleWordTeacher = false;
  13200. // this.selectAnswer = {};
  13201. this.selectSWorks();
  13202. this.selectStudent();
  13203. })
  13204. .catch((err) => {
  13205. this.$message.error("提交失败");
  13206. console.error(err);
  13207. });
  13208. },
  13209. addCourseWorks(i) {
  13210. var typesql;
  13211. if (this.fileType === 0) {
  13212. typesql = 1;
  13213. } else if (this.fileType === 1) {
  13214. typesql = 4;
  13215. } else if (this.fileType === 2) {
  13216. typesql = 5;
  13217. } else if (this.fileType === 3) {
  13218. typesql = 12;
  13219. }
  13220. if (!this.studyJuri[0].cover[0].url) {
  13221. this.$message.error("请上传文件");
  13222. return;
  13223. }
  13224. let params = [
  13225. {
  13226. uid: this.userid,
  13227. cid: this.id,
  13228. stage: this.courseType,
  13229. task: i,
  13230. tool: this.toolindex,
  13231. content: this.studyJuri[0].cover[0].url,
  13232. type: typesql,
  13233. },
  13234. ];
  13235. this.ajax
  13236. .post(this.$store.state.api + "addCourseWorksR", params)
  13237. .then((res) => {
  13238. this.$message({
  13239. message: "提交成功",
  13240. type: "success",
  13241. });
  13242. this.studyJuri[0].cover = [];
  13243. this.dialogVisible = false;
  13244. this.getCourseDetail(2);
  13245. })
  13246. .catch((err) => {
  13247. this.$message.error("提交失败");
  13248. console.error(err);
  13249. });
  13250. },
  13251. addCourseWorksPl(i) {
  13252. let _files = this.plworkFile;
  13253. var c = 1;
  13254. for (var k = 0; k < _files.length; k++) {
  13255. if (!_files[k].username) {
  13256. c = 2;
  13257. }
  13258. }
  13259. if (c == 2) {
  13260. this.$message.error("请填写学生姓名");
  13261. return;
  13262. }
  13263. let params = [
  13264. {
  13265. ateacher: this.userid,
  13266. cid: this.id,
  13267. stage: this.courseType,
  13268. task: i,
  13269. tool: this.toolindex,
  13270. content: JSON.stringify(_files),
  13271. },
  13272. ];
  13273. this.ajax
  13274. .post(this.$store.state.api + "addCourseWorksPl", params)
  13275. .then((res) => {
  13276. this.$message({
  13277. message: "提交成功",
  13278. type: "success",
  13279. });
  13280. this.plworkFile = [];
  13281. this.dialogVisiblePl = false;
  13282. this.getCourseDetail(2);
  13283. })
  13284. .catch((err) => {
  13285. this.$message.error("提交失败");
  13286. console.error(err);
  13287. });
  13288. },
  13289. addCourseWorks2(i) {
  13290. var typesql;
  13291. if (this.fileType === 0) {
  13292. typesql = 0;
  13293. } else if (this.fileType === 1) {
  13294. typesql = 1;
  13295. } else if (this.fileType === 2) {
  13296. typesql = 3;
  13297. } else if (this.fileType === 3) {
  13298. typesql = 12;
  13299. }
  13300. if (!this.studyJuri[0].cover[0].url) {
  13301. this.$message.error("请上传文件");
  13302. return;
  13303. }
  13304. let params = [
  13305. {
  13306. uid: this.userid,
  13307. cid: this.id,
  13308. stage: this.courseType,
  13309. task: i,
  13310. tool: this.toolindex,
  13311. content: JSON.stringify({
  13312. type: typesql,
  13313. groupIndex: this.groupIndex,
  13314. url: this.studyJuri[0].cover[0].url,
  13315. }),
  13316. type: 11,
  13317. atool: 49,
  13318. text: "",
  13319. },
  13320. ];
  13321. this.ajax
  13322. .post(this.$store.state.api + "addCourseWorks5", params)
  13323. .then((res) => {
  13324. this.$message({
  13325. message: "提交成功",
  13326. type: "success",
  13327. });
  13328. this.studyJuri[0].cover = [];
  13329. this.dialogVisibleGroupWork = false;
  13330. this.getCourseDetail(2);
  13331. })
  13332. .catch((err) => {
  13333. this.$message.error("提交失败");
  13334. console.error(err);
  13335. });
  13336. },
  13337. addEnglishWork() {
  13338. this.myAnList = this.$refs['engJson'].myAnswerList;
  13339. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13340. this.$message.error("请输入作文标题和正文!");
  13341. return;
  13342. }
  13343. let params = [
  13344. {
  13345. uid: this.userid,
  13346. cid: this.id,
  13347. stage: this.courseType,
  13348. task: this.taskCount,
  13349. tool: this.englishToolIndex,
  13350. content: JSON.stringify(this.myAnList),
  13351. type: 16,
  13352. atool: 69,
  13353. text: "",
  13354. },
  13355. ];
  13356. this.ajax
  13357. .post(this.$store.state.api + "addCourseWorks5", params)
  13358. .then((res) => {
  13359. this.$message({
  13360. message: "提交成功",
  13361. type: "success",
  13362. });
  13363. this.myAnList = {};
  13364. this.englishList = {};
  13365. this.englishToolIndex = 0;
  13366. this.engDialogVisible = false;
  13367. this.selectSWorks();
  13368. this.selectStudent();
  13369. })
  13370. .catch((err) => {
  13371. this.$message.error("提交失败");
  13372. console.error(err);
  13373. });
  13374. },
  13375. addCourseWorksGong(i, data, tool) {
  13376. let params = [
  13377. {
  13378. uid: this.userid,
  13379. cid: this.id,
  13380. stage: this.courseType,
  13381. task: this.taskCount,
  13382. tool: i,
  13383. content: data,
  13384. type: 12,
  13385. atool: tool,
  13386. text: "",
  13387. },
  13388. ];
  13389. this.ajax
  13390. .post(this.$store.state.api + "addCourseWorks5", params)
  13391. .then((res) => {
  13392. this.$message({
  13393. message: "提交成功",
  13394. type: "success",
  13395. });
  13396. this.studyJuri[0].cover = [];
  13397. this.selectSWorks();
  13398. this.selectStudent();
  13399. })
  13400. .catch((err) => {
  13401. this.$message.error("提交失败");
  13402. console.error(err);
  13403. });
  13404. },
  13405. addCourseWorksGongTeacher(i, data, tool) {
  13406. let params = [
  13407. {
  13408. uid: this.sStudent.userid,
  13409. cid: this.id,
  13410. stage: this.courseType,
  13411. task: this.taskCount,
  13412. tool: i,
  13413. content: data,
  13414. type: 12,
  13415. atool: tool,
  13416. text: "",
  13417. },
  13418. ];
  13419. this.ajax
  13420. .post(this.$store.state.api + "addCourseWorks5", params)
  13421. .then((res) => {
  13422. this.$message({
  13423. message: "提交成功",
  13424. type: "success",
  13425. });
  13426. this.studyJuri[0].cover = [];
  13427. this.dialogVisibleWorks = false;
  13428. this.selectSWorks();
  13429. this.selectStudent();
  13430. })
  13431. .catch((err) => {
  13432. this.$message.error("提交失败");
  13433. console.error(err);
  13434. });
  13435. },
  13436. addCourseWorksGongPl(i, data, tool, type) {
  13437. let params = [
  13438. {
  13439. uid: this.sStudent.userid,
  13440. cid: this.id,
  13441. stage: this.courseType,
  13442. task: this.taskCount,
  13443. tool: i,
  13444. content: data,
  13445. type: type,
  13446. atool: tool,
  13447. text: "",
  13448. },
  13449. ];
  13450. this.ajax
  13451. .post(this.$store.state.api + "addCourseWorks5", params)
  13452. .then((res) => {
  13453. this.$message({
  13454. message: "提交成功",
  13455. type: "success",
  13456. });
  13457. this.studyJuri[0].cover = [];
  13458. this.dialogVisibleWorks = false;
  13459. this.selectSWorks();
  13460. this.selectStudent();
  13461. })
  13462. .catch((err) => {
  13463. this.$message.error("提交失败");
  13464. console.error(err);
  13465. });
  13466. },
  13467. addCourseWorksTeacher(i) {
  13468. var typesql;
  13469. if (this.sTool == 32) {
  13470. this.addCourseWorksGongTeacher(
  13471. this.toolindex,
  13472. this.studyJuri[0].cover[0].url,
  13473. this.sTool
  13474. );
  13475. return;
  13476. }
  13477. if (this.fileType === 0) {
  13478. typesql = 1;
  13479. } else if (this.fileType === 1) {
  13480. typesql = 4;
  13481. } else if (this.fileType === 2) {
  13482. typesql = 5;
  13483. } else if (this.fileType === 3) {
  13484. typesql = 12;
  13485. }
  13486. if (this.sTool == 50) {
  13487. this.addCourseWorksGongPl(
  13488. this.toolindex,
  13489. this.studyJuri[0].cover[0].url,
  13490. this.sTool,
  13491. typesql
  13492. );
  13493. return;
  13494. }
  13495. if (!this.studyJuri[0].cover[0].url) {
  13496. this.$message.error("请上传文件");
  13497. return;
  13498. }
  13499. let params = [
  13500. {
  13501. uid: this.sStudent.userid,
  13502. cid: this.id,
  13503. stage: this.courseType,
  13504. task: i,
  13505. tool: this.toolindex,
  13506. content: this.studyJuri[0].cover[0].url,
  13507. type: typesql,
  13508. ateacher: this.userid,
  13509. },
  13510. ];
  13511. this.ajax
  13512. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13513. .then((res) => {
  13514. this.$message({
  13515. message: "提交成功",
  13516. type: "success",
  13517. });
  13518. this.studyJuri[0].cover = [];
  13519. this.dialogVisibleWorks = false;
  13520. this.getCourseDetail(2);
  13521. })
  13522. .catch((err) => {
  13523. this.$message.error("提交失败");
  13524. console.error(err);
  13525. });
  13526. },
  13527. selectUploadStudent(type) {
  13528. const loading = this.$loading.service({
  13529. background: "rgba(255, 255, 255, 0.7)",
  13530. target: document.body,
  13531. });
  13532. let params = {
  13533. cid: this.uploadCid,
  13534. oid: this.oid,
  13535. cn: "",
  13536. };
  13537. this.ajax
  13538. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13539. .then((res) => {
  13540. loading.close();
  13541. var studentK = [];
  13542. if (this.isWorksS[this.toolindex].length > 0) {
  13543. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13544. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13545. }
  13546. studentK = studentK.join(",");
  13547. }
  13548. this.uploadStudentJuri = res.data[0].filter((el) => {
  13549. return studentK.indexOf(el.userid) == -1;
  13550. });
  13551. if (this.worksSName && this.worksSid) {
  13552. this.uploadStudentJuri.push({
  13553. userid: this.worksSid,
  13554. name: this.worksSName,
  13555. });
  13556. }
  13557. if (type == 1) {
  13558. this.plworkFile = [];
  13559. this.dialogVisibleSname = true;
  13560. } else if (type == 2) {
  13561. this.dialogVisiblePl = true;
  13562. }
  13563. })
  13564. .catch((err) => {
  13565. loading.close();
  13566. console.error(err);
  13567. });
  13568. },
  13569. selectPickStudent() {
  13570. const loading = this.$loading.service({
  13571. background: "rgba(255, 255, 255, 0.7)",
  13572. target: document.body,
  13573. });
  13574. let params = {
  13575. cid: this.uploadCid,
  13576. oid: this.oid,
  13577. cn: "",
  13578. };
  13579. this.ajax
  13580. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13581. .then((res) => {
  13582. loading.close();
  13583. this.uploadStudentJuri = res.data[0];
  13584. this.dialogVisiblePickPeople = true;
  13585. })
  13586. .catch((err) => {
  13587. loading.close();
  13588. console.error(err);
  13589. });
  13590. },
  13591. arrayToArray(arrayo, arrayt) {
  13592. let array1 = arrayo;
  13593. let array2 = arrayt;
  13594. let commonElements = [];
  13595. for (let i = 0; i < array1.length; i++) {
  13596. for (let j = 0; j < array2.length; j++) {
  13597. if (array1[i] === array2[j]) {
  13598. commonElements.push(array1[i]);
  13599. }
  13600. }
  13601. }
  13602. return commonElements;
  13603. },
  13604. selectWorksStudent() {
  13605. let params = {
  13606. oid: this.oid,
  13607. cid: this.courseDetail.juri,
  13608. };
  13609. this.ajax
  13610. .get(this.$store.state.api + "selectWorksStudent", params)
  13611. .then((res) => {
  13612. var a = res.data[0];
  13613. for (var i = 0; i < this.isWorksS.length; i++) {
  13614. this.noWorksS[i] = [];
  13615. var studentK = [];
  13616. if (this.isWorksS[i].length > 0) {
  13617. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13618. studentK.push(this.isWorksS[i][z].uid);
  13619. }
  13620. studentK = studentK.join(",");
  13621. for (var j = 0; j < a.length; j++) {
  13622. if (studentK.indexOf(a[j].userid) == -1) {
  13623. if (this.tcid) {
  13624. // a[j].classid.indexOf(this.tcid) != -1
  13625. if (
  13626. this.arrayToArray(
  13627. a[j].classid.split(","),
  13628. this.tcid.split(",")
  13629. ).length
  13630. ) {
  13631. this.noWorksS[i].push({
  13632. student: a[j].name,
  13633. userid: a[j].userid,
  13634. });
  13635. }
  13636. } else {
  13637. this.noWorksS[i].push({
  13638. student: a[j].name,
  13639. userid: a[j].userid,
  13640. });
  13641. }
  13642. }
  13643. }
  13644. } else {
  13645. for (var k = 0; k < a.length; k++) {
  13646. if (this.tcid) {
  13647. if (
  13648. this.arrayToArray(
  13649. a[k].classid.split(","),
  13650. this.tcid.split(",")
  13651. ).length
  13652. ) {
  13653. this.noWorksS[i].push({
  13654. student: a[k].name,
  13655. userid: a[k].userid,
  13656. });
  13657. }
  13658. } else {
  13659. this.noWorksS[i].push({
  13660. student: a[k].name,
  13661. userid: a[k].userid,
  13662. });
  13663. }
  13664. }
  13665. }
  13666. }
  13667. this.$forceUpdate();
  13668. if (
  13669. Object.keys(this.commentDetail).length &&
  13670. Object.keys(this.commentIndexJson).length &&
  13671. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13672. ) {
  13673. let a = 1;
  13674. let c = this.commentIndexJson;
  13675. if (
  13676. this.commentIndexJson.gindex ||
  13677. this.commentIndexJson.gindex === 0
  13678. ) {
  13679. for (
  13680. var i = 0;
  13681. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13682. i++
  13683. ) {
  13684. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13685. groupA: for (var k = 0; k < _el.length; k++) {
  13686. let el = _el[k];
  13687. if (el.wid == this.commentDetail.wid) {
  13688. a = 2;
  13689. this.commentOther(
  13690. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13691. this.commentIndexJson.toolIndex,
  13692. k,
  13693. this.commentIndexJson.gindex
  13694. );
  13695. break groupA;
  13696. }
  13697. }
  13698. }
  13699. if (a === 1) {
  13700. this.commentDetail = [];
  13701. this.commentIndexJson = {};
  13702. this.commentDialogVisible = false;
  13703. this.$message("此作业已被删除");
  13704. }
  13705. } else {
  13706. if (this.isGroup && this.commentIndexJson.gid) {
  13707. groupA: for (
  13708. var i = 0;
  13709. i < this.courseGroup.group.length;
  13710. i++
  13711. ) {
  13712. let _group = this.courseGroup.group[i];
  13713. if (_group.id == this.commentIndexJson.gid) {
  13714. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13715. for (var k = 0; k < _el2.length; k++) {
  13716. let el2 = _el2[k];
  13717. if (el2.wid == this.commentDetail.wid) {
  13718. a = 2;
  13719. this.commentOther(
  13720. _el2[k],
  13721. this.commentIndexJson.toolIndex,
  13722. k,
  13723. null,
  13724. this.commentIndexJson.gid
  13725. );
  13726. break groupA;
  13727. }
  13728. }
  13729. }
  13730. }
  13731. }
  13732. if (a == 1) {
  13733. for (
  13734. var i = 0;
  13735. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13736. i++
  13737. ) {
  13738. let el =
  13739. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13740. if (el.wid == this.commentDetail.wid) {
  13741. a = 2;
  13742. this.commentOther(
  13743. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13744. this.commentIndexJson.toolIndex,
  13745. i
  13746. );
  13747. break;
  13748. }
  13749. }
  13750. }
  13751. if (a === 1) {
  13752. this.commentDetail = [];
  13753. this.commentIndexJson = {};
  13754. this.commentDialogVisible = false;
  13755. this.$message("此作业已被删除");
  13756. }
  13757. }
  13758. }
  13759. })
  13760. .catch((err) => {
  13761. console.error(err);
  13762. });
  13763. },
  13764. selectStudent() {
  13765. //学生查看自己作业
  13766. let params = {
  13767. uid: this.userid,
  13768. cid: this.id,
  13769. s: this.courseType,
  13770. t: this.taskCount,
  13771. };
  13772. this.ajax
  13773. .get(this.$store.state.api + "selectStudentWorks", params)
  13774. .then((res) => {
  13775. var a =
  13776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13777. this.taskCount
  13778. ].toolChoose;
  13779. var b = res.data[0];
  13780. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13781. var y = [
  13782. "AVI",
  13783. "NAVI",
  13784. "MPEG",
  13785. "ASF",
  13786. "MOV",
  13787. "WMV",
  13788. "3GP",
  13789. "RM",
  13790. "RMVB",
  13791. "FLV",
  13792. "F4V",
  13793. "H.264",
  13794. "H.265",
  13795. "REAL VIDEO",
  13796. "MKV",
  13797. "WebM",
  13798. "HDDVD",
  13799. "MP4",
  13800. "MPG",
  13801. "M4V",
  13802. "MGV",
  13803. "OGV",
  13804. "QTM",
  13805. "STR",
  13806. "AMC",
  13807. "DVX",
  13808. "EVO",
  13809. "DAT",
  13810. "OGG",
  13811. "OGM",
  13812. ];
  13813. for (var i = 0; i < a.length; i++) {
  13814. this.workStudent[i] = [];
  13815. for (var j = 0; j < b.length; j++) {
  13816. if (i == b[j].tool) {
  13817. if (
  13818. (b[j].type == 1 ||
  13819. b[j].type == 4 ||
  13820. b[j].type == 5 ||
  13821. b[j].type == 6 ||
  13822. b[j].type == 12 ||
  13823. b[j].type == 7) &&
  13824. a[i].tool[0] != 15 &&
  13825. a[i].tool[0] != 4 &&
  13826. a[i].tool[0] != 45 &&
  13827. a[i].tool[0] != 50 &&
  13828. a[i].tool[0] != 32 &&
  13829. a[i].tool[0] != 57 &&
  13830. a[i].tool[0] != 52 &&
  13831. a[i].tool[0] != 69
  13832. ) {
  13833. if (
  13834. c.indexOf(
  13835. b[j].content
  13836. .split(".")
  13837. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13838. ) != -1 &&
  13839. a[i].tool[0] == 16 &&
  13840. b[j].atool != 50
  13841. ) {
  13842. this.workStudent[i].push({
  13843. works: b[j].content,
  13844. sName: b[j].name,
  13845. score: b[j].score,
  13846. img: b[j].img,
  13847. type: 1,
  13848. time: b[j].time,
  13849. userid: b[j].userid,
  13850. wid: b[j].id,
  13851. });
  13852. } else if (
  13853. y.indexOf(
  13854. b[j].content
  13855. .split(".")
  13856. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13857. ) != -1 &&
  13858. a[i].tool[0] == 16 &&
  13859. b[j].atool != 50
  13860. ) {
  13861. this.workStudent[i].push({
  13862. userid: b[j].userid,
  13863. wid: b[j].id,
  13864. works: b[j].content,
  13865. sName: b[j].name,
  13866. score: b[j].score,
  13867. img: b[j].img,
  13868. type: 3,
  13869. time: b[j].time,
  13870. });
  13871. } else if (b[j].type == 6 && b[j].atool != 50) {
  13872. this.workStudent[i].push({
  13873. userid: b[j].userid,
  13874. wid: b[j].id,
  13875. works: b[j].content,
  13876. sName: b[j].name,
  13877. score: b[j].score,
  13878. img: b[j].img,
  13879. type: 4,
  13880. time: b[j].time,
  13881. });
  13882. } else if (b[j].type == 7 && b[j].atool != 50) {
  13883. this.workStudent[i].push({
  13884. userid: b[j].userid,
  13885. wid: b[j].id,
  13886. works: b[j].content,
  13887. sName: b[j].name,
  13888. score: b[j].score,
  13889. img: b[j].img,
  13890. type: 5,
  13891. time: b[j].time,
  13892. });
  13893. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13894. this.workStudent[i].push({
  13895. works: b[j].content,
  13896. sName: b[j].name,
  13897. score: b[j].score,
  13898. img: b[j].img,
  13899. type: 12,
  13900. time: b[j].time,
  13901. userid: b[j].userid,
  13902. wid: b[j].id,
  13903. });
  13904. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13905. this.workStudent[i].push({
  13906. works: b[j].content,
  13907. sName: b[j].name,
  13908. score: b[j].score,
  13909. img: b[j].img,
  13910. type: 0,
  13911. time: b[j].time,
  13912. userid: b[j].userid,
  13913. wid: b[j].id,
  13914. });
  13915. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13916. this.workStudent[i].push({
  13917. works: b[j].content,
  13918. sName: b[j].name,
  13919. score: b[j].score,
  13920. img: b[j].img,
  13921. type: 0,
  13922. time: b[j].time,
  13923. userid: b[j].userid,
  13924. wid: b[j].id,
  13925. });
  13926. }
  13927. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13928. this.workStudent[i].push({
  13929. works: b[j].content,
  13930. sName: b[j].name,
  13931. score: b[j].score,
  13932. img: b[j].img,
  13933. type: 2,
  13934. time: b[j].time,
  13935. userid: b[j].userid,
  13936. wid: b[j].id,
  13937. });
  13938. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13939. //问卷
  13940. this.workStudent[i].push({
  13941. works: b[j].content,
  13942. sName: b[j].name,
  13943. score: b[j].score,
  13944. img: b[j].img,
  13945. type: 2,
  13946. time: b[j].time,
  13947. userid: b[j].userid,
  13948. wid: b[j].id,
  13949. });
  13950. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13951. //选择题
  13952. this.workStudent[i].push({
  13953. works: b[j].content,
  13954. sName: b[j].name,
  13955. score: b[j].score,
  13956. img: b[j].img,
  13957. type: 8,
  13958. time: b[j].time,
  13959. userid: b[j].userid,
  13960. wid: b[j].id,
  13961. });
  13962. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13963. //选择题
  13964. this.workStudent[i].push({
  13965. works: b[j].content,
  13966. sName: b[j].name,
  13967. score: b[j].score,
  13968. img: b[j].img,
  13969. type: 9,
  13970. time: b[j].time,
  13971. userid: b[j].userid,
  13972. wid: b[j].id,
  13973. });
  13974. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13975. //选择题
  13976. this.workStudent[i].push({
  13977. works: b[j].content,
  13978. sName: b[j].name,
  13979. score: b[j].score,
  13980. img: b[j].img,
  13981. type: 10,
  13982. time: b[j].time,
  13983. userid: b[j].userid,
  13984. wid: b[j].id,
  13985. });
  13986. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13987. //选择题
  13988. this.workStudent[i].push({
  13989. works: b[j].content,
  13990. sName: b[j].name,
  13991. score: b[j].score,
  13992. img: b[j].img,
  13993. type: 13,
  13994. time: b[j].time,
  13995. userid: b[j].userid,
  13996. wid: b[j].id,
  13997. });
  13998. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13999. //选择题
  14000. this.workStudent[i].push({
  14001. works: b[j].content,
  14002. sName: b[j].name,
  14003. score: b[j].score,
  14004. img: b[j].img,
  14005. type: 12,
  14006. time: b[j].time,
  14007. userid: b[j].userid,
  14008. wid: b[j].id,
  14009. });
  14010. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14011. //选择题
  14012. this.workStudent[i].push({
  14013. works: b[j].content,
  14014. sName: b[j].name,
  14015. score: b[j].score,
  14016. img: b[j].img,
  14017. type: 12,
  14018. time: b[j].time,
  14019. userid: b[j].userid,
  14020. wid: b[j].id,
  14021. });
  14022. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14023. //选择题
  14024. this.workStudent[i].push({
  14025. works: b[j].content,
  14026. sName: b[j].name,
  14027. score: b[j].score,
  14028. img: b[j].img,
  14029. type: 15,
  14030. time: b[j].time,
  14031. userid: b[j].userid,
  14032. wid: b[j].id,
  14033. });
  14034. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14035. //英语写作
  14036. this.workStudent[i].push({
  14037. works: b[j].content,
  14038. sName: b[j].name,
  14039. score: b[j].score,
  14040. img: b[j].img,
  14041. type: 16,
  14042. time: b[j].time,
  14043. userid: b[j].userid,
  14044. wid: b[j].id,
  14045. aiCode: b[j].aiCode,
  14046. teacherCode: b[j].teacherCode
  14047. });
  14048. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14049. //英语口语
  14050. this.workStudent[i].push({
  14051. works: b[j].content,
  14052. sName: b[j].name,
  14053. score: b[j].score,
  14054. img: b[j].img,
  14055. type: 17,
  14056. time: b[j].time,
  14057. userid: b[j].userid,
  14058. wid: b[j].id,
  14059. });
  14060. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14061. //交互视频
  14062. this.workStudent[i].push({
  14063. works: b[j].content,
  14064. sName: b[j].name,
  14065. score: b[j].score,
  14066. img: b[j].img,
  14067. type: 14,
  14068. time: b[j].time,
  14069. userid: b[j].userid,
  14070. wid: b[j].id,
  14071. });
  14072. }
  14073. }
  14074. }
  14075. }
  14076. })
  14077. .catch((err) => {
  14078. console.error(err);
  14079. });
  14080. },
  14081. openVideo(w) {
  14082. this.videoDetail = {};
  14083. this.playerOptions1.sources[0].src = w.works;
  14084. this.videoDetail = this.playerOptions1;
  14085. this.videoVisible = true;
  14086. },
  14087. isLikes(wid, uid, t, c, isLikes,sName) {
  14088. if (isLikes == false) {
  14089. let params = [
  14090. {
  14091. wid: wid,
  14092. lid: uid,
  14093. t: t,
  14094. c: c,
  14095. },
  14096. ];
  14097. this.ajax
  14098. .post(this.$store.state.api + "insertComment", params)
  14099. .then((res) => {
  14100. this.$message({
  14101. message: "点赞成功",
  14102. type: "success",
  14103. });
  14104. this.selectSWorks();
  14105. this.selectStudent();
  14106. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14107. })
  14108. .catch((err) => {
  14109. this.$message.error("点赞失败");
  14110. console.error(err);
  14111. });
  14112. } else {
  14113. let params = {
  14114. wid: wid,
  14115. lid: uid,
  14116. type: t,
  14117. };
  14118. this.ajax
  14119. .get(this.$store.state.api + "deleteComment", params)
  14120. .then((res) => {
  14121. this.$message({
  14122. message: "取消点赞成功",
  14123. type: "success",
  14124. });
  14125. this.selectSWorks();
  14126. this.selectStudent();
  14127. })
  14128. .catch((err) => {
  14129. console.error(err);
  14130. });
  14131. }
  14132. },
  14133. deleteComment(wid) {
  14134. this.$confirm("确定删除此评论吗?", "提示", {
  14135. confirmButtonText: "确定",
  14136. cancelButtonText: "取消",
  14137. type: "warning",
  14138. })
  14139. .then(() => {
  14140. let params = {
  14141. id: wid,
  14142. };
  14143. this.ajax
  14144. .get(this.$store.state.api + "deleteComment2", params)
  14145. .then((res) => {
  14146. this.$message({
  14147. message: "删除评论成功",
  14148. type: "success",
  14149. });
  14150. this.selectSWorks();
  14151. this.selectStudent();
  14152. })
  14153. .catch((err) => {
  14154. console.error(err);
  14155. });
  14156. })
  14157. .catch(() => {});
  14158. },
  14159. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14160. this.commentIndexJson = {
  14161. toolIndex: toolIndex,
  14162. wIndex: wIndex,
  14163. gindex: gindex,
  14164. gid: gid,
  14165. };
  14166. this.commentDetail = [];
  14167. this.commentDialogVisible = true;
  14168. this.commentDetail = w;
  14169. if (w.works && w.type == 1) {
  14170. // this.pptImgUrl = "";
  14171. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14172. if (
  14173. a.indexOf(
  14174. w.works
  14175. .split(".")
  14176. [w.works.split(".").length - 1].toLocaleUpperCase()
  14177. ) != -1
  14178. ) {
  14179. let _uuurl = await this.checkLink(w.works);
  14180. console.log(_uuurl)
  14181. this.pptImgUrl =
  14182. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14183. this.showPDF = false;
  14184. } else if (
  14185. w.works
  14186. .split(".")
  14187. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14188. ) {
  14189. this.pptImgUrl = w.works;
  14190. this.showPDF = true;
  14191. }
  14192. } else if (w.works && w.type == 3) {
  14193. this.videoDetail = {};
  14194. this.playerOptions1.sources[0].src = w.works;
  14195. this.videoDetail = this.playerOptions1;
  14196. // this.videoVisible = true;
  14197. } else if (w.works && w.type == 4) {
  14198. this.eScore = JSON.parse(w.works);
  14199. this.rateJson =
  14200. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14201. this.taskCount
  14202. ].toolChoose[toolIndex].rateJson;
  14203. } else if (w.works && w.type == 10) {
  14204. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14205. } else if (w.works && w.type == 13) {
  14206. this.wordJson =
  14207. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14208. this.taskCount
  14209. ].toolChoose[toolIndex].wordJson;
  14210. }
  14211. },
  14212. async openScore(w, index) {
  14213. this.wScore = 0;
  14214. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14215. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14216. this.commentDetail = [];
  14217. if(w.type == 17){
  14218. this.dialogVisibleENScore = true;
  14219. }else{
  14220. this.dialogVisibleScore = true;
  14221. }
  14222. this.commentDetail = w;
  14223. if (w.works && w.type == 1) {
  14224. this.pptImgUrl = "";
  14225. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14226. if (
  14227. a.indexOf(
  14228. w.works
  14229. .split(".")
  14230. [w.works.split(".").length - 1].toLocaleUpperCase()
  14231. ) != -1
  14232. ) {
  14233. let _uuurl = await this.checkLink(w.works);
  14234. console.log(_uuurl)
  14235. this.pptImgUrl =
  14236. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14237. this.showPDF = false;
  14238. } else if (
  14239. w.works
  14240. .split(".")
  14241. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14242. ) {
  14243. this.pptImgUrl = w.works;
  14244. this.showPDF = true;
  14245. }
  14246. } else if (w.works && w.type == 3) {
  14247. this.videoDetail = {};
  14248. this.playerOptions1.sources[0].src = w.works;
  14249. this.videoDetail = this.playerOptions1;
  14250. }else if(w.type == 17){
  14251. let englishVoiceJson = {}
  14252. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14253. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14254. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14255. .toolChoose[index].englishVoiceJson
  14256. : {};
  14257. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14258. }
  14259. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14260. },
  14261. addComment(wid, uid, t,detail) {
  14262. if (this.commentText == "") {
  14263. this.$message.error("请输入评论");
  14264. return;
  14265. }
  14266. let params2 = [
  14267. {
  14268. wid: wid,
  14269. lid: uid,
  14270. t: t,
  14271. },
  14272. ];
  14273. this.ajax
  14274. .post(this.$store.state.api + "getComment", params2)
  14275. .then((res) => {
  14276. if (res.data[0].length > 0) {
  14277. this.$message.error("一个作业只能评论一条");
  14278. } else {
  14279. let params = [
  14280. {
  14281. wid: wid,
  14282. lid: uid,
  14283. t: t,
  14284. c: this.commentText,
  14285. },
  14286. ];
  14287. this.ajax
  14288. .post(this.$store.state.api + "insertComment", params)
  14289. .then((res) => {
  14290. this.$message({
  14291. message: "评论成功",
  14292. type: "success",
  14293. });
  14294. this.commentText = "";
  14295. this.selectSWorks();
  14296. this.selectStudent();
  14297. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14298. })
  14299. .catch((err) => {
  14300. this.$message.error("评论失败");
  14301. console.error(err);
  14302. });
  14303. }
  14304. })
  14305. .catch((err) => {
  14306. // this.$message.error("评论失败");
  14307. console.error(err);
  14308. });
  14309. },
  14310. scoreWork(wid,sName) {
  14311. if (this.wScore == 0) {
  14312. this.$message.error("请评分");
  14313. return;
  14314. }
  14315. let params = [
  14316. {
  14317. wid: wid,
  14318. score: JSON.stringify({
  14319. wScore: this.wScore,
  14320. detail: this.scoreDetail,
  14321. }),
  14322. },
  14323. ];
  14324. this.ajax
  14325. .post(this.$store.state.api + "scoreWork", params)
  14326. .then((res) => {
  14327. this.$message({
  14328. message: "评分成功",
  14329. type: "success",
  14330. });
  14331. this.wScore = 0;
  14332. this.scoreDetail = "";
  14333. this.dialogVisibleScore = false;
  14334. this.selectSWorks();
  14335. this.selectStudent();
  14336. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14337. })
  14338. .catch((err) => {
  14339. this.$message.error("评分失败");
  14340. console.error(err);
  14341. });
  14342. },
  14343. openXz(w, i) {
  14344. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14345. .taskJson[this.taskCount].toolChoose[i].selectJson
  14346. ? JSON.parse(
  14347. JSON.stringify(
  14348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14349. this.taskCount
  14350. ].toolChoose[i].selectJson
  14351. )
  14352. )
  14353. : { url: "", select: [], answer: [] };
  14354. var a = w.works.split(",");
  14355. for (var k = 0; k < a.length; k++) {
  14356. a[k] = parseInt(a[k]);
  14357. }
  14358. this.selectAnswer = { answer: a, stu: w.sName };
  14359. this.isSelect = true;
  14360. this.dialogVisibleSelect = true;
  14361. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14362. },
  14363. openSen(w, i) {
  14364. this.sentenceList1 = JSON.parse(w.works);
  14365. this.sentenceList1.stuName = w.sName;
  14366. this.dialogVisibleSentence1 = true;
  14367. },
  14368. openPj(w, toolindex) {
  14369. this.isStar = true;
  14370. this.eScore = JSON.parse(w);
  14371. this.rateJson =
  14372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14373. this.taskCount
  14374. ].toolChoose[toolindex].rateJson;
  14375. this.studentEvalDialogVisible = true;
  14376. },
  14377. openEnglishEva(id,i){
  14378. let params = {
  14379. wid: id
  14380. };
  14381. this.ajax
  14382. .get(this.$store.state.api + "selectEngWork", params)
  14383. .then((res) => {
  14384. this.evaEngJson.message = res.data[0][0];
  14385. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14386. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14387. .toolChoose[i].englishList;
  14388. this.engEvaDialogVisible = true;
  14389. })
  14390. .catch((err) => {
  14391. console.error(err);
  14392. });
  14393. },
  14394. deleteWorks(id) {
  14395. this.$confirm("确定删除此作业吗?", "提示", {
  14396. confirmButtonText: "确定",
  14397. cancelButtonText: "取消",
  14398. type: "warning",
  14399. })
  14400. .then(() => {
  14401. let params = [
  14402. {
  14403. id: id,
  14404. },
  14405. ];
  14406. this.ajax
  14407. .post(this.$store.state.api + "deleteCourseWork", params)
  14408. .then((res) => {
  14409. this.$message({
  14410. message: "删除成功",
  14411. type: "success",
  14412. });
  14413. this.selectStudent();
  14414. this.selectSWorks();
  14415. this.selectSLook();
  14416. })
  14417. .catch((err) => {
  14418. this.$message.error("网络异常");
  14419. console.error(err);
  14420. });
  14421. })
  14422. .catch(() => {});
  14423. },
  14424. selectSWorks(gindex) {
  14425. //教师查看全部作业
  14426. let params = {
  14427. cid: this.id,
  14428. s: this.courseType,
  14429. t: this.taskCount,
  14430. };
  14431. this.ajax
  14432. .get(this.$store.state.api + "selectSWorks", params)
  14433. .then((res) => {
  14434. var a =
  14435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14436. this.taskCount
  14437. ].toolChoose;
  14438. var b = res.data[0];
  14439. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14440. var y = [
  14441. "AVI",
  14442. "NAVI",
  14443. "MPEG",
  14444. "ASF",
  14445. "MOV",
  14446. "WMV",
  14447. "3GP",
  14448. "RM",
  14449. "RMVB",
  14450. "FLV",
  14451. "F4V",
  14452. "H.264",
  14453. "H.265",
  14454. "REAL VIDEO",
  14455. "MKV",
  14456. "WebM",
  14457. "HDDVD",
  14458. "MP4",
  14459. "MPG",
  14460. "M4V",
  14461. "MGV",
  14462. "OGV",
  14463. "QTM",
  14464. "STR",
  14465. "AMC",
  14466. "DVX",
  14467. "EVO",
  14468. "DAT",
  14469. "OGG",
  14470. "OGM",
  14471. ];
  14472. var d = res.data[1];
  14473. var e = res.data[2];
  14474. var f = res.data[3];
  14475. let _worksStudent = [];
  14476. var _worksStudent2 = [];
  14477. for (var i = 0; i < a.length; i++) {
  14478. _worksStudent[i] = [];
  14479. _worksStudent2[i] = [];
  14480. if (
  14481. !this.isCloseList[i] ||
  14482. this.isCloseList[i].isClose == undefined
  14483. ) {
  14484. this.isCloseList[i] = { isClose: 0 };
  14485. }
  14486. this.groupStudent[i] = [];
  14487. this.groupStudentUid[i] = [];
  14488. if (this.isGroup) {
  14489. for (
  14490. var groupI = 0;
  14491. groupI < this.courseGroup.group.length;
  14492. groupI++
  14493. ) {
  14494. this.courseGroup.group[groupI].works[i] = [];
  14495. }
  14496. }
  14497. this.isWorksS[i] = [];
  14498. this.checkJson[i] = [];
  14499. if (a[i].tool[0] == 49) {
  14500. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14501. this.groupStudent[i][gA] = [];
  14502. this.groupStudentUid[i][gA] = [];
  14503. _worksStudent[i][gA] = [];
  14504. _worksStudent2[i][gA] = [];
  14505. this.isCloseList[i][gA] = [];
  14506. for (var g = 0; g < f.length; g++) {
  14507. if (
  14508. f[g].ttype == 2 &&
  14509. this.tcid &&
  14510. this.arrayToArray(
  14511. (f[g].classid ? f[g].classid.split(",") : []),
  14512. this.tcid.split(",")
  14513. ).length == 0
  14514. ) {
  14515. continue;
  14516. }
  14517. let _classId = this.arrayToArray(
  14518. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14519. this.classId ? this.classId.split(",") : []
  14520. )
  14521. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14522. (f[g].classid ? f[g].classid.split(",") : []),
  14523. this.tcid.split(",")
  14524. ).length !== 0 || this.arrayToArray(
  14525. (f[g].classid ? f[g].classid.split(",") : []),
  14526. _classId
  14527. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14528. this.groupStudent[i][gA].push(f[g]);
  14529. this.groupStudentUid[i][gA].push(f[g].userid);
  14530. }
  14531. }
  14532. }
  14533. this.$forceUpdate();
  14534. }
  14535. for (var j = 0; j < b.length; j++) {
  14536. if (
  14537. b[j].ttype == 2 &&
  14538. this.tcid &&
  14539. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14540. .length == 0
  14541. ) {
  14542. continue;
  14543. }
  14544. var likesCount = 0;
  14545. var commentCount = 0;
  14546. var isLikes = false;
  14547. var commentJson = [];
  14548. var likeJson = [];
  14549. var data = b[j];
  14550. if (i == b[j].tool) {
  14551. if (data.type == 2 && a[i].tool[0] == 4) {
  14552. // if(JSON.parse(data.content)[0].anwer){
  14553. var checkL =
  14554. JSON.parse(data.content)[0].anwer instanceof Array
  14555. ? JSON.parse(data.content)[0].anwer
  14556. : JSON.parse(data.content)[0].anwer.split(",");
  14557. for (var z = 0; z < checkL.length; z++) {
  14558. if (!this.checkJson[i][z]) {
  14559. this.checkJson[i].push({
  14560. checkCount: [],
  14561. checkPerson: [],
  14562. rightPerson: [],
  14563. });
  14564. }
  14565. if (!this.checkJson[i][z].checkCount.length) {
  14566. this.checkJson[i][z].checkCount = [];
  14567. let _askItemCount = JSON.parse(data.content)[0].askJson
  14568. .askJson[z].askItem;
  14569. for (var aic = 0; aic < _askItemCount; aic++) {
  14570. this.checkJson[i][z].checkCount.push(0);
  14571. }
  14572. }
  14573. if (checkL[z] instanceof Array) {
  14574. if (
  14575. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14576. checkL[z].sort().join(",")
  14577. ) {
  14578. this.checkJson[i][z].rightPerson.push(data.name);
  14579. }
  14580. for (var q = 0; q < checkL[z].length; q++) {
  14581. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14582. ? this.checkJson[i][z].checkPerson[
  14583. parseInt(checkL[z][q])
  14584. ].push(data.name)
  14585. : (this.checkJson[i][z].checkPerson[
  14586. parseInt(checkL[z][q])
  14587. ] = [data.name]);
  14588. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14589. ? this.checkJson[i][z].checkCount[
  14590. parseInt(checkL[z][q])
  14591. ]++
  14592. : (this.checkJson[i][z].checkCount[
  14593. parseInt(checkL[z][q])
  14594. ] = 1);
  14595. }
  14596. } else {
  14597. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14598. this.checkJson[i][z].rightPerson.push(data.name);
  14599. }
  14600. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14601. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14602. ? this.checkJson[i][z].checkPerson[
  14603. parseInt(checkL[z])
  14604. ].push(data.name)
  14605. : (this.checkJson[i][z].checkPerson[
  14606. parseInt(checkL[z])
  14607. ] = [data.name]);
  14608. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14609. ? this.checkJson[i][z].checkCount[
  14610. parseInt(checkL[z])
  14611. ]++
  14612. : (this.checkJson[i][z].checkCount[
  14613. parseInt(checkL[z])
  14614. ] = 1);
  14615. }
  14616. }
  14617. }
  14618. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14619. var checkL = JSON.parse(data.content)[0].anwer;
  14620. for (var z = 0; z < checkL.length; z++) {
  14621. if (!this.checkJson[i][z]) {
  14622. this.checkJson[i].push({
  14623. checkCount: [],
  14624. checkPerson: [],
  14625. rightPerson: [],
  14626. });
  14627. }
  14628. if (!this.checkJson[i][z].checkCount.length) {
  14629. this.checkJson[i][z].checkCount = [];
  14630. let _askItemCount = JSON.parse(data.content)[0].testJson
  14631. .testJson[z].testItem;
  14632. for (var aic = 0; aic < _askItemCount; aic++) {
  14633. this.checkJson[i][z].checkCount.push(0);
  14634. }
  14635. }
  14636. if (checkL[z] instanceof Array) {
  14637. if (
  14638. JSON.parse(data.content)[0]
  14639. .testJson.testJson[z].answer.sort()
  14640. .join(",") == checkL[z].sort().join(",")
  14641. ) {
  14642. this.checkJson[i][z].rightPerson.push(data.name);
  14643. }
  14644. for (var q = 0; q < checkL[z].length; q++) {
  14645. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14646. ? this.checkJson[i][z].checkPerson[
  14647. parseInt(checkL[z][q])
  14648. ].push(data.name)
  14649. : (this.checkJson[i][z].checkPerson[
  14650. parseInt(checkL[z][q])
  14651. ] = [data.name]);
  14652. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14653. ? this.checkJson[i][z].checkCount[
  14654. parseInt(checkL[z][q])
  14655. ]++
  14656. : (this.checkJson[i][z].checkCount[
  14657. parseInt(checkL[z][q])
  14658. ] = 1);
  14659. }
  14660. } else {
  14661. if (
  14662. JSON.parse(data.content)[0].testJson.testJson[z]
  14663. .answer == checkL[z]
  14664. ) {
  14665. this.checkJson[i][z].rightPerson.push(data.name);
  14666. }
  14667. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14668. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14669. ? this.checkJson[i][z].checkPerson[
  14670. parseInt(checkL[z])
  14671. ].push(data.name)
  14672. : (this.checkJson[i][z].checkPerson[
  14673. parseInt(checkL[z])
  14674. ] = [data.name]);
  14675. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14676. ? this.checkJson[i][z].checkCount[
  14677. parseInt(checkL[z])
  14678. ]++
  14679. : (this.checkJson[i][z].checkCount[
  14680. parseInt(checkL[z])
  14681. ] = 1);
  14682. }
  14683. }
  14684. }
  14685. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14686. var checkL = JSON.parse(data.content);
  14687. for (var z = 0; z < checkL.length; z++) {
  14688. if (!this.checkJson[i][z]) {
  14689. this.checkJson[i].push({
  14690. checkCount: [],
  14691. checkPerson: [],
  14692. rightPerson: [],
  14693. });
  14694. }
  14695. this.checkJson[i][z].checkPerson.push(data.name);
  14696. if (
  14697. checkL[z].chooseSenList.toString() ==
  14698. checkL[z].rightAnswer.toString()
  14699. ) {
  14700. this.checkJson[i][z].rightPerson.push(data.name);
  14701. }
  14702. }
  14703. }
  14704. for (var k = 0; k < d.length; k++) {
  14705. //点赞
  14706. if (d[k].workId == b[j].id) {
  14707. likesCount++;
  14708. likeJson.push(d[k])
  14709. if (d[k].likesId == this.userid) {
  14710. isLikes = true;
  14711. }
  14712. }
  14713. }
  14714. for (var l = 0; l < e.length; l++) {
  14715. //评论
  14716. if (e[l].workId == b[j].id) {
  14717. if (e[l].comment != "") {
  14718. commentCount++;
  14719. commentJson.push({
  14720. commentText: e[l].comment,
  14721. commentTime: e[l].commentTime,
  14722. commentPeople: e[l].commentPeople,
  14723. userid: e[l].userid,
  14724. wid: e[l].id,
  14725. });
  14726. }
  14727. }
  14728. }
  14729. if (
  14730. (b[j].type == 1 ||
  14731. b[j].type == 4 ||
  14732. b[j].type == 5 ||
  14733. b[j].type == 6 ||
  14734. b[j].type == 12 ||
  14735. b[j].type == 7) &&
  14736. a[i].tool[0] != 15 &&
  14737. a[i].tool[0] != 4 &&
  14738. a[i].tool[0] != 45 &&
  14739. a[i].tool[0] != 50 &&
  14740. a[i].tool[0] != 32 &&
  14741. a[i].tool[0] != 57 &&
  14742. a[i].tool[0] != 52
  14743. ) {
  14744. if (
  14745. c.indexOf(
  14746. b[j].content
  14747. .split(".")
  14748. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14749. ) != -1 &&
  14750. a[i].tool[0] == 16 &&
  14751. b[j].atool != 50
  14752. ) {
  14753. let _works = {
  14754. userid: b[j].userid,
  14755. ateacher: b[j].ateacher,
  14756. wid: b[j].id,
  14757. works: b[j].content,
  14758. sName: b[j].name,
  14759. type: 1,
  14760. ttype:b[j].ttype,
  14761. time: b[j].time,
  14762. score: b[j].score,
  14763. img: b[j].img,
  14764. likesCount: likesCount,
  14765. commentCount: commentCount,
  14766. isLikes: isLikes,
  14767. commentJson: commentJson,
  14768. likeJson:likeJson
  14769. };
  14770. if (this.isGroup) {
  14771. let isGw = 1;
  14772. for (
  14773. var groupI = 0;
  14774. groupI < this.courseGroup.group.length;
  14775. groupI++
  14776. ) {
  14777. let gid = this.courseGroup.group[groupI].id;
  14778. if (
  14779. this.courseGroupStudentUid[gid].indexOf(
  14780. b[j].userid
  14781. ) != -1
  14782. ) {
  14783. isGw = 2;
  14784. this.courseGroup.group[groupI].works[i].push(_works);
  14785. break;
  14786. }
  14787. }
  14788. if (isGw == 1) {
  14789. _worksStudent[i].push(_works);
  14790. }
  14791. } else {
  14792. _worksStudent[i].push(_works);
  14793. }
  14794. _worksStudent2[i].push(_works);
  14795. this.isWorksS[i].push({
  14796. uid: b[j].userid,
  14797. sName: b[j].name,
  14798. });
  14799. } else if (
  14800. y.indexOf(
  14801. b[j].content
  14802. .split(".")
  14803. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14804. ) != -1 &&
  14805. a[i].tool[0] == 16 &&
  14806. b[j].atool != 50
  14807. ) {
  14808. let _works = {
  14809. userid: b[j].userid,
  14810. ateacher: b[j].ateacher,
  14811. wid: b[j].id,
  14812. works: b[j].content,
  14813. sName: b[j].name,
  14814. type: 3,
  14815. ttype:b[j].ttype,
  14816. time: b[j].time,
  14817. score: b[j].score,
  14818. img: b[j].img,
  14819. likesCount: likesCount,
  14820. commentCount: commentCount,
  14821. isLikes: isLikes,
  14822. commentJson: commentJson,
  14823. likeJson:likeJson
  14824. };
  14825. if (this.isGroup) {
  14826. let isGw = 1;
  14827. for (
  14828. var groupI = 0;
  14829. groupI < this.courseGroup.group.length;
  14830. groupI++
  14831. ) {
  14832. let gid = this.courseGroup.group[groupI].id;
  14833. if (
  14834. this.courseGroupStudentUid[gid].indexOf(
  14835. b[j].userid
  14836. ) != -1
  14837. ) {
  14838. isGw = 2;
  14839. this.courseGroup.group[groupI].works[i].push(_works);
  14840. break;
  14841. }
  14842. }
  14843. if (isGw == 1) {
  14844. _worksStudent[i].push(_works);
  14845. }
  14846. } else {
  14847. _worksStudent[i].push(_works);
  14848. }
  14849. _worksStudent2[i].push(_works);
  14850. this.isWorksS[i].push({
  14851. uid: b[j].userid,
  14852. sName: b[j].name,
  14853. });
  14854. } else if (b[j].type == 6 && b[j].atool != 50) {
  14855. let _works = {
  14856. userid: b[j].userid,
  14857. ateacher: b[j].ateacher,
  14858. wid: b[j].id,
  14859. works: b[j].content,
  14860. sName: b[j].name,
  14861. type: 4,
  14862. ttype:b[j].ttype,
  14863. time: b[j].time,
  14864. score: b[j].score,
  14865. img: b[j].img,
  14866. likesCount: likesCount,
  14867. commentCount: commentCount,
  14868. isLikes: isLikes,
  14869. commentJson: commentJson,
  14870. likeJson:likeJson
  14871. };
  14872. _worksStudent[i].push(_works);
  14873. _worksStudent2[i].push(_works);
  14874. this.isWorksS[i].push({
  14875. uid: b[j].userid,
  14876. sName: b[j].name,
  14877. });
  14878. } else if (b[j].type == 7 && b[j].atool != 50) {
  14879. let _work = {
  14880. userid: b[j].userid,
  14881. ateacher: b[j].ateacher,
  14882. wid: b[j].id,
  14883. works: b[j].content,
  14884. sName: b[j].name,
  14885. type: 5,
  14886. ttype:b[j].ttype,
  14887. time: b[j].time,
  14888. score: b[j].score,
  14889. img: b[j].img,
  14890. likesCount: likesCount,
  14891. commentCount: commentCount,
  14892. isLikes: isLikes,
  14893. commentJson: commentJson,
  14894. likeJson:likeJson
  14895. };
  14896. _worksStudent[i].push(_work);
  14897. _worksStudent2[i].push(_work);
  14898. this.isWorksS[i].push({
  14899. uid: b[j].userid,
  14900. sName: b[j].name,
  14901. });
  14902. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14903. let _works = {
  14904. userid: b[j].userid,
  14905. ateacher: b[j].ateacher,
  14906. wid: b[j].id,
  14907. works: b[j].content,
  14908. sName: b[j].name,
  14909. type: 12,
  14910. ttype:b[j].ttype,
  14911. time: b[j].time,
  14912. score: b[j].score,
  14913. img: b[j].img,
  14914. likesCount: likesCount,
  14915. commentCount: commentCount,
  14916. isLikes: isLikes,
  14917. commentJson: commentJson,
  14918. likeJson:likeJson
  14919. };
  14920. if (this.isGroup) {
  14921. let isGw = 1;
  14922. for (
  14923. var groupI = 0;
  14924. groupI < this.courseGroup.group.length;
  14925. groupI++
  14926. ) {
  14927. let gid = this.courseGroup.group[groupI].id;
  14928. if (
  14929. this.courseGroupStudentUid[gid].indexOf(
  14930. b[j].userid
  14931. ) != -1
  14932. ) {
  14933. isGw = 2;
  14934. this.courseGroup.group[groupI].works[i].push(_works);
  14935. break;
  14936. }
  14937. }
  14938. if (isGw == 1) {
  14939. _worksStudent[i].push(_works);
  14940. }
  14941. } else {
  14942. _worksStudent[i].push(_works);
  14943. }
  14944. _worksStudent2[i].push(_works);
  14945. this.isWorksS[i].push({
  14946. uid: b[j].userid,
  14947. sName: b[j].name,
  14948. });
  14949. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14950. let _works = {
  14951. userid: b[j].userid,
  14952. ateacher: b[j].ateacher,
  14953. wid: b[j].id,
  14954. works: b[j].content,
  14955. sName: b[j].name,
  14956. type: 0,
  14957. ttype:b[j].ttype,
  14958. time: b[j].time,
  14959. score: b[j].score,
  14960. img: b[j].img,
  14961. likesCount: likesCount,
  14962. commentCount: commentCount,
  14963. isLikes: isLikes,
  14964. commentJson: commentJson,
  14965. likeJson:likeJson
  14966. };
  14967. if (this.isGroup) {
  14968. let isGw = 1;
  14969. for (
  14970. var groupI = 0;
  14971. groupI < this.courseGroup.group.length;
  14972. groupI++
  14973. ) {
  14974. let gid = this.courseGroup.group[groupI].id;
  14975. if (
  14976. this.courseGroupStudentUid[gid].indexOf(
  14977. b[j].userid
  14978. ) != -1
  14979. ) {
  14980. isGw = 2;
  14981. this.courseGroup.group[groupI].works[i].push(_works);
  14982. break;
  14983. }
  14984. }
  14985. if (isGw == 1) {
  14986. _worksStudent[i].push(_works);
  14987. }
  14988. } else {
  14989. _worksStudent[i].push(_works);
  14990. }
  14991. _worksStudent2[i].push(_works);
  14992. this.isWorksS[i].push({
  14993. uid: b[j].userid,
  14994. sName: b[j].name,
  14995. });
  14996. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14997. let _works = {
  14998. userid: b[j].userid,
  14999. ateacher: b[j].ateacher,
  15000. wid: b[j].id,
  15001. works: b[j].content,
  15002. sName: b[j].name,
  15003. type: 0,
  15004. ttype:b[j].ttype,
  15005. time: b[j].time,
  15006. score: b[j].score,
  15007. img: b[j].img,
  15008. likesCount: likesCount,
  15009. commentCount: commentCount,
  15010. isLikes: isLikes,
  15011. commentJson: commentJson,
  15012. likeJson:likeJson
  15013. };
  15014. if (this.isGroup) {
  15015. let isGw = 1;
  15016. for (
  15017. var groupI = 0;
  15018. groupI < this.courseGroup.group.length;
  15019. groupI++
  15020. ) {
  15021. let gid = this.courseGroup.group[groupI].id;
  15022. if (
  15023. this.courseGroupStudentUid[gid].indexOf(
  15024. b[j].userid
  15025. ) != -1
  15026. ) {
  15027. isGw = 2;
  15028. this.courseGroup.group[groupI].works[i].push(_works);
  15029. break;
  15030. }
  15031. }
  15032. if (isGw == 1) {
  15033. _worksStudent[i].push(_works);
  15034. }
  15035. } else {
  15036. _worksStudent[i].push(_works);
  15037. }
  15038. _worksStudent2[i].push(_works);
  15039. this.isWorksS[i].push({
  15040. uid: b[j].userid,
  15041. sName: b[j].name,
  15042. });
  15043. }
  15044. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15045. let _works = {
  15046. userid: b[j].userid,
  15047. ateacher: b[j].ateacher,
  15048. wid: b[j].id,
  15049. works: b[j].content,
  15050. sName: b[j].name,
  15051. type: 2,
  15052. ttype:b[j].ttype,
  15053. time: b[j].time,
  15054. score: b[j].score,
  15055. img: b[j].img,
  15056. likesCount: likesCount,
  15057. commentCount: commentCount,
  15058. isLikes: isLikes,
  15059. commentJson: commentJson,
  15060. likeJson:likeJson
  15061. };
  15062. if (this.isGroup) {
  15063. let isGw = 1;
  15064. for (
  15065. var groupI = 0;
  15066. groupI < this.courseGroup.group.length;
  15067. groupI++
  15068. ) {
  15069. let gid = this.courseGroup.group[groupI].id;
  15070. if (
  15071. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15072. -1
  15073. ) {
  15074. isGw = 2;
  15075. this.courseGroup.group[groupI].works[i].push(_works);
  15076. break;
  15077. }
  15078. }
  15079. if (isGw == 1) {
  15080. _worksStudent[i].push(_works);
  15081. }
  15082. } else {
  15083. _worksStudent[i].push(_works);
  15084. }
  15085. _worksStudent2[i].push(_works);
  15086. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15087. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15088. //问卷
  15089. let _work = {
  15090. userid: b[j].userid,
  15091. ateacher: b[j].ateacher,
  15092. wid: b[j].id,
  15093. works: b[j].content,
  15094. sName: b[j].name,
  15095. type: 2,
  15096. ttype:b[j].ttype,
  15097. time: b[j].time,
  15098. score: b[j].score,
  15099. img: b[j].img,
  15100. likesCount: likesCount,
  15101. commentCount: commentCount,
  15102. isLikes: isLikes,
  15103. commentJson: commentJson,
  15104. likeJson:likeJson
  15105. };
  15106. _worksStudent[i].push(_work);
  15107. _worksStudent2[i].push(_work);
  15108. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15109. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15110. //选择题
  15111. let _work = {
  15112. userid: b[j].userid,
  15113. ateacher: b[j].ateacher,
  15114. wid: b[j].id,
  15115. works: b[j].content,
  15116. sName: b[j].name,
  15117. type: 8,
  15118. ttype:b[j].ttype,
  15119. time: b[j].time,
  15120. score: b[j].score,
  15121. img: b[j].img,
  15122. likesCount: likesCount,
  15123. commentCount: commentCount,
  15124. isLikes: isLikes,
  15125. commentJson: commentJson,
  15126. likeJson:likeJson
  15127. };
  15128. _worksStudent[i].push(_work);
  15129. _worksStudent2[i].push(_work);
  15130. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15131. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15132. //选择题
  15133. let _work = {
  15134. userid: b[j].userid,
  15135. ateacher: b[j].ateacher,
  15136. wid: b[j].id,
  15137. works: b[j].content,
  15138. sName: b[j].name,
  15139. type: 9,
  15140. ttype:b[j].ttype,
  15141. time: b[j].time,
  15142. score: b[j].score,
  15143. img: b[j].img,
  15144. likesCount: likesCount,
  15145. commentCount: commentCount,
  15146. isLikes: isLikes,
  15147. commentJson: commentJson,
  15148. likeJson:likeJson
  15149. };
  15150. _worksStudent[i].push(_work);
  15151. _worksStudent2[i].push(_work);
  15152. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15153. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15154. //选择题
  15155. let _work = {
  15156. userid: b[j].userid,
  15157. ateacher: b[j].ateacher,
  15158. wid: b[j].id,
  15159. works: b[j].content,
  15160. sName: b[j].name,
  15161. type: 10,
  15162. ttype:b[j].ttype,
  15163. time: b[j].time,
  15164. score: b[j].score,
  15165. img: b[j].img,
  15166. likesCount: likesCount,
  15167. commentCount: commentCount,
  15168. isLikes: isLikes,
  15169. commentJson: commentJson,
  15170. likeJson:likeJson
  15171. };
  15172. _worksStudent[i].push(_work);
  15173. _worksStudent2[i].push(_work);
  15174. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15175. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15176. //选择题
  15177. let _work = {
  15178. userid: b[j].userid,
  15179. ateacher: b[j].ateacher,
  15180. wid: b[j].id,
  15181. works: b[j].content,
  15182. sName: b[j].name,
  15183. type: 13,
  15184. ttype:b[j].ttype,
  15185. time: b[j].time,
  15186. score: b[j].score,
  15187. img: b[j].img,
  15188. likesCount: likesCount,
  15189. commentCount: commentCount,
  15190. isLikes: isLikes,
  15191. commentJson: commentJson,
  15192. likeJson:likeJson
  15193. };
  15194. _worksStudent[i].push(_work);
  15195. _worksStudent2[i].push(_work);
  15196. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15197. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15198. //选择题
  15199. let _work = {
  15200. userid: b[j].userid,
  15201. ateacher: b[j].ateacher,
  15202. wid: b[j].id,
  15203. works: b[j].content,
  15204. sName: b[j].name,
  15205. type: 16,
  15206. ttype:b[j].ttype,
  15207. time: b[j].time,
  15208. score: b[j].score,
  15209. img: b[j].img,
  15210. likesCount: likesCount,
  15211. commentCount: commentCount,
  15212. isLikes: isLikes,
  15213. commentJson: commentJson,
  15214. aiCode: b[j].aiCode,
  15215. teacherCode: b[j].teacherCode,
  15216. likeJson:likeJson
  15217. };
  15218. _worksStudent[i].push(_work);
  15219. _worksStudent2[i].push(_work);
  15220. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15221. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15222. //英语口语
  15223. let _work = {
  15224. userid: b[j].userid,
  15225. ateacher: b[j].ateacher,
  15226. wid: b[j].id,
  15227. works: b[j].content,
  15228. sName: b[j].name,
  15229. type: 17,
  15230. ttype:b[j].ttype,
  15231. time: b[j].time,
  15232. score: b[j].score,
  15233. img: b[j].img,
  15234. likesCount: likesCount,
  15235. commentCount: commentCount,
  15236. isLikes: isLikes,
  15237. commentJson: commentJson,
  15238. likeJson:likeJson
  15239. };
  15240. _worksStudent[i].push(_work);
  15241. _worksStudent2[i].push(_work);
  15242. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15243. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15244. //交互视频
  15245. let _work = {
  15246. userid: b[j].userid,
  15247. ateacher: b[j].ateacher,
  15248. wid: b[j].id,
  15249. works: b[j].content,
  15250. sName: b[j].name,
  15251. type: 14,
  15252. ttype:b[j].ttype,
  15253. time: b[j].time,
  15254. score: b[j].score,
  15255. img: b[j].img,
  15256. likesCount: likesCount,
  15257. commentCount: commentCount,
  15258. isLikes: isLikes,
  15259. commentJson: commentJson,
  15260. likeJson:likeJson
  15261. };
  15262. _worksStudent[i].push(_work);
  15263. _worksStudent2[i].push(_work);
  15264. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15265. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15266. let _gindex = JSON.parse(b[j].content);
  15267. if (
  15268. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15269. b[j].userid
  15270. ) != -1
  15271. ) {
  15272. let _work = {
  15273. userid: b[j].userid,
  15274. ateacher: b[j].ateacher,
  15275. wid: b[j].id,
  15276. works: _gindex.url,
  15277. sName: b[j].name,
  15278. type: _gindex.type,
  15279. ttype:b[j].ttype,
  15280. time: b[j].time,
  15281. score: b[j].score,
  15282. img: b[j].img,
  15283. likesCount: likesCount,
  15284. commentCount: commentCount,
  15285. isLikes: isLikes,
  15286. commentJson: commentJson,
  15287. likeJson:likeJson
  15288. };
  15289. _worksStudent[i][_gindex.groupIndex].push(_work);
  15290. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15291. }
  15292. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15293. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15294. let _work = {
  15295. userid: b[j].userid,
  15296. ateacher: b[j].ateacher,
  15297. wid: b[j].id,
  15298. works: b[j].content,
  15299. sName: b[j].name ? b[j].name : b[j].userid,
  15300. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15301. ttype:b[j].ttype,
  15302. time: b[j].time,
  15303. score: b[j].score,
  15304. img: b[j].img,
  15305. likesCount: likesCount,
  15306. commentCount: commentCount,
  15307. isLikes: isLikes,
  15308. commentJson: commentJson,
  15309. likeJson:likeJson
  15310. };
  15311. _worksStudent[i].push(_work);
  15312. _worksStudent2[i].push(_work);
  15313. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15314. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15315. let _work = {
  15316. userid: b[j].userid,
  15317. ateacher: b[j].ateacher,
  15318. wid: b[j].id,
  15319. works: b[j].content,
  15320. sName: b[j].name ? b[j].name : b[j].userid,
  15321. type: 12,
  15322. ttype:b[j].ttype,
  15323. time: b[j].time,
  15324. score: b[j].score,
  15325. img: b[j].img,
  15326. likesCount: likesCount,
  15327. commentCount: commentCount,
  15328. isLikes: isLikes,
  15329. commentJson: commentJson,
  15330. likeJson:likeJson
  15331. };
  15332. _worksStudent[i].push(_work);
  15333. _worksStudent2[i].push(_work);
  15334. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15335. } else if (
  15336. a[i].tool[0] == 57 &&
  15337. b[j].atool == 57 &&
  15338. b[j].type == 12
  15339. ) {
  15340. let _work = {
  15341. userid: b[j].userid,
  15342. ateacher: b[j].ateacher,
  15343. wid: b[j].id,
  15344. works: b[j].content,
  15345. sName: b[j].name ? b[j].name : b[j].userid,
  15346. type: 12,
  15347. ttype:b[j].ttype,
  15348. time: b[j].time,
  15349. score: b[j].score,
  15350. img: b[j].img,
  15351. likesCount: likesCount,
  15352. commentCount: commentCount,
  15353. isLikes: isLikes,
  15354. commentJson: commentJson,
  15355. likeJson:likeJson
  15356. };
  15357. _worksStudent[i].push(_work);
  15358. _worksStudent2[i].push(_work);
  15359. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15360. } else if (
  15361. a[i].tool[0] == 57 &&
  15362. b[j].atool == 57 &&
  15363. b[j].type == 15
  15364. ) {
  15365. let _work = {
  15366. userid: b[j].userid,
  15367. ateacher: b[j].ateacher,
  15368. wid: b[j].id,
  15369. works: b[j].content,
  15370. sName: b[j].name ? b[j].name : b[j].userid,
  15371. type: 15,
  15372. ttype:b[j].ttype,
  15373. time: b[j].time,
  15374. score: b[j].score,
  15375. img: b[j].img,
  15376. likesCount: likesCount,
  15377. commentCount: commentCount,
  15378. isLikes: isLikes,
  15379. commentJson: commentJson,
  15380. likeJson:likeJson
  15381. };
  15382. _worksStudent[i].push(_work);
  15383. _worksStudent2[i].push(_work);
  15384. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15385. }
  15386. }
  15387. }
  15388. if (_worksStudent[i] && _worksStudent[i].length) {
  15389. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15390. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15391. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15392. var scoreA = parseFloat(jscoreA);
  15393. var scoreB = parseFloat(jscoreB);
  15394. if (scoreA == scoreB) {
  15395. return b.likesCount - a.likesCount;
  15396. }
  15397. return scoreB - scoreA;
  15398. });
  15399. if (this.isGroup) {
  15400. for (
  15401. var groupI = 0;
  15402. groupI < this.courseGroup.group.length;
  15403. groupI++
  15404. ) {
  15405. this.courseGroup.group[groupI].works[i] =
  15406. this.courseGroup.group[groupI].works[i].sort(function (
  15407. a,
  15408. b
  15409. ) {
  15410. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15411. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15412. var scoreA = parseFloat(jscoreA);
  15413. var scoreB = parseFloat(jscoreB);
  15414. if (scoreA == scoreB) {
  15415. return b.likesCount - a.likesCount;
  15416. }
  15417. return scoreB - scoreA;
  15418. });
  15419. }
  15420. }
  15421. }
  15422. }
  15423. this.timeWorkList = _worksStudent2;
  15424. for (var i = 0; i < a.length; i++) {
  15425. for (var j = 0; j < b.length; j++) {
  15426. var data = b[j];
  15427. if (i == b[j].tool) {
  15428. if (data.type == 2 || data.type == 8) {
  15429. for (var z = 0; z < this.checkJson[i].length; z++) {
  15430. this.checkJson[i][z].checkPerent = [];
  15431. this.checkJson[i][z].right = Math.round(
  15432. (this.checkJson[i][z].rightPerson.length /
  15433. parseInt(_worksStudent[i].length)) *
  15434. 100
  15435. );
  15436. let aaaa = this.checkJson[i][z];
  15437. for (
  15438. var k = 0;
  15439. k < this.checkJson[i][z].checkCount.length;
  15440. k++
  15441. ) {
  15442. this.checkJson[i][z].checkPerent.push(
  15443. Math.round(
  15444. (this.checkJson[i][z].checkCount[k] /
  15445. parseInt(_worksStudent[i].length)) *
  15446. 100
  15447. )
  15448. );
  15449. }
  15450. }
  15451. } else if (data.type == 9) {
  15452. for (var z = 0; z < this.checkJson[i].length; z++) {
  15453. this.checkJson[i][z].checkPerent = [];
  15454. this.checkJson[i][z].right = Math.round(
  15455. (this.checkJson[i][z].rightPerson.length /
  15456. this.checkJson[i][z].checkPerson.length) *
  15457. 100
  15458. );
  15459. }
  15460. }
  15461. }
  15462. }
  15463. }
  15464. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15465. this.joinGroup(gindex);
  15466. }
  15467. this.worksStudent = _worksStudent;
  15468. this.selectWorksStudent();
  15469. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15470. this.$nextTick(()=>{
  15471. setTimeout(()=>{
  15472. setTimeout(()=>{
  15473. this.panToolHeight('tool-'+ci);
  15474. }, 500)
  15475. }, 0)
  15476. })
  15477. }
  15478. })
  15479. .catch((err) => {
  15480. console.error(err);
  15481. });
  15482. },
  15483. pngToWhiteBg(file) {
  15484. const _file = file;
  15485. let read = new FileReader();
  15486. read.readAsDataURL(file); // 文件转base64
  15487. return new Promise((resolve, reject) => {
  15488. read.onload = (e) => {
  15489. let img = new Image();
  15490. img.src = e.target.result;
  15491. img.onload = async () => {
  15492. // 生成canvas
  15493. let canvas = document.createElement("canvas");
  15494. let context = canvas.getContext("2d");
  15495. // 绘制图片到canvas上
  15496. canvas.width = img.width;
  15497. canvas.height = img.height;
  15498. // 在canvas绘制前填充白色背景
  15499. context.fillStyle = "#fff";
  15500. context.fillRect(0, 0, canvas.width, canvas.height);
  15501. context.drawImage(img, 0, 0);
  15502. let base64 = canvas.toDataURL(file["type"], 1);
  15503. let newFile = this.dataUrlToFile(base64, _file);
  15504. resolve(newFile);
  15505. };
  15506. };
  15507. });
  15508. },
  15509. dataUrlToFile(dataurl, file) {
  15510. let arr = dataurl.split(","),
  15511. mime = arr[0].match(/:(.*?);/)[1],
  15512. bstr = atob(arr[1]),
  15513. n = bstr.length,
  15514. u8arr = new Uint8Array(n);
  15515. while (n--) {
  15516. u8arr[n] = bstr.charCodeAt(n);
  15517. }
  15518. // return new Blob([u8arr], { type: mime });
  15519. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15520. type: mime,
  15521. });
  15522. },
  15523. async beforeUpload1(event, type, i) {
  15524. // this.$message.success('进入上传')
  15525. var file = "";
  15526. if (type == 5) {
  15527. file = event;
  15528. } else {
  15529. file = event.target.files[0];
  15530. }
  15531. var credentials = {
  15532. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15533. secretAccessKey: "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",
  15534. }; //秘钥形式的登录上传
  15535. window.AWS.config.update(credentials);
  15536. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15537. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15538. var _this = this;
  15539. _this.progress = 0;
  15540. _this.proVisible = true;
  15541. _this.isFinishSize = 0;
  15542. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15543. var b = [
  15544. "DOC",
  15545. "DOCX",
  15546. "DOCM",
  15547. "DOTM",
  15548. "DOTX",
  15549. "PPTX",
  15550. "PPSX",
  15551. "PPT",
  15552. "PPS",
  15553. "PPTM",
  15554. "POTM",
  15555. "PPAM",
  15556. "POTX",
  15557. "PPSM",
  15558. ];
  15559. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15560. var photoA = [
  15561. "BMP",
  15562. "GIF",
  15563. "PNG",
  15564. "JPEG",
  15565. "JPEG",
  15566. "JPG",
  15567. "TIF",
  15568. "PCX",
  15569. "TGA",
  15570. "EXIF",
  15571. "FPX",
  15572. "SVG",
  15573. "APNG",
  15574. ];
  15575. // if (
  15576. // b.indexOf(
  15577. // file.name
  15578. // .split(".")
  15579. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15580. // ) != -1
  15581. // ) {
  15582. // if (file.size / 1024 / 1024 > 10) {
  15583. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15584. // return;
  15585. // }
  15586. // } else if (
  15587. // excelA.indexOf(
  15588. // file.name
  15589. // .split(".")
  15590. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15591. // ) != "-1"
  15592. // ) {
  15593. // if (file.size / 1024 / 1024 > 5) {
  15594. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15595. // return;
  15596. // }
  15597. // }
  15598. if (
  15599. photoA.indexOf(
  15600. file.name
  15601. .split(".")
  15602. [file.name.split(".").length - 1].toLocaleUpperCase()
  15603. ) != -1 &&
  15604. type != 4
  15605. ) {
  15606. // const blob = await imageConversion.compress(file, 0.8)
  15607. file = await this.pngToWhiteBg(file);
  15608. const blob = await imageConversion.compressAccurately(file, 256);
  15609. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15610. file = new File([blob], file.name, { type: file.type });
  15611. }
  15612. if (file) {
  15613. var params = {
  15614. Key:
  15615. file.name.split(".")[0] +
  15616. new Date().getTime() +
  15617. "." +
  15618. file.name.split(".")[file.name.split(".").length - 1],
  15619. ContentType: file.type,
  15620. Body: file,
  15621. "Access-Control-Allow-Credentials": "*",
  15622. ACL: "public-read",
  15623. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15624. var options = {
  15625. // partSize: 2048 * 1024 * 1024,
  15626. partSize: 1024 * 1024 * 1024,
  15627. queueSize: 2,
  15628. leavePartsOnError: true,
  15629. };
  15630. bucket
  15631. .upload(params, options)
  15632. .on("httpUploadProgress", function (evt) {
  15633. //这里可以写进度条
  15634. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15635. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15636. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15637. })
  15638. .send(function (err, data) {
  15639. _this.progress = 100;
  15640. _this.isFinishSize = _this.isAllSize;
  15641. setTimeout(() => {
  15642. _this.proVisible = false;
  15643. }, 1000);
  15644. if (err) {
  15645. var a = _this.$refs.upload1.uploadFiles;
  15646. a.splice(a.length - 1, a.length);
  15647. _this.$message.error("上传失败");
  15648. } else {
  15649. // _this.$message.success('上传成功')
  15650. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15651. var c = [
  15652. "AVI",
  15653. "NAVI",
  15654. "MPEG",
  15655. "ASF",
  15656. "MOV",
  15657. "WMV",
  15658. "3GP",
  15659. "RM",
  15660. "RMVB",
  15661. "FLV",
  15662. "F4V",
  15663. "H.264",
  15664. "H.265",
  15665. "REAL VIDEO",
  15666. "MKV",
  15667. "WebM",
  15668. "HDDVD",
  15669. "MP4",
  15670. "MPG",
  15671. "M4V",
  15672. "MGV",
  15673. "OGV",
  15674. "QTM",
  15675. "STR",
  15676. "AMC",
  15677. "DVX",
  15678. "EVO",
  15679. "DAT",
  15680. "OGG",
  15681. "OGM",
  15682. ];
  15683. if (type == 1) {
  15684. _this.studyJuri[0].cover.push({
  15685. name: file.name,
  15686. url: data.Location,
  15687. uid: file.uid,
  15688. });
  15689. if (
  15690. c.indexOf(
  15691. _this.studyJuri[0].cover[0].url
  15692. .split(".")
  15693. [
  15694. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15695. ].toLocaleUpperCase()
  15696. ) != -1
  15697. ) {
  15698. _this.fileType = 2;
  15699. } else if (
  15700. b.indexOf(
  15701. _this.studyJuri[0].cover[0].url
  15702. .split(".")
  15703. [
  15704. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15705. ].toLocaleUpperCase()
  15706. ) != -1
  15707. ) {
  15708. _this.fileType = 1;
  15709. } else if (
  15710. photoA.indexOf(
  15711. _this.studyJuri[0].cover[0].url
  15712. .split(".")
  15713. [
  15714. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15715. ].toLocaleUpperCase()
  15716. ) != -1
  15717. ) {
  15718. _this.fileType = 0;
  15719. } else {
  15720. _this.fileType = 3;
  15721. }
  15722. _this.imgChange(null, null, type);
  15723. } else if (type == 2) {
  15724. _this.upToolImg = data.Location;
  15725. _this.imgChange(null, null, type);
  15726. _this.addCourseWorks(i);
  15727. } else if (type == 4) {
  15728. _this.addPz("3", data.Location);
  15729. } else if (type == 5) {
  15730. _this.addImgDrawImG(data.Location);
  15731. } else if (type == 6) {
  15732. var _ftype = 1;
  15733. if (
  15734. c.indexOf(
  15735. data.Location.split(".")[
  15736. data.Location.split(".").length - 1
  15737. ].toLocaleUpperCase()
  15738. ) != -1
  15739. ) {
  15740. _ftype = 5;
  15741. } else if (
  15742. b.indexOf(
  15743. data.Location.split(".")[
  15744. data.Location.split(".").length - 1
  15745. ].toLocaleUpperCase()
  15746. ) != -1
  15747. ) {
  15748. _ftype = 4;
  15749. } else {
  15750. _ftype = 1;
  15751. }
  15752. _this.plworkFile.push({
  15753. name: file.name,
  15754. url: data.Location,
  15755. uid: file.uid,
  15756. fileType: _ftype,
  15757. username:
  15758. _this.plworkFile.length > 10
  15759. ? _this.plworkFile.length + 1
  15760. : "0" + (_this.plworkFile.length + 1),
  15761. });
  15762. } else if (type == 7) {
  15763. _this.addCourseWorksGong(i, data.Location, 32);
  15764. } else if (type == 8) {
  15765. _this.addCourseWorksGong(i, data.Location, 57);
  15766. }
  15767. _this.imgChange(null, null, type);
  15768. console.log(data.Location);
  15769. // _this.$message.success('上传成功'+data.Location)
  15770. }
  15771. });
  15772. }
  15773. },
  15774. async beforeUpload3(event, type, i) {
  15775. // this.$message.success('进入上传')
  15776. let file = "";
  15777. let cfindex2 = 0;
  15778. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15779. file = event.target.files[cfindex];
  15780. var credentials = {
  15781. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15782. secretAccessKey: "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",
  15783. }; //秘钥形式的登录上传
  15784. window.AWS.config.update(credentials);
  15785. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15786. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15787. var _this = this;
  15788. // _this.progress = 0;
  15789. _this.proVisible2 = true;
  15790. var b = [
  15791. "DOC",
  15792. "DOCX",
  15793. "DOCM",
  15794. "DOTM",
  15795. "DOTX",
  15796. "PPTX",
  15797. "PPSX",
  15798. "PPT",
  15799. "PPS",
  15800. "PPTM",
  15801. "POTM",
  15802. "PPAM",
  15803. "POTX",
  15804. "PPSM",
  15805. ];
  15806. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15807. var photoA = [
  15808. "BMP",
  15809. "GIF",
  15810. "PNG",
  15811. "JPEG",
  15812. "JPG",
  15813. "TIF",
  15814. "PCX",
  15815. "TGA",
  15816. "EXIF",
  15817. "FPX",
  15818. "SVG",
  15819. "APNG",
  15820. ];
  15821. if (
  15822. photoA.indexOf(
  15823. file.name
  15824. .split(".")
  15825. [file.name.split(".").length - 1].toLocaleUpperCase()
  15826. ) != -1 &&
  15827. type != 4
  15828. ) {
  15829. // const blob = await imageConversion.compress(file, 0.8)
  15830. file = await this.pngToWhiteBg(file);
  15831. const blob = await imageConversion.compressAccurately(file, 256);
  15832. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15833. file = new File([blob], file.name, { type: file.type });
  15834. }
  15835. if (file) {
  15836. var params = {
  15837. Key:
  15838. file.name.split(".")[0] +
  15839. new Date().getTime() +
  15840. "." +
  15841. file.name.split(".")[file.name.split(".").length - 1],
  15842. ContentType: file.type,
  15843. Body: file,
  15844. "Access-Control-Allow-Credentials": "*",
  15845. ACL: "public-read",
  15846. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15847. var options = {
  15848. // partSize: 2048 * 1024 * 1024,
  15849. partSize: 1024 * 1024 * 1024,
  15850. queueSize: 2,
  15851. leavePartsOnError: true,
  15852. };
  15853. bucket
  15854. .upload(params, options)
  15855. .on("httpUploadProgress", function (evt) {
  15856. //这里可以写进度条
  15857. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15858. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15859. })
  15860. .send(function (err, data) {
  15861. // _this.progress = 100;
  15862. cfindex2++;
  15863. setTimeout(() => {
  15864. if (
  15865. cfindex2 == event.target.files.length - 1 ||
  15866. cfindex2 > event.target.files.length - 1
  15867. ) {
  15868. _this.proVisible2 = false;
  15869. }
  15870. }, 1000);
  15871. if (err) {
  15872. var a = _this.$refs.upload1.uploadFiles;
  15873. a.splice(a.length - 1, a.length);
  15874. _this.$message.error("上传失败");
  15875. } else {
  15876. // _this.$message.success('上传成功')
  15877. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15878. var c = [
  15879. "AVI",
  15880. "NAVI",
  15881. "MPEG",
  15882. "ASF",
  15883. "MOV",
  15884. "WMV",
  15885. "3GP",
  15886. "RM",
  15887. "RMVB",
  15888. "FLV",
  15889. "F4V",
  15890. "H.264",
  15891. "H.265",
  15892. "REAL VIDEO",
  15893. "MKV",
  15894. "WebM",
  15895. "HDDVD",
  15896. "MP4",
  15897. "MPG",
  15898. "M4V",
  15899. "MGV",
  15900. "OGV",
  15901. "QTM",
  15902. "STR",
  15903. "AMC",
  15904. "DVX",
  15905. "EVO",
  15906. "DAT",
  15907. "OGG",
  15908. "OGM",
  15909. ];
  15910. if (type == 1) {
  15911. _this.studyJuri[0].cover.push({
  15912. name: file.name,
  15913. url: data.Location,
  15914. uid: file.uid,
  15915. });
  15916. if (
  15917. c.indexOf(
  15918. _this.studyJuri[0].cover[0].url
  15919. .split(".")
  15920. [
  15921. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15922. ].toLocaleUpperCase()
  15923. ) != -1
  15924. ) {
  15925. _this.fileType = 2;
  15926. } else if (
  15927. b.indexOf(
  15928. _this.studyJuri[0].cover[0].url
  15929. .split(".")
  15930. [
  15931. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15932. ].toLocaleUpperCase()
  15933. ) != -1
  15934. ) {
  15935. _this.fileType = 1;
  15936. } else {
  15937. _this.fileType = 0;
  15938. }
  15939. _this.imgChange(null, null, type);
  15940. } else if (type == 2) {
  15941. _this.upToolImg = data.Location;
  15942. _this.imgChange(null, null, type);
  15943. _this.addCourseWorks(i);
  15944. } else if (type == 4) {
  15945. _this.addPz("3", data.Location);
  15946. } else if (type == 5) {
  15947. _this.addImgDrawImG(data.Location);
  15948. } else if (type == 6) {
  15949. var _ftype = 1;
  15950. if (
  15951. c.indexOf(
  15952. data.Location.split(".")[
  15953. data.Location.split(".").length - 1
  15954. ].toLocaleUpperCase()
  15955. ) != -1
  15956. ) {
  15957. _ftype = 5;
  15958. } else if (
  15959. b.indexOf(
  15960. data.Location.split(".")[
  15961. data.Location.split(".").length - 1
  15962. ].toLocaleUpperCase()
  15963. ) != -1
  15964. ) {
  15965. _ftype = 4;
  15966. } else {
  15967. _ftype = 1;
  15968. }
  15969. _this.plworkFile.push({
  15970. name: file.name,
  15971. url: data.Location,
  15972. uid: file.uid,
  15973. fileType: _ftype,
  15974. username:
  15975. _this.plworkFile.length + 1 > 9
  15976. ? _this.plworkFile.length + 1
  15977. : "0" + (_this.plworkFile.length + 1),
  15978. });
  15979. }
  15980. _this.imgChange(null, null, type);
  15981. console.log(data.Location);
  15982. // _this.$message.success('上传成功'+data.Location)
  15983. }
  15984. });
  15985. }
  15986. }
  15987. },
  15988. beforeUpload2(event, type) {
  15989. var file = event.target.files[0];
  15990. var credentials = {
  15991. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15992. secretAccessKey: "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",
  15993. }; //秘钥形式的登录上传
  15994. window.AWS.config.update(credentials);
  15995. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15996. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15997. var _this = this;
  15998. _this.progress = 0;
  15999. _this.proVisible = true;
  16000. if (file) {
  16001. var params = {
  16002. Key:
  16003. file.name.split(".")[0] +
  16004. new Date().getTime() +
  16005. "." +
  16006. file.name.split(".")[file.name.split(".").length - 1],
  16007. ContentType: file.type,
  16008. Body: file,
  16009. "Access-Control-Allow-Credentials": "*",
  16010. ACL: "public-read",
  16011. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16012. var options = {
  16013. partSize: 2048 * 1024 * 1024,
  16014. queueSize: 2,
  16015. leavePartsOnError: true,
  16016. };
  16017. bucket
  16018. .upload(params, options)
  16019. .on("httpUploadProgress", function (evt) {
  16020. //这里可以写进度条
  16021. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16022. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16023. })
  16024. .send(function (err, data) {
  16025. _this.progress = 100;
  16026. setTimeout(() => {
  16027. _this.proVisible = false;
  16028. }, 1000);
  16029. if (err) {
  16030. var a = _this.$refs.upload1.uploadFiles;
  16031. a.splice(a.length - 1, a.length);
  16032. _this.$message.error("上传失败");
  16033. } else {
  16034. if (type == 2) {
  16035. _this.studyJuri[0].upVedio.push({
  16036. name: file.name,
  16037. url: data.Location,
  16038. uid: file.uid,
  16039. });
  16040. _this.imgChange(null, null, type);
  16041. } else if (type == 3) {
  16042. _this.studyJuri[0].upFile.push({
  16043. name: file.name,
  16044. url: data.Location,
  16045. uid: file.uid,
  16046. });
  16047. _this.imgChange(null, null, type);
  16048. }
  16049. console.log(data.Location);
  16050. }
  16051. });
  16052. }
  16053. },
  16054. allScrell() {
  16055. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16056. },
  16057. nextOrpreSteps(t) {
  16058. if (this.IsFollow && this.tType == 2) {
  16059. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16060. return;
  16061. }
  16062. var b = this.chapInfoList.length - 1;
  16063. if (t == 0) {
  16064. if (this.courseType == 0) {
  16065. if (this.taskCount == 0) {
  16066. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16067. if (this.IsLookOpen) {
  16068. if (
  16069. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16070. ) {
  16071. if (
  16072. this.courseDetail.userid != this.userid &&
  16073. (!this.courseDetail.course_teacher ||
  16074. (this.courseDetail.course_teacher &&
  16075. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16076. ) {
  16077. this.$message.error("任务未解锁");
  16078. } else {
  16079. this.$message.error("上一任务未解锁");
  16080. }
  16081. return;
  16082. }
  16083. }
  16084. this.navList[this.courseType].isOpen = false;
  16085. this.courseType = b;
  16086. this.taskCount =
  16087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16088. .length - 1;
  16089. this.navList[this.courseType].isOpen = true;
  16090. } else {
  16091. this.taskCount--;
  16092. }
  16093. } else {
  16094. if (this.taskCount == 0) {
  16095. this.navList[this.courseType].isOpen = false;
  16096. this.courseType--;
  16097. this.taskCount =
  16098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16099. .length - 1;
  16100. this.navList[this.courseType].isOpen = true;
  16101. } else {
  16102. this.taskCount--;
  16103. }
  16104. }
  16105. } else {
  16106. if (this.courseType == b) {
  16107. if (
  16108. this.taskCount ==
  16109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16110. 1
  16111. ) {
  16112. this.navList[this.courseType].isOpen = false;
  16113. this.courseType = 0;
  16114. this.taskCount = 0;
  16115. this.navList[this.courseType].isOpen = true;
  16116. } else {
  16117. var bbb = parseInt(this.taskCount) + 1;
  16118. if (
  16119. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16120. .isLook &&
  16121. this.courseDetail.userid != this.userid &&
  16122. (!this.courseDetail.course_teacher ||
  16123. (this.courseDetail.course_teacher &&
  16124. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16125. this.IsLookOpen
  16126. ) {
  16127. this.$message.error("任务未解锁");
  16128. return;
  16129. }
  16130. this.taskCount++;
  16131. if (this.IsLookOpen) {
  16132. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16133. this.taskCount
  16134. ].isLook = true;
  16135. this.addCourseState(3);
  16136. }
  16137. }
  16138. } else {
  16139. if (
  16140. this.taskCount ==
  16141. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16142. 1
  16143. ) {
  16144. var bbb = parseInt(this.courseType) + 1;
  16145. if (
  16146. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16147. this.courseDetail.userid != this.userid &&
  16148. (!this.courseDetail.course_teacher ||
  16149. (this.courseDetail.course_teacher &&
  16150. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16151. this.IsLookOpen
  16152. ) {
  16153. this.$message.error("任务未解锁");
  16154. return;
  16155. }
  16156. this.navList[this.courseType].isOpen = false;
  16157. this.courseType++;
  16158. this.taskCount = 0;
  16159. this.navList[this.courseType].isOpen = true;
  16160. } else {
  16161. var bbb = parseInt(this.taskCount) + 1;
  16162. if (
  16163. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16164. .isLook &&
  16165. this.courseDetail.userid != this.userid &&
  16166. (!this.courseDetail.course_teacher ||
  16167. (this.courseDetail.course_teacher &&
  16168. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16169. this.IsLookOpen
  16170. ) {
  16171. this.$message.error("任务未解锁");
  16172. return;
  16173. }
  16174. this.taskCount++;
  16175. }
  16176. if (this.IsLookOpen) {
  16177. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16178. this.taskCount
  16179. ].isLook = true;
  16180. this.addCourseState(3);
  16181. }
  16182. }
  16183. // if (
  16184. // this.taskCount ==
  16185. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16186. // ) {
  16187. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16188. // } else {
  16189. // this.taskCount++;
  16190. // }
  16191. }
  16192. document.scrollingElement.scrollTop = 0;
  16193. this.showType = 7;
  16194. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16195. // if (this.vedio[this.taskCount].length > 0) {
  16196. // var a =
  16197. // document.getElementsByClassName("box_course")[this.taskCount]
  16198. // .offsetHeight;
  16199. // document.getElementsByClassName("vedioList")[
  16200. // this.taskCount
  16201. // ].style.height = a + "px";
  16202. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16203. // a - 40 + "px";
  16204. // }
  16205. this.isNoHomeWork = false;
  16206. (this.studyJuri = [
  16207. {
  16208. content: "",
  16209. cover: [],
  16210. upVedio: [],
  16211. upFile: [],
  16212. },
  16213. ]),
  16214. (this.radio = []);
  16215. this.isClickNav = "";
  16216. this.selectPz();
  16217. this.getHomeWork();
  16218. this.getCourseDetail(2);
  16219. this.$forceUpdate();
  16220. },
  16221. openTask(s, n, i) {
  16222. if (this.IsFollow && this.tType == 2) {
  16223. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16224. return;
  16225. }
  16226. if (this.IsLookOpen) {
  16227. if (
  16228. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16229. this.courseDetail.userid != this.userid &&
  16230. (!this.courseDetail.course_teacher ||
  16231. (this.courseDetail.course_teacher &&
  16232. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16233. ) {
  16234. this.$message.error("任务未解锁");
  16235. return;
  16236. }
  16237. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16238. if (
  16239. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16240. .isLook
  16241. ) {
  16242. this.$message.error("上一任务未解锁");
  16243. return;
  16244. }
  16245. } else if (s > this.courseType) {
  16246. if (n > 0) {
  16247. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16248. this.$message.error("上一任务未解锁");
  16249. return;
  16250. }
  16251. } else {
  16252. if (
  16253. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16254. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16255. ].isLook
  16256. ) {
  16257. this.$message.error("上一任务未解锁");
  16258. return;
  16259. }
  16260. }
  16261. }
  16262. }
  16263. if (this.navList[s].task[n].isOpen == true) {
  16264. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16265. return;
  16266. }
  16267. let flag = this.courseType==s;
  16268. this.courseType = s;
  16269. this.navId = i;
  16270. this.taskCount = n;
  16271. this.navList[this.courseType].task[this.taskCount].isOpen =
  16272. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16273. if (this.IsLookOpen) {
  16274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16275. this.taskCount
  16276. ].isLook = true;
  16277. this.addCourseState(3);
  16278. }
  16279. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16280. this.isCloseList[ci].isClose = 0;
  16281. this.isCloseList[ci].isCloseBoolean = false;
  16282. this.$nextTick(()=>{
  16283. setTimeout(()=>{
  16284. setTimeout(()=>{
  16285. this.panToolHeight('tool-'+ci);
  16286. }, 0)
  16287. }, 0)
  16288. })
  16289. }
  16290. this.showType = 7;
  16291. this.isNoHomeWork = false;
  16292. (this.studyJuri = [
  16293. {
  16294. content: "",
  16295. cover: [],
  16296. upVedio: [],
  16297. upFile: [],
  16298. },
  16299. ]),
  16300. (this.radio = []);
  16301. document.scrollingElement.scrollTop = 0;
  16302. // setTimeout(() => {
  16303. // let a = document.getElementById(i);
  16304. // if (a.offsetTop - 110 == 0) {
  16305. // window.scrollTo(0, 0);
  16306. // } else {
  16307. // window.scrollTo(0, a.offsetTop);
  16308. // }
  16309. // }, 0);
  16310. for (var z = 0; z < this.navList.length; z++) {
  16311. for (var q = 0; q < this.navList[z].task.length; q++) {
  16312. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16313. this.navList[z].task[q].tool[w].isTool = false;
  16314. }
  16315. }
  16316. }
  16317. this.selectPz();
  16318. this.getHomeWork();
  16319. this.getCourseDetail(2);
  16320. if(flag){
  16321. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16322. }else{
  16323. 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>`)
  16324. }
  16325. },
  16326. get(i) {
  16327. if (this.IsFollow && this.tType == 2) {
  16328. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16329. return;
  16330. }
  16331. // for(var k=0;k<this.navList.length;k++){
  16332. // this.navList[k].isOpen = false;
  16333. // }
  16334. // this.navList[i].isOpen = true;
  16335. this.navList[i].isOpen = !this.navList[i].isOpen;
  16336. if (this.navList[i].isOpen) {
  16337. this.openTask(i, 0, i + "-0");
  16338. }
  16339. },
  16340. addQuestion() {
  16341. this.answerList.push({
  16342. answerTitle: this.answerQ,
  16343. answer: this.questionAnswer,
  16344. });
  16345. let params = [
  16346. {
  16347. uid: this.userid,
  16348. cid: this.id,
  16349. stage: this.courseType,
  16350. task: this.taskCount,
  16351. tool: this.toolindex,
  16352. content: JSON.stringify(this.answerList),
  16353. type: 3,
  16354. },
  16355. ];
  16356. this.ajax
  16357. .post(this.$store.state.api + "addCourseWorks", params)
  16358. .then((res) => {
  16359. this.$message({
  16360. message: "提交成功",
  16361. type: "success",
  16362. });
  16363. this.answerList = [];
  16364. this.answerDialogVisible = false;
  16365. this.selectStudent();
  16366. this.selectSWorks();
  16367. this.selectSLook();
  16368. })
  16369. .catch((err) => {
  16370. this.$message.error("提交失败");
  16371. console.error(err);
  16372. });
  16373. },
  16374. addQuestionTeacher() {
  16375. this.answerList.push({
  16376. answerTitle: this.answerQ,
  16377. answer: this.questionAnswer,
  16378. });
  16379. let params = [
  16380. {
  16381. uid: this.sStudent.userid,
  16382. cid: this.id,
  16383. stage: this.courseType,
  16384. task: this.taskCount,
  16385. tool: this.toolindex,
  16386. content: JSON.stringify(this.answerList),
  16387. type: 3,
  16388. ateacher: this.userid,
  16389. },
  16390. ];
  16391. this.ajax
  16392. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16393. .then((res) => {
  16394. this.$message({
  16395. message: "提交成功",
  16396. type: "success",
  16397. });
  16398. this.answerList = [];
  16399. this.questionAnswer = "";
  16400. this.answerDialogVisibleTeacher = false;
  16401. this.selectStudent();
  16402. this.selectSWorks();
  16403. this.selectSLook();
  16404. })
  16405. .catch((err) => {
  16406. this.$message.error("提交失败");
  16407. console.error(err);
  16408. });
  16409. },
  16410. refreshCourse() {
  16411. // window.location.reload();
  16412. this.navList = [];
  16413. this.getCourseDetail(1);
  16414. },
  16415. getCourseDetail(type, gindex) {
  16416. let loading;
  16417. if (type != 2) {
  16418. loading = this.$loading.service({
  16419. background: "rgba(255, 255, 255, 0.7)",
  16420. target: document.querySelector(".student_table"),
  16421. });
  16422. }
  16423. this.downLoading = false
  16424. // this.navList[0].isOpen = false;
  16425. // this.navList[this.courseType].isOpen = true;
  16426. // this.courseType = this.courseTypeLine;
  16427. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16428. let params = {
  16429. courseId: this.id,
  16430. };
  16431. this.ajax
  16432. .get(this.$store.state.api + "selectCourseDetail3", params)
  16433. .then((res) => {
  16434. if (type != 2) {
  16435. loading.close();
  16436. if (
  16437. this.courseType >
  16438. JSON.parse(res.data[0][0].chapters).length - 1
  16439. ) {
  16440. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16441. }
  16442. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16443. .chapterInfo[0].taskJson;
  16444. var b = [
  16445. "AVI",
  16446. "NAVI",
  16447. "MPEG",
  16448. "ASF",
  16449. "MOV",
  16450. "WMV",
  16451. "3GP",
  16452. "RM",
  16453. "RMVB",
  16454. "FLV",
  16455. "F4V",
  16456. "H.264",
  16457. "H.265",
  16458. "REAL VIDEO",
  16459. "MKV",
  16460. "WebM",
  16461. "HDDVD",
  16462. "MP4",
  16463. "MPG",
  16464. "M4V",
  16465. "MGV",
  16466. "OGV",
  16467. "QTM",
  16468. "STR",
  16469. "AMC",
  16470. "DVX",
  16471. "EVO",
  16472. "DAT",
  16473. "OGG",
  16474. "OGM",
  16475. "MP3",
  16476. ];
  16477. let _chapterData = [];
  16478. for (var i = 0; i < a.length; i++) {
  16479. var c = a[i].chapterData;
  16480. this.vedio[i] = [];
  16481. this.textList[i] = [];
  16482. this.lineList[i] = [];
  16483. this.chapToolList[i] = [];
  16484. this.file[i] = [];
  16485. this.fileC[i] = [];
  16486. _chapterData[i] = c.filter((el) => {
  16487. return el.type != 12;
  16488. });
  16489. this.fileC[i] = c.filter((el) => {
  16490. return el.type == 12;
  16491. });
  16492. // else if (c[j].type == 12) {
  16493. // this.fileC[i].push(c[j]);
  16494. // }
  16495. for (var j = 0; j < c.length; j++) {
  16496. if (c[j].type == 7) {
  16497. this.chapToolList[i].push(c[j]);
  16498. } else if (c[j].type == 8 || c[j].type == 14) {
  16499. this.lineList[i].push(c[j]);
  16500. } else if (c[j].type == 6) {
  16501. this.textList[i].push(c[j]);
  16502. } else {
  16503. if (
  16504. b.indexOf(
  16505. c[j].url
  16506. .split(".")
  16507. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16508. ) != -1
  16509. ) {
  16510. this.vedio[i].push(c[j]);
  16511. } else {
  16512. this.file[i].push(c[j]);
  16513. }
  16514. }
  16515. }
  16516. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16517. d.sources[0].src =
  16518. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16519. this.playerO[i] = d;
  16520. }
  16521. this.courseDetail = res.data[0][0];
  16522. this.tcid = this.arrayToArray(
  16523. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16524. this.tcid2 ? this.tcid2.split(",") : []
  16525. ).join(",");
  16526. this.evalua = res.data[0][0].evaId;
  16527. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16528. this.courseType
  16529. ];
  16530. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16531. if (this.tcid && res.data[1].length) {
  16532. let _inviteA = [];
  16533. for (var ik = 0; ik < res.data[1].length; ik++) {
  16534. _inviteA.push({
  16535. cid: res.data[1][ik].classid,
  16536. ic: res.data[1][ik].code,
  16537. });
  16538. }
  16539. for (var ik = 0; ik < _inviteA.length; ik++) {
  16540. if (
  16541. this.arrayToArray(
  16542. _inviteA[ik].cid.split(","),
  16543. this.tcid.split(",")
  16544. ).length
  16545. ) {
  16546. this.inviteCode = _inviteA[ik].ic;
  16547. break;
  16548. }
  16549. }
  16550. }
  16551. for (var l = 0; l < this.chapInfoList.length; l++) {
  16552. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16553. for (var m = 0; m < w.length; m++) {
  16554. w[m].id = l + "-" + m;
  16555. }
  16556. }
  16557. let taskCount = 0;
  16558. if (
  16559. _chapterData[taskCount].length &&
  16560. _chapterData[taskCount][0].type == 2
  16561. ) {
  16562. this.showType = 0;
  16563. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16564. } else {
  16565. if (_chapterData[taskCount].length > 0) {
  16566. let _url = _chapterData[taskCount][0].url;
  16567. if (
  16568. _chapterData[taskCount][0].type == 8 ||
  16569. _chapterData[taskCount][0].type == 14
  16570. ) {
  16571. this.showType = 2;
  16572. if (
  16573. _url.indexOf("https://") == -1 &&
  16574. _url.indexOf("http://") == -1
  16575. ) {
  16576. _url = "https://" + _url;
  16577. }
  16578. this.pptImgUrl1 = _url;
  16579. } else if (_chapterData[taskCount][0].type == 3) {
  16580. if (
  16581. _url
  16582. .split(".")
  16583. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16584. ) {
  16585. this.showType = 3;
  16586. this.pptImgUrl1 = _url;
  16587. } else if (
  16588. this.isAssetTypeAnImage(
  16589. _url
  16590. .split(".")
  16591. [_url.split(".").length - 1].toLocaleLowerCase()
  16592. )
  16593. ) {
  16594. this.showType = 4;
  16595. this.pptImgUrl1 = _url;
  16596. } else {
  16597. this.showType = 2;
  16598. this.pptImgUrl1 =
  16599. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16600. encodeURIComponent(_url);
  16601. }
  16602. } else if (_chapterData[taskCount][0].type == 13) {
  16603. this.showType = 4;
  16604. this.pptImgUrl1 = _url;
  16605. } else if (_chapterData[taskCount][0].type == 6) {
  16606. this.showType = 1;
  16607. this.text = this.textList[taskCount][0];
  16608. }
  16609. }
  16610. }
  16611. this.isClickNav = 0;
  16612. if (
  16613. !_chapterData[taskCount].length ||
  16614. _chapterData[taskCount][0].type == 12
  16615. ) {
  16616. this.isClickNav = "";
  16617. this.showType = "";
  16618. }
  16619. this.vChapterData = _chapterData;
  16620. } else {
  16621. this.showType = 0;
  16622. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16623. .chapterInfo[0].taskJson;
  16624. var b = [
  16625. "AVI",
  16626. "NAVI",
  16627. "MPEG",
  16628. "ASF",
  16629. "MOV",
  16630. "WMV",
  16631. "3GP",
  16632. "RM",
  16633. "RMVB",
  16634. "FLV",
  16635. "F4V",
  16636. "H.264",
  16637. "H.265",
  16638. "REAL VIDEO",
  16639. "MKV",
  16640. "WebM",
  16641. "HDDVD",
  16642. "MP4",
  16643. "MPG",
  16644. "M4V",
  16645. "MGV",
  16646. "OGV",
  16647. "QTM",
  16648. "STR",
  16649. "AMC",
  16650. "DVX",
  16651. "EVO",
  16652. "DAT",
  16653. "OGG",
  16654. "OGM",
  16655. "MP3",
  16656. ];
  16657. let _chapterData = [];
  16658. for (var i = 0; i < a.length; i++) {
  16659. var c = a[i].chapterData;
  16660. this.vedio[i] = [];
  16661. this.textList[i] = [];
  16662. this.lineList[i] = [];
  16663. this.chapToolList[i] = [];
  16664. this.file[i] = [];
  16665. this.fileC[i] = [];
  16666. _chapterData[i] = c.filter((el) => {
  16667. return el.type != 12;
  16668. });
  16669. this.fileC[i] = c.filter((el) => {
  16670. return el.type == 12;
  16671. });
  16672. for (var j = 0; j < c.length; j++) {
  16673. if (c[j].type == 7) {
  16674. this.chapToolList[i].push(c[j]);
  16675. } else if (c[j].type == 8 || c[j].type == 14) {
  16676. this.lineList[i].push(c[j]);
  16677. } else if (c[j].type == 6) {
  16678. this.textList[i].push(c[j]);
  16679. } else {
  16680. if (
  16681. b.indexOf(
  16682. c[j].url
  16683. .split(".")
  16684. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16685. ) != -1
  16686. ) {
  16687. this.vedio[i].push(c[j]);
  16688. } else {
  16689. this.file[i].push(c[j]);
  16690. }
  16691. }
  16692. }
  16693. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16694. d.sources[0].src =
  16695. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16696. this.playerO[i] = d;
  16697. }
  16698. let taskCount = 0;
  16699. if (
  16700. _chapterData[taskCount].length &&
  16701. _chapterData[taskCount][0].type == 2
  16702. ) {
  16703. this.showType = 0;
  16704. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16705. } else {
  16706. if (_chapterData[taskCount].length > 0) {
  16707. let _url = _chapterData[taskCount][0].url;
  16708. if (
  16709. _chapterData[taskCount][0].type == 8 ||
  16710. _chapterData[taskCount][0].type == 14
  16711. ) {
  16712. this.showType = 2;
  16713. if (
  16714. _url.indexOf("https://") == -1 &&
  16715. _url.indexOf("http://") == -1
  16716. ) {
  16717. _url = "https://" + _url;
  16718. }
  16719. this.pptImgUrl1 = _url;
  16720. } else if (_chapterData[taskCount][0].type == 3) {
  16721. if (
  16722. _url
  16723. .split(".")
  16724. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16725. ) {
  16726. this.showType = 3;
  16727. this.pptImgUrl1 = _url;
  16728. } else if (
  16729. this.isAssetTypeAnImage(
  16730. _url
  16731. .split(".")
  16732. [_url.split(".").length - 1].toLocaleLowerCase()
  16733. )
  16734. ) {
  16735. this.showType = 4;
  16736. this.pptImgUrl1 = _url;
  16737. } else {
  16738. this.showType = 2;
  16739. this.pptImgUrl1 =
  16740. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16741. encodeURIComponent(_url);
  16742. }
  16743. } else if (_chapterData[taskCount][0].type == 13) {
  16744. this.showType = 4;
  16745. this.pptImgUrl1 = _url;
  16746. } else if (_chapterData[taskCount][0].type == 6) {
  16747. this.showType = 1;
  16748. this.text = this.textList[taskCount][0];
  16749. }
  16750. }
  16751. }
  16752. this.isClickNav = 0;
  16753. if (
  16754. !_chapterData[taskCount].length ||
  16755. _chapterData[taskCount][0].type == 12
  16756. ) {
  16757. this.isClickNav = "";
  16758. this.showType = "";
  16759. }
  16760. this.vChapterData = _chapterData;
  16761. this.$forceUpdate();
  16762. }
  16763. // else {
  16764. // this.courseDetail = res.data[0][0];
  16765. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16766. // }
  16767. let _this = this;
  16768. if (_this.timer) {
  16769. clearInterval(_this.timer);
  16770. _this.timer = null;
  16771. }
  16772. if (_this.tcid) {
  16773. _this.getCourseGroup(gindex);
  16774. } else {
  16775. _this.selectSWorks(gindex);
  16776. }
  16777. _this.selectStudent();
  16778. _this.selectSLook();
  16779. _this.getPick();
  16780. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16781. _this.setCTask();
  16782. }
  16783. if (_this.dialogVisibleGroup) {
  16784. _this.groupJson =
  16785. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16786. _this.taskCount
  16787. ].toolChoose[_this.toolindex].groupJson;
  16788. }
  16789. _this.$nextTick(() => {
  16790. setTimeout(() => {
  16791. _this.checkEva();
  16792. }, 1000);
  16793. });
  16794. _this.timer = setInterval(function () {
  16795. // _this.getCourseDetail(2);
  16796. if (_this.tcid) {
  16797. _this.getCourseGroup(gindex);
  16798. } else {
  16799. _this.selectSWorks(gindex);
  16800. }
  16801. _this.selectStudent();
  16802. _this.selectSLook();
  16803. _this.getPick();
  16804. _this.getSplitScreenData();//获取分屏数据
  16805. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16806. _this.setCTask();
  16807. }
  16808. if (_this.dialogVisibleGroup) {
  16809. _this.groupJson =
  16810. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16811. _this.taskCount
  16812. ].toolChoose[_this.toolindex].groupJson;
  16813. }
  16814. if (_this.tType == 4 || _this.ispzType == 4) {
  16815. _this.selectPz();
  16816. }
  16817. }, 5000);
  16818. _this.$nextTick(function () {
  16819. setTimeout(() => {
  16820. // var a =
  16821. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16822. // document.getElementsByClassName("vedioList")[0].style.height =
  16823. // a + "px";
  16824. // document.getElementsByClassName("navBox")[0].style.height =
  16825. // a - 40 + "px";
  16826. // if (_this.vedio[_this.taskCount].length > 0) {
  16827. // _this.vedioTime = [];
  16828. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16829. // _this.vedioTime[i] = document.getElementsByClassName(
  16830. // "vjs-duration-display"
  16831. // )[i].textContent;
  16832. // }
  16833. // }
  16834. }, 1000);
  16835. });
  16836. })
  16837. .catch((err) => {
  16838. loading.close();
  16839. console.error(err);
  16840. });
  16841. },
  16842. getCourseGroup(gindex) {
  16843. let params = {
  16844. cid: this.id,
  16845. classid: this.tcid ? this.tcid : "1",
  16846. };
  16847. this.ajax
  16848. .get(this.$store.state.api + "getCourseGroup", params)
  16849. .then((res) => {
  16850. if (res.data && res.data[0].length) {
  16851. if (!this.isGroup) {
  16852. let courseGroup = JSON.parse(res.data[0][0].group);
  16853. courseGroup.group = courseGroup.group.filter((el) => {
  16854. el.works = [];
  16855. return el;
  16856. });
  16857. if (courseGroup.isopen == 2) {
  16858. this.isGroup = false;
  16859. this.selectSWorks(gindex);
  16860. return;
  16861. }
  16862. this.courseGroup = courseGroup;
  16863. let groupPerson = res.data[1];
  16864. let group = JSON.parse(res.data[0][0].group).group;
  16865. let courseGroupStudent = {};
  16866. let courseGroupStudentUid = {};
  16867. for (var i = 0; i < group.length; i++) {
  16868. courseGroupStudent[group[i].id] = [];
  16869. courseGroupStudentUid[group[i].id] = [];
  16870. for (var j = 0; j < groupPerson.length; j++) {
  16871. if (groupPerson[j].groupCid == group[i].id) {
  16872. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16873. courseGroupStudentUid[group[i].id].push(
  16874. groupPerson[j].userid
  16875. );
  16876. }
  16877. }
  16878. }
  16879. this.courseGroupStudent = courseGroupStudent;
  16880. this.courseGroupStudentUid = courseGroupStudentUid;
  16881. }
  16882. if (this.courseGroup.isopen == 2) {
  16883. this.isGroup = false;
  16884. } else {
  16885. this.isGroup = true;
  16886. }
  16887. this.selectSWorks(gindex);
  16888. } else {
  16889. this.selectSWorks(gindex);
  16890. this.isGroup = false;
  16891. }
  16892. })
  16893. .catch((err) => {
  16894. // this.$message.error("网络不佳");
  16895. console.error(err);
  16896. });
  16897. },
  16898. setOperationTime() {
  16899. let _this = this;
  16900. if (_this.opertimer) {
  16901. clearInterval(_this.opertimer);
  16902. _this.opertimer = null;
  16903. }
  16904. _this.opertimer = setInterval(() => {
  16905. _this.setoTime("600");
  16906. }, 600000);
  16907. },
  16908. setoTime(time) {
  16909. let params = [
  16910. {
  16911. uid: this.userid,
  16912. cid: this.id,
  16913. type: "2",
  16914. time: time,
  16915. },
  16916. ];
  16917. this.ajax
  16918. .post(this.$store.state.api + "addOperationTimeT2", params)
  16919. .then((res) => {})
  16920. .catch((err) => {
  16921. console.error(err);
  16922. });
  16923. },
  16924. addPz(type, content) {
  16925. if (type == "1" && this.pzConText == "") {
  16926. this.$message.error("评论不能为空!");
  16927. return;
  16928. }
  16929. let params = [
  16930. {
  16931. cid: this.id,
  16932. uid: this.userid,
  16933. s: this.courseType,
  16934. t: this.taskCount,
  16935. c: type == "1" ? this.pzConText : content,
  16936. type: type,
  16937. },
  16938. ];
  16939. this.ajax
  16940. .post(this.$store.state.api + "addPz2", params)
  16941. .then((res) => {
  16942. this.$message({
  16943. message: "添加成功",
  16944. type: "success",
  16945. });
  16946. this.pzConText = "";
  16947. this.addPzDialog = false;
  16948. this.selectPz();
  16949. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16950. })
  16951. .catch((err) => {
  16952. this.$message.error("添加失败");
  16953. console.error(err);
  16954. });
  16955. },
  16956. setReplyIndex(id, i) {
  16957. this.replyIndex = i;
  16958. this.replyPid = id;
  16959. this.replyDialogVisible = true;
  16960. },
  16961. addHf() {
  16962. if (this.reply == "") {
  16963. this.$message.error("回复不能为空!");
  16964. return;
  16965. }
  16966. let params = [
  16967. {
  16968. cid: this.id,
  16969. uid: this.userid,
  16970. s: this.courseType,
  16971. t: this.taskCount,
  16972. type: "1",
  16973. ct: 2,
  16974. pid: this.replyPid,
  16975. c: this.reply,
  16976. },
  16977. ];
  16978. this.ajax
  16979. .post(this.$store.state.api + "addHf", params)
  16980. .then((res) => {
  16981. this.reply = "";
  16982. this.$message({
  16983. message: "回复成功",
  16984. type: "success",
  16985. });
  16986. this.replyDialogVisible = false;
  16987. this.selectPz();
  16988. })
  16989. .catch((err) => {
  16990. this.$message.error("回复失败");
  16991. console.error(err);
  16992. });
  16993. },
  16994. deletePz(id) {
  16995. this.$confirm("确定删除此评论吗?", "提示", {
  16996. confirmButtonText: "确定",
  16997. cancelButtonText: "取消",
  16998. type: "warning",
  16999. })
  17000. .then(() => {
  17001. let params = [
  17002. {
  17003. id: id,
  17004. },
  17005. ];
  17006. this.ajax
  17007. .post(this.$store.state.api + "deletePz", params)
  17008. .then((res) => {
  17009. this.$message({
  17010. message: "删除成功",
  17011. type: "success",
  17012. });
  17013. this.selectPz();
  17014. })
  17015. .catch((err) => {
  17016. this.$message.error("网络异常");
  17017. console.error(err);
  17018. });
  17019. })
  17020. .catch(() => {});
  17021. },
  17022. deleteReply(id) {
  17023. this.$confirm("确定删除此回复吗?", "提示", {
  17024. confirmButtonText: "确定",
  17025. cancelButtonText: "取消",
  17026. type: "warning",
  17027. })
  17028. .then(() => {
  17029. let params = [
  17030. {
  17031. id: id,
  17032. },
  17033. ];
  17034. this.ajax
  17035. .post(this.$store.state.api + "deleteReply", params)
  17036. .then((res) => {
  17037. this.$message({
  17038. message: "删除成功",
  17039. type: "success",
  17040. });
  17041. this.selectPz();
  17042. })
  17043. .catch((err) => {
  17044. this.$message.error("网络异常");
  17045. console.error(err);
  17046. });
  17047. })
  17048. .catch(() => {});
  17049. },
  17050. setPz() {
  17051. if (this.ispzType == 4) {
  17052. this.ispzType = 0;
  17053. this.pzDialog = false;
  17054. return;
  17055. }
  17056. this.ispzType = 4;
  17057. this.pzDialog = true;
  17058. this.selectPz();
  17059. },
  17060. selectPz() {
  17061. let params = {
  17062. cid: this.id,
  17063. s: this.courseType,
  17064. t: this.taskCount,
  17065. type: this.pzStype,
  17066. uid: this.userid,
  17067. };
  17068. this.ajax
  17069. .get(this.$store.state.api + "selectPzListType", params)
  17070. .then((res) => {
  17071. this.pzList = res.data[0];
  17072. var a = res.data[1];
  17073. for (var i = 0; i < a.length; i++) {
  17074. for (var j = 0; j < this.pzList.length; j++) {
  17075. if (!this.pzList[j].hfList) {
  17076. this.pzList[j].hfList = [];
  17077. }
  17078. if (a[i].pid == this.pzList[j].id) {
  17079. this.pzList[j].hfList.push(a[i]);
  17080. }
  17081. }
  17082. }
  17083. })
  17084. .catch((err) => {
  17085. console.error(err);
  17086. });
  17087. },
  17088. // selectHf() {
  17089. // let params = {
  17090. // cid: this.id,
  17091. // s: this.courseType,
  17092. // t: this.taskCount,
  17093. // };
  17094. // this.ajax
  17095. // .get(this.$store.state.api + "selectHfList", params)
  17096. // .then((res) => {
  17097. // var a = res.data[0];
  17098. // for (var i = 0; i < a.length; i++) {
  17099. // for (var j = 0; j < this.pzList.length; j++) {
  17100. // if (!this.pzList[i].hfList) {
  17101. // this.pzList[i].hfList = [];
  17102. // }
  17103. // if (a[i].pid == this.pzList[j].id) {
  17104. // this.pzList[i].hfList.push(a[i]);
  17105. // }
  17106. // }
  17107. // }
  17108. // })
  17109. // .catch((err) => {
  17110. // console.error(err);
  17111. // });
  17112. // },
  17113. updateSLook() {
  17114. let params = {
  17115. sopen: this.sIsOpen == false ? 1 : 2,
  17116. cid: this.id,
  17117. };
  17118. this.ajax
  17119. .get(this.$store.state.api + "updateCourseSLook", params)
  17120. .then((res) => {
  17121. if (this.sIsOpen == true) {
  17122. this.$message({
  17123. message: "权限设置成功",
  17124. type: "success",
  17125. });
  17126. } else {
  17127. this.$message({
  17128. message: "权限关闭成功",
  17129. type: "success",
  17130. });
  17131. }
  17132. })
  17133. .catch((err) => {
  17134. console.error(err);
  17135. });
  17136. },
  17137. updateFollow() {
  17138. let params = [
  17139. {
  17140. sopen: this.IsFollow == false ? 1 : 2,
  17141. cid: this.id,
  17142. },
  17143. ];
  17144. this.ajax
  17145. .post(this.$store.state.api + "updateCourseFollow", params)
  17146. .then((res) => {
  17147. if (this.IsFollow == true) {
  17148. this.$message({
  17149. message: "开启成功",
  17150. type: "success",
  17151. });
  17152. } else {
  17153. this.$message({
  17154. message: "关闭成功",
  17155. type: "success",
  17156. });
  17157. }
  17158. this.setCTask();
  17159. })
  17160. .catch((err) => {
  17161. console.error(err);
  17162. });
  17163. },
  17164. setCTask() {
  17165. let params = [
  17166. {
  17167. sopen: this.courseType + "-" + this.taskCount,
  17168. cid: this.id,
  17169. },
  17170. ];
  17171. this.ajax
  17172. .post(this.$store.state.api + "updateCourseFollowC", params)
  17173. .then((res) => {})
  17174. .catch((err) => {
  17175. console.error(err);
  17176. });
  17177. },
  17178. updateLookOpen() {
  17179. let params = [
  17180. {
  17181. sopen: this.IsLookOpen == false ? 1 : 2,
  17182. cid: this.id,
  17183. },
  17184. ];
  17185. this.ajax
  17186. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17187. .then((res) => {
  17188. if (this.IsLookOpen == true) {
  17189. // if (this.courseType != 0 && this.taskCount != 0) {
  17190. // this.openTask(0, 0, "0-0");
  17191. // }
  17192. this.$message({
  17193. message: "权限设置成功",
  17194. type: "success",
  17195. });
  17196. } else {
  17197. this.$message({
  17198. message: "权限关闭成功",
  17199. type: "success",
  17200. });
  17201. }
  17202. this.getCourseState(2);
  17203. })
  17204. .catch((err) => {
  17205. console.error(err);
  17206. });
  17207. },
  17208. selectSLook() {
  17209. let params = {
  17210. cid: this.id,
  17211. };
  17212. this.ajax
  17213. .get(this.$store.state.api + "selectCourseSLook", params)
  17214. .then((res) => {
  17215. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17216. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17217. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17218. if (!this.IsLookOpen) {
  17219. this.setNavList();
  17220. } else {
  17221. this.getCourseState(1);
  17222. }
  17223. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  17224. this.setContent2(false);
  17225. let _followC = res.data[0][0].followC.split("-");
  17226. if (
  17227. this.courseType != _followC[0] ||
  17228. this.taskCount != _followC[1]
  17229. ) {
  17230. this.navList[this.courseType].isOpen = false;
  17231. this.courseType = _followC[0];
  17232. this.navList[this.courseType].isOpen = true;
  17233. this.taskCount = parseInt(_followC[1]);
  17234. this.navId = res.data[0][0].followC;
  17235. document.scrollingElement.scrollTop = 0;
  17236. this.getCourseDetail(2);
  17237. }
  17238. }
  17239. })
  17240. .catch((err) => {
  17241. console.error(err);
  17242. });
  17243. },
  17244. setNavList() {
  17245. if (this.navList.length == 0) {
  17246. this.navList = [];
  17247. var copyList = [];
  17248. for (var l = 0; l < this.chapInfoList.length; l++) {
  17249. var q = this.chapInfoList[l].dyName;
  17250. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17251. var e;
  17252. copyList.push({
  17253. dyName: q,
  17254. isOpen: l === 0 ? true : false,
  17255. task: [],
  17256. });
  17257. for (var r = 0; r < w.length; r++) {
  17258. e = w[r].task;
  17259. if (this.chapInfoList[l].easy == 1) {
  17260. copyList[l].task.push({
  17261. taskName: q,
  17262. id: l + "-" + r,
  17263. isLook: w[r].isLook,
  17264. isOpen: r === 0 ? true : false,
  17265. tool: [],
  17266. });
  17267. } else {
  17268. copyList[l].task.push({
  17269. taskName: e,
  17270. id: l + "-" + r,
  17271. isLook: w[r].isLook,
  17272. isOpen: r === 0 ? true : false,
  17273. tool: [],
  17274. });
  17275. }
  17276. var t = w[r].toolChoose;
  17277. for (var k = 0; k < t.length; k++) {
  17278. var tool = t[k].tool[0];
  17279. copyList[l].task[r].tool.push({
  17280. tool: tool,
  17281. isTool: false,
  17282. });
  17283. }
  17284. // this.navId = this.navId ? this.navId : l + "-" + r;
  17285. // this.navId = l + "-" + r;
  17286. }
  17287. }
  17288. this.navList = copyList;
  17289. this.navList[0].isOpen = false;
  17290. this.navList[this.courseType].isOpen = true;
  17291. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17292. } else {
  17293. this.setNavList2();
  17294. }
  17295. },
  17296. setNavList2() {
  17297. for (var l = 0; l < this.chapInfoList.length; l++) {
  17298. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17299. for (var r = 0; r < w.length; r++) {
  17300. this.navList[l].task[r].isLook = w[r].isLook;
  17301. }
  17302. }
  17303. if (
  17304. this.IsLookOpen &&
  17305. !this.navList[this.courseType].task[this.taskCount].isLook
  17306. ) {
  17307. this.openTask(0, 0, "0-0");
  17308. }
  17309. this.$forceUpdate();
  17310. },
  17311. getCourseState(type) {
  17312. let params = {
  17313. cid: this.id,
  17314. };
  17315. this.ajax
  17316. .get(this.$store.state.api + "getCourseState", params)
  17317. .then((res) => {
  17318. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17319. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17320. this.setNavList();
  17321. this.$forceUpdate();
  17322. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17323. this.addCourseState(2);
  17324. } else {
  17325. this.addCourseState(1);
  17326. }
  17327. })
  17328. .catch((err) => {
  17329. console.error(err);
  17330. });
  17331. },
  17332. addCourseState(type) {
  17333. let _state = this.chapInfoList;
  17334. // this.courseType this.taskCount
  17335. if (type == 1 || type == 2) {
  17336. for (var i = 0; i < _state.length; i++) {
  17337. let el = _state[i].chapterInfo[0].taskJson;
  17338. for (var j = 0; j < el.length; j++) {
  17339. // if (i == 0 && j == 0) {
  17340. // el[j].isLook = true;
  17341. // } else {
  17342. // el[j].isLook = false;
  17343. // }
  17344. if (
  17345. this.courseType > i ||
  17346. (this.courseType == i && this.taskCount + 1 > j)
  17347. ) {
  17348. el[j].isLook = true;
  17349. } else {
  17350. el[j].isLook = false;
  17351. }
  17352. }
  17353. }
  17354. }
  17355. let params = [
  17356. {
  17357. cid: this.id,
  17358. state: JSON.stringify(_state),
  17359. },
  17360. ];
  17361. this.ajax
  17362. .post(
  17363. this.$store.state.api +
  17364. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17365. params
  17366. )
  17367. .then((res) => {
  17368. if (this.IsLookOpen) {
  17369. this.setNavList();
  17370. }
  17371. if (type == 3 && type == 2) {
  17372. this.getCourseState(1);
  17373. }
  17374. })
  17375. .catch((err) => {
  17376. console.error(err);
  17377. });
  17378. },
  17379. getHomeWork() {
  17380. let params = {
  17381. cid: this.id,
  17382. stage: this.courseType,
  17383. task: this.taskCount,
  17384. uid: this.userid,
  17385. };
  17386. this.ajax
  17387. .get(this.$store.state.api + "selectWork", params)
  17388. .then((res) => {
  17389. if (res.data[0].length > 0) {
  17390. this.studyJuri = JSON.parse(res.data[0][0].content);
  17391. this.isNoHomeWork = true;
  17392. }
  17393. })
  17394. .catch((err) => {
  17395. console.error(err);
  17396. });
  17397. },
  17398. isAssetTypeAnImage(ext) {
  17399. return (
  17400. [
  17401. "png",
  17402. "jpg",
  17403. "jpeg",
  17404. "bmp",
  17405. "gif",
  17406. "webp",
  17407. "psd",
  17408. "svg",
  17409. "tiff",
  17410. ].indexOf(ext) !== -1
  17411. );
  17412. },
  17413. switchVideo(media) {
  17414. this.playerO = {};
  17415. this.playerOptions.poster = "";
  17416. this.playerOptions.sources[0].src = media;
  17417. this.playerO = this.playerOptions;
  17418. },
  17419. onPlayerPlay() {},
  17420. onPlayerTimeupdate(player) {
  17421. let gklog = player.cache_.currentTime; //当前播放的秒数
  17422. let a = player.cache_.duration; //视频的总时长
  17423. let gklog2 = parseInt(gklog);
  17424. // if(gklog2 == '3'){
  17425. // player.pause()
  17426. // setTimeout(()=>{
  17427. // player.currentTime(gklog2+1)
  17428. // player.play()
  17429. // },1000)
  17430. // }
  17431. console.log(" onPlayerTimeupdate!", gklog);
  17432. console.log(" onPlayerTimeupdate!", gklog2);
  17433. },
  17434. lookVedio(u, i) {
  17435. this.isClickNav = "";
  17436. // this.playerOptions.sources[0].src = u;
  17437. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17438. d.sources[0].src = u;
  17439. this.playerO[0] = d;
  17440. this.showType = 0;
  17441. // this.isClickNav = "video" + i;
  17442. this.isClickNav = i;
  17443. this.$forceUpdate();
  17444. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17445. },
  17446. lookText(i, t) {
  17447. this.isClickNav = "";
  17448. // this.text = this.textList[i][t];
  17449. this.text = this.vChapterData[i][t];
  17450. // this.dialogVisible1 = true;
  17451. this.showType = 1;
  17452. // this.isClickNav = "text" + t;
  17453. this.isClickNav = t;
  17454. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17455. },
  17456. lookTools(i, t) {
  17457. this.chapTools = this.chapToolList[i][t];
  17458. this.dialogVisible2 = true;
  17459. },
  17460. async openFile(f) {
  17461. this.pptImgUrl = "";
  17462. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17463. if (
  17464. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17465. -1
  17466. ) {
  17467. let _uuurl = await this.checkLink(f);
  17468. console.log(_uuurl)
  17469. this.pptImgUrl =
  17470. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17471. this.showPDF = false;
  17472. this.dialogVisible3 = true;
  17473. } else if (
  17474. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17475. ) {
  17476. this.pptImgUrl = f;
  17477. this.showPDF = true;
  17478. this.dialogVisible3 = true;
  17479. }
  17480. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17481. },
  17482. openTable(f) {
  17483. this.tableJson = JSON.parse(f.works);
  17484. this.dialogVisibleTable2 = true;
  17485. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17486. },
  17487. openWord(f) {
  17488. this.tableJson = JSON.parse(f.works);
  17489. this.dialogVisibleTable3 = true;
  17490. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17491. },
  17492. doUrl(url, i) {
  17493. this.isClickNav = "";
  17494. this.pptImgUrl1 = "";
  17495. this.showType = 2;
  17496. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17497. url = "https://" + url;
  17498. }
  17499. this.pptImgUrl1 = "";
  17500. setTimeout(() => {
  17501. this.pptImgUrl1 = url;
  17502. }, 500);
  17503. // this.isClickNav = "line" + i;
  17504. this.isClickNav = i;
  17505. this.$forceUpdate();
  17506. },
  17507. checkPhoto(f, i) {
  17508. this.showType = 4;
  17509. this.pptImgUrl1 = f.url;
  17510. this.isClickNav = i;
  17511. this.$forceUpdate();
  17512. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17513. },
  17514. async downFile(f, i) {
  17515. this.isClickNav = "";
  17516. this.pptImgUrl1 = "";
  17517. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17518. if (
  17519. a.indexOf(
  17520. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17521. ) != -1
  17522. ) {
  17523. let _uuurl = await this.checkLink(f.url);
  17524. console.log(_uuurl)
  17525. this.pptImgUrl1 =
  17526. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17527. // this.dialogVisible3 = true;
  17528. this.showType = 2;
  17529. } else if (
  17530. this.isAssetTypeAnImage(
  17531. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17532. )
  17533. ) {
  17534. this.showType = 4;
  17535. this.pptImgUrl1 = f.url;
  17536. } else if (
  17537. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17538. "PDF"
  17539. ) {
  17540. this.pptImgUrl1 = f.url;
  17541. // this.dialogVisible3 = true;
  17542. this.showType = 3;
  17543. } else {
  17544. window.open(this.file[i].url);
  17545. }
  17546. // this.isClickNav = "word" + i;
  17547. this.isClickNav = i;
  17548. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17549. },
  17550. downFileList(i) {
  17551. window.open(this.noImgList[i].url);
  17552. },
  17553. openAddWork() {
  17554. this.dialogVisible = true;
  17555. },
  17556. addBzWorks() {
  17557. let params = [
  17558. {
  17559. uid: this.userid,
  17560. cid: this.id,
  17561. stage: this.courseType,
  17562. task: this.taskCount,
  17563. tool: this.toolindex,
  17564. content: JSON.stringify(this.eScore),
  17565. type: 6,
  17566. },
  17567. ];
  17568. this.ajax
  17569. .post(this.$store.state.api + "addCourseWorks", params)
  17570. .then((res) => {
  17571. this.$message({
  17572. message: "提交成功",
  17573. type: "success",
  17574. });
  17575. this.eScore = { eBzText: "", eStar: [] };
  17576. this.studentEvalDialogVisible = false;
  17577. this.selectSWorks();
  17578. })
  17579. .catch((err) => {
  17580. this.$message.error("提交失败");
  17581. console.error(err);
  17582. });
  17583. },
  17584. addBzWorksTeacher() {
  17585. let params = [
  17586. {
  17587. uid: this.sStudent.userid,
  17588. cid: this.id,
  17589. stage: this.courseType,
  17590. task: this.taskCount,
  17591. tool: this.toolindex,
  17592. content: JSON.stringify(this.eScore),
  17593. type: 6,
  17594. },
  17595. ];
  17596. this.ajax
  17597. .post(this.$store.state.api + "addCourseWorks", params)
  17598. .then((res) => {
  17599. this.$message({
  17600. message: "提交成功",
  17601. type: "success",
  17602. });
  17603. this.eScore = { eBzText: "", eStar: [] };
  17604. this.studentEvalDialogVisibleTeacher = false;
  17605. this.selectSWorks();
  17606. })
  17607. .catch((err) => {
  17608. this.$message.error("提交失败");
  17609. console.error(err);
  17610. });
  17611. },
  17612. addStudentAsk() {
  17613. if (!this.radio.length) {
  17614. this.$message.error("请选择选项");
  17615. return;
  17616. }
  17617. for (var i = 0; i < this.askJson.askCount; i++) {
  17618. if (
  17619. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17620. (this.radio[i] !== 0 && !this.radio[i])
  17621. ) {
  17622. this.$message.error("请选择选项");
  17623. return;
  17624. }
  17625. }
  17626. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17627. let params = [
  17628. {
  17629. uid: this.userid,
  17630. cid: this.id,
  17631. stage: this.courseType,
  17632. task: this.taskCount,
  17633. tool: this.toolindex,
  17634. content: JSON.stringify(this.askList),
  17635. type: 2,
  17636. },
  17637. ];
  17638. this.ajax
  17639. .post(this.$store.state.api + "addCourseWorks", params)
  17640. .then((res) => {
  17641. this.$message({
  17642. message: "提交成功",
  17643. type: "success",
  17644. });
  17645. this.askList = [];
  17646. this.dialogVisible5 = false;
  17647. this.selectStudent();
  17648. this.selectSWorks();
  17649. this.selectSLook();
  17650. })
  17651. .catch((err) => {
  17652. this.$message.error("提交失败");
  17653. console.error(err);
  17654. });
  17655. },
  17656. addStudentAskTeacher() {
  17657. if (!this.radio.length) {
  17658. this.$message.error("请选择选项");
  17659. return;
  17660. }
  17661. for (var i = 0; i < this.askJson.askCount; i++) {
  17662. if (
  17663. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17664. (this.radio[i] !== 0 && !this.radio[i])
  17665. ) {
  17666. this.$message.error("请选择选项");
  17667. return;
  17668. }
  17669. }
  17670. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17671. let params = [
  17672. {
  17673. uid: this.sStudent.userid,
  17674. cid: this.id,
  17675. stage: this.courseType,
  17676. task: this.taskCount,
  17677. tool: this.toolindex,
  17678. content: JSON.stringify(this.askList),
  17679. type: 2,
  17680. },
  17681. ];
  17682. this.ajax
  17683. .post(this.$store.state.api + "addCourseWorks", params)
  17684. .then((res) => {
  17685. this.$message({
  17686. message: "提交成功",
  17687. type: "success",
  17688. });
  17689. this.askList = [];
  17690. this.dialogVisible5Teacher = false;
  17691. this.selectStudent();
  17692. this.selectSWorks();
  17693. this.selectSLook();
  17694. })
  17695. .catch((err) => {
  17696. this.$message.error("提交失败");
  17697. console.error(err);
  17698. });
  17699. },
  17700. addStudentTest() {
  17701. if (!this.radio.length) {
  17702. this.$message.error("请选择选项");
  17703. return;
  17704. }
  17705. for (var i = 0; i < this.testJson.testCount; i++) {
  17706. if (
  17707. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17708. (this.radio[i] !== 0 && !this.radio[i])
  17709. ) {
  17710. this.$message.error("请选择选项");
  17711. return;
  17712. }
  17713. }
  17714. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17715. let params = [
  17716. {
  17717. uid: this.userid,
  17718. cid: this.id,
  17719. stage: this.courseType,
  17720. task: this.taskCount,
  17721. tool: this.toolindex,
  17722. content: JSON.stringify(this.askList),
  17723. type: 8,
  17724. },
  17725. ];
  17726. this.ajax
  17727. .post(this.$store.state.api + "addCourseWorks", params)
  17728. .then((res) => {
  17729. this.$message({
  17730. message: "提交成功",
  17731. type: "success",
  17732. });
  17733. this.askList = [];
  17734. this.dialogVisibleChoice = false;
  17735. this.selectStudent();
  17736. this.selectSWorks();
  17737. this.selectSLook();
  17738. })
  17739. .catch((err) => {
  17740. this.$message.error("提交失败");
  17741. console.error(err);
  17742. });
  17743. },
  17744. addStudentTestTeacher() {
  17745. if (!this.radio.length) {
  17746. this.$message.error("请选择选项");
  17747. return;
  17748. }
  17749. for (var i = 0; i < this.testJson.testCount; i++) {
  17750. if (
  17751. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17752. (this.radio[i] !== 0 && !this.radio[i])
  17753. ) {
  17754. this.$message.error("请选择选项");
  17755. return;
  17756. }
  17757. }
  17758. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17759. let params = [
  17760. {
  17761. uid: this.sStudent.userid,
  17762. cid: this.id,
  17763. stage: this.courseType,
  17764. task: this.taskCount,
  17765. tool: this.toolindex,
  17766. content: JSON.stringify(this.askList),
  17767. type: 8,
  17768. },
  17769. ];
  17770. this.ajax
  17771. .post(this.$store.state.api + "addCourseWorks", params)
  17772. .then((res) => {
  17773. this.$message({
  17774. message: "提交成功",
  17775. type: "success",
  17776. });
  17777. this.askList = [];
  17778. this.dialogVisibleChoiceTeacher = false;
  17779. this.selectStudent();
  17780. this.selectSWorks();
  17781. this.selectSLook();
  17782. })
  17783. .catch((err) => {
  17784. this.$message.error("提交失败");
  17785. console.error(err);
  17786. });
  17787. },
  17788. addWork() {
  17789. if (this.studyJuri[0].content == "") {
  17790. this.$message.error("请将信息填写完整");
  17791. return;
  17792. } else if (this.studyJuri[0].cover.length == 0) {
  17793. this.$message.error("请将信息填写完整");
  17794. return;
  17795. } else if (this.studyJuri[0].upVedio.length == 0) {
  17796. this.$message.error("请将信息填写完整");
  17797. return;
  17798. }
  17799. if (this.isNoHomeWork) {
  17800. this.$confirm(
  17801. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17802. "提示",
  17803. {
  17804. confirmButtonText: "确定",
  17805. cancelButtonText: "取消",
  17806. type: "warning",
  17807. }
  17808. )
  17809. .then(() => {
  17810. let params = [
  17811. {
  17812. uid: this.userid,
  17813. cid: this.id,
  17814. stage: this.courseType,
  17815. task: this.taskCount,
  17816. content: JSON.stringify(this.studyJuri),
  17817. },
  17818. ];
  17819. this.ajax
  17820. .post(this.$store.state.api + "addWorks", params)
  17821. .then((res) => {
  17822. this.$message({
  17823. message: "提交成功",
  17824. type: "success",
  17825. });
  17826. this.isNoHomeWork = true;
  17827. this.dialogVisible = false;
  17828. })
  17829. .catch((err) => {
  17830. this.$message.error("提交失败");
  17831. console.error(err);
  17832. });
  17833. })
  17834. .catch(() => {});
  17835. } else {
  17836. let params = [
  17837. {
  17838. uid: this.userid,
  17839. cid: this.id,
  17840. stage: this.courseType,
  17841. task: this.taskCount,
  17842. content: JSON.stringify(this.studyJuri),
  17843. },
  17844. ];
  17845. this.ajax
  17846. .post(this.$store.state.api + "addWorks", params)
  17847. .then((res) => {
  17848. this.$message({
  17849. message: "提交成功",
  17850. type: "success",
  17851. });
  17852. this.isNoHomeWork = true;
  17853. this.dialogVisible = false;
  17854. })
  17855. .catch((err) => {
  17856. this.$message.error("提交失败");
  17857. console.error(err);
  17858. });
  17859. }
  17860. },
  17861. selectCount() {
  17862. let params = {
  17863. cid: this.id,
  17864. chid: this.courseType,
  17865. uid: this.userid,
  17866. };
  17867. this.ajax
  17868. .get(this.$store.state.api + "selectToolsCount", params)
  17869. .then((res) => {
  17870. for (var i = 0; i < res.data[0].length; i++) {
  17871. if (res.data[0][i].tools == 1) {
  17872. this.wbCount = res.data[0][i].count;
  17873. } else if (res.data[0][i].tools == 2) {
  17874. this.wordCount = res.data[0][i].count;
  17875. } else if (res.data[0][i].tools == 3) {
  17876. this.mindCount = res.data[0][i].count;
  17877. } else if (res.data[0][i].tools == 4) {
  17878. this.askCount = res.data[0][i].count;
  17879. } else if (res.data[0][i].tools == 6) {
  17880. this.noteCount = res.data[0][i].count;
  17881. } else if (res.data[0][i].tools == 7) {
  17882. this.mindNetWorkCount = res.data[0][i].count;
  17883. } else if (res.data[0][i].tools == 8) {
  17884. this.libraryCount = res.data[0][i].count;
  17885. } else if (res.data[0][i].tools == 16) {
  17886. this.workCount = res.data[0][i].count;
  17887. } else if (res.data[0][i].tools == 10) {
  17888. this.timeCount = res.data[0][i].count;
  17889. } else if (res.data[0][i].tools == 15) {
  17890. this.answerCount = res.data[0][i].count;
  17891. } else if (res.data[0][i].tools == 18) {
  17892. this.trainCount = res.data[0][i].count;
  17893. }
  17894. }
  17895. })
  17896. .catch((err) => {
  17897. console.error(err);
  17898. });
  17899. },
  17900. openTools(t, i, index, c, sName,id) {
  17901. var z = JSON.parse(c);
  17902. this.noteName = sName;
  17903. if (t == 4) {
  17904. this.radio = [];
  17905. this.isAnswer = false;
  17906. let b = z[0].anwer;
  17907. this.radio = b;
  17908. this.askJson = z[0].askJson;
  17909. this.isAnswer = true;
  17910. this.dialogVisible5 = true;
  17911. } else if (t == 45) {
  17912. this.radio = [];
  17913. this.isAnswer = false;
  17914. let b = z[0].anwer;
  17915. this.radio = b;
  17916. this.testJson = z[0].testJson;
  17917. this.isAnswer = true;
  17918. this.dialogVisibleChoice = true;
  17919. }else if(t == 69){
  17920. this.oldEnglishJson1 = {}
  17921. this.oldEnglishJson = {}
  17922. this.englishList1 = {}
  17923. this.newEngIndex = -1;
  17924. this.isNoUserid = false;
  17925. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17926. .toolChoose[i].englishList;
  17927. this.oldEnglishJson = z;
  17928. this.engWid = id;
  17929. this.newEnglishList = { engTitle:"",engText:"" }
  17930. this.newEnglishList1 = []
  17931. this.selectEngC(id,z);
  17932. }else if(t == 62){
  17933. this.videoType = 1;
  17934. this.videoJson = {};
  17935. this.videoJson = JSON.parse(c);
  17936. // this.videoJson =
  17937. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17938. // index
  17939. // ].toolChoose[i].videoJson;
  17940. this.dialogVisibleVideo = true;
  17941. }
  17942. // else if (t == 15) {
  17943. // this.answerQ = "";
  17944. // this.questionAnswer = "";
  17945. // this.answerQ = z[0].answerTitle;
  17946. // this.questionAnswer = z[0].answer;
  17947. // this.answerDialogVisible = true;
  17948. // }
  17949. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17950. },
  17951. fastText(p, t) {
  17952. if (t == 1) {
  17953. this.commentText += p;
  17954. } else {
  17955. this.eScore.eBzText += p;
  17956. }
  17957. },
  17958. addTools(t, i, index) {
  17959. var a = 0;
  17960. // this.taskCount = index;
  17961. this.toolindex = i;
  17962. if (t == 1) {
  17963. if (this.wbCount > 0) {
  17964. this.updateCount(this.wbCount, t);
  17965. } else {
  17966. this.wbCount++;
  17967. a = this.wbCount;
  17968. this.toolsCount(a, t);
  17969. }
  17970. window.parent.postMessage(
  17971. {
  17972. tools: "1",
  17973. cid: this.id,
  17974. stage: this.courseType,
  17975. task: this.taskCount,
  17976. tool: i,
  17977. },
  17978. "*"
  17979. );
  17980. } else if (t == 2) {
  17981. if (this.wordCount > 0) {
  17982. this.updateCount(this.wordCount, t);
  17983. } else {
  17984. this.wordCount++;
  17985. a = this.wordCount;
  17986. this.toolsCount(a, t);
  17987. }
  17988. window.parent.postMessage({ tools: "2" }, "*");
  17989. } else if (t == 3) {
  17990. if (this.mindCount > 0) {
  17991. this.updateCount(this.mindCount, t);
  17992. } else {
  17993. this.mindCount++;
  17994. a = this.mindCount;
  17995. this.toolsCount(a, t);
  17996. }
  17997. window.parent.postMessage(
  17998. {
  17999. tools: "3",
  18000. cid: this.id,
  18001. stage: this.courseType,
  18002. task: this.taskCount,
  18003. tool: i,
  18004. },
  18005. "*"
  18006. );
  18007. } else if (t == 4) {
  18008. this.radio = [];
  18009. this.noteName = "";
  18010. this.isAnswer = false;
  18011. if (this.askCount > 0) {
  18012. this.updateCount(this.askCount, t);
  18013. } else {
  18014. this.askCount++;
  18015. a = this.askCount;
  18016. this.toolsCount(a, t);
  18017. }
  18018. if (!this.dialogVisible2) {
  18019. this.askJson.askJson =
  18020. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18021. index
  18022. ].toolChoose[i].askJson;
  18023. this.askJson.askTitle =
  18024. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18025. index
  18026. ].toolChoose[i].askTitle;
  18027. this.askJson.askCount =
  18028. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18029. index
  18030. ].toolChoose[i].askCount;
  18031. } else {
  18032. this.askJson.askJson = this.chapTools.askJson.askJson;
  18033. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18034. this.askJson.askCount = this.chapTools.askJson.askCount;
  18035. }
  18036. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18037. if (this.askJson.askJson[k].type == "2") {
  18038. this.radio.push([]);
  18039. } else {
  18040. this.radio.push("");
  18041. }
  18042. }
  18043. this.dialogVisible5 = true;
  18044. // window.parent.postMessage({ tools: "4" }, "*");
  18045. } else if (t == 45) {
  18046. this.noteName = "";
  18047. this.radio = [];
  18048. this.isAnswer = false;
  18049. if (this.askCount > 0) {
  18050. this.updateCount(this.askCount, t);
  18051. } else {
  18052. this.askCount++;
  18053. a = this.askCount;
  18054. this.toolsCount(a, t);
  18055. }
  18056. this.testJson =
  18057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18058. index
  18059. ].toolChoose[i].testJson;
  18060. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18061. if (this.testJson.testJson[k].type == "2") {
  18062. this.radio.push([]);
  18063. } else {
  18064. this.radio.push("");
  18065. }
  18066. }
  18067. this.dialogVisibleChoice = true;
  18068. // window.parent.postMessage({ tools: "4" }, "*");
  18069. } else if (t == 5) {
  18070. if (this.scoreCount > 0) {
  18071. this.updateCount(this.scoreCount, t);
  18072. } else {
  18073. this.scoreCount++;
  18074. a = this.scoreCount;
  18075. this.toolsCount(a, t);
  18076. }
  18077. this.dialogVisible4 = true;
  18078. // window.parent.postMessage({ tools: "5" }, "*");
  18079. } else if (t == 6) {
  18080. if (this.noteCount > 0) {
  18081. this.updateCount(this.noteCount, t);
  18082. } else {
  18083. this.noteCount++;
  18084. a = this.noteCount;
  18085. this.toolsCount(a, t);
  18086. }
  18087. window.parent.postMessage(
  18088. {
  18089. tools: "6",
  18090. cid: this.id,
  18091. stage: this.courseType,
  18092. task: this.taskCount,
  18093. tool: i,
  18094. },
  18095. "*"
  18096. );
  18097. } else if (t == 7) {
  18098. if (this.mindNetWorkCount > 0) {
  18099. this.updateCount(this.mindNetWorkCount, t);
  18100. } else {
  18101. this.mindNetWorkCount++;
  18102. a = this.mindNetWorkCount;
  18103. this.toolsCount(a, t);
  18104. }
  18105. window.parent.postMessage(
  18106. {
  18107. tools: "7",
  18108. cid: this.id,
  18109. stage: this.courseType,
  18110. task: this.taskCount,
  18111. tool: i,
  18112. },
  18113. "*"
  18114. );
  18115. } else if (t == 16) {
  18116. if (this.workCount > 0) {
  18117. this.updateCount(this.workCount, t);
  18118. } else {
  18119. this.workCount++;
  18120. a = this.workCount;
  18121. this.toolsCount(a, t);
  18122. }
  18123. this.dialogVisible = true;
  18124. } else if (t == 50) {
  18125. if (this.tType == 2) {
  18126. this.$message.error("不支持学生使用");
  18127. return;
  18128. }
  18129. this.plworkFile = [];
  18130. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18131. if (!this.uploadCid) {
  18132. this.$message.error(
  18133. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18134. );
  18135. return;
  18136. }
  18137. // this.uploadCid =
  18138. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18139. // index
  18140. // ].toolChoose[i].uploadJson[0];
  18141. this.selectUploadStudent(2);
  18142. } else if (t == 8) {
  18143. if (this.libraryCount > 0) {
  18144. this.updateCount(this.libraryCount, t);
  18145. } else {
  18146. this.libraryCount++;
  18147. a = this.libraryCount;
  18148. this.toolsCount(a, t);
  18149. }
  18150. window.parent.postMessage({ tools: "8" }, "*");
  18151. } else if (t == 17) {
  18152. if (this.libraryCount > 0) {
  18153. this.updateCount(this.libraryCount, t);
  18154. } else {
  18155. this.libraryCount++;
  18156. a = this.libraryCount;
  18157. this.toolsCount(a, t);
  18158. }
  18159. window.parent.postMessage({ tools: "17" }, "*");
  18160. } else if (t == 18) {
  18161. if (this.trainCount > 0) {
  18162. this.updateCount(this.trainCount, t);
  18163. } else {
  18164. this.trainCount++;
  18165. a = this.trainCount;
  18166. this.toolsCount(a, t);
  18167. }
  18168. window.parent.postMessage({ tools: "18" }, "*");
  18169. } else if (t == 10) {
  18170. if (this.timeCount > 0) {
  18171. this.updateCount(this.timeCount, t);
  18172. } else {
  18173. this.timeCount++;
  18174. a = this.timeCount;
  18175. this.toolsCount(a, t);
  18176. }
  18177. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18178. .taskJson[index].toolChoose[i].preTime
  18179. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18180. .toolChoose[i].preTime
  18181. : "";
  18182. this.timeDialogVisible = true;
  18183. } else if (t == 15) {
  18184. this.answerQ = "";
  18185. this.questionAnswer = "";
  18186. if (this.answerCount > 0) {
  18187. this.updateCount(this.answerCount, t);
  18188. } else {
  18189. this.answerCount++;
  18190. a = this.answerCount;
  18191. this.toolsCount(a, t);
  18192. }
  18193. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18194. .taskJson[index].toolChoose[i].answerQ
  18195. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18196. .toolChoose[i].answerQ
  18197. : "";
  18198. this.answerDialogVisible = true;
  18199. } else if (t == 21) {
  18200. window.parent.postMessage({ tools: "21" }, "*");
  18201. } else if (t == 22) {
  18202. window.parent.postMessage({ tools: "22" }, "*");
  18203. } else if (t == 23) {
  18204. window.parent.postMessage({ tools: "23" }, "*");
  18205. } else if (t == 24) {
  18206. window.parent.postMessage({ tools: "24" }, "*");
  18207. } else if (t == 25) {
  18208. window.parent.postMessage({ tools: "25" }, "*");
  18209. } else if (t == 31) {
  18210. window.parent.postMessage({ tools: "31" }, "*");
  18211. } else if (t == 28) {
  18212. window.parent.postMessage({ tools: "28" }, "*");
  18213. } else if (t == 37) {
  18214. window.parent.postMessage({ tools: "37" }, "*");
  18215. } else if (t == 38) {
  18216. window.parent.postMessage({ tools: "38" }, "*");
  18217. } else if (t == 39) {
  18218. window.parent.postMessage({ tools: "39" }, "*");
  18219. } else if (t == 32) {
  18220. window.parent.postMessage({ tools: "32" }, "*");
  18221. } else if (t == 66) {
  18222. window.parent.postMessage({ tools: "66" }, "*");
  18223. } else if (t == 67) {
  18224. window.parent.postMessage({ tools: "67" }, "*");
  18225. } else if (t == 68) {
  18226. window.parent.postMessage({ tools: "68" }, "*");
  18227. } else if (t == 57) {
  18228. // window.parent.postMessage({ tools: "57" }, "*");
  18229. window.parent.postMessage(
  18230. {
  18231. tools: "57u",
  18232. cid: this.id,
  18233. stage: this.courseType,
  18234. task: this.taskCount,
  18235. tool: i,
  18236. },
  18237. "*"
  18238. );
  18239. } else if (t == 58) {
  18240. window.parent.postMessage({ tools: "58" }, "*");
  18241. } else if (t == 59) {
  18242. window.parent.postMessage({ tools: "59" }, "*");
  18243. } else if (t == 60) {
  18244. window.parent.postMessage({ tools: "60" }, "*");
  18245. } else if (t == 61) {
  18246. window.parent.postMessage({ tools: "61" }, "*");
  18247. } else if (t == 63) {
  18248. window.parent.postMessage({ tools: "63" }, "*");
  18249. } else if (t == 71) {
  18250. window.parent.postMessage({ tools: "71" }, "*");
  18251. } else if (t == 69) {
  18252. if (this.worksStudent[i].length) {
  18253. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18254. if (this.userid == this.worksStudent[i][k].userid) {
  18255. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18256. break;
  18257. } else {
  18258. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18259. }
  18260. }
  18261. } else {
  18262. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18263. }
  18264. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18265. .taskJson[index].toolChoose[i].englishList
  18266. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18267. .toolChoose[i].englishList
  18268. : {};
  18269. this.englishToolIndex = i;
  18270. this.myAnList = this.myAnswerList1;
  18271. this.engDialogVisible = true;
  18272. } else if (t == 70) {
  18273. if (this.worksStudent[i].length) {
  18274. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18275. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18276. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18277. break;
  18278. } else {
  18279. this.englishVoiceJsonWork = [];
  18280. }
  18281. }
  18282. } else {
  18283. this.englishVoiceJsonWork = [];
  18284. }
  18285. let englishVoiceJson = {}
  18286. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18287. .taskJson[index].toolChoose[i].englishVoiceJson
  18288. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18289. .toolChoose[i].englishVoiceJson
  18290. : {};
  18291. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18292. this.EnglishVoiceDialog = true;
  18293. } else if (t == 65) {
  18294. if (this.tType == 2) {
  18295. this.$message.error("不支持学生使用");
  18296. return;
  18297. }
  18298. this.uploadCid = this.tcid;
  18299. if (!this.uploadCid) {
  18300. this.$message.error(
  18301. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18302. );
  18303. return;
  18304. }
  18305. this.selectPickStudent();
  18306. } else if (t == 26) {
  18307. window.parent.postMessage(
  18308. {
  18309. tools: "26",
  18310. cid: this.id,
  18311. stage: this.courseType,
  18312. task: this.taskCount,
  18313. tool: i,
  18314. },
  18315. "*"
  18316. );
  18317. } else if (t == 40) {
  18318. if (this.evalCount > 0) {
  18319. this.updateCount(this.evalCount, t);
  18320. } else {
  18321. this.evalCount++;
  18322. a = this.evalCount;
  18323. this.toolsCount(a, t);
  18324. }
  18325. this.eScore = { eBzText: "", eStar: [] };
  18326. if (this.worksStudent[i].length) {
  18327. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18328. if (this.userid == this.worksStudent[i][k].userid) {
  18329. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18330. this.rateJson =
  18331. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18332. index
  18333. ].toolChoose[i].rateJson;
  18334. break;
  18335. } else {
  18336. this.rateJson =
  18337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18338. index
  18339. ].toolChoose[i].rateJson;
  18340. }
  18341. }
  18342. } else {
  18343. this.rateJson =
  18344. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18345. index
  18346. ].toolChoose[i].rateJson;
  18347. }
  18348. this.isStar = false;
  18349. this.studentEvalDialogVisible = true;
  18350. } else if (t == 41) {
  18351. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18352. .taskJson[index].toolChoose[i].selectJson
  18353. ? JSON.parse(
  18354. JSON.stringify(
  18355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18356. index
  18357. ].toolChoose[i].selectJson
  18358. )
  18359. )
  18360. : { url: "", select: [], answer: [] };
  18361. if (this.worksStudent[i].length) {
  18362. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18363. if (this.userid == this.worksStudent[i][k].userid) {
  18364. var a = this.worksStudent[i][k].works.split(",");
  18365. for (var ki = 0; ki < a.length; ki++) {
  18366. a[ki] = parseInt(a[ki]);
  18367. }
  18368. this.selectAnswer = {
  18369. answer: a,
  18370. stu: this.worksStudent[i][k].sName,
  18371. };
  18372. break;
  18373. } else {
  18374. this.selectAnswer = { answer: [], stu: "" };
  18375. }
  18376. }
  18377. } else {
  18378. this.selectAnswer = { answer: [], stu: "" };
  18379. }
  18380. this.isSelect = false;
  18381. this.dialogVisibleSelect = true;
  18382. } else if (t == 44) {
  18383. window.parent.postMessage({ tools: "44" }, "*");
  18384. } else if (t == 47) {
  18385. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18386. .taskJson[index].toolChoose[i].sentenceList
  18387. ? JSON.parse(
  18388. JSON.stringify(
  18389. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18390. index
  18391. ].toolChoose[i].sentenceList
  18392. )
  18393. )
  18394. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18395. for (var q = 0; q < this.sentenceList.length; q++) {
  18396. this.sentenceList[q].chooseSenList = [];
  18397. this.sentenceList[q].addChangeSen = [];
  18398. this.sentenceList[q].addChangeSen = JSON.parse(
  18399. JSON.stringify(this.sentenceList[q].addSentence)
  18400. );
  18401. this.sentenceList[q].chooseSenList.length =
  18402. this.sentenceList[q].rightAnswer.length;
  18403. }
  18404. this.dialogVisibleSentence = true;
  18405. } else if (t == 48) {
  18406. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18407. .taskJson[index].toolChoose[i].tableJson
  18408. ? JSON.parse(
  18409. JSON.stringify(
  18410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18411. index
  18412. ].toolChoose[i].tableJson
  18413. )
  18414. )
  18415. : { text: "" };
  18416. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18417. if (this.worksStudent[i].length) {
  18418. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18419. if (this.userid == this.worksStudent[i][k].userid) {
  18420. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18421. break;
  18422. }
  18423. }
  18424. }
  18425. this.dialogVisibleTable = true;
  18426. } else if (t == 52) {
  18427. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18428. .taskJson[index].toolChoose[i].wordJson
  18429. ? JSON.parse(
  18430. JSON.stringify(
  18431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18432. index
  18433. ].toolChoose[i].wordJson
  18434. )
  18435. )
  18436. : { text: "" };
  18437. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18438. if (this.worksStudent[i].length) {
  18439. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18440. if (this.userid == this.worksStudent[i][k].userid) {
  18441. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18442. break;
  18443. }
  18444. }
  18445. }
  18446. this.dialogVisibleWord = true;
  18447. } else if (t == 49) {
  18448. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18449. return
  18450. }
  18451. this.groupJson =
  18452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18453. index
  18454. ].toolChoose[i].groupJson;
  18455. this.islock = this.groupJson.islock == 1 ? true : false;
  18456. this.dialogVisibleGroup = true;
  18457. } else if (t == 62) {
  18458. this.videoType = 0;
  18459. this.videoJson = {};
  18460. this.videoJson =
  18461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18462. index
  18463. ].toolChoose[i].videoJson;
  18464. this.dialogVisibleVideo = true;
  18465. }
  18466. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18467. },
  18468. teacherWorkSubmit(t, i, index, s) {
  18469. this.sStudent = s;
  18470. this.toolindex = i;
  18471. this.sTool = t;
  18472. if (this.tType !== "1" && this.tType !== "4") {
  18473. return;
  18474. }
  18475. if (t == 16 || t == 32 || t == 50) {
  18476. this.dialogVisibleWorks = true;
  18477. } else if (t == 15) {
  18478. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18479. .taskJson[index].toolChoose[i].answerQ
  18480. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18481. .toolChoose[i].answerQ
  18482. : "";
  18483. this.questionAnswer = "";
  18484. this.answerDialogVisibleTeacher = true; //问答
  18485. } else if (t == 52) {
  18486. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18487. .taskJson[index].toolChoose[i].wordJson
  18488. ? JSON.parse(
  18489. JSON.stringify(
  18490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18491. index
  18492. ].toolChoose[i].wordJson
  18493. )
  18494. )
  18495. : { text: "" };
  18496. if (this.worksStudent[i].length) {
  18497. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18498. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18499. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18500. break;
  18501. }
  18502. }
  18503. }
  18504. this.dialogVisibleWordTeacher = true; //文档
  18505. } else if (t == 4) {
  18506. this.radio = [];
  18507. this.noteName = "";
  18508. this.isAnswer = false;
  18509. if (this.askCount > 0) {
  18510. this.updateCount(this.askCount, t);
  18511. } else {
  18512. this.askCount++;
  18513. a = this.askCount;
  18514. this.toolsCount(a, t);
  18515. }
  18516. if (!this.dialogVisible2) {
  18517. this.askJson.askJson =
  18518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18519. index
  18520. ].toolChoose[i].askJson;
  18521. this.askJson.askTitle =
  18522. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18523. index
  18524. ].toolChoose[i].askTitle;
  18525. this.askJson.askCount =
  18526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18527. index
  18528. ].toolChoose[i].askCount;
  18529. } else {
  18530. this.askJson.askJson = this.chapTools.askJson.askJson;
  18531. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18532. this.askJson.askCount = this.chapTools.askJson.askCount;
  18533. }
  18534. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18535. if (this.askJson.askJson[k].type == "2") {
  18536. this.radio.push([]);
  18537. } else {
  18538. this.radio.push("");
  18539. }
  18540. }
  18541. this.dialogVisible5Teacher = true;
  18542. } else if (t == 45) {
  18543. this.noteName = "";
  18544. this.radio = [];
  18545. this.isAnswer = false;
  18546. if (this.askCount > 0) {
  18547. this.updateCount(this.askCount, t);
  18548. } else {
  18549. this.askCount++;
  18550. a = this.askCount;
  18551. this.toolsCount(a, t);
  18552. }
  18553. this.testJson =
  18554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18555. index
  18556. ].toolChoose[i].testJson;
  18557. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18558. if (this.testJson.testJson[k].type == "2") {
  18559. this.radio.push([]);
  18560. } else {
  18561. this.radio.push("");
  18562. }
  18563. }
  18564. this.dialogVisibleChoiceTeacher = true;
  18565. } else if (t == 41) {
  18566. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18567. .taskJson[index].toolChoose[i].selectJson
  18568. ? JSON.parse(
  18569. JSON.stringify(
  18570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18571. index
  18572. ].toolChoose[i].selectJson
  18573. )
  18574. )
  18575. : { url: "", select: [], answer: [] };
  18576. if (this.worksStudent[i].length) {
  18577. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18578. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18579. var a = this.worksStudent[i][k].works.split(",");
  18580. for (var ki = 0; ki < a.length; ki++) {
  18581. a[ki] = parseInt(a[ki]);
  18582. }
  18583. this.selectAnswer = {
  18584. answer: a,
  18585. stu: this.worksStudent[i][k].sName,
  18586. };
  18587. break;
  18588. } else {
  18589. this.selectAnswer = { answer: [], stu: "" };
  18590. }
  18591. }
  18592. } else {
  18593. this.selectAnswer = { answer: [], stu: "" };
  18594. }
  18595. this.isSelect = false;
  18596. this.dialogVisibleSelectTeacher = true;
  18597. } else if (t == 47) {
  18598. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18599. .taskJson[index].toolChoose[i].sentenceList
  18600. ? JSON.parse(
  18601. JSON.stringify(
  18602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18603. index
  18604. ].toolChoose[i].sentenceList
  18605. )
  18606. )
  18607. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18608. for (var q = 0; q < this.sentenceList.length; q++) {
  18609. this.sentenceList[q].chooseSenList = [];
  18610. this.sentenceList[q].addChangeSen = [];
  18611. this.sentenceList[q].addChangeSen = JSON.parse(
  18612. JSON.stringify(this.sentenceList[q].addSentence)
  18613. );
  18614. this.sentenceList[q].chooseSenList.length =
  18615. this.sentenceList[q].rightAnswer.length;
  18616. }
  18617. this.dialogVisibleSentenceTeacher = true;
  18618. } else if (t == 48) {
  18619. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18620. .taskJson[index].toolChoose[i].tableJson
  18621. ? JSON.parse(
  18622. JSON.stringify(
  18623. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18624. index
  18625. ].toolChoose[i].tableJson
  18626. )
  18627. )
  18628. : { text: "" };
  18629. if (this.worksStudent[i].length) {
  18630. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18631. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18632. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18633. break;
  18634. }
  18635. }
  18636. }
  18637. this.dialogVisibleTableTeacher = true;
  18638. } else if (t == 40) {
  18639. if (this.evalCount > 0) {
  18640. this.updateCount(this.evalCount, t);
  18641. } else {
  18642. this.evalCount++;
  18643. a = this.evalCount;
  18644. this.toolsCount(a, t);
  18645. }
  18646. this.eScore = { eBzText: "", eStar: [] };
  18647. if (this.worksStudent[i].length) {
  18648. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18649. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18650. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18651. this.rateJson =
  18652. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18653. index
  18654. ].toolChoose[i].rateJson;
  18655. break;
  18656. } else {
  18657. this.rateJson =
  18658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18659. index
  18660. ].toolChoose[i].rateJson;
  18661. }
  18662. }
  18663. } else {
  18664. this.rateJson =
  18665. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18666. index
  18667. ].toolChoose[i].rateJson;
  18668. }
  18669. this.isStar = false;
  18670. this.studentEvalDialogVisibleTeacher = true;
  18671. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18672. window.parent.postMessage(
  18673. {
  18674. tools: t + "teacher",
  18675. cid: this.id,
  18676. stage: this.courseType,
  18677. task: this.taskCount,
  18678. tool: i,
  18679. student: this.sStudent,
  18680. },
  18681. "*"
  18682. );
  18683. }
  18684. },
  18685. openCocoPi(tool, i, uid, uname) {
  18686. let student = {
  18687. userid: uid,
  18688. student: uname,
  18689. };
  18690. if (tool == 57) {
  18691. window.parent.postMessage(
  18692. {
  18693. tools: tool + "teacher",
  18694. cid: this.id,
  18695. stage: this.courseType,
  18696. task: this.taskCount,
  18697. tool: i,
  18698. student: student,
  18699. },
  18700. "*"
  18701. );
  18702. }
  18703. },
  18704. setRightAnswer(s, i, j) {
  18705. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18706. if (
  18707. this.sentenceList[i].chooseSenList[q] == undefined ||
  18708. this.sentenceList[i].chooseSenList[q] == ""
  18709. ) {
  18710. this.sentenceList[i].chooseSenList[q] = s;
  18711. this.sentenceList[i].addChangeSen[j] = "";
  18712. break;
  18713. }
  18714. }
  18715. this.$forceUpdate();
  18716. },
  18717. returnCard(r, i, j) {
  18718. var a = this.sentenceList[i].addSentence.indexOf(r);
  18719. this.sentenceList[i].chooseSenList[j] = "";
  18720. this.sentenceList[i].addChangeSen[a] = r;
  18721. this.$forceUpdate();
  18722. },
  18723. // addSentenceTool() {
  18724. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18725. // this.taskCount
  18726. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18727. // this.sentenceList = [
  18728. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18729. // ];
  18730. // this.dialogVisibleSentence = false;
  18731. // },
  18732. toolsCount(a, t) {
  18733. let params = {
  18734. cid: this.id,
  18735. chid: this.courseType,
  18736. uid: this.userid,
  18737. tid: t,
  18738. count: a,
  18739. };
  18740. this.ajax
  18741. .get(this.$store.state.api + "insertToolsCount", params)
  18742. .then((res) => {
  18743. this.selectCount();
  18744. })
  18745. .catch((err) => {
  18746. console.error(err);
  18747. });
  18748. },
  18749. updateCount(c, t) {
  18750. c++;
  18751. let params = {
  18752. cid: this.id,
  18753. chid: this.courseType,
  18754. uid: this.userid,
  18755. tid: t,
  18756. count: c,
  18757. };
  18758. this.ajax
  18759. .get(this.$store.state.api + "updateToolsCount", params)
  18760. .then((res) => {
  18761. this.selectCount();
  18762. })
  18763. .catch((err) => {
  18764. console.error(err);
  18765. });
  18766. },
  18767. checkEva() {
  18768. if (this.evalua != "") {
  18769. for (var i = 0; i < this.evaJuri.length; i++) {
  18770. if (this.evalua == this.evaJuri[i].id) {
  18771. this.eTitle = this.evaJuri[i].title;
  18772. this.eJson = JSON.parse(this.evaJuri[i].content);
  18773. }
  18774. }
  18775. this.$forceUpdate();
  18776. setTimeout(() => {
  18777. this.setMindData();
  18778. }, 0);
  18779. }
  18780. },
  18781. selectEva() {
  18782. let params = {
  18783. oid: this.oid,
  18784. };
  18785. this.ajax
  18786. .get(this.$store.state.api + "selectAllEvaluation", params)
  18787. .then((res) => {
  18788. this.evaJuri = res.data[0];
  18789. })
  18790. .catch((err) => {
  18791. console.error(err);
  18792. });
  18793. },
  18794. setMindData() {
  18795. this.data.data = [];
  18796. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18797. let _eJson = Object.keys(this.eJson);
  18798. let _e = this.eJson;
  18799. for (let i = 0; i < _eJson.length; i++) {
  18800. let element = _e[_eJson[i]];
  18801. this.data.data.push({
  18802. id: element.id,
  18803. parentid: "root",
  18804. topic: element.name,
  18805. });
  18806. let _eJsonc = Object.keys(element.child);
  18807. let _e2 = element.child;
  18808. for (let j = 0; j < _eJsonc.length; j++) {
  18809. let _ec = _e2[_eJsonc[j]];
  18810. this.data.data.push({
  18811. id: _ec.id,
  18812. parentid: element.id,
  18813. topic: _ec.name,
  18814. });
  18815. let _eJsonz = Object.keys(_ec.child);
  18816. let _e3 = _ec.child;
  18817. for (let z = 0; z < _eJsonz.length; z++) {
  18818. let _ez = _e3[_eJsonz[z]];
  18819. this.data.data.push({
  18820. id: _ez.id,
  18821. parentid: _ec.id,
  18822. topic: _ez.name,
  18823. });
  18824. }
  18825. }
  18826. }
  18827. this.$forceUpdate();
  18828. },
  18829. checkFileFull(type, url) {
  18830. this.fullDialogVisible = true;
  18831. this.fulltype = type;
  18832. this.fullUrl = url;
  18833. },
  18834. async checkFileFull1(t, f) {
  18835. this.fullDialogVisible = true;
  18836. if (t == 6) {
  18837. this.fulltype = 1;
  18838. this.fullUrl = JSON.parse(JSON.stringify(f));
  18839. } else if (t == 8) {
  18840. this.fulltype = 2;
  18841. this.fullUrl = f.url;
  18842. } else if (
  18843. t == 3 &&
  18844. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18845. "PDF"
  18846. ) {
  18847. this.fulltype = 3;
  18848. this.fullUrl = f.url;
  18849. } else if (t == 3) {
  18850. this.fulltype = 2;
  18851. let _uuurl = await this.checkLink(f.url);
  18852. console.log(_uuurl)
  18853. this.fullUrl =
  18854. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18855. }
  18856. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18857. },
  18858. openSname(n, id, i, uid) {
  18859. this.snameWid = id;
  18860. this.worksSName = n;
  18861. this.worksSid = uid == n ? "" : uid;
  18862. this.toolindex = i;
  18863. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18864. if (!this.uploadCid) {
  18865. this.$message.error(
  18866. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18867. );
  18868. return;
  18869. }
  18870. this.selectUploadStudent(1);
  18871. },
  18872. updateName() {
  18873. let params = {
  18874. n: this.worksSName,
  18875. cid: this.snameWid,
  18876. };
  18877. this.ajax
  18878. .get(this.$store.state.api + "updateCourseWorksName", params)
  18879. .then((res) => {
  18880. this.$message({
  18881. message: "修改成功",
  18882. type: "success",
  18883. });
  18884. this.dialogVisibleSname = false;
  18885. this.getCourseDetail(2);
  18886. this.snameWid = "";
  18887. this.worksSName = "";
  18888. })
  18889. .catch((err) => {
  18890. console.error(err);
  18891. });
  18892. },
  18893. downloadFile2(f) {
  18894. // const loading = this.$loading.service({
  18895. // background: "rgba(255, 255, 255, 0.7)",
  18896. // target: document.body,
  18897. // text: "文件加载中...",
  18898. // });
  18899. // let url2 = f.url;
  18900. // let _url2 = "";
  18901. // if (
  18902. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18903. // ) {
  18904. // _url2 = url2.split(
  18905. // "https://view.officeapps.live.com/op/view.aspx?src="
  18906. // )[1];
  18907. // } else {
  18908. // _url2 = url2;
  18909. // }
  18910. // let params = {
  18911. // url: _url2,
  18912. // name: f.name,
  18913. // };
  18914. // this.ajax
  18915. // .get(this.$store.state.api + "download", params)
  18916. // .then((res) => {
  18917. // loading.close();
  18918. // let content = res.data.data.data;
  18919. // let ab = new ArrayBuffer(content.length);
  18920. // let view = new Uint8Array(ab);
  18921. // for (var i = 0; i < content.length; ++i) {
  18922. // view[i] = content[i];
  18923. // }
  18924. // let elink = document.createElement("a");
  18925. // elink.download = f.name;
  18926. // elink.style.display = "none";
  18927. // let blob = new Blob([ab], {
  18928. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18929. // });
  18930. // elink.href = URL.createObjectURL(blob);
  18931. // document.body.appendChild(elink);
  18932. // elink.click();
  18933. // document.body.removeChild(elink);
  18934. // })
  18935. // .catch((err) => {
  18936. // loading.close();
  18937. // console.error(err);
  18938. // });
  18939. var credentials = {
  18940. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18941. secretAccessKey: "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",
  18942. }; //秘钥形式的登录上传
  18943. window.AWS.config.update(credentials);
  18944. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18945. let url2 = f.url;
  18946. let _url2 = "";
  18947. if (
  18948. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18949. ) {
  18950. _url2 = url2.split(
  18951. "https://view.officeapps.live.com/op/view.aspx?src="
  18952. )[1];
  18953. } else {
  18954. _url2 = url2;
  18955. }
  18956. let _this = this;
  18957. _this.downLoading = true
  18958. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18959. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18960. var params = {
  18961. Bucket: "ccrb",
  18962. Key: name
  18963. };
  18964. s3.getObject(params, function (err, data) {
  18965. _this.downLoading = false
  18966. if (err) console.log(err, err.stack); // an error occurred
  18967. else {
  18968. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18969. let a = document.createElement("a");
  18970. a.name = f.name;
  18971. a.href = url;
  18972. a.download = f.name;
  18973. a.click();
  18974. console.log(data);
  18975. } // sxuccessful response
  18976. });
  18977. return;
  18978. let url = f.url;
  18979. let _url = "";
  18980. if (
  18981. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18982. ) {
  18983. _url = url.split(
  18984. "https://view.officeapps.live.com/op/view.aspx?src="
  18985. )[1];
  18986. } else {
  18987. _url = url;
  18988. }
  18989. _this.downLoading = true
  18990. // const loading = _this.$loading.service({
  18991. // background: "rgba(255, 255, 255, 0.7)",
  18992. // target: document.body,
  18993. // text: "文件加载中...",
  18994. // });
  18995. let x = new XMLHttpRequest();
  18996. x.open("GET", _url, true);
  18997. x.responseType = "blob";
  18998. x.onload = function () {
  18999. _this.downLoading = false
  19000. // loading.close();
  19001. let url = window.URL.createObjectURL(new Blob([x.response]));
  19002. let a = document.createElement("a");
  19003. a.name = f.name;
  19004. a.href = url;
  19005. a.download = f.name;
  19006. a.click();
  19007. };
  19008. x.send();
  19009. },
  19010. downloadFile(url) {
  19011. var credentials = {
  19012. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19013. secretAccessKey: "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",
  19014. }; //秘钥形式的登录上传
  19015. window.AWS.config.update(credentials);
  19016. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19017. let url2 = url;
  19018. let _url2 = "";
  19019. if (
  19020. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19021. ) {
  19022. _url2 = url2.split(
  19023. "https://view.officeapps.live.com/op/view.aspx?src="
  19024. )[1];
  19025. } else {
  19026. _url2 = url2;
  19027. }
  19028. const loading2 = this.$loading.service({
  19029. background: "rgba(255, 255, 255, 0.7)",
  19030. target: document.body,
  19031. text: "文件加载中...",
  19032. });
  19033. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19034. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19035. var params = {
  19036. Bucket: "ccrb",
  19037. Key: name
  19038. };
  19039. s3.getObject(params, function (err, data) {
  19040. loading2.close();
  19041. if (err) console.log(err, err.stack); // an error occurred
  19042. else {
  19043. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19044. let a = document.createElement("a");
  19045. a.name = name;
  19046. a.href = url;
  19047. a.download = name;
  19048. a.click();
  19049. console.log(data);
  19050. } // sxuccessful response
  19051. });
  19052. return;
  19053. let _this = this;
  19054. let _url = "";
  19055. if (
  19056. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19057. ) {
  19058. _url = url.split(
  19059. "https://view.officeapps.live.com/op/view.aspx?src="
  19060. )[1];
  19061. } else {
  19062. _url = url;
  19063. }
  19064. const x = new XMLHttpRequest();
  19065. x.open("GET", _url, true);
  19066. x.responseType = "blob";
  19067. // this.downLoading = true
  19068. const loading = _this.$loading.service({
  19069. background: "rgba(255, 255, 255, 0.7)",
  19070. target: document.body,
  19071. text: "文件加载中...",
  19072. });
  19073. // _this.$message.success("文件下载中...");
  19074. x.onload = function (e) {
  19075. this.downLoading = false
  19076. loading.close();
  19077. let content = x.response;
  19078. let elink = document.createElement("a");
  19079. elink.download = decodeURI(
  19080. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19081. );
  19082. elink.style.display = "none";
  19083. let blob = new Blob([content]);
  19084. elink.href = URL.createObjectURL(blob);
  19085. document.body.appendChild(elink);
  19086. elink.click();
  19087. document.body.removeChild(elink);
  19088. };
  19089. x.send();
  19090. },
  19091. openLine(url) {
  19092. window.open(url);
  19093. },
  19094. resize() {
  19095. if (document.getElementsByClassName("box_course").length) {
  19096. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19097. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19098. if (this.showType == 2 || this.showType == 3) {
  19099. document.getElementsByClassName("navBox")[0].style.height =
  19100. a - 40 + 0+ "px";
  19101. } else {
  19102. document.getElementsByClassName("navBox")[0].style.height =
  19103. a - 40 + "px";
  19104. }
  19105. }
  19106. this.Stbodywidth =
  19107. document.getElementsByClassName("student_body").length &&
  19108. document.getElementsByClassName("student_body")[0].offsetWidth;
  19109. },
  19110. closeDraw() {
  19111. this.bg = null;
  19112. this.drawShow = false;
  19113. },
  19114. showPicturePaint(url) {
  19115. let params = {
  19116. img: url,
  19117. };
  19118. this.ajax
  19119. .get(this.$store.state.api + "imgToBase64", params)
  19120. .then((res) => {
  19121. this.drawShow = true;
  19122. this.bg = res.data[0].img;
  19123. })
  19124. .catch((err) => {
  19125. console.error(err);
  19126. });
  19127. },
  19128. addImgDraw(base64) {
  19129. let file = { name: "批注图.png" };
  19130. let img = this.dataUrlToFile(base64, file);
  19131. this.beforeUpload1(img, 5);
  19132. },
  19133. addImgDrawImG(url) {
  19134. // console.log(url);
  19135. let params = [
  19136. {
  19137. wid: this.commentDetail.wid,
  19138. img: url,
  19139. },
  19140. ];
  19141. this.ajax
  19142. .post(this.$store.state.api + "updateCourseWorks", params)
  19143. .then((res) => {
  19144. this.$message({
  19145. message: "提交成功",
  19146. type: "success",
  19147. });
  19148. this.drawShow = false;
  19149. this.bg = "";
  19150. this.selectSWorks();
  19151. this.selectStudent();
  19152. })
  19153. .catch((err) => {
  19154. this.$message.error("提交失败");
  19155. console.error(err);
  19156. });
  19157. },
  19158. deletePicturePaint() {
  19159. this.$confirm("确定删除此批注吗?", "提示", {
  19160. confirmButtonText: "确定",
  19161. cancelButtonText: "取消",
  19162. type: "warning",
  19163. })
  19164. .then(() => {
  19165. let params = [
  19166. {
  19167. wid: this.commentDetail.wid,
  19168. img: "",
  19169. },
  19170. ];
  19171. this.ajax
  19172. .post(this.$store.state.api + "updateCourseWorks", params)
  19173. .then((res) => {
  19174. this.$message({
  19175. message: "删除成功",
  19176. type: "success",
  19177. });
  19178. this.selectSWorks();
  19179. this.selectStudent();
  19180. })
  19181. .catch((err) => {
  19182. this.$message.error("删除失败");
  19183. console.error(err);
  19184. });
  19185. })
  19186. .catch(() => {});
  19187. },
  19188. getAudioVideo(constraintsData) {
  19189. if (navigator.mediaDevices === undefined) {
  19190. navigator.mediaDevices = {};
  19191. }
  19192. if (navigator.mediaDevices.getUserMedia === undefined) {
  19193. navigator.mediaDevices.getUserMedia = function (constraints) {
  19194. // 首先,如果有getUserMedia的话,就获得它
  19195. var getUserMedia =
  19196. navigator.getUserMedia ||
  19197. navigator.webkitGetUserMedia ||
  19198. navigator.mozGetUserMedia ||
  19199. navigator.msGetUserMedia;
  19200. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19201. if (!getUserMedia) {
  19202. return Promise.reject({ code: 404 });
  19203. }
  19204. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19205. return new Promise(function (resolve, reject) {
  19206. getUserMedia.call(navigator, constraints, resolve, reject);
  19207. });
  19208. };
  19209. }
  19210. return navigator.mediaDevices.getUserMedia(constraintsData);
  19211. },
  19212. /**
  19213. * 开始录制
  19214. */
  19215. startRecording(callback) {
  19216. let _function = (screenStream) => {
  19217. this.addStreamStopListener(screenStream, () => {
  19218. console.log("流停止监听");
  19219. this.stopRecording();
  19220. this.$emit("streamStop", {});
  19221. // this.stopRecording();
  19222. });
  19223. var options = {
  19224. type: "video",
  19225. mimeType: "video/webm",
  19226. disableLogs: false,
  19227. getNativeBlob: false, // enable it for longer recordings
  19228. ignoreMutedMedia: false,
  19229. };
  19230. // this.video.srcObject = screenStream;
  19231. this.recorder = RecordRTC(screenStream, options);
  19232. this.recorder.startRecording();
  19233. this.recorder.screen = screenStream;
  19234. this.videoStart = true;
  19235. // callback(true);
  19236. };
  19237. this.getAudioVideo({ audio: true })
  19238. .then((res) => {
  19239. this.captureScreen(_function, true);
  19240. console.log("已点击允许,开启成功");
  19241. })
  19242. .catch((err) => {
  19243. // console.log('浏览器不支持,请更换浏览器')
  19244. // } else {
  19245. this.captureScreen(_function, false);
  19246. console.log("请检查是否存在麦克风");
  19247. });
  19248. },
  19249. /**
  19250. * 停止录制
  19251. */
  19252. stopRecording(callback) {
  19253. this.recorder.stopRecording(() => {
  19254. // this.video.src = this.video.srcObject = null;
  19255. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19256. const url = URL.createObjectURL(this.recorder.getBlob());
  19257. const a = document.createElement("a"); //this.fileName+
  19258. let videoFile = new File(
  19259. [this.recorder.getBlob()],
  19260. this.courseDetail.title + "录屏.mp4",
  19261. {
  19262. type: "video/mp4",
  19263. }
  19264. );
  19265. let downloadUrl = URL.createObjectURL(videoFile);
  19266. if(this.$refs.classRoomHelperRef){
  19267. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19268. }
  19269. document.body.appendChild(a);
  19270. a.style.display = "none";
  19271. a.href = url;
  19272. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19273. a.click();
  19274. this.recorder.screen.stop();
  19275. this.recorder.destroy();
  19276. this.recorder = null;
  19277. this.videoStart = false;
  19278. // callback(false);
  19279. });
  19280. },
  19281. //初始化
  19282. captureScreen(callback, type) {
  19283. if (navigator.getDisplayMedia) {
  19284. //录制结束,文件下载
  19285. navigator
  19286. .getDisplayMedia({
  19287. video: true,
  19288. })
  19289. .then((screenStream) => {
  19290. if (type) {
  19291. navigator.mediaDevices
  19292. .getUserMedia({ audio: true })
  19293. .then((mic) => {
  19294. screenStream.addTrack(mic.getTracks()[0]);
  19295. callback(screenStream);
  19296. });
  19297. } else {
  19298. callback(screenStream);
  19299. }
  19300. })
  19301. .catch(function (error) {
  19302. console.log("error", error);
  19303. });
  19304. } else if (navigator.mediaDevices.getDisplayMedia) {
  19305. navigator.mediaDevices
  19306. .getDisplayMedia({
  19307. video: true,
  19308. })
  19309. .then((screenStream) => {
  19310. if (type) {
  19311. navigator.mediaDevices
  19312. .getUserMedia({ audio: true })
  19313. .then((mic) => {
  19314. screenStream.addTrack(mic.getTracks()[0]);
  19315. callback(screenStream);
  19316. });
  19317. } else {
  19318. callback(screenStream);
  19319. }
  19320. })
  19321. .catch(function (error) {
  19322. console.log("error", error);
  19323. });
  19324. } else {
  19325. var error = "getDisplayMedia API are not supported in this browser.";
  19326. console.log("error", error);
  19327. alert(error);
  19328. }
  19329. },
  19330. //流监听
  19331. addStreamStopListener(stream, callback) {
  19332. stream.addEventListener(
  19333. "ended",
  19334. function () {
  19335. callback();
  19336. callback = function () {};
  19337. },
  19338. false
  19339. );
  19340. stream.addEventListener(
  19341. "inactive",
  19342. function () {
  19343. callback();
  19344. callback = function () {};
  19345. },
  19346. false
  19347. );
  19348. stream.getTracks().forEach(function (track) {
  19349. track.addEventListener(
  19350. "ended",
  19351. function () {
  19352. callback();
  19353. callback = function () {};
  19354. },
  19355. false
  19356. );
  19357. track.addEventListener(
  19358. "inactive",
  19359. function () {
  19360. callback();
  19361. callback = function () {};
  19362. },
  19363. false
  19364. );
  19365. });
  19366. },
  19367. updateGroup() {
  19368. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19369. this.dialogVisibleGroup2 = true;
  19370. },
  19371. numberPan() {
  19372. if (
  19373. /[^\d]/.test(this.groupJson.number) ||
  19374. this.groupJson.number < 2 ||
  19375. this.groupJson.number > 10
  19376. ) {
  19377. this.$message.error("请输入2-10的数字");
  19378. this.groupJson.number = "";
  19379. }
  19380. },
  19381. updateGroupJson() {
  19382. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19383. if (
  19384. this.groupStudentUid[this.toolindex][i].length >
  19385. this.groupJson2.number
  19386. ) {
  19387. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19388. return;
  19389. }
  19390. }
  19391. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19392. this.islock = this.groupJson.islock == 1 ? true : false;
  19393. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19394. this.taskCount
  19395. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19396. let params = [
  19397. {
  19398. cid: this.id,
  19399. chapters: JSON.stringify(this.chapInfoList),
  19400. uid: this.userid,
  19401. unitIndex: this.courseType,
  19402. },
  19403. ];
  19404. this.ajax
  19405. .post(this.$store.state.api + "updateWorkNew4", params)
  19406. .then((res) => {
  19407. this.$message.success("设置成功");
  19408. this.getCourseDetail(2);
  19409. this.dialogVisibleGroup2 = false;
  19410. this.groupJson2 = {};
  19411. this.$forceUpdate();
  19412. })
  19413. .catch((err) => {
  19414. this.$message.error("网络不佳");
  19415. console.error(err);
  19416. });
  19417. },
  19418. lockChair() {
  19419. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19420. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19421. this.updateGroupJson();
  19422. },
  19423. selectGroup(index) {
  19424. this.getCourseDetail(2, index);
  19425. },
  19426. joinGroup(index) {
  19427. if (this.groupJson.islock == 2) {
  19428. this.$message.error("位置已被锁定,无法加入");
  19429. return;
  19430. }
  19431. if (
  19432. this.groupStudent[this.toolindex][index].length >
  19433. this.groupJson.number ||
  19434. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19435. ) {
  19436. this.$message.error("位置已满,无法加入");
  19437. return;
  19438. }
  19439. let params = [
  19440. {
  19441. cid: this.id,
  19442. stage: this.courseType,
  19443. task: this.taskCount,
  19444. tool: this.toolindex,
  19445. g: index,
  19446. uid: this.userid,
  19447. },
  19448. ];
  19449. this.ajax
  19450. .post(this.$store.state.api + "joinGroup", params)
  19451. .then((res) => {
  19452. this.$message.success("加入成功");
  19453. this.getCourseDetail(2);
  19454. })
  19455. .catch((err) => {
  19456. this.$message.error("网络不佳");
  19457. console.error(err);
  19458. });
  19459. },
  19460. exitGroup(id) {
  19461. if (this.groupJson.islock == 2) {
  19462. this.$message.error("位置已被锁定,无法退出");
  19463. return;
  19464. }
  19465. let params = [
  19466. {
  19467. gid: id,
  19468. },
  19469. ];
  19470. this.ajax
  19471. .post(this.$store.state.api + "exitGroup", params)
  19472. .then((res) => {
  19473. this.$message.success("退出成功");
  19474. this.getCourseDetail(2);
  19475. })
  19476. .catch((err) => {
  19477. this.$message.error("网络不佳");
  19478. console.error(err);
  19479. });
  19480. },
  19481. groupUpload(index, task, gindex) {
  19482. this.taskCount = task;
  19483. this.toolindex = index;
  19484. this.groupIndex = gindex;
  19485. this.dialogVisibleGroupWork = true;
  19486. },
  19487. updateGroupChair(user) {
  19488. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19489. el.label = index;
  19490. return index != user.group;
  19491. });
  19492. this.updateGroupUser = user;
  19493. this.dialogVisibleUpdateGroup = true;
  19494. },
  19495. updateChair() {
  19496. if (
  19497. this.groupStudent[this.toolindex][this.checkChair].length >
  19498. this.groupJson.number ||
  19499. this.groupStudent[this.toolindex][this.checkChair].length ==
  19500. this.groupJson.number
  19501. ) {
  19502. this.$message.error("位置已满,无法加入");
  19503. return;
  19504. }
  19505. let params = [
  19506. {
  19507. cid: this.id,
  19508. stage: this.courseType,
  19509. task: this.taskCount,
  19510. tool: this.toolindex,
  19511. g: this.checkChair,
  19512. uid: this.updateGroupUser.userid,
  19513. },
  19514. ];
  19515. this.ajax
  19516. .post(this.$store.state.api + "joinGroup", params)
  19517. .then((res) => {
  19518. this.$message.success("修改成功");
  19519. this.updateGroupUser = {};
  19520. this.checkChair = "";
  19521. this.updateGroupArray = {};
  19522. this.dialogVisibleUpdateGroup = false;
  19523. this.getCourseDetail(2);
  19524. })
  19525. .catch((err) => {
  19526. this.$message.error("网络不佳");
  19527. console.error(err);
  19528. });
  19529. },
  19530. deleteGroupChair(gindex) {
  19531. this.checkDeleteGroup = [];
  19532. this.deleteGroupUser = JSON.parse(
  19533. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19534. );
  19535. this.deleteGroupArray = this.groupJson.group[gindex];
  19536. this.groupIndex = gindex;
  19537. this.dialogVisibleDeleteGroup = true;
  19538. },
  19539. async deleteChair() {
  19540. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19541. const gid =
  19542. this.groupStudent[this.toolindex][this.groupIndex][
  19543. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19544. this.checkDeleteGroup[i]
  19545. )
  19546. ];
  19547. let params = [
  19548. {
  19549. gid: gid.id,
  19550. },
  19551. ];
  19552. var a = await this.deleteChairA(params);
  19553. if (i == this.checkDeleteGroup.length - 1) {
  19554. this.$message.success("退出成功");
  19555. this.dialogVisibleDeleteGroup = false;
  19556. this.deleteGroupUser = [];
  19557. this.deleteGroupArray = {};
  19558. this.groupIndex = "";
  19559. this.checkDeleteGroup = [];
  19560. this.getCourseDetail(2);
  19561. }
  19562. }
  19563. },
  19564. deleteChairA(params) {
  19565. return new Promise((resolve, reject) => {
  19566. this.ajax
  19567. .post(this.$store.state.api + "exitGroup", params)
  19568. .then((res) => {
  19569. resolve(1);
  19570. })
  19571. .catch((err) => {
  19572. this.$message.error("网络不佳");
  19573. console.error(err);
  19574. });
  19575. });
  19576. },
  19577. contract(i) {
  19578. if (this.isCloseList[i].isClose == 0) {
  19579. this.isCloseList[i].isClose = 1;
  19580. } else {
  19581. this.isCloseList[i].isClose = 0;
  19582. }
  19583. this.$forceUpdate();
  19584. },
  19585. openWordCloud(toolindex) {
  19586. let array = [];
  19587. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19588. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19589. array.push({ name: works });
  19590. }
  19591. if (this.isGroup) {
  19592. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19593. let works = this.courseGroup.group[i].works[toolindex];
  19594. for (var j = 0; j < works.length; j++) {
  19595. let answer = JSON.parse(works[j].works)[0].answer;
  19596. array.push({ name: answer });
  19597. }
  19598. }
  19599. }
  19600. this.wordCloudData = array;
  19601. this.dialogVisibleWordCloud = true;
  19602. },
  19603. uploadWorks(i) {
  19604. this.$confirm("确定导出作业吗?", "提示", {
  19605. confirmButtonText: "确定",
  19606. cancelButtonText: "取消",
  19607. type: "warning",
  19608. })
  19609. .then(() => {
  19610. const loading = this.$loading.service({
  19611. background: "rgba(255, 255, 255, 0.7)",
  19612. target: document.body,
  19613. text: "文件加载中...",
  19614. });
  19615. const _worksStudent = this.worksStudent;
  19616. let url = [];
  19617. var counts = {};
  19618. for (var l = 0; l < _worksStudent[i].length; l++) {
  19619. var item = _worksStudent[i][l];
  19620. var name = item.sName;
  19621. if (!counts.hasOwnProperty(name)) {
  19622. counts[name] = 0;
  19623. } else {
  19624. counts[name]++;
  19625. }
  19626. if (counts[name] > 0) {
  19627. item.sName += " (" + counts[name] + ")";
  19628. }
  19629. }
  19630. for (var l = 0; l < _worksStudent[i].length; l++) {
  19631. var item = _worksStudent[i][l];
  19632. if (
  19633. item.works.indexOf(
  19634. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19635. ) !== -1 &&
  19636. item.works.indexOf("img") === -1
  19637. ) {
  19638. url.push({ name: item.sName, url: item.works });
  19639. }
  19640. }
  19641. // var toolList = [
  19642. // { name: "电子白板", tool: 1 },
  19643. // { name: "思维导图", tool: 3 },
  19644. // { name: "协同文档", tool: 6 },
  19645. // { name: "思维网格", tool: 7 },
  19646. // { name: "素材库", tool: 8 },
  19647. // { name: "学习资料", tool: 17 },
  19648. // { name: "便签", tool: 2 },
  19649. // { name: "问卷调查", tool: 4 },
  19650. // { name: "选择题", tool: 45 },
  19651. // { name: "倒计时", tool: 10 },
  19652. // { name: "问答", tool: 15 },
  19653. // { name: "课程设计", tool: 26 },
  19654. // { name: "训练服务器", tool: 18 },
  19655. // { name: "作业提交", tool: 16 },
  19656. // { name: "批量上传", tool: 50 },
  19657. // { name: "AIoT Blockly", tool: 21 },
  19658. // { name: "AI Python", tool: 23 },
  19659. // { name: "AI Blockly", tool: 24 },
  19660. // { name: "目标管理", tool: 25 },
  19661. // { name: "数学画板", tool: 31 },
  19662. // { name: "翻译", tool: 28 },
  19663. // { name: "魔盒识字", tool: 37 },
  19664. // { name: "数学画板", tool: 31 },
  19665. // { name: "24点", tool: 38 },
  19666. // { name: "GeoGebra", tool: 39 },
  19667. // { name: "源码编辑", tool: 32 },
  19668. // { name: "个人评价", tool: 40 },
  19669. // { name: "选择匹配", tool: 41 },
  19670. // { name: "汉字宫", tool: 44 },
  19671. // { name: "排序", tool: 47 },
  19672. // { name: "表格", tool: 48 },
  19673. // { name: "文档", tool: 52 },
  19674. // { name: "学生分组", tool: 49 },
  19675. // { name: "CocoPi", tool: 57 },
  19676. // { name: "模拟驾驶", tool: 58 },
  19677. // { name: "路径搜索", tool: 59 },
  19678. // { name: "深度学习", tool: 60 },
  19679. // { name: "全历史", tool: 61 },
  19680. // { name: "交互视频", tool: 62 },
  19681. // { name: "海龟编程", tool: 63 },
  19682. // { name: "挑人", tool: 65 },
  19683. // { name: "公式编辑", tool: 66 },
  19684. // { name: "分子结构", tool: 67 },
  19685. // { name: "时间轴", tool: 68 },
  19686. // ];
  19687. // var toolName = "";
  19688. // for(var w = 0;w<toolList.length;w++){
  19689. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19690. // toolName = toolList[w].name;
  19691. // }
  19692. // }
  19693. console.log(url);
  19694. this.downLoadAll(url, loading);
  19695. })
  19696. .catch(() => {});
  19697. },
  19698. downLoadAll(url, loading) {
  19699. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19700. const zip = new JSZip();
  19701. const cache = {};
  19702. const promises = [];
  19703. data.forEach((item) => {
  19704. const promise = getFile(item.url).then((data) => {
  19705. if (data.data != 1) {
  19706. // 下载文件, 并存成ArrayBuffer对象
  19707. const file_name =
  19708. item.name +
  19709. "." +
  19710. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19711. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19712. cache[file_name] = data.data;
  19713. }
  19714. });
  19715. promises.push(promise);
  19716. });
  19717. Promise.all(promises).then(() => {
  19718. zip.generateAsync({ type: "blob" }).then((content) => {
  19719. // 生成二进制流
  19720. FileSaver.saveAs(
  19721. content,
  19722. this.courseDetail.title + "-" + "作业提交工具.zip"
  19723. ); // 利用file-saver保存文件 自定义文件名
  19724. setTimeout(() => {
  19725. loading.close();
  19726. }, 2000);
  19727. });
  19728. });
  19729. },
  19730. pickStudent(stu) {
  19731. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19732. return;
  19733. }
  19734. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19735. confirmButtonText: "确定",
  19736. cancelButtonText: "取消",
  19737. type: "warning",
  19738. })
  19739. .then(() => {
  19740. let params = [
  19741. {
  19742. uid: stu.userid,
  19743. cid: this.id,
  19744. stage: this.courseType,
  19745. task: this.taskCount,
  19746. tool: this.toolindex,
  19747. },
  19748. ];
  19749. this.ajax
  19750. .post(this.$store.state.api + "updateCoursePick", params)
  19751. .then((res) => {
  19752. this.$message.success("操作成功");
  19753. this.getPick();
  19754. })
  19755. .catch((err) => {
  19756. this.$message.error("网络不佳");
  19757. console.error(err);
  19758. });
  19759. })
  19760. .catch(() => {});
  19761. },
  19762. selectUser(){
  19763. let params = {
  19764. userid: this.userid,
  19765. };
  19766. this.ajax
  19767. .get(this.$store.state.api + "selectUser", params)
  19768. .then((res) => {
  19769. this.userMes = res.data[0];
  19770. })
  19771. .catch((err) => {
  19772. console.error(err);
  19773. });
  19774. },
  19775. setEngText(i){
  19776. this.newEngIndex = i;
  19777. this.$forceUpdate();
  19778. },
  19779. addCorrect(){
  19780. this.$confirm("你确定提交批改嘛?", "提示", {
  19781. confirmButtonText: "确定",
  19782. showCancelButton: false,
  19783. closeOnClickModal: false,
  19784. type: "warning",
  19785. })
  19786. .then(() => {
  19787. let params = {
  19788. cid: this.id,
  19789. s: parseInt(this.courseType),
  19790. t: this.taskCount,
  19791. tool: this.toolindex,
  19792. wid: this.engWid,
  19793. c: this.userid,
  19794. 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) : "",
  19795. };
  19796. this.ajax
  19797. .get(this.$store.state.api + "addEngC", params)
  19798. .then((res) => {
  19799. this.$message.success("提交成功");
  19800. this.engUpdateDialogVisible = false;
  19801. })
  19802. .catch((err) => {
  19803. console.error(err);
  19804. });
  19805. })
  19806. .catch(() => {});
  19807. },
  19808. selectEngC(id,z){
  19809. let params = {
  19810. workid: id,
  19811. };
  19812. this.ajax
  19813. .get(this.$store.state.api + "selectEngC", params)
  19814. .then((res) => {
  19815. if(res.data[0].length == 0){
  19816. this.newEnglishList.engTitle = z.engTitle;
  19817. this.newEnglishList.engText = z.engText;
  19818. }else{
  19819. var a = res.data[0];
  19820. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19821. if(this.userMes[0].type == 2){
  19822. var snum = 0;
  19823. for(var i = 0;i<a.length;i++){
  19824. if(this.userMes[0].userid == a[i].correct){
  19825. this.newEnglishList = JSON.parse(a[i].cWork);
  19826. snum = 1;
  19827. }
  19828. }
  19829. if(snum == 0){
  19830. this.newEnglishList = { engTitle:"",engText:"" };
  19831. this.newEnglishList.engTitle = z.engTitle;
  19832. this.newEnglishList.engText = z.engText;
  19833. }
  19834. }else if(this.userMes[0].type == 1){
  19835. var num = 0;
  19836. for(var w= 0;w<a.length;w++){
  19837. if(this.userMes[0].userid == a[w].correct){
  19838. num = 1;
  19839. }
  19840. }
  19841. if(num == 0){
  19842. this.isNoUserid = true;
  19843. var c = JSON.parse(JSON.stringify(z));
  19844. this.oldEnglishJson1 = c;
  19845. }else{
  19846. this.isNoUserid = false;
  19847. }
  19848. var b = a.sort((item, index) => {
  19849. console.log(item)
  19850. if (item.correct === this.userMes[0].userid) {
  19851. return -1; // 将a移到前面
  19852. } else if (index.correct === this.userMes[0].userid) {
  19853. return 1; // 将b移到前面
  19854. } else {
  19855. return 0; // 保持默认顺序
  19856. }
  19857. });
  19858. for(var p = 0;p<b.length;p++){
  19859. for(var y = 0;y<ppp.length;y++){
  19860. if(b[p].id == ppp[y].id){
  19861. b[p].cWork = JSON.parse(ppp[y].cWork);
  19862. break
  19863. }
  19864. }
  19865. }
  19866. this.newEnglishList1 = b;
  19867. }
  19868. }
  19869. this.greyType = false;
  19870. setTimeout(() => {
  19871. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19872. if(this.newEnglishList1.length > 0){
  19873. if(this.isNoUserid == true){
  19874. this.engListLength = this.newEnglishList1.length + 1;
  19875. this.newEngIndex = -1;
  19876. }else{
  19877. this.engListLength = this.newEnglishList1.length;
  19878. this.newEngIndex = 0;
  19879. }
  19880. }
  19881. if(this.userMes[0].type == 2){
  19882. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19883. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19884. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19885. }else if(this.newEngIndex == -1){
  19886. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19887. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19888. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19889. }
  19890. }, 500);
  19891. this.engUpdateDialogVisible = true;
  19892. this.$forceUpdate();
  19893. })
  19894. .catch((err) => {
  19895. console.error(err);
  19896. });
  19897. },
  19898. getPick() {
  19899. let params = {
  19900. cid: this.id,
  19901. };
  19902. this.ajax
  19903. .get(this.$store.state.api + "getPick", params)
  19904. .then((res) => {
  19905. let array = [];
  19906. for (var i = 0; i < res.data[0].length; i++) {
  19907. array.push(res.data[0][i].userid);
  19908. }
  19909. this.isPickStudent = array;
  19910. if (array.indexOf(this.userid) !== -1) {
  19911. this.$confirm("你被老师选到啦!", "提示", {
  19912. confirmButtonText: "确定",
  19913. showCancelButton: false,
  19914. closeOnClickModal: false,
  19915. type: "warning",
  19916. })
  19917. .then(() => {
  19918. let pa = [
  19919. {
  19920. uid: this.userid,
  19921. cid: this.id,
  19922. },
  19923. ];
  19924. this.ajax
  19925. .post(this.$store.state.api + "deletePick", pa)
  19926. .then((res) => {
  19927. this.getPick();
  19928. })
  19929. .catch((err) => {
  19930. this.$message.error("网络不佳");
  19931. console.error(err);
  19932. });
  19933. })
  19934. .catch(() => {});
  19935. }
  19936. })
  19937. .catch((err) => {
  19938. this.$message.error("网络不佳");
  19939. console.error(err);
  19940. });
  19941. },
  19942. foldEva() {
  19943. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19945. } else {
  19946. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19947. setTimeout(() => {
  19948. this.checkEva();
  19949. setTimeout(() => {
  19950. this.checkEva();
  19951. }, 500);
  19952. }, 0);
  19953. }
  19954. this.$forceUpdate();
  19955. },
  19956. panToolHeight(tool) {
  19957. var _tool = document.querySelectorAll('#'+tool)[0]
  19958. var _toolA = _tool ? _tool.offsetHeight : 0
  19959. var _toolC = 0
  19960. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19961. let boolean2 = (_toolA > _toolC) ? true : false
  19962. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19963. this.$forceUpdate();
  19964. },
  19965. async checkLink(url) {
  19966. // console.log(url)
  19967. let _url = url
  19968. try {
  19969. const response = await fetch(url);
  19970. if(!response.ok){
  19971. _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]))
  19972. }
  19973. // console.log(response.ok)
  19974. } catch (error) {
  19975. console.error('Error checking link:', error);
  19976. // console.log(false)
  19977. _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]))
  19978. }
  19979. // console.log(_url)
  19980. return _url
  19981. },
  19982. getScoreList(){
  19983. let params = {
  19984. cid: this.id,
  19985. };
  19986. this.ajax
  19987. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19988. .then((res) => {
  19989. let result = res.data;
  19990. this.scoreList.datalist = result[0];
  19991. this.scoreList.isScoreList = result[1];
  19992. })
  19993. .catch((err) => {
  19994. console.error(err);
  19995. });
  19996. },
  19997. setClassRoomHelperWidth(width){
  19998. this.classRoomHelperWidth = width
  19999. },
  20000. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20001. this.$refs.choseWorksDetailDialogRef.open({
  20002. toolType:tooc,
  20003. tType: this.tType,
  20004. toolIndex: toolIndex
  20005. });
  20006. this.changeSplitScreenBehavior({
  20007. code: 1,
  20008. form: {
  20009. toolType:tooc,
  20010. toolIndex: toolIndex,
  20011. courseType: this.courseType,
  20012. taskCount: this.taskCount,
  20013. type: 0
  20014. }
  20015. });
  20016. },
  20017. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20018. this.$refs.statisticalAnalysisRef.open({
  20019. worksStudent: this.worksStudent[toolIndex],
  20020. tType: this.tType,
  20021. toolIndex: toolIndex
  20022. });
  20023. this.changeSplitScreenBehavior({
  20024. code: 2,
  20025. form: {
  20026. toolType:4,
  20027. courseType: this.courseType,
  20028. taskCount: this.taskCount,
  20029. toolIndex: toolIndex,
  20030. type: 0
  20031. }
  20032. });
  20033. },
  20034. statisticalAnalysisRefresh(toolIndex) {
  20035. this.$refs.statisticalAnalysisRef.refreshData({
  20036. worksStudent: this.worksStudent[toolIndex],
  20037. tType: this.tType,
  20038. toolIndex: toolIndex
  20039. });
  20040. },
  20041. async splitScreenBehavior(type = 0) {
  20042. // return;
  20043. if (this.splitScreenData.loading)
  20044. return this.$message.info("操作过快,请稍等");
  20045. if (type == 0) {
  20046. //关闭分屏
  20047. this.splitScreenData.isOpen = false;
  20048. // this.splitScreenData.userId = "";
  20049. // this.splitScreenData.uid = "";
  20050. this.splitScreenData.behavior = null;
  20051. await this.updateSplitScreenData(1);
  20052. this.$message.success("已关闭分屏模式");
  20053. this.studentFreePreview(false);
  20054. this.OpenJobPreview(false);
  20055. // this.followingMode(false);
  20056. } else if (type == 1) {
  20057. //开启分屏
  20058. this.splitScreenData.isOpen = true;
  20059. this.splitScreenData.userId = this.userid;
  20060. this.splitScreenData.uid = this.splitScreenData.myUid;
  20061. this.splitScreenData.behavior = null;
  20062. let status = await this.updateSplitScreenData(0);
  20063. if (status == 1) {
  20064. this.$message.success("已开启分屏");
  20065. this.studentFreePreview(true);
  20066. this.OpenJobPreview(true);
  20067. // this.followingMode(true);
  20068. } else {
  20069. this.splitScreenData.isOpen = false;
  20070. this.splitScreenData.userId = "";
  20071. this.splitScreenData.uid = "";
  20072. this.splitScreenData.behavior = null;
  20073. this.$message.success("分屏开启失败");
  20074. }
  20075. }
  20076. },
  20077. getSplitScreenData() {
  20078. // return;
  20079. if (this.tType != 1) return;
  20080. let params = {
  20081. cid: this.id
  20082. };
  20083. this.ajax
  20084. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20085. .then(async res => {
  20086. let data = res.data[0][0]["splitScreenData"];
  20087. console.log("获取了分屏数:", data);
  20088. if (data) {
  20089. data = JSON.parse(data);
  20090. if (
  20091. !this.splitScreenData.isOpen &&
  20092. data.isOpen &&
  20093. this.splitScreenData.myUid == data.uid
  20094. ) {
  20095. this.splitScreenData.isOpen = false;
  20096. this.splitScreenData.userId = "";
  20097. this.splitScreenData.uid = "";
  20098. this.splitScreenData.behavior = null;
  20099. await this.updateSplitScreenData(1);
  20100. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20101. this.splitScreenData.isOpen = true;
  20102. this.splitScreenData.uid = data.uid;
  20103. this.splitScreenData.userId = data.userId;
  20104. this.splitScreenData.behavior = data.behavior;
  20105. this.$message.success("分屏模式已开启");
  20106. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20107. this.splitScreenData.isOpen = false;
  20108. this.splitScreenData.userId = "";
  20109. this.splitScreenData.uid = "";
  20110. this.splitScreenData.behavior = null;
  20111. this.$message.error("已结束分屏模式");
  20112. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20113. this.splitScreenData.isOpen = true;
  20114. this.splitScreenData.uid = data.uid;
  20115. this.splitScreenData.userId = data.userId;
  20116. this.splitScreenData.behavior = data.behavior;
  20117. }
  20118. this.doSplitScreenBehavior();
  20119. } else {
  20120. if (this.splitScreenData.isOpen) {
  20121. this.splitScreenData.isOpen = false;
  20122. this.splitScreenData.userId = "";
  20123. this.splitScreenData.uid = "";
  20124. this.splitScreenData.behavior = null;
  20125. this.$message.error("已结束分屏模式");
  20126. }
  20127. }
  20128. })
  20129. .catch(e => {
  20130. console.log("获取分屏数出错:", e);
  20131. });
  20132. },
  20133. doSplitScreenBehavior() {
  20134. if (
  20135. this.splitScreenData.isOpen &&
  20136. this.splitScreenData.uid != this.splitScreenData.myUid
  20137. ) {
  20138. let behavior = this.splitScreenData.behavior;
  20139. if (behavior) {
  20140. if (behavior.code === 99) {
  20141. //初始化
  20142. this.fullDialogVisible = false;
  20143. if(this.$refs.choseWorksDetailDialogRef.show){
  20144. this.$refs.choseWorksDetailDialogRef.close();
  20145. }
  20146. if(this.$refs.statisticalAnalysisRef.show){
  20147. this.$refs.statisticalAnalysisRef.close();
  20148. }
  20149. } else if (behavior.code === 0) {
  20150. //开启内容列表弹窗
  20151. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20152. } else if (behavior.code === 1) {
  20153. //关于选择题的作业详细的操作
  20154. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20155. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20156. this.courseType = behavior.form.courseType;
  20157. this.taskCount = behavior.form.taskCount;
  20158. }
  20159. this.$nextTick(() => {
  20160. if (this.$refs.choseWorksDetailDialogRef.show) {
  20161. //已经打开了
  20162. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20163. } else {
  20164. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20165. }
  20166. });
  20167. }else if(behavior.code === 2){
  20168. if(this.$refs.statisticalAnalysisRef.show){
  20169. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20170. }else{
  20171. this.$refs.statisticalAnalysisRef.open({
  20172. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20173. tType: this.tType,
  20174. toolIndex: behavior.form.toolIndex
  20175. });
  20176. }
  20177. }
  20178. } else {
  20179. }
  20180. }
  20181. },
  20182. updateSplitScreenData(empty = 0) {
  20183. return new Promise(resolve => {
  20184. if(this.userid!==this.courseDetail.userid){
  20185. if(!this.courseDetail.userid){
  20186. return setTimeout(()=>{
  20187. this.updateSplitScreenData(empty)
  20188. },2000)
  20189. }
  20190. return;
  20191. };
  20192. if (
  20193. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20194. this.splitScreenData.userId == this.userid
  20195. ) {
  20196. this.splitScreenData.loading = true;
  20197. let params = [
  20198. {
  20199. cid: this.id,
  20200. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20201. }
  20202. ];
  20203. this.ajax
  20204. .post(
  20205. this.$store.state.api + "update_courseSplitScreenData",
  20206. params
  20207. )
  20208. .then(res => {
  20209. this.splitScreenData.loading = false;
  20210. if (res.data == 1) {
  20211. resolve(1);
  20212. console.log("修改分屏数据成功");
  20213. }
  20214. })
  20215. .catch(e => {
  20216. this.splitScreenData.loading = false;
  20217. console.log("修改分屏数据失败", e);
  20218. resoleve(0);
  20219. });
  20220. } else if (empty == 2 && this.tType == 1) {
  20221. let params = [
  20222. {
  20223. cid: this.id,
  20224. nData: ""
  20225. }
  20226. ];
  20227. return this.ajax
  20228. .post(
  20229. this.$store.state.api + "update_courseSplitScreenData",
  20230. params
  20231. )
  20232. .then(_ => resolve(1))
  20233. .catch(_ => resolve(0));
  20234. } else {
  20235. return resolve(0);
  20236. }
  20237. });
  20238. },
  20239. changeSplitScreenBehavior(newValue) {
  20240. if (
  20241. this.splitScreenData.isOpen &&
  20242. this.splitScreenData.uid == this.splitScreenData.myUid
  20243. ) {
  20244. this.splitScreenData.behavior = newValue;
  20245. this.updateSplitScreenData(0);
  20246. }
  20247. },
  20248. studentFreePreview(flag) {
  20249. this.IsLookOpen = flag;
  20250. this.followingMode(flag)
  20251. this.updateLookOpen();
  20252. },
  20253. OpenJobPreview(flag) {
  20254. this.sIsOpen = flag;
  20255. this.updateSLook();
  20256. },
  20257. followingMode(flag) {
  20258. this.IsFollow = flag;
  20259. this.updateFollow();
  20260. }
  20261. },
  20262. directives: {
  20263. // 使用局部注册指令的方式
  20264. resize: {
  20265. // 指令的名称
  20266. bind(el, binding) {
  20267. // el为绑定的元素,binding为绑定给指令的对象
  20268. let width = "",
  20269. height = "";
  20270. function isReize() {
  20271. const style = document.defaultView.getComputedStyle(el);
  20272. if (width !== style.width || height !== style.height) {
  20273. binding.value(); // 关键
  20274. }
  20275. width = style.width;
  20276. height = style.height;
  20277. }
  20278. el.__vueSetInterval__ = setInterval(isReize, 300);
  20279. },
  20280. unbind(el) {
  20281. clearInterval(el.__vueSetInterval__);
  20282. },
  20283. },
  20284. autoHeight: {
  20285. update(el, binding) {
  20286. const { value } = binding
  20287. if (value && typeof value === 'number') {
  20288. el.style.height = `${value}px`
  20289. } else {
  20290. el.style.height = 'auto'
  20291. }
  20292. },
  20293. componentUpdated(el) {
  20294. el.style.height = `${el.scrollHeight + 5}px`
  20295. },
  20296. },
  20297. },
  20298. beforeDestroy() {
  20299. window.onresize = null;
  20300. clearInterval(this.timer);
  20301. this.timer = null;
  20302. clearInterval(this.opertimer);
  20303. this.opertimer = null;
  20304. this.updateSplitScreenData(1);
  20305. },
  20306. computed: {
  20307. getHeight(){
  20308. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20309. },
  20310. contentConvent() {
  20311. return function (c) {
  20312. return c
  20313. ? c
  20314. .replaceAll(/\r\n/g, "<br/>")
  20315. .replaceAll(/\n/g, "<br/>")
  20316. .replaceAll(/\s/g, " &nbsp")
  20317. : "";
  20318. };
  20319. },
  20320. MarkdownT() {
  20321. return function (c) {
  20322. let md = new MarkdownIt();
  20323. return c
  20324. ? md.render(c) : "";
  20325. };
  20326. },
  20327. commentRight(){
  20328. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20329. return "35px";
  20330. }
  20331. return `calc(${this.classRoomHelperWidth} + 5px)`
  20332. // if(this.$refs["classRoomHelperRef"].type==0){
  20333. // return "100px";
  20334. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20335. // return "502px"
  20336. // }else{
  20337. // return "0px"
  20338. // }
  20339. },
  20340. checkUpload() {
  20341. return function () {
  20342. var studentK = [];
  20343. if (this.plworkFile.length > 0) {
  20344. for (var z = 0; z < this.plworkFile.length; z++) {
  20345. studentK.push(this.plworkFile[z].username);
  20346. }
  20347. studentK = studentK.join(",");
  20348. }
  20349. var a = this.uploadStudentJuri.filter((el) => {
  20350. return studentK.indexOf(el.userid) == -1;
  20351. });
  20352. return a;
  20353. };
  20354. },
  20355. getSName() {
  20356. return function (name) {
  20357. var check = name;
  20358. this.uploadStudentJuri.forEach((el) => {
  20359. if (el.userid == check) {
  20360. check = el.name ? el.name : el.username;
  20361. }
  20362. });
  20363. return check;
  20364. };
  20365. },
  20366. getImgList() {
  20367. return function (val) {
  20368. let srcList = []; // 定义一个数组用来接收后面的img地址
  20369. val.replace(
  20370. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20371. function (match, capture) {
  20372. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20373. srcList.push(capture);
  20374. }
  20375. );
  20376. return srcList;
  20377. };
  20378. },
  20379. retrnToolHeight(){
  20380. return function (tool) {
  20381. var _tool = document.querySelectorAll('#'+tool)[0]
  20382. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20383. };
  20384. },
  20385. Correct() {
  20386. return function (c,d) {
  20387. let w = "";
  20388. let a = this.correctWord;
  20389. for(var k = 0;k<a.length;k++){
  20390. //diffWordsWithSpace
  20391. if(a.length > 1){
  20392. if(a[k].added == true){
  20393. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20394. }else if(a[k].removed == true){
  20395. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20396. }else{
  20397. w += '<span>' + a[k].value + '</span>';
  20398. }
  20399. }else{
  20400. w = c
  20401. }
  20402. console.log("👇👇!+++==")
  20403. console.log(w)
  20404. //diffChars方法
  20405. // if(w == ""){
  20406. // if(a.length > 1){
  20407. // if(a[k].added == true){
  20408. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20409. // }else if(a[k].removed == true){
  20410. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20411. // }
  20412. // }else{
  20413. // w = c
  20414. // }
  20415. // }else{
  20416. // if(k == a.length - 1){
  20417. // if(a[k].added == true){
  20418. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20419. // }else if(a[k].removed == true){
  20420. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20421. // }
  20422. // }else{
  20423. // if(a[k].added == true){
  20424. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20425. // }else if(a[k].removed == true){
  20426. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20427. // }
  20428. // }
  20429. // }
  20430. }
  20431. c = w;
  20432. return c;
  20433. };
  20434. },
  20435. },
  20436. mounted() {
  20437. document.body.addEventListener("click", (e) => {
  20438. if (this.isUpdateToolDetail1) {
  20439. this.updateToolDetail(this.toolDetailIndex);
  20440. }
  20441. });
  20442. if (this.screenType == 2) {
  20443. window.parent.postMessage({ allScreen: 4 }, "*");
  20444. } else if (this.screenType == 3) {
  20445. window.parent.postMessage({ allScreen: 5 }, "*");
  20446. } else if (this.screenType == 1) {
  20447. window.parent.postMessage({ allScreen: 6 }, "*");
  20448. }
  20449. this.setOperationTime();
  20450. this.selectEva();
  20451. this.getCourseDetail();
  20452. this.selectCount();
  20453. this.getHomeWork();
  20454. this.selectUser();
  20455. this.getAIJ();
  20456. this.contentDialog = true;
  20457. this.setContent2(true);
  20458. if (this.tType == 4) {
  20459. this.pzDialog = true;
  20460. this.selectPz();
  20461. }
  20462. // 获取评分列表
  20463. this.getScoreList()
  20464. this.updateSplitScreenData(2);
  20465. this.splitScreenData.myUid = uuidv4();
  20466. document.scrollingElement.scrollTop = 0;
  20467. window.addEventListener("resize", () => {
  20468. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20469. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20470. if (this.showType == 2 || this.showType == 3) {
  20471. document.getElementsByClassName("navBox")[0].style.height =
  20472. a - 40 + 0+ "px";
  20473. } else {
  20474. document.getElementsByClassName("navBox")[0].style.height =
  20475. a - 40 + "px";
  20476. }
  20477. });
  20478. let _this = this;
  20479. setTimeout(() => {
  20480. // _this.vedioTime = [];
  20481. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20482. // _this.vedioTime[i] = document.getElementsByClassName(
  20483. // "vjs-duration-display"
  20484. // )[i].textContent;
  20485. // }
  20486. }, 1000);
  20487. },
  20488. };
  20489. </script>
  20490. <style scoped>
  20491. @media screen and (max-width: 1280px) {
  20492. /* .courseIndex > div:first-child(2) {
  20493. width: 15% !important;
  20494. } */
  20495. /* .navText {
  20496. width: 120px !important;
  20497. } */
  20498. .evaCss {
  20499. flex-direction: column !important;
  20500. align-items: center !important;
  20501. }
  20502. .elist_input {
  20503. width: 90% !important;
  20504. }
  20505. .dialog_diy1 >>> .el-dialog {
  20506. width: 100% !important;
  20507. }
  20508. .rightWidthCss {
  20509. width: 100% !important;
  20510. }
  20511. .dialog_diy3 >>> .el-dialog {
  20512. width: 100% !important;
  20513. }
  20514. .addToolCss {
  20515. right: 0 !important;
  20516. width: 100% !important;
  20517. min-width: unset !important;
  20518. }
  20519. }
  20520. .evaCssMax {
  20521. flex-direction: column !important;
  20522. align-items: center !important;
  20523. }
  20524. .dialog_diy >>> .el-dialog {
  20525. margin-top: 10vh !important;
  20526. }
  20527. .body_student {
  20528. width: 77%;
  20529. height: 100%;
  20530. position: absolute;
  20531. left: 22%;
  20532. top: 0;
  20533. }
  20534. .student_head {
  20535. width: 100%;
  20536. margin: 20px auto 0;
  20537. padding-bottom: 20px;
  20538. display: flex;
  20539. flex-direction: column;
  20540. flex-wrap: nowrap;
  20541. align-items: flex-start;
  20542. justify-content: flex-start;
  20543. }
  20544. .pb_left {
  20545. width: 20%;
  20546. margin-right: 10px;
  20547. background: rgb(255, 255, 255);
  20548. position: fixed;
  20549. height: calc(100% - 40px);
  20550. border-radius: 20px;
  20551. padding-bottom: 15px;
  20552. box-sizing: border-box;
  20553. }
  20554. .wheel > img,
  20555. .project > img,
  20556. .star > img,
  20557. .evaluate > img,
  20558. .up_photo > img,
  20559. .chapter_add > img,
  20560. .deleteWord > img,
  20561. .question > img,
  20562. .homework > img {
  20563. width: 100%;
  20564. height: 100%;
  20565. }
  20566. .upCover > img {
  20567. width: 131px;
  20568. height: 69px;
  20569. object-fit: cover;
  20570. }
  20571. .upCover {
  20572. width: calc(100% / 3.5);
  20573. position: relative;
  20574. margin: 0 15px 10px 0;
  20575. display: flex;
  20576. flex-direction: column;
  20577. flex-wrap: nowrap;
  20578. justify-content: center;
  20579. align-content: center;
  20580. align-items: center;
  20581. height: fit-content;
  20582. }
  20583. .upCover2 {
  20584. width: 100%;
  20585. position: relative;
  20586. margin: 0 15px 10px 0;
  20587. display: flex;
  20588. flex-direction: column;
  20589. flex-wrap: nowrap;
  20590. justify-content: center;
  20591. align-content: center;
  20592. align-items: center;
  20593. }
  20594. .upCover2 > img {
  20595. width: 100%;
  20596. height: 90px;
  20597. object-fit: contain;
  20598. }
  20599. .chapter_add {
  20600. width: 120px;
  20601. position: relative;
  20602. text-align: center;
  20603. }
  20604. .isAddThings {
  20605. margin-top: 20px;
  20606. position: relative;
  20607. text-align: center;
  20608. background: #f7f8fa;
  20609. height: 90px;
  20610. width: 90px;
  20611. display: flex;
  20612. flex-direction: column;
  20613. justify-content: center;
  20614. }
  20615. .deleteWord {
  20616. width: 22px;
  20617. height: 22px;
  20618. position: absolute;
  20619. right: -5px;
  20620. top: -5px;
  20621. cursor: pointer;
  20622. }
  20623. .box_course {
  20624. /* width: 60%; */
  20625. width: calc(100% - 300px);
  20626. }
  20627. .wheel {
  20628. width: 100%;
  20629. /* height: 100%; */
  20630. height: 650px;
  20631. }
  20632. .right_box {
  20633. display: flex;
  20634. flex-direction: column;
  20635. margin-left: 30px;
  20636. justify-content: space-around;
  20637. }
  20638. .right_box_title {
  20639. font-size: 23px;
  20640. }
  20641. .people {
  20642. display: flex;
  20643. }
  20644. .student_body {
  20645. width: 100%;
  20646. margin: 0 auto;
  20647. margin-top: 10px;
  20648. padding: 0 0 20px;
  20649. }
  20650. .study_top {
  20651. margin-top: 100px;
  20652. width: 100%;
  20653. height: auto;
  20654. padding-bottom: 20px;
  20655. }
  20656. .study_top .checkbox {
  20657. display: flex;
  20658. align-items: center;
  20659. padding: 15px 0 15px 30px;
  20660. flex: 0 0 auto;
  20661. font-weight: bold;
  20662. border-bottom: 1px solid #eee;
  20663. }
  20664. .study_top .check {
  20665. padding-bottom: 5px;
  20666. text-align: center;
  20667. cursor: pointer;
  20668. height: 30px;
  20669. box-sizing: border-box;
  20670. display: flex;
  20671. }
  20672. .study_top .checked {
  20673. border-bottom: 4px solid #3fc6a0;
  20674. padding-bottom: 5px;
  20675. color: #3fc6a0;
  20676. display: flex;
  20677. height: 35px;
  20678. }
  20679. .study_top .checked > div,
  20680. .study_top .check > div {
  20681. margin-right: 5px;
  20682. }
  20683. .videoTop {
  20684. display: flex;
  20685. flex-direction: row;
  20686. justify-content: space-between;
  20687. background: #fff;
  20688. align-items: center;
  20689. width: 95%;
  20690. padding: 20px;
  20691. }
  20692. .filebox {
  20693. display: flex;
  20694. flex-wrap: wrap;
  20695. flex-direction: column;
  20696. padding: 0 0 5px;
  20697. position: relative;
  20698. }
  20699. .filebox:before {
  20700. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20701. position: absolute;
  20702. top: 20px;
  20703. left: 13px;
  20704. border-left: 2px dotted #cad1dc;
  20705. height: calc(100% - 15px);
  20706. }
  20707. .toolHeng2 > div:last-child::before {
  20708. height: calc(100% - 43px);
  20709. }
  20710. .filebox .tooldetail {
  20711. width: calc(100%);
  20712. margin: 0px 12px;
  20713. padding: 12px;
  20714. line-height: 30px;
  20715. word-break: break-word;
  20716. background: #ffffff;
  20717. border-radius: 8px 8px 8px 8px;
  20718. opacity: 1;
  20719. border: 1px solid #cad1dc;
  20720. overflow:hidden;
  20721. box-sizing:border-box;
  20722. }
  20723. .file {
  20724. display: flex;
  20725. flex-direction: column;
  20726. align-items: center;
  20727. justify-content: center;
  20728. cursor: pointer;
  20729. width: 200px;
  20730. }
  20731. .file div {
  20732. margin-top: 10px;
  20733. width: 150px;
  20734. text-align: center;
  20735. overflow: hidden;
  20736. white-space: nowrap;
  20737. text-overflow: ellipsis;
  20738. }
  20739. .media {
  20740. display: flex;
  20741. flex-direction: column;
  20742. align-items: center;
  20743. justify-content: center;
  20744. margin: 0 20px 20px 0;
  20745. cursor: pointer;
  20746. margin: 12px 0 5px 15px;
  20747. overflow: hidden;
  20748. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20749. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20750. box-sizing: border-box;
  20751. }
  20752. .media img {
  20753. height: 90px;
  20754. width: 160px;
  20755. object-fit: cover;
  20756. }
  20757. .media .title {
  20758. padding: 5px;
  20759. text-align: left;
  20760. width: 100%;
  20761. box-sizing: border-box;
  20762. }
  20763. .media .btn {
  20764. width: 100%;
  20765. height: 35px;
  20766. line-height: 35px;
  20767. color: #fff;
  20768. background: #606060;
  20769. text-align: center;
  20770. overflow: hidden;
  20771. white-space: nowrap;
  20772. text-overflow: ellipsis;
  20773. }
  20774. .detail_content_top {
  20775. width: 100%;
  20776. padding: 25px 0 25px 0;
  20777. }
  20778. .detail_title {
  20779. text-align: center;
  20780. font-size: 24px;
  20781. }
  20782. .detail_time {
  20783. font-size: 13px;
  20784. padding: 15px 0 0 40px;
  20785. }
  20786. .detail_content {
  20787. line-height: 2pc;
  20788. width: 90%;
  20789. margin: 0 auto;
  20790. padding-top: 30px;
  20791. text-indent: 30px;
  20792. overflow: auto;
  20793. height: 200px;
  20794. }
  20795. .score_box >>> .el-rate {
  20796. margin-left: 10px;
  20797. }
  20798. .dialog_change >>> .el-dialog {
  20799. border-radius: 5px;
  20800. }
  20801. .dialog_change >>> .el-dialog__header {
  20802. background: #f2f2f2;
  20803. text-align: center;
  20804. }
  20805. .dialog_change >>> .el-dialog__title {
  20806. line-height: 5px;
  20807. }
  20808. .dialog_change >>> .el-dialog__body {
  20809. background: #fff;
  20810. padding: 10px 20px;
  20811. }
  20812. .score_box {
  20813. display: flex;
  20814. align-items: center;
  20815. margin-bottom: 18px;
  20816. margin-top: 20px;
  20817. }
  20818. .up_photo {
  20819. width: 120px;
  20820. cursor: pointer;
  20821. margin-top: 10px;
  20822. }
  20823. .up_photo2 {
  20824. width: 180px;
  20825. box-sizing: border-box;
  20826. min-width: 180px;
  20827. height: 180px;
  20828. max-height: 180px;
  20829. min-height: 180px;
  20830. cursor: pointer;
  20831. display: flex;
  20832. flex-direction: column;
  20833. align-items: center;
  20834. justify-content: center;
  20835. background: rgb(242, 246, 255);
  20836. /* padding: 25px; */
  20837. margin-bottom: 10px;
  20838. }
  20839. .up_photo2 img {
  20840. width: 50%;
  20841. height: auto;
  20842. }
  20843. .up_photo2 span {
  20844. color: #898989;
  20845. }
  20846. .plworkBox {
  20847. display: flex;
  20848. align-items: center;
  20849. margin-top: 10px;
  20850. flex-wrap: wrap;
  20851. }
  20852. .upload_send {
  20853. margin: 30px auto 30px;
  20854. width: 60%;
  20855. background: #3681fc;
  20856. text-align: center;
  20857. height: 35px;
  20858. line-height: 35px;
  20859. color: #fff;
  20860. border-radius: 5px;
  20861. cursor: pointer;
  20862. }
  20863. .marginT {
  20864. margin-top: 20px;
  20865. }
  20866. .cd_content_steps {
  20867. display: flex;
  20868. width: 90%;
  20869. justify-content: space-around;
  20870. border-top: 1px solid #eeeeee;
  20871. }
  20872. .cd_steps_box {
  20873. display: flex;
  20874. justify-content: center;
  20875. align-items: center;
  20876. flex-direction: column;
  20877. cursor: pointer;
  20878. }
  20879. .first {
  20880. display: flex;
  20881. align-items: center;
  20882. margin: 15px 0 20px 0;
  20883. font-size: 20px;
  20884. }
  20885. .first > div:nth-child(2) {
  20886. font-size: 16px !important;
  20887. padding-left: 10px;
  20888. line-height: 26px;
  20889. box-sizing: border-box;
  20890. }
  20891. .blue_box_one {
  20892. text-align: center;
  20893. color: #fff;
  20894. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20895. border-radius: 7px;
  20896. margin: 10px;
  20897. cursor: pointer;
  20898. width: 95%;
  20899. height: 45px;
  20900. display: flex;
  20901. flex-direction: row;
  20902. justify-content: flex-start;
  20903. align-items: center;
  20904. }
  20905. .blue_box_one > div:nth-child(1) {
  20906. line-height: 30px;
  20907. margin: 0 5px 0 10px;
  20908. width: 30%;
  20909. min-width: 70px;
  20910. border-radius: 4px;
  20911. }
  20912. .blue_box_one > div:nth-child(2) {
  20913. white-space: nowrap;
  20914. text-overflow: ellipsis;
  20915. overflow: hidden;
  20916. word-break: break-all;
  20917. width: 70%;
  20918. text-align: left;
  20919. margin-right: 10px;
  20920. max-width: calc(100% - 85px);
  20921. }
  20922. .blue_box_one > div:nth-child(2):hover {
  20923. overflow: hidden;
  20924. text-overflow: ellipsis;
  20925. white-space: nowrap;
  20926. cursor: pointer;
  20927. }
  20928. .upFile {
  20929. margin: 0 auto;
  20930. width: 120px;
  20931. background: #3681fc;
  20932. color: #fff;
  20933. height: 30px;
  20934. text-align: center;
  20935. line-height: 30px;
  20936. border-radius: 5px;
  20937. font-size: 14px;
  20938. cursor: pointer;
  20939. }
  20940. .courseTitle {
  20941. width: 85%;
  20942. margin: 10px auto 26px auto;
  20943. display: flex;
  20944. flex-direction: row;
  20945. align-items: center;
  20946. justify-content: space-between;
  20947. text-align: center;
  20948. }
  20949. .courseTitle .ctitle {
  20950. font-size: 20px;
  20951. font-weight: bold;
  20952. color: #0e1e33;
  20953. white-space: nowrap;
  20954. overflow: hidden;
  20955. text-overflow: ellipsis;
  20956. }
  20957. .inviteBox {
  20958. font-size: 14px;
  20959. /* margin-top: 5px; */
  20960. color: #00000099;
  20961. text-align: center;
  20962. }
  20963. .courseTitle >>> .el-tooltip {
  20964. width: 100%;
  20965. white-space: nowrap;
  20966. overflow: hidden;
  20967. text-overflow: ellipsis;
  20968. word-break: break-word;
  20969. }
  20970. .ml {
  20971. margin-left: 20px;
  20972. color: #5b7dba;
  20973. border-left: 3px solid #5b7dba;
  20974. padding-left: 5px;
  20975. font-weight: bold;
  20976. }
  20977. .return {
  20978. width: 2rem;
  20979. height: 2rem;
  20980. cursor: pointer;
  20981. }
  20982. .return > img {
  20983. width: 100%;
  20984. height: 100%;
  20985. }
  20986. .returnBtn {
  20987. width: 86px;
  20988. height: 36px;
  20989. background: #3681fc;
  20990. border-radius: 4px;
  20991. color: #fff;
  20992. text-align: center;
  20993. line-height: 36px;
  20994. margin-right: 20px;
  20995. cursor: pointer;
  20996. font-size: 14px;
  20997. font-weight: 400;
  20998. display: flex;
  20999. flex-direction: row;
  21000. flex-wrap: nowrap;
  21001. align-items: center;
  21002. justify-content: center;
  21003. }
  21004. .reBtnIcon,
  21005. .commentIcon,
  21006. .vedioIcon,
  21007. .vedioIcon1 {
  21008. /* width: 36px; */
  21009. height: 36px;
  21010. border-radius: 4px;
  21011. position: relative;
  21012. /* background: #e0eafb; */
  21013. background: #0061ff;
  21014. cursor: pointer;
  21015. margin-right: 12px;
  21016. display: flex;
  21017. align-items: center;
  21018. padding: 0 10px;
  21019. box-sizing: border-box;
  21020. font-size: 14px;
  21021. color: #fff;
  21022. }
  21023. .reBtnIcon::before,
  21024. .commentIcon::before,
  21025. .vedioIcon::before,
  21026. .vedioIcon1::before {
  21027. content: "";
  21028. display: block;
  21029. background-size: 100% 100%;
  21030. background-repeat: no-repeat;
  21031. width: 20px;
  21032. height: 20px;
  21033. margin-right: 5px;
  21034. /* position: absolute; */
  21035. /* top: 8px;
  21036. left: 8px; */
  21037. }
  21038. .vedioIcon1 {
  21039. background: #f63564;
  21040. }
  21041. .reBtnIcon::before {
  21042. background-image: url("../../assets/icon/newIcons/refresh.png");
  21043. }
  21044. .commentIcon::before {
  21045. background-image: url("../../assets/icon/newIcons/comment.png");
  21046. }
  21047. .vedioIcon::before {
  21048. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21049. }
  21050. .vedioIcon1::before {
  21051. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21052. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21053. }
  21054. .tool {
  21055. display: flex;
  21056. flex-direction: column;
  21057. flex-wrap: nowrap;
  21058. width: 13%;
  21059. margin: 0 30px;
  21060. align-items: center;
  21061. position: relative;
  21062. padding: 10px 25px;
  21063. cursor: pointer;
  21064. }
  21065. .whiteBIcon {
  21066. width: 150px;
  21067. }
  21068. .whiteBIcon > img {
  21069. width: 100%;
  21070. height: 100%;
  21071. }
  21072. .mask {
  21073. background-color: rgba(0, 0, 0, 0);
  21074. position: fixed;
  21075. top: 0;
  21076. left: 0;
  21077. width: 100%;
  21078. height: 100%;
  21079. z-index: 20000;
  21080. display: flex;
  21081. align-items: center;
  21082. justify-content: center;
  21083. }
  21084. .progressBox {
  21085. width: 500px;
  21086. height: 180px;
  21087. background: #fff;
  21088. border-radius: 10px;
  21089. box-shadow: 0 0 6px 1px #bfbfbf;
  21090. display: flex;
  21091. align-items: center;
  21092. justify-content: center;
  21093. flex-direction: column;
  21094. position: relative;
  21095. color: #6c6c6c;
  21096. }
  21097. .progressBox >>> .el-progress-bar__outer {
  21098. background-color: #d1dfff !important;
  21099. }
  21100. .progressBox .lbox {
  21101. height: 50px;
  21102. font-size: 19px;
  21103. display: flex;
  21104. align-items: center;
  21105. color: #747474;
  21106. }
  21107. .progressBox .lbox img {
  21108. width: 40px;
  21109. margin-right: 20px;
  21110. }
  21111. .closeCss {
  21112. position: absolute;
  21113. top: 8px;
  21114. right: 8px;
  21115. cursor: pointer;
  21116. width: 20px;
  21117. height: 20px;
  21118. }
  21119. .closeCss > img {
  21120. width: 100%;
  21121. height: 100%;
  21122. }
  21123. .uploadVedio {
  21124. display: flex;
  21125. flex-direction: column;
  21126. flex-wrap: nowrap;
  21127. justify-content: center;
  21128. align-items: center;
  21129. margin: 0 15px 10px 0;
  21130. }
  21131. .uploadVedio > img {
  21132. width: 30px;
  21133. height: 30px;
  21134. }
  21135. .uploadVedio > span {
  21136. white-space: nowrap;
  21137. overflow: hidden;
  21138. text-overflow: ellipsis;
  21139. width: 75px;
  21140. margin-top: 7px;
  21141. }
  21142. .picName {
  21143. white-space: nowrap;
  21144. overflow: hidden;
  21145. text-overflow: ellipsis;
  21146. width: 75px;
  21147. margin-top: 7px;
  21148. }
  21149. .new_top {
  21150. display: flex;
  21151. background: #fff;
  21152. flex-direction: row;
  21153. justify-content: flex-start;
  21154. align-items: center;
  21155. height: 60px;
  21156. position: fixed;
  21157. top: 20px;
  21158. left: 22%;
  21159. width: 77%;
  21160. z-index: 999;
  21161. border-radius: 12px 12px 0 0;
  21162. border-bottom: 1px solid #cad1dc;
  21163. padding: 10px 0;
  21164. }
  21165. .new_topFixed {
  21166. width: 100%;
  21167. height: 40px;
  21168. position: fixed;
  21169. top: 0px;
  21170. display: block;
  21171. background: #f2f2f2;
  21172. z-index: 998;
  21173. }
  21174. .before {
  21175. position: absolute;
  21176. background: #c3dad4;
  21177. width: 6px;
  21178. height: 100%;
  21179. }
  21180. .courseIndex {
  21181. display: flex;
  21182. flex-direction: row;
  21183. align-items: center;
  21184. width: calc(100% - 745px);
  21185. }
  21186. .courseIndex > div:nth-child(1) {
  21187. margin: 0 0 0 10px;
  21188. font-size: 20px;
  21189. min-width: 100px;
  21190. font-weight: bold;
  21191. border-left: 4px solid #3363b9;
  21192. height: 32px;
  21193. text-align: center;
  21194. line-height: 35px;
  21195. }
  21196. .courseIndex > div:nth-child(2) {
  21197. font-size: 20px;
  21198. /* width: 300px; */
  21199. max-width: calc(100% - 105px);
  21200. white-space: nowrap;
  21201. overflow: hidden;
  21202. text-overflow: ellipsis;
  21203. }
  21204. .courseIndex > div:nth-child(3) {
  21205. border-bottom: 1px solid #d7d7d7;
  21206. padding-bottom: 5px;
  21207. background: #3681fc;
  21208. width: 55px;
  21209. min-width: 55px;
  21210. border-radius: 5px;
  21211. color: #fff;
  21212. text-align: center;
  21213. height: 20px;
  21214. line-height: 26px;
  21215. font-size: 14px;
  21216. margin: 0 0 0 10px;
  21217. }
  21218. .course_text {
  21219. padding: 20px 0 0 15px;
  21220. text-indent: 30px;
  21221. width: 80%;
  21222. min-height: 20px;
  21223. }
  21224. .vedioList {
  21225. background: #f2f2f2;
  21226. border: 1px solid #ececec;
  21227. /* width: 38.8%; */
  21228. /* width: 300px; */
  21229. width: 100%;
  21230. height: 445px;
  21231. border-radius: 10px;
  21232. overflow: hidden;
  21233. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21234. }
  21235. .vedioNav {
  21236. margin: 10px 0 0 15px;
  21237. border-bottom: 1px solid #d7d7d7;
  21238. padding-bottom: 5px;
  21239. background: #3681fc;
  21240. width: 55px;
  21241. min-width: 55px;
  21242. border-radius: 5px;
  21243. color: #fff;
  21244. text-align: center;
  21245. height: 20px;
  21246. line-height: 26px;
  21247. font-size: 14px;
  21248. }
  21249. .queTop {
  21250. display: flex;
  21251. padding: 20px 0 20px 30px;
  21252. width: 100%;
  21253. flex-direction: row;
  21254. justify-content: flex-start;
  21255. align-items: center;
  21256. box-sizing: border-box;
  21257. }
  21258. .queTopTitle {
  21259. display: flex;
  21260. flex-direction: row;
  21261. flex-wrap: nowrap;
  21262. align-items: center;
  21263. font-weight: bold;
  21264. font-size: 20px;
  21265. color: rgb(14, 30, 51);
  21266. }
  21267. .queTopTitle::before {
  21268. content: "";
  21269. width: 2px;
  21270. height: 22px;
  21271. background: #3681fc;
  21272. border-radius: 3px;
  21273. display: block;
  21274. margin: 2px 6px 0 0;
  21275. }
  21276. .queTopRight {
  21277. display: flex;
  21278. flex-direction: row;
  21279. flex-wrap: nowrap;
  21280. align-items: center;
  21281. }
  21282. .queTopClose {
  21283. margin-right: 20px;
  21284. cursor: pointer;
  21285. position: relative;
  21286. display: flex;
  21287. }
  21288. .closeImg,
  21289. .openImg {
  21290. width: 25px;
  21291. height: 25px;
  21292. position: absolute;
  21293. left: -20px;
  21294. top: -1px;
  21295. }
  21296. .closeImg > img,
  21297. .openImg > img {
  21298. width: 100%;
  21299. height: 100%;
  21300. }
  21301. .question {
  21302. width: 40px;
  21303. margin-right: 10px;
  21304. margin-top: 7px;
  21305. }
  21306. .queTitle {
  21307. margin-left: 5px;
  21308. font-size: 25px;
  21309. display: flex;
  21310. align-items: center;
  21311. }
  21312. .addEditor {
  21313. width: 100px;
  21314. height: 30px;
  21315. background: #42cda6;
  21316. color: #fff;
  21317. border-radius: 5px;
  21318. text-align: center;
  21319. line-height: 30px;
  21320. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21321. cursor: pointer;
  21322. }
  21323. /* .vedioName {
  21324. cursor: pointer;
  21325. margin: 0px 0px 10px 5px;
  21326. white-space: nowrap;
  21327. overflow: hidden;
  21328. text-overflow: ellipsis;
  21329. width: 100%;
  21330. } */
  21331. .vedioTime {
  21332. width: 35px;
  21333. position: absolute;
  21334. color: #fff;
  21335. bottom: 0px;
  21336. right: 0px;
  21337. text-align: center;
  21338. background: #46411f;
  21339. height: 20px;
  21340. font-size: 14px;
  21341. line-height: 20px;
  21342. }
  21343. .homework {
  21344. width: 200px;
  21345. display: flex;
  21346. flex-direction: column;
  21347. flex-wrap: nowrap;
  21348. align-items: center;
  21349. cursor: pointer;
  21350. }
  21351. .homebox {
  21352. display: flex;
  21353. flex-wrap: wrap;
  21354. flex-direction: row;
  21355. justify-content: flex-start;
  21356. align-items: center;
  21357. padding: 15px 0;
  21358. }
  21359. .isChooseActive {
  21360. color: #3681fc !important;
  21361. font-weight: bold !important;
  21362. }
  21363. .chooseWho {
  21364. display: flex;
  21365. width: 100%;
  21366. flex-direction: row;
  21367. flex-wrap: nowrap;
  21368. justify-content: flex-start;
  21369. padding-bottom: 10px;
  21370. }
  21371. .chooseWho > div {
  21372. cursor: pointer;
  21373. padding-bottom: 10px;
  21374. margin: 0 30px 0 0;
  21375. font-weight: 400;
  21376. color: #0e1e33;
  21377. }
  21378. .addPoint > div > img {
  21379. cursor: pointer;
  21380. width: 85px;
  21381. border-radius: 15px;
  21382. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21383. }
  21384. .addPoint > div {
  21385. display: flex;
  21386. flex-direction: column;
  21387. flex-wrap: nowrap;
  21388. align-items: center;
  21389. }
  21390. .isBorder > div {
  21391. margin: 0 0 10px 0;
  21392. align-items: flex-start !important;
  21393. }
  21394. .noiframeBox {
  21395. display: flex;
  21396. flex-wrap: wrap;
  21397. }
  21398. .iframeBox iframe {
  21399. width: 100%;
  21400. height: 800px;
  21401. border: none;
  21402. margin-bottom: 20px;
  21403. border: 1px solid #ccc;
  21404. }
  21405. .upload_toolBtn {
  21406. background: #3681fc;
  21407. color: #fff;
  21408. width: 110px;
  21409. text-align: center;
  21410. height: 35px;
  21411. line-height: 35px;
  21412. font-size: 14px;
  21413. border-radius: 5px;
  21414. cursor: pointer;
  21415. position: absolute;
  21416. right: 10px;
  21417. bottom: 0;
  21418. }
  21419. .binfo_input,
  21420. .pj {
  21421. font: inherit;
  21422. color: currentColor;
  21423. width: 100%;
  21424. margin: 0;
  21425. padding: 15px 14px;
  21426. display: block;
  21427. min-width: 0;
  21428. outline: none;
  21429. box-sizing: content-box;
  21430. background: none;
  21431. -webkit-tap-highlight-color: transparent;
  21432. border: 1px solid rgba(0, 0, 0, 0.23);
  21433. border-radius: 4px;
  21434. box-sizing: border-box;
  21435. resize: none;
  21436. }
  21437. .binfo_input:focus-visible {
  21438. border: 1px solid rgba(61, 103, 188);
  21439. }
  21440. .dialog_diy >>> .el-dialog__header,
  21441. .dialog_diy1 >>> .el-dialog__header {
  21442. background: #454545 !important;
  21443. padding: 15px 20px;
  21444. }
  21445. .dialog_diy >>> .el-dialog__title,
  21446. .dialog_diy1 >>> .el-dialog__title {
  21447. color: #fff;
  21448. }
  21449. .dialog_diy >>> .el-dialog__headerbtn,
  21450. .dialog_diy1 >>> .el-dialog__headerbtn {
  21451. top: 19px;
  21452. }
  21453. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21454. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21455. color: #fff;
  21456. }
  21457. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21458. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21459. color: #fff;
  21460. }
  21461. .dialog_diy1 >>> .el-dialog__body {
  21462. padding: 0;
  21463. }
  21464. .dialog_diy >>> .el-dialog__body,
  21465. .dialog_diy >>> .el-dialog__footer,
  21466. .dialog_diy1 >>> .el-dialog__footer {
  21467. background: #fafafa;
  21468. }
  21469. .a_addBox {
  21470. padding: 0 0 0 15px;
  21471. }
  21472. .a_add_box {
  21473. padding: 10px;
  21474. background: #fff;
  21475. margin-bottom: 10px;
  21476. border-radius: 5px;
  21477. box-shadow: 0 0 5px 0 #d5d5d5;
  21478. }
  21479. .a_add_head {
  21480. display: flex;
  21481. align-items: flex-start;
  21482. /* justify-content: space-between; */
  21483. flex-direction: column;
  21484. /* flex-direction: row; */
  21485. margin: 10px 0 20px 0;
  21486. font-size: 18px;
  21487. width: 100%;
  21488. }
  21489. .askIndex {
  21490. background: #3681fc;
  21491. border-radius: 50%;
  21492. color: #fff;
  21493. width: 25px;
  21494. height: 25px;
  21495. min-width: 25px;
  21496. min-height: 25px;
  21497. text-align: center;
  21498. line-height: 25px;
  21499. margin-right: 5px;
  21500. }
  21501. .a_add_head .a_add_head_input {
  21502. width: 300px;
  21503. }
  21504. .a_add_head .a_add_head_div {
  21505. display: flex;
  21506. align-items: center;
  21507. justify-content: space-between;
  21508. }
  21509. .a_add_body {
  21510. display: flex;
  21511. align-items: center;
  21512. }
  21513. .a_add_input {
  21514. display: flex;
  21515. align-items: center;
  21516. flex-wrap: wrap;
  21517. width: 100%;
  21518. }
  21519. .a_add_input >>> .el-radio-group,
  21520. .a_add_input >>> .el-checkbox-group {
  21521. width: 100%;
  21522. }
  21523. .a_add_input >>> .el-radio,
  21524. .a_add_input >>> .el-checkbox {
  21525. display: flex;
  21526. flex-direction: row;
  21527. flex-wrap: nowrap;
  21528. align-items: center;
  21529. padding: 15px 0;
  21530. }
  21531. .a_add_input >>> .el-radio:not(:last-child),
  21532. .a_add_input >>> .el-checkbox:not(:last-child) {
  21533. width: 100%;
  21534. border-bottom: 1px solid #efefef;
  21535. }
  21536. .redioStyle >>> .el-radio__label {
  21537. font-size: 18px;
  21538. }
  21539. .redioStyle >>> .el-radio__label > span,
  21540. .redioStyle >>> .el-checkbox__label > span {
  21541. word-break: break-all;
  21542. white-space: normal;
  21543. }
  21544. .redioStyle >>> .el-checkbox__label {
  21545. font-size: 18px;
  21546. }
  21547. .toolHeng2 {
  21548. width: 100%;
  21549. padding-left: 15px;
  21550. box-sizing: border-box;
  21551. }
  21552. .workNav {
  21553. font-size: 20px;
  21554. font-weight: bold;
  21555. color: #0e1e33;
  21556. display: flex;
  21557. flex-direction: row;
  21558. flex-wrap: nowrap;
  21559. align-items: center;
  21560. padding: 15px 0 15px 0;
  21561. }
  21562. .workNav::before {
  21563. content: "";
  21564. width: 2px;
  21565. height: 22px;
  21566. background: #3681fc;
  21567. border-radius: 3px;
  21568. display: block;
  21569. margin: 2px 6px 0 0;
  21570. }
  21571. .toolHeng {
  21572. display: flex;
  21573. flex-direction: row;
  21574. flex-wrap: wrap;
  21575. justify-content: flex-start;
  21576. align-items: center;
  21577. width: 100%;
  21578. }
  21579. .toolHeng > div {
  21580. padding-left: 20px;
  21581. }
  21582. .isWidth {
  21583. width: 20%;
  21584. }
  21585. .textTitle {
  21586. display: flex;
  21587. flex-direction: row;
  21588. flex-wrap: nowrap;
  21589. align-items: center;
  21590. width: 95%;
  21591. }
  21592. .textTitle >>> .el-form-item__label {
  21593. font-size: 22px;
  21594. color: #918f8f;
  21595. width: 100px;
  21596. }
  21597. .textTitle >>> .el-form-item__content {
  21598. width: calc(100% - 100px);
  21599. }
  21600. .textCss >>> .el-dialog {
  21601. width: 800px !important;
  21602. height: 400px;
  21603. background: #fafafa;
  21604. }
  21605. .textCss >>> .el-dialog__body {
  21606. margin: 55px 8% 0 8%;
  21607. padding: 0 !important;
  21608. }
  21609. .textCss >>> .el-dialog__footer {
  21610. padding-top: 38px;
  21611. }
  21612. .toolsCss >>> .el-dialog__body {
  21613. padding: 20px;
  21614. }
  21615. .lineCss >>> .el-dialog__body {
  21616. display: flex;
  21617. flex-direction: row;
  21618. align-items: center;
  21619. justify-content: center;
  21620. }
  21621. .newNav {
  21622. display: flex;
  21623. flex-direction: row;
  21624. align-items: baseline;
  21625. justify-content: flex-start;
  21626. }
  21627. .navListItem {
  21628. width: calc(100% - 20px);
  21629. height: 50px;
  21630. margin: 0px auto 10px;
  21631. display: flex;
  21632. flex-direction: row;
  21633. flex-wrap: nowrap;
  21634. align-items: center;
  21635. justify-content: space-between;
  21636. background: #f0f4fa;
  21637. border-radius: 6px 6px 6px 6px;
  21638. }
  21639. .navText {
  21640. cursor: pointer;
  21641. white-space: nowrap;
  21642. overflow: hidden;
  21643. text-overflow: ellipsis;
  21644. width: 220px;
  21645. padding: 0 10px;
  21646. font-weight: 400;
  21647. color: #0e1e33;
  21648. }
  21649. .downIcon {
  21650. width: 20px;
  21651. min-width: 20px;
  21652. height: 20px;
  21653. margin-right: 15px;
  21654. cursor: pointer;
  21655. }
  21656. .downIcon > img {
  21657. width: 100%;
  21658. height: 100%;
  21659. }
  21660. .noVedio {
  21661. display: flex;
  21662. flex-direction: row;
  21663. justify-content: center;
  21664. align-content: center;
  21665. }
  21666. .noNavText {
  21667. cursor: pointer;
  21668. margin: 0px 0px 10px 5px;
  21669. width: 112px;
  21670. }
  21671. .listNoVedio {
  21672. margin: 0 0 0 30px;
  21673. width: 97%;
  21674. }
  21675. .video-player >>> .video-js {
  21676. height: 100%;
  21677. }
  21678. .hangVedioList {
  21679. width: 90% !important;
  21680. height: 150px !important;
  21681. margin: 20px 0 0 30px;
  21682. }
  21683. .hangVedio {
  21684. width: 100%;
  21685. height: 170px !important;
  21686. align-items: flex-start !important;
  21687. }
  21688. .hangHand {
  21689. height: 150px !important;
  21690. }
  21691. .twoChild {
  21692. width: 95%;
  21693. margin: 10px;
  21694. border-radius: 5px;
  21695. background: #f2f2f2;
  21696. display: flex;
  21697. flex-direction: column;
  21698. flex-wrap: nowrap;
  21699. justify-content: flex-start;
  21700. align-items: flex-start;
  21701. transition: all 0.5s;
  21702. overflow: hidden;
  21703. height: 0;
  21704. background: #e7f3ff;
  21705. }
  21706. .twoChild > div:nth-child(1) {
  21707. margin-top: 5px;
  21708. }
  21709. .navChild {
  21710. width: 100%;
  21711. cursor: pointer;
  21712. margin-bottom: 10px;
  21713. position: relative;
  21714. }
  21715. .navChild img {
  21716. position: absolute;
  21717. right: 11px;
  21718. width: 15px;
  21719. top: 50%;
  21720. transform: translateY(-50%);
  21721. }
  21722. .navActive,
  21723. .toolActive {
  21724. height: auto !important;
  21725. overflow: auto !important;
  21726. /* padding-bottom: 16px; */
  21727. }
  21728. .toolActive {
  21729. padding: 0;
  21730. }
  21731. .navTask {
  21732. display: flex;
  21733. flex-direction: row;
  21734. flex-wrap: nowrap;
  21735. align-items: center;
  21736. align-content: flex-start;
  21737. height: 40px;
  21738. justify-content: flex-start;
  21739. padding: 0 10px;
  21740. width: 100%;
  21741. box-sizing: border-box;
  21742. }
  21743. .navTaskname {
  21744. white-space: nowrap;
  21745. text-overflow: ellipsis;
  21746. overflow: hidden;
  21747. word-break: break-all;
  21748. padding-left: 5px;
  21749. }
  21750. .openTaskActive {
  21751. /* background-color: #e0eafb !important;
  21752. color: #0061ff; */
  21753. color:#fff;
  21754. background: rgb(55, 129, 252) !important;
  21755. }
  21756. .iframeName {
  21757. margin: 5px 0;
  21758. border-left: 4px solid #41c4a4;
  21759. padding-left: 4px;
  21760. }
  21761. .toolTitle {
  21762. margin: 0px 0px 20px;
  21763. font-size: 20px;
  21764. font-weight: 500;
  21765. border-left: 4px solid #41c4a4;
  21766. padding-left: 4px;
  21767. }
  21768. .cru_selectBox {
  21769. overflow: auto;
  21770. width: 95%;
  21771. margin: 17px auto 0;
  21772. height: calc(100% - 40px - 21px - 20px - 17px);
  21773. background: #fff;
  21774. border-radius: 8px;
  21775. }
  21776. .cru_selectBox::-webkit-scrollbar,
  21777. .study_top::-webkit-scrollbar,
  21778. .textContent::-webkit-scrollbar {
  21779. /*滚动条整体样式*/
  21780. width: 6px;
  21781. /*高宽分别对应横竖滚动条的尺寸*/
  21782. height: 6px;
  21783. }
  21784. /*定义滚动条轨道 内阴影+圆角*/
  21785. .cru_selectBox::-webkit-scrollbar-track,
  21786. .study_top::-webkit-scrollbar-track,
  21787. .textContent::-webkit-scrollbar {
  21788. border-radius: 10px;
  21789. background-color: #b8bdc9;
  21790. }
  21791. /*定义滑块 内阴影+圆角*/
  21792. .cru_selectBox::-webkit-scrollbar-thumb,
  21793. .study_top::-webkit-scrollbar-thumb,
  21794. .textContent::-webkit-scrollbar-thumb {
  21795. border-radius: 10px;
  21796. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21797. background-color: #2c5ab3;
  21798. }
  21799. .vedioBox {
  21800. border-radius: 0 0 20px 20px;
  21801. background: #fff;
  21802. overflow: auto;
  21803. }
  21804. .taskBox {
  21805. width: 98%;
  21806. background: #f0f4fa;
  21807. margin: 10px auto;
  21808. padding: 0 10px;
  21809. border-radius: 4px;
  21810. box-sizing: border-box;
  21811. }
  21812. .vedioTaskBox {
  21813. width: 100%;
  21814. display: flex;
  21815. flex-direction: row;
  21816. flex-wrap: nowrap;
  21817. align-items: flex-start;
  21818. position: relative;
  21819. }
  21820. .toolBox {
  21821. margin: 15px 0 0 25px;
  21822. display: flex;
  21823. position: relative;
  21824. padding: 18px 20px;
  21825. border-top-left-radius: 5px;
  21826. border-top-right-radius: 5px;
  21827. width: 90%;
  21828. }
  21829. .btnAll {
  21830. position: absolute;
  21831. right: 0;
  21832. display: flex;
  21833. flex-direction: row;
  21834. flex-wrap: nowrap;
  21835. align-items: center;
  21836. }
  21837. .btnLeft,
  21838. .btnRight {
  21839. display: flex;
  21840. flex-direction: row;
  21841. flex-wrap: nowrap;
  21842. align-items: center;
  21843. padding: 5px 0;
  21844. }
  21845. .btnLeft {
  21846. border-right: 1px solid #cad1dc;
  21847. }
  21848. .btnLeft > .custom-tooltip {
  21849. background: #3681fc;
  21850. color: #fff;
  21851. }
  21852. .last:hover {
  21853. background: #3383fa !important;
  21854. color: #fff;
  21855. border: 1px solid #3383fa !important;
  21856. }
  21857. .last,
  21858. .returnBtn1 {
  21859. width: 90px;
  21860. height: 36px;
  21861. background: #ffffff;
  21862. border-radius: 4px;
  21863. border: 1px solid #0061ff;
  21864. color: #0061ff;
  21865. cursor: pointer;
  21866. display: flex;
  21867. flex-direction: row;
  21868. flex-wrap: nowrap;
  21869. align-items: center;
  21870. justify-content: center;
  21871. margin-left: 12px;
  21872. }
  21873. .returnBtn1 {
  21874. background: #f0f4fa;
  21875. border-radius: 4px;
  21876. border: 1px solid #cad1dc;
  21877. margin: 0 12px;
  21878. }
  21879. .lastImg {
  21880. min-width: 15px;
  21881. width: 15px;
  21882. height: 15px;
  21883. display: flex;
  21884. }
  21885. .lastText {
  21886. padding: 0 5px 0 5px;
  21887. box-sizing: border-box;
  21888. font-size: 14px;
  21889. }
  21890. .lastImg > img {
  21891. width: 100%;
  21892. height: 100%;
  21893. }
  21894. /* .vedioTimeBox {
  21895. display: flex;
  21896. flex-direction: row;
  21897. align-items: center;
  21898. flex-wrap: nowrap;
  21899. position: relative;
  21900. } */
  21901. .navBox {
  21902. background: #fff;
  21903. height: calc(100% - 40px);
  21904. overflow-y: auto;
  21905. overflow-x: hidden;
  21906. }
  21907. .worksBox {
  21908. margin: 0 0 10px 25px;
  21909. border-bottom: 1px solid #eeeeee;
  21910. padding: 18px 20px;
  21911. border-radius: 4px;
  21912. width: 90%;
  21913. }
  21914. .worksBTitle {
  21915. font-size: 20px;
  21916. padding-bottom: 15px;
  21917. border-bottom: 1px solid #eeeeee;
  21918. display: flex;
  21919. align-items: center;
  21920. }
  21921. .greenBox {
  21922. width: 5px;
  21923. height: 30px;
  21924. background: #63b6fa;
  21925. margin-right: 5px;
  21926. }
  21927. .worksDetailBox {
  21928. display: flex;
  21929. width: 100%;
  21930. flex-direction: row;
  21931. flex-wrap: wrap;
  21932. align-items: flex-end;
  21933. justify-content: flex-start;
  21934. padding: 15px 5px;
  21935. box-sizing: border-box;
  21936. }
  21937. .works {
  21938. display: flex;
  21939. flex-direction: column;
  21940. flex-wrap: nowrap;
  21941. align-items: flex-start;
  21942. justify-content: flex-start;
  21943. align-content: center;
  21944. max-width: 240px;
  21945. width: calc(100% / 3 - 10px);
  21946. height: auto;
  21947. margin-right: 10px;
  21948. margin-bottom: 10px;
  21949. overflow: hidden;
  21950. height: 140px;
  21951. box-shadow: 0 0 6px 1px #dfdada;
  21952. border-radius: 15px;
  21953. }
  21954. .workImg {
  21955. width: 100%;
  21956. /* height: calc(100% - 40px); */
  21957. height: 105px;
  21958. position: relative;
  21959. }
  21960. .workImg > img {
  21961. width: 100%;
  21962. height: 100%;
  21963. object-fit: contain;
  21964. cursor: pointer;
  21965. }
  21966. .worksName {
  21967. height: 40px;
  21968. line-height: 40px;
  21969. display: flex;
  21970. width: 100%;
  21971. flex-direction: row;
  21972. flex-wrap: nowrap;
  21973. justify-content: space-between;
  21974. align-items: center;
  21975. margin: 0 0 0 10px;
  21976. }
  21977. .worksName > div:nth-child(1) {
  21978. width: 110px;
  21979. white-space: nowrap;
  21980. overflow: hidden;
  21981. text-overflow: ellipsis;
  21982. }
  21983. .worksName > div:nth-child(2) {
  21984. color: #b7b4b5;
  21985. }
  21986. .noWorksS {
  21987. padding: 15px 0;
  21988. display: flex;
  21989. flex-direction: row;
  21990. flex-wrap: wrap;
  21991. align-items: center;
  21992. justify-content: flex-start;
  21993. }
  21994. .noWorksName,
  21995. .isWorksName,
  21996. .isWorksName2 {
  21997. background: #ddebf8;
  21998. color: #000;
  21999. width: 90px;
  22000. height: 25px;
  22001. text-align: center;
  22002. line-height: 25px;
  22003. border-radius: 4px;
  22004. margin: 10px 15px 10px 0;
  22005. white-space: nowrap;
  22006. overflow: hidden;
  22007. padding: 5px;
  22008. text-overflow: ellipsis;
  22009. cursor: pointer;
  22010. border: 1px solid #ddebf8;
  22011. }
  22012. .noWorksName {
  22013. background: #fff;
  22014. color: #0061ff;
  22015. border: 1px solid #0061ff;
  22016. }
  22017. .noWorksName > span{
  22018. max-width: 100%;
  22019. display: block;
  22020. overflow: hidden;
  22021. text-overflow: ellipsis;
  22022. white-space: nowrap;
  22023. }
  22024. .isWorksName2 {
  22025. width: 100px;
  22026. height: 40px;
  22027. line-height: 40px;
  22028. position: relative;
  22029. background: #dae6f9;
  22030. }
  22031. .isWorksName {
  22032. background: #e7ebf1 !important;
  22033. width: 100px;
  22034. height: 40px;
  22035. line-height: 40px;
  22036. position: relative;
  22037. color: #acb4bf;
  22038. border: 1px solid #cad1dc !important;
  22039. }
  22040. .isSelectName,
  22041. .noWorksName:hover {
  22042. background: #3383fa !important;
  22043. color: #fff !important;
  22044. border: 1px solid #3383fa !important;
  22045. }
  22046. .title {
  22047. background: #1e5cc9;
  22048. /* width: 98%; */
  22049. height: 45px;
  22050. color: #fff;
  22051. line-height: 45px;
  22052. padding-left: 20px;
  22053. box-sizing: border-box;
  22054. }
  22055. .textBox {
  22056. font-size: 20px;
  22057. width: 90%;
  22058. display: flex;
  22059. flex-direction: column;
  22060. align-items: center;
  22061. margin: 20px auto 0;
  22062. max-height: calc(100% - 75px);
  22063. overflow: auto;
  22064. }
  22065. .textContent {
  22066. font-size: 18px;
  22067. width: 95%;
  22068. max-width: 95%;
  22069. }
  22070. .answerBg {
  22071. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22072. background-size: 100% 100%;
  22073. width: 100%;
  22074. height: 100%;
  22075. color: #fff;
  22076. text-align: center;
  22077. display: flex;
  22078. flex-direction: column;
  22079. flex-wrap: nowrap;
  22080. align-items: center;
  22081. position: relative;
  22082. justify-content: center;
  22083. }
  22084. .answerBg > div:nth-child(1) {
  22085. /* font-size: 22px;
  22086. padding: 25px 0 10px; */
  22087. }
  22088. .answerContent {
  22089. width: 215px;
  22090. max-height: 60px;
  22091. word-break: break-all;
  22092. text-align: center;
  22093. /* white-space: nowrap; */
  22094. overflow: hidden;
  22095. text-overflow: ellipsis;
  22096. /* padding: 23px 0 0; */
  22097. -webkit-line-clamp: 3;
  22098. -webkit-box-orient: vertical;
  22099. display: -webkit-box;
  22100. font-size: 15px;
  22101. cursor: pointer;
  22102. }
  22103. .elist_input_box {
  22104. display: flex;
  22105. align-items: flex-start;
  22106. flex-wrap: nowrap;
  22107. padding: 10px 0 15px 30px;
  22108. flex-direction: column;
  22109. }
  22110. .elist_input {
  22111. /* width: 40%; */
  22112. width: 45%;
  22113. margin: 20px;
  22114. }
  22115. .elist_input .elist_input_box input {
  22116. font: inherit;
  22117. color: currentColor;
  22118. width: 200px;
  22119. padding: 8px 14px;
  22120. display: block;
  22121. min-width: 0;
  22122. outline: none;
  22123. border: 1px solid rgba(0, 0, 0, 0.23);
  22124. border-radius: 4px;
  22125. box-sizing: border-box;
  22126. background: #fff;
  22127. margin: 0 20px 0 0;
  22128. }
  22129. .elist_input .elist_input_box span {
  22130. height: 36px;
  22131. line-height: 36px;
  22132. color: rgb(82, 82, 82);
  22133. }
  22134. .elist_input .elist_input_box .remove {
  22135. height: 20px;
  22136. width: 20px;
  22137. background-size: 100% 100%;
  22138. background-position: unset;
  22139. margin-left: 5px;
  22140. }
  22141. .elist_input_box >>> .el-rate {
  22142. display: flex;
  22143. height: 36px;
  22144. align-items: center;
  22145. }
  22146. .elist_input_box .elist_inptu_text {
  22147. min-height: 50px;
  22148. /* width: 500px;
  22149. max-height: 150px; */
  22150. width: 100%;
  22151. line-height: 50px;
  22152. color: rgb(82, 82, 82);
  22153. overflow: auto;
  22154. text-indent: 5px;
  22155. background: #f7f6f9;
  22156. border-radius: 10px;
  22157. }
  22158. .elist_input_box .elist_inptu_text input {
  22159. width: 500px;
  22160. }
  22161. .elist_input_box >>> .el-rate__icon {
  22162. font-size: 24px;
  22163. }
  22164. .isClick {
  22165. background: #4d9def;
  22166. }
  22167. .bzBox {
  22168. display: flex;
  22169. flex-direction: row;
  22170. align-items: center;
  22171. }
  22172. .bzBox .yCss {
  22173. width: 7px;
  22174. height: 7px;
  22175. background: #fff;
  22176. margin: 0 16px 0 6px;
  22177. border-radius: 50%;
  22178. border: 5px solid #3681fc;
  22179. z-index: 99;
  22180. }
  22181. .bzBox > div:nth-child(2) {
  22182. font-size: 18px;
  22183. font-weight: bold;
  22184. color: #0e1e33;
  22185. }
  22186. .navTitile {
  22187. padding: 0 0px 0 15px;
  22188. font-size: 16px;
  22189. font-weight: bold;
  22190. color: #0e1e33;
  22191. height: 40px;
  22192. line-height: 40px;
  22193. }
  22194. .isTypeOne {
  22195. width: 240px;
  22196. height: 170px;
  22197. /* border: 1px solid #f8f8f8; */
  22198. border-radius: 10px;
  22199. box-shadow: 0 0 6px 1px #dfdada;
  22200. }
  22201. .e_add_top {
  22202. display: flex;
  22203. justify-content: space-between;
  22204. padding: 10px 20px;
  22205. border-radius: 3px;
  22206. background: #fff;
  22207. }
  22208. .e_add_title2 {
  22209. display: flex;
  22210. align-items: center;
  22211. }
  22212. .e_add_title2 span {
  22213. width: 40px;
  22214. }
  22215. .e_add_title {
  22216. display: flex;
  22217. align-items: center;
  22218. color: #b8b8b8;
  22219. font-size: 18px;
  22220. position: relative;
  22221. height: 40px;
  22222. }
  22223. .e_add_title span {
  22224. margin-right: 10px;
  22225. }
  22226. .e_add_title .el_input {
  22227. width: 300px;
  22228. }
  22229. .e_add_title >>> .el-input__inner {
  22230. width: 400px;
  22231. }
  22232. .e_add_btn {
  22233. }
  22234. .e_add_content {
  22235. display: flex;
  22236. width: 100%;
  22237. max-width: 650px;
  22238. height: 550px;
  22239. }
  22240. .e_add_list {
  22241. background: #fff;
  22242. height: 500px;
  22243. width: 210px;
  22244. position: relative;
  22245. margin: 15px 5px 0 0;
  22246. flex-shrink: 0;
  22247. display: flex;
  22248. flex-direction: column;
  22249. }
  22250. .e_add_list_title {
  22251. font-size: 20px;
  22252. width: 100%;
  22253. box-sizing: border-box;
  22254. padding: 15px 40px;
  22255. text-align: center;
  22256. border-bottom: 1px solid #eaeaea;
  22257. position: relative;
  22258. display: flex;
  22259. align-items: center;
  22260. justify-content: center;
  22261. height: 57px;
  22262. background: #f6f6f6;
  22263. }
  22264. .e_add_list_title span {
  22265. overflow: hidden;
  22266. white-space: nowrap;
  22267. text-overflow: ellipsis;
  22268. }
  22269. .e_add_list_title img {
  22270. position: absolute;
  22271. right: 15px;
  22272. width: 25px;
  22273. cursor: pointer;
  22274. top: 50%;
  22275. transform: translateY(-50%);
  22276. }
  22277. .e_add_list_body {
  22278. height: calc(100% - 187px);
  22279. overflow: auto;
  22280. }
  22281. .e_add_list_child {
  22282. width: 100%;
  22283. display: flex;
  22284. align-items: center;
  22285. justify-content: center;
  22286. position: relative;
  22287. box-sizing: border-box;
  22288. padding: 15px 40px;
  22289. text-align: center;
  22290. }
  22291. .e_add_list_child span {
  22292. overflow: hidden;
  22293. white-space: nowrap;
  22294. text-overflow: ellipsis;
  22295. cursor: pointer;
  22296. }
  22297. .e_add_list_child img {
  22298. position: absolute;
  22299. right: 10px;
  22300. width: 21px;
  22301. cursor: pointer;
  22302. top: 50%;
  22303. transform: translateY(-50%);
  22304. }
  22305. .e_add_list_child + .e_add_list_child {
  22306. border-top: 1px solid #eaeaea;
  22307. }
  22308. .e_add_list_child .active {
  22309. color: #409eff;
  22310. }
  22311. .e_add_list_btn {
  22312. position: absolute;
  22313. bottom: 0;
  22314. height: 50px;
  22315. background: rgb(120, 120, 254);
  22316. width: 100%;
  22317. color: #fff;
  22318. font-size: 16px;
  22319. text-align: center;
  22320. line-height: 50px;
  22321. cursor: pointer;
  22322. }
  22323. .e_add_list_detail {
  22324. position: absolute;
  22325. bottom: 0;
  22326. height: 130px;
  22327. background: rgb(120, 120, 254);
  22328. width: 100%;
  22329. color: #fff;
  22330. font-size: 16px;
  22331. display: flex;
  22332. align-items: center;
  22333. justify-content: center;
  22334. }
  22335. .e_add_list_detail textarea {
  22336. height: 90%;
  22337. width: 95%;
  22338. border: none;
  22339. resize: none;
  22340. outline: none;
  22341. padding: 5px;
  22342. box-sizing: border-box;
  22343. }
  22344. .e_add_list_pbox {
  22345. width: 100%;
  22346. max-width: 650px;
  22347. /* height: 600px; */
  22348. }
  22349. .e_add_list_pbox_title {
  22350. height: 50px;
  22351. background: #fff;
  22352. display: flex;
  22353. align-items: center;
  22354. width: 100%;
  22355. box-sizing: border-box;
  22356. padding: 0 20px;
  22357. }
  22358. .type_title {
  22359. font-size: 18px;
  22360. font-weight: 700;
  22361. }
  22362. .type_content {
  22363. font-size: 16px;
  22364. /* margin-left: 30px; */
  22365. }
  22366. .type_content span + span {
  22367. margin-left: 20px;
  22368. }
  22369. .type_content span {
  22370. cursor: pointer;
  22371. padding-bottom: 5px;
  22372. box-sizing: border-box;
  22373. }
  22374. .type_content .active {
  22375. color: #409eff;
  22376. border-bottom: 2px solid #409eff;
  22377. }
  22378. .e_add_list_pbox_content {
  22379. height: calc(100% - 50px);
  22380. display: flex;
  22381. align-items: center;
  22382. width: 100%;
  22383. background: #fff;
  22384. }
  22385. .evaCss {
  22386. display: flex;
  22387. flex-direction: row;
  22388. flex-wrap: nowrap;
  22389. align-items: flex-start;
  22390. padding: 0 0 20px;
  22391. }
  22392. .cru_line {
  22393. position: absolute;
  22394. bottom: 0px;
  22395. transition: all 0.5s;
  22396. left: 0px;
  22397. width: 125px;
  22398. margin-left: -25px;
  22399. }
  22400. .isNoMessage {
  22401. width: 20%;
  22402. margin: 25% auto 0;
  22403. }
  22404. .isNoMessage > img {
  22405. width: 100%;
  22406. height: 100%;
  22407. }
  22408. .fullStyle >>> .el-dialog__body {
  22409. height: 100% !important;
  22410. }
  22411. .fullStyle >>> .el-dialog,
  22412. .fullStyle {
  22413. width: 100% !important;
  22414. max-width: 100% !important;
  22415. height: 100% !important;
  22416. margin: 0 !important;
  22417. }
  22418. .full_diy >>> .el-dialog {
  22419. margin: 0 !important;
  22420. height: 100%;
  22421. padding: 4px;
  22422. }
  22423. .full_diy >>> .el-dialog__body {
  22424. height: calc(100% - 100px);
  22425. }
  22426. .full_diy2 >>> .el-dialog__body {
  22427. height: calc(100% - 50px);
  22428. padding: 0;
  22429. }
  22430. .switchCss {
  22431. /* width: 100%; */
  22432. display: flex;
  22433. flex-direction: row;
  22434. flex-wrap: nowrap;
  22435. align-items: center;
  22436. /* justify-content: center; */
  22437. }
  22438. .isClickNav {
  22439. /* color: #499eef; */
  22440. color: #000;
  22441. }
  22442. .commentImg {
  22443. width: 25px;
  22444. height: 25px;
  22445. cursor: pointer;
  22446. }
  22447. .commentImg > img {
  22448. width: 100%;
  22449. height: 100%;
  22450. }
  22451. .comment {
  22452. background: #f9f9f9;
  22453. border-radius: 0 0 4px 4px;
  22454. display: flex;
  22455. flex-direction: row;
  22456. flex-wrap: nowrap;
  22457. align-items: center;
  22458. justify-content: flex-end;
  22459. height: 35px;
  22460. }
  22461. .commentList {
  22462. display: flex;
  22463. flex-direction: row;
  22464. flex-wrap: nowrap;
  22465. align-items: center;
  22466. justify-content: center;
  22467. align-content: center;
  22468. /* margin-left: 15px; */
  22469. /* margin-left: 8px; */
  22470. }
  22471. .scoreImg {
  22472. width: 17px;
  22473. height: 17px;
  22474. }
  22475. .studentDetail {
  22476. display: flex;
  22477. flex-direction: row;
  22478. flex-wrap: nowrap;
  22479. /* align-items: center; */
  22480. align-items: flex-start;
  22481. }
  22482. .tx {
  22483. width: 50px;
  22484. }
  22485. .tx > img {
  22486. width: 100%;
  22487. height: 100%;
  22488. }
  22489. .nameAndTime {
  22490. display: flex;
  22491. flex-direction: column;
  22492. flex-wrap: nowrap;
  22493. align-items: flex-start;
  22494. margin-left: 10px;
  22495. }
  22496. .worksAnswer {
  22497. color: #4078dd;
  22498. margin: 10px 0;
  22499. font-size: 16px;
  22500. position: relative;
  22501. }
  22502. .worksAnswer > img {
  22503. width: 500px;
  22504. height: 300px;
  22505. object-fit: contain;
  22506. margin: 0 auto;
  22507. display: block;
  22508. }
  22509. .commentTop {
  22510. border-bottom: 1px solid #eaeaea;
  22511. padding-bottom: 10px;
  22512. }
  22513. .commentBox {
  22514. padding-top: 15px;
  22515. }
  22516. .pl {
  22517. font-size: 18px;
  22518. }
  22519. .plPerson {
  22520. width: 100%;
  22521. }
  22522. .plName {
  22523. display: flex;
  22524. flex-direction: row;
  22525. flex-wrap: nowrap;
  22526. align-items: baseline;
  22527. color: #78787a;
  22528. width: 100%;
  22529. }
  22530. .deleteComment {
  22531. cursor: pointer;
  22532. margin-left: auto;
  22533. color: #237ade;
  22534. }
  22535. .plContent {
  22536. margin-top: 5px;
  22537. }
  22538. .evalCss {
  22539. background: #fff;
  22540. font-size: 18px;
  22541. }
  22542. .nav {
  22543. color: #9d9d9d;
  22544. padding: 5px 0 15px 20px;
  22545. }
  22546. .middleBox {
  22547. padding: 5px 0 15px 20px;
  22548. }
  22549. .pfBox {
  22550. padding-bottom: 30px;
  22551. }
  22552. .nameAndrate {
  22553. display: flex;
  22554. flex-direction: row;
  22555. flex-wrap: nowrap;
  22556. align-items: center;
  22557. padding-bottom: 10px;
  22558. height: 30px;
  22559. line-height: 30px;
  22560. }
  22561. .nameAndrate > div {
  22562. margin-left: 10px;
  22563. color: #000;
  22564. height: 30px;
  22565. }
  22566. .nameAndrate >>> .el-rate__icon {
  22567. font-size: 28px !important;
  22568. }
  22569. .pfBox > div:nth-child(2) {
  22570. background: #f7f6f9;
  22571. width: 400px;
  22572. min-height: 45px;
  22573. border-radius: 10px;
  22574. font-size: 16px;
  22575. display: flex;
  22576. flex-wrap: wrap;
  22577. align-items: center;
  22578. padding: 10px 20px;
  22579. box-sizing: border-box;
  22580. color: #000;
  22581. }
  22582. .bz {
  22583. display: flex;
  22584. flex-direction: row;
  22585. flex-wrap: nowrap;
  22586. align-items: flex-start;
  22587. }
  22588. .bz > div {
  22589. padding: 0 10px;
  22590. }
  22591. .select_box2_title {
  22592. background: #fff;
  22593. border-radius: 5px;
  22594. padding: 15px 10px;
  22595. box-sizing: border-box;
  22596. margin-bottom: 10px;
  22597. display: flex;
  22598. flex-direction: row;
  22599. flex-wrap: nowrap;
  22600. align-items: center;
  22601. }
  22602. .select_box2_title > div:nth-child(2) {
  22603. margin-left: 10px;
  22604. color: #c4c4c4;
  22605. }
  22606. .select_box2_box {
  22607. display: flex;
  22608. height: 500px;
  22609. }
  22610. .select_box2_img {
  22611. width: calc(100% - 310px);
  22612. height: 100%;
  22613. overflow: auto;
  22614. background: #fff;
  22615. border-radius: 5px;
  22616. }
  22617. .select_box2_img img {
  22618. width: 100%;
  22619. }
  22620. .select_box2_answer {
  22621. background: #fff;
  22622. margin-left: 10px;
  22623. border-radius: 5px;
  22624. width: 300px;
  22625. overflow: auto;
  22626. height: 90%;
  22627. display: flex;
  22628. flex-direction: column;
  22629. align-items: flex-start;
  22630. padding-top: 10px;
  22631. box-sizing: border-box;
  22632. position: relative;
  22633. }
  22634. .select_answer_title {
  22635. padding: 0 0 15px 20px;
  22636. color: #c4c4c4;
  22637. }
  22638. .select_box2_answer_box {
  22639. margin: 0 0 10px 20px;
  22640. width: 85%;
  22641. display: flex;
  22642. flex-direction: row;
  22643. flex-wrap: nowrap;
  22644. align-items: center;
  22645. }
  22646. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22647. color: #000;
  22648. }
  22649. .upAnswerCss {
  22650. position: absolute;
  22651. bottom: 15px;
  22652. right: 15px;
  22653. }
  22654. .upAnswerCss >>> .el-button {
  22655. width: 95px;
  22656. height: 35px;
  22657. line-height: 35px;
  22658. padding: 0;
  22659. }
  22660. .rightWidthCss {
  22661. width: 60%;
  22662. display: flex;
  22663. flex-direction: row;
  22664. align-items: flex-start;
  22665. }
  22666. .rightAnswer {
  22667. display: flex;
  22668. flex-direction: row;
  22669. flex-wrap: nowrap;
  22670. align-items: center;
  22671. color: red;
  22672. margin-bottom: 31px;
  22673. }
  22674. .rightAnswerCss {
  22675. display: flex;
  22676. flex-direction: column;
  22677. flex-wrap: nowrap;
  22678. padding-top: 60px;
  22679. }
  22680. .blueCss {
  22681. color: #767de1;
  22682. margin-left: 10px;
  22683. }
  22684. .redCss {
  22685. color: red;
  22686. }
  22687. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22688. color: rgb(0 123 255) !important;
  22689. }
  22690. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22691. color: rgb(0 123 255) !important;
  22692. }
  22693. .zuoyeYulan {
  22694. padding-top: 0;
  22695. font-size: 18px;
  22696. display: flex;
  22697. align-items: flex-end;
  22698. }
  22699. .buttonA {
  22700. margin-left: 10px;
  22701. padding: 0;
  22702. }
  22703. .displayBox {
  22704. margin-bottom: 10px;
  22705. display: block;
  22706. border-bottom: 3px solid #eee;
  22707. display: flex;
  22708. align-items: center;
  22709. }
  22710. .easy_comment {
  22711. width: calc(100% - 90px);
  22712. margin-left: 10px;
  22713. display: flex;
  22714. flex-wrap: wrap;
  22715. }
  22716. .easy_comment > div {
  22717. border: 1px solid #4a4a4a;
  22718. color: #666;
  22719. border-radius: 15px;
  22720. padding: 5px 10px;
  22721. font-size: 16px;
  22722. margin-bottom: 10px;
  22723. margin-right: 5px;
  22724. cursor: pointer;
  22725. }
  22726. .easy_comment div:hover {
  22727. border: 1px solid #f7ba2a;
  22728. color: #c69217;
  22729. }
  22730. .xuan_right_box {
  22731. padding: 10px 0;
  22732. background: #f0f4fa;
  22733. margin: 0 15px 0 25px;
  22734. border-bottom-left-radius: 5px;
  22735. border-bottom-right-radius: 5px;
  22736. width: 91.5%;
  22737. }
  22738. .tool_right_box {
  22739. display: flex;
  22740. align-items: center;
  22741. }
  22742. .tool_right_box + .tool_right_box {
  22743. margin-top: 10px;
  22744. }
  22745. .right_box_xuan {
  22746. border-radius: 5px;
  22747. padding: 5px;
  22748. margin-left: 10px;
  22749. min-width: 85px;
  22750. background: #fff;
  22751. color: #0061ff;
  22752. border: 1px solid #0061ff;
  22753. font-size: 14px;
  22754. }
  22755. .pButton:hover {
  22756. opacity: 1 !important;
  22757. }
  22758. .pButton {
  22759. position: fixed;
  22760. text-align: center;
  22761. cursor: pointer;
  22762. z-index: 999;
  22763. right: 20px;
  22764. top: 110px;
  22765. width: 50px;
  22766. height: 50px;
  22767. display: flex;
  22768. align-items: center;
  22769. justify-content: center;
  22770. border-radius: 5px;
  22771. }
  22772. .pzClass {
  22773. width: calc(100% - 340px);
  22774. }
  22775. .newDialogCss {
  22776. /* position: fixed;
  22777. right: 5%;
  22778. top: 50%;
  22779. width: 340px;
  22780. transform: translateY(-50%);
  22781. height: 60%;
  22782. box-shadow: 0px 0 8px 0px #555555;
  22783. border-radius: 15px;
  22784. z-index: 999; */
  22785. position: fixed;
  22786. right: 20px;
  22787. top: 101px;
  22788. width: 330px;
  22789. height: calc(100% - 80px);
  22790. z-index: 999;
  22791. background: #fff;
  22792. border-top-right-radius: 0px;
  22793. border-bottom-right-radius: 0px;
  22794. overflow: hidden;
  22795. }
  22796. .newDialogCss>.scoreList{
  22797. width:100%;
  22798. height:100%;
  22799. box-sizing:border-box;
  22800. padding:10px 15px;
  22801. overflow:auto;
  22802. padding-bottom:80px;
  22803. }
  22804. .pzTop {
  22805. color: #fff;
  22806. background: #000;
  22807. display: flex;
  22808. flex-direction: row;
  22809. flex-wrap: nowrap;
  22810. align-items: center;
  22811. justify-content: space-between;
  22812. height: 40px;
  22813. border-radius: 15px 15px 0 0;
  22814. user-select: none;
  22815. }
  22816. .pzTop2 .checkbox {
  22817. display: flex;
  22818. align-items: center;
  22819. padding: 5px 10px;
  22820. flex: 0 0 auto;
  22821. font-weight: bold;
  22822. border-bottom: 1px solid #eee;
  22823. justify-content: space-between;
  22824. }
  22825. .checkbox>.cb-tabList{
  22826. display:flex;
  22827. align-items:center;
  22828. }
  22829. .cb-tabList>div{
  22830. margin-right:20px;
  22831. font-weight:400;
  22832. cursor:pointer;
  22833. }
  22834. .cb-tabList>.cb-tabItem{
  22835. color:#1684FC;
  22836. position:relative;
  22837. }
  22838. .cb-tabItem::after{
  22839. content:"";
  22840. width:100%;
  22841. height:2px;
  22842. background:#1684FC;
  22843. position:absolute;
  22844. bottom:-5px;
  22845. left:0
  22846. }
  22847. .pzTop2 .check {
  22848. text-align: center;
  22849. cursor: pointer;
  22850. box-sizing: border-box;
  22851. display: flex;
  22852. }
  22853. .pzTop2 img {
  22854. width: 25px;
  22855. cursor: pointer;
  22856. }
  22857. .pzTop > div:nth-child(1) {
  22858. padding-left: 10px;
  22859. }
  22860. .pzTop > div:nth-child(2) {
  22861. width: 15px;
  22862. height: 15px;
  22863. padding-right: 10px;
  22864. cursor: pointer;
  22865. }
  22866. .pzTop > div:nth-child(2) > img {
  22867. width: 100%;
  22868. height: 100%;
  22869. }
  22870. .pzBox,
  22871. .noPzBox {
  22872. height: calc(100% - 60px);
  22873. /* background: #ededed; */
  22874. background: #fff;
  22875. /* border-radius: 0 0 15px 15px; */
  22876. }
  22877. .noPzBox {
  22878. display: flex;
  22879. flex-direction: column;
  22880. flex-wrap: nowrap;
  22881. justify-content: center;
  22882. align-items: center;
  22883. }
  22884. .pzList {
  22885. background: #f7f7f7;
  22886. width: 90%;
  22887. margin: 0 auto 15px;
  22888. border-radius: 5px;
  22889. }
  22890. .pzNavTop {
  22891. display: flex;
  22892. flex-direction: row;
  22893. flex-wrap: nowrap;
  22894. padding: 10px 10px 0 10px;
  22895. align-items: center;
  22896. }
  22897. .pzDelete {
  22898. cursor: pointer;
  22899. margin-left: auto;
  22900. font-size: 14px;
  22901. color: #afafaf;
  22902. }
  22903. .pzNavTop > div:nth-child(1) {
  22904. background: #3760af;
  22905. width: 35px;
  22906. height: 35px;
  22907. color: #fff;
  22908. text-align: center;
  22909. line-height: 35px;
  22910. border-radius: 50%;
  22911. font-size: 14px;
  22912. }
  22913. .pzNavTop > div:nth-child(2) {
  22914. font-size: 18px;
  22915. color: #959595;
  22916. margin-left: 5px;
  22917. }
  22918. .pzContent {
  22919. padding: 10px;
  22920. word-break: break-word;
  22921. }
  22922. .pzContent audio {
  22923. width: 100%;
  22924. }
  22925. .pzContent audio::-webkit-media-controls-panel {
  22926. background: #fff;
  22927. }
  22928. .pzContent >>> img {
  22929. max-width: 100%;
  22930. }
  22931. .pzListBox {
  22932. padding-top: 15px;
  22933. height: calc(100% - 110px);
  22934. overflow: auto;
  22935. }
  22936. .addPzButton {
  22937. position: relative;
  22938. margin-top: 3px;
  22939. width: 100%;
  22940. }
  22941. .addPzButton .img1 {
  22942. position: absolute;
  22943. top: 50%;
  22944. right: 25px;
  22945. transform: translateY(-50%);
  22946. height: 100%;
  22947. display: flex;
  22948. align-items: center;
  22949. }
  22950. .addPzButton .img1 div {
  22951. display: flex;
  22952. }
  22953. .addPzButton .img1 div img {
  22954. width: 28px;
  22955. margin-left: 10px;
  22956. cursor: pointer;
  22957. }
  22958. .addPzButton .img1 div span {
  22959. font-size: 14px;
  22960. margin: 4px 0 0 3px;
  22961. color: #afafaf;
  22962. }
  22963. .addPz {
  22964. background: #4b79ce;
  22965. width: 100px;
  22966. color: #fff;
  22967. font-size: 12px;
  22968. height: 30px;
  22969. margin: 0 auto;
  22970. text-align: center;
  22971. line-height: 30px;
  22972. border-radius: 10px;
  22973. cursor: pointer;
  22974. }
  22975. .addDialogCss {
  22976. position: fixed;
  22977. width: 600px;
  22978. height: 70%;
  22979. min-height: 450px;
  22980. box-shadow: 0px 0 8px 0px #555555;
  22981. border-radius: 15px;
  22982. z-index: 999;
  22983. left: 50%;
  22984. top: 50%;
  22985. margin: -18% 0 0 -300px;
  22986. }
  22987. .teacherPz {
  22988. display: flex;
  22989. flex-direction: row;
  22990. align-items: center;
  22991. flex-wrap: nowrap;
  22992. }
  22993. .teacherPzImg {
  22994. width: 30px;
  22995. height: 30px;
  22996. }
  22997. .teacherPzImg > img {
  22998. width: 100%;
  22999. height: 100%;
  23000. }
  23001. .addPzBox {
  23002. height: calc(100% - 40px);
  23003. background: #ededed;
  23004. border-bottom-left-radius: 15px;
  23005. border-bottom-right-radius: 15px;
  23006. }
  23007. .pzAudioClass {
  23008. margin: 15px 14px;
  23009. background: #fff;
  23010. height: 100%;
  23011. display: flex;
  23012. justify-content: center;
  23013. align-items: center;
  23014. }
  23015. .pzConText {
  23016. width: 95%;
  23017. height: 100%;
  23018. margin: 10px auto 0;
  23019. border: none;
  23020. background: #fff;
  23021. border-radius: 0px;
  23022. }
  23023. .pzConText >>> .text {
  23024. height: calc(100% - 82px);
  23025. }
  23026. .addTextCss {
  23027. background: #4b79ce;
  23028. width: 80px;
  23029. height: 30px;
  23030. text-align: center;
  23031. color: #fff;
  23032. line-height: 30px;
  23033. border-radius: 10px;
  23034. margin: 10px auto 0;
  23035. cursor: pointer;
  23036. }
  23037. .pzConText:focus-visible {
  23038. border: none !important;
  23039. }
  23040. .maxWidth {
  23041. width: 1000px;
  23042. }
  23043. .noPz {
  23044. width: 150px;
  23045. margin: 0 auto 20%;
  23046. }
  23047. .noPz > img {
  23048. width: 100%;
  23049. height: 100%;
  23050. }
  23051. .timeAndReply {
  23052. display: flex;
  23053. flex-direction: row;
  23054. flex-wrap: nowrap;
  23055. justify-content: space-between;
  23056. align-items: center;
  23057. font-size: 14px;
  23058. box-sizing: border-box;
  23059. padding: 0 10px 10px 0px;
  23060. }
  23061. .timeAndReply .time {
  23062. color: #bfbfbf;
  23063. padding: 0 0 0 10px;
  23064. box-sizing: border-box;
  23065. }
  23066. .timeAndReply > div:last-child {
  23067. cursor: pointer;
  23068. color: #777;
  23069. }
  23070. /* table 样式 */
  23071. .cont >>> table {
  23072. border-top: 1px solid #ccc;
  23073. border-left: 1px solid #ccc;
  23074. }
  23075. .cont >>> table td,
  23076. .cont >>> table th {
  23077. border-bottom: 1px solid #ccc;
  23078. border-right: 1px solid #ccc;
  23079. /* padding: 20px 5px; */
  23080. padding: 5px 10px;
  23081. max-width: 0px;
  23082. height: 30px;
  23083. vertical-align: baseline;
  23084. box-sizing: border-box;
  23085. }
  23086. .cont >>> table th {
  23087. border-bottom: 2px solid #ccc;
  23088. text-align: center;
  23089. }
  23090. /* blockquote 样式 */
  23091. .cont >>> blockquote {
  23092. display: block;
  23093. border-left: 8px solid #d0e5f2;
  23094. padding: 5px 10px;
  23095. margin: 10px 0;
  23096. line-height: 1.4;
  23097. font-size: 100%;
  23098. background-color: #f1f1f1;
  23099. }
  23100. /* code 样式 */
  23101. .cont >>> code {
  23102. display: inline-block;
  23103. /* *display: inline; */
  23104. zoom: 1;
  23105. background-color: #f1f1f1;
  23106. border-radius: 3px;
  23107. padding: 3px 5px;
  23108. margin: 0 3px;
  23109. }
  23110. .cont >>> pre code {
  23111. display: block;
  23112. }
  23113. /* ul ol 样式 */
  23114. .cont >>> ul,
  23115. ol {
  23116. margin: 10px 0 10px 20px;
  23117. }
  23118. .addPzCheck {
  23119. display: flex;
  23120. flex-direction: row;
  23121. flex-wrap: nowrap;
  23122. padding: 10px 15px 0;
  23123. }
  23124. .addPzCheck span {
  23125. cursor: pointer;
  23126. padding-bottom: 5px;
  23127. font-weight: bold;
  23128. }
  23129. .addPzCheck span + span {
  23130. margin-left: 10px;
  23131. }
  23132. .addPzCheck .isChooseActive {
  23133. color: #3e88f4;
  23134. border-bottom: 2px solid #2f80f3;
  23135. }
  23136. /* code 样式 */
  23137. .cont {
  23138. /* -webkit-user-modify: read-write; */
  23139. overflow-wrap: break-word;
  23140. -webkit-line-break: after-white-space;
  23141. word-break: break-word;
  23142. white-space: pre-line;
  23143. }
  23144. .scoreBox,
  23145. .scoreDetailBox {
  23146. display: flex;
  23147. align-items: center;
  23148. justify-content: flex-start;
  23149. margin-top: 20px;
  23150. font-size: 18px;
  23151. width: 100%;
  23152. }
  23153. .scoreBox .t,
  23154. .scoreDetailBox .t {
  23155. margin-right: 10px;
  23156. width: 100px;
  23157. text-align: right;
  23158. }
  23159. .scoreDetailBox {
  23160. align-items: flex-start;
  23161. }
  23162. .scoreDetailBox >>> .el-textarea {
  23163. width: calc(100% - 200px);
  23164. }
  23165. .scoreBox >>> .el-input {
  23166. width: 130px;
  23167. font-size: 38px;
  23168. }
  23169. .scoreBox >>> .el-input__inner {
  23170. height: 60px;
  23171. }
  23172. .answerScore {
  23173. position: absolute;
  23174. top: 10px;
  23175. right: 10px;
  23176. background: #0000008f;
  23177. border-radius: 5px;
  23178. padding: 3px 5px;
  23179. font-size: 14px;
  23180. color: #fff;
  23181. cursor: pointer;
  23182. }
  23183. .open_box .switch_box {
  23184. width: 100%;
  23185. margin: 0 auto;
  23186. display: flex;
  23187. justify-content: space-between;
  23188. }
  23189. .open_box .switch_box + .switch_box {
  23190. margin-top: 10px;
  23191. }
  23192. .deleteImg,.deleteImg1 {
  23193. width: 25px !important;
  23194. height: 25px !important;
  23195. cursor: pointer;
  23196. position: absolute;
  23197. top: 10px;
  23198. right: 10px;
  23199. }
  23200. .deleteImg2 {
  23201. width: 23px !important;
  23202. height: 23px !important;
  23203. top: 5px;
  23204. right: 5px;
  23205. }
  23206. .deleteImg1{
  23207. width: 23px !important;
  23208. height: 23px !important;
  23209. top: 5px !important;
  23210. right: 30px !important;
  23211. }
  23212. .rightW {
  23213. right: 40px;
  23214. }
  23215. .drawPBox {
  23216. display: flex;
  23217. flex-direction: column;
  23218. position: relative;
  23219. }
  23220. .drawPBox span {
  23221. font-size: 18px;
  23222. color: #606266;
  23223. padding-bottom: 10px;
  23224. margin: 10px 0;
  23225. border-bottom: 1px solid #eaeaea;
  23226. }
  23227. .drawPBox img {
  23228. width: 500px;
  23229. height: 300px;
  23230. object-fit: contain;
  23231. cursor: pointer;
  23232. margin: 0 auto;
  23233. }
  23234. .sentenBox {
  23235. background: #fff;
  23236. height: 450px;
  23237. overflow: auto;
  23238. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23239. background-position: 102%;
  23240. background-repeat: no-repeat;
  23241. background-size: 60%;
  23242. }
  23243. .addSen {
  23244. background: #409efe;
  23245. width: 90px;
  23246. color: #fff;
  23247. height: 35px;
  23248. text-align: center;
  23249. line-height: 35px;
  23250. border-radius: 5px;
  23251. float: right;
  23252. margin: 10px 20px 0 0;
  23253. cursor: pointer;
  23254. }
  23255. .sentenTop {
  23256. display: flex;
  23257. flex-direction: row;
  23258. flex-wrap: nowrap;
  23259. align-items: center;
  23260. padding: 55px 0 0 20px;
  23261. box-sizing: border-box;
  23262. }
  23263. .sentenTop > div:nth-child(2) {
  23264. width: 300px;
  23265. margin: 0 15px;
  23266. }
  23267. .sentenTop > div:nth-child(3) {
  23268. background: #409efe;
  23269. color: #fff;
  23270. width: 65px;
  23271. height: 35px;
  23272. text-align: center;
  23273. line-height: 35px;
  23274. border-radius: 5px;
  23275. cursor: pointer;
  23276. }
  23277. .cardList,
  23278. .cardList1 {
  23279. padding: 10px 0 10px 0;
  23280. display: flex;
  23281. flex-direction: row;
  23282. flex-wrap: wrap;
  23283. align-items: center;
  23284. box-sizing: border-box;
  23285. border-bottom: 1px solid #f4f4f4;
  23286. width: 98%;
  23287. margin: 0 auto;
  23288. min-width: 60%;
  23289. max-width: 85%;
  23290. }
  23291. .cardList1 {
  23292. padding: 10px 0 10px 10px !important;
  23293. margin: 0 !important;
  23294. }
  23295. .cardBox {
  23296. display: flex;
  23297. flex-direction: row;
  23298. flex-wrap: wrap;
  23299. align-items: center;
  23300. align-content: center;
  23301. }
  23302. .cardBox > div {
  23303. margin-bottom: 10px;
  23304. }
  23305. .isCard,
  23306. .isChooseCard,
  23307. .noCard,
  23308. .isCard1 {
  23309. min-width: 130px;
  23310. width: auto;
  23311. height: 60px;
  23312. text-align: center;
  23313. line-height: 60px;
  23314. font-size: 20px;
  23315. cursor: pointer;
  23316. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23317. background-size: cover;
  23318. transition: all 2s;
  23319. margin-right: 20px;
  23320. background-size: 100% 100%;
  23321. padding: 0 20px;
  23322. box-sizing: border-box;
  23323. }
  23324. .isCard > div,
  23325. .noCard > div,
  23326. .isCard1 > div {
  23327. white-space: nowrap;
  23328. overflow: hidden;
  23329. text-overflow: ellipsis;
  23330. width: 100%;
  23331. margin: 0 auto;
  23332. }
  23333. .noCard {
  23334. background-image: none;
  23335. }
  23336. .isCard1 {
  23337. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23338. }
  23339. .isChooseCard {
  23340. background-image: none;
  23341. border: 1px dashed #b9b9b9;
  23342. border-radius: 10px;
  23343. }
  23344. .card {
  23345. width: 130px;
  23346. height: 60px;
  23347. }
  23348. .card > img {
  23349. width: 100%;
  23350. height: 100%;
  23351. }
  23352. .rightCardBox {
  23353. margin: 10px 0 0 10px;
  23354. }
  23355. .rightCardBox > div:nth-child(1) {
  23356. margin-bottom: 10px;
  23357. }
  23358. .cardCss {
  23359. display: flex;
  23360. flex-direction: column;
  23361. flex-wrap: nowrap;
  23362. align-items: center;
  23363. border-bottom: 3px solid #b4c3d3;
  23364. padding: 0 0 5px 0;
  23365. margin-right: 10px;
  23366. }
  23367. .cardCss > div:nth-child(2) {
  23368. background: #5b7b9d;
  23369. color: #fff;
  23370. width: 20px;
  23371. height: 20px;
  23372. border-radius: 50%;
  23373. text-align: center;
  23374. line-height: 20px;
  23375. }
  23376. .isWrong {
  23377. display: flex;
  23378. flex-direction: row;
  23379. flex-wrap: nowrap;
  23380. align-content: center;
  23381. align-items: center;
  23382. }
  23383. .answerRight {
  23384. width: 25%;
  23385. }
  23386. .isTj {
  23387. display: flex;
  23388. flex-direction: row;
  23389. flex-wrap: nowrap;
  23390. align-items: center;
  23391. }
  23392. .isTj > div:nth-child(2) {
  23393. color: #727070;
  23394. margin-left: 10px;
  23395. }
  23396. .isTjImg {
  23397. width: 30px;
  23398. height: 30px;
  23399. }
  23400. .isTjImg > img {
  23401. width: 100%;
  23402. height: 100%;
  23403. }
  23404. .cardAnswerBox {
  23405. font-size: 18px;
  23406. width: 97%;
  23407. border: 5px;
  23408. padding: 0;
  23409. border-radius: 5px;
  23410. margin: 10px auto;
  23411. word-break: break-word;
  23412. }
  23413. .w_name {
  23414. margin-bottom: 10px;
  23415. }
  23416. .w_name span {
  23417. font-size: 16px;
  23418. }
  23419. .w_teachert {
  23420. width: 50px !important;
  23421. position: absolute;
  23422. height: auto !important;
  23423. z-index: 10;
  23424. right: 25px;
  23425. top: -25px;
  23426. }
  23427. .group_workBox {
  23428. }
  23429. .group_workBox + .group_workBox {
  23430. margin-top: 20px;
  23431. }
  23432. .group_box {
  23433. padding-bottom: 20px;
  23434. border-bottom: 2px solid #f0f0f0;
  23435. margin-top: 10px;
  23436. }
  23437. .group_title {
  23438. display: flex;
  23439. align-items: center;
  23440. justify-content: space-between;
  23441. width: 95%;
  23442. }
  23443. .group_name {
  23444. background-image: url(../../assets/icon/groupN.png);
  23445. width: 220px;
  23446. background-size: 100% 100%;
  23447. height: 67px;
  23448. padding: 0 20px 0 43px;
  23449. box-sizing: border-box;
  23450. line-height: 63px;
  23451. color: #fff;
  23452. overflow: hidden;
  23453. white-space: nowrap;
  23454. text-overflow: ellipsis;
  23455. }
  23456. .group_work {
  23457. width: 100%;
  23458. padding: 0 10px;
  23459. box-sizing: border-box;
  23460. display: flex;
  23461. flex-wrap: wrap;
  23462. }
  23463. .g_d_box {
  23464. display: flex;
  23465. flex-flow: wrap;
  23466. justify-content: space-around;
  23467. }
  23468. .g_d_box .isChair {
  23469. background-image: url(../../assets/avatar.png) !important;
  23470. }
  23471. .g_d_group {
  23472. width: 500px;
  23473. margin-bottom: 80px;
  23474. }
  23475. .g_d_group_chair {
  23476. display: flex;
  23477. align-items: center;
  23478. justify-content: center;
  23479. }
  23480. .g_d_group_chair > div + div {
  23481. margin-left: 30px;
  23482. }
  23483. .g_d_group_chair > div,
  23484. .g_d_group_chair2 > div {
  23485. display: flex;
  23486. flex-direction: column;
  23487. align-items: center;
  23488. }
  23489. .g_d_group_chair > div > span:nth-child(1),
  23490. .g_d_group_chair2 > div > span:nth-child(1) {
  23491. background-image: url(../../assets/icon/chair.png);
  23492. width: 50px;
  23493. height: 50px;
  23494. display: block;
  23495. background-size: 100% 100%;
  23496. }
  23497. .g_d_group_tableBox {
  23498. display: flex;
  23499. align-items: center;
  23500. justify-content: center;
  23501. }
  23502. .g_d_group_chair2 {
  23503. display: flex;
  23504. flex-direction: column;
  23505. align-items: center;
  23506. justify-content: center;
  23507. }
  23508. .g_d_group_chair2 > div + div {
  23509. margin-top: 10px;
  23510. }
  23511. .g_d_group_table {
  23512. background-image: url(../../assets/icon/groupBg.png);
  23513. width: 354px;
  23514. height: 196px;
  23515. background-size: 100% 100%;
  23516. display: flex;
  23517. align-items: center;
  23518. justify-content: center;
  23519. flex-direction: column;
  23520. color: #fff;
  23521. }
  23522. .g_d_group_table > div:nth-child(1) {
  23523. font-size: 24px;
  23524. margin-bottom: 5px;
  23525. }
  23526. .g_d_group_table > div:nth-child(2) div {
  23527. cursor: pointer;
  23528. background: #2e77bf;
  23529. padding: 4px 10px;
  23530. border-radius: 5px;
  23531. }
  23532. .groupBox {
  23533. }
  23534. .groupContent + .groupContent {
  23535. margin-top: 30px;
  23536. }
  23537. .groupTitle {
  23538. font-size: 24px;
  23539. color: rgb(80, 80, 80);
  23540. margin-bottom: 20px;
  23541. }
  23542. .groupName {
  23543. display: flex;
  23544. align-items: center;
  23545. }
  23546. .groupn {
  23547. font-size: 15px;
  23548. margin-right: 10px;
  23549. }
  23550. .groupName + .groupName {
  23551. margin-top: 15px;
  23552. }
  23553. .groupBtn {
  23554. margin-left: 10px;
  23555. }
  23556. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23557. text-align: left;
  23558. }
  23559. .g_d_btnBox {
  23560. display: flex;
  23561. justify-content: flex-end;
  23562. align-items: center;
  23563. margin-bottom: 20px;
  23564. }
  23565. .updateChair {
  23566. position: relative;
  23567. }
  23568. .updateChairBtn {
  23569. position: absolute;
  23570. width: 50px;
  23571. height: 50px;
  23572. overflow: hidden;
  23573. /* display: flex; */
  23574. align-items: center;
  23575. justify-content: center;
  23576. background: #00000087;
  23577. color: #fff;
  23578. border-radius: 50px;
  23579. display: none;
  23580. cursor: pointer;
  23581. }
  23582. .updateChair:hover .updateChairBtn {
  23583. display: flex;
  23584. }
  23585. .group_staic_box {
  23586. display: flex;
  23587. padding: 30px 40px 10px;
  23588. flex-wrap: wrap;
  23589. }
  23590. .group_staic {
  23591. /* width: 50%; */
  23592. margin-bottom: 20px;
  23593. display: flex;
  23594. align-items: center;
  23595. }
  23596. .group_staic span:nth-child(1) {
  23597. width: 150px;
  23598. text-align: right;
  23599. margin-right: 15px;
  23600. }
  23601. .group_staic span:nth-child(2) {
  23602. background: rgb(0 123 255);
  23603. color: #fff;
  23604. border-radius: 5px;
  23605. padding: 5px;
  23606. }
  23607. .codeFileBox {
  23608. height: 300px;
  23609. background: #fff;
  23610. display: flex;
  23611. align-items: center;
  23612. justify-content: center;
  23613. }
  23614. .codeFileBox img {
  23615. width: 200px;
  23616. margin: 0;
  23617. height: auto;
  23618. }
  23619. .codeFileBox div {
  23620. background: rgb(80, 142, 226);
  23621. color: #fff;
  23622. padding: 10px 20px;
  23623. border-radius: 25px;
  23624. cursor: pointer;
  23625. margin-left: 15px;
  23626. }
  23627. .radioBox {
  23628. display: flex;
  23629. flex-direction: column;
  23630. flex-wrap: nowrap;
  23631. align-items: flex-start;
  23632. }
  23633. .radioBox > div {
  23634. margin: 10px 0 0 10px;
  23635. }
  23636. /* .radioBox >>> .el-radio__input,
  23637. .radioBox >>> .el-checkbox__inner {
  23638. margin-left: 10px;
  23639. } */
  23640. .radioBox >>> .el-radio__label,
  23641. .radioBox >>> .el-checkbox__label {
  23642. display: flex;
  23643. align-items: center;
  23644. width: 100%;
  23645. }
  23646. .radioBox >>> .el-radio__label > span {
  23647. width: 100%;
  23648. display: -webkit-box;
  23649. overflow: hidden;
  23650. white-space: normal !important;
  23651. text-overflow: ellipsis;
  23652. word-wrap: break-word;
  23653. }
  23654. .inImg {
  23655. width: 100px;
  23656. cursor: pointer;
  23657. }
  23658. .inImg > img {
  23659. width: 100%;
  23660. height: 100%;
  23661. object-fit: cover;
  23662. }
  23663. .timuImgBox {
  23664. margin: 10px 0;
  23665. display: flex;
  23666. flex-direction: column;
  23667. flex-wrap: wrap;
  23668. align-items: flex-start;
  23669. }
  23670. .timuImg {
  23671. width: 150px;
  23672. margin: 5px 0;
  23673. cursor: pointer;
  23674. }
  23675. .timuImg > img {
  23676. width: 100%;
  23677. height: 100%;
  23678. object-fit: cover;
  23679. }
  23680. .worksTop {
  23681. display: flex;
  23682. flex-direction: row;
  23683. align-items: flex-end;
  23684. }
  23685. .worksTitle {
  23686. display: flex;
  23687. flex-direction: row;
  23688. flex-wrap: nowrap;
  23689. align-items: center;
  23690. }
  23691. .worksTitle::before,
  23692. .worksTop::before {
  23693. content: "";
  23694. display: block;
  23695. width: 3px;
  23696. height: 20px;
  23697. background: #0061ff;
  23698. border-radius: 3px;
  23699. margin: 0 5px 0 0;
  23700. }
  23701. .corOpen {
  23702. margin: 0 0 0 10px;
  23703. font-size: 14px;
  23704. cursor: pointer;
  23705. color: #505050;
  23706. }
  23707. .corOpen:hover {
  23708. color: #499eef;
  23709. }
  23710. .navCorOpenBox {
  23711. display: flex;
  23712. flex-direction: row;
  23713. align-items: center;
  23714. justify-content: space-between;
  23715. height: 55px;
  23716. background: #ffffff;
  23717. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23718. border-radius: 8px 8px 0px 0px;
  23719. z-index: 9;
  23720. position: relative;
  23721. }
  23722. .navCorOpen {
  23723. padding-right: 15px;
  23724. cursor: pointer;
  23725. width: 45px;
  23726. display: flex;
  23727. }
  23728. .navCorOpen > img {
  23729. width: 100%;
  23730. height: 100%;
  23731. }
  23732. .mlImg {
  23733. width: 40px !important;
  23734. min-width: 40px;
  23735. cursor: pointer;
  23736. transform: rotate(180deg);
  23737. }
  23738. .mlImg > img {
  23739. width: 100%;
  23740. height: 100%;
  23741. }
  23742. .navLeftCss {
  23743. width: 100% !important;
  23744. left: 0 !important;
  23745. }
  23746. .isContentCss {
  23747. width: 100% !important;
  23748. }
  23749. .isAllWidth {
  23750. width: 100% !important;
  23751. }
  23752. .group_switch {
  23753. margin-right: 10px;
  23754. height: 30px;
  23755. display: flex;
  23756. align-items: center;
  23757. }
  23758. .group_switch > span {
  23759. margin-right: 5px;
  23760. }
  23761. .fileC_box {
  23762. padding-top: 15px;
  23763. }
  23764. .fileC_box > .fileC_title {
  23765. padding: 10px 5px 14px 10px;
  23766. border-top: 1px solid #cad1dc;
  23767. font-size: 14px;
  23768. font-weight: 400;
  23769. color: #cad1dc;
  23770. width: calc(100% - 20px);
  23771. margin: 0 auto;
  23772. box-sizing: border-box;
  23773. }
  23774. .pl_select_box {
  23775. height: 40px;
  23776. line-height: 40px;
  23777. width: 100%;
  23778. cursor: pointer;
  23779. padding: 0 20px;
  23780. box-sizing: border-box;
  23781. border-radius: 5px;
  23782. border: 1px solid #d6d6d6;
  23783. white-space: nowrap;
  23784. overflow: hidden;
  23785. text-overflow: ellipsis;
  23786. background: #fff;
  23787. text-align: left;
  23788. }
  23789. .newButton {
  23790. width: 102px;
  23791. height: 36px;
  23792. background: #e7ebf1;
  23793. border-radius: 4px;
  23794. color: #0e1e33;
  23795. font-weight: 400;
  23796. font-size: 14px;
  23797. border: none;
  23798. float: right;
  23799. margin-left: 10px;
  23800. }
  23801. .el-table >>> .even_row {
  23802. background-color: #f0f4fa;
  23803. }
  23804. .stageBoxCss,
  23805. .stageBoxIsCss {
  23806. display: flex;
  23807. flex-direction: row;
  23808. flex-wrap: nowrap;
  23809. align-items: center;
  23810. height: 50px;
  23811. border-bottom: 1px solid #e2f5fc;
  23812. cursor: pointer;
  23813. width: 100%;
  23814. }
  23815. .stageBoxIsCss {
  23816. background: #0061ff;
  23817. color: #fff;
  23818. border-radius: 8px;
  23819. }
  23820. .closeTri,
  23821. .closeTri1 {
  23822. min-width: 15px;
  23823. width: 15px;
  23824. height: 15px;
  23825. }
  23826. .closeTri1 {
  23827. padding-left: 10px;
  23828. cursor: pointer;
  23829. }
  23830. .closeTri > img,
  23831. .closeTri1 > img {
  23832. width: 100%;
  23833. height: 100%;
  23834. /* transition: all .5s; */
  23835. }
  23836. .noToolBlue {
  23837. min-width: 10px;
  23838. width: 10px;
  23839. height: 10px;
  23840. background: #0061ff;
  23841. border-radius: 50%;
  23842. margin-left: 13px;
  23843. }
  23844. .stageChild,
  23845. .toolChild {
  23846. height: 0;
  23847. overflow: hidden;
  23848. transition: all 0.5s;
  23849. }
  23850. .toolChild {
  23851. /* margin: 0 0 0 17px;
  23852. padding: 0 0 0 20px;
  23853. border-left: 1px solid #d7d7d7; */
  23854. }
  23855. .toolChild > div + div{
  23856. margin-top:5px;
  23857. }
  23858. .gjCss {
  23859. display: flex;
  23860. flex-direction: row;
  23861. flex-wrap: nowrap;
  23862. align-items: center;
  23863. padding: 10px 0 10px 40px;
  23864. box-sizing: border-box;
  23865. font-size: 14px;
  23866. cursor: pointer;
  23867. border-radius:5px;
  23868. }
  23869. .toolChild > div {
  23870. position: relative;
  23871. width: 100%;
  23872. }
  23873. .toolChild > div::before {
  23874. /* content: "";
  23875. width: 15px;
  23876. height: 1px;
  23877. background: #cad1dc;
  23878. position: absolute;
  23879. top: 24px;
  23880. left: -20px;
  23881. display: block; */
  23882. }
  23883. .isGjCss {
  23884. /* color: #0061ff; */
  23885. color:#fff;
  23886. background: rgb(55, 129, 252);
  23887. /* background-color: #e0eafb !important;
  23888. color: #0061ff !important; */
  23889. }
  23890. .navItem {
  23891. background: #ffffff;
  23892. border-radius: 4px;
  23893. width: 100%;
  23894. margin: 10px auto;
  23895. position: relative;
  23896. height: 40px;
  23897. display: flex;
  23898. flex-direction: row;
  23899. flex-wrap: nowrap;
  23900. align-items: center;
  23901. }
  23902. .navItemList {
  23903. display: flex;
  23904. flex-direction: row;
  23905. flex-wrap: nowrap;
  23906. align-items: center;
  23907. padding: 0 13px;
  23908. cursor: pointer;
  23909. width: calc(100% - 60px);
  23910. height: 100%;
  23911. }
  23912. .navItemList > div:first-child {
  23913. min-width: 60px;
  23914. }
  23915. .navItemList > div:last-child {
  23916. width: calc(100% - 80px);
  23917. white-space: nowrap;
  23918. overflow: hidden;
  23919. text-overflow: ellipsis;
  23920. word-break: break-word;
  23921. }
  23922. /* .isItemList > div {
  23923. color: #fff !important;
  23924. } */
  23925. .tool_work_box {
  23926. width: 100%;
  23927. padding: 0 37px 0;
  23928. box-sizing: border-box;
  23929. }
  23930. .tool_box {
  23931. width: 100%;
  23932. padding: 0 0 0 20px;
  23933. }
  23934. .tool_type_box {
  23935. display: flex;
  23936. flex-direction: row;
  23937. align-items: baseline;
  23938. flex-wrap: nowrap;
  23939. justify-content: flex-start;
  23940. position: relative;
  23941. }
  23942. .toolSort {
  23943. display: flex;
  23944. flex-direction: row;
  23945. flex-wrap: wrap;
  23946. justify-content: flex-start;
  23947. align-items: flex-start;
  23948. padding: 0 0 15px 0;
  23949. }
  23950. .toolSort > div {
  23951. margin: 0 10px 0 0;
  23952. width: 135px;
  23953. box-sizing: border-box;
  23954. border: 2px solid transparent;
  23955. }
  23956. .tools {
  23957. width: 100%;
  23958. display: flex;
  23959. flex-direction: column;
  23960. flex-wrap: nowrap;
  23961. align-items: flex-start;
  23962. }
  23963. .whiteBIcon {
  23964. width: fit-content;
  23965. cursor: pointer;
  23966. display: flex;
  23967. flex-direction: column;
  23968. flex-wrap: nowrap;
  23969. align-items: center;
  23970. font-size: 14px;
  23971. }
  23972. .tool:hover {
  23973. border: 2px solid #a5c7ff;
  23974. border-radius: 5px;
  23975. }
  23976. .whiteBIcon > img {
  23977. width: 65px;
  23978. height: 100%;
  23979. }
  23980. .whiteBIcon > img {
  23981. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23982. border-radius: 15px;
  23983. }
  23984. .check {
  23985. /* width: 20px;
  23986. height: 20px; */
  23987. cursor: pointer;
  23988. margin: 10px 0;
  23989. position: absolute;
  23990. right: 2px;
  23991. top: -5px;
  23992. }
  23993. .noChoose,
  23994. .isChoose {
  23995. width: 15px;
  23996. height: 15px;
  23997. border-radius: 50%;
  23998. border: 1px solid #adadad;
  23999. }
  24000. .isChoose {
  24001. border: 4px solid #0363ff !important;
  24002. width: 10px;
  24003. height: 10px;
  24004. }
  24005. .isToolChoose {
  24006. border: 2px solid #5394ff !important;
  24007. border-radius: 5px;
  24008. box-shadow: 0 0 6px 0px #5394ff;
  24009. }
  24010. .checkDiv {
  24011. display: flex;
  24012. align-items: center;
  24013. }
  24014. .checkDiv span {
  24015. margin-left: 5px;
  24016. color: #858585;
  24017. }
  24018. .check img {
  24019. width: 20px;
  24020. height: 20px;
  24021. }
  24022. .lockTaskIcon {
  24023. width: 20px;
  24024. height: 20px;
  24025. position: absolute;
  24026. right: 10px;
  24027. top: 10px;
  24028. }
  24029. .lockTaskIcon > img {
  24030. width: 100%;
  24031. height: 100%;
  24032. }
  24033. .pick_box {
  24034. display: flex;
  24035. align-items: flex-start;
  24036. flex-wrap: wrap;
  24037. }
  24038. .selectBox {
  24039. width: 110px;
  24040. margin-left: 10px;
  24041. margin: 0 10px 0 auto;
  24042. }
  24043. .selectBox >>> .el-input__inner {
  24044. height: 30px;
  24045. line-height: 30px;
  24046. }
  24047. .selectBox >>> .el-input__icon {
  24048. line-height: 30px;
  24049. }
  24050. .sentenceTitle {
  24051. display: flex;
  24052. flex-direction: row;
  24053. flex-wrap: nowrap;
  24054. align-items: center;
  24055. }
  24056. .sentenceTitle::before {
  24057. content: attr(index);
  24058. background: #3681fc;
  24059. border-radius: 50%;
  24060. color: #fff;
  24061. width: 25px;
  24062. height: 25px;
  24063. min-width: 25px;
  24064. min-height: 25px;
  24065. text-align: center;
  24066. line-height: 25px;
  24067. margin-right: 5px;
  24068. }
  24069. .hfBox {
  24070. padding: 10px;
  24071. box-sizing: border-box;
  24072. }
  24073. .whoReplyWho {
  24074. display: flex;
  24075. flex-direction: row;
  24076. flex-wrap: nowrap;
  24077. align-items: baseline;
  24078. justify-content: flex-start;
  24079. }
  24080. .hfBottom {
  24081. display: flex;
  24082. flex-direction: row;
  24083. flex-wrap: nowrap;
  24084. align-items: center;
  24085. justify-content: space-between;
  24086. font-size: 14px;
  24087. }
  24088. .deleteHfItem {
  24089. cursor: pointer;
  24090. width: 20px;
  24091. height: 20px;
  24092. }
  24093. .deleteHfItem > img {
  24094. width: 100%;
  24095. height: 100%;
  24096. }
  24097. .whoReplyWho > .hfImg {
  24098. width: 12px;
  24099. height: 12px;
  24100. margin: 0 5px;
  24101. }
  24102. .whoReplyWho > .hfImg > img {
  24103. width: 100%;
  24104. height: 100%;
  24105. }
  24106. .hfContent {
  24107. padding-top: 10px;
  24108. box-sizing: border-box;
  24109. display: -webkit-box;
  24110. overflow: hidden;
  24111. white-space: normal !important;
  24112. text-overflow: ellipsis;
  24113. word-wrap: break-word;
  24114. -webkit-box-orient: vertical;
  24115. }
  24116. .hfTime {
  24117. text-align: left;
  24118. box-sizing: border-box;
  24119. padding: 10px 0 10px 0px;
  24120. color: #bfbfbf;
  24121. font-size: 14px;
  24122. }
  24123. .btnAllNT {
  24124. position: fixed;
  24125. bottom: 100px;
  24126. right: 40px;
  24127. z-index: 999;
  24128. display: flex;
  24129. flex-direction: row;
  24130. }
  24131. .btnAllNT > img {
  24132. cursor: pointer;
  24133. width: 80px;
  24134. }
  24135. .toolMask {
  24136. position: fixed;
  24137. width: 100%;
  24138. height: 100%;
  24139. background: #3f3c3c;
  24140. opacity: 0.5;
  24141. top: 0;
  24142. left: 0;
  24143. z-index: 999;
  24144. }
  24145. .addToolCss {
  24146. position: fixed;
  24147. z-index: 999;
  24148. background: #fff;
  24149. right: 5%;
  24150. bottom: 18%;
  24151. min-width: 1035px;
  24152. min-height: 300px;
  24153. border-radius: 10px;
  24154. box-shadow: 0 0 8px 1px #b2b2b2;
  24155. }
  24156. .toolTop {
  24157. display: flex;
  24158. flex-direction: row;
  24159. flex-wrap: nowrap;
  24160. justify-content: space-between;
  24161. align-items: center;
  24162. padding: 20px;
  24163. }
  24164. .toolTop > div:nth-child(2) {
  24165. width: 15px;
  24166. height: 15px;
  24167. padding-right: 10px;
  24168. cursor: pointer;
  24169. }
  24170. .toolTop > div:nth-child(2) > img {
  24171. width: 100%;
  24172. height: 100%;
  24173. }
  24174. .fullStyle>>>.el-dialog__body {
  24175. height: calc(100% - 125px) !important;
  24176. box-sizing: border-box;
  24177. padding: 30px 0 !important;
  24178. background: #fff !important;
  24179. }
  24180. .fullStyle>>>.el-dialog {
  24181. width: 100% !important;
  24182. max-width: 100% !important;
  24183. height: 100% !important;
  24184. margin: 0 !important;
  24185. }
  24186. .fullStyle {
  24187. width: 100% !important;
  24188. max-width: 100% !important;
  24189. height: 100% !important;
  24190. margin: 0 auto !important;
  24191. }
  24192. .fullStyle>>>.el-dialog__footer{
  24193. background: #fff !important;
  24194. }
  24195. .engUpBox {
  24196. width: 100%;
  24197. height: 100%;
  24198. }
  24199. .engTitle,
  24200. .engText {
  24201. display: flex;
  24202. flex-direction: row;
  24203. flex-wrap: nowrap;
  24204. align-items: flex-start;
  24205. padding: 0 20px 20px 20px;
  24206. box-sizing: border-box;
  24207. }
  24208. .engTitle > .div:first-child,
  24209. .engText > div:first-child {
  24210. min-width: 75px;
  24211. }
  24212. .correctBox{
  24213. width: 100%;
  24214. display: flex;
  24215. flex-direction: row;
  24216. flex-wrap: nowrap;
  24217. align-items: flex-start;
  24218. }
  24219. .oldBox{
  24220. width: 50%;
  24221. height: 100%;
  24222. display: flex;
  24223. flex-direction: column;
  24224. flex-wrap: nowrap;
  24225. align-items: center;
  24226. border-top: 1px solid #d9d9d9;
  24227. border-left: 1px solid #d9d9d9;
  24228. border-right: 1px solid #d9d9d9;
  24229. }
  24230. .oldBox>div:first-child{
  24231. width: 100%;
  24232. text-align: center;
  24233. background: #d9d9d9;
  24234. height: 35px;
  24235. line-height: 35px;
  24236. font-weight: bold;
  24237. }
  24238. .oldText{
  24239. width: 100%;
  24240. height: calc(100% - 35px);
  24241. overflow: auto;
  24242. margin: 10px 0;
  24243. display: flex;
  24244. flex-direction: column;
  24245. flex-wrap: nowrap;
  24246. align-content: center;
  24247. align-items: center;
  24248. }
  24249. .detailBox{
  24250. width: 50%;
  24251. padding: 10px;
  24252. background: #f6f6f6;
  24253. border-radius: 5px;
  24254. }
  24255. .oldDetail,.oldDetail1{
  24256. padding-bottom: 30px;
  24257. }
  24258. .oldImg{
  24259. width:30px;
  24260. height: 30px;
  24261. }
  24262. .oldImg>img{
  24263. width: 100%;
  24264. height: 100%;
  24265. }
  24266. .allName{
  24267. min-width: 200px;
  24268. white-space: nowrap;
  24269. overflow: hidden;
  24270. text-overflow: ellipsis;
  24271. word-break: break-word;
  24272. cursor: pointer;
  24273. text-align: center;
  24274. border: 1px solid #bcc2cc;
  24275. box-sizing: border-box;
  24276. }
  24277. .engUpTop{
  24278. max-height: 300px;
  24279. overflow: auto;
  24280. }
  24281. .isUpdateToolDetailClass{
  24282. padding: 0 !important;
  24283. }
  24284. .isUpdateToolDetailClass textarea{
  24285. padding:12px;
  24286. font-size: 16px;
  24287. min-height:100%;
  24288. width: 100%;
  24289. box-sizing:border-box;
  24290. outline: none;
  24291. border:none;
  24292. line-height: 30px;
  24293. resize: none;
  24294. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24295. color: #838383;
  24296. }
  24297. .show_taskD {
  24298. min-width: fit-content;
  24299. margin-left: 10px;
  24300. display: flex;
  24301. align-items: center;
  24302. font-size: 14px;
  24303. cursor: pointer;
  24304. color: #717c8d;
  24305. }
  24306. .show_taskD > img {
  24307. width: 15px;
  24308. margin-right: 5px;
  24309. transition: 0.2s all;
  24310. transform: rotate(-90deg);
  24311. }
  24312. .show_taskD.show > img {
  24313. transform: rotate(0deg);
  24314. }
  24315. .correctCss{
  24316. position: absolute;
  24317. bottom: -70px;
  24318. background: #409eff;
  24319. color: #fff;
  24320. }
  24321. </style>