studyStudent.vue 829 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT" v-if="false">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. </div>
  963. <div v-if="tooC == 8">
  964. <img
  965. src="../assets/icon/secondToolList/library.png"
  966. alt
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. />
  969. <div style="margin: 5px 0">素材库</div>
  970. </div>
  971. <div v-if="tooC == 17">
  972. <img
  973. src="../assets/icon/secondToolList/library.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">学习资料</div>
  978. </div>
  979. <div v-if="tooC == 2">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/secondToolList/note.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">便签</div>
  986. </div>
  987. <div v-if="tooC == 4">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/ask.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">问卷调查</div>
  994. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  995. style="position: absolute;right: 33px;top: -30px;">
  996. 统计分析
  997. </div>
  998. </div>
  999. <div v-if="tooC == 45">
  1000. <img
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../assets/icon/thirdToolList/choose.png"
  1003. alt
  1004. />
  1005. <div style="margin: 5px 0">选择题</div>
  1006. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount)"
  1007. style="position: absolute;right: 33px;top: -30px;">
  1008. 作业详细
  1009. </div>
  1010. </div>
  1011. <!-- <div v-if="tooC == 5">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/thirdToolList/score.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">量规评分</div>
  1018. </div> -->
  1019. <div v-if="tooC == 10">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/thirdToolList/time.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">倒计时</div>
  1026. </div>
  1027. <div v-if="tooC == 15">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/answer.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">问答</div>
  1034. </div>
  1035. <div v-if="tooC == 26">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../assets/icon/thirdToolList/courseDesign.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">课程设计</div>
  1042. </div>
  1043. <div v-if="tooC == 18">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/trainPlatform.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">训练服务器</div>
  1050. </div>
  1051. <div v-if="tooC == 16">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/work.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">作业提交</div>
  1058. </div>
  1059. <div v-if="tooC == 50">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/thirdToolList/plwork.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">批量上传</div>
  1066. </div>
  1067. <div v-if="tooC == 21">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/fourthToolList/program.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">AIoT Blockly</div>
  1074. </div>
  1075. <!-- <div v-if="tooC == 22">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/program.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AI体验</div>
  1082. </div> -->
  1083. <div v-if="tooC == 23">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI Python</div>
  1090. </div>
  1091. <div v-if="tooC == 24">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/fourthToolList/AIprogram.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">AI Blockly</div>
  1098. </div>
  1099. <div v-if="tooC == 25">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/thirdToolList/evalua.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">目标管理</div>
  1106. </div>
  1107. <div v-if="tooC == 31">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/secondToolList/networkPanel.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">数学画板</div>
  1114. </div>
  1115. <div v-if="tooC == 28">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/translation.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">翻译</div>
  1122. </div>
  1123. <div v-if="tooC == 37">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/mohe.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">魔盒识字</div>
  1130. </div>
  1131. <div v-if="tooC == 38">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/24game.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">24点</div>
  1138. </div>
  1139. <div v-if="tooC == 39">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/secondToolList/GeoGebra.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">GeoGebra</div>
  1146. </div>
  1147. <div v-if="tooC == 32">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../assets/icon/thirdToolList/code.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">源码编辑</div>
  1154. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1155. style="position: absolute;left: 110px;bottom: 30px;">
  1156. 上传文件
  1157. <input type="file" accept="*" style="display: none"
  1158. @change="beforeUpload1($event, 7, toolIndex)" />
  1159. </div> -->
  1160. </div>
  1161. <div v-if="tooC == 40">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../assets/icon/secondToolList/eval.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">个人评价</div>
  1168. </div>
  1169. <div v-if="tooC == 41">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/thirdToolList/select.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">选择匹配</div>
  1176. </div>
  1177. <div v-if="tooC == 44">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/thirdToolList/hanClass.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">汉字宫</div>
  1184. </div>
  1185. <div v-if="tooC == 47">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/fourthToolList/conSentences.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">排序</div>
  1192. </div>
  1193. <div v-if="tooC == 48">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/table.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">表格</div>
  1200. </div>
  1201. <div v-if="tooC == 52">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/text.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">文档</div>
  1208. </div>
  1209. <div v-if="tooC == 49">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/fourthToolList/group.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">学生分组</div>
  1216. </div>
  1217. <div v-if="tooC == 57">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/fourthToolList/cocopi.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">CocoPi</div>
  1224. </div>
  1225. <div v-if="tooC == 58">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/car.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">模拟驾驶</div>
  1232. </div>
  1233. <div v-if="tooC == 59">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../assets/icon/fourthToolList/lineSearch.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">路径搜索</div>
  1240. </div>
  1241. <div v-if="tooC == 60">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../assets/icon/fourthToolList/deepLearning.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">深度学习</div>
  1248. </div>
  1249. <div v-if="tooC == 61">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../assets/icon/fourthToolList/allHistory.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">全历史</div>
  1256. </div>
  1257. <div v-if="tooC == 62">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../assets/icon/fourthToolList/interVideo.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">交互视频</div>
  1264. </div>
  1265. <div v-if="tooC == 63">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../assets/icon/fourthToolList/Wood.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">海龟编程</div>
  1272. </div>
  1273. <div v-if="tooC == 71">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/fourthToolList/chatgpt.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">AI智能体</div>
  1280. </div>
  1281. <div v-if="tooC == 65">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../assets/icon/firstToolList/pickPeople.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">挑人</div>
  1288. </div>
  1289. <div v-if="tooC == 66">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../assets/icon/secondToolList/formulaEdi.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">公式编辑</div>
  1296. </div>
  1297. <div v-if="tooC == 67">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/secondToolList/molStr.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">分子结构</div>
  1304. </div>
  1305. <div v-if="tooC == 68">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/secondToolList/timeAxis.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">时间轴</div>
  1312. </div>
  1313. <div v-if="tooC == 69">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../assets/icon/secondToolList/english.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">英语写作</div>
  1320. </div>
  1321. <div v-if="tooC == 70">
  1322. <img
  1323. @click="addTools(tooC, toolIndex, taskCount)"
  1324. src="../assets/icon/thirdToolList/englishVoice.png"
  1325. alt
  1326. />
  1327. <div style="margin: 5px 0">英语口语</div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1333. <!-- <div class="toolTitle">工具描述</div> -->
  1334. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1335. <div style="height:100%;"
  1336. v-html="contentConvent(tool.toolDetail)"
  1337. v-if="toolDetailIndex != toolIndex"
  1338. ></div>
  1339. <div v-else @click.stop="" style="height:100%;">
  1340. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1341. </div>
  1342. </div>
  1343. <el-button
  1344. type="primary"
  1345. v-if="tool.tool[0] == 32"
  1346. style="position: absolute; right: 30px; top: -45px"
  1347. @click="addImg($event)"
  1348. >上传作业<input
  1349. type="file"
  1350. accept="*"
  1351. style="display: none"
  1352. @change="beforeUpload1($event, 7, toolIndex)"
  1353. /></el-button>
  1354. <el-button
  1355. type="primary"
  1356. v-if="tool.tool[0] == 15"
  1357. style="position: absolute; right: 30px; top: -45px"
  1358. @click="openWordCloud(toolIndex)"
  1359. >生成词云</el-button
  1360. >
  1361. <el-button
  1362. type="primary"
  1363. v-if="
  1364. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1365. "
  1366. style="position: absolute; right: 30px; top: -45px"
  1367. @click="uploadWorks(toolIndex)"
  1368. >导出作业</el-button
  1369. >
  1370. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1371. position: absolute;
  1372. right: 30px;
  1373. transform: translateY(-130%);
  1374. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1375. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1376. </div>
  1377. <div
  1378. v-if="
  1379. tType &&
  1380. tType == 2 &&
  1381. !sIsOpen &&
  1382. tool.tool.indexOf(16) != -1
  1383. "
  1384. class="worksBox"
  1385. >
  1386. <div
  1387. class="zuoyeYulan"
  1388. v-if="workStudent[toolIndex].length > 0"
  1389. >
  1390. <span class="worksTitle">作业预览</span>
  1391. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1392. </div>
  1393. <div
  1394. class="worksDetailBox"
  1395. v-if="workStudent[toolIndex].length > 0"
  1396. >
  1397. <div
  1398. class="works"
  1399. style="
  1400. width: 200px;
  1401. height: 140px;
  1402. margin: 10px 10px 10px 0;
  1403. box-shadow: 0 0 6px 1px #dfdada;
  1404. "
  1405. v-for="(w, wIndex) in workStudent[toolIndex]"
  1406. :key="wIndex"
  1407. >
  1408. <div class="workImg" v-if="w.type == 0">
  1409. <img
  1410. :src="w.works"
  1411. @click="previewImg(w.works,w)"
  1412. alt
  1413. />
  1414. <div
  1415. class="answerScore"
  1416. v-if="w.score"
  1417. @click.stop="openScore(w)"
  1418. :class="{
  1419. rightW:
  1420. w.userid == userid || tType == 1 || tType == 4,
  1421. }"
  1422. >
  1423. {{ JSON.parse(w.score).wScore }}分
  1424. </div>
  1425. <div
  1426. class="answerScore"
  1427. @click.stop="openScore(w)"
  1428. v-else-if="courseDetail.userid == userid"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. 评分
  1435. </div>
  1436. <img
  1437. class="deleteImg"
  1438. src="../assets/deleteworks.png"
  1439. v-if="
  1440. w.userid == userid || tType == 1 || tType == 4
  1441. "
  1442. @click.stop="deleteWorks(w.wid)"
  1443. alt
  1444. />
  1445. </div>
  1446. <div class="workImg" v-if="w.type == 1">
  1447. <img :src="word" @click="openFile(w.works,w)" alt />
  1448. <div
  1449. class="answerScore"
  1450. v-if="w.score"
  1451. @click.stop="openScore(w)"
  1452. :class="{
  1453. rightW:
  1454. w.userid == userid || tType == 1 || tType == 4,
  1455. }"
  1456. >
  1457. {{ JSON.parse(w.score).wScore }}分
  1458. </div>
  1459. <div
  1460. class="answerScore"
  1461. @click.stop="openScore(w)"
  1462. v-else-if="courseDetail.userid == userid"
  1463. :class="{
  1464. rightW:
  1465. w.userid == userid || tType == 1 || tType == 4,
  1466. }"
  1467. >
  1468. 评分
  1469. </div>
  1470. <img
  1471. class="deleteImg"
  1472. src="../assets/deleteworks.png"
  1473. v-if="
  1474. w.userid == userid || tType == 1 || tType == 4
  1475. "
  1476. @click.stop="deleteWorks(w.wid)"
  1477. alt
  1478. />
  1479. </div>
  1480. <div class="workImg" v-if="w.type == 3">
  1481. <img
  1482. style="cursor: pointer"
  1483. :src="video"
  1484. @click="openVideo(w)"
  1485. alt
  1486. />
  1487. <div
  1488. class="answerScore"
  1489. v-if="w.score"
  1490. @click.stop="openScore(w)"
  1491. :class="{
  1492. rightW:
  1493. w.userid == userid || tType == 1 || tType == 4,
  1494. }"
  1495. >
  1496. {{ JSON.parse(w.score).wScore }}分
  1497. </div>
  1498. <div
  1499. class="answerScore"
  1500. @click.stop="openScore(w)"
  1501. v-else-if="courseDetail.userid == userid"
  1502. :class="{
  1503. rightW:
  1504. w.userid == userid || tType == 1 || tType == 4,
  1505. }"
  1506. >
  1507. 评分
  1508. </div>
  1509. <img
  1510. class="deleteImg"
  1511. src="../assets/deleteworks.png"
  1512. v-if="
  1513. w.userid == userid || tType == 1 || tType == 4
  1514. "
  1515. @click.stop="deleteWorks(w.wid)"
  1516. alt
  1517. />
  1518. </div>
  1519. <div class="workImg" v-if="w.type == 12">
  1520. <img
  1521. style="cursor: pointer"
  1522. :src="word2"
  1523. @click="downloadFile(w.works)"
  1524. alt
  1525. />
  1526. <div
  1527. class="answerScore"
  1528. v-if="w.score"
  1529. @click.stop="openScore(w)"
  1530. :class="{
  1531. rightW:
  1532. w.userid == userid || tType == 1 || tType == 4,
  1533. }"
  1534. >
  1535. {{ JSON.parse(w.score).wScore }}分
  1536. </div>
  1537. <div
  1538. class="answerScore"
  1539. @click.stop="openScore(w)"
  1540. v-else-if="courseDetail.userid == userid"
  1541. :class="{
  1542. rightW:
  1543. w.userid == userid || tType == 1 || tType == 4,
  1544. }"
  1545. >
  1546. 评分
  1547. </div>
  1548. <img
  1549. class="deleteImg"
  1550. src="../assets/deleteworks.png"
  1551. v-if="
  1552. w.userid == userid || tType == 1 || tType == 4
  1553. "
  1554. @click.stop="deleteWorks(w.wid)"
  1555. alt
  1556. />
  1557. </div>
  1558. <div class="worksName">
  1559. <div>{{ w.sName }}</div>
  1560. </div>
  1561. </div>
  1562. </div>
  1563. </div>
  1564. <div
  1565. v-if="
  1566. tType &&
  1567. tType == 2 &&
  1568. !sIsOpen &&
  1569. tool.tool.indexOf(32) != -1
  1570. "
  1571. class="worksBox"
  1572. >
  1573. <div
  1574. class="zuoyeYulan"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <span class="worksTitle">作业预览</span>
  1578. </div>
  1579. <div
  1580. class="worksDetailBox"
  1581. v-if="workStudent[toolIndex].length > 0"
  1582. >
  1583. <div
  1584. class="works"
  1585. style="
  1586. width: 200px;
  1587. height: 140px;
  1588. margin: 10px 10px 10px 0;
  1589. box-shadow: 0 0 6px 1px #dfdada;
  1590. "
  1591. v-for="(w, wIndex) in workStudent[toolIndex]"
  1592. :key="wIndex"
  1593. >
  1594. <div class="workImg">
  1595. <img
  1596. :src="word2"
  1597. @click="downloadFile(w.works)"
  1598. alt
  1599. />
  1600. <div
  1601. class="answerScore"
  1602. v-if="w.score"
  1603. @click.stop="openScore(w)"
  1604. :class="{
  1605. rightW:
  1606. w.userid == userid || tType == 1 || tType == 4,
  1607. }"
  1608. >
  1609. {{ JSON.parse(w.score).wScore }}分
  1610. </div>
  1611. <div
  1612. class="answerScore"
  1613. @click.stop="openScore(w)"
  1614. v-else-if="courseDetail.userid == userid"
  1615. :class="{
  1616. rightW:
  1617. w.userid == userid || tType == 1 || tType == 4,
  1618. }"
  1619. >
  1620. 评分
  1621. </div>
  1622. <img
  1623. class="deleteImg"
  1624. src="../assets/deleteworks.png"
  1625. v-if="
  1626. w.userid == userid || tType == 1 || tType == 4
  1627. "
  1628. @click.stop="deleteWorks(w.wid)"
  1629. alt
  1630. />
  1631. </div>
  1632. <div class="worksName">
  1633. <div>{{ w.sName }}</div>
  1634. </div>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. <div
  1639. v-if="
  1640. tType &&
  1641. tType == 2 &&
  1642. !sIsOpen &&
  1643. tool.tool.indexOf(57) != -1
  1644. "
  1645. class="worksBox"
  1646. >
  1647. <div
  1648. class="zuoyeYulan"
  1649. v-if="workStudent[toolIndex].length > 0"
  1650. >
  1651. <span class="worksTitle">作业预览</span>
  1652. </div>
  1653. <div
  1654. class="worksDetailBox"
  1655. v-if="workStudent[toolIndex].length > 0"
  1656. >
  1657. <div
  1658. class="works"
  1659. style="
  1660. width: 200px;
  1661. height: 140px;
  1662. margin: 10px 10px 10px 0;
  1663. box-shadow: 0 0 6px 1px #dfdada;
  1664. "
  1665. v-for="(w, wIndex) in workStudent[toolIndex]"
  1666. :key="wIndex"
  1667. >
  1668. <div class="workImg">
  1669. <img
  1670. :src="word2"
  1671. @click="downloadFile(w.works)"
  1672. v-if="w.type == 12"
  1673. alt
  1674. />
  1675. <img
  1676. :src="word2"
  1677. @click="
  1678. openCocoPi(57, toolIndex, w.userid, w.sName)
  1679. "
  1680. v-else-if="w.type == 15"
  1681. alt
  1682. />
  1683. <div
  1684. class="answerScore"
  1685. v-if="w.score"
  1686. @click.stop="openScore(w)"
  1687. :class="{
  1688. rightW:
  1689. w.userid == userid || tType == 1 || tType == 4,
  1690. }"
  1691. >
  1692. {{ JSON.parse(w.score).wScore }}分
  1693. </div>
  1694. <div
  1695. class="answerScore"
  1696. @click.stop="openScore(w)"
  1697. v-else-if="courseDetail.userid == userid"
  1698. :class="{
  1699. rightW:
  1700. w.userid == userid || tType == 1 || tType == 4,
  1701. }"
  1702. >
  1703. 评分
  1704. </div>
  1705. <img
  1706. class="deleteImg"
  1707. src="../assets/deleteworks.png"
  1708. v-if="
  1709. w.userid == userid || tType == 1 || tType == 4
  1710. "
  1711. @click.stop="deleteWorks(w.wid)"
  1712. alt
  1713. />
  1714. </div>
  1715. <div class="worksName">
  1716. <div>{{ w.sName }}</div>
  1717. </div>
  1718. </div>
  1719. </div>
  1720. </div>
  1721. <div
  1722. v-if="
  1723. tType &&
  1724. tType == 2 &&
  1725. !sIsOpen &&
  1726. tool.tool.indexOf(4) != -1
  1727. "
  1728. class="worksBox"
  1729. >
  1730. <div
  1731. class="zuoyeYulan"
  1732. v-if="workStudent[toolIndex].length > 0"
  1733. >
  1734. <span class="worksTitle">作业预览</span>
  1735. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1736. </div>
  1737. <div
  1738. class="worksDetailBox"
  1739. v-if="workStudent[toolIndex].length > 0"
  1740. >
  1741. <div
  1742. class="isWorksName2"
  1743. v-for="(w, wIndex) in workStudent[toolIndex]"
  1744. :key="wIndex"
  1745. @click="
  1746. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1747. "
  1748. >
  1749. {{ w.sName }}
  1750. <img
  1751. class="deleteImg deleteImg2"
  1752. src="../assets/deleteworks.png"
  1753. v-if="w.userid == userid || tType == 1 || tType == 4"
  1754. @click.stop="deleteWorks(w.wid)"
  1755. alt
  1756. />
  1757. </div>
  1758. <!-- <div
  1759. class="works"
  1760. style="
  1761. width: 200px;
  1762. height: 140px;
  1763. border-radius: 10px;
  1764. box-shadow: 0 0 6px 1px #dfdada;
  1765. overflow: hidden;
  1766. "
  1767. v-for="(w, wIndex) in workStudent[toolIndex]"
  1768. :key="wIndex"
  1769. >
  1770. <div class="workImg">
  1771. <img
  1772. src="../assets/icon/works/noImg.png"
  1773. @click="
  1774. openTools(
  1775. 4,
  1776. toolIndex,
  1777. taskCount,
  1778. w.works,
  1779. w.sName
  1780. )
  1781. "
  1782. alt
  1783. />
  1784. </div>
  1785. <div class="worksName">
  1786. <div>{{ w.sName }}</div>
  1787. <div>{{ w.time }}</div>
  1788. </div>
  1789. </div> -->
  1790. </div>
  1791. </div>
  1792. <div
  1793. v-if="
  1794. tType &&
  1795. ((tType == 2 && sIsOpen == true) ||
  1796. tType == 1 ||
  1797. tType == 4) &&
  1798. tool.tool.indexOf(62) != -1
  1799. "
  1800. class="worksBox"
  1801. >
  1802. <div
  1803. class="zuoyeYulan"
  1804. v-if="
  1805. worksStudent.length &&
  1806. worksStudent[toolIndex].length > 0
  1807. "
  1808. >
  1809. <div class="worksTop">
  1810. <div>作业预览</div>
  1811. <div
  1812. class="corOpen"
  1813. @click="contract(toolIndex)"
  1814. v-if="
  1815. (isCloseList[toolIndex].isCloseBoolean) &&
  1816. isCloseList[toolIndex].isClose == 0
  1817. "
  1818. >
  1819. 折叠
  1820. </div>
  1821. <div
  1822. class="corOpen"
  1823. @click="contract(toolIndex)"
  1824. v-if="isCloseList[toolIndex].isClose == 1"
  1825. >
  1826. 展开
  1827. </div>
  1828. </div>
  1829. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1830. </div>
  1831. <div>
  1832. <div
  1833. :id="'tool-' + toolIndex"
  1834. :style="{
  1835. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1836. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1837. }"
  1838. class="worksDetailBox"
  1839. v-if="
  1840. worksStudent.length &&
  1841. worksStudent[toolIndex].length > 0
  1842. "
  1843. >
  1844. <div
  1845. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1846. :key="wIndex"
  1847. class="isWorksName2"
  1848. @click="
  1849. openTools(
  1850. 62,
  1851. toolIndex,
  1852. taskCount,
  1853. w.works,
  1854. w.sName
  1855. )
  1856. "
  1857. >
  1858. {{ w.sName }}
  1859. <img
  1860. class="deleteImg deleteImg2"
  1861. src="../assets/deleteworks.png"
  1862. v-if="
  1863. w.userid == userid || tType == 1 || tType == 4
  1864. "
  1865. @click.stop="deleteWorks(w.wid)"
  1866. alt
  1867. />
  1868. </div>
  1869. </div>
  1870. </div>
  1871. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1872. 未提交
  1873. </div>
  1874. <div
  1875. class="noWorksS"
  1876. v-if="noWorksS && noWorksS[toolIndex].length"
  1877. >
  1878. <div
  1879. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1880. :key="sIndex"
  1881. class="noWorksName"
  1882. >
  1883. <el-tooltip effect="dark" :content="s.student" placement="top">
  1884. <span>{{ s.student }}</span>
  1885. </el-tooltip>
  1886. </div>
  1887. </div>
  1888. </div>
  1889. <div
  1890. v-if="
  1891. tType &&
  1892. tType == 2 &&
  1893. !sIsOpen &&
  1894. tool.tool.indexOf(62) != -1
  1895. "
  1896. class="worksBox"
  1897. >
  1898. <div
  1899. class="zuoyeYulan"
  1900. v-if="workStudent[toolIndex].length > 0"
  1901. >
  1902. <span class="worksTitle">作业预览</span>
  1903. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1904. </div>
  1905. <div
  1906. class="worksDetailBox"
  1907. v-if="workStudent[toolIndex].length > 0"
  1908. >
  1909. <div
  1910. class="isWorksName2"
  1911. v-for="(w, wIndex) in workStudent[toolIndex]"
  1912. :key="wIndex"
  1913. @click="
  1914. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1915. "
  1916. >
  1917. {{ w.sName }}
  1918. <img
  1919. class="deleteImg deleteImg2"
  1920. src="../assets/deleteworks.png"
  1921. v-if="w.userid == userid || tType == 1 || tType == 4"
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. </div>
  1927. </div>
  1928. <div
  1929. v-if="
  1930. tType &&
  1931. tType == 2 &&
  1932. !sIsOpen &&
  1933. tool.tool.indexOf(45) != -1
  1934. "
  1935. class="worksBox"
  1936. >
  1937. <div
  1938. class="zuoyeYulan"
  1939. v-if="workStudent[toolIndex].length > 0"
  1940. >
  1941. <span class="worksTitle">作业预览</span>
  1942. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1943. </div>
  1944. <div
  1945. class="worksDetailBox"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <div
  1949. class="isWorksName2"
  1950. v-for="(w, wIndex) in workStudent[toolIndex]"
  1951. :key="wIndex"
  1952. @click="
  1953. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1954. "
  1955. >
  1956. {{ w.sName }}
  1957. <img
  1958. class="deleteImg deleteImg2"
  1959. src="../assets/deleteworks.png"
  1960. v-if="w.userid == userid || tType == 1 || tType == 4"
  1961. @click.stop="deleteWorks(w.wid)"
  1962. alt
  1963. />
  1964. </div>
  1965. </div>
  1966. </div>
  1967. <div
  1968. v-if="
  1969. tType &&
  1970. tType == 2 &&
  1971. !sIsOpen &&
  1972. tool.tool.indexOf(69) != -1
  1973. "
  1974. class="worksBox"
  1975. >
  1976. <div
  1977. class="zuoyeYulan"
  1978. v-if="workStudent[toolIndex].length > 0"
  1979. >
  1980. <span class="worksTitle">作业预览</span>
  1981. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1982. </div>
  1983. <div
  1984. class="worksDetailBox"
  1985. v-if="workStudent[toolIndex].length > 0"
  1986. >
  1987. <div
  1988. class="isWorksName2"
  1989. v-for="(w, wIndex) in workStudent[toolIndex]"
  1990. :key="wIndex"
  1991. @click="
  1992. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1993. "
  1994. >
  1995. {{ w.sName }}
  1996. <img
  1997. class="deleteImg deleteImg2"
  1998. src="../assets/deleteworks.png"
  1999. v-if="w.userid == userid || tType == 1 || tType == 4"
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. </div>
  2005. </div>
  2006. <div
  2007. v-if="
  2008. tType &&
  2009. tType == 2 &&
  2010. !sIsOpen &&
  2011. tool.tool.indexOf(15) != -1
  2012. "
  2013. class="worksBox"
  2014. >
  2015. <div
  2016. class="zuoyeYulan"
  2017. v-if="workStudent[toolIndex].length > 0"
  2018. >
  2019. <span class="worksTitle">作业预览</span>
  2020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2021. </div>
  2022. <div
  2023. class="worksDetailBox"
  2024. v-if="workStudent[toolIndex].length > 0"
  2025. >
  2026. <div
  2027. class="works"
  2028. v-for="(w, wIndex) in workStudent[toolIndex]"
  2029. :key="wIndex"
  2030. >
  2031. <div class="workImg">
  2032. <!-- <img
  2033. src="../assets/icon/works/noImg.png"
  2034. @click="openTools(15, toolIndex, taskCount, w.works)"
  2035. alt=""
  2036. />-->
  2037. <div class="answerBg">
  2038. <!-- <div>{{ w.sName }}</div> -->
  2039. <el-tooltip
  2040. class="item"
  2041. effect="light"
  2042. :content="JSON.parse(w.works)[0].answer"
  2043. placement="top"
  2044. >
  2045. <div class="answerContent">
  2046. {{ JSON.parse(w.works)[0].answer }}
  2047. </div>
  2048. </el-tooltip>
  2049. <div
  2050. class="answerScore"
  2051. v-if="w.score"
  2052. @click.stop="openScore(w)"
  2053. :class="{
  2054. rightW:
  2055. w.userid == userid ||
  2056. tType == 1 ||
  2057. tType == 4,
  2058. }"
  2059. >
  2060. {{ JSON.parse(w.score).wScore }}分
  2061. </div>
  2062. <div
  2063. class="answerScore"
  2064. @click.stop="openScore(w)"
  2065. v-else-if="courseDetail.userid == userid"
  2066. :class="{
  2067. rightW:
  2068. w.userid == userid ||
  2069. tType == 1 ||
  2070. tType == 4,
  2071. }"
  2072. >
  2073. 评分
  2074. </div>
  2075. <img
  2076. class="deleteImg"
  2077. src="../assets/deleteworks.png"
  2078. v-if="
  2079. w.userid == userid || tType == 1 || tType == 4
  2080. "
  2081. @click.stop="deleteWorks(w.wid)"
  2082. alt
  2083. />
  2084. </div>
  2085. <div class="comment">
  2086. <div class="worksName">
  2087. <div>{{ w.sName }}</div>
  2088. </div>
  2089. </div>
  2090. </div>
  2091. </div>
  2092. </div>
  2093. </div>
  2094. <div
  2095. v-if="
  2096. tType &&
  2097. tType == 2 &&
  2098. !sIsOpen &&
  2099. tool.tool.indexOf(1) != -1
  2100. "
  2101. class="worksBox"
  2102. >
  2103. <div
  2104. class="zuoyeYulan"
  2105. v-if="workStudent[toolIndex].length > 0"
  2106. >
  2107. <span class="worksTitle">作业预览</span>
  2108. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2109. </div>
  2110. <div
  2111. class="worksDetailBox"
  2112. v-if="workStudent[toolIndex].length > 0"
  2113. >
  2114. <div
  2115. class="works"
  2116. style="
  2117. width: 200px;
  2118. height: 140px;
  2119. margin: 10px 10px 10px 0;
  2120. box-shadow: 0 0 6px 1px #dfdada;
  2121. "
  2122. v-for="(w, wIndex) in workStudent[toolIndex]"
  2123. :key="wIndex"
  2124. >
  2125. <div class="workImg">
  2126. <img
  2127. :src="w.works"
  2128. @click="previewImg(w.works,w)"
  2129. alt
  2130. />
  2131. <div
  2132. class="answerScore"
  2133. v-if="w.score"
  2134. @click.stop="openScore(w)"
  2135. :class="{
  2136. rightW:
  2137. w.userid == userid || tType == 1 || tType == 4,
  2138. }"
  2139. >
  2140. {{ JSON.parse(w.score).wScore }}分
  2141. </div>
  2142. <div
  2143. class="answerScore"
  2144. @click.stop="openScore(w)"
  2145. v-else-if="courseDetail.userid == userid"
  2146. :class="{
  2147. rightW:
  2148. w.userid == userid || tType == 1 || tType == 4,
  2149. }"
  2150. >
  2151. 评分
  2152. </div>
  2153. <img
  2154. class="deleteImg"
  2155. src="../assets/deleteworks.png"
  2156. v-if="
  2157. w.userid == userid || tType == 1 || tType == 4
  2158. "
  2159. @click.stop="deleteWorks(w.wid)"
  2160. alt
  2161. />
  2162. </div>
  2163. <div class="worksName">
  2164. <div>{{ w.sName }}</div>
  2165. </div>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div
  2170. v-if="
  2171. tType &&
  2172. tType == 2 &&
  2173. !sIsOpen &&
  2174. tool.tool.indexOf(3) != -1
  2175. "
  2176. class="worksBox"
  2177. >
  2178. <div
  2179. class="zuoyeYulan"
  2180. v-if="workStudent[toolIndex].length > 0"
  2181. >
  2182. <span class="worksTitle">作业预览</span>
  2183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2184. </div>
  2185. <div
  2186. class="worksDetailBox"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <div
  2190. class="works"
  2191. style="
  2192. width: 200px;
  2193. height: 140px;
  2194. margin: 10px 10px 10px 0;
  2195. box-shadow: 0 0 6px 1px #dfdada;
  2196. "
  2197. v-for="(w, wIndex) in workStudent[toolIndex]"
  2198. :key="wIndex"
  2199. >
  2200. <div class="workImg">
  2201. <img
  2202. :src="w.works"
  2203. @click="previewImg(w.works,w)"
  2204. alt
  2205. />
  2206. <div
  2207. class="answerScore"
  2208. v-if="w.score"
  2209. @click.stop="openScore(w)"
  2210. :class="{
  2211. rightW:
  2212. w.userid == userid || tType == 1 || tType == 4,
  2213. }"
  2214. >
  2215. {{ JSON.parse(w.score).wScore }}分
  2216. </div>
  2217. <div
  2218. class="answerScore"
  2219. @click.stop="openScore(w)"
  2220. v-else-if="courseDetail.userid == userid"
  2221. :class="{
  2222. rightW:
  2223. w.userid == userid || tType == 1 || tType == 4,
  2224. }"
  2225. >
  2226. 评分
  2227. </div>
  2228. <img
  2229. class="deleteImg"
  2230. src="../assets/deleteworks.png"
  2231. v-if="
  2232. w.userid == userid || tType == 1 || tType == 4
  2233. "
  2234. @click.stop="deleteWorks(w.wid)"
  2235. alt
  2236. />
  2237. </div>
  2238. <div class="worksName">
  2239. <div>{{ w.sName }}</div>
  2240. </div>
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div
  2245. v-if="
  2246. tType &&
  2247. tType == 2 &&
  2248. !sIsOpen &&
  2249. tool.tool.indexOf(6) != -1
  2250. "
  2251. class="worksBox"
  2252. >
  2253. <div
  2254. class="zuoyeYulan"
  2255. v-if="workStudent[toolIndex].length > 0"
  2256. >
  2257. <span class="worksTitle">作业预览</span>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div
  2261. class="worksDetailBox"
  2262. v-if="workStudent[toolIndex].length > 0"
  2263. >
  2264. <div
  2265. class="works"
  2266. style="
  2267. width: 200px;
  2268. height: 140px;
  2269. margin: 10px 10px 10px 0;
  2270. box-shadow: 0 0 6px 1px #dfdada;
  2271. "
  2272. v-for="(w, wIndex) in workStudent[toolIndex]"
  2273. :key="wIndex"
  2274. >
  2275. <div class="workImg">
  2276. <img
  2277. :src="w.works"
  2278. @click="previewImg(w.works,w)"
  2279. alt
  2280. />
  2281. <div
  2282. class="answerScore"
  2283. v-if="w.score"
  2284. @click.stop="openScore(w)"
  2285. :class="{
  2286. rightW:
  2287. w.userid == userid || tType == 1 || tType == 4,
  2288. }"
  2289. >
  2290. {{ JSON.parse(w.score).wScore }}分
  2291. </div>
  2292. <div
  2293. class="answerScore"
  2294. @click.stop="openScore(w)"
  2295. v-else-if="courseDetail.userid == userid"
  2296. :class="{
  2297. rightW:
  2298. w.userid == userid || tType == 1 || tType == 4,
  2299. }"
  2300. >
  2301. 评分
  2302. </div>
  2303. <img
  2304. class="deleteImg"
  2305. src="../assets/deleteworks.png"
  2306. v-if="
  2307. w.userid == userid || tType == 1 || tType == 4
  2308. "
  2309. @click.stop="deleteWorks(w.wid)"
  2310. alt
  2311. />
  2312. </div>
  2313. <div class="worksName">
  2314. <div>{{ w.sName }}</div>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. </div>
  2319. <div
  2320. v-if="
  2321. tType &&
  2322. tType == 2 &&
  2323. !sIsOpen &&
  2324. tool.tool.indexOf(7) != -1
  2325. "
  2326. class="worksBox"
  2327. >
  2328. <div
  2329. class="zuoyeYulan"
  2330. v-if="workStudent[toolIndex].length > 0"
  2331. >
  2332. <span class="worksTitle">作业预览</span>
  2333. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2334. </div>
  2335. <div
  2336. class="worksDetailBox"
  2337. v-if="workStudent[toolIndex].length > 0"
  2338. >
  2339. <div
  2340. class="works"
  2341. style="
  2342. width: 200px;
  2343. height: 140px;
  2344. margin: 10px 10px 10px 0;
  2345. box-shadow: 0 0 6px 1px #dfdada;
  2346. "
  2347. v-for="(w, wIndex) in workStudent[toolIndex]"
  2348. :key="wIndex"
  2349. >
  2350. <div class="workImg">
  2351. <img
  2352. :src="w.works"
  2353. @click="previewImg(w.works,w)"
  2354. alt
  2355. />
  2356. <div
  2357. class="answerScore"
  2358. v-if="w.score"
  2359. @click.stop="openScore(w)"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid || tType == 1 || tType == 4,
  2363. }"
  2364. >
  2365. {{ JSON.parse(w.score).wScore }}分
  2366. </div>
  2367. <div
  2368. class="answerScore"
  2369. @click.stop="openScore(w)"
  2370. v-else-if="courseDetail.userid == userid"
  2371. :class="{
  2372. rightW:
  2373. w.userid == userid || tType == 1 || tType == 4,
  2374. }"
  2375. >
  2376. 评分
  2377. </div>
  2378. <img
  2379. class="deleteImg"
  2380. src="../assets/deleteworks.png"
  2381. v-if="
  2382. w.userid == userid || tType == 1 || tType == 4
  2383. "
  2384. @click.stop="deleteWorks(w.wid)"
  2385. alt
  2386. />
  2387. </div>
  2388. <div class="worksName">
  2389. <div>{{ w.sName }}</div>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. </div>
  2394. <div
  2395. v-if="
  2396. tType &&
  2397. tType == 2 &&
  2398. !sIsOpen &&
  2399. tool.tool.indexOf(26) != -1
  2400. "
  2401. class="worksBox"
  2402. >
  2403. <div
  2404. class="zuoyeYulan"
  2405. v-if="workStudent[toolIndex].length > 0"
  2406. >
  2407. <span class="worksTitle">作业预览</span>
  2408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2409. </div>
  2410. <div
  2411. class="worksDetailBox"
  2412. v-if="workStudent[toolIndex].length > 0"
  2413. >
  2414. <div
  2415. class="works"
  2416. style="
  2417. width: 200px;
  2418. height: 140px;
  2419. margin: 10px 10px 10px 0;
  2420. box-shadow: 0 0 6px 1px #dfdada;
  2421. "
  2422. v-for="(w, wIndex) in workStudent[toolIndex]"
  2423. :key="wIndex"
  2424. >
  2425. <div class="workImg">
  2426. <img
  2427. :src="w.works"
  2428. @click="previewImg(w.works,w)"
  2429. alt
  2430. />
  2431. <img
  2432. class="deleteImg"
  2433. src="../assets/deleteworks.png"
  2434. v-if="
  2435. w.userid == userid || tType == 1 || tType == 4
  2436. "
  2437. @click.stop="deleteWorks(w.wid)"
  2438. alt
  2439. />
  2440. </div>
  2441. <div class="worksName">
  2442. <div>{{ w.sName }}</div>
  2443. </div>
  2444. </div>
  2445. </div>
  2446. </div>
  2447. <div
  2448. v-if="
  2449. tType &&
  2450. ((tType == 2 && sIsOpen == true) ||
  2451. tType == 1 ||
  2452. tType == 4) &&
  2453. tool.tool.indexOf(16) != -1
  2454. "
  2455. class="worksBox"
  2456. >
  2457. <div
  2458. class="zuoyeYulan"
  2459. v-if="
  2460. (worksStudent.length &&
  2461. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2462. "
  2463. >
  2464. <div class="worksTop">
  2465. <div>作业预览</div>
  2466. <div
  2467. class="corOpen"
  2468. @click="contract(toolIndex)"
  2469. v-if="
  2470. (isCloseList[toolIndex].isCloseBoolean) &&
  2471. isCloseList[toolIndex].isClose == 0
  2472. "
  2473. >
  2474. 折叠
  2475. </div>
  2476. <div
  2477. class="corOpen"
  2478. @click="contract(toolIndex)"
  2479. v-if="isCloseList[toolIndex].isClose == 1"
  2480. >
  2481. 展开
  2482. </div>
  2483. </div>
  2484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2485. </div>
  2486. <div
  2487. class="group_workBox"
  2488. v-for="(g, gindex) in courseGroup.group"
  2489. :key="gindex"
  2490. >
  2491. <div class="group_box">
  2492. <div class="group_title">
  2493. <el-tooltip
  2494. class="item"
  2495. effect="light"
  2496. :content="g.name"
  2497. placement="top"
  2498. >
  2499. <div class="group_name">{{ g.name }}</div>
  2500. </el-tooltip>
  2501. </div>
  2502. <div
  2503. class="group_work"
  2504. v-if="
  2505. g.works &&
  2506. g.works.length &&
  2507. g.works[toolIndex].length
  2508. "
  2509. >
  2510. <div
  2511. class="works"
  2512. style="
  2513. width: 200px;
  2514. height: 140px;
  2515. margin: 10px 10px 10px 0;
  2516. border-radius: 15px;
  2517. box-shadow: 0 0 6px 1px #dfdada;
  2518. "
  2519. v-for="(w, wIndex) in g.works[toolIndex]"
  2520. :key="wIndex"
  2521. :class="w.type == 1 ? 'isTypeOne' : ''"
  2522. >
  2523. <div class="workImg" v-if="w.type == 0">
  2524. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2525. <img
  2526. :src="w.works"
  2527. @click="previewImg(w.works,w)"
  2528. alt
  2529. />
  2530. <div
  2531. class="answerScore"
  2532. v-if="w.score"
  2533. @click.stop="openScore(w)"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid ||
  2537. tType == 1 ||
  2538. tType == 4 ||
  2539. w.ateacher == userid,
  2540. }"
  2541. >
  2542. {{ JSON.parse(w.score).wScore }}分
  2543. </div>
  2544. <div
  2545. class="answerScore"
  2546. @click.stop="openScore(w)"
  2547. v-else-if="courseDetail.userid == userid"
  2548. :class="{
  2549. rightW:
  2550. w.userid == userid ||
  2551. tType == 1 ||
  2552. tType == 4 ||
  2553. w.ateacher == userid,
  2554. }"
  2555. >
  2556. 评分
  2557. </div>
  2558. <img
  2559. class="deleteImg"
  2560. src="../assets/deleteworks.png"
  2561. v-if="
  2562. w.userid == userid || tType == 1 || tType == 4
  2563. "
  2564. @click.stop="deleteWorks(w.wid)"
  2565. alt
  2566. />
  2567. </div>
  2568. <div class="workImg" v-if="w.type == 1">
  2569. <img :src="word" @click="openFile(w.works,w)" alt />
  2570. <!-- @click="openFile(w.works)" -->
  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 == 3">
  2610. <img
  2611. style="cursor: pointer"
  2612. :src="video"
  2613. @click="openVideo(w)"
  2614. alt
  2615. />
  2616. <!-- @click="openVideo(w.works)" -->
  2617. <div
  2618. class="answerScore"
  2619. v-if="w.score"
  2620. @click.stop="openScore(w)"
  2621. :class="{
  2622. rightW:
  2623. w.userid == userid ||
  2624. tType == 1 ||
  2625. tType == 4 ||
  2626. w.ateacher == userid,
  2627. }"
  2628. >
  2629. {{ JSON.parse(w.score).wScore }}分
  2630. </div>
  2631. <div
  2632. class="answerScore"
  2633. @click.stop="openScore(w)"
  2634. v-else-if="courseDetail.userid == userid"
  2635. :class="{
  2636. rightW:
  2637. w.userid == userid ||
  2638. tType == 1 ||
  2639. tType == 4 ||
  2640. w.ateacher == userid,
  2641. }"
  2642. >
  2643. 评分
  2644. </div>
  2645. <img
  2646. class="deleteImg"
  2647. src="../assets/deleteworks.png"
  2648. v-if="
  2649. w.userid == userid || tType == 1 || tType == 4
  2650. "
  2651. @click.stop="deleteWorks(w.wid)"
  2652. alt
  2653. />
  2654. </div>
  2655. <div class="workImg" v-if="w.type == 12">
  2656. <img
  2657. style="cursor: pointer"
  2658. :src="word2"
  2659. @click="downloadFile(w.works)"
  2660. alt
  2661. />
  2662. <!-- @click="openVideo(w.works)" -->
  2663. <div
  2664. class="answerScore"
  2665. v-if="w.score"
  2666. @click.stop="openScore(w)"
  2667. :class="{
  2668. rightW:
  2669. w.userid == userid ||
  2670. tType == 1 ||
  2671. tType == 4 ||
  2672. w.ateacher == userid,
  2673. }"
  2674. >
  2675. {{ JSON.parse(w.score).wScore }}分
  2676. </div>
  2677. <div
  2678. class="answerScore"
  2679. @click.stop="openScore(w)"
  2680. v-else-if="courseDetail.userid == userid"
  2681. :class="{
  2682. rightW:
  2683. w.userid == userid ||
  2684. tType == 1 ||
  2685. tType == 4 ||
  2686. w.ateacher == userid,
  2687. }"
  2688. >
  2689. 评分
  2690. </div>
  2691. <img
  2692. class="deleteImg"
  2693. src="../assets/deleteworks.png"
  2694. v-if="
  2695. w.userid == userid || tType == 1 || tType == 4
  2696. "
  2697. @click.stop="deleteWorks(w.wid)"
  2698. alt
  2699. />
  2700. </div>
  2701. <div class="comment" style="min-width: 200px">
  2702. <div class="worksName">
  2703. <div>{{ w.sName }}</div>
  2704. </div>
  2705. <div class="commentList">
  2706. <div class="commentList">
  2707. <div
  2708. class="commentImg"
  2709. @click="
  2710. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2711. "
  2712. >
  2713. <img
  2714. :src="w.isLikes == true ? likes : noLikes"
  2715. alt=""
  2716. />
  2717. </div>
  2718. <div>{{ w.likesCount }}</div>
  2719. </div>
  2720. <div
  2721. class="commentList"
  2722. style="margin-right: 15px"
  2723. >
  2724. <div
  2725. class="commentImg"
  2726. @click="
  2727. commentOther(
  2728. w,
  2729. toolIndex,
  2730. wIndex,
  2731. null,
  2732. g.id
  2733. )
  2734. "
  2735. >
  2736. <img
  2737. src="../assets/icon/comment/comment.png"
  2738. alt=""
  2739. />
  2740. </div>
  2741. <div>{{ w.commentCount }}</div>
  2742. </div>
  2743. </div>
  2744. </div>
  2745. </div>
  2746. </div>
  2747. <div class="group_work" v-else>暂无提交作业</div>
  2748. </div>
  2749. </div>
  2750. <div
  2751. :id="'tool-' + toolIndex"
  2752. :style="{
  2753. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2754. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2755. }"
  2756. class="worksDetailBox"
  2757. v-if="
  2758. worksStudent.length &&
  2759. worksStudent[toolIndex].length > 0
  2760. "
  2761. >
  2762. <div
  2763. class="works"
  2764. style="
  2765. width: 200px;
  2766. height: 140px;
  2767. margin: 10px 10px 10px 0;
  2768. border-radius: 15px;
  2769. box-shadow: 0 0 6px 1px #dfdada;
  2770. "
  2771. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2772. :key="wIndex"
  2773. :class="w.type == 1 ? 'isTypeOne' : ''"
  2774. >
  2775. <div class="workImg" v-if="w.type == 0">
  2776. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2777. <img
  2778. :src="w.works"
  2779. @click="previewImg(w.works,w)"
  2780. alt
  2781. />
  2782. <div
  2783. class="answerScore"
  2784. v-if="w.score"
  2785. @click.stop="openScore(w)"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid ||
  2789. tType == 1 ||
  2790. tType == 4 ||
  2791. w.ateacher == userid,
  2792. }"
  2793. >
  2794. {{ JSON.parse(w.score).wScore }}分
  2795. </div>
  2796. <div
  2797. class="answerScore"
  2798. @click.stop="openScore(w)"
  2799. v-else-if="courseDetail.userid == userid"
  2800. :class="{
  2801. rightW:
  2802. w.userid == userid ||
  2803. tType == 1 ||
  2804. tType == 4 ||
  2805. w.ateacher == userid,
  2806. }"
  2807. >
  2808. 评分
  2809. </div>
  2810. <img
  2811. class="deleteImg"
  2812. src="../assets/deleteworks.png"
  2813. v-if="
  2814. w.userid == userid || tType == 1 || tType == 4
  2815. "
  2816. @click.stop="deleteWorks(w.wid)"
  2817. alt
  2818. />
  2819. </div>
  2820. <div class="workImg" v-if="w.type == 1">
  2821. <img :src="word" @click="openFile(w.works,w)" alt />
  2822. <!-- @click="openFile(w.works)" -->
  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 == 3">
  2862. <img
  2863. style="cursor: pointer"
  2864. :src="video"
  2865. @click="openVideo(w)"
  2866. alt
  2867. />
  2868. <!-- @click="openVideo(w.works)" -->
  2869. <div
  2870. class="answerScore"
  2871. v-if="w.score"
  2872. @click.stop="openScore(w)"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. {{ JSON.parse(w.score).wScore }}分
  2882. </div>
  2883. <div
  2884. class="answerScore"
  2885. @click.stop="openScore(w)"
  2886. v-else-if="courseDetail.userid == userid"
  2887. :class="{
  2888. rightW:
  2889. w.userid == userid ||
  2890. tType == 1 ||
  2891. tType == 4 ||
  2892. w.ateacher == userid,
  2893. }"
  2894. >
  2895. 评分
  2896. </div>
  2897. <img
  2898. class="deleteImg"
  2899. src="../assets/deleteworks.png"
  2900. v-if="
  2901. w.userid == userid || tType == 1 || tType == 4
  2902. "
  2903. @click.stop="deleteWorks(w.wid)"
  2904. alt
  2905. />
  2906. </div>
  2907. <div class="workImg" v-if="w.type == 12">
  2908. <img
  2909. style="cursor: pointer"
  2910. :src="word2"
  2911. @click="downloadFile(w.works)"
  2912. alt
  2913. />
  2914. <!-- @click="openVideo(w.works)" -->
  2915. <div
  2916. class="answerScore"
  2917. v-if="w.score"
  2918. @click.stop="openScore(w)"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. {{ JSON.parse(w.score).wScore }}分
  2928. </div>
  2929. <div
  2930. class="answerScore"
  2931. @click.stop="openScore(w)"
  2932. v-else-if="courseDetail.userid == userid"
  2933. :class="{
  2934. rightW:
  2935. w.userid == userid ||
  2936. tType == 1 ||
  2937. tType == 4 ||
  2938. w.ateacher == userid,
  2939. }"
  2940. >
  2941. 评分
  2942. </div>
  2943. <img
  2944. class="deleteImg"
  2945. src="../assets/deleteworks.png"
  2946. v-if="
  2947. w.userid == userid || tType == 1 || tType == 4
  2948. "
  2949. @click.stop="deleteWorks(w.wid)"
  2950. alt
  2951. />
  2952. </div>
  2953. <div class="comment" style="min-width: 200px">
  2954. <div class="worksName">
  2955. <div>{{ w.sName }}</div>
  2956. </div>
  2957. <div class="commentList">
  2958. <div class="commentList">
  2959. <div
  2960. class="commentImg"
  2961. @click="
  2962. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2963. "
  2964. >
  2965. <img
  2966. :src="w.isLikes == true ? likes : noLikes"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div>{{ w.likesCount }}</div>
  2971. </div>
  2972. <div class="commentList" style="margin-right: 15px">
  2973. <div
  2974. class="commentImg"
  2975. @click="commentOther(w, toolIndex, wIndex)"
  2976. >
  2977. <img
  2978. src="../assets/icon/comment/comment.png"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.commentCount }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2989. 未提交
  2990. </div>
  2991. <div
  2992. class="noWorksS"
  2993. v-if="noWorksS && noWorksS[toolIndex].length"
  2994. >
  2995. <div
  2996. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2997. :key="sIndex"
  2998. class="noWorksName"
  2999. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3000. >
  3001. <el-tooltip effect="dark" :content="s.student" placement="top">
  3002. <span>{{ s.student }}</span>
  3003. </el-tooltip>
  3004. </div>
  3005. </div>
  3006. </div>
  3007. <div
  3008. v-if="
  3009. tType &&
  3010. ((tType == 2 && sIsOpen == true) ||
  3011. tType == 1 ||
  3012. tType == 4) &&
  3013. tool.tool.indexOf(70) != -1
  3014. "
  3015. class="worksBox"
  3016. >
  3017. <div
  3018. class="zuoyeYulan"
  3019. v-if="
  3020. (worksStudent.length &&
  3021. worksStudent[toolIndex].length > 0)
  3022. "
  3023. >
  3024. <div class="worksTop">
  3025. <div>作业预览</div>
  3026. <div
  3027. class="corOpen"
  3028. @click="contract(toolIndex)"
  3029. v-if="
  3030. (isCloseList[toolIndex].isCloseBoolean) &&
  3031. isCloseList[toolIndex].isClose == 0
  3032. "
  3033. >
  3034. 折叠
  3035. </div>
  3036. <div
  3037. class="corOpen"
  3038. @click="contract(toolIndex)"
  3039. v-if="isCloseList[toolIndex].isClose == 1"
  3040. >
  3041. 展开
  3042. </div>
  3043. </div>
  3044. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3045. </div>
  3046. <div
  3047. :id="'tool-' + toolIndex"
  3048. :style="{
  3049. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3050. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3051. }"
  3052. class="worksDetailBox"
  3053. v-if="
  3054. worksStudent.length &&
  3055. worksStudent[toolIndex].length > 0
  3056. "
  3057. >
  3058. <div
  3059. class="works"
  3060. style="
  3061. width: 200px;
  3062. height: 140px;
  3063. margin: 10px 10px 10px 0;
  3064. border-radius: 15px;
  3065. box-shadow: 0 0 6px 1px #dfdada;
  3066. "
  3067. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3068. :key="wIndex"
  3069. :class="w.type == 1 ? 'isTypeOne' : ''"
  3070. >
  3071. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3072. <img :src="word" alt />
  3073. <img
  3074. class="deleteImg"
  3075. src="../assets/deleteworks.png"
  3076. v-if="
  3077. w.userid == userid || tType == 1 || tType == 4
  3078. "
  3079. @click.stop="deleteWorks(w.wid)"
  3080. alt
  3081. />
  3082. </div>
  3083. <div class="comment" style="min-width: 200px">
  3084. <div class="worksName">
  3085. <div>{{ w.sName }}</div>
  3086. </div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3091. 未提交
  3092. </div>
  3093. <div
  3094. class="noWorksS"
  3095. v-if="noWorksS && noWorksS[toolIndex].length"
  3096. >
  3097. <div
  3098. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3099. :key="sIndex"
  3100. class="noWorksName"
  3101. >
  3102. <el-tooltip effect="dark" :content="s.student" placement="top">
  3103. <span>{{ s.student }}</span>
  3104. </el-tooltip>
  3105. </div>
  3106. </div>
  3107. </div>
  3108. <div
  3109. v-if="
  3110. tType &&
  3111. tType == 2 &&
  3112. !sIsOpen &&
  3113. tool.tool.indexOf(70) != -1
  3114. "
  3115. class="worksBox"
  3116. >
  3117. <div
  3118. class="zuoyeYulan"
  3119. v-if="workStudent[toolIndex].length > 0"
  3120. >
  3121. <span class="worksTitle">作业预览</span>
  3122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3123. </div>
  3124. <div
  3125. class="worksDetailBox"
  3126. v-if="workStudent[toolIndex].length > 0"
  3127. >
  3128. <div
  3129. class="works"
  3130. style="
  3131. width: 200px;
  3132. height: 140px;
  3133. margin: 10px 10px 10px 0;
  3134. box-shadow: 0 0 6px 1px #dfdada;
  3135. "
  3136. v-for="(w, wIndex) in workStudent[toolIndex]"
  3137. :key="wIndex"
  3138. >
  3139. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3140. <img :src="word" alt />
  3141. <img
  3142. class="deleteImg"
  3143. src="../assets/deleteworks.png"
  3144. v-if="
  3145. w.userid == userid || tType == 1 || tType == 4
  3146. "
  3147. @click.stop="deleteWorks(w.wid)"
  3148. alt
  3149. />
  3150. </div>
  3151. <div class="worksName">
  3152. <div>{{ w.sName }}</div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. <div
  3158. v-if="
  3159. tType &&
  3160. ((tType == 2 && sIsOpen == true) ||
  3161. tType == 1 ||
  3162. tType == 4) &&
  3163. tool.tool.indexOf(32) != -1
  3164. "
  3165. class="worksBox"
  3166. >
  3167. <div
  3168. class="zuoyeYulan"
  3169. v-if="
  3170. worksStudent.length &&
  3171. worksStudent[toolIndex].length > 0
  3172. "
  3173. >
  3174. <div class="worksTop">
  3175. <div>作业预览</div>
  3176. <div
  3177. class="corOpen"
  3178. @click="contract(toolIndex)"
  3179. v-if="
  3180. (isCloseList[toolIndex].isCloseBoolean) &&
  3181. isCloseList[toolIndex].isClose == 0
  3182. "
  3183. >
  3184. 折叠
  3185. </div>
  3186. <div
  3187. class="corOpen"
  3188. @click="contract(toolIndex)"
  3189. v-if="isCloseList[toolIndex].isClose == 1"
  3190. >
  3191. 展开
  3192. </div>
  3193. </div>
  3194. </div>
  3195. <div
  3196. :id="'tool-' + toolIndex"
  3197. class="worksDetailBox"
  3198. :style="{
  3199. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3200. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3201. }"
  3202. v-if="
  3203. worksStudent.length &&
  3204. worksStudent[toolIndex].length > 0
  3205. "
  3206. >
  3207. <div
  3208. class="works"
  3209. style="
  3210. width: 200px;
  3211. height: 140px;
  3212. margin: 10px 10px 10px 0;
  3213. border-radius: 15px;
  3214. box-shadow: 0 0 6px 1px #dfdada;
  3215. "
  3216. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3217. :key="wIndex"
  3218. :class="w.type == 1 ? 'isTypeOne' : ''"
  3219. >
  3220. <div class="workImg">
  3221. <img
  3222. :src="word2"
  3223. @click="downloadFile(w.works)"
  3224. alt
  3225. />
  3226. <div
  3227. class="answerScore"
  3228. v-if="w.score"
  3229. @click.stop="openScore(w)"
  3230. :class="{
  3231. rightW:
  3232. w.userid == userid ||
  3233. tType == 1 ||
  3234. tType == 4 ||
  3235. w.ateacher == userid,
  3236. }"
  3237. >
  3238. {{ JSON.parse(w.score).wScore }}分
  3239. </div>
  3240. <div
  3241. class="answerScore"
  3242. @click.stop="openScore(w)"
  3243. v-else-if="courseDetail.userid == userid"
  3244. :class="{
  3245. rightW:
  3246. w.userid == userid ||
  3247. tType == 1 ||
  3248. tType == 4 ||
  3249. w.ateacher == userid,
  3250. }"
  3251. >
  3252. 评分
  3253. </div>
  3254. <img
  3255. class="deleteImg"
  3256. src="../assets/deleteworks.png"
  3257. v-if="
  3258. w.userid == userid || tType == 1 || tType == 4
  3259. "
  3260. @click.stop="deleteWorks(w.wid)"
  3261. alt
  3262. />
  3263. </div>
  3264. <div class="comment" style="min-width: 200px">
  3265. <div class="worksName">
  3266. <div>{{ w.sName }}</div>
  3267. </div>
  3268. <div class="commentList">
  3269. <div class="commentList">
  3270. <div
  3271. class="commentImg"
  3272. @click="
  3273. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3274. "
  3275. >
  3276. <img
  3277. :src="w.isLikes == true ? likes : noLikes"
  3278. alt=""
  3279. />
  3280. </div>
  3281. <div>{{ w.likesCount }}</div>
  3282. </div>
  3283. <div class="commentList" style="margin-right: 15px">
  3284. <div
  3285. class="commentImg"
  3286. @click="commentOther(w, toolIndex, wIndex)"
  3287. >
  3288. <img
  3289. src="../assets/icon/comment/comment.png"
  3290. alt=""
  3291. />
  3292. </div>
  3293. <div>{{ w.commentCount }}</div>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3300. 未提交
  3301. </div>
  3302. <div
  3303. class="noWorksS"
  3304. v-if="noWorksS && noWorksS[toolIndex].length"
  3305. >
  3306. <div
  3307. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3308. :key="sIndex"
  3309. class="noWorksName"
  3310. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3311. >
  3312. <el-tooltip effect="dark" :content="s.student" placement="top">
  3313. <span>{{ s.student }}</span>
  3314. </el-tooltip>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. <div
  3319. v-if="
  3320. tType &&
  3321. ((tType == 2 && sIsOpen == true) ||
  3322. tType == 1 ||
  3323. tType == 4) &&
  3324. tool.tool.indexOf(57) != -1
  3325. "
  3326. class="worksBox"
  3327. >
  3328. <div
  3329. class="zuoyeYulan"
  3330. v-if="
  3331. worksStudent.length &&
  3332. worksStudent[toolIndex].length > 0
  3333. "
  3334. >
  3335. <div class="worksTop">
  3336. <div>作业预览</div>
  3337. <div
  3338. class="corOpen"
  3339. @click="contract(toolIndex)"
  3340. v-if="
  3341. (isCloseList[toolIndex].isCloseBoolean) &&
  3342. isCloseList[toolIndex].isClose == 0
  3343. "
  3344. >
  3345. 折叠
  3346. </div>
  3347. <div
  3348. class="corOpen"
  3349. @click="contract(toolIndex)"
  3350. v-if="isCloseList[toolIndex].isClose == 1"
  3351. >
  3352. 展开
  3353. </div>
  3354. </div>
  3355. </div>
  3356. <div
  3357. :id="'tool-' + toolIndex"
  3358. class="worksDetailBox"
  3359. :style="{
  3360. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3361. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3362. }"
  3363. v-if="
  3364. worksStudent.length &&
  3365. worksStudent[toolIndex].length > 0
  3366. "
  3367. >
  3368. <div
  3369. class="works"
  3370. style="
  3371. width: 200px;
  3372. height: 140px;
  3373. margin: 10px 10px 10px 0;
  3374. border-radius: 15px;
  3375. box-shadow: 0 0 6px 1px #dfdada;
  3376. "
  3377. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3378. :key="wIndex"
  3379. :class="w.type == 1 ? 'isTypeOne' : ''"
  3380. >
  3381. <div class="workImg">
  3382. <img
  3383. :src="word2"
  3384. @click="downloadFile(w.works)"
  3385. v-if="w.type == 12"
  3386. alt
  3387. />
  3388. <img
  3389. :src="word2"
  3390. @click="
  3391. openCocoPi(57, toolIndex, w.userid, w.sName)
  3392. "
  3393. v-else-if="w.type == 15"
  3394. alt
  3395. />
  3396. <div
  3397. class="answerScore"
  3398. v-if="w.score"
  3399. @click.stop="openScore(w)"
  3400. :class="{
  3401. rightW:
  3402. w.userid == userid ||
  3403. tType == 1 ||
  3404. tType == 4 ||
  3405. w.ateacher == userid,
  3406. }"
  3407. >
  3408. {{ JSON.parse(w.score).wScore }}分
  3409. </div>
  3410. <div
  3411. class="answerScore"
  3412. @click.stop="openScore(w)"
  3413. v-else-if="courseDetail.userid == userid"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid,
  3420. }"
  3421. >
  3422. 评分
  3423. </div>
  3424. <img
  3425. class="deleteImg"
  3426. src="../assets/deleteworks.png"
  3427. v-if="
  3428. w.userid == userid || tType == 1 || tType == 4
  3429. "
  3430. @click.stop="deleteWorks(w.wid)"
  3431. alt
  3432. />
  3433. </div>
  3434. <div class="comment" style="min-width: 200px">
  3435. <div class="worksName">
  3436. <div>{{ w.sName }}</div>
  3437. </div>
  3438. <div class="commentList">
  3439. <div class="commentList">
  3440. <div
  3441. class="commentImg"
  3442. @click="
  3443. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3444. "
  3445. >
  3446. <img
  3447. :src="w.isLikes == true ? likes : noLikes"
  3448. alt=""
  3449. />
  3450. </div>
  3451. <div>{{ w.likesCount }}</div>
  3452. </div>
  3453. <div class="commentList" style="margin-right: 15px">
  3454. <div
  3455. class="commentImg"
  3456. @click="commentOther(w, toolIndex, wIndex)"
  3457. >
  3458. <img
  3459. src="../assets/icon/comment/comment.png"
  3460. alt=""
  3461. />
  3462. </div>
  3463. <div>{{ w.commentCount }}</div>
  3464. </div>
  3465. </div>
  3466. </div>
  3467. </div>
  3468. </div>
  3469. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3470. 未提交
  3471. </div>
  3472. <div
  3473. class="noWorksS"
  3474. v-if="noWorksS && noWorksS[toolIndex].length"
  3475. >
  3476. <div
  3477. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3478. :key="sIndex"
  3479. class="noWorksName"
  3480. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3481. >
  3482. <el-tooltip effect="dark" :content="s.student" placement="top">
  3483. <span>{{ s.student }}</span>
  3484. </el-tooltip>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3489. <div
  3490. class="zuoyeYulan"
  3491. v-if="
  3492. worksStudent.length &&
  3493. worksStudent[toolIndex].length > 0
  3494. "
  3495. >
  3496. <span class="worksTitle">作业预览</span>
  3497. <div
  3498. class="corOpen"
  3499. @click="contract(toolIndex)"
  3500. v-if="
  3501. (isCloseList[toolIndex].isCloseBoolean) &&
  3502. isCloseList[toolIndex].isClose == 0
  3503. "
  3504. >
  3505. 折叠
  3506. </div>
  3507. <div
  3508. class="corOpen"
  3509. @click="contract(toolIndex)"
  3510. v-if="isCloseList[toolIndex].isClose == 1"
  3511. >
  3512. 展开
  3513. </div>
  3514. </div>
  3515. <div
  3516. :id="'tool-' + toolIndex"
  3517. :style="{
  3518. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3519. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3520. }"
  3521. class="worksDetailBox"
  3522. v-if="
  3523. worksStudent.length &&
  3524. worksStudent[toolIndex].length > 0
  3525. "
  3526. >
  3527. <div
  3528. class="works"
  3529. style="
  3530. width: 200px;
  3531. height: 140px;
  3532. margin: 10px 10px 10px 0;
  3533. border-radius: 15px;
  3534. box-shadow: 0 0 6px 1px #dfdada;
  3535. "
  3536. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3537. :key="wIndex"
  3538. :class="w.type == 1 ? 'isTypeOne' : ''"
  3539. >
  3540. <div class="workImg" v-if="w.type == 0">
  3541. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3542. <img
  3543. :src="w.works"
  3544. @click="previewImg(w.works,w)"
  3545. alt
  3546. />
  3547. <div
  3548. class="answerScore"
  3549. v-if="w.score"
  3550. @click.stop="openScore(w)"
  3551. :class="{
  3552. rightW:
  3553. w.userid == userid ||
  3554. tType == 1 ||
  3555. tType == 4 ||
  3556. w.ateacher == userid,
  3557. }"
  3558. >
  3559. {{ JSON.parse(w.score).wScore }}分
  3560. </div>
  3561. <div
  3562. class="answerScore"
  3563. @click.stop="openScore(w)"
  3564. v-else-if="courseDetail.userid == userid"
  3565. :class="{
  3566. rightW:
  3567. w.userid == userid ||
  3568. tType == 1 ||
  3569. tType == 4 ||
  3570. w.ateacher == userid,
  3571. }"
  3572. >
  3573. 评分
  3574. </div>
  3575. <img
  3576. class="deleteImg"
  3577. src="../assets/deleteworks.png"
  3578. v-if="
  3579. w.userid == userid || tType == 1 || tType == 4
  3580. "
  3581. @click.stop="deleteWorks(w.wid)"
  3582. alt
  3583. />
  3584. </div>
  3585. <div
  3586. class="workImg"
  3587. style="cursor: pointer"
  3588. v-if="w.type == 1"
  3589. >
  3590. <img :src="word" @click="openFile(w.works,w)" alt />
  3591. <!-- @click="openFile(w.works)" -->
  3592. <div
  3593. class="answerScore"
  3594. v-if="w.score"
  3595. @click.stop="openScore(w)"
  3596. :class="{
  3597. rightW:
  3598. w.userid == userid ||
  3599. tType == 1 ||
  3600. tType == 4 ||
  3601. w.ateacher == userid,
  3602. }"
  3603. >
  3604. {{ JSON.parse(w.score).wScore }}分
  3605. </div>
  3606. <div
  3607. class="answerScore"
  3608. @click.stop="openScore(w)"
  3609. v-else-if="courseDetail.userid == userid"
  3610. :class="{
  3611. rightW:
  3612. w.userid == userid ||
  3613. tType == 1 ||
  3614. tType == 4 ||
  3615. w.ateacher == userid,
  3616. }"
  3617. >
  3618. 评分
  3619. </div>
  3620. <img
  3621. class="deleteImg"
  3622. src="../assets/deleteworks.png"
  3623. v-if="
  3624. w.userid == userid || tType == 1 || tType == 4
  3625. "
  3626. @click.stop="deleteWorks(w.wid)"
  3627. alt
  3628. />
  3629. </div>
  3630. <div class="workImg" v-if="w.type == 3">
  3631. <img
  3632. style="cursor: pointer"
  3633. :src="video"
  3634. @click="openVideo(w)"
  3635. alt
  3636. />
  3637. <!-- @click="openVideo(w.works)" -->
  3638. <div
  3639. class="answerScore"
  3640. v-if="w.score"
  3641. @click.stop="openScore(w)"
  3642. :class="{
  3643. rightW:
  3644. w.userid == userid ||
  3645. tType == 1 ||
  3646. tType == 4 ||
  3647. w.ateacher == userid,
  3648. }"
  3649. >
  3650. {{ JSON.parse(w.score).wScore }}分
  3651. </div>
  3652. <div
  3653. class="answerScore"
  3654. @click.stop="openScore(w)"
  3655. v-else-if="courseDetail.userid == userid"
  3656. :class="{
  3657. rightW:
  3658. w.userid == userid ||
  3659. tType == 1 ||
  3660. tType == 4 ||
  3661. w.ateacher == userid,
  3662. }"
  3663. >
  3664. 评分
  3665. </div>
  3666. <img
  3667. class="deleteImg"
  3668. src="../assets/deleteworks.png"
  3669. v-if="
  3670. w.userid == userid || tType == 1 || tType == 4
  3671. "
  3672. @click.stop="deleteWorks(w.wid)"
  3673. alt
  3674. />
  3675. </div>
  3676. <div class="comment" style="min-width: 200px">
  3677. <div class="worksName">
  3678. <div
  3679. style="cursor: pointer"
  3680. @click="
  3681. openSname(w.sName, w.wid, toolIndex, w.userid)
  3682. "
  3683. >
  3684. {{ w.sName }}
  3685. </div>
  3686. </div>
  3687. <div class="commentList">
  3688. <div class="commentList">
  3689. <div
  3690. class="commentImg"
  3691. @click="
  3692. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3693. "
  3694. >
  3695. <img
  3696. :src="w.isLikes == true ? likes : noLikes"
  3697. alt=""
  3698. />
  3699. </div>
  3700. <div>{{ w.likesCount }}</div>
  3701. </div>
  3702. <div class="commentList" style="margin-right: 15px">
  3703. <div
  3704. class="commentImg"
  3705. @click="commentOther(w, toolIndex, wIndex)"
  3706. >
  3707. <img
  3708. src="../assets/icon/comment/comment.png"
  3709. alt=""
  3710. />
  3711. </div>
  3712. <div>{{ w.commentCount }}</div>
  3713. </div>
  3714. </div>
  3715. </div>
  3716. </div>
  3717. </div>
  3718. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3719. 未提交
  3720. </div>
  3721. <div
  3722. class="noWorksS"
  3723. v-if="noWorksS && noWorksS[toolIndex].length"
  3724. >
  3725. <div
  3726. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3727. :key="sIndex"
  3728. class="noWorksName"
  3729. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3730. >
  3731. <el-tooltip effect="dark" :content="s.student" placement="top">
  3732. <span>{{ s.student }}</span>
  3733. </el-tooltip>
  3734. </div>
  3735. </div>
  3736. </div>
  3737. <div
  3738. v-if="
  3739. tType &&
  3740. ((tType == 2 && sIsOpen == true) ||
  3741. tType == 1 ||
  3742. tType == 4) &&
  3743. tool.tool.indexOf(4) != -1 &&
  3744. (tool.askJson[0].answer ||
  3745. tool.askJson[0].answer === 0) &&
  3746. checkJson[toolIndex].length
  3747. "
  3748. class="xuan_right_box"
  3749. >
  3750. <div
  3751. class="tool_right_box"
  3752. v-for="(item, index) in tool.askJson"
  3753. :key="index"
  3754. >
  3755. <div style="width: calc(100% - 30px);">
  3756. <el-tooltip
  3757. effect="light"
  3758. :content="index + 1 + '、' + item.askstitle"
  3759. placement="top"
  3760. popper-class="text_tooltip"
  3761. >
  3762. <div
  3763. style="
  3764. width: calc(100% - 130px);
  3765. display: block;
  3766. white-space: nowrap;
  3767. overflow: hidden;
  3768. text-overflow: ellipsis;
  3769. word-break: break-word;
  3770. cursor: pointer;
  3771. "
  3772. >
  3773. {{ index + 1 + "、" + item.askstitle }}
  3774. </div>
  3775. </el-tooltip>
  3776. </div>
  3777. <div class="right_box_xuan">
  3778. <span>正确率</span>
  3779. <span>{{
  3780. (checkJson[toolIndex][index].right
  3781. ? checkJson[toolIndex][index].right
  3782. : 0) + "%"
  3783. }}</span>
  3784. </div>
  3785. </div>
  3786. </div>
  3787. <div
  3788. class="xuan_right_box"
  3789. style="background: unset; padding: 0 10px"
  3790. v-if="
  3791. tType &&
  3792. ((tType == 2 && sIsOpen == true) ||
  3793. tType == 1 ||
  3794. tType == 4) &&
  3795. tool.tool.indexOf(4) != -1
  3796. "
  3797. >
  3798. <AskStatic
  3799. v-if="
  3800. worksStudent.length &&
  3801. worksStudent[toolIndex].length > 0
  3802. "
  3803. :askJSON="tool"
  3804. :checkJson="checkJson[toolIndex]"
  3805. ></AskStatic>
  3806. </div>
  3807. <div
  3808. v-if="
  3809. tType &&
  3810. ((tType == 2 && sIsOpen == true) ||
  3811. tType == 1 ||
  3812. tType == 4) &&
  3813. tool.tool.indexOf(4) != -1
  3814. "
  3815. class="worksBox"
  3816. >
  3817. <div
  3818. class="zuoyeYulan"
  3819. v-if="
  3820. worksStudent.length &&
  3821. worksStudent[toolIndex].length > 0
  3822. "
  3823. >
  3824. <div class="worksTop">
  3825. <div>作业预览</div>
  3826. <div
  3827. class="corOpen"
  3828. @click="contract(toolIndex)"
  3829. v-if="
  3830. (isCloseList[toolIndex].isCloseBoolean) &&
  3831. isCloseList[toolIndex].isClose == 0
  3832. "
  3833. >
  3834. 折叠
  3835. </div>
  3836. <div
  3837. class="corOpen"
  3838. @click="contract(toolIndex)"
  3839. v-if="isCloseList[toolIndex].isClose == 1"
  3840. >
  3841. 展开
  3842. </div>
  3843. </div>
  3844. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3845. </div>
  3846. <div>
  3847. <div
  3848. :id="'tool-' + toolIndex"
  3849. :style="{
  3850. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3851. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3852. }"
  3853. class="worksDetailBox"
  3854. v-if="
  3855. worksStudent.length &&
  3856. worksStudent[toolIndex].length > 0
  3857. "
  3858. >
  3859. <div
  3860. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3861. :key="wIndex"
  3862. class="isWorksName2"
  3863. @click="
  3864. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3865. "
  3866. >
  3867. {{ w.sName }}
  3868. <img
  3869. class="deleteImg deleteImg2"
  3870. src="../assets/deleteworks.png"
  3871. v-if="
  3872. w.userid == userid || tType == 1 || tType == 4
  3873. "
  3874. @click.stop="deleteWorks(w.wid)"
  3875. alt
  3876. />
  3877. </div>
  3878. <!-- <div class="works" style="
  3879. width: 200px;
  3880. height: 140px;
  3881. border-radius: 10px;
  3882. box-shadow: 0 0 6px 1px #dfdada;
  3883. overflow: hidden;
  3884. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3885. <div class="workImg">
  3886. <img src="../assets/icon/works/noImg.png" @click="
  3887. openTools(
  3888. 4,
  3889. toolIndex,
  3890. taskCount,
  3891. w.works,
  3892. w.sName
  3893. )
  3894. " alt />
  3895. </div>
  3896. <div class="worksName">
  3897. <div>{{ w.sName }}</div>
  3898. <div>{{ w.time }}</div>
  3899. </div>
  3900. </div> -->
  3901. </div>
  3902. </div>
  3903. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3904. 未提交
  3905. </div>
  3906. <div
  3907. class="noWorksS"
  3908. v-if="noWorksS && noWorksS[toolIndex].length"
  3909. >
  3910. <div
  3911. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3912. :key="sIndex"
  3913. class="noWorksName"
  3914. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3915. >
  3916. <el-tooltip effect="dark" :content="s.student" placement="top">
  3917. <span>{{ s.student }}</span>
  3918. </el-tooltip>
  3919. </div>
  3920. </div>
  3921. </div>
  3922. <div
  3923. v-if="
  3924. tType &&
  3925. ((tType == 2 && sIsOpen == true) ||
  3926. tType == 1 ||
  3927. tType == 4) &&
  3928. tool.tool.indexOf(45) != -1 &&
  3929. (tool.testJson.testJson[0].answer ||
  3930. tool.testJson.testJson[0].answer === 0) &&
  3931. checkJson[toolIndex].length
  3932. "
  3933. class="xuan_right_box"
  3934. >
  3935. <div
  3936. class="tool_right_box"
  3937. v-for="(item, index) in tool.testJson.testJson"
  3938. :key="index"
  3939. >
  3940. <div class="right_box_xuan" style="margin-right: 10px">
  3941. <span>正确率</span>
  3942. <span>{{
  3943. (checkJson[toolIndex][index].right
  3944. ? checkJson[toolIndex][index].right
  3945. : 0) + "%"
  3946. }}</span>
  3947. </div>
  3948. <div style="width: calc(100% - 30px);">
  3949. <el-tooltip
  3950. effect="light"
  3951. :content="index + 1 + '、' + item.teststitle"
  3952. placement="top"
  3953. popper-class="text_tooltip"
  3954. >
  3955. <div
  3956. style="
  3957. width: calc(100% - 130px);
  3958. display: block;
  3959. white-space: nowrap;
  3960. overflow: hidden;
  3961. text-overflow: ellipsis;
  3962. word-break: break-word;
  3963. cursor: pointer;
  3964. "
  3965. >
  3966. {{ index + 1 + "、" + item.teststitle }}
  3967. </div>
  3968. </el-tooltip>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. <div
  3973. class="xuan_right_box"
  3974. style="background: unset; padding: 0 10px; width: 91.5%"
  3975. v-if="
  3976. tType &&
  3977. ((tType == 2 && sIsOpen == true) ||
  3978. tType == 1 ||
  3979. tType == 4) &&
  3980. tool.tool.indexOf(45) != -1
  3981. "
  3982. >
  3983. <AskStatic2
  3984. v-if="
  3985. worksStudent.length &&
  3986. worksStudent[toolIndex].length > 0
  3987. "
  3988. :askJSON="tool"
  3989. :checkJson="checkJson[toolIndex]"
  3990. ></AskStatic2>
  3991. </div>
  3992. <div
  3993. v-if="
  3994. tType &&
  3995. ((tType == 2 && sIsOpen == true) ||
  3996. tType == 1 ||
  3997. tType == 4) &&
  3998. tool.tool.indexOf(45) != -1
  3999. "
  4000. class="worksBox"
  4001. >
  4002. <div
  4003. class="zuoyeYulan"
  4004. v-if="
  4005. worksStudent.length &&
  4006. worksStudent[toolIndex].length > 0
  4007. "
  4008. >
  4009. <div class="worksTop">
  4010. <div>作业预览</div>
  4011. <div
  4012. class="corOpen"
  4013. @click="contract(toolIndex)"
  4014. v-if="
  4015. (isCloseList[toolIndex].isCloseBoolean) &&
  4016. isCloseList[toolIndex].isClose == 0
  4017. "
  4018. >
  4019. 折叠
  4020. </div>
  4021. <div
  4022. class="corOpen"
  4023. @click="contract(toolIndex)"
  4024. v-if="isCloseList[toolIndex].isClose == 1"
  4025. >
  4026. 展开
  4027. </div>
  4028. </div>
  4029. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4030. </div>
  4031. <div>
  4032. <div
  4033. :id="'tool-' + toolIndex"
  4034. :style="{
  4035. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4036. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4037. }"
  4038. class="worksDetailBox"
  4039. v-if="
  4040. worksStudent.length &&
  4041. worksStudent[toolIndex].length > 0
  4042. "
  4043. >
  4044. <div
  4045. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4046. :key="wIndex"
  4047. class="isWorksName2"
  4048. @click="
  4049. openTools(
  4050. 45,
  4051. toolIndex,
  4052. taskCount,
  4053. w.works,
  4054. w.sName
  4055. )
  4056. "
  4057. >
  4058. {{ w.sName }}
  4059. <img
  4060. class="deleteImg deleteImg2"
  4061. src="../assets/deleteworks.png"
  4062. v-if="
  4063. w.userid == userid || tType == 1 || tType == 4
  4064. "
  4065. @click.stop="deleteWorks(w.wid)"
  4066. alt
  4067. />
  4068. </div>
  4069. </div>
  4070. </div>
  4071. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4072. 未提交
  4073. </div>
  4074. <div
  4075. class="noWorksS"
  4076. v-if="noWorksS && noWorksS[toolIndex].length"
  4077. >
  4078. <div
  4079. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4080. :key="sIndex"
  4081. class="noWorksName"
  4082. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4083. >
  4084. <el-tooltip effect="dark" :content="s.student" placement="top">
  4085. <span>{{ s.student }}</span>
  4086. </el-tooltip>
  4087. </div>
  4088. </div>
  4089. </div>
  4090. <div
  4091. v-if="
  4092. tType &&
  4093. ((tType == 2 && sIsOpen == true) ||
  4094. tType == 1 ||
  4095. tType == 4) &&
  4096. tool.tool.indexOf(69) != -1
  4097. "
  4098. class="worksBox"
  4099. >
  4100. <div
  4101. class="zuoyeYulan"
  4102. v-if="
  4103. worksStudent.length &&
  4104. worksStudent[toolIndex].length > 0
  4105. "
  4106. >
  4107. <div class="worksTop">
  4108. <div>作业预览</div>
  4109. <div
  4110. class="corOpen"
  4111. @click="contract(toolIndex)"
  4112. v-if="
  4113. (isCloseList[toolIndex].isCloseBoolean) &&
  4114. isCloseList[toolIndex].isClose == 0
  4115. "
  4116. >
  4117. 折叠
  4118. </div>
  4119. <div
  4120. class="corOpen"
  4121. @click="contract(toolIndex)"
  4122. v-if="isCloseList[toolIndex].isClose == 1"
  4123. >
  4124. 展开
  4125. </div>
  4126. </div>
  4127. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4128. </div>
  4129. <div>
  4130. <div
  4131. :id="'tool-' + toolIndex"
  4132. :style="{
  4133. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4134. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4135. }"
  4136. class="worksDetailBox"
  4137. v-if="
  4138. worksStudent.length &&
  4139. worksStudent[toolIndex].length > 0
  4140. "
  4141. >
  4142. <div
  4143. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4144. :key="wIndex"
  4145. class="isWorksName2"
  4146. style="width: 160px;height: 65px;line-height: 65px;"
  4147. @click="
  4148. openTools(
  4149. 69,
  4150. toolIndex,
  4151. taskCount,
  4152. w.works,
  4153. w.sName,
  4154. w.wid
  4155. )
  4156. "
  4157. >
  4158. {{ w.sName }}
  4159. <img
  4160. class="deleteImg1"
  4161. src="../assets/evaEnglish.png"
  4162. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4163. alt
  4164. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4165. />
  4166. <img
  4167. class="deleteImg deleteImg2"
  4168. src="../assets/deleteworks.png"
  4169. v-if="
  4170. w.userid == userid || tType == 1 || tType == 4
  4171. "
  4172. @click.stop="deleteWorks(w.wid)"
  4173. alt
  4174. />
  4175. </div>
  4176. </div>
  4177. </div>
  4178. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4179. 未提交
  4180. </div>
  4181. <div
  4182. class="noWorksS"
  4183. v-if="noWorksS && noWorksS[toolIndex].length"
  4184. >
  4185. <div
  4186. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4187. :key="sIndex"
  4188. class="noWorksName"
  4189. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4190. >
  4191. <el-tooltip effect="dark" :content="s.student" placement="top">
  4192. <span>{{ s.student }}</span>
  4193. </el-tooltip>
  4194. </div>
  4195. </div>
  4196. </div>
  4197. <div
  4198. v-if="
  4199. tType &&
  4200. ((tType == 2 && sIsOpen == true) ||
  4201. tType == 1 ||
  4202. tType == 4) &&
  4203. tool.tool.indexOf(15) != -1
  4204. "
  4205. class="worksBox"
  4206. >
  4207. <div
  4208. class="zuoyeYulan"
  4209. v-if="
  4210. (worksStudent.length &&
  4211. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4212. "
  4213. >
  4214. <div class="worksTop">
  4215. <div>作业预览</div>
  4216. <div
  4217. class="corOpen"
  4218. @click="contract(toolIndex)"
  4219. v-if="
  4220. (isCloseList[toolIndex].isCloseBoolean) &&
  4221. isCloseList[toolIndex].isClose == 0
  4222. "
  4223. >
  4224. 折叠
  4225. </div>
  4226. <div
  4227. class="corOpen"
  4228. @click="contract(toolIndex)"
  4229. v-if="isCloseList[toolIndex].isClose == 1"
  4230. >
  4231. 展开
  4232. </div>
  4233. </div>
  4234. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4235. </div>
  4236. <div
  4237. class="group_workBox"
  4238. v-for="(g, gindex) in courseGroup.group"
  4239. :key="gindex"
  4240. >
  4241. <div class="group_box">
  4242. <div class="group_title">
  4243. <el-tooltip
  4244. class="item"
  4245. effect="light"
  4246. :content="g.name"
  4247. placement="top"
  4248. >
  4249. <div class="group_name">{{ g.name }}</div>
  4250. </el-tooltip>
  4251. </div>
  4252. <div
  4253. class="group_work"
  4254. v-if="
  4255. g.works &&
  4256. g.works.length &&
  4257. g.works[toolIndex].length
  4258. "
  4259. >
  4260. <div
  4261. class="works"
  4262. v-for="(w, wIndex) in g.works[toolIndex]"
  4263. :key="wIndex"
  4264. >
  4265. <div
  4266. class="workImg"
  4267. style="
  4268. border-radius: 15px;
  4269. box-shadow: 0px 0px 5px 5px #eee;
  4270. "
  4271. >
  4272. <div
  4273. class="answerBg"
  4274. style="border-radius: 15px 15px 0 0"
  4275. @click="
  4276. commentOther(w, toolIndex, wIndex, null, g.id)
  4277. "
  4278. >
  4279. <div class="answerContent">
  4280. {{ JSON.parse(w.works)[0].answer }}
  4281. </div>
  4282. <div
  4283. class="answerScore"
  4284. v-if="w.score"
  4285. @click.stop="openScore(w)"
  4286. :class="{
  4287. rightW:
  4288. w.userid == userid ||
  4289. tType == 1 ||
  4290. tType == 4,
  4291. }"
  4292. >
  4293. {{ JSON.parse(w.score).wScore }}分
  4294. </div>
  4295. <div
  4296. class="answerScore"
  4297. @click.stop="openScore(w)"
  4298. v-else-if="courseDetail.userid == userid"
  4299. :class="{
  4300. rightW:
  4301. w.userid == userid ||
  4302. tType == 1 ||
  4303. tType == 4,
  4304. }"
  4305. >
  4306. 评分
  4307. </div>
  4308. <img
  4309. class="deleteImg"
  4310. src="../assets/deleteworks.png"
  4311. v-if="
  4312. w.userid == userid ||
  4313. tType == 1 ||
  4314. tType == 4
  4315. "
  4316. @click.stop="deleteWorks(w.wid)"
  4317. alt
  4318. />
  4319. </div>
  4320. <div class="comment">
  4321. <div class="worksName">
  4322. <div>{{ w.sName }}</div>
  4323. </div>
  4324. <div class="commentList">
  4325. <div
  4326. class="commentImg"
  4327. @click="
  4328. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4329. "
  4330. >
  4331. <img
  4332. :src="w.isLikes == true ? likes : noLikes"
  4333. alt=""
  4334. />
  4335. </div>
  4336. <div>{{ w.likesCount }}</div>
  4337. </div>
  4338. <div
  4339. class="commentList"
  4340. style="margin-right: 15px"
  4341. >
  4342. <div
  4343. class="commentImg"
  4344. @click="
  4345. commentOther(
  4346. w,
  4347. toolIndex,
  4348. wIndex,
  4349. null,
  4350. g.id
  4351. )
  4352. "
  4353. >
  4354. <img
  4355. src="../assets/icon/comment/comment.png"
  4356. alt=""
  4357. />
  4358. </div>
  4359. <div>{{ w.commentCount }}</div>
  4360. </div>
  4361. </div>
  4362. </div>
  4363. </div>
  4364. </div>
  4365. <div class="group_work" v-else>暂无提交作业</div>
  4366. </div>
  4367. </div>
  4368. <div
  4369. :id="'tool-' + toolIndex"
  4370. :style="{
  4371. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4372. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4373. }"
  4374. class="worksDetailBox"
  4375. v-if="
  4376. worksStudent.length &&
  4377. worksStudent[toolIndex].length > 0
  4378. "
  4379. >
  4380. <div
  4381. class="works"
  4382. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4383. :key="wIndex"
  4384. >
  4385. <div
  4386. class="workImg"
  4387. style="
  4388. border-radius: 15px;
  4389. box-shadow: 0px 0px 5px 5px #eee;
  4390. "
  4391. >
  4392. <!-- <img
  4393. src="../assets/icon/works/noImg.png"
  4394. @click="openTools(15, toolIndex, taskCount, w.works)"
  4395. alt=""
  4396. />-->
  4397. <div
  4398. class="answerBg"
  4399. style="border-radius: 15px 15px 0 0"
  4400. @click="commentOther(w, toolIndex, wIndex)"
  4401. >
  4402. <!-- <div>{{ w.sName }}</div> -->
  4403. <div class="answerContent">
  4404. {{ JSON.parse(w.works)[0].answer }}
  4405. </div>
  4406. <div
  4407. class="answerScore"
  4408. v-if="w.score"
  4409. @click.stop="openScore(w)"
  4410. :class="{
  4411. rightW:
  4412. w.userid == userid ||
  4413. tType == 1 ||
  4414. tType == 4,
  4415. }"
  4416. >
  4417. {{ JSON.parse(w.score).wScore }}分
  4418. </div>
  4419. <div
  4420. class="answerScore"
  4421. @click.stop="openScore(w)"
  4422. v-else-if="courseDetail.userid == userid"
  4423. :class="{
  4424. rightW:
  4425. w.userid == userid ||
  4426. tType == 1 ||
  4427. tType == 4,
  4428. }"
  4429. >
  4430. 评分
  4431. </div>
  4432. <img
  4433. class="deleteImg"
  4434. src="../assets/deleteworks.png"
  4435. v-if="
  4436. w.userid == userid || tType == 1 || tType == 4
  4437. "
  4438. @click.stop="deleteWorks(w.wid)"
  4439. alt
  4440. />
  4441. </div>
  4442. <div class="comment">
  4443. <div class="worksName">
  4444. <div>{{ w.sName }}</div>
  4445. </div>
  4446. <div class="commentList">
  4447. <div
  4448. class="commentImg"
  4449. @click="
  4450. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4451. "
  4452. >
  4453. <img
  4454. :src="w.isLikes == true ? likes : noLikes"
  4455. alt=""
  4456. />
  4457. </div>
  4458. <div>{{ w.likesCount }}</div>
  4459. </div>
  4460. <div class="commentList" style="margin-right: 15px">
  4461. <div
  4462. class="commentImg"
  4463. @click="commentOther(w, toolIndex, wIndex)"
  4464. >
  4465. <img
  4466. src="../assets/icon/comment/comment.png"
  4467. alt=""
  4468. />
  4469. </div>
  4470. <div>{{ w.commentCount }}</div>
  4471. </div>
  4472. </div>
  4473. </div>
  4474. </div>
  4475. </div>
  4476. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4477. 未提交
  4478. </div>
  4479. <div
  4480. class="noWorksS"
  4481. v-if="noWorksS && noWorksS[toolIndex].length"
  4482. >
  4483. <div
  4484. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4485. :key="sIndex"
  4486. class="noWorksName"
  4487. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4488. >
  4489. <el-tooltip effect="dark" :content="s.student" placement="top">
  4490. <span>{{ s.student }}</span>
  4491. </el-tooltip>
  4492. </div>
  4493. </div>
  4494. </div>
  4495. <div
  4496. v-if="
  4497. tType &&
  4498. ((tType == 2 && sIsOpen == true) ||
  4499. tType == 1 ||
  4500. tType == 4) &&
  4501. tool.tool.indexOf(1) != -1
  4502. "
  4503. class="worksBox"
  4504. >
  4505. <div
  4506. class="zuoyeYulan"
  4507. v-if="
  4508. (worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4510. "
  4511. >
  4512. <div class="worksTop">
  4513. <div>作业预览</div>
  4514. <div
  4515. class="corOpen"
  4516. @click="contract(toolIndex)"
  4517. v-if="
  4518. (isCloseList[toolIndex].isCloseBoolean) &&
  4519. isCloseList[toolIndex].isClose == 0
  4520. "
  4521. >
  4522. 折叠
  4523. </div>
  4524. <div
  4525. class="corOpen"
  4526. @click="contract(toolIndex)"
  4527. v-if="isCloseList[toolIndex].isClose == 1"
  4528. >
  4529. 展开
  4530. </div>
  4531. </div>
  4532. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4533. </div>
  4534. <div
  4535. class="group_workBox"
  4536. v-for="(g, gindex) in courseGroup.group"
  4537. :key="gindex"
  4538. >
  4539. <div class="group_box">
  4540. <div class="group_title">
  4541. <el-tooltip
  4542. class="item"
  4543. effect="light"
  4544. :content="g.name"
  4545. placement="top"
  4546. >
  4547. <div class="group_name">{{ g.name }}</div>
  4548. </el-tooltip>
  4549. </div>
  4550. <div
  4551. class="group_work"
  4552. v-if="
  4553. g.works &&
  4554. g.works.length &&
  4555. g.works[toolIndex].length
  4556. "
  4557. >
  4558. <div
  4559. class="works"
  4560. style="
  4561. width: 200px;
  4562. height: 140px;
  4563. margin: 10px 10px 10px 0;
  4564. border-radius: 15px;
  4565. box-shadow: 0 0 6px 1px #dfdada;
  4566. "
  4567. v-for="(w, wIndex) in g.works[toolIndex]"
  4568. :key="wIndex"
  4569. :class="w.type == 1 ? 'isTypeOne' : ''"
  4570. >
  4571. <div class="workImg">
  4572. <img
  4573. :src="w.works"
  4574. @click="previewImg(w.works,w)"
  4575. alt
  4576. />
  4577. <div
  4578. class="answerScore"
  4579. v-if="w.score"
  4580. @click.stop="openScore(w)"
  4581. :class="{
  4582. rightW:
  4583. w.userid == userid ||
  4584. tType == 1 ||
  4585. tType == 4,
  4586. }"
  4587. >
  4588. {{ JSON.parse(w.score).wScore }}分
  4589. </div>
  4590. <div
  4591. class="answerScore"
  4592. @click.stop="openScore(w)"
  4593. v-else-if="courseDetail.userid == userid"
  4594. :class="{
  4595. rightW:
  4596. w.userid == userid ||
  4597. tType == 1 ||
  4598. tType == 4,
  4599. }"
  4600. >
  4601. 评分
  4602. </div>
  4603. <img
  4604. class="deleteImg"
  4605. src="../assets/deleteworks.png"
  4606. v-if="
  4607. w.userid == userid || tType == 1 || tType == 4
  4608. "
  4609. @click.stop="deleteWorks(w.wid)"
  4610. alt
  4611. />
  4612. </div>
  4613. <div class="comment" style="min-width: 200px">
  4614. <div class="worksName">
  4615. <div>{{ w.sName }}</div>
  4616. </div>
  4617. <div class="commentList">
  4618. <div class="commentList">
  4619. <div
  4620. class="commentImg"
  4621. @click="
  4622. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4623. "
  4624. >
  4625. <img
  4626. :src="w.isLikes == true ? likes : noLikes"
  4627. alt=""
  4628. />
  4629. </div>
  4630. <div>{{ w.likesCount }}</div>
  4631. </div>
  4632. <div
  4633. class="commentList"
  4634. style="margin-right: 15px"
  4635. >
  4636. <div
  4637. class="commentImg"
  4638. @click="
  4639. commentOther(
  4640. w,
  4641. toolIndex,
  4642. wIndex,
  4643. null,
  4644. g.id
  4645. )
  4646. "
  4647. >
  4648. <img
  4649. src="../assets/icon/comment/comment.png"
  4650. alt=""
  4651. />
  4652. </div>
  4653. <div>{{ w.commentCount }}</div>
  4654. </div>
  4655. </div>
  4656. </div>
  4657. </div>
  4658. </div>
  4659. <div class="group_work" v-else>暂无提交作业</div>
  4660. </div>
  4661. </div>
  4662. <div
  4663. :id="'tool-' + toolIndex"
  4664. :style="{
  4665. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4666. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4667. }"
  4668. class="worksDetailBox"
  4669. v-if="
  4670. worksStudent.length &&
  4671. worksStudent[toolIndex].length > 0
  4672. "
  4673. >
  4674. <div
  4675. class="works"
  4676. style="
  4677. width: 200px;
  4678. height: 140px;
  4679. margin: 10px 10px 10px 0;
  4680. border-radius: 15px;
  4681. box-shadow: 0 0 6px 1px #dfdada;
  4682. "
  4683. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4684. :key="wIndex"
  4685. >
  4686. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4687. <div class="workImg">
  4688. <img
  4689. :src="w.works"
  4690. @click="previewImg(w.works,w)"
  4691. alt
  4692. />
  4693. <div
  4694. class="answerScore"
  4695. v-if="w.score"
  4696. @click.stop="openScore(w)"
  4697. :class="{
  4698. rightW:
  4699. w.userid == userid || tType == 1 || tType == 4,
  4700. }"
  4701. >
  4702. {{ JSON.parse(w.score).wScore }}分
  4703. </div>
  4704. <div
  4705. class="answerScore"
  4706. @click.stop="openScore(w)"
  4707. v-else-if="courseDetail.userid == userid"
  4708. :class="{
  4709. rightW:
  4710. w.userid == userid || tType == 1 || tType == 4,
  4711. }"
  4712. >
  4713. 评分
  4714. </div>
  4715. <img
  4716. class="deleteImg"
  4717. src="../assets/deleteworks.png"
  4718. v-if="
  4719. w.userid == userid || tType == 1 || tType == 4
  4720. "
  4721. @click.stop="deleteWorks(w.wid)"
  4722. alt
  4723. />
  4724. </div>
  4725. <div class="comment" style="min-width: 200px">
  4726. <div class="worksName">
  4727. <div>{{ w.sName }}</div>
  4728. </div>
  4729. <div class="commentList">
  4730. <div class="commentList">
  4731. <div
  4732. class="commentImg"
  4733. @click="
  4734. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4735. "
  4736. >
  4737. <img
  4738. :src="w.isLikes == true ? likes : noLikes"
  4739. alt=""
  4740. />
  4741. </div>
  4742. <div>{{ w.likesCount }}</div>
  4743. </div>
  4744. <div class="commentList" style="margin-right: 15px">
  4745. <div
  4746. class="commentImg"
  4747. @click="commentOther(w, toolIndex, wIndex)"
  4748. >
  4749. <img
  4750. src="../assets/icon/comment/comment.png"
  4751. alt=""
  4752. />
  4753. </div>
  4754. <div>{{ w.commentCount }}</div>
  4755. </div>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. </div>
  4760. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4761. 未提交
  4762. </div>
  4763. <div
  4764. class="noWorksS"
  4765. v-if="noWorksS && noWorksS[toolIndex].length"
  4766. >
  4767. <div
  4768. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4769. :key="sIndex"
  4770. class="noWorksName"
  4771. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4772. >
  4773. <el-tooltip effect="dark" :content="s.student" placement="top">
  4774. <span>{{ s.student }}</span>
  4775. </el-tooltip>
  4776. </div>
  4777. </div>
  4778. </div>
  4779. <div
  4780. v-if="
  4781. tType &&
  4782. ((tType == 2 && sIsOpen == true) ||
  4783. tType == 1 ||
  4784. tType == 4) &&
  4785. tool.tool.indexOf(3) != -1
  4786. "
  4787. class="worksBox"
  4788. >
  4789. <div
  4790. class="zuoyeYulan"
  4791. v-if="
  4792. (worksStudent.length &&
  4793. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4794. "
  4795. >
  4796. <div class="worksTop">
  4797. <div>作业预览</div>
  4798. <div
  4799. class="corOpen"
  4800. @click="contract(toolIndex)"
  4801. v-if="
  4802. (isCloseList[toolIndex].isCloseBoolean) &&
  4803. isCloseList[toolIndex].isClose == 0
  4804. "
  4805. >
  4806. 折叠
  4807. </div>
  4808. <div
  4809. class="corOpen"
  4810. @click="contract(toolIndex)"
  4811. v-if="isCloseList[toolIndex].isClose == 1"
  4812. >
  4813. 展开
  4814. </div>
  4815. </div>
  4816. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4817. </div>
  4818. <div
  4819. class="group_workBox"
  4820. v-for="(g, gindex) in courseGroup.group"
  4821. :key="gindex"
  4822. >
  4823. <div class="group_box">
  4824. <div class="group_title">
  4825. <el-tooltip
  4826. class="item"
  4827. effect="light"
  4828. :content="g.name"
  4829. placement="top"
  4830. >
  4831. <div class="group_name">{{ g.name }}</div>
  4832. </el-tooltip>
  4833. </div>
  4834. <div
  4835. class="group_work"
  4836. v-if="
  4837. g.works &&
  4838. g.works.length &&
  4839. g.works[toolIndex].length
  4840. "
  4841. >
  4842. <div
  4843. class="works"
  4844. style="
  4845. width: 200px;
  4846. height: 140px;
  4847. margin: 10px 10px 10px 0;
  4848. border-radius: 15px;
  4849. box-shadow: 0 0 6px 1px #dfdada;
  4850. "
  4851. v-for="(w, wIndex) in g.works[toolIndex]"
  4852. :key="wIndex"
  4853. :class="w.type == 1 ? 'isTypeOne' : ''"
  4854. >
  4855. <div class="workImg">
  4856. <img
  4857. :src="w.works"
  4858. @click="previewImg(w.works,w)"
  4859. alt
  4860. />
  4861. <div
  4862. class="answerScore"
  4863. v-if="w.score"
  4864. @click.stop="openScore(w)"
  4865. :class="{
  4866. rightW:
  4867. w.userid == userid ||
  4868. tType == 1 ||
  4869. tType == 4,
  4870. }"
  4871. >
  4872. {{ JSON.parse(w.score).wScore }}分
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. @click.stop="openScore(w)"
  4877. v-else-if="courseDetail.userid == userid"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. 评分
  4886. </div>
  4887. <img
  4888. class="deleteImg"
  4889. src="../assets/deleteworks.png"
  4890. v-if="
  4891. w.userid == userid || tType == 1 || tType == 4
  4892. "
  4893. @click.stop="deleteWorks(w.wid)"
  4894. alt
  4895. />
  4896. </div>
  4897. <div class="comment" style="min-width: 200px">
  4898. <div class="worksName">
  4899. <div>{{ w.sName }}</div>
  4900. </div>
  4901. <div class="commentList">
  4902. <div class="commentList">
  4903. <div
  4904. class="commentImg"
  4905. @click="
  4906. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4907. "
  4908. >
  4909. <img
  4910. :src="w.isLikes == true ? likes : noLikes"
  4911. alt=""
  4912. />
  4913. </div>
  4914. <div>{{ w.likesCount }}</div>
  4915. </div>
  4916. <div
  4917. class="commentList"
  4918. style="margin-right: 15px"
  4919. >
  4920. <div
  4921. class="commentImg"
  4922. @click="
  4923. commentOther(
  4924. w,
  4925. toolIndex,
  4926. wIndex,
  4927. null,
  4928. g.id
  4929. )
  4930. "
  4931. >
  4932. <img
  4933. src="../assets/icon/comment/comment.png"
  4934. alt=""
  4935. />
  4936. </div>
  4937. <div>{{ w.commentCount }}</div>
  4938. </div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. </div>
  4943. <div class="group_work" v-else>暂无提交作业</div>
  4944. </div>
  4945. </div>
  4946. <div
  4947. :id="'tool-' + toolIndex"
  4948. :style="{
  4949. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4950. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4951. }"
  4952. class="worksDetailBox"
  4953. v-if="
  4954. worksStudent.length &&
  4955. worksStudent[toolIndex].length > 0
  4956. "
  4957. >
  4958. <div
  4959. class="works"
  4960. style="
  4961. width: 200px;
  4962. height: 140px;
  4963. margin: 10px 10px 10px 0;
  4964. border-radius: 15px;
  4965. box-shadow: 0 0 6px 1px #dfdada;
  4966. "
  4967. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4968. :key="wIndex"
  4969. >
  4970. <!-- @click="previewImg(w.works)" -->
  4971. <div class="workImg">
  4972. <img
  4973. :src="w.works"
  4974. @click="previewImg(w.works,w)"
  4975. alt
  4976. />
  4977. <div
  4978. class="answerScore"
  4979. v-if="w.score"
  4980. @click.stop="openScore(w)"
  4981. :class="{
  4982. rightW:
  4983. w.userid == userid || tType == 1 || tType == 4,
  4984. }"
  4985. >
  4986. {{ JSON.parse(w.score).wScore }}分
  4987. </div>
  4988. <div
  4989. class="answerScore"
  4990. @click.stop="openScore(w)"
  4991. v-else-if="courseDetail.userid == userid"
  4992. :class="{
  4993. rightW:
  4994. w.userid == userid || tType == 1 || tType == 4,
  4995. }"
  4996. >
  4997. 评分
  4998. </div>
  4999. <img
  5000. class="deleteImg"
  5001. src="../assets/deleteworks.png"
  5002. v-if="
  5003. w.userid == userid || tType == 1 || tType == 4
  5004. "
  5005. @click.stop="deleteWorks(w.wid)"
  5006. alt
  5007. />
  5008. </div>
  5009. <div class="comment" style="min-width: 200px">
  5010. <div class="worksName">
  5011. <div>{{ w.sName }}</div>
  5012. </div>
  5013. <div class="commentList">
  5014. <div class="commentList">
  5015. <div
  5016. class="commentImg"
  5017. @click="
  5018. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5019. "
  5020. >
  5021. <img
  5022. :src="w.isLikes == true ? likes : noLikes"
  5023. alt=""
  5024. />
  5025. </div>
  5026. <div>{{ w.likesCount }}</div>
  5027. </div>
  5028. <div class="commentList" style="margin-right: 15px">
  5029. <div
  5030. class="commentImg"
  5031. @click="commentOther(w, toolIndex, wIndex)"
  5032. >
  5033. <img
  5034. src="../assets/icon/comment/comment.png"
  5035. alt=""
  5036. />
  5037. </div>
  5038. <div>{{ w.commentCount }}</div>
  5039. </div>
  5040. </div>
  5041. </div>
  5042. </div>
  5043. </div>
  5044. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5045. 未提交
  5046. </div>
  5047. <div
  5048. class="noWorksS"
  5049. v-if="noWorksS && noWorksS[toolIndex].length"
  5050. >
  5051. <div
  5052. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5053. :key="sIndex"
  5054. class="noWorksName"
  5055. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5056. >
  5057. <el-tooltip effect="dark" :content="s.student" placement="top">
  5058. <span>{{ s.student }}</span>
  5059. </el-tooltip>
  5060. </div>
  5061. </div>
  5062. </div>
  5063. <div
  5064. v-if="
  5065. tType &&
  5066. ((tType == 2 && sIsOpen == true) ||
  5067. tType == 1 ||
  5068. tType == 4) &&
  5069. tool.tool.indexOf(6) != -1
  5070. "
  5071. class="worksBox"
  5072. >
  5073. <div
  5074. class="zuoyeYulan"
  5075. v-if="
  5076. (worksStudent.length &&
  5077. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5078. "
  5079. >
  5080. <div class="worksTop">
  5081. <div>作业预览</div>
  5082. <div
  5083. class="corOpen"
  5084. @click="contract(toolIndex)"
  5085. v-if="
  5086. (isCloseList[toolIndex].isCloseBoolean) &&
  5087. isCloseList[toolIndex].isClose == 0
  5088. "
  5089. >
  5090. 折叠
  5091. </div>
  5092. <div
  5093. class="corOpen"
  5094. @click="contract(toolIndex)"
  5095. v-if="isCloseList[toolIndex].isClose == 1"
  5096. >
  5097. 展开
  5098. </div>
  5099. </div>
  5100. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5101. </div>
  5102. <div
  5103. class="group_workBox"
  5104. v-for="(g, gindex) in courseGroup.group"
  5105. :key="gindex"
  5106. >
  5107. <div class="group_box">
  5108. <div class="group_title">
  5109. <el-tooltip
  5110. class="item"
  5111. effect="light"
  5112. :content="g.name"
  5113. placement="top"
  5114. >
  5115. <div class="group_name">{{ g.name }}</div>
  5116. </el-tooltip>
  5117. </div>
  5118. <div
  5119. class="group_work"
  5120. v-if="
  5121. g.works &&
  5122. g.works.length &&
  5123. g.works[toolIndex].length
  5124. "
  5125. >
  5126. <div
  5127. class="works"
  5128. style="
  5129. width: 200px;
  5130. height: 140px;
  5131. margin: 10px 10px 10px 0;
  5132. border-radius: 15px;
  5133. box-shadow: 0 0 6px 1px #dfdada;
  5134. "
  5135. v-for="(w, wIndex) in g.works[toolIndex]"
  5136. :key="wIndex"
  5137. :class="w.type == 1 ? 'isTypeOne' : ''"
  5138. >
  5139. <div class="workImg">
  5140. <img
  5141. :src="w.works"
  5142. @click="previewImg(w.works,w)"
  5143. alt
  5144. />
  5145. <div
  5146. class="answerScore"
  5147. v-if="w.score"
  5148. @click.stop="openScore(w)"
  5149. :class="{
  5150. rightW:
  5151. w.userid == userid ||
  5152. tType == 1 ||
  5153. tType == 4,
  5154. }"
  5155. >
  5156. {{ JSON.parse(w.score).wScore }}分
  5157. </div>
  5158. <div
  5159. class="answerScore"
  5160. @click.stop="openScore(w)"
  5161. v-else-if="courseDetail.userid == userid"
  5162. :class="{
  5163. rightW:
  5164. w.userid == userid ||
  5165. tType == 1 ||
  5166. tType == 4,
  5167. }"
  5168. >
  5169. 评分
  5170. </div>
  5171. <img
  5172. class="deleteImg"
  5173. src="../assets/deleteworks.png"
  5174. v-if="
  5175. w.userid == userid || tType == 1 || tType == 4
  5176. "
  5177. @click.stop="deleteWorks(w.wid)"
  5178. alt
  5179. />
  5180. </div>
  5181. <div class="comment" style="min-width: 200px">
  5182. <div class="worksName">
  5183. <div>{{ w.sName }}</div>
  5184. </div>
  5185. <div class="commentList">
  5186. <div class="commentList">
  5187. <div
  5188. class="commentImg"
  5189. @click="
  5190. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5191. "
  5192. >
  5193. <img
  5194. :src="w.isLikes == true ? likes : noLikes"
  5195. alt=""
  5196. />
  5197. </div>
  5198. <div>{{ w.likesCount }}</div>
  5199. </div>
  5200. <div
  5201. class="commentList"
  5202. style="margin-right: 15px"
  5203. >
  5204. <div
  5205. class="commentImg"
  5206. @click="
  5207. commentOther(
  5208. w,
  5209. toolIndex,
  5210. wIndex,
  5211. null,
  5212. g.id
  5213. )
  5214. "
  5215. >
  5216. <img
  5217. src="../assets/icon/comment/comment.png"
  5218. alt=""
  5219. />
  5220. </div>
  5221. <div>{{ w.commentCount }}</div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. </div>
  5227. <div class="group_work" v-else>暂无提交作业</div>
  5228. </div>
  5229. </div>
  5230. <div
  5231. :id="'tool-' + toolIndex"
  5232. :style="{
  5233. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5234. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5235. }"
  5236. class="worksDetailBox"
  5237. v-if="
  5238. worksStudent.length &&
  5239. worksStudent[toolIndex].length > 0
  5240. "
  5241. >
  5242. <div
  5243. class="works"
  5244. style="
  5245. width: 200px;
  5246. height: 140px;
  5247. margin: 10px 10px 10px 0;
  5248. border-radius: 15px;
  5249. box-shadow: 0 0 6px 1px #dfdada;
  5250. "
  5251. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5252. :key="wIndex"
  5253. >
  5254. <!-- @click="previewImg(w.works)" -->
  5255. <div class="workImg">
  5256. <img
  5257. :src="w.works"
  5258. @click="previewImg(w.works,w)"
  5259. alt
  5260. />
  5261. <div
  5262. class="answerScore"
  5263. v-if="w.score"
  5264. @click.stop="openScore(w)"
  5265. :class="{
  5266. rightW:
  5267. w.userid == userid || tType == 1 || tType == 4,
  5268. }"
  5269. >
  5270. {{ JSON.parse(w.score).wScore }}分
  5271. </div>
  5272. <div
  5273. class="answerScore"
  5274. @click.stop="openScore(w)"
  5275. v-else-if="courseDetail.userid == userid"
  5276. :class="{
  5277. rightW:
  5278. w.userid == userid || tType == 1 || tType == 4,
  5279. }"
  5280. >
  5281. 评分
  5282. </div>
  5283. <img
  5284. class="deleteImg"
  5285. src="../assets/deleteworks.png"
  5286. v-if="
  5287. w.userid == userid || tType == 1 || tType == 4
  5288. "
  5289. @click.stop="deleteWorks(w.wid)"
  5290. alt
  5291. />
  5292. </div>
  5293. <div class="comment" style="min-width: 200px">
  5294. <div class="worksName">
  5295. <div>{{ w.sName }}</div>
  5296. </div>
  5297. <div class="commentList">
  5298. <div class="commentList">
  5299. <div
  5300. class="commentImg"
  5301. @click="
  5302. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5303. "
  5304. >
  5305. <img
  5306. :src="w.isLikes == true ? likes : noLikes"
  5307. alt=""
  5308. />
  5309. </div>
  5310. <div>{{ w.likesCount }}</div>
  5311. </div>
  5312. <div class="commentList" style="margin-right: 15px">
  5313. <div
  5314. class="commentImg"
  5315. @click="commentOther(w, toolIndex, wIndex)"
  5316. >
  5317. <img
  5318. src="../assets/icon/comment/comment.png"
  5319. alt=""
  5320. />
  5321. </div>
  5322. <div>{{ w.commentCount }}</div>
  5323. </div>
  5324. </div>
  5325. </div>
  5326. </div>
  5327. </div>
  5328. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5329. 未提交
  5330. </div>
  5331. <div
  5332. class="noWorksS"
  5333. v-if="noWorksS && noWorksS[toolIndex].length"
  5334. >
  5335. <div
  5336. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5337. :key="sIndex"
  5338. class="noWorksName"
  5339. >
  5340. <el-tooltip effect="dark" :content="s.student" placement="top">
  5341. <span>{{ s.student }}</span>
  5342. </el-tooltip>
  5343. </div>
  5344. </div>
  5345. </div>
  5346. <div
  5347. v-if="
  5348. tType &&
  5349. ((tType == 2 && sIsOpen == true) ||
  5350. tType == 1 ||
  5351. tType == 4) &&
  5352. tool.tool.indexOf(7) != -1
  5353. "
  5354. class="worksBox"
  5355. >
  5356. <div
  5357. class="zuoyeYulan"
  5358. v-if="
  5359. (worksStudent.length &&
  5360. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5361. "
  5362. >
  5363. <div class="worksTop">
  5364. <div>作业预览</div>
  5365. <div
  5366. class="corOpen"
  5367. @click="contract(toolIndex)"
  5368. v-if="
  5369. (isCloseList[toolIndex].isCloseBoolean) &&
  5370. isCloseList[toolIndex].isClose == 0
  5371. "
  5372. >
  5373. 折叠
  5374. </div>
  5375. <div
  5376. class="corOpen"
  5377. @click="contract(toolIndex)"
  5378. v-if="isCloseList[toolIndex].isClose == 1"
  5379. >
  5380. 展开
  5381. </div>
  5382. </div>
  5383. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5384. </div>
  5385. <div
  5386. class="group_workBox"
  5387. v-for="(g, gindex) in courseGroup.group"
  5388. :key="gindex"
  5389. >
  5390. <div class="group_box">
  5391. <div class="group_title">
  5392. <el-tooltip
  5393. class="item"
  5394. effect="light"
  5395. :content="g.name"
  5396. placement="top"
  5397. >
  5398. <div class="group_name">{{ g.name }}</div>
  5399. </el-tooltip>
  5400. </div>
  5401. <div
  5402. class="group_work"
  5403. v-if="
  5404. g.works &&
  5405. g.works.length &&
  5406. g.works[toolIndex].length
  5407. "
  5408. >
  5409. <div
  5410. class="works"
  5411. style="
  5412. width: 200px;
  5413. height: 140px;
  5414. margin: 10px 10px 10px 0;
  5415. border-radius: 15px;
  5416. box-shadow: 0 0 6px 1px #dfdada;
  5417. "
  5418. v-for="(w, wIndex) in g.works[toolIndex]"
  5419. :key="wIndex"
  5420. :class="w.type == 1 ? 'isTypeOne' : ''"
  5421. >
  5422. <div class="workImg">
  5423. <img
  5424. :src="w.works"
  5425. @click="previewImg(w.works,w)"
  5426. alt
  5427. />
  5428. <div
  5429. class="answerScore"
  5430. v-if="w.score"
  5431. @click.stop="openScore(w)"
  5432. :class="{
  5433. rightW:
  5434. w.userid == userid ||
  5435. tType == 1 ||
  5436. tType == 4,
  5437. }"
  5438. >
  5439. {{ JSON.parse(w.score).wScore }}分
  5440. </div>
  5441. <div
  5442. class="answerScore"
  5443. @click.stop="openScore(w)"
  5444. v-else-if="courseDetail.userid == userid"
  5445. :class="{
  5446. rightW:
  5447. w.userid == userid ||
  5448. tType == 1 ||
  5449. tType == 4,
  5450. }"
  5451. >
  5452. 评分
  5453. </div>
  5454. <img
  5455. class="deleteImg"
  5456. src="../assets/deleteworks.png"
  5457. v-if="
  5458. w.userid == userid || tType == 1 || tType == 4
  5459. "
  5460. @click.stop="deleteWorks(w.wid)"
  5461. alt
  5462. />
  5463. </div>
  5464. <div class="comment" style="min-width: 200px">
  5465. <div class="worksName">
  5466. <div>{{ w.sName }}</div>
  5467. </div>
  5468. <div class="commentList">
  5469. <div class="commentList">
  5470. <div
  5471. class="commentImg"
  5472. @click="
  5473. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5474. "
  5475. >
  5476. <img
  5477. :src="w.isLikes == true ? likes : noLikes"
  5478. alt=""
  5479. />
  5480. </div>
  5481. <div>{{ w.likesCount }}</div>
  5482. </div>
  5483. <div
  5484. class="commentList"
  5485. style="margin-right: 15px"
  5486. >
  5487. <div
  5488. class="commentImg"
  5489. @click="
  5490. commentOther(
  5491. w,
  5492. toolIndex,
  5493. wIndex,
  5494. null,
  5495. g.id
  5496. )
  5497. "
  5498. >
  5499. <img
  5500. src="../assets/icon/comment/comment.png"
  5501. alt=""
  5502. />
  5503. </div>
  5504. <div>{{ w.commentCount }}</div>
  5505. </div>
  5506. </div>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. <div class="group_work" v-else>暂无提交作业</div>
  5511. </div>
  5512. </div>
  5513. <div
  5514. :id="'tool-' + toolIndex"
  5515. :style="{
  5516. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5517. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5518. }"
  5519. class="worksDetailBox"
  5520. v-if="
  5521. worksStudent.length &&
  5522. worksStudent[toolIndex].length > 0
  5523. "
  5524. >
  5525. <div
  5526. class="works"
  5527. style="
  5528. width: 200px;
  5529. height: 140px;
  5530. margin: 10px 10px 10px 0;
  5531. border-radius: 15px;
  5532. box-shadow: 0 0 6px 1px #dfdada;
  5533. "
  5534. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5535. :key="wIndex"
  5536. >
  5537. <!-- @click="previewImg(w.works)" -->
  5538. <div class="workImg">
  5539. <img
  5540. :src="w.works"
  5541. @click="previewImg(w.works,w)"
  5542. alt
  5543. />
  5544. <div
  5545. class="answerScore"
  5546. v-if="w.score"
  5547. @click.stop="openScore(w)"
  5548. :class="{
  5549. rightW:
  5550. w.userid == userid || tType == 1 || tType == 4,
  5551. }"
  5552. >
  5553. {{ JSON.parse(w.score).wScore }}分
  5554. </div>
  5555. <div
  5556. class="answerScore"
  5557. @click.stop="openScore(w)"
  5558. v-else-if="courseDetail.userid == userid"
  5559. :class="{
  5560. rightW:
  5561. w.userid == userid || tType == 1 || tType == 4,
  5562. }"
  5563. >
  5564. 评分
  5565. </div>
  5566. <img
  5567. class="deleteImg"
  5568. src="../assets/deleteworks.png"
  5569. v-if="
  5570. w.userid == userid || tType == 1 || tType == 4
  5571. "
  5572. @click.stop="deleteWorks(w.wid)"
  5573. alt
  5574. />
  5575. </div>
  5576. <div class="comment" style="min-width: 200px">
  5577. <div class="worksName">
  5578. <div>{{ w.sName }}</div>
  5579. </div>
  5580. <div class="commentList">
  5581. <div class="commentList">
  5582. <div
  5583. class="commentImg"
  5584. @click="
  5585. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5586. "
  5587. >
  5588. <img
  5589. :src="w.isLikes == true ? likes : noLikes"
  5590. alt=""
  5591. />
  5592. </div>
  5593. <div>{{ w.likesCount }}</div>
  5594. </div>
  5595. <div class="commentList" style="margin-right: 15px">
  5596. <div
  5597. class="commentImg"
  5598. @click="commentOther(w, toolIndex, wIndex)"
  5599. >
  5600. <img
  5601. src="../assets/icon/comment/comment.png"
  5602. alt=""
  5603. />
  5604. </div>
  5605. <div>{{ w.commentCount }}</div>
  5606. </div>
  5607. </div>
  5608. </div>
  5609. </div>
  5610. </div>
  5611. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5612. 未提交
  5613. </div>
  5614. <div
  5615. class="noWorksS"
  5616. v-if="noWorksS && noWorksS[toolIndex].length"
  5617. >
  5618. <div
  5619. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5620. :key="sIndex"
  5621. class="noWorksName"
  5622. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5623. >
  5624. <el-tooltip effect="dark" :content="s.student" placement="top">
  5625. <span>{{ s.student }}</span>
  5626. </el-tooltip>
  5627. </div>
  5628. </div>
  5629. </div>
  5630. <div
  5631. v-if="
  5632. tType &&
  5633. ((tType == 2 && sIsOpen == true) ||
  5634. tType == 1 ||
  5635. tType == 4) &&
  5636. tool.tool.indexOf(26) != -1
  5637. "
  5638. class="worksBox"
  5639. >
  5640. <div
  5641. class="zuoyeYulan"
  5642. v-if="
  5643. worksStudent.length &&
  5644. worksStudent[toolIndex].length > 0
  5645. "
  5646. >
  5647. <div class="worksTop">
  5648. <div>作业预览</div>
  5649. <div
  5650. class="corOpen"
  5651. @click="contract(toolIndex)"
  5652. v-if="
  5653. (isCloseList[toolIndex].isCloseBoolean) &&
  5654. isCloseList[toolIndex].isClose == 0
  5655. "
  5656. >
  5657. 折叠
  5658. </div>
  5659. <div
  5660. class="corOpen"
  5661. @click="contract(toolIndex)"
  5662. v-if="isCloseList[toolIndex].isClose == 1"
  5663. >
  5664. 展开
  5665. </div>
  5666. </div>
  5667. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5668. </div>
  5669. <div
  5670. :id="'tool-' + toolIndex"
  5671. :style="{
  5672. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5673. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5674. }"
  5675. class="worksDetailBox"
  5676. v-if="
  5677. worksStudent.length &&
  5678. worksStudent[toolIndex].length > 0
  5679. "
  5680. >
  5681. <div
  5682. class="works"
  5683. style="width: 240px; height: 140px; overflow: hidden"
  5684. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5685. :key="wIndex"
  5686. :class="w.type == 1 ? 'isTypeOne' : ''"
  5687. >
  5688. <div class="workImg" v-if="w.type == 0">
  5689. <img
  5690. :src="w.works"
  5691. @click="previewImg(w.works,w)"
  5692. alt
  5693. />
  5694. <img
  5695. class="deleteImg"
  5696. src="../assets/deleteworks.png"
  5697. v-if="
  5698. w.userid == userid || tType == 1 || tType == 4
  5699. "
  5700. @click.stop="deleteWorks(w.wid)"
  5701. alt
  5702. />
  5703. </div>
  5704. <div class="workImg" v-if="w.type == 1">
  5705. <img :src="word" @click="openFile(w.works,w)" alt />
  5706. <img
  5707. class="deleteImg"
  5708. src="../assets/deleteworks.png"
  5709. v-if="
  5710. w.userid == userid || tType == 1 || tType == 4
  5711. "
  5712. @click.stop="deleteWorks(w.wid)"
  5713. alt
  5714. />
  5715. </div>
  5716. <div class="worksName">
  5717. <div>{{ w.sName }}</div>
  5718. </div>
  5719. </div>
  5720. </div>
  5721. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5722. 未提交
  5723. </div>
  5724. <div
  5725. class="noWorksS"
  5726. v-if="noWorksS && noWorksS[toolIndex].length"
  5727. >
  5728. <div
  5729. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5730. :key="sIndex"
  5731. class="noWorksName"
  5732. >
  5733. <el-tooltip effect="dark" :content="s.student" placement="top">
  5734. <span>{{ s.student }}</span>
  5735. </el-tooltip>
  5736. </div>
  5737. </div>
  5738. </div>
  5739. <div
  5740. v-if="
  5741. tType &&
  5742. ((tType == 2 && sIsOpen == true) ||
  5743. tType == 1 ||
  5744. tType == 4) &&
  5745. tool.tool.indexOf(40) != -1
  5746. "
  5747. class="worksBox"
  5748. >
  5749. <div
  5750. class="zuoyeYulan"
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. >
  5756. <div class="worksTop">
  5757. <div>作业预览</div>
  5758. <div
  5759. class="corOpen"
  5760. @click="contract(toolIndex)"
  5761. v-if="
  5762. (isCloseList[toolIndex].isCloseBoolean) &&
  5763. isCloseList[toolIndex].isClose == 0
  5764. "
  5765. >
  5766. 折叠
  5767. </div>
  5768. <div
  5769. class="corOpen"
  5770. @click="contract(toolIndex)"
  5771. v-if="isCloseList[toolIndex].isClose == 1"
  5772. >
  5773. 展开
  5774. </div>
  5775. </div>
  5776. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5777. </div>
  5778. <div
  5779. :id="'tool-' + toolIndex"
  5780. :style="{
  5781. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5782. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5783. }"
  5784. class="worksDetailBox"
  5785. v-if="
  5786. worksStudent.length &&
  5787. worksStudent[toolIndex].length > 0
  5788. "
  5789. >
  5790. <div
  5791. class="works"
  5792. style="
  5793. width: 200px;
  5794. height: 140px;
  5795. margin: 10px 10px 10px 0;
  5796. border-radius: 15px;
  5797. box-shadow: 0 0 6px 1px #dfdada;
  5798. "
  5799. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5800. :key="wIndex"
  5801. :class="w.type == 1 ? 'isTypeOne' : ''"
  5802. >
  5803. <div class="workImg">
  5804. <img
  5805. src="../assets/icon/works/noImg.png"
  5806. @click="openPj(w.works, toolIndex)"
  5807. alt
  5808. />
  5809. <img
  5810. class="deleteImg"
  5811. src="../assets/deleteworks.png"
  5812. v-if="
  5813. w.userid == userid || tType == 1 || tType == 4
  5814. "
  5815. @click.stop="deleteWorks(w.wid)"
  5816. alt
  5817. />
  5818. </div>
  5819. <div class="comment" style="min-width: 200px">
  5820. <div class="worksName">
  5821. <div>{{ w.sName }}</div>
  5822. </div>
  5823. <div class="commentList">
  5824. <div class="commentList">
  5825. <div
  5826. class="commentImg"
  5827. @click="
  5828. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5829. "
  5830. >
  5831. <img
  5832. :src="w.isLikes == true ? likes : noLikes"
  5833. alt=""
  5834. />
  5835. </div>
  5836. <div>{{ w.likesCount }}</div>
  5837. </div>
  5838. <div class="commentList" style="margin-right: 15px">
  5839. <div
  5840. class="commentImg"
  5841. @click="commentOther(w, toolIndex, wIndex)"
  5842. >
  5843. <img
  5844. src="../assets/icon/comment/comment.png"
  5845. alt=""
  5846. />
  5847. </div>
  5848. <div>{{ w.commentCount }}</div>
  5849. </div>
  5850. </div>
  5851. </div>
  5852. </div>
  5853. </div>
  5854. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5855. 未提交
  5856. </div>
  5857. <div
  5858. class="noWorksS"
  5859. v-if="noWorksS && noWorksS[toolIndex].length"
  5860. >
  5861. <div
  5862. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5863. :key="sIndex"
  5864. class="noWorksName"
  5865. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5866. >
  5867. <el-tooltip effect="dark" :content="s.student" placement="top">
  5868. <span>{{ s.student }}</span>
  5869. </el-tooltip>
  5870. </div>
  5871. </div>
  5872. </div>
  5873. <div
  5874. v-if="
  5875. tType &&
  5876. tType == 2 &&
  5877. !sIsOpen &&
  5878. tool.tool.indexOf(40) != -1
  5879. "
  5880. class="worksBox"
  5881. >
  5882. <div
  5883. class="zuoyeYulan"
  5884. v-if="workStudent[toolIndex].length > 0"
  5885. >
  5886. <span class="worksTitle">作业预览</span>
  5887. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5888. </div>
  5889. <div
  5890. class="worksDetailBox"
  5891. v-if="workStudent[toolIndex].length > 0"
  5892. >
  5893. <div
  5894. class="works"
  5895. style="
  5896. width: 200px;
  5897. height: 140px;
  5898. margin: 10px 10px 10px 0;
  5899. "
  5900. v-for="(w, wIndex) in workStudent[toolIndex]"
  5901. :key="wIndex"
  5902. >
  5903. <div class="workImg">
  5904. <img
  5905. src="../assets/icon/works/noImg.png"
  5906. @click="openPj(w.works, toolIndex)"
  5907. alt
  5908. />
  5909. <img
  5910. class="deleteImg"
  5911. src="../assets/deleteworks.png"
  5912. v-if="
  5913. w.userid == userid || tType == 1 || tType == 4
  5914. "
  5915. @click.stop="deleteWorks(w.wid)"
  5916. alt
  5917. />
  5918. </div>
  5919. <div class="worksName">
  5920. <div>{{ w.sName }}</div>
  5921. </div>
  5922. </div>
  5923. </div>
  5924. </div>
  5925. <div
  5926. v-if="
  5927. tType &&
  5928. ((tType == 2 && sIsOpen == true) ||
  5929. tType == 1 ||
  5930. tType == 4) &&
  5931. tool.tool.indexOf(41) != -1
  5932. "
  5933. >
  5934. <AnswerData2
  5935. v-if="
  5936. worksStudent.length &&
  5937. worksStudent[toolIndex].length > 0
  5938. "
  5939. :problemJson="tool.selectJson.answer"
  5940. :people="worksStudent[toolIndex]"
  5941. ></AnswerData2>
  5942. </div>
  5943. <div
  5944. v-if="
  5945. tType &&
  5946. ((tType == 2 && sIsOpen == true) ||
  5947. tType == 1 ||
  5948. tType == 4) &&
  5949. tool.tool.indexOf(41) != -1
  5950. "
  5951. class="worksBox"
  5952. >
  5953. <div
  5954. class="zuoyeYulan"
  5955. v-if="
  5956. worksStudent.length &&
  5957. worksStudent[toolIndex].length > 0
  5958. "
  5959. >
  5960. <div class="worksTop">
  5961. <div>作业预览</div>
  5962. <div
  5963. class="corOpen"
  5964. @click="contract(toolIndex)"
  5965. v-if="
  5966. (isCloseList[toolIndex].isCloseBoolean) &&
  5967. isCloseList[toolIndex].isClose == 0
  5968. "
  5969. >
  5970. 折叠
  5971. </div>
  5972. <div
  5973. class="corOpen"
  5974. @click="contract(toolIndex)"
  5975. v-if="isCloseList[toolIndex].isClose == 1"
  5976. >
  5977. 展开
  5978. </div>
  5979. </div>
  5980. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5981. </div>
  5982. <div
  5983. :id="'tool-' + toolIndex"
  5984. :style="{
  5985. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5986. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5987. }"
  5988. class="worksDetailBox"
  5989. v-if="
  5990. worksStudent.length &&
  5991. worksStudent[toolIndex].length > 0
  5992. "
  5993. >
  5994. <div
  5995. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5996. :key="wIndex"
  5997. class="isWorksName2"
  5998. @click="openXz(w, toolIndex)"
  5999. >
  6000. {{ w.sName }}
  6001. <img
  6002. class="deleteImg deleteImg2"
  6003. src="../assets/deleteworks.png"
  6004. v-if="w.userid == userid || tType == 1 || tType == 4"
  6005. @click.stop="deleteWorks(w.wid)"
  6006. alt
  6007. />
  6008. </div>
  6009. <!-- <div
  6010. class="works"
  6011. style="
  6012. width: 200px;
  6013. height: 140px;
  6014. margin: 10px 10px 10px 0;
  6015. border-radius: 15px;
  6016. box-shadow: 0 0 6px 1px #dfdada;
  6017. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6018. :class="w.type == 5 ? 'isTypeOne' : ''">
  6019. <div class="workImg">
  6020. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6021. </div>
  6022. <div class="worksName">
  6023. <div>{{ w.sName }}</div>
  6024. </div>
  6025. </div> -->
  6026. </div>
  6027. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6028. 未提交
  6029. </div>
  6030. <div
  6031. class="noWorksS"
  6032. v-if="noWorksS && noWorksS[toolIndex].length"
  6033. >
  6034. <div
  6035. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6036. :key="sIndex"
  6037. class="noWorksName"
  6038. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6039. >
  6040. <el-tooltip effect="dark" :content="s.student" placement="top">
  6041. <span>{{ s.student }}</span>
  6042. </el-tooltip>
  6043. </div>
  6044. </div>
  6045. </div>
  6046. <div
  6047. v-if="
  6048. tType &&
  6049. tType == 2 &&
  6050. !sIsOpen &&
  6051. tool.tool.indexOf(41) != -1
  6052. "
  6053. class="worksBox"
  6054. >
  6055. <div
  6056. class="zuoyeYulan"
  6057. v-if="workStudent[toolIndex].length > 0"
  6058. >
  6059. <span class="worksTitle">作业预览</span>
  6060. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6061. </div>
  6062. <div
  6063. class="worksDetailBox"
  6064. v-if="workStudent[toolIndex].length > 0"
  6065. >
  6066. <div
  6067. class="works"
  6068. style="
  6069. width: 200px;
  6070. height: 140px;
  6071. margin: 10px 10px 10px 0;
  6072. "
  6073. v-for="(w, wIndex) in workStudent[toolIndex]"
  6074. :key="wIndex"
  6075. >
  6076. <div class="workImg">
  6077. <img
  6078. src="../assets/icon/works/noImg.png"
  6079. @click="openXz(w, toolIndex)"
  6080. alt
  6081. />
  6082. <img
  6083. class="deleteImg"
  6084. src="../assets/deleteworks.png"
  6085. v-if="
  6086. w.userid == userid || tType == 1 || tType == 4
  6087. "
  6088. @click.stop="deleteWorks(w.wid)"
  6089. alt
  6090. />
  6091. </div>
  6092. <div class="worksName">
  6093. <div>{{ w.sName }}</div>
  6094. </div>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. <div v-if="false" class="xuan_right_box">
  6099. <div
  6100. class="tool_right_box"
  6101. v-for="(item, index) in tool.sentenceList"
  6102. :key="index"
  6103. >
  6104. <div>
  6105. <span
  6106. style="word-break: break-all; white-space: normal"
  6107. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6108. >
  6109. </div>
  6110. <div class="right_box_xuan">
  6111. <span>正确率</span>
  6112. <span>{{
  6113. (checkJson[toolIndex][index].right
  6114. ? checkJson[toolIndex][index].right
  6115. : 0) + "%"
  6116. }}</span>
  6117. </div>
  6118. <div class="right_box_xuan">
  6119. <span>答对人数</span>
  6120. <span>{{
  6121. checkJson[toolIndex][index].rightPerson.length
  6122. }}</span>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div
  6127. v-if="
  6128. tType &&
  6129. ((tType == 2 && sIsOpen == true) ||
  6130. tType == 1 ||
  6131. tType == 4) &&
  6132. tool.tool.indexOf(47) != -1
  6133. "
  6134. >
  6135. <AnswerData
  6136. v-if="
  6137. checkJson[toolIndex].length &&
  6138. (tool.sentenceList || tool.sentenceList.length > 0)
  6139. "
  6140. :people="checkJson[toolIndex]"
  6141. ></AnswerData>
  6142. </div>
  6143. <div
  6144. v-if="
  6145. tType &&
  6146. tType == 2 &&
  6147. !sIsOpen &&
  6148. tool.tool.indexOf(47) != -1
  6149. "
  6150. class="worksBox"
  6151. >
  6152. <div
  6153. class="zuoyeYulan"
  6154. v-if="workStudent[toolIndex].length > 0"
  6155. >
  6156. <span class="worksTitle">作业预览</span>
  6157. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6158. </div>
  6159. <div
  6160. class="worksDetailBox"
  6161. v-if="workStudent[toolIndex].length > 0"
  6162. >
  6163. <div
  6164. class="works"
  6165. style="
  6166. width: 200px;
  6167. height: 140px;
  6168. margin: 10px 10px 10px 0;
  6169. "
  6170. v-for="(w, wIndex) in workStudent[toolIndex]"
  6171. :key="wIndex"
  6172. >
  6173. <!-- @click="openXz(w, toolIndex)" -->
  6174. <div class="workImg" @click="openSen(w, toolIndex)">
  6175. <img src="../assets/icon/works/noImg.png" alt />
  6176. <img
  6177. class="deleteImg"
  6178. src="../assets/deleteworks.png"
  6179. v-if="
  6180. w.userid == userid || tType == 1 || tType == 4
  6181. "
  6182. @click.stop="deleteWorks(w.wid)"
  6183. alt
  6184. />
  6185. </div>
  6186. <div class="worksName">
  6187. <div>
  6188. {{ w.sName }}
  6189. </div>
  6190. </div>
  6191. </div>
  6192. </div>
  6193. </div>
  6194. <div
  6195. v-if="
  6196. tType &&
  6197. ((tType == 2 && sIsOpen == true) ||
  6198. tType == 1 ||
  6199. tType == 4) &&
  6200. tool.tool.indexOf(47) != -1
  6201. "
  6202. class="worksBox"
  6203. >
  6204. <div
  6205. class="zuoyeYulan"
  6206. v-if="
  6207. worksStudent.length &&
  6208. worksStudent[toolIndex].length > 0
  6209. "
  6210. >
  6211. <div class="worksTop">
  6212. <div>作业预览</div>
  6213. <div
  6214. class="corOpen"
  6215. @click="contract(toolIndex)"
  6216. v-if="
  6217. (isCloseList[toolIndex].isCloseBoolean) &&
  6218. isCloseList[toolIndex].isClose == 0
  6219. "
  6220. >
  6221. 折叠
  6222. </div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="isCloseList[toolIndex].isClose == 1"
  6227. >
  6228. 展开
  6229. </div>
  6230. </div>
  6231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6232. </div>
  6233. <div
  6234. :id="'tool-' + toolIndex"
  6235. :style="{
  6236. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6237. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6238. }"
  6239. class="worksDetailBox"
  6240. v-if="
  6241. worksStudent.length &&
  6242. worksStudent[toolIndex].length > 0
  6243. "
  6244. >
  6245. <!-- @click="openXz(w, toolIndex)" -->
  6246. <div
  6247. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6248. :key="wIndex"
  6249. class="isWorksName2"
  6250. @click="openSen(w, toolIndex)"
  6251. >
  6252. {{ w.sName }}
  6253. <img
  6254. class="deleteImg deleteImg2"
  6255. src="../assets/deleteworks.png"
  6256. v-if="w.userid == userid || tType == 1 || tType == 4"
  6257. @click.stop="deleteWorks(w.wid)"
  6258. alt
  6259. />
  6260. </div>
  6261. </div>
  6262. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6263. 未提交
  6264. </div>
  6265. <div
  6266. class="noWorksS"
  6267. v-if="noWorksS && noWorksS[toolIndex].length"
  6268. >
  6269. <div
  6270. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6271. :key="sIndex"
  6272. class="noWorksName"
  6273. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6274. >
  6275. <el-tooltip effect="dark" :content="s.student" placement="top">
  6276. <span>{{ s.student }}</span>
  6277. </el-tooltip>
  6278. </div>
  6279. </div>
  6280. </div>
  6281. <div
  6282. v-if="
  6283. tType &&
  6284. ((tType == 2 && sIsOpen == true) ||
  6285. tType == 1 ||
  6286. tType == 4) &&
  6287. tool.tool.indexOf(48) != -1
  6288. "
  6289. class="worksBox"
  6290. >
  6291. <div
  6292. class="zuoyeYulan"
  6293. v-if="
  6294. worksStudent.length &&
  6295. worksStudent[toolIndex].length > 0
  6296. "
  6297. >
  6298. <div class="worksTop">
  6299. <div>作业预览</div>
  6300. <div
  6301. class="corOpen"
  6302. @click="contract(toolIndex)"
  6303. v-if="
  6304. (isCloseList[toolIndex].isCloseBoolean) &&
  6305. isCloseList[toolIndex].isClose == 0
  6306. "
  6307. >
  6308. 折叠
  6309. </div>
  6310. <div
  6311. class="corOpen"
  6312. @click="contract(toolIndex)"
  6313. v-if="isCloseList[toolIndex].isClose == 1"
  6314. >
  6315. 展开
  6316. </div>
  6317. </div>
  6318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6319. </div>
  6320. <div
  6321. :id="'tool-' + toolIndex"
  6322. :style="{
  6323. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6324. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6325. }"
  6326. class="worksDetailBox"
  6327. v-if="
  6328. worksStudent.length &&
  6329. worksStudent[toolIndex].length > 0
  6330. "
  6331. >
  6332. <div
  6333. class="works"
  6334. style="
  6335. width: 200px;
  6336. height: 140px;
  6337. margin: 10px 10px 10px 0;
  6338. border-radius: 15px;
  6339. box-shadow: 0 0 6px 1px #dfdada;
  6340. "
  6341. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6342. :key="wIndex"
  6343. :class="w.type == 1 ? 'isTypeOne' : ''"
  6344. >
  6345. <div class="workImg">
  6346. <img :src="word" @click="openTable(w)" alt />
  6347. <!-- @click="openFile(w.works)" -->
  6348. <div
  6349. class="answerScore"
  6350. v-if="w.score"
  6351. @click.stop="openScore(w)"
  6352. :class="{
  6353. rightW:
  6354. w.userid == userid ||
  6355. tType == 1 ||
  6356. tType == 4 ||
  6357. w.ateacher == userid,
  6358. }"
  6359. >
  6360. {{ JSON.parse(w.score).wScore }}分
  6361. </div>
  6362. <div
  6363. class="answerScore"
  6364. @click.stop="openScore(w)"
  6365. v-else-if="courseDetail.userid == userid"
  6366. :class="{
  6367. rightW:
  6368. w.userid == userid ||
  6369. tType == 1 ||
  6370. tType == 4 ||
  6371. w.ateacher == userid,
  6372. }"
  6373. >
  6374. 评分
  6375. </div>
  6376. <img
  6377. class="deleteImg"
  6378. src="../assets/deleteworks.png"
  6379. v-if="
  6380. w.userid == userid || tType == 1 || tType == 4
  6381. "
  6382. @click.stop="deleteWorks(w.wid)"
  6383. alt
  6384. />
  6385. </div>
  6386. <div class="comment" style="min-width: 200px">
  6387. <div class="worksName">
  6388. <div>{{ w.sName }}</div>
  6389. </div>
  6390. <div class="commentList">
  6391. <div class="commentList">
  6392. <div
  6393. class="commentImg"
  6394. @click="
  6395. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6396. "
  6397. >
  6398. <img
  6399. :src="w.isLikes == true ? likes : noLikes"
  6400. alt=""
  6401. />
  6402. </div>
  6403. <div>{{ w.likesCount }}</div>
  6404. </div>
  6405. <div class="commentList" style="margin-right: 15px">
  6406. <div
  6407. class="commentImg"
  6408. @click="commentOther(w, toolIndex, wIndex)"
  6409. >
  6410. <img
  6411. src="../assets/icon/comment/comment.png"
  6412. alt=""
  6413. />
  6414. </div>
  6415. <div>{{ w.commentCount }}</div>
  6416. </div>
  6417. </div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6422. 未提交
  6423. </div>
  6424. <div
  6425. class="noWorksS"
  6426. v-if="noWorksS && noWorksS[toolIndex].length"
  6427. >
  6428. <div
  6429. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6430. :key="sIndex"
  6431. class="noWorksName"
  6432. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6433. >
  6434. <el-tooltip effect="dark" :content="s.student" placement="top">
  6435. <span>{{ s.student }}</span>
  6436. </el-tooltip>
  6437. </div>
  6438. </div>
  6439. </div>
  6440. <div
  6441. v-if="
  6442. tType &&
  6443. tType == 2 &&
  6444. !sIsOpen &&
  6445. tool.tool.indexOf(48) != -1
  6446. "
  6447. class="worksBox"
  6448. >
  6449. <div
  6450. class="zuoyeYulan"
  6451. v-if="workStudent[toolIndex].length > 0"
  6452. >
  6453. <span class="worksTitle">作业预览</span>
  6454. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6455. </div>
  6456. <div
  6457. class="worksDetailBox"
  6458. v-if="workStudent[toolIndex].length > 0"
  6459. >
  6460. <div
  6461. class="works"
  6462. style="
  6463. width: 200px;
  6464. height: 140px;
  6465. margin: 10px 10px 10px 0;
  6466. box-shadow: 0 0 6px 1px #dfdada;
  6467. "
  6468. v-for="(w, wIndex) in workStudent[toolIndex]"
  6469. :key="wIndex"
  6470. >
  6471. <div class="workImg">
  6472. <img :src="word" @click="openTable(w)" alt />
  6473. <div
  6474. class="answerScore"
  6475. v-if="w.score"
  6476. @click.stop="openScore(w)"
  6477. :class="{
  6478. rightW:
  6479. w.userid == userid || tType == 1 || tType == 4,
  6480. }"
  6481. >
  6482. {{ JSON.parse(w.score).wScore }}分
  6483. </div>
  6484. <div
  6485. class="answerScore"
  6486. @click.stop="openScore(w)"
  6487. v-else-if="courseDetail.userid == userid"
  6488. :class="{
  6489. rightW:
  6490. w.userid == userid || tType == 1 || tType == 4,
  6491. }"
  6492. >
  6493. 评分
  6494. </div>
  6495. <img
  6496. class="deleteImg"
  6497. src="../assets/deleteworks.png"
  6498. v-if="
  6499. w.userid == userid || tType == 1 || tType == 4
  6500. "
  6501. @click.stop="deleteWorks(w.wid)"
  6502. alt
  6503. />
  6504. </div>
  6505. <div class="worksName">
  6506. <div>{{ w.sName }}</div>
  6507. </div>
  6508. </div>
  6509. </div>
  6510. </div>
  6511. <div
  6512. v-if="
  6513. tType &&
  6514. ((tType == 2 && sIsOpen == true) ||
  6515. tType == 1 ||
  6516. tType == 4) &&
  6517. tool.tool.indexOf(52) != -1
  6518. "
  6519. class="worksBox"
  6520. >
  6521. <div
  6522. class="zuoyeYulan"
  6523. v-if="
  6524. worksStudent.length &&
  6525. worksStudent[toolIndex].length > 0
  6526. "
  6527. >
  6528. <div class="worksTop">
  6529. <div>作业预览</div>
  6530. <div
  6531. class="corOpen"
  6532. @click="contract(toolIndex)"
  6533. v-if="
  6534. (isCloseList[toolIndex].isCloseBoolean) &&
  6535. isCloseList[toolIndex].isClose == 0
  6536. "
  6537. >
  6538. 折叠
  6539. </div>
  6540. <div
  6541. class="corOpen"
  6542. @click="contract(toolIndex)"
  6543. v-if="isCloseList[toolIndex].isClose == 1"
  6544. >
  6545. 展开
  6546. </div>
  6547. </div>
  6548. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6549. </div>
  6550. <div
  6551. :id="'tool-' + toolIndex"
  6552. :style="{
  6553. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6554. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6555. }"
  6556. class="worksDetailBox"
  6557. v-if="
  6558. worksStudent.length &&
  6559. worksStudent[toolIndex].length > 0
  6560. "
  6561. >
  6562. <div
  6563. class="works"
  6564. style="
  6565. width: 200px;
  6566. height: 140px;
  6567. margin: 10px 10px 10px 0;
  6568. border-radius: 15px;
  6569. box-shadow: 0 0 6px 1px #dfdada;
  6570. "
  6571. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6572. :key="wIndex"
  6573. :class="w.type == 1 ? 'isTypeOne' : ''"
  6574. >
  6575. <div class="workImg">
  6576. <img :src="word" @click="openWord(w)" alt />
  6577. <!-- @click="openFile(w.works)" -->
  6578. <div
  6579. class="answerScore"
  6580. v-if="w.score"
  6581. @click.stop="openScore(w)"
  6582. :class="{
  6583. rightW:
  6584. w.userid == userid ||
  6585. tType == 1 ||
  6586. tType == 4 ||
  6587. w.ateacher == userid,
  6588. }"
  6589. >
  6590. {{ JSON.parse(w.score).wScore }}分
  6591. </div>
  6592. <div
  6593. class="answerScore"
  6594. @click.stop="openScore(w)"
  6595. v-else-if="courseDetail.userid == userid"
  6596. :class="{
  6597. rightW:
  6598. w.userid == userid ||
  6599. tType == 1 ||
  6600. tType == 4 ||
  6601. w.ateacher == userid,
  6602. }"
  6603. >
  6604. 评分
  6605. </div>
  6606. <img
  6607. class="deleteImg"
  6608. src="../assets/deleteworks.png"
  6609. v-if="
  6610. w.userid == userid || tType == 1 || tType == 4
  6611. "
  6612. @click.stop="deleteWorks(w.wid)"
  6613. alt
  6614. />
  6615. </div>
  6616. <div class="comment" style="min-width: 200px">
  6617. <div class="worksName">
  6618. <div>{{ w.sName }}</div>
  6619. </div>
  6620. <div class="commentList">
  6621. <div class="commentList">
  6622. <div
  6623. class="commentImg"
  6624. @click="
  6625. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6626. "
  6627. >
  6628. <img
  6629. :src="w.isLikes == true ? likes : noLikes"
  6630. alt=""
  6631. />
  6632. </div>
  6633. <div>{{ w.likesCount }}</div>
  6634. </div>
  6635. <div class="commentList" style="margin-right: 15px">
  6636. <div
  6637. class="commentImg"
  6638. @click="commentOther(w, toolIndex, wIndex)"
  6639. >
  6640. <img
  6641. src="../assets/icon/comment/comment.png"
  6642. alt=""
  6643. />
  6644. </div>
  6645. <div>{{ w.commentCount }}</div>
  6646. </div>
  6647. </div>
  6648. </div>
  6649. </div>
  6650. </div>
  6651. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6652. 未提交
  6653. </div>
  6654. <div
  6655. class="noWorksS"
  6656. v-if="noWorksS && noWorksS[toolIndex].length"
  6657. >
  6658. <div
  6659. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6660. :key="sIndex"
  6661. class="noWorksName"
  6662. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6663. >
  6664. <el-tooltip effect="dark" :content="s.student" placement="top">
  6665. <span>{{ s.student }}</span>
  6666. </el-tooltip>
  6667. </div>
  6668. </div>
  6669. </div>
  6670. <div
  6671. v-if="
  6672. tType &&
  6673. tType == 2 &&
  6674. !sIsOpen &&
  6675. tool.tool.indexOf(52) != -1
  6676. "
  6677. class="worksBox"
  6678. >
  6679. <div
  6680. class="zuoyeYulan"
  6681. v-if="workStudent[toolIndex].length > 0"
  6682. >
  6683. <span class="worksTitle">作业预览</span>
  6684. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6685. </div>
  6686. <div
  6687. class="worksDetailBox"
  6688. v-if="workStudent[toolIndex].length > 0"
  6689. >
  6690. <div
  6691. class="works"
  6692. style="
  6693. width: 200px;
  6694. height: 140px;
  6695. margin: 10px 10px 10px 0;
  6696. box-shadow: 0 0 6px 1px #dfdada;
  6697. "
  6698. v-for="(w, wIndex) in workStudent[toolIndex]"
  6699. :key="wIndex"
  6700. >
  6701. <div class="workImg">
  6702. <img :src="word" @click="openWord(w)" alt />
  6703. <div
  6704. class="answerScore"
  6705. v-if="w.score"
  6706. @click.stop="openScore(w)"
  6707. :class="{
  6708. rightW:
  6709. w.userid == userid || tType == 1 || tType == 4,
  6710. }"
  6711. >
  6712. {{ JSON.parse(w.score).wScore }}分
  6713. </div>
  6714. <div
  6715. class="answerScore"
  6716. @click.stop="openScore(w)"
  6717. v-else-if="courseDetail.userid == userid"
  6718. :class="{
  6719. rightW:
  6720. w.userid == userid || tType == 1 || tType == 4,
  6721. }"
  6722. >
  6723. 评分
  6724. </div>
  6725. <img
  6726. class="deleteImg"
  6727. src="../assets/deleteworks.png"
  6728. v-if="
  6729. w.userid == userid || tType == 1 || tType == 4
  6730. "
  6731. @click.stop="deleteWorks(w.wid)"
  6732. alt
  6733. />
  6734. </div>
  6735. <div class="worksName">
  6736. <div>{{ w.sName }}</div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. </div>
  6741. <div
  6742. v-if="tool.tool.indexOf(49) != -1"
  6743. class="xuan_right_box"
  6744. style="margin: 0 15px 0 25px; width: 93%"
  6745. >
  6746. <div
  6747. v-if="courseDetail.userid == userid"
  6748. style="
  6749. display: flex;
  6750. justify-content: flex-end;
  6751. margin-right: 10px;
  6752. "
  6753. >
  6754. <el-button
  6755. type="primary"
  6756. size="small"
  6757. @click="addTools(49, toolIndex, taskCount)"
  6758. >分组设置</el-button
  6759. >
  6760. </div>
  6761. <div
  6762. v-if="groupStudentUid[toolIndex]"
  6763. class="group_staic_box"
  6764. >
  6765. <div
  6766. v-for="(gp, gd) in tool.groupJson.group"
  6767. :key="gd"
  6768. class="group_staic"
  6769. >
  6770. <span> {{ gp.name }}</span>
  6771. <span>
  6772. 目前人数{{
  6773. groupStudentUid[toolIndex][gd].length
  6774. }}人</span
  6775. >
  6776. </div>
  6777. </div>
  6778. </div>
  6779. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6780. <div
  6781. class="zuoyeYulan"
  6782. v-if="
  6783. worksStudent.length &&
  6784. worksStudent[toolIndex].length > 0
  6785. "
  6786. >
  6787. <span class="worksTitle">作业预览</span>
  6788. </div>
  6789. <div>
  6790. <div
  6791. class="group_workBox"
  6792. v-for="(g, gindex) in tool.groupJson.group"
  6793. :key="gindex"
  6794. >
  6795. <div
  6796. class="group_box"
  6797. v-if="
  6798. groupStudentUid[toolIndex] &&
  6799. worksStudent[toolIndex] &&
  6800. (worksStudent[toolIndex][gindex].length ||
  6801. groupStudentUid[toolIndex][gindex].indexOf(
  6802. userid
  6803. ) != -1)
  6804. "
  6805. >
  6806. <div class="group_title">
  6807. <el-tooltip
  6808. class="item"
  6809. effect="light"
  6810. :content="g.name"
  6811. placement="top"
  6812. >
  6813. <div class="group_name">{{ g.name }}</div>
  6814. </el-tooltip>
  6815. <el-button
  6816. type="primary"
  6817. v-if="
  6818. groupStudentUid[toolIndex][gindex].indexOf(
  6819. userid
  6820. ) != -1
  6821. "
  6822. @click="groupUpload(toolIndex, taskCount, gindex)"
  6823. >上传作业</el-button
  6824. >
  6825. </div>
  6826. <div class="group_work">
  6827. <div
  6828. class="works"
  6829. style="
  6830. width: 200px;
  6831. height: 140px;
  6832. margin: 10px 10px 10px 0;
  6833. border-radius: 15px;
  6834. box-shadow: 0 0 6px 1px #dfdada;
  6835. "
  6836. v-for="(w, wIndex) in worksStudent[toolIndex][
  6837. gindex
  6838. ]"
  6839. :key="wIndex"
  6840. :class="w.type == 1 ? 'isTypeOne' : ''"
  6841. >
  6842. <div class="workImg" v-if="w.type == 0">
  6843. <img
  6844. :src="w.works"
  6845. @click="previewImg(w.works,w)"
  6846. alt
  6847. />
  6848. <div
  6849. class="answerScore"
  6850. v-if="w.score"
  6851. @click.stop="openScore(w)"
  6852. :class="{
  6853. rightW:
  6854. w.userid == userid ||
  6855. tType == 1 ||
  6856. tType == 4 ||
  6857. w.ateacher == userid,
  6858. }"
  6859. >
  6860. {{ JSON.parse(w.score).wScore }}分
  6861. </div>
  6862. <div
  6863. class="answerScore"
  6864. @click.stop="openScore(w)"
  6865. v-else-if="courseDetail.userid == userid"
  6866. :class="{
  6867. rightW:
  6868. w.userid == userid ||
  6869. tType == 1 ||
  6870. tType == 4 ||
  6871. w.ateacher == userid,
  6872. }"
  6873. >
  6874. 评分
  6875. </div>
  6876. <img
  6877. class="deleteImg"
  6878. src="../assets/deleteworks.png"
  6879. v-if="
  6880. w.userid == userid ||
  6881. tType == 1 ||
  6882. tType == 4
  6883. "
  6884. @click.stop="deleteWorks(w.wid)"
  6885. alt
  6886. />
  6887. </div>
  6888. <div class="workImg" v-if="w.type == 1">
  6889. <img
  6890. :src="word"
  6891. @click="openFile(w.works,w)"
  6892. alt
  6893. />
  6894. <!-- @click="openFile(w.works)" -->
  6895. <div
  6896. class="answerScore"
  6897. v-if="w.score"
  6898. @click.stop="openScore(w)"
  6899. :class="{
  6900. rightW:
  6901. w.userid == userid ||
  6902. tType == 1 ||
  6903. tType == 4 ||
  6904. w.ateacher == userid,
  6905. }"
  6906. >
  6907. {{ JSON.parse(w.score).wScore }}分
  6908. </div>
  6909. <div
  6910. class="answerScore"
  6911. @click.stop="openScore(w)"
  6912. v-else-if="courseDetail.userid == userid"
  6913. :class="{
  6914. rightW:
  6915. w.userid == userid ||
  6916. tType == 1 ||
  6917. tType == 4 ||
  6918. w.ateacher == userid,
  6919. }"
  6920. >
  6921. 评分
  6922. </div>
  6923. <img
  6924. class="deleteImg"
  6925. src="../assets/deleteworks.png"
  6926. v-if="
  6927. w.userid == userid ||
  6928. tType == 1 ||
  6929. tType == 4
  6930. "
  6931. @click.stop="deleteWorks(w.wid)"
  6932. alt
  6933. />
  6934. </div>
  6935. <div class="workImg" v-if="w.type == 3">
  6936. <img
  6937. style="cursor: pointer"
  6938. :src="video"
  6939. @click="openVideo(w)"
  6940. alt
  6941. />
  6942. <!-- @click="openVideo(w.works)" -->
  6943. <div
  6944. class="answerScore"
  6945. v-if="w.score"
  6946. @click.stop="openScore(w)"
  6947. :class="{
  6948. rightW:
  6949. w.userid == userid ||
  6950. tType == 1 ||
  6951. tType == 4 ||
  6952. w.ateacher == userid,
  6953. }"
  6954. >
  6955. {{ JSON.parse(w.score).wScore }}分
  6956. </div>
  6957. <div
  6958. class="answerScore"
  6959. @click.stop="openScore(w)"
  6960. v-else-if="courseDetail.userid == userid"
  6961. :class="{
  6962. rightW:
  6963. w.userid == userid ||
  6964. tType == 1 ||
  6965. tType == 4 ||
  6966. w.ateacher == userid,
  6967. }"
  6968. >
  6969. 评分
  6970. </div>
  6971. <img
  6972. class="deleteImg"
  6973. src="../assets/deleteworks.png"
  6974. v-if="
  6975. w.userid == userid ||
  6976. tType == 1 ||
  6977. tType == 4
  6978. "
  6979. @click.stop="deleteWorks(w.wid)"
  6980. alt
  6981. />
  6982. </div>
  6983. <div class="workImg" v-if="w.type == 12">
  6984. <img
  6985. style="cursor: pointer"
  6986. :src="word2"
  6987. @click="downloadFile(w.works)"
  6988. alt
  6989. />
  6990. <!-- @click="openVideo(w.works)" -->
  6991. <div
  6992. class="answerScore"
  6993. v-if="w.score"
  6994. @click.stop="openScore(w)"
  6995. :class="{
  6996. rightW:
  6997. w.userid == userid ||
  6998. tType == 1 ||
  6999. tType == 4 ||
  7000. w.ateacher == userid,
  7001. }"
  7002. >
  7003. {{ JSON.parse(w.score).wScore }}分
  7004. </div>
  7005. <div
  7006. class="answerScore"
  7007. @click.stop="openScore(w)"
  7008. v-else-if="courseDetail.userid == userid"
  7009. :class="{
  7010. rightW:
  7011. w.userid == userid ||
  7012. tType == 1 ||
  7013. tType == 4 ||
  7014. w.ateacher == userid,
  7015. }"
  7016. >
  7017. 评分
  7018. </div>
  7019. <img
  7020. class="deleteImg"
  7021. src="../assets/deleteworks.png"
  7022. v-if="
  7023. w.userid == userid ||
  7024. tType == 1 ||
  7025. tType == 4
  7026. "
  7027. @click.stop="deleteWorks(w.wid)"
  7028. alt
  7029. />
  7030. </div>
  7031. <div class="comment" style="min-width: 200px">
  7032. <div class="worksName">
  7033. <div>{{ w.sName }}</div>
  7034. </div>
  7035. <div class="commentList">
  7036. <div class="commentList">
  7037. <div
  7038. class="commentImg"
  7039. @click="
  7040. isLikes(
  7041. w.wid,
  7042. userid,
  7043. 1,
  7044. null,
  7045. w.isLikes,
  7046. w.sName
  7047. )
  7048. "
  7049. >
  7050. <img
  7051. :src="
  7052. w.isLikes == true ? likes : noLikes
  7053. "
  7054. alt=""
  7055. />
  7056. </div>
  7057. <div>{{ w.likesCount }}</div>
  7058. </div>
  7059. <div
  7060. class="commentList"
  7061. style="margin-right: 15px"
  7062. >
  7063. <div
  7064. class="commentImg"
  7065. @click="
  7066. commentOther(
  7067. w,
  7068. toolIndex,
  7069. wIndex,
  7070. gindex
  7071. )
  7072. "
  7073. >
  7074. <img
  7075. src="../assets/icon/comment/comment.png"
  7076. alt=""
  7077. />
  7078. </div>
  7079. <div>{{ w.commentCount }}</div>
  7080. </div>
  7081. </div>
  7082. </div>
  7083. </div>
  7084. </div>
  7085. </div>
  7086. </div>
  7087. </div>
  7088. </div>
  7089. </div>
  7090. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7091. 上传文件
  7092. <input
  7093. type="file"
  7094. accept="image/png, image/gif, image/jpeg"
  7095. style="display: none"
  7096. @change="beforeUpload1($event, 2, index)"
  7097. />
  7098. </div>-->
  7099. </div>
  7100. </div>
  7101. <!-- <div
  7102. class="vedioBox"
  7103. style="margin-top: 10px"
  7104. v-if="
  7105. courseDetail.userid == userid ||
  7106. (courseDetail.course_teacher &&
  7107. courseDetail.course_teacher.indexOf(userid) != -1)
  7108. "
  7109. :style="{
  7110. borderRadius:
  7111. !(
  7112. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7113. .toolChoose[0].tool &&
  7114. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7115. .toolChoose[0].tool.length > 0
  7116. ) &&
  7117. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7118. .taskDetail == '' &&
  7119. vChapterData[taskCount].length == 0 &&
  7120. fileC[taskCount].length == 0
  7121. ? '0 0 20px 20px'
  7122. : '20px',
  7123. }"
  7124. >
  7125. <div
  7126. class="queTop"
  7127. @click="isClose = !isClose"
  7128. style="
  7129. padding: 15px 0 15px 37px;
  7130. justify-content: space-between;
  7131. "
  7132. >
  7133. <div class="queTopTitle">新增工具</div>
  7134. <div class="queTopRight">
  7135. <div class="queTopClose" v-if="isClose == 0">
  7136. 展开
  7137. <div class="closeImg">
  7138. <img src="../assets/icon/newIcon/close.png" alt="" />
  7139. </div>
  7140. </div>
  7141. <div class="queTopClose" v-if="isClose == 1">
  7142. 折叠
  7143. <div class="openImg">
  7144. <img src="../assets/icon/newIcon/open.png" alt="" />
  7145. </div>
  7146. </div>
  7147. <el-button
  7148. style="margin: 0 30px 0 auto"
  7149. type="primary"
  7150. size="small"
  7151. v-if="isClose == 1 && checktoolArray.length > 0"
  7152. @click.stop="addToolChoose"
  7153. >确定</el-button
  7154. >
  7155. </div>
  7156. </div>
  7157. <div
  7158. class="tool_work_box"
  7159. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7160. >
  7161. <div class="tool_box">
  7162. <div class="tool_type_box">
  7163. <div class="chooseWho">
  7164. <div
  7165. :class="toolType == 0 ? 'isChooseActive' : ''"
  7166. @click="(toolType = 0), $forceUpdate()"
  7167. >
  7168. 互动类
  7169. </div>
  7170. <div
  7171. :class="toolType == 1 ? 'isChooseActive' : ''"
  7172. @click="(toolType = 1), $forceUpdate()"
  7173. >
  7174. 思维类
  7175. </div>
  7176. <div
  7177. :class="toolType == 2 ? 'isChooseActive' : ''"
  7178. @click="(toolType = 2), $forceUpdate()"
  7179. >
  7180. 测评类
  7181. </div>
  7182. <div
  7183. :class="toolType == 3 ? 'isChooseActive' : ''"
  7184. @click="(toolType = 3), $forceUpdate()"
  7185. >
  7186. 编程类
  7187. </div>
  7188. <div
  7189. :class="toolType == 5 ? 'isChooseActive' : ''"
  7190. @click="(toolType = 5), $forceUpdate()"
  7191. >
  7192. 学科类
  7193. </div>
  7194. </div>
  7195. </div>
  7196. <div>
  7197. <div class="toolSort" v-if="toolType == 0">
  7198. <div class="tool">
  7199. <div class="whiteBIcon" @click="addTools2(10)">
  7200. <img
  7201. src="../assets/icon/thirdToolList/time.png"
  7202. alt
  7203. />
  7204. <div style="margin: 5px 0">倒计时</div>
  7205. </div>
  7206. <div class="check" @click="addTools2(10)">
  7207. <img
  7208. src="../assets/icon/checkNo.png"
  7209. alt
  7210. v-if="checktoolArray.indexOf(10) == -1"
  7211. />
  7212. <div class="checkDiv" v-else>
  7213. <img src="../assets/icon/checkedIs.png" alt /><span
  7214. >已选择</span
  7215. >
  7216. </div>
  7217. </div>
  7218. </div>
  7219. <div class="tool">
  7220. <div class="whiteBIcon" @click="addTools2(65)">
  7221. <img
  7222. src="../assets/icon/firstToolList/pickPeople.png"
  7223. alt
  7224. />
  7225. <div style="margin: 5px 0">挑人</div>
  7226. </div>
  7227. <div class="check" @click="addTools2(65)">
  7228. <img
  7229. src="../assets/icon/checkNo.png"
  7230. alt
  7231. v-if="checktoolArray.indexOf(65) == -1"
  7232. />
  7233. <div class="checkDiv" v-else>
  7234. <img src="../assets/icon/checkedIs.png" alt /><span
  7235. >已选择</span
  7236. >
  7237. </div>
  7238. </div>
  7239. </div>
  7240. </div>
  7241. <div class="toolSort" v-if="toolType == 1">
  7242. <div class="tool">
  7243. <div class="whiteBIcon" @click="addTools2(7)">
  7244. <img
  7245. src="../assets/icon/secondToolList/mindNetwork.png"
  7246. alt
  7247. />
  7248. <div style="margin: 5px 0">思维网格</div>
  7249. </div>
  7250. <div class="check" @click="addTools2(7)">
  7251. <img
  7252. src="../assets/icon/checkNo.png"
  7253. alt
  7254. v-if="checktoolArray.indexOf(7) == -1"
  7255. />
  7256. <div class="checkDiv" v-else>
  7257. <img src="../assets/icon/checkedIs.png" alt /><span
  7258. >已选择</span
  7259. >
  7260. </div>
  7261. </div>
  7262. </div>
  7263. <div class="tool">
  7264. <div class="whiteBIcon" @click="addTools2(1)">
  7265. <img
  7266. src="../assets/icon/secondToolList/whiteBoard.png"
  7267. alt
  7268. />
  7269. <div style="margin: 5px 0">电子白板</div>
  7270. </div>
  7271. <div class="check" @click="addTools2(1)">
  7272. <img
  7273. src="../assets/icon/checkNo.png"
  7274. alt
  7275. v-if="checktoolArray.indexOf(1) == -1"
  7276. />
  7277. <div class="checkDiv" v-else>
  7278. <img src="../assets/icon/checkedIs.png" alt /><span
  7279. >已选择</span
  7280. >
  7281. </div>
  7282. </div>
  7283. </div>
  7284. <div class="tool">
  7285. <div class="whiteBIcon" @click="addTools2(52)">
  7286. <img
  7287. src="../assets/icon/fourthToolList/text.png"
  7288. alt
  7289. />
  7290. <div style="margin: 5px 0">文档</div>
  7291. </div>
  7292. <div class="check" @click="addTools2(52)">
  7293. <img
  7294. src="../assets/icon/checkNo.png"
  7295. alt
  7296. v-if="checktoolArray.indexOf(52) == -1"
  7297. />
  7298. <div class="checkDiv" v-else>
  7299. <img src="../assets/icon/checkedIs.png" alt /><span
  7300. >已选择</span
  7301. >
  7302. </div>
  7303. </div>
  7304. </div>
  7305. <div class="tool">
  7306. <div class="whiteBIcon" @click="addTools2(3)">
  7307. <img
  7308. src="../assets/icon/secondToolList/mindMapping.png"
  7309. alt
  7310. />
  7311. <div style="margin: 5px 0">思维导图</div>
  7312. </div>
  7313. <div class="check" @click="addTools2(3)">
  7314. <img
  7315. src="../assets/icon/checkNo.png"
  7316. alt
  7317. v-if="checktoolArray.indexOf(3) == -1"
  7318. />
  7319. <div class="checkDiv" v-else>
  7320. <img src="../assets/icon/checkedIs.png" alt /><span
  7321. >已选择</span
  7322. >
  7323. </div>
  7324. </div>
  7325. </div>
  7326. <div class="tool">
  7327. <div class="whiteBIcon" @click="addTools2(48)">
  7328. <img
  7329. src="../assets/icon/fourthToolList/table.png"
  7330. alt
  7331. />
  7332. <div style="margin: 5px 0">表格</div>
  7333. </div>
  7334. <div class="check" @click="addTools2(48)">
  7335. <img
  7336. src="../assets/icon/checkNo.png"
  7337. alt
  7338. v-if="checktoolArray.indexOf(48) == -1"
  7339. />
  7340. <div class="checkDiv" v-else>
  7341. <img src="../assets/icon/checkedIs.png" alt /><span
  7342. >已选择</span
  7343. >
  7344. </div>
  7345. </div>
  7346. </div>
  7347. </div>
  7348. <div class="toolSort" v-if="toolType == 6">
  7349. <div v-show="tooC == 49">
  7350. <img
  7351. @click="addTools(tooC, toolIndex, taskCount)"
  7352. src="../assets/icon/fourthToolList/group.png"
  7353. alt
  7354. />
  7355. <div style="margin: 5px 0">学生分组</div>
  7356. </div>
  7357. </div>
  7358. <div class="toolSort" v-if="toolType == 2">
  7359. <div class="tool">
  7360. <div class="whiteBIcon" @click="addTools2(16)">
  7361. <img
  7362. src="../assets/icon/thirdToolList/work.png"
  7363. alt
  7364. />
  7365. <div style="margin: 5px 0">作业提交</div>
  7366. </div>
  7367. <div class="check" @click="addTools2(16)">
  7368. <img
  7369. src="../assets/icon/checkNo.png"
  7370. alt
  7371. v-if="checktoolArray.indexOf(16) == -1"
  7372. />
  7373. <div class="checkDiv" v-else>
  7374. <img src="../assets/icon/checkedIs.png" alt /><span
  7375. >已选择</span
  7376. >
  7377. </div>
  7378. </div>
  7379. </div>
  7380. <div class="tool">
  7381. <div class="whiteBIcon" @click="addTools2(50)">
  7382. <img
  7383. src="../assets/icon/thirdToolList/plwork.png"
  7384. alt
  7385. />
  7386. <div style="margin: 5px 0">批量上传</div>
  7387. </div>
  7388. <div class="check" @click="addTools2(50)">
  7389. <img
  7390. src="../assets/icon/checkNo.png"
  7391. alt
  7392. v-if="checktoolArray.indexOf(50) == -1"
  7393. />
  7394. <div class="checkDiv" v-else>
  7395. <img src="../assets/icon/checkedIs.png" alt /><span
  7396. >已选择</span
  7397. >
  7398. </div>
  7399. </div>
  7400. </div>
  7401. </div>
  7402. <div class="toolSort" v-if="toolType == 3">
  7403. <div class="tool">
  7404. <div class="whiteBIcon" @click="addTools2(18)">
  7405. <img
  7406. src="../assets/icon/thirdToolList/trainPlatform.png"
  7407. alt
  7408. />
  7409. <div style="margin: 5px 0">训练平台</div>
  7410. </div>
  7411. <div class="check" @click="addTools2(18)">
  7412. <img
  7413. src="../assets/icon/checkNo.png"
  7414. alt
  7415. v-if="checktoolArray.indexOf(18) == -1"
  7416. />
  7417. <div class="checkDiv" v-else>
  7418. <img src="../assets/icon/checkedIs.png" alt /><span
  7419. >已选择</span
  7420. >
  7421. </div>
  7422. </div>
  7423. </div>
  7424. <div class="tool">
  7425. <div class="whiteBIcon" @click="addTools2(21)">
  7426. <img
  7427. src="../assets/icon/fourthToolList/program.png"
  7428. alt
  7429. />
  7430. <div style="margin: 5px 0">AIoT Blockly</div>
  7431. </div>
  7432. <div class="check" @click="addTools2(21)">
  7433. <img
  7434. src="../assets/icon/checkNo.png"
  7435. alt
  7436. v-if="checktoolArray.indexOf(21) == -1"
  7437. />
  7438. <div class="checkDiv" v-else>
  7439. <img src="../assets/icon/checkedIs.png" alt /><span
  7440. >已选择</span
  7441. >
  7442. </div>
  7443. </div>
  7444. </div>
  7445. <div class="tool">
  7446. <div class="whiteBIcon" @click="addTools2(23)">
  7447. <img
  7448. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7449. alt
  7450. />
  7451. <div style="margin: 5px 0">AI Python</div>
  7452. </div>
  7453. <div class="check" @click="addTools2(23)">
  7454. <img
  7455. src="../assets/icon/checkNo.png"
  7456. alt
  7457. v-if="checktoolArray.indexOf(23) == -1"
  7458. />
  7459. <div class="checkDiv" v-else>
  7460. <img src="../assets/icon/checkedIs.png" alt /><span
  7461. >已选择</span
  7462. >
  7463. </div>
  7464. </div>
  7465. </div>
  7466. <div class="tool">
  7467. <div class="whiteBIcon" @click="addTools2(24)">
  7468. <img
  7469. src="../assets/icon/fourthToolList/AIprogram.png"
  7470. alt
  7471. />
  7472. <div style="margin: 5px 0">AI Blockly</div>
  7473. </div>
  7474. <div class="check" @click="addTools2(24)">
  7475. <img
  7476. src="../assets/icon/checkNo.png"
  7477. alt
  7478. v-if="checktoolArray.indexOf(24) == -1"
  7479. />
  7480. <div class="checkDiv" v-else>
  7481. <img src="../assets/icon/checkedIs.png" alt /><span
  7482. >已选择</span
  7483. >
  7484. </div>
  7485. </div>
  7486. </div>
  7487. <div class="tool">
  7488. <div class="whiteBIcon" @click="addTools2(32)">
  7489. <img
  7490. src="../assets/icon/thirdToolList/code.png"
  7491. alt
  7492. />
  7493. <div style="margin: 5px 0">源码编辑</div>
  7494. </div>
  7495. <div class="check" @click="addTools2(32)">
  7496. <img
  7497. src="../assets/icon/checkNo.png"
  7498. alt
  7499. v-if="checktoolArray.indexOf(32) == -1"
  7500. />
  7501. <div class="checkDiv" v-else>
  7502. <img src="../assets/icon/checkedIs.png" alt /><span
  7503. >已选择</span
  7504. >
  7505. </div>
  7506. </div>
  7507. </div>
  7508. <div class="tool">
  7509. <div class="whiteBIcon" @click="addTools2(57)">
  7510. <img
  7511. src="../assets/icon/fourthToolList/cocopi.png"
  7512. alt
  7513. />
  7514. <div style="margin: 5px 0">CocoPi</div>
  7515. </div>
  7516. <div class="check" @click="addTools2(57)">
  7517. <img
  7518. src="../assets/icon/checkNo.png"
  7519. alt
  7520. v-if="checktoolArray.indexOf(57) == -1"
  7521. />
  7522. <div class="checkDiv" v-else>
  7523. <img src="../assets/icon/checkedIs.png" alt /><span
  7524. >已选择</span
  7525. >
  7526. </div>
  7527. </div>
  7528. </div>
  7529. <div class="tool">
  7530. <div class="whiteBIcon" @click="addTools2(63)">
  7531. <img
  7532. src="../assets/icon/fourthToolList/Wood.png"
  7533. alt
  7534. />
  7535. <div style="margin: 5px 0">海龟编程</div>
  7536. </div>
  7537. <div class="check" @click="addTools2(63)">
  7538. <img
  7539. src="../assets/icon/checkNo.png"
  7540. alt
  7541. v-if="checktoolArray.indexOf(63) == -1"
  7542. />
  7543. <div class="checkDiv" v-else>
  7544. <img src="../assets/icon/checkedIs.png" alt /><span
  7545. >已选择</span
  7546. >
  7547. </div>
  7548. </div>
  7549. </div>
  7550. </div>
  7551. <div class="toolSort" v-if="toolType == 5">
  7552. <div class="tool">
  7553. <div class="whiteBIcon" @click="addTools2(28)">
  7554. <img
  7555. src="../assets/icon/secondToolList/translation.png"
  7556. alt
  7557. />
  7558. <div style="margin: 5px 0">翻译</div>
  7559. </div>
  7560. <div class="check" @click="addTools2(28)">
  7561. <img
  7562. src="../assets/icon/checkNo.png"
  7563. alt
  7564. v-if="checktoolArray.indexOf(28) == -1"
  7565. />
  7566. <div class="checkDiv" v-else>
  7567. <img src="../assets/icon/checkedIs.png" alt /><span
  7568. >已选择</span
  7569. >
  7570. </div>
  7571. </div>
  7572. </div>
  7573. <div class="tool">
  7574. <div class="whiteBIcon" @click="addTools2(31)">
  7575. <img
  7576. src="../assets/icon/secondToolList/networkPanel.png"
  7577. alt
  7578. />
  7579. <div style="margin: 5px 0">数字画板</div>
  7580. </div>
  7581. <div class="check" @click="addTools2(31)">
  7582. <img
  7583. src="../assets/icon/checkNo.png"
  7584. alt
  7585. v-if="checktoolArray.indexOf(31) == -1"
  7586. />
  7587. <div class="checkDiv" v-else>
  7588. <img src="../assets/icon/checkedIs.png" alt /><span
  7589. >已选择</span
  7590. >
  7591. </div>
  7592. </div>
  7593. </div>
  7594. <div class="tool">
  7595. <div class="whiteBIcon" @click="addTools2(39)">
  7596. <img
  7597. src="../assets/icon/secondToolList/GeoGebra.png"
  7598. alt
  7599. />
  7600. <div style="margin: 5px 0">GeoGebra</div>
  7601. </div>
  7602. <div class="check" @click="addTools2(39)">
  7603. <img
  7604. src="../assets/icon/checkNo.png"
  7605. alt
  7606. v-if="checktoolArray.indexOf(39) == -1"
  7607. />
  7608. <div class="checkDiv" v-else>
  7609. <img src="../assets/icon/checkedIs.png" alt /><span
  7610. >已选择</span
  7611. >
  7612. </div>
  7613. </div>
  7614. </div>
  7615. <div class="tool">
  7616. <div class="whiteBIcon" @click="addTools2(66)">
  7617. <img
  7618. src="../assets/icon/secondToolList/formulaEdi.png"
  7619. alt
  7620. />
  7621. <div style="margin: 5px 0">公式编辑</div>
  7622. </div>
  7623. <div class="check" @click="addTools2(66)">
  7624. <img
  7625. src="../assets/icon/checkNo.png"
  7626. alt
  7627. v-if="checktoolArray.indexOf(66) == -1"
  7628. />
  7629. <div class="checkDiv" v-else>
  7630. <img src="../assets/icon/checkedIs.png" alt /><span
  7631. >已选择</span
  7632. >
  7633. </div>
  7634. </div>
  7635. </div>
  7636. <div class="tool">
  7637. <div class="whiteBIcon" @click="addTools2(67)">
  7638. <img
  7639. src="../assets/icon/secondToolList/molStr.png"
  7640. alt
  7641. />
  7642. <div style="margin: 5px 0">分子结构</div>
  7643. </div>
  7644. <div class="check" @click="addTools2(67)">
  7645. <img
  7646. src="../assets/icon/checkNo.png"
  7647. alt
  7648. v-if="checktoolArray.indexOf(67) == -1"
  7649. />
  7650. <div class="checkDiv" v-else>
  7651. <img src="../assets/icon/checkedIs.png" alt /><span
  7652. >已选择</span
  7653. >
  7654. </div>
  7655. </div>
  7656. </div>
  7657. <div class="tool">
  7658. <div class="whiteBIcon" @click="addTools2(68)">
  7659. <img
  7660. src="../assets/icon/secondToolList/timeAxis.png"
  7661. alt
  7662. />
  7663. <div style="margin: 5px 0">时间轴</div>
  7664. </div>
  7665. <div class="check" @click="addTools2(68)">
  7666. <img
  7667. src="../assets/icon/checkNo.png"
  7668. alt
  7669. v-if="checktoolArray.indexOf(68) == -1"
  7670. />
  7671. <div class="checkDiv" v-else>
  7672. <img src="../assets/icon/checkedIs.png" alt /><span
  7673. >已选择</span
  7674. >
  7675. </div>
  7676. </div>
  7677. </div>
  7678. </div>
  7679. <div class="toolSort" v-if="toolType == 7">
  7680. <div class="tool">
  7681. <div class="whiteBIcon" @click="addTools2(40)">
  7682. <img
  7683. src="../assets/icon/secondToolList/eval.png"
  7684. alt
  7685. />
  7686. <div style="margin: 5px 0">个人评价</div>
  7687. </div>
  7688. <div class="check" @click="addTools2(40)">
  7689. <img
  7690. src="../assets/icon/checkNo.png"
  7691. alt
  7692. v-if="checktoolArray.indexOf(40) == -1"
  7693. />
  7694. <div class="checkDiv" v-else>
  7695. <img src="../assets/icon/checkedIs.png" alt /><span
  7696. >已选择</span
  7697. >
  7698. </div>
  7699. </div>
  7700. </div>
  7701. </div>
  7702. <div class="toolSort" v-if="toolType == 4">
  7703. <div class="tool">
  7704. <div class="whiteBIcon" @click="addTools2(26)">
  7705. <img
  7706. src="../assets/icon/thirdToolList/courseDesign.png"
  7707. alt
  7708. />
  7709. <div style="margin: 5px 0">课程设计</div>
  7710. </div>
  7711. <div class="check" @click="addTools2(26)">
  7712. <img
  7713. src="../assets/icon/checkNo.png"
  7714. alt
  7715. v-if="checktoolArray.indexOf(26) == -1"
  7716. />
  7717. <div class="checkDiv" v-else>
  7718. <img src="../assets/icon/checkedIs.png" alt /><span
  7719. >已选择</span
  7720. >
  7721. </div>
  7722. </div>
  7723. </div>
  7724. <div class="tool">
  7725. <div class="whiteBIcon" @click="addTools2(25)">
  7726. <img
  7727. src="../assets/icon/thirdToolList/evalua.png"
  7728. alt
  7729. />
  7730. <div style="margin: 5px 0">目标管理</div>
  7731. </div>
  7732. <div class="check" @click="addTools2(25)">
  7733. <img
  7734. src="../assets/icon/checkNo.png"
  7735. alt
  7736. v-if="checktoolArray.indexOf(25) == -1"
  7737. />
  7738. <div class="checkDiv" v-else>
  7739. <img src="../assets/icon/checkedIs.png" alt /><span
  7740. >已选择</span
  7741. >
  7742. </div>
  7743. </div>
  7744. </div>
  7745. </div>
  7746. </div>
  7747. </div>
  7748. </div>
  7749. </div> -->
  7750. <div
  7751. class="vedioBox"
  7752. style="margin-top: 10px; border-radius: 20px"
  7753. v-if="
  7754. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7755. .eList &&
  7756. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7757. .eList.length &&
  7758. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7759. .eList.length > 0 &&
  7760. tType != 2
  7761. "
  7762. >
  7763. <div
  7764. class="queTop"
  7765. style="
  7766. font-size: 20px;
  7767. padding: 15px 0 15px 37px;
  7768. font-weight: bold;
  7769. "
  7770. >
  7771. <!-- <div class="question" style="width: 30px">
  7772. <img src="../assets/icon/toolIcon.png" alt />
  7773. </div>
  7774. <div class="queTitle">
  7775. <div>工具</div>
  7776. </div>-->
  7777. 评一评
  7778. </div>
  7779. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7780. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7781. <el-table
  7782. :data="
  7783. chapInfoList[courseType].chapterInfo[0].taskJson[
  7784. taskCount
  7785. ].eList
  7786. "
  7787. :header-cell-style="{ background: '#F0F4FA' }"
  7788. :row-class-name="tableRowClassName"
  7789. border
  7790. stripe
  7791. style="width: 100%"
  7792. >
  7793. <el-table-column
  7794. label="评价名称"
  7795. align="center"
  7796. >
  7797. <template slot-scope="scope"
  7798. ><div>{{ scope.row.value }}</div></template
  7799. >
  7800. </el-table-column>
  7801. <el-table-column
  7802. label="评价描述"
  7803. align="center"
  7804. >
  7805. <template slot-scope="scope"
  7806. ><div>
  7807. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7808. </div></template
  7809. >
  7810. </el-table-column>
  7811. <el-table-column label="目标" align="center">
  7812. <template slot-scope="scope"
  7813. ><div>
  7814. {{
  7815. scope.row.target
  7816. ? scope.row.target[scope.row.target.length - 1]
  7817. : "-"
  7818. }}
  7819. </div></template
  7820. ></el-table-column
  7821. >
  7822. </el-table>
  7823. <!-- <div
  7824. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7825. .chapterInfo[0].taskJson[taskCount].eList"
  7826. :key="eIndex"
  7827. class="elist_input_box"
  7828. >
  7829. <div style="width: 95%">
  7830. <div
  7831. style="
  7832. display: flex;
  7833. flex-direction: row;
  7834. flex-wrap: nowrap;
  7835. align-items: center;
  7836. "
  7837. >
  7838. <div style="max-width: calc(100% - 285px)">
  7839. <span>{{ eItem.value }}</span>
  7840. </div>
  7841. <div
  7842. style="
  7843. padding-left: 25px;
  7844. display: flex;
  7845. flex-direction: row;
  7846. align-items: center;
  7847. "
  7848. >
  7849. <el-rate
  7850. v-model="eItem.score"
  7851. :colors="colors"
  7852. disabled
  7853. ></el-rate>
  7854. </div>
  7855. </div>
  7856. <div class="elist_inptu_text" style="padding-left: 10px">
  7857. <span v-if="eItem.detail != ''">{{
  7858. eItem.detail
  7859. }}</span>
  7860. <span v-else style="color: #b2b1b3; font-size: 14px"
  7861. >暂无描述...</span
  7862. >
  7863. </div>
  7864. </div>
  7865. </div> -->
  7866. </div>
  7867. <div
  7868. v-if="evalua"
  7869. style="
  7870. border: 1px solid #e5e5e5;
  7871. max-width: 650px;
  7872. width: 100%;
  7873. margin-top: 20px;
  7874. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7875. "
  7876. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7877. >
  7878. <div class="e_add_top">
  7879. <div class="e_add_title" style="width: 100%">
  7880. <!-- <span>目标管理名称</span> -->
  7881. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7882. <img
  7883. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7884. src="../assets/line.png"
  7885. class="cru_line"
  7886. style="
  7887. width: 125px;
  7888. height: 20px;
  7889. bottom: -10px;
  7890. left: 5px;
  7891. "
  7892. />
  7893. <!-- <el-input
  7894. v-model="eTitle"
  7895. placeholder="请输入名称"
  7896. @change="setMindData"
  7897. ></el-input>-->
  7898. <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>
  7899. <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>
  7900. </div>
  7901. </div>
  7902. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7903. <div class="e_add_list_pbox">
  7904. <div class="e_add_list_pbox_title">
  7905. <!-- <span class="type_title">切换模式</span> -->
  7906. <div class="type_content">
  7907. <span
  7908. :class="{ active: typeMode == 1 }"
  7909. @click="typeMode = 1"
  7910. >目标树</span
  7911. >
  7912. <span
  7913. :class="{ active: typeMode == 2 }"
  7914. @click="typeMode = 2"
  7915. >目标罗盘</span
  7916. >
  7917. <!-- <span
  7918. :class="{ active: typeMode == 3 }"
  7919. @click="typeMode = 3"
  7920. >目标看板</span
  7921. > -->
  7922. </div>
  7923. </div>
  7924. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7925. <Mind
  7926. :showBar="false"
  7927. :mindData="data"
  7928. style="width: 100%"
  7929. v-show="typeMode == 1"
  7930. ></Mind>
  7931. <Sunburst
  7932. :Josn="eJson"
  7933. :num="eJSONNum"
  7934. style="width: 100%"
  7935. v-if="typeMode == 2"
  7936. ></Sunburst>
  7937. <SeeBoard
  7938. :Josn="eJson"
  7939. :num="eJSONNum"
  7940. :ename="eTitle"
  7941. style="width: 100%"
  7942. v-if="typeMode == 3"
  7943. >
  7944. </SeeBoard>
  7945. </div>
  7946. </div>
  7947. </div>
  7948. </div>
  7949. </div>
  7950. </div>
  7951. <!-- <div
  7952. class="project_box"
  7953. style="margin-top: 15px; padding-bottom: 30px"
  7954. >
  7955. <div
  7956. style="
  7957. display: flex;
  7958. flex-wrap: nowrap;
  7959. flex-direction: column;
  7960. position: relative;
  7961. "
  7962. >
  7963. <div class="queTop">
  7964. <div class="question">
  7965. <img src="../assets/icon/homeWork.png" alt="" />
  7966. </div>
  7967. <div class="queTitle">
  7968. <div>作业提交<span>(提交图文视频等)</span></div>
  7969. <div>:任务:{{ task.task }}</div>
  7970. </div>
  7971. </div>
  7972. <div class="ediBottom">
  7973. <div
  7974. class="addEditor"
  7975. style="margin-top: 23px"
  7976. @click="openAddWork"
  7977. v-if="!isNoHomeWork"
  7978. >
  7979. 选择文件
  7980. </div>
  7981. <div
  7982. class="addEditor"
  7983. style="margin-top: 23px"
  7984. @click="openAddWork"
  7985. v-else
  7986. >
  7987. 已提交
  7988. </div>
  7989. </div>
  7990. </div>
  7991. </div>-->
  7992. </div>
  7993. </div>
  7994. <el-dialog
  7995. title="作业提交"
  7996. :visible.sync="dialogVisible"
  7997. :append-to-body="true"
  7998. width="500px"
  7999. :before-close="handleClose"
  8000. class="dialog_change"
  8001. >
  8002. <div class="marginT">
  8003. <div>上传文件</div>
  8004. <div
  8005. class="chapter_add"
  8006. @click="addImg($event)"
  8007. v-if="studyJuri[0].cover.length == 0"
  8008. >
  8009. <div class="up_photo">
  8010. <img src="../assets/icon/uploadImg.png" alt />
  8011. </div>
  8012. <!-- <input
  8013. type="file"
  8014. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8015. style="display: none"
  8016. @change="beforeUpload1($event, 1)"
  8017. /> -->
  8018. <input
  8019. type="file"
  8020. accept="*"
  8021. style="display: none"
  8022. @change="beforeUpload1($event, 1)"
  8023. />
  8024. <!-- <input
  8025. type="file"
  8026. accept="image/*"
  8027. capture="camera"
  8028. style="display: none"
  8029. @change="beforeUpload1($event, 1)"
  8030. /> -->
  8031. </div>
  8032. <div
  8033. class="chapter_add"
  8034. style="
  8035. display: flex;
  8036. width: 100%;
  8037. flex-direction: row;
  8038. flex-wrap: wrap;
  8039. justify-content: flex-start;
  8040. padding: 15px 0;
  8041. "
  8042. v-if="studyJuri[0].cover.length > 0"
  8043. >
  8044. <div class="upCover">
  8045. <img
  8046. :src="studyJuri[0].cover[0].url"
  8047. alt
  8048. v-if="fileType == 0"
  8049. />
  8050. <img :src="word" alt v-else-if="fileType == 1" />
  8051. <img :src="video" alt v-else-if="fileType == 2" />
  8052. <img :src="word2" alt v-else-if="fileType == 3" />
  8053. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8054. <div class="deleteWord" @click="clean(1)">
  8055. <img src="../assets/icon/deleteWorks.png" alt />
  8056. </div>
  8057. </div>
  8058. </div>
  8059. </div>
  8060. <div
  8061. class="upload_send"
  8062. @click="addCourseWorks(taskCount)"
  8063. v-if="!proVisible"
  8064. >
  8065. 提交
  8066. </div>
  8067. </el-dialog>
  8068. </div>
  8069. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8070. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8071. '/courseDetail?userid=' +
  8072. userid +
  8073. '&oid=' +
  8074. oid +
  8075. '&org=' +
  8076. org +
  8077. '&cid=' +
  8078. classId +
  8079. '&courseId=' +
  8080. id +
  8081. '&tType=' +
  8082. tType +
  8083. '&screenType=' +
  8084. screenType
  8085. )"></classRoomHelper>
  8086. </div>
  8087. <div
  8088. class="pButton"
  8089. @click="(pzDialog = true), selectPz()"
  8090. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8091. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8092. >
  8093. <!-- 批 -->
  8094. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8095. </div>
  8096. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8097. <div class="pzTop2">
  8098. <!-- <div>评论</div>
  8099. <div @click="pzDialog = false">
  8100. <img src="../assets/close1.png" alt="" />
  8101. </div> -->
  8102. <div class="checkbox">
  8103. <!-- <div class="check" style="font-size: 25px; position: unset">
  8104. 评论
  8105. </div> -->
  8106. <div class="cb-tabList">
  8107. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8108. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8109. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8110. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8111. </div>
  8112. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8113. <el-option label="时间降序" :value="1"></el-option>
  8114. <el-option label="时间升序" :value="2"></el-option>
  8115. <el-option label="我的评课" :value="3"></el-option>
  8116. </el-select>
  8117. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8118. </div>
  8119. </div>
  8120. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8121. <div class="pzListBox" v-if="pzList && pzList.length">
  8122. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8123. <div class="pzNavTop">
  8124. <div>评</div>
  8125. <div>
  8126. {{
  8127. pz.username && pz.username.length > 5
  8128. ? pz.username.substring(0, 5) + "..."
  8129. : pz.username
  8130. }}的评论
  8131. </div>
  8132. <div
  8133. class="pzDelete"
  8134. v-if="pz.userid == userid"
  8135. @click="deletePz(pz.id)"
  8136. >
  8137. 删除
  8138. </div>
  8139. </div>
  8140. <div
  8141. @click="checkImg(getImgList(pz.content))"
  8142. class="pzContent cont"
  8143. v-html="pz.content"
  8144. v-if="pz.type == '1'"
  8145. ></div>
  8146. <div class="pzContent" v-if="pz.type == '2'">
  8147. <audio :src="pz.content" controls="controls" ref="audio">
  8148. Your browser does not support the audio element.
  8149. </audio>
  8150. </div>
  8151. <div class="pzContent" v-if="pz.type == '3'">
  8152. <img
  8153. :src="pz.content"
  8154. style="width: 90%; margin: 0 auto; display: block"
  8155. @click="previewImg(pz.content)"
  8156. />
  8157. </div>
  8158. <div class="timeAndReply">
  8159. <div class="time">
  8160. {{ pz.time }}
  8161. </div>
  8162. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8163. </div>
  8164. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8165. <div
  8166. v-for="(h, hIndex) in pz.hfList"
  8167. :key="hIndex"
  8168. class="hfItem"
  8169. >
  8170. <div class="whoReplyWho">
  8171. <div class="hfName">{{ h.username }}</div>
  8172. <div class="hfImg">
  8173. <img src="../assets/icon/newIcons/right.png" alt="" />
  8174. </div>
  8175. <div class="hfName">{{ pz.username }}</div>
  8176. </div>
  8177. <div class="hfContent" v-html="h.content"></div>
  8178. <div class="hfBottom">
  8179. <div class="hfTime">{{ h.time }}</div>
  8180. <div
  8181. class="deleteHfItem"
  8182. @click="deleteReply(h.id)"
  8183. v-if="userid == h.userid"
  8184. >
  8185. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8186. </div>
  8187. </div>
  8188. </div>
  8189. </div>
  8190. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8191. <div class="replyInput">
  8192. <el-input v-model="reply[pzIndex]"></el-input>
  8193. </div>
  8194. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8195. </div> -->
  8196. </div>
  8197. </div>
  8198. <div class="noPz" v-else>
  8199. <img src="../assets/icon/noPz.png" alt="" />
  8200. </div>
  8201. <div class="addPzButton">
  8202. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8203. 添加评论
  8204. </div>
  8205. <!-- <div class="img1">
  8206. <div @click="(addPzDialog = true), (pzType = 2)">
  8207. <img src="../assets/audio.png" /><span>音频</span>
  8208. </div>
  8209. </div> -->
  8210. </div>
  8211. </div>
  8212. <div class="scoreList" v-if="commentTagShow==1">
  8213. <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"/>
  8214. </div>
  8215. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8216. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8217. </div>
  8218. </div>
  8219. <div
  8220. v-if="toolDialogVisible == true"
  8221. class="toolMask"
  8222. @click="toolDialogVisible = false"
  8223. ></div>
  8224. <div v-if="toolDialogVisible == true" class="addToolCss">
  8225. <div class="toolTop">
  8226. <div style="font-weight: bold">新增工具</div>
  8227. <div @click="toolDialogVisible = false">
  8228. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8229. </div>
  8230. </div>
  8231. <div class="tool_box">
  8232. <div class="tool_type_box">
  8233. <div class="chooseWho">
  8234. <div
  8235. :class="toolType == 0 ? 'isChooseActive' : ''"
  8236. @click="(toolType = 0), $forceUpdate()"
  8237. >
  8238. 互动类
  8239. </div>
  8240. <div
  8241. :class="toolType == 1 ? 'isChooseActive' : ''"
  8242. @click="(toolType = 1), $forceUpdate()"
  8243. >
  8244. 思维类
  8245. </div>
  8246. <div
  8247. :class="toolType == 2 ? 'isChooseActive' : ''"
  8248. @click="(toolType = 2), $forceUpdate()"
  8249. >
  8250. 测评类
  8251. </div>
  8252. <div
  8253. :class="toolType == 3 ? 'isChooseActive' : ''"
  8254. @click="(toolType = 3), $forceUpdate()"
  8255. >
  8256. 编程类
  8257. </div>
  8258. <div
  8259. :class="toolType == 5 ? 'isChooseActive' : ''"
  8260. @click="(toolType = 5), $forceUpdate()"
  8261. >
  8262. 学科类
  8263. </div>
  8264. </div>
  8265. </div>
  8266. <div>
  8267. <div class="toolSort" v-if="toolType == 0">
  8268. <div
  8269. class="tool"
  8270. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8271. @click="addTools2(10)"
  8272. >
  8273. <div class="whiteBIcon">
  8274. <img src="../assets/icon/thirdToolList/time.png" alt />
  8275. <div style="margin: 5px 0">倒计时</div>
  8276. </div>
  8277. <div class="check">
  8278. <div
  8279. v-if="checktoolArray.indexOf(10) == -1"
  8280. class="noChoose"
  8281. ></div>
  8282. <div v-else class="isChoose"></div>
  8283. </div>
  8284. </div>
  8285. <div
  8286. class="tool"
  8287. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8288. @click="addTools2(65)"
  8289. >
  8290. <div class="whiteBIcon">
  8291. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8292. <div style="margin: 5px 0">挑人</div>
  8293. </div>
  8294. <div class="check">
  8295. <div
  8296. v-if="checktoolArray.indexOf(65) == -1"
  8297. class="noChoose"
  8298. ></div>
  8299. <div v-else class="isChoose"></div>
  8300. </div>
  8301. </div>
  8302. </div>
  8303. <div class="toolSort" v-if="toolType == 1">
  8304. <div
  8305. class="tool"
  8306. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8307. @click="addTools2(7)"
  8308. >
  8309. <div class="whiteBIcon">
  8310. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8311. <div style="margin: 5px 0">思维网格</div>
  8312. </div>
  8313. <div class="check">
  8314. <div
  8315. v-if="checktoolArray.indexOf(7) == -1"
  8316. class="noChoose"
  8317. ></div>
  8318. <div v-else class="isChoose"></div>
  8319. </div>
  8320. </div>
  8321. <div
  8322. class="tool"
  8323. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8324. @click="addTools2(1)"
  8325. >
  8326. <div class="whiteBIcon">
  8327. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8328. <div style="margin: 5px 0">电子白板</div>
  8329. </div>
  8330. <div class="check">
  8331. <div
  8332. v-if="checktoolArray.indexOf(1) == -1"
  8333. class="noChoose"
  8334. ></div>
  8335. <div v-else class="isChoose"></div>
  8336. </div>
  8337. </div>
  8338. <div
  8339. class="tool"
  8340. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8341. @click="addTools2(52)"
  8342. >
  8343. <div class="whiteBIcon">
  8344. <img src="../assets/icon/fourthToolList/text.png" alt />
  8345. <div style="margin: 5px 0">文档</div>
  8346. </div>
  8347. <div class="check">
  8348. <div
  8349. v-if="checktoolArray.indexOf(52) == -1"
  8350. class="noChoose"
  8351. ></div>
  8352. <div v-else class="isChoose"></div>
  8353. </div>
  8354. </div>
  8355. <div
  8356. class="tool"
  8357. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8358. @click="addTools2(3)"
  8359. >
  8360. <div class="whiteBIcon">
  8361. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8362. <div style="margin: 5px 0">思维导图</div>
  8363. </div>
  8364. <div class="check">
  8365. <div
  8366. v-if="checktoolArray.indexOf(3) == -1"
  8367. class="noChoose"
  8368. ></div>
  8369. <div v-else class="isChoose"></div>
  8370. </div>
  8371. </div>
  8372. <div
  8373. class="tool"
  8374. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8375. @click="addTools2(48)"
  8376. >
  8377. <div class="whiteBIcon">
  8378. <img src="../assets/icon/fourthToolList/table.png" alt />
  8379. <div style="margin: 5px 0">表格</div>
  8380. </div>
  8381. <div class="check">
  8382. <div
  8383. v-if="checktoolArray.indexOf(48) == -1"
  8384. class="noChoose"
  8385. ></div>
  8386. <div v-else class="isChoose"></div>
  8387. </div>
  8388. </div>
  8389. </div>
  8390. <div class="toolSort" v-if="toolType == 6">
  8391. <div v-show="tooC == 49">
  8392. <img
  8393. @click="addTools(tooC, toolIndex, taskCount)"
  8394. src="../assets/icon/fourthToolList/group.png"
  8395. alt
  8396. />
  8397. <div style="margin: 5px 0">学生分组</div>
  8398. </div>
  8399. </div>
  8400. <div class="toolSort" v-if="toolType == 2">
  8401. <div
  8402. class="tool"
  8403. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8404. @click="addTools2(16)"
  8405. >
  8406. <div class="whiteBIcon">
  8407. <img src="../assets/icon/thirdToolList/work.png" alt />
  8408. <div style="margin: 5px 0">作业提交</div>
  8409. </div>
  8410. <div class="check">
  8411. <div
  8412. v-if="checktoolArray.indexOf(16) == -1"
  8413. class="noChoose"
  8414. ></div>
  8415. <div v-else class="isChoose"></div>
  8416. </div>
  8417. </div>
  8418. <div
  8419. class="tool"
  8420. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8421. @click="addTools2(50)"
  8422. >
  8423. <div class="whiteBIcon">
  8424. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8425. <div style="margin: 5px 0">批量上传</div>
  8426. </div>
  8427. <div class="check">
  8428. <div
  8429. v-if="checktoolArray.indexOf(50) == -1"
  8430. class="noChoose"
  8431. ></div>
  8432. <div v-else class="isChoose"></div>
  8433. </div>
  8434. </div>
  8435. </div>
  8436. <div class="toolSort" v-if="toolType == 3">
  8437. <div
  8438. class="tool"
  8439. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8440. @click="addTools2(18)"
  8441. >
  8442. <div class="whiteBIcon">
  8443. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8444. <div style="margin: 5px 0">训练平台</div>
  8445. </div>
  8446. <div class="check">
  8447. <div
  8448. v-if="checktoolArray.indexOf(18) == -1"
  8449. class="noChoose"
  8450. ></div>
  8451. <div v-else class="isChoose"></div>
  8452. </div>
  8453. </div>
  8454. <div
  8455. class="tool"
  8456. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8457. @click="addTools2(21)"
  8458. >
  8459. <div class="whiteBIcon">
  8460. <img src="../assets/icon/fourthToolList/program.png" alt />
  8461. <div style="margin: 5px 0">AIoT Blockly</div>
  8462. </div>
  8463. <div class="check">
  8464. <div
  8465. v-if="checktoolArray.indexOf(21) == -1"
  8466. class="noChoose"
  8467. ></div>
  8468. <div v-else class="isChoose"></div>
  8469. </div>
  8470. </div>
  8471. <div
  8472. class="tool"
  8473. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8474. @click="addTools2(23)"
  8475. >
  8476. <div class="whiteBIcon">
  8477. <img
  8478. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8479. alt
  8480. />
  8481. <div style="margin: 5px 0">AI Python</div>
  8482. </div>
  8483. <div class="check">
  8484. <div
  8485. v-if="checktoolArray.indexOf(23) == -1"
  8486. class="noChoose"
  8487. ></div>
  8488. <div v-else class="isChoose"></div>
  8489. </div>
  8490. </div>
  8491. <div
  8492. class="tool"
  8493. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8494. @click="addTools2(24)"
  8495. >
  8496. <div class="whiteBIcon">
  8497. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8498. <div style="margin: 5px 0">AI Blockly</div>
  8499. </div>
  8500. <div class="check">
  8501. <div
  8502. v-if="checktoolArray.indexOf(24) == -1"
  8503. class="noChoose"
  8504. ></div>
  8505. <div v-else class="isChoose"></div>
  8506. </div>
  8507. </div>
  8508. <div
  8509. class="tool"
  8510. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8511. @click="addTools2(32)"
  8512. >
  8513. <div class="whiteBIcon">
  8514. <img src="../assets/icon/thirdToolList/code.png" alt />
  8515. <div style="margin: 5px 0">源码编辑</div>
  8516. </div>
  8517. <div class="check">
  8518. <div
  8519. v-if="checktoolArray.indexOf(32) == -1"
  8520. class="noChoose"
  8521. ></div>
  8522. <div v-else class="isChoose"></div>
  8523. </div>
  8524. </div>
  8525. <div
  8526. class="tool"
  8527. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8528. @click="addTools2(57)"
  8529. >
  8530. <div class="whiteBIcon">
  8531. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8532. <div style="margin: 5px 0">CocoPi</div>
  8533. </div>
  8534. <div class="check">
  8535. <div
  8536. v-if="checktoolArray.indexOf(57) == -1"
  8537. class="noChoose"
  8538. ></div>
  8539. <div v-else class="isChoose"></div>
  8540. </div>
  8541. </div>
  8542. <div
  8543. class="tool"
  8544. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8545. @click="addTools2(63)"
  8546. >
  8547. <div class="whiteBIcon">
  8548. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8549. <div style="margin: 5px 0">海龟编程</div>
  8550. </div>
  8551. <div class="check">
  8552. <div
  8553. v-if="checktoolArray.indexOf(63) == -1"
  8554. class="noChoose"
  8555. ></div>
  8556. <div v-else class="isChoose"></div>
  8557. </div>
  8558. </div>
  8559. <div
  8560. class="tool"
  8561. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8562. @click="addTools2(71)"
  8563. >
  8564. <div class="whiteBIcon">
  8565. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8566. <div style="margin: 5px 0">AI智能体</div>
  8567. </div>
  8568. <div class="check">
  8569. <div
  8570. v-if="checktoolArray.indexOf(71) == -1"
  8571. class="noChoose"
  8572. ></div>
  8573. <div v-else class="isChoose"></div>
  8574. </div>
  8575. </div>
  8576. </div>
  8577. <div class="toolSort" v-if="toolType == 7">
  8578. <div
  8579. class="tool"
  8580. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8581. @click="addTools2(40)"
  8582. >
  8583. <div class="whiteBIcon">
  8584. <img src="../assets/icon/secondToolList/eval.png" alt />
  8585. <div style="margin: 5px 0">个人评价</div>
  8586. </div>
  8587. <div class="check">
  8588. <div
  8589. v-if="checktoolArray.indexOf(40) == -1"
  8590. class="noChoose"
  8591. ></div>
  8592. <div v-else class="isChoose"></div>
  8593. </div>
  8594. </div>
  8595. </div>
  8596. <div class="toolSort" v-if="toolType == 5">
  8597. <div
  8598. class="tool"
  8599. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8600. @click="addTools2(28)"
  8601. >
  8602. <div class="whiteBIcon">
  8603. <img src="../assets/icon/secondToolList/translation.png" alt />
  8604. <div style="margin: 5px 0">翻译</div>
  8605. </div>
  8606. <div class="check">
  8607. <div
  8608. v-if="checktoolArray.indexOf(28) == -1"
  8609. class="noChoose"
  8610. ></div>
  8611. <div v-else class="isChoose"></div>
  8612. </div>
  8613. </div>
  8614. <div
  8615. class="tool"
  8616. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8617. @click="addTools2(31)"
  8618. >
  8619. <div class="whiteBIcon">
  8620. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8621. <div style="margin: 5px 0">数字画板</div>
  8622. </div>
  8623. <div class="check">
  8624. <div
  8625. v-if="checktoolArray.indexOf(31) == -1"
  8626. class="noChoose"
  8627. ></div>
  8628. <div v-else class="isChoose"></div>
  8629. </div>
  8630. </div>
  8631. <div
  8632. class="tool"
  8633. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8634. @click="addTools2(39)"
  8635. >
  8636. <div class="whiteBIcon">
  8637. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8638. <div style="margin: 5px 0">GeoGebra</div>
  8639. </div>
  8640. <div class="check">
  8641. <div
  8642. v-if="checktoolArray.indexOf(39) == -1"
  8643. class="noChoose"
  8644. ></div>
  8645. <div v-else class="isChoose"></div>
  8646. </div>
  8647. </div>
  8648. <div
  8649. class="tool"
  8650. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8651. @click="addTools2(66)"
  8652. >
  8653. <div class="whiteBIcon">
  8654. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8655. <div style="margin: 5px 0">公式编辑</div>
  8656. </div>
  8657. <div class="check">
  8658. <div
  8659. v-if="checktoolArray.indexOf(66) == -1"
  8660. class="noChoose"
  8661. ></div>
  8662. <div v-else class="isChoose"></div>
  8663. </div>
  8664. </div>
  8665. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8666. <div class="whiteBIcon" @click="addTools2(67)">
  8667. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8668. <div style="margin: 5px 0">分子结构</div>
  8669. </div>
  8670. <div class="check" @click="addTools2(67)">
  8671. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8672. <div v-else class="isChoose"></div>
  8673. </div>
  8674. </div> -->
  8675. <div
  8676. class="tool"
  8677. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8678. @click="addTools2(68)"
  8679. >
  8680. <div class="whiteBIcon">
  8681. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8682. <div style="margin: 5px 0">时间轴</div>
  8683. </div>
  8684. <div class="check">
  8685. <div
  8686. v-if="checktoolArray.indexOf(68) == -1"
  8687. class="noChoose"
  8688. ></div>
  8689. <div v-else class="isChoose"></div>
  8690. </div>
  8691. </div>
  8692. <!-- <div
  8693. class="tool"
  8694. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8695. @click="addTools2(69)"
  8696. >
  8697. <div class="whiteBIcon">
  8698. <img src="../assets/icon/secondToolList/english.png" alt />
  8699. <div style="margin: 5px 0">英语写作</div>
  8700. </div>
  8701. <div class="check">
  8702. <div
  8703. v-if="checktoolArray.indexOf(69) == -1"
  8704. class="noChoose"
  8705. ></div>
  8706. <div v-else class="isChoose"></div>
  8707. </div>
  8708. </div> -->
  8709. </div>
  8710. <div class="toolSort" v-if="toolType == 4">
  8711. <div
  8712. class="tool"
  8713. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8714. @click="addTools2(26)"
  8715. >
  8716. <div class="whiteBIcon">
  8717. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8718. <div style="margin: 5px 0">课程设计</div>
  8719. </div>
  8720. <div class="check">
  8721. <div
  8722. v-if="checktoolArray.indexOf(26) == -1"
  8723. class="noChoose"
  8724. ></div>
  8725. <div v-else class="isChoose"></div>
  8726. </div>
  8727. </div>
  8728. <div
  8729. class="tool"
  8730. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8731. @click="addTools2(25)"
  8732. >
  8733. <div class="whiteBIcon">
  8734. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8735. <div style="margin: 5px 0">目标管理</div>
  8736. </div>
  8737. <div class="check">
  8738. <div
  8739. v-if="checktoolArray.indexOf(25) == -1"
  8740. class="noChoose"
  8741. ></div>
  8742. <div v-else class="isChoose"></div>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. </div>
  8747. </div>
  8748. <span
  8749. slot="footer"
  8750. class="dialog-footer"
  8751. style="display: block; text-align: center; padding: 0 0 10px 0"
  8752. >
  8753. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8754. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8755. </span>
  8756. </div>
  8757. <div
  8758. v-if="replyDialogVisible == true"
  8759. class="addDialogCss"
  8760. v-el-drag-dialog
  8761. >
  8762. <div class="pzTop">
  8763. <div class="teacherPz">
  8764. <div class="teacherPzImg">
  8765. <img src="../assets/icon/teacherPz.png" alt="" />
  8766. </div>
  8767. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8768. </div>
  8769. <div @click="replyDialogVisible = false">
  8770. <img src="../assets/close1.png" class="pzClose" alt="" />
  8771. </div>
  8772. </div>
  8773. <div class="addPzBox">
  8774. <!-- <div class="addPzCheck">
  8775. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8776. >文本</span
  8777. >
  8778. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8779. >音频</span
  8780. >
  8781. </div> -->
  8782. <div style="height: calc(100% - 50px)">
  8783. <editor-bar
  8784. class="binfo_input pzConText"
  8785. style="width: 100% !important; margin: 0 auto"
  8786. placeholder="请输入回复描述"
  8787. v-model="reply"
  8788. @change="change"
  8789. ></editor-bar>
  8790. </div>
  8791. <div class="addTextCss" @click="addHf">确定</div>
  8792. </div>
  8793. </div>
  8794. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8795. <div class="pzTop">
  8796. <div class="teacherPz">
  8797. <div class="teacherPzImg">
  8798. <img src="../assets/icon/teacherPz.png" alt="" />
  8799. </div>
  8800. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8801. </div>
  8802. <div @click="addPzDialog = false">
  8803. <img src="../assets/close1.png" class="pzClose" alt="" />
  8804. </div>
  8805. </div>
  8806. <div class="addPzBox">
  8807. <div class="addPzCheck">
  8808. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8809. >文本</span
  8810. >
  8811. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8812. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8813. >音频</span
  8814. >
  8815. </div>
  8816. <div style="height: calc(100% - 95px)">
  8817. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8818. v-if="pzType == 1"></textarea> -->
  8819. <editor-bar
  8820. class="binfo_input pzConText"
  8821. style="width: 100% !important"
  8822. placeholder="请输入任务描述"
  8823. v-model="pzConText"
  8824. @change="change"
  8825. v-if="pzType == 1"
  8826. ></editor-bar>
  8827. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8828. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8829. <div @click="addImg($event)">
  8830. <el-button type="primary">上传图片</el-button>
  8831. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8832. @change="beforeUpload1($event, 4)" />
  8833. </div>
  8834. </div> -->
  8835. </div>
  8836. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8837. 确定
  8838. </div>
  8839. </div>
  8840. </div>
  8841. <div v-if="proVisible" class="mask">
  8842. <div class="progressBox">
  8843. <!-- <div id="closePro" class="closeCss">
  8844. <img src="../assets/icon/close.png" alt />
  8845. </div> -->
  8846. <div class="lbox">
  8847. <img src="../assets/loading.gif" />上传中,请稍后
  8848. </div>
  8849. <div style="margin-bottom: 10px">
  8850. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8851. </div>
  8852. <el-progress
  8853. :text-inside="true"
  8854. :stroke-width="20"
  8855. :percentage="progress"
  8856. style="width: 80%"
  8857. ></el-progress>
  8858. </div>
  8859. </div>
  8860. <div v-if="proVisible2" class="mask">
  8861. <div class="progressBox">
  8862. <div class="lbox">
  8863. <img src="../assets/loading.gif" />上传中,请稍后
  8864. </div>
  8865. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8866. </div>
  8867. </div>
  8868. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8869. <img width="100%" :src="dialogImageUrl" alt />
  8870. </el-dialog>
  8871. <el-dialog
  8872. :title="noteName != '' ? noteName : '查看问卷'"
  8873. :visible.sync="dialogVisible5"
  8874. :append-to-body="true"
  8875. width="1000px"
  8876. :before-close="handleClose"
  8877. class="dialog_diy dialog_diy3"
  8878. >
  8879. <div>
  8880. <div
  8881. class="a_add_title"
  8882. style="
  8883. display: flex;
  8884. flex-direction: row;
  8885. align-items: center;
  8886. justify-content: center;
  8887. "
  8888. >
  8889. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8890. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8891. </div>
  8892. <div class="a_addBox">
  8893. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8894. 题目内容
  8895. </div>
  8896. <div
  8897. class="a_add_box"
  8898. v-for="(item1, index1) in askJson.askCount"
  8899. :key="index1"
  8900. >
  8901. <div class="a_add_head">
  8902. <div style="display: flex">
  8903. <span class="askIndex"> {{ index1 + 1 }}</span>
  8904. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8905. </div>
  8906. <img
  8907. v-if="askJson.askJson[index1].img"
  8908. :src="askJson.askJson[index1].img"
  8909. style="height: 300px; margin-top: 10px; max-width: 100%"
  8910. />
  8911. </div>
  8912. <div class="a_add_body">
  8913. <div class="a_add_input">
  8914. <el-radio-group
  8915. v-model="radio[index1]"
  8916. v-if="
  8917. askJson.askJson[index1].type == '1' ||
  8918. !askJson.askJson[index1].type
  8919. "
  8920. >
  8921. <el-radio
  8922. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8923. .checkList"
  8924. :key="checkIndex"
  8925. :label="checkIndex"
  8926. :disabled="isAnswer"
  8927. class="redioStyle"
  8928. ><span v-html="item2"></span
  8929. ></el-radio>
  8930. </el-radio-group>
  8931. <el-checkbox-group
  8932. v-model="radio[index1]"
  8933. v-if="askJson.askJson[index1].type == '2'"
  8934. >
  8935. <el-checkbox
  8936. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8937. .checkList"
  8938. :key="checkIndex1"
  8939. :label="checkIndex1"
  8940. :disabled="isAnswer"
  8941. class="redioStyle"
  8942. ><span v-html="item2"></span>
  8943. </el-checkbox>
  8944. </el-checkbox-group>
  8945. </div>
  8946. </div>
  8947. </div>
  8948. </div>
  8949. </div>
  8950. <span slot="footer" class="dialog-footer">
  8951. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8952. >取 消</el-button
  8953. >
  8954. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8955. >确 定</el-button
  8956. >
  8957. </span>
  8958. </el-dialog>
  8959. <el-dialog
  8960. :title="noteName != '' ? noteName : '查看问卷'"
  8961. :visible.sync="dialogVisible5Teacher"
  8962. :append-to-body="true"
  8963. width="1000px"
  8964. :before-close="handleClose"
  8965. class="dialog_diy dialog_diy3"
  8966. >
  8967. <div>
  8968. <div class="w_name">
  8969. 学生姓名:<span>{{ sStudent.student }}</span>
  8970. </div>
  8971. <div
  8972. class="a_add_title"
  8973. style="
  8974. display: flex;
  8975. flex-direction: row;
  8976. align-items: center;
  8977. justify-content: center;
  8978. "
  8979. >
  8980. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8981. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8982. </div>
  8983. <div class="a_addBox">
  8984. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8985. 题目内容
  8986. </div>
  8987. <div
  8988. class="a_add_box"
  8989. v-for="(item1, index1) in askJson.askCount"
  8990. :key="index1"
  8991. >
  8992. <div class="a_add_head">
  8993. <div style="display: flex">
  8994. <span class="askIndex">{{ index1 + 1 }}</span>
  8995. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8996. </div>
  8997. <img
  8998. v-if="askJson.askJson[index1].img"
  8999. :src="askJson.askJson[index1].img"
  9000. style="height: 300px; margin-top: 10px; max-width: 100%"
  9001. />
  9002. </div>
  9003. <div class="a_add_body">
  9004. <div class="a_add_input">
  9005. <el-radio-group
  9006. v-model="radio[index1]"
  9007. v-if="
  9008. askJson.askJson[index1].type == '1' ||
  9009. !askJson.askJson[index1].type
  9010. "
  9011. >
  9012. <el-radio
  9013. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9014. .checkList"
  9015. :key="checkIndex"
  9016. :label="checkIndex"
  9017. :disabled="isAnswer"
  9018. class="redioStyle"
  9019. ><span v-html="item2"></span
  9020. ></el-radio>
  9021. </el-radio-group>
  9022. <el-checkbox-group
  9023. v-model="radio[index1]"
  9024. v-if="askJson.askJson[index1].type == '2'"
  9025. >
  9026. <el-checkbox
  9027. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9028. .checkList"
  9029. :key="checkIndex1"
  9030. :label="checkIndex1"
  9031. :disabled="isAnswer"
  9032. class="redioStyle"
  9033. ><span v-html="item2"></span>
  9034. </el-checkbox>
  9035. </el-checkbox-group>
  9036. </div>
  9037. </div>
  9038. </div>
  9039. </div>
  9040. </div>
  9041. <span slot="footer" class="dialog-footer">
  9042. <el-button
  9043. @click="dialogVisible5Teacher = false"
  9044. v-show="noteName == ''"
  9045. >取 消</el-button
  9046. >
  9047. <el-button
  9048. type="primary"
  9049. @click="addStudentAskTeacher"
  9050. v-show="noteName == ''"
  9051. >确 定</el-button
  9052. >
  9053. </span>
  9054. </el-dialog>
  9055. <el-dialog
  9056. :title="noteName != '' ? noteName : '查看选择题'"
  9057. :visible.sync="dialogVisibleChoice"
  9058. :append-to-body="true"
  9059. width="1000px"
  9060. :before-close="handleClose"
  9061. class="dialog_diy dialog_diy3"
  9062. >
  9063. <div>
  9064. <!-- <div class="a_add_title" style="
  9065. display: flex;
  9066. flex-direction: row;
  9067. align-items: center;
  9068. justify-content: center;
  9069. ">
  9070. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9071. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9072. </div> -->
  9073. <div class="a_addBox">
  9074. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9075. 题目内容
  9076. </div>
  9077. <div
  9078. class="a_add_box"
  9079. v-for="(item1, index1) in testJson.testCount"
  9080. :key="index1"
  9081. >
  9082. <div class="a_add_head">
  9083. <div style="display: flex">
  9084. <span class="askIndex">{{ index1 + 1 }}</span>
  9085. <div
  9086. v-if="testJson.testJson[index1].type == '1'"
  9087. style="margin-right: 5px; min-width: 70px"
  9088. >
  9089. (单选题)
  9090. </div>
  9091. <div
  9092. v-if="testJson.testJson[index1].type == '2'"
  9093. style="margin-right: 5px; min-width: 70px"
  9094. >
  9095. (多选题)
  9096. </div>
  9097. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9098. </div>
  9099. <img
  9100. v-if="testJson.testJson[index1].img"
  9101. :src="testJson.testJson[index1].img"
  9102. style="height: 300px; margin-top: 10px; max-width: 100%"
  9103. />
  9104. </div>
  9105. <div
  9106. class="timuImgBox"
  9107. v-if="
  9108. testJson.testJson[index1].timuList &&
  9109. testJson.testJson[index1].timuList.length
  9110. "
  9111. >
  9112. <div
  9113. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9114. :key="tIndex"
  9115. class="timuImg"
  9116. @click.stop="previewImg(timg.src)"
  9117. >
  9118. <img :src="timg.src" alt="" />
  9119. </div>
  9120. </div>
  9121. <div class="a_add_body">
  9122. <div class="a_add_input">
  9123. <el-radio-group
  9124. v-model="radio[index1]"
  9125. v-if="testJson.testJson[index1].type == '1'"
  9126. >
  9127. <div class="radioBox">
  9128. <el-radio
  9129. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9130. .checkList"
  9131. :key="checkIndex"
  9132. :label="checkIndex"
  9133. :disabled="isAnswer"
  9134. class="redioStyle"
  9135. >
  9136. <div
  9137. style="margin-right: 10px"
  9138. v-if="item2 && item2.imgType && item2.imgType == 1"
  9139. >
  9140. <div class="inImg" @click.stop="previewImg(item2.src)">
  9141. <img :src="item2.src" alt="" />
  9142. </div>
  9143. </div>
  9144. <span v-else v-html="item2"></span>
  9145. </el-radio>
  9146. </div>
  9147. </el-radio-group>
  9148. <el-checkbox-group
  9149. v-model="radio[index1]"
  9150. v-if="testJson.testJson[index1].type == '2'"
  9151. >
  9152. <div class="radioBox">
  9153. <el-checkbox
  9154. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9155. .checkList"
  9156. :key="checkIndex"
  9157. :label="checkIndex"
  9158. :disabled="isAnswer"
  9159. class="redioStyle"
  9160. >
  9161. <div
  9162. style="margin-right: 10px"
  9163. v-if="item2 && item2.imgType && item2.imgType == 1"
  9164. >
  9165. <div class="inImg" @click.stop="previewImg(item2.src)">
  9166. <img :src="item2.src" alt="" />
  9167. </div>
  9168. </div>
  9169. <span v-else v-html="item2"></span>
  9170. </el-checkbox>
  9171. </div>
  9172. </el-checkbox-group>
  9173. </div>
  9174. </div>
  9175. </div>
  9176. </div>
  9177. </div>
  9178. <span slot="footer" class="dialog-footer">
  9179. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9180. >取 消</el-button
  9181. >
  9182. <el-button
  9183. type="primary"
  9184. @click="addStudentTest"
  9185. v-show="noteName == ''"
  9186. >确 定</el-button
  9187. >
  9188. </span>
  9189. </el-dialog>
  9190. <el-dialog
  9191. :title="noteName != '' ? noteName : '查看选择题'"
  9192. :visible.sync="dialogVisibleChoiceTeacher"
  9193. :append-to-body="true"
  9194. width="1000px"
  9195. :before-close="handleClose"
  9196. class="dialog_diy dialog_diy3"
  9197. >
  9198. <div>
  9199. <div class="w_name">
  9200. 学生姓名:<span>{{ sStudent.student }}</span>
  9201. </div>
  9202. <div class="a_addBox">
  9203. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9204. 题目内容
  9205. </div>
  9206. <div
  9207. class="a_add_box"
  9208. v-for="(item1, index1) in testJson.testCount"
  9209. :key="index1"
  9210. >
  9211. <div class="a_add_head">
  9212. <div style="display: flex">
  9213. <span class="askIndex">{{ index1 + 1 }}</span>
  9214. <div
  9215. v-if="testJson.testJson[index1].type == '1'"
  9216. style="margin-right: 5px; min-width: 70px"
  9217. >
  9218. (单选题)
  9219. </div>
  9220. <div
  9221. v-if="testJson.testJson[index1].type == '2'"
  9222. style="margin-right: 5px; min-width: 70px"
  9223. >
  9224. (多选题)
  9225. </div>
  9226. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9227. </div>
  9228. <img
  9229. v-if="testJson.testJson[index1].img"
  9230. :src="testJson.testJson[index1].img"
  9231. style="height: 300px; margin-top: 10px; max-width: 100%"
  9232. />
  9233. </div>
  9234. <div
  9235. class="timuImgBox"
  9236. v-if="
  9237. testJson.testJson[index1].timuList &&
  9238. testJson.testJson[index1].timuList.length
  9239. "
  9240. >
  9241. <div
  9242. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9243. :key="tIndex"
  9244. class="timuImg"
  9245. @click.stop="previewImg(timg.src)"
  9246. >
  9247. <img :src="timg.src" alt="" />
  9248. </div>
  9249. </div>
  9250. <div class="a_add_body">
  9251. <div class="a_add_input">
  9252. <el-radio-group
  9253. v-model="radio[index1]"
  9254. v-if="testJson.testJson[index1].type == '1'"
  9255. >
  9256. <div class="radioBox">
  9257. <el-radio
  9258. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9259. .checkList"
  9260. :key="checkIndex"
  9261. :label="checkIndex"
  9262. :disabled="isAnswer"
  9263. class="redioStyle"
  9264. >
  9265. <div
  9266. style="margin-right: 10px"
  9267. v-if="item2 && item2.imgType && item2.imgType == 1"
  9268. >
  9269. <div class="inImg" @click.stop="previewImg(item2.src)">
  9270. <img :src="item2.src" alt="" />
  9271. </div>
  9272. </div>
  9273. <span v-else v-html="item2"></span>
  9274. </el-radio>
  9275. </div>
  9276. </el-radio-group>
  9277. <el-checkbox-group
  9278. v-model="radio[index1]"
  9279. v-if="testJson.testJson[index1].type == '2'"
  9280. >
  9281. <div class="radioBox">
  9282. <el-checkbox
  9283. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9284. .checkList"
  9285. :key="checkIndex"
  9286. :label="checkIndex"
  9287. :disabled="isAnswer"
  9288. class="redioStyle"
  9289. >
  9290. <div
  9291. style="margin-right: 10px"
  9292. v-if="item2 && item2.imgType && item2.imgType == 1"
  9293. >
  9294. <div class="inImg" @click.stop="previewImg(item2.src)">
  9295. <img :src="item2.src" alt="" />
  9296. </div>
  9297. </div>
  9298. <span v-else v-html="item2"></span>
  9299. </el-checkbox>
  9300. </div>
  9301. </el-checkbox-group>
  9302. </div>
  9303. </div>
  9304. </div>
  9305. </div>
  9306. </div>
  9307. <span slot="footer" class="dialog-footer">
  9308. <el-button
  9309. @click="dialogVisibleChoiceTeacher = false"
  9310. v-show="noteName == ''"
  9311. >取 消</el-button
  9312. >
  9313. <el-button
  9314. type="primary"
  9315. @click="addStudentTestTeacher"
  9316. v-show="noteName == ''"
  9317. >确 定</el-button
  9318. >
  9319. </span>
  9320. </el-dialog>
  9321. <el-dialog
  9322. title="查看富文本"
  9323. :visible.sync="dialogVisible1"
  9324. :append-to-body="true"
  9325. width="500px"
  9326. :before-close="handleClose"
  9327. class="dialog_diy textCss"
  9328. >
  9329. <el-form style="font-size: 20px">
  9330. <el-form-item label="文本标题" class="textTitle">
  9331. <div style="font-size: 20px">{{ text.name }}</div>
  9332. </el-form-item>
  9333. <div>富文本内容</div>
  9334. <div
  9335. v-html="text.url"
  9336. style="font-size: 18px; padding: 40px 0 0 0"
  9337. ></div>
  9338. </el-form>
  9339. <span slot="footer" class="dialog-footer">
  9340. <el-button type="primary" @click="dialogVisible1 = false"
  9341. >确定</el-button
  9342. >
  9343. </span>
  9344. </el-dialog>
  9345. <el-dialog
  9346. title="文件预览"
  9347. :visible.sync="dialogVisible3"
  9348. width="50%"
  9349. :before-close="handleClose"
  9350. class="dialog_diy"
  9351. :class="{ fullStyle: full }"
  9352. >
  9353. <div slot="title" class="header-title">
  9354. <div style="color: #fff">文件预览</div>
  9355. <div style="position: absolute; top: 19px; right: 50px">
  9356. <img
  9357. src="../assets/full.png"
  9358. style="height: 16px; cursor: pointer"
  9359. alt=""
  9360. @click="fullTools"
  9361. />
  9362. </div>
  9363. </div>
  9364. <pdf
  9365. v-if="showPDF"
  9366. :pdfUrl="pptImgUrl"
  9367. style="width: 100%; height: 520px; overflow: auto"
  9368. :class="{ fullStyle: full }"
  9369. ></pdf>
  9370. <iframe
  9371. v-else
  9372. :src="pptImgUrl"
  9373. frameborder="0"
  9374. width="100%"
  9375. height="600"
  9376. :class="{ fullStyle: full }"
  9377. ></iframe>
  9378. </el-dialog>
  9379. <el-dialog
  9380. title="文件预览"
  9381. :visible.sync="dialogVisible6"
  9382. width="50%"
  9383. :before-close="handleClose"
  9384. class="dialog_diy"
  9385. >
  9386. <iframe
  9387. :src="pptImgUrl1"
  9388. frameborder="0"
  9389. width="100%"
  9390. height="600"
  9391. ></iframe>
  9392. </el-dialog>
  9393. <el-dialog
  9394. title="提示"
  9395. :visible.sync="dialogVisible4"
  9396. :append-to-body="true"
  9397. width="800px"
  9398. :before-close="handleClose"
  9399. class="dialog_diy notice"
  9400. >
  9401. <div>此功能暂未开放!</div>
  9402. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9403. </el-dialog>
  9404. <el-dialog
  9405. title="问答"
  9406. :visible.sync="answerDialogVisible"
  9407. :append-to-body="true"
  9408. width="800px"
  9409. :before-close="handleClose"
  9410. class="dialog_diy"
  9411. >
  9412. <div>
  9413. <div
  9414. style="
  9415. display: flex;
  9416. flex-wrap: nowrap;
  9417. flex-direction: column;
  9418. position: relative;
  9419. "
  9420. >
  9421. <div class="queTop" style="padding: 20px 0 20px 0">
  9422. <div class="question">
  9423. <img src="../assets/icon/question.png" alt />
  9424. </div>
  9425. <div class="queTitle">
  9426. <div style="width: 90px; min-width: 90px">提问:</div>
  9427. <div>{{ answerQ }}</div>
  9428. </div>
  9429. </div>
  9430. <div class="ediBottom">
  9431. <textarea
  9432. rows="6"
  9433. class="binfo_input"
  9434. cols
  9435. style="width: 95%; height: 120px"
  9436. v-model="questionAnswer"
  9437. ></textarea>
  9438. </div>
  9439. </div>
  9440. </div>
  9441. <div slot="footer">
  9442. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9443. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9444. </div>
  9445. </el-dialog>
  9446. <el-dialog
  9447. title="问答"
  9448. :visible.sync="answerDialogVisibleTeacher"
  9449. :append-to-body="true"
  9450. width="800px"
  9451. :before-close="handleClose"
  9452. class="dialog_diy"
  9453. >
  9454. <div>
  9455. <div class="w_name">
  9456. 学生姓名:<span>{{ sStudent.student }}</span>
  9457. </div>
  9458. <div
  9459. style="
  9460. display: flex;
  9461. flex-wrap: nowrap;
  9462. flex-direction: column;
  9463. position: relative;
  9464. "
  9465. >
  9466. <div class="queTop" style="padding: 20px 0 20px 0">
  9467. <div class="question">
  9468. <img src="../assets/icon/question.png" alt />
  9469. </div>
  9470. <div class="queTitle">
  9471. <div style="width: 90px; min-width: 90px">提问:</div>
  9472. <div>{{ answerQ }}</div>
  9473. </div>
  9474. </div>
  9475. <div class="ediBottom">
  9476. <textarea
  9477. rows="6"
  9478. class="binfo_input"
  9479. cols
  9480. style="width: 95%; height: 120px"
  9481. v-model="questionAnswer"
  9482. ></textarea>
  9483. </div>
  9484. </div>
  9485. </div>
  9486. <div slot="footer">
  9487. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9488. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9489. </div>
  9490. </el-dialog>
  9491. <el-dialog
  9492. title="倒计时"
  9493. :visible.sync="timeDialogVisible"
  9494. :append-to-body="true"
  9495. width="800px"
  9496. :before-close="handleClose"
  9497. class="dialog_diy"
  9498. >
  9499. <div>
  9500. <div style="margin-bottom: 20px; color: #999">
  9501. 提示:点击“+”或“-”修改倒计时时长。
  9502. </div>
  9503. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9504. </div>
  9505. <div slot="footer">
  9506. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9507. </div>
  9508. </el-dialog>
  9509. <el-dialog
  9510. title="权限设置"
  9511. :visible.sync="juriVisible"
  9512. :append-to-body="true"
  9513. width="400px"
  9514. :before-close="handleClose"
  9515. class="dialog_diy"
  9516. >
  9517. <div>
  9518. <div class="open_box">
  9519. <div class="switch_box">
  9520. <span>允许学生查看所有作业</span>
  9521. <el-switch
  9522. v-model="sIsOpen"
  9523. active-text=""
  9524. class="switchCss"
  9525. @change="updateSLook"
  9526. ></el-switch>
  9527. </div>
  9528. <div
  9529. class="switch_box"
  9530. v-if="
  9531. courseDetail.userid == userid ||
  9532. (courseDetail.course_teacher &&
  9533. courseDetail.course_teacher.indexOf(userid) != -1)
  9534. "
  9535. >
  9536. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9537. <span>禁止学生查看所有阶段</span>
  9538. <el-switch
  9539. v-model="IsLookOpen"
  9540. active-text=""
  9541. class="switchCss"
  9542. @change="updateLookOpen"
  9543. ></el-switch>
  9544. </div>
  9545. <div class="switch_box" v-if="courseDetail.userid == userid">
  9546. <span>开启跟随模式</span>
  9547. <el-switch
  9548. v-model="IsFollow"
  9549. active-text=""
  9550. class="switchCss"
  9551. @change="updateFollow"
  9552. ></el-switch>
  9553. </div>
  9554. </div>
  9555. </div>
  9556. <div slot="footer">
  9557. <el-button
  9558. style="background: #409efe; color: #fff"
  9559. @click="juriVisible = false"
  9560. >关 闭</el-button
  9561. >
  9562. </div>
  9563. </el-dialog>
  9564. <el-dialog
  9565. title="查看视频"
  9566. :visible.sync="videoVisible"
  9567. :append-to-body="true"
  9568. width="1000px"
  9569. :before-close="handleClose"
  9570. class="dialog_diy1"
  9571. >
  9572. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9573. <video-player
  9574. class="video-player vjs-custom-skin"
  9575. :playsinline="true"
  9576. :options="videoDetail"
  9577. @play="onPlayerPlay($event)"
  9578. style="width: 100%; height: 100%"
  9579. ></video-player>
  9580. </div>
  9581. <div slot="footer">
  9582. <el-button
  9583. style="background: #409efe; color: #fff"
  9584. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9585. >
  9586. 关 闭</el-button
  9587. >
  9588. </div>
  9589. </el-dialog>
  9590. <el-dialog
  9591. title="查看详情"
  9592. :visible.sync="commentDialogVisible"
  9593. :append-to-body="true"
  9594. width="800px"
  9595. :before-close="handleClose"
  9596. class="dialog_diy"
  9597. >
  9598. <div class="commentTop">
  9599. <div class="studentDetail">
  9600. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9601. <div class="nameAndTime">
  9602. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9603. <div>{{ commentDetail.time }}</div>
  9604. </div>
  9605. <div
  9606. class="returnBtn"
  9607. style="margin-left: auto; width: 80px"
  9608. v-if="
  9609. commentDetail.works &&
  9610. commentDetail.type == 0 &&
  9611. (tType == 1 || tType == 4)
  9612. "
  9613. @click="
  9614. showPicturePaint(
  9615. commentDetail.img ? commentDetail.img : commentDetail.works
  9616. )
  9617. "
  9618. >
  9619. 教师批注
  9620. </div>
  9621. </div>
  9622. <div
  9623. class="worksAnswer"
  9624. v-if="commentDetail.works && commentDetail.type == 2"
  9625. >
  9626. {{ JSON.parse(commentDetail.works)[0].answer }}
  9627. </div>
  9628. <div
  9629. class="worksAnswer"
  9630. v-if="commentDetail.works && commentDetail.type == 1"
  9631. >
  9632. <img
  9633. src="../assets/teacherWork.png"
  9634. v-if="commentDetail.ateacher"
  9635. class="w_teachert"
  9636. />
  9637. <pdf
  9638. v-if="showPDF"
  9639. :pdfUrl="pptImgUrl"
  9640. style="width: 100%; height: 520px; overflow: auto"
  9641. :class="{ fullStyle: full }"
  9642. ></pdf>
  9643. <iframe
  9644. v-else
  9645. :src="pptImgUrl"
  9646. frameborder="0"
  9647. width="100%"
  9648. height="600"
  9649. :class="{ fullStyle: full }"
  9650. ></iframe>
  9651. </div>
  9652. <div
  9653. class="worksAnswer"
  9654. v-if="commentDetail.works && commentDetail.type == 0"
  9655. >
  9656. <img
  9657. src="../assets/teacherWork.png"
  9658. v-if="commentDetail.ateacher"
  9659. class="w_teachert"
  9660. style="right: 105px"
  9661. />
  9662. <img
  9663. :src="commentDetail.works"
  9664. alt=""
  9665. @click="previewImg(commentDetail.works)"
  9666. />
  9667. </div>
  9668. <div
  9669. class="worksAnswer"
  9670. v-if="commentDetail.works && commentDetail.type == 3"
  9671. >
  9672. <img
  9673. src="../assets/teacherWork.png"
  9674. v-if="commentDetail.ateacher"
  9675. class="w_teachert"
  9676. />
  9677. <video-player
  9678. class="video-player vjs-custom-skin"
  9679. :playsinline="true"
  9680. :options="videoDetail"
  9681. @play="onPlayerPlay($event)"
  9682. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9683. ></video-player>
  9684. </div>
  9685. <div
  9686. class="worksAnswer"
  9687. v-if="commentDetail.works && commentDetail.type == 10"
  9688. >
  9689. <div class="cont" v-html="commentDetail.works.text"></div>
  9690. </div>
  9691. <div
  9692. class="worksAnswer codeFileBox"
  9693. v-if="commentDetail.works && commentDetail.type == 12"
  9694. @click="downloadFile(commentDetail.works)"
  9695. >
  9696. <img src="../assets/icon/codeFile.png" />
  9697. <div>点击下载文件</div>
  9698. </div>
  9699. <div
  9700. class="worksAnswer codeFileBox"
  9701. v-if="commentDetail.works && commentDetail.type == 15"
  9702. @click="
  9703. openCocoPi(
  9704. 57,
  9705. commentIndexJson.toolIndex,
  9706. commentDetail.userid,
  9707. commentDetail.sName
  9708. )
  9709. "
  9710. >
  9711. <img src="../assets/icon/codeFile.png" />
  9712. <div>点击打开CocoPi</div>
  9713. </div>
  9714. <div
  9715. class="worksAnswer"
  9716. v-if="commentDetail.works && commentDetail.type == 13"
  9717. >
  9718. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9719. </div>
  9720. <div
  9721. class="worksAnswer"
  9722. v-if="commentDetail.works && commentDetail.type == 4"
  9723. >
  9724. <div class="evalCss">
  9725. <div class="nav">请选择星星进行评分</div>
  9726. <div class="middleBox" v-if="eScore.eStar">
  9727. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9728. <div class="nameAndrate">
  9729. <div>{{ e.value }}</div>
  9730. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9731. </div>
  9732. <div v-if="e.detail">{{ e.detail }}</div>
  9733. </div>
  9734. <div class="bz">
  9735. <textarea
  9736. disabled
  9737. rows="4"
  9738. class="pj"
  9739. style="
  9740. padding: 10px 5px;
  9741. width: 70%;
  9742. background: #f7f6f9;
  9743. font-size: 14px;
  9744. text-indent: 10px;
  9745. color: #000;
  9746. "
  9747. cols
  9748. v-model="eScore.eBzText"
  9749. placeholder="请输入评价内容..."
  9750. ></textarea>
  9751. </div>
  9752. </div>
  9753. </div>
  9754. </div>
  9755. <div class="comment">
  9756. <div class="commentList">
  9757. <div class="commentImg">
  9758. <img
  9759. @click="
  9760. isLikes(
  9761. commentDetail.wid,
  9762. userid,
  9763. 1,
  9764. null,
  9765. commentDetail.isLikes,
  9766. commentDetail.sName
  9767. )
  9768. "
  9769. :src="commentDetail.isLikes == true ? likes : noLikes"
  9770. alt=""
  9771. />
  9772. </div>
  9773. <div>{{ commentDetail.likesCount }}</div>
  9774. </div>
  9775. <div class="commentList">
  9776. <div class="commentImg">
  9777. <img src="../assets/icon/comment/comment.png" alt="" />
  9778. </div>
  9779. <div>{{ commentDetail.commentCount }}</div>
  9780. </div>
  9781. </div>
  9782. <div class="drawPBox" v-if="commentDetail.img">
  9783. <span>教师批注</span>
  9784. <img
  9785. :src="commentDetail.img"
  9786. alt=""
  9787. @click="previewImg(commentDetail.img)"
  9788. />
  9789. <span
  9790. class="deleteImg"
  9791. v-if="tType == 1 || tType == 4"
  9792. @click.stop="deletePicturePaint(commentDetail.wid)"
  9793. style="
  9794. font-size: 14px;
  9795. width: auto !important;
  9796. color: #b4b4b4;
  9797. top: unset;
  9798. bottom: 0;
  9799. border: none;
  9800. padding: 0;
  9801. height: auto !important;
  9802. margin: 0;
  9803. "
  9804. >删除</span
  9805. >
  9806. </div>
  9807. </div>
  9808. <div class="commentBox">
  9809. <div class="pl">评论:</div>
  9810. <div style="max-height: 200px; overflow: auto">
  9811. <div
  9812. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9813. style="padding: 10px 0 0 0"
  9814. >
  9815. <div
  9816. class="studentDetail"
  9817. style="padding-top: 10px"
  9818. v-for="(co, coIndex) in commentDetail.commentJson"
  9819. :key="coIndex"
  9820. >
  9821. <div class="tx" style="min-width: 50px">
  9822. <img src="../assets/avatar.png" alt="" />
  9823. </div>
  9824. <div class="plPerson">
  9825. <div class="plName">
  9826. <div>{{ co.commentPeople }}</div>
  9827. <div style="margin-left: 5px">
  9828. {{ co.commentTime }}
  9829. </div>
  9830. <div
  9831. class="deleteComment"
  9832. v-if="userid == co.userid"
  9833. @click="deleteComment(co.wid)"
  9834. >
  9835. 删除
  9836. </div>
  9837. </div>
  9838. <div class="plContent">{{ co.commentText }}</div>
  9839. </div>
  9840. </div>
  9841. </div>
  9842. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9843. </div>
  9844. </div>
  9845. <div style="margin-top: 10px">
  9846. <div class="displayBox">
  9847. <div
  9848. style="
  9849. color: #556db4;
  9850. font-size: 14px;
  9851. font-weight: bold;
  9852. padding-bottom: 10px;
  9853. "
  9854. >
  9855. 评价
  9856. </div>
  9857. <div class="easy_comment" v-if="false">
  9858. <div
  9859. v-for="(p, pIndex) in PlTextList"
  9860. :key="pIndex"
  9861. @click="fastText(p, 1)"
  9862. >
  9863. {{ p }}
  9864. </div>
  9865. </div>
  9866. </div>
  9867. <div>
  9868. <textarea
  9869. rows="3"
  9870. class="pj"
  9871. style="padding: 10px 5px"
  9872. cols
  9873. v-model="commentText"
  9874. placeholder="请输入评论"
  9875. ></textarea>
  9876. </div>
  9877. </div>
  9878. <div slot="footer">
  9879. <el-button
  9880. @click="
  9881. (commentDialogVisible = false),
  9882. (commentIndexJson = {}),
  9883. videoDetail.sources && videoDetail.sources[0]
  9884. ? (videoDetail.sources[0].src = '')
  9885. : ''
  9886. "
  9887. >取 消</el-button
  9888. >
  9889. <el-button
  9890. type="primary"
  9891. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9892. >确 定</el-button
  9893. >
  9894. </div>
  9895. </el-dialog>
  9896. <el-dialog
  9897. title="查看文档"
  9898. :visible.sync="fullDialogVisible"
  9899. :append-to-body="true"
  9900. width="100%"
  9901. :before-close="handleClose"
  9902. :show-close="false"
  9903. class="dialog_diy full_diy"
  9904. :class="{ full_diy2: fulltype == 3 }"
  9905. >
  9906. <div slot="title" class="header-title">
  9907. <div style="color: #fff">查看文档</div>
  9908. <div
  9909. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9910. style="
  9911. cursor: pointer;
  9912. position: absolute;
  9913. top: 20px;
  9914. right: 20px;
  9915. color: #fff;
  9916. "
  9917. >
  9918. 退出全屏
  9919. </div>
  9920. </div>
  9921. <div style="height: 100%">
  9922. <div
  9923. class="wheel"
  9924. v-if="
  9925. fulltype == 2 &&
  9926. fullUrl.indexOf(
  9927. 'https://view.officeapps.live.com/op/view.aspx?src='
  9928. ) != -1
  9929. "
  9930. style="width: 95%; margin: 0 auto"
  9931. >
  9932. <iframe
  9933. style="width: 100%; height: 100%; border: none"
  9934. :src="fullUrl"
  9935. ></iframe>
  9936. </div>
  9937. <iframe
  9938. v-else-if="fulltype == 2"
  9939. style="width: 100%; height: 100%; border: none"
  9940. :src="fullUrl"
  9941. security="restricted"
  9942. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9943. ></iframe>
  9944. <pdf
  9945. v-else-if="fulltype == 3"
  9946. :pdfUrl="fullUrl"
  9947. style="width: 100%; height: 100%; overflow: auto"
  9948. ></pdf>
  9949. <div
  9950. class="wheel"
  9951. v-if="fulltype == 1"
  9952. style="
  9953. box-shadow: 0 0 6px 1px #f2f2f2;
  9954. width: 100%;
  9955. background: #f1f1f1;
  9956. "
  9957. >
  9958. <div class="title" style="width: 100%; box-sizing: border-box">
  9959. 查看文档
  9960. </div>
  9961. <el-form class="textBox" style="height: 90%">
  9962. <el-form-item class="textTitle">
  9963. <div style="font-size: 22px">
  9964. {{ fullUrl.name }}
  9965. </div>
  9966. </el-form-item>
  9967. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9968. <div
  9969. v-html="fullUrl.url"
  9970. class="textContent"
  9971. style="height: auto"
  9972. ></div>
  9973. </el-form>
  9974. </div>
  9975. </div>
  9976. <!-- <div slot="footer">
  9977. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9978. </div> -->
  9979. </el-dialog>
  9980. <el-dialog
  9981. title="个人评价"
  9982. :visible.sync="studentEvalDialogVisible"
  9983. :append-to-body="true"
  9984. width="800px"
  9985. :before-close="handleClose"
  9986. class="dialog_diy"
  9987. >
  9988. <div class="evalCss">
  9989. <div class="nav">请选择星星进行评分</div>
  9990. <div class="middleBox" v-if="eScore.eStar">
  9991. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9992. <div class="nameAndrate">
  9993. <div>{{ e.value }}</div>
  9994. <el-rate
  9995. v-model="eScore.eStar[eIndex]"
  9996. :disabled="isStar"
  9997. ></el-rate>
  9998. </div>
  9999. <div v-if="e.detail">{{ e.detail }}</div>
  10000. </div>
  10001. <div class="easy_comment" v-if="false">
  10002. <div
  10003. v-for="(p, pIndex) in PlTextList"
  10004. :key="pIndex"
  10005. @click="fastText(p, 2)"
  10006. >
  10007. {{ p }}
  10008. </div>
  10009. </div>
  10010. <div class="bz">
  10011. <textarea
  10012. :disabled="isStar"
  10013. rows="4"
  10014. class="pj"
  10015. style="
  10016. padding: 10px 5px;
  10017. width: 70%;
  10018. background: #f7f6f9;
  10019. font-size: 14px;
  10020. text-indent: 10px;
  10021. "
  10022. cols
  10023. v-model="eScore.eBzText"
  10024. placeholder="请输入评价内容..."
  10025. ></textarea>
  10026. </div>
  10027. </div>
  10028. </div>
  10029. <div slot="footer">
  10030. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10031. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10032. >确 定</el-button
  10033. >
  10034. </div>
  10035. </el-dialog>
  10036. <el-dialog
  10037. title="个人评价"
  10038. :visible.sync="studentEvalDialogVisibleTeacher"
  10039. :append-to-body="true"
  10040. width="800px"
  10041. :before-close="handleClose"
  10042. class="dialog_diy"
  10043. >
  10044. <div class="w_name">
  10045. 学生姓名:<span>{{ sStudent.student }}</span>
  10046. </div>
  10047. <div class="evalCss">
  10048. <div class="nav">请选择星星进行评分</div>
  10049. <div class="middleBox" v-if="eScore.eStar">
  10050. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10051. <div class="nameAndrate">
  10052. <div>{{ e.value }}</div>
  10053. <el-rate
  10054. v-model="eScore.eStar[eIndex]"
  10055. :disabled="isStar"
  10056. ></el-rate>
  10057. </div>
  10058. <div v-if="e.detail">{{ e.detail }}</div>
  10059. </div>
  10060. <div class="easy_comment" v-if="false">
  10061. <div
  10062. v-for="(p, pIndex) in PlTextList"
  10063. :key="pIndex"
  10064. @click="fastText(p, 2)"
  10065. >
  10066. {{ p }}
  10067. </div>
  10068. </div>
  10069. <div class="bz">
  10070. <textarea
  10071. :disabled="isStar"
  10072. rows="4"
  10073. class="pj"
  10074. style="
  10075. padding: 10px 5px;
  10076. width: 70%;
  10077. background: #f7f6f9;
  10078. font-size: 14px;
  10079. text-indent: 10px;
  10080. "
  10081. cols
  10082. v-model="eScore.eBzText"
  10083. placeholder="请输入评价内容..."
  10084. ></textarea>
  10085. </div>
  10086. </div>
  10087. </div>
  10088. <div slot="footer">
  10089. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10090. >取 消</el-button
  10091. >
  10092. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10093. >确 定</el-button
  10094. >
  10095. </div>
  10096. </el-dialog>
  10097. <el-dialog
  10098. title="选择匹配"
  10099. :visible.sync="dialogVisibleSelect"
  10100. :append-to-body="true"
  10101. width="90%"
  10102. :before-close="handleClose"
  10103. class="dialog_diy dialog_diy3"
  10104. >
  10105. <div v-if="selectJson">
  10106. <div class="select_box2">
  10107. <div class="select_box2_title">
  10108. <div>选择匹配</div>
  10109. <div>请选择对应的答案进行答题!</div>
  10110. </div>
  10111. <div class="select_box2_box">
  10112. <div class="select_box2_img">
  10113. <img
  10114. :src="selectJson.url"
  10115. @click="previewImg(selectJson.url)"
  10116. alt=""
  10117. />
  10118. </div>
  10119. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10120. <div style="padding-top: 15px">
  10121. <div class="select_answer_title" v-if="isSelect">
  10122. {{ selectAnswer.stu }}
  10123. </div>
  10124. <div class="select_answer_title" v-else>
  10125. 根据题目选择对应答案
  10126. </div>
  10127. <div
  10128. class="select_box2_answer_box"
  10129. v-for="(item2, checkIndex) in selectJson.select"
  10130. :key="checkIndex"
  10131. >
  10132. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10133. <el-select
  10134. :disabled="isSelect"
  10135. v-model="selectAnswer.answer[checkIndex]"
  10136. placeholder="请选择正确答案"
  10137. >
  10138. <el-option
  10139. v-for="(e, eIndex) in selectJson.select"
  10140. :key="eIndex"
  10141. :label="e"
  10142. :value="eIndex"
  10143. >
  10144. </el-option>
  10145. </el-select>
  10146. </div>
  10147. </div>
  10148. <div
  10149. class="rightAnswerCss"
  10150. v-if="isSelect && (tType == 1 || tType == 4)"
  10151. >
  10152. <div
  10153. v-for="(a, aIndex) in selectJson.answer"
  10154. :key="aIndex"
  10155. class="rightAnswer"
  10156. >
  10157. <div
  10158. v-if="selectAnswer.answer[aIndex] === a"
  10159. style="color: #767de1"
  10160. >
  10161. 回答正确
  10162. </div>
  10163. <div v-else>回答错误</div>
  10164. <div
  10165. style="margin-left: 10px"
  10166. v-if="selectAnswer.answer[aIndex] !== a"
  10167. >
  10168. 正确答案:
  10169. </div>
  10170. <div
  10171. :class="
  10172. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10173. "
  10174. >
  10175. {{ selectJson.select[a] }}
  10176. </div>
  10177. </div>
  10178. </div>
  10179. </div>
  10180. <div class="upAnswerCss">
  10181. <el-button
  10182. type="primary"
  10183. @click="addSelectAnswer"
  10184. v-if="!isSelect"
  10185. >提交答案</el-button
  10186. >
  10187. </div>
  10188. </div>
  10189. </div>
  10190. </div>
  10191. </el-dialog>
  10192. <el-dialog
  10193. title="选择匹配"
  10194. :visible.sync="dialogVisibleSelectTeacher"
  10195. :append-to-body="true"
  10196. width="90%"
  10197. :before-close="handleClose"
  10198. class="dialog_diy dialog_diy3"
  10199. >
  10200. <div v-if="selectJson">
  10201. <div class="w_name">
  10202. 学生姓名:<span>{{ sStudent.student }}</span>
  10203. </div>
  10204. <div class="select_box2">
  10205. <div class="select_box2_title">
  10206. <div>选择匹配</div>
  10207. <div>请选择对应的答案进行答题!</div>
  10208. </div>
  10209. <div class="select_box2_box">
  10210. <div class="select_box2_img">
  10211. <img
  10212. :src="selectJson.url"
  10213. @click="previewImg(selectJson.url)"
  10214. alt=""
  10215. />
  10216. </div>
  10217. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10218. <div style="padding-top: 15px">
  10219. <div class="select_answer_title" v-if="isSelect">
  10220. {{ selectAnswer.stu }}
  10221. </div>
  10222. <div class="select_answer_title" v-else>
  10223. 根据题目选择对应答案
  10224. </div>
  10225. <div
  10226. class="select_box2_answer_box"
  10227. v-for="(item2, checkIndex) in selectJson.select"
  10228. :key="checkIndex"
  10229. >
  10230. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10231. <el-select
  10232. :disabled="isSelect"
  10233. v-model="selectAnswer.answer[checkIndex]"
  10234. placeholder="请选择正确答案"
  10235. >
  10236. <el-option
  10237. v-for="(e, eIndex) in selectJson.select"
  10238. :key="eIndex"
  10239. :label="e"
  10240. :value="eIndex"
  10241. >
  10242. </el-option>
  10243. </el-select>
  10244. </div>
  10245. </div>
  10246. <div
  10247. class="rightAnswerCss"
  10248. v-if="isSelect && (tType == 1 || tType == 4)"
  10249. >
  10250. <div
  10251. v-for="(a, aIndex) in selectJson.answer"
  10252. :key="aIndex"
  10253. class="rightAnswer"
  10254. >
  10255. <div
  10256. v-if="selectAnswer.answer[aIndex] === a"
  10257. style="color: #767de1"
  10258. >
  10259. 回答正确
  10260. </div>
  10261. <div v-else>回答错误</div>
  10262. <div
  10263. style="margin-left: 10px"
  10264. v-if="selectAnswer.answer[aIndex] !== a"
  10265. >
  10266. 正确答案:
  10267. </div>
  10268. <div
  10269. :class="
  10270. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10271. "
  10272. >
  10273. {{ selectJson.select[a] }}
  10274. </div>
  10275. </div>
  10276. </div>
  10277. </div>
  10278. <div class="upAnswerCss">
  10279. <el-button
  10280. type="primary"
  10281. @click="addSelectAnswerTeacher"
  10282. v-if="!isSelect"
  10283. >提交答案</el-button
  10284. >
  10285. </div>
  10286. </div>
  10287. </div>
  10288. </div>
  10289. </el-dialog>
  10290. <el-dialog
  10291. title="教师评分"
  10292. :visible.sync="dialogVisibleScore"
  10293. :append-to-body="true"
  10294. width="800px"
  10295. :before-close="handleClose"
  10296. class="dialog_diy"
  10297. >
  10298. <div>
  10299. <div class="studentDetail">
  10300. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10301. <div class="nameAndTime">
  10302. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10303. <div>{{ commentDetail.time }}</div>
  10304. </div>
  10305. </div>
  10306. <div
  10307. class="worksAnswer"
  10308. v-if="commentDetail.works && commentDetail.type == 2"
  10309. >
  10310. {{ JSON.parse(commentDetail.works)[0].answer }}
  10311. </div>
  10312. <div
  10313. class="worksAnswer"
  10314. v-if="commentDetail.works && commentDetail.type == 1"
  10315. >
  10316. <pdf
  10317. v-if="showPDF"
  10318. :pdfUrl="pptImgUrl"
  10319. style="width: 100%; height: 520px; overflow: auto"
  10320. :class="{ fullStyle: full }"
  10321. ></pdf>
  10322. <iframe
  10323. v-else
  10324. :src="pptImgUrl"
  10325. frameborder="0"
  10326. width="100%"
  10327. height="600"
  10328. :class="{ fullStyle: full }"
  10329. ></iframe>
  10330. </div>
  10331. <div
  10332. class="worksAnswer"
  10333. v-if="commentDetail.works && commentDetail.type == 0"
  10334. >
  10335. <img
  10336. :src="commentDetail.works"
  10337. alt=""
  10338. @click="previewImg(commentDetail.works)"
  10339. />
  10340. </div>
  10341. <div
  10342. class="worksAnswer"
  10343. v-if="commentDetail.works && commentDetail.type == 3"
  10344. >
  10345. <video-player
  10346. class="video-player vjs-custom-skin"
  10347. :playsinline="true"
  10348. :options="videoDetail"
  10349. @play="onPlayerPlay($event)"
  10350. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10351. ></video-player>
  10352. </div>
  10353. <div
  10354. class="worksAnswer codeFileBox"
  10355. v-if="commentDetail.works && commentDetail.type == 12"
  10356. @click="downloadFile(commentDetail.works)"
  10357. >
  10358. <img src="../assets/icon/codeFile.png" />
  10359. <div>点击下载文件</div>
  10360. </div>
  10361. <div
  10362. class="worksAnswer codeFileBox"
  10363. v-if="commentDetail.works && commentDetail.type == 15"
  10364. @click="
  10365. openCocoPi(
  10366. 57,
  10367. commentIndexJson.toolIndex,
  10368. commentDetail.userid,
  10369. commentDetail.sName
  10370. )
  10371. "
  10372. >
  10373. <img src="../assets/icon/codeFile.png" />
  10374. <div>点击打开CocoPi</div>
  10375. </div>
  10376. <div
  10377. class="worksAnswer"
  10378. v-if="commentDetail.works && commentDetail.type == 13"
  10379. >
  10380. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10381. </div>
  10382. <div class="scoreBox">
  10383. <span class="t">请输入分数</span>
  10384. <el-input-number
  10385. :disabled="courseDetail.userid != userid"
  10386. v-model="wScore"
  10387. :controls="false"
  10388. :min="0"
  10389. :max="100"
  10390. ></el-input-number>
  10391. </div>
  10392. <div class="scoreDetailBox">
  10393. <span class="t">评分评论</span>
  10394. <el-input
  10395. type="textarea"
  10396. :rows="5"
  10397. :disabled="courseDetail.userid != userid"
  10398. resize="none"
  10399. v-model="scoreDetail"
  10400. placeholder="请输入对学生的评价"
  10401. >
  10402. </el-input>
  10403. </div>
  10404. </div>
  10405. <span slot="footer" class="dialog-footer">
  10406. <el-button
  10407. @click="
  10408. (dialogVisibleScore = false),
  10409. (commentIndexJson = {}),
  10410. videoDetail.sources && videoDetail.sources[0]
  10411. ? (videoDetail.sources[0].src = '')
  10412. : ''
  10413. "
  10414. >取 消</el-button
  10415. >
  10416. <el-button
  10417. type="primary"
  10418. v-if="courseDetail.userid == userid"
  10419. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10420. >确 定
  10421. </el-button>
  10422. </span>
  10423. </el-dialog>
  10424. <el-dialog
  10425. title="排序"
  10426. :visible.sync="dialogVisibleSentence"
  10427. :append-to-body="true"
  10428. width="1000px"
  10429. :before-close="handleClose"
  10430. class="dialog_diy dialog_diy3"
  10431. >
  10432. <div>
  10433. <div class="sentenBox">
  10434. <div
  10435. v-for="(st, stIndex) in sentenceList"
  10436. :key="stIndex"
  10437. style="padding-bottom: 20px"
  10438. >
  10439. <div
  10440. style="padding: 15px 0 10px 20px"
  10441. class="sentenceTitle"
  10442. :index="stIndex + 1"
  10443. >
  10444. 题目{{ stIndex + 1 }}:请选择正确顺序
  10445. </div>
  10446. <div class="cardList" v-if="st.chooseSenList">
  10447. <div class="cardBox">
  10448. <div
  10449. v-for="(r, rIndex) in st.chooseSenList"
  10450. :key="rIndex"
  10451. @click="returnCard(r, stIndex, rIndex)"
  10452. >
  10453. <el-tooltip
  10454. class="item"
  10455. effect="light"
  10456. :content="r"
  10457. placement="top"
  10458. v-if="r != '' && r != undefined"
  10459. >
  10460. <div
  10461. :class="{
  10462. isCard: r,
  10463. isChooseCard: r == '' || r == undefined,
  10464. }"
  10465. >
  10466. <div>{{ r }}</div>
  10467. </div>
  10468. </el-tooltip>
  10469. <div
  10470. :class="{
  10471. isCard: r,
  10472. isChooseCard: r == '' || r == undefined,
  10473. }"
  10474. v-else
  10475. >
  10476. <div>{{ r }}</div>
  10477. </div>
  10478. </div>
  10479. </div>
  10480. </div>
  10481. <div class="cardList" v-if="st.addChangeSen">
  10482. <div class="cardBox">
  10483. <div
  10484. v-for="(s, sIndex) in st.addChangeSen"
  10485. :key="sIndex"
  10486. @click="setRightAnswer(s, stIndex, sIndex)"
  10487. >
  10488. <el-tooltip
  10489. class="item"
  10490. effect="light"
  10491. :content="s"
  10492. placement="top"
  10493. v-if="s != '' && s != undefined"
  10494. >
  10495. <div
  10496. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10497. >
  10498. <div>{{ s }}</div>
  10499. </div>
  10500. </el-tooltip>
  10501. <div
  10502. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10503. v-else
  10504. >
  10505. <div>{{ s }}</div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. </div>
  10511. </div>
  10512. </div>
  10513. <span slot="footer" class="dialog-footer">
  10514. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10515. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10516. </span>
  10517. </el-dialog>
  10518. <el-dialog
  10519. title="排序"
  10520. :visible.sync="dialogVisibleSentenceTeacher"
  10521. :append-to-body="true"
  10522. width="1000px"
  10523. :before-close="handleClose"
  10524. class="dialog_diy dialog_diy3"
  10525. >
  10526. <div>
  10527. <div class="w_name">
  10528. 学生姓名:<span>{{ sStudent.student }}</span>
  10529. </div>
  10530. <div class="sentenBox">
  10531. <div
  10532. v-for="(st, stIndex) in sentenceList"
  10533. :key="stIndex"
  10534. style="padding-bottom: 20px"
  10535. >
  10536. <div
  10537. style="padding: 15px 0 10px 20px"
  10538. class="sentenceTitle"
  10539. :index="stIndex + 1"
  10540. >
  10541. 题目{{ stIndex + 1 }}:请选择正确顺序
  10542. </div>
  10543. <div class="cardList" v-if="st.chooseSenList">
  10544. <div class="cardBox">
  10545. <div
  10546. v-for="(r, rIndex) in st.chooseSenList"
  10547. :key="rIndex"
  10548. @click="returnCard(r, stIndex, rIndex)"
  10549. >
  10550. <el-tooltip
  10551. class="item"
  10552. effect="light"
  10553. :content="r"
  10554. placement="top"
  10555. v-if="r != '' && r != undefined"
  10556. >
  10557. <div
  10558. :class="{
  10559. isCard: r,
  10560. isChooseCard: r == '' || r == undefined,
  10561. }"
  10562. >
  10563. <div>{{ r }}</div>
  10564. </div>
  10565. </el-tooltip>
  10566. <div
  10567. :class="{
  10568. isCard: r,
  10569. isChooseCard: r == '' || r == undefined,
  10570. }"
  10571. v-else
  10572. >
  10573. <div>{{ r }}</div>
  10574. </div>
  10575. </div>
  10576. </div>
  10577. </div>
  10578. <div class="cardList" v-if="st.addChangeSen">
  10579. <div class="cardBox">
  10580. <div
  10581. v-for="(s, sIndex) in st.addChangeSen"
  10582. :key="sIndex"
  10583. @click="setRightAnswer(s, stIndex, sIndex)"
  10584. >
  10585. <el-tooltip
  10586. class="item"
  10587. effect="light"
  10588. :content="s"
  10589. placement="top"
  10590. v-if="s != '' && s != undefined"
  10591. >
  10592. <div
  10593. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10594. >
  10595. <div>{{ s }}</div>
  10596. </div>
  10597. </el-tooltip>
  10598. <div
  10599. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10600. v-else
  10601. >
  10602. <div>{{ s }}</div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. </div>
  10607. </div>
  10608. </div>
  10609. </div>
  10610. <span slot="footer" class="dialog-footer">
  10611. <el-button @click="dialogVisibleSentenceTeacher = false"
  10612. >取 消</el-button
  10613. >
  10614. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10615. </span>
  10616. </el-dialog>
  10617. <el-dialog
  10618. title="排序"
  10619. :visible.sync="dialogVisibleSentence1"
  10620. :append-to-body="true"
  10621. width="1000px"
  10622. :before-close="handleClose"
  10623. class="dialog_diy dialog_diy3"
  10624. >
  10625. <div>
  10626. <div class="sentenBox">
  10627. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10628. {{ sentenceList1.stuName }}的作业
  10629. </div>
  10630. <div
  10631. v-for="(st, stIndex) in sentenceList1"
  10632. :key="stIndex"
  10633. style="padding-bottom: 20px"
  10634. >
  10635. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10636. 第{{ stIndex + 1 }}题
  10637. </div>
  10638. <div class="isWrong">
  10639. <div class="cardList1" v-if="st.chooseSenList">
  10640. <div class="cardBox">
  10641. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10642. <el-tooltip
  10643. class="item"
  10644. effect="light"
  10645. :content="s"
  10646. placement="top"
  10647. >
  10648. <div class="isCard">
  10649. <div>{{ s }}</div>
  10650. </div>
  10651. </el-tooltip>
  10652. </div>
  10653. </div>
  10654. <div class="cardAnswerBox">
  10655. 组成句子:{{ st.chooseSenList.join(" ") }}
  10656. </div>
  10657. </div>
  10658. <div v-if="tType == 2" class="isTj">
  10659. <div class="isTjImg">
  10660. <img src="../assets/icon/conSentences/right.png" alt="" />
  10661. </div>
  10662. <div>已提交</div>
  10663. </div>
  10664. <div
  10665. class="answerRight isTj"
  10666. v-if="
  10667. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10668. (tType == 1 || tType == 4)
  10669. "
  10670. >
  10671. <div class="isTjImg">
  10672. <img src="../assets/icon/conSentences/right.png" alt="" />
  10673. </div>
  10674. <div>回答正确</div>
  10675. </div>
  10676. <div
  10677. class="answerRight isTj"
  10678. v-if="
  10679. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10680. (tType == 1 || tType == 4)
  10681. "
  10682. >
  10683. <div class="isTjImg">
  10684. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10685. </div>
  10686. <div>回答错误</div>
  10687. </div>
  10688. </div>
  10689. <div
  10690. v-if="
  10691. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10692. (tType == 1 || tType == 4)
  10693. "
  10694. >
  10695. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10696. <div
  10697. class="cardList"
  10698. v-if="st.rightAnswer"
  10699. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10700. >
  10701. <div class="cardBox">
  10702. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10703. <el-tooltip
  10704. class="item"
  10705. effect="light"
  10706. :content="r"
  10707. placement="top"
  10708. >
  10709. <div class="isCard1">
  10710. <div>{{ r }}</div>
  10711. </div>
  10712. </el-tooltip>
  10713. </div>
  10714. </div>
  10715. <div class="cardAnswerBox">
  10716. 组成句子:{{ st.rightAnswer.join(" ") }}
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. <span slot="footer" class="dialog-footer">
  10724. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10725. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10726. >确 定</el-button
  10727. >
  10728. </span>
  10729. </el-dialog>
  10730. <el-dialog
  10731. title="教师提交作业"
  10732. :visible.sync="dialogVisibleWorks"
  10733. :append-to-body="true"
  10734. width="500px"
  10735. :before-close="handleClose"
  10736. class="dialog_change"
  10737. >
  10738. <div class="marginT">
  10739. <div class="w_name">
  10740. 学生姓名:<span>{{ sStudent.student }}</span>
  10741. </div>
  10742. <div>上传文件</div>
  10743. <div
  10744. class="chapter_add"
  10745. @click="addImg($event)"
  10746. v-if="studyJuri[0].cover.length == 0"
  10747. >
  10748. <div class="up_photo">
  10749. <img src="../assets/uploadImg2.png" alt />
  10750. </div>
  10751. <!-- <input
  10752. type="file"
  10753. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10754. style="display: none"
  10755. @change="beforeUpload1($event, 1)"
  10756. /> -->
  10757. <input
  10758. type="file"
  10759. accept="*"
  10760. style="display: none"
  10761. @change="beforeUpload1($event, 1)"
  10762. />
  10763. </div>
  10764. <!-- capture="camera" -->
  10765. <div
  10766. class="chapter_add"
  10767. style="
  10768. display: flex;
  10769. width: 100%;
  10770. flex-direction: row;
  10771. flex-wrap: wrap;
  10772. justify-content: flex-start;
  10773. padding: 15px 0;
  10774. "
  10775. v-if="studyJuri[0].cover.length > 0"
  10776. >
  10777. <div class="upCover">
  10778. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10779. <img :src="word" alt v-else-if="fileType == 1" />
  10780. <img :src="video" alt v-else-if="fileType == 2" />
  10781. <img :src="word2" alt v-else-if="fileType == 3" />
  10782. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10783. <div class="deleteWord" @click="clean(1)">
  10784. <img src="../assets/icon/deleteWorks.png" alt />
  10785. </div>
  10786. </div>
  10787. </div>
  10788. </div>
  10789. <div
  10790. class="upload_send"
  10791. @click="addCourseWorksTeacher(taskCount)"
  10792. v-if="!proVisible"
  10793. >
  10794. 提交
  10795. </div>
  10796. </el-dialog>
  10797. <ImgDraw
  10798. :drawShow="drawShow"
  10799. @closeDraw="closeDraw"
  10800. @addImgDraw="addImgDraw"
  10801. :bg="bg"
  10802. ></ImgDraw>
  10803. <el-dialog
  10804. title="表格"
  10805. :visible.sync="dialogVisibleTable"
  10806. :append-to-body="true"
  10807. width="95%"
  10808. :before-close="handleClose"
  10809. class="dialog_diy"
  10810. >
  10811. <el-form>
  10812. <div
  10813. style="
  10814. display: flex;
  10815. align-items: center;
  10816. justify-content: space-between;
  10817. "
  10818. >
  10819. <span>表格内容</span>
  10820. <el-button type="primary" size="small" @click="returnTableText"
  10821. >还原模板</el-button
  10822. >
  10823. </div>
  10824. <Table
  10825. v-model="tableJson.text"
  10826. @change="change"
  10827. v-if="dialogVisibleTable"
  10828. ></Table>
  10829. </el-form>
  10830. <span slot="footer" class="dialog-footer">
  10831. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10832. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10833. </span>
  10834. </el-dialog>
  10835. <el-dialog
  10836. title="表格"
  10837. :visible.sync="dialogVisibleTableTeacher"
  10838. :append-to-body="true"
  10839. width="95%"
  10840. :before-close="handleClose"
  10841. class="dialog_diy"
  10842. >
  10843. <el-form>
  10844. <div class="w_name">
  10845. 学生姓名:<span>{{ sStudent.student }}</span>
  10846. </div>
  10847. <div>表格内容</div>
  10848. <Table
  10849. v-model="tableJson.text"
  10850. @change="change"
  10851. v-if="dialogVisibleTableTeacher"
  10852. ></Table>
  10853. </el-form>
  10854. <span slot="footer" class="dialog-footer">
  10855. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10856. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10857. </span>
  10858. </el-dialog>
  10859. <el-dialog
  10860. title="文档"
  10861. :visible.sync="dialogVisibleWord"
  10862. :append-to-body="true"
  10863. width="95%"
  10864. :before-close="handleClose"
  10865. class="dialog_diy"
  10866. >
  10867. <el-form>
  10868. <div
  10869. style="
  10870. display: flex;
  10871. align-items: center;
  10872. justify-content: space-between;
  10873. "
  10874. >
  10875. <span>文档内容</span>
  10876. <el-button type="primary" size="small" @click="returnWordText"
  10877. >还原模板</el-button
  10878. >
  10879. </div>
  10880. <editor-bar
  10881. v-model="wordJson.text"
  10882. v-if="dialogVisibleWord"
  10883. ></editor-bar>
  10884. </el-form>
  10885. <span slot="footer" class="dialog-footer">
  10886. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10887. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10888. </span>
  10889. </el-dialog>
  10890. <el-dialog
  10891. title="文档"
  10892. :visible.sync="dialogVisibleWordTeacher"
  10893. :append-to-body="true"
  10894. width="95%"
  10895. :before-close="handleClose"
  10896. class="dialog_diy"
  10897. >
  10898. <el-form>
  10899. <div class="w_name">
  10900. 学生姓名:<span>{{ sStudent.student }}</span>
  10901. </div>
  10902. <div>文档内容</div>
  10903. <editor-bar
  10904. v-model="wordJson.text"
  10905. v-if="dialogVisibleWordTeacher"
  10906. ></editor-bar>
  10907. </el-form>
  10908. <span slot="footer" class="dialog-footer">
  10909. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10910. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10911. </span>
  10912. </el-dialog>
  10913. <el-dialog
  10914. title="表格"
  10915. :visible.sync="dialogVisibleTable2"
  10916. :append-to-body="true"
  10917. width="95%"
  10918. :before-close="handleClose"
  10919. class="dialog_diy"
  10920. >
  10921. <el-form>
  10922. <div class="cont" v-html="tableJson.text"></div>
  10923. </el-form>
  10924. <span slot="footer" class="dialog-footer">
  10925. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10926. </span>
  10927. </el-dialog>
  10928. <el-dialog
  10929. title="文档"
  10930. :visible.sync="dialogVisibleTable3"
  10931. :append-to-body="true"
  10932. width="95%"
  10933. :before-close="handleClose"
  10934. class="dialog_diy"
  10935. >
  10936. <el-form>
  10937. <div class="cont" v-html="tableJson.text"></div>
  10938. </el-form>
  10939. <span slot="footer" class="dialog-footer">
  10940. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10941. </span>
  10942. </el-dialog>
  10943. <el-dialog
  10944. title="分组设置"
  10945. :visible.sync="dialogVisibleGroup"
  10946. :append-to-body="true"
  10947. width="95%"
  10948. :before-close="handleClose"
  10949. class="dialog_diy"
  10950. >
  10951. <div v-if="dialogVisibleGroup">
  10952. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10953. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10954. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10955. </div>
  10956. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10957. @click="lockChair">
  10958. 锁定位置
  10959. </div>
  10960. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10961. 解锁位置
  10962. </div> -->
  10963. <div class="group_switch">
  10964. <span>开放选座</span>
  10965. <el-switch
  10966. v-model="islock"
  10967. active-text=""
  10968. class="switchCss"
  10969. @change="lockChair"
  10970. ></el-switch>
  10971. </div>
  10972. <div
  10973. type="primary"
  10974. @click="updateGroup"
  10975. class="returnBtn"
  10976. style="background-color: #225bc7"
  10977. >
  10978. 分组设置
  10979. </div>
  10980. </div>
  10981. <div>
  10982. <div
  10983. class="g_d_box"
  10984. v-if="groupJson.group && groupStudent[toolindex]"
  10985. >
  10986. <div
  10987. class="g_d_group"
  10988. v-for="(g, gindex) in groupJson.group"
  10989. :key="gindex"
  10990. >
  10991. <div class="g_d_group_chair">
  10992. <div v-if="groupJson.number > 1">
  10993. <span
  10994. :class="{
  10995. isChair:
  10996. groupStudent[toolindex][gindex] &&
  10997. groupStudent[toolindex][gindex][0],
  10998. updateChair:
  10999. courseDetail.userid == userid &&
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][0] &&
  11002. groupJson.islock == 2,
  11003. }"
  11004. ><span
  11005. class="updateChairBtn"
  11006. @click="
  11007. updateGroupChair(
  11008. groupStudent[toolindex][gindex] &&
  11009. groupStudent[toolindex][gindex][0]
  11010. )
  11011. "
  11012. >修改</span
  11013. ></span
  11014. ><span>{{
  11015. groupStudent[toolindex][gindex] &&
  11016. groupStudent[toolindex][gindex][0]
  11017. ? groupStudent[toolindex][gindex] &&
  11018. groupStudent[toolindex][gindex][0].name
  11019. : "空位置"
  11020. }}</span>
  11021. </div>
  11022. <div v-if="groupJson.number > 4">
  11023. <span
  11024. :class="{
  11025. isChair:
  11026. groupStudent[toolindex][gindex] &&
  11027. groupStudent[toolindex][gindex][4],
  11028. updateChair:
  11029. courseDetail.userid == userid &&
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][4] &&
  11032. groupJson.islock == 2,
  11033. }"
  11034. ><span
  11035. class="updateChairBtn"
  11036. @click="
  11037. updateGroupChair(
  11038. groupStudent[toolindex][gindex] &&
  11039. groupStudent[toolindex][gindex][4]
  11040. )
  11041. "
  11042. >修改</span
  11043. ></span
  11044. ><span>{{
  11045. groupStudent[toolindex][gindex] &&
  11046. groupStudent[toolindex][gindex][4]
  11047. ? groupStudent[toolindex][gindex] &&
  11048. groupStudent[toolindex][gindex][4].name
  11049. : "空位置"
  11050. }}</span>
  11051. </div>
  11052. <div v-if="groupJson.number > 8">
  11053. <span
  11054. :class="{
  11055. isChair:
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][8],
  11058. updateChair:
  11059. courseDetail.userid == userid &&
  11060. groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][8] &&
  11062. groupJson.islock == 2,
  11063. }"
  11064. ><span
  11065. class="updateChairBtn"
  11066. @click="
  11067. updateGroupChair(
  11068. groupStudent[toolindex][gindex] &&
  11069. groupStudent[toolindex][gindex][8]
  11070. )
  11071. "
  11072. >修改</span
  11073. ></span
  11074. ><span>{{
  11075. groupStudent[toolindex][gindex] &&
  11076. groupStudent[toolindex][gindex][8]
  11077. ? groupStudent[toolindex][gindex] &&
  11078. groupStudent[toolindex][gindex][8].name
  11079. : "空位置"
  11080. }}</span>
  11081. </div>
  11082. </div>
  11083. <div class="g_d_group_tableBox">
  11084. <div class="g_d_group_chair2">
  11085. <div v-if="groupJson.number > 2">
  11086. <span
  11087. :class="{
  11088. isChair:
  11089. groupStudent[toolindex][gindex] &&
  11090. groupStudent[toolindex][gindex][2],
  11091. updateChair:
  11092. courseDetail.userid == userid &&
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][2] &&
  11095. groupJson.islock == 2,
  11096. }"
  11097. ><span
  11098. class="updateChairBtn"
  11099. @click="
  11100. updateGroupChair(
  11101. groupStudent[toolindex][gindex] &&
  11102. groupStudent[toolindex][gindex][2]
  11103. )
  11104. "
  11105. >修改</span
  11106. ></span
  11107. ><span>{{
  11108. groupStudent[toolindex][gindex] &&
  11109. groupStudent[toolindex][gindex][2]
  11110. ? groupStudent[toolindex][gindex] &&
  11111. groupStudent[toolindex][gindex][2].name
  11112. : "空位置"
  11113. }}</span>
  11114. </div>
  11115. <div v-if="groupJson.number > 6">
  11116. <span
  11117. :class="{
  11118. isChair:
  11119. groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][6],
  11121. updateChair:
  11122. courseDetail.userid == userid &&
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][6] &&
  11125. groupJson.islock == 2,
  11126. }"
  11127. ><span
  11128. class="updateChairBtn"
  11129. @click="
  11130. updateGroupChair(
  11131. groupStudent[toolindex][gindex] &&
  11132. groupStudent[toolindex][gindex][6]
  11133. )
  11134. "
  11135. >修改</span
  11136. ></span
  11137. ><span>{{
  11138. groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][6]
  11140. ? groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][6].name
  11142. : "空位置"
  11143. }}</span>
  11144. </div>
  11145. </div>
  11146. <div class="g_d_group_table">
  11147. <div>
  11148. {{ g.name }}
  11149. </div>
  11150. <div>
  11151. <div
  11152. v-if="
  11153. courseDetail.userid == userid && groupJson.islock == 2
  11154. "
  11155. @click="deleteGroupChair(gindex)"
  11156. >
  11157. 移除组员
  11158. </div>
  11159. <div
  11160. @click="selectGroup(gindex)"
  11161. v-else-if="
  11162. groupStudentUid[toolindex] &&
  11163. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11164. "
  11165. >
  11166. 加入分组
  11167. </div>
  11168. <div
  11169. @click="
  11170. exitGroup(
  11171. groupStudent[toolindex][gindex] &&
  11172. groupStudent[toolindex][gindex][
  11173. groupStudentUid[toolindex][gindex].indexOf(userid)
  11174. ].id
  11175. )
  11176. "
  11177. v-else-if="
  11178. groupStudentUid[toolindex] &&
  11179. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11180. "
  11181. >
  11182. 退出分组
  11183. </div>
  11184. </div>
  11185. </div>
  11186. <div class="g_d_group_chair2">
  11187. <div v-if="groupJson.number > 3">
  11188. <span
  11189. :class="{
  11190. isChair:
  11191. groupStudent[toolindex][gindex] &&
  11192. groupStudent[toolindex][gindex][3],
  11193. updateChair:
  11194. courseDetail.userid == userid &&
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][3] &&
  11197. groupJson.islock == 2,
  11198. }"
  11199. ><span
  11200. class="updateChairBtn"
  11201. @click="
  11202. updateGroupChair(
  11203. groupStudent[toolindex][gindex] &&
  11204. groupStudent[toolindex][gindex][3]
  11205. )
  11206. "
  11207. >修改</span
  11208. ></span
  11209. ><span>{{
  11210. groupStudent[toolindex][gindex] &&
  11211. groupStudent[toolindex][gindex][3]
  11212. ? groupStudent[toolindex][gindex] &&
  11213. groupStudent[toolindex][gindex][3].name
  11214. : "空位置"
  11215. }}</span>
  11216. </div>
  11217. <div v-if="groupJson.number > 7">
  11218. <span
  11219. :class="{
  11220. isChair:
  11221. groupStudent[toolindex][gindex] &&
  11222. groupStudent[toolindex][gindex][7],
  11223. updateChair:
  11224. courseDetail.userid == userid &&
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][7] &&
  11227. groupJson.islock == 2,
  11228. }"
  11229. ><span
  11230. class="updateChairBtn"
  11231. @click="
  11232. updateGroupChair(
  11233. groupStudent[toolindex][gindex] &&
  11234. groupStudent[toolindex][gindex][7]
  11235. )
  11236. "
  11237. >修改</span
  11238. ></span
  11239. ><span>{{
  11240. groupStudent[toolindex][gindex] &&
  11241. groupStudent[toolindex][gindex][7]
  11242. ? groupStudent[toolindex][gindex] &&
  11243. groupStudent[toolindex][gindex][7].name
  11244. : "空位置"
  11245. }}</span>
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <div class="g_d_group_chair">
  11250. <div v-if="groupJson.number > 1">
  11251. <span
  11252. :class="{
  11253. isChair:
  11254. groupStudent[toolindex][gindex] &&
  11255. groupStudent[toolindex][gindex][1],
  11256. updateChair:
  11257. courseDetail.userid == userid &&
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][1] &&
  11260. groupJson.islock == 2,
  11261. }"
  11262. ><span
  11263. class="updateChairBtn"
  11264. @click="
  11265. updateGroupChair(
  11266. groupStudent[toolindex][gindex] &&
  11267. groupStudent[toolindex][gindex][1]
  11268. )
  11269. "
  11270. >修改</span
  11271. ></span
  11272. ><span>{{
  11273. groupStudent[toolindex][gindex] &&
  11274. groupStudent[toolindex][gindex][1]
  11275. ? groupStudent[toolindex][gindex] &&
  11276. groupStudent[toolindex][gindex][1].name
  11277. : "空位置"
  11278. }}</span>
  11279. </div>
  11280. <div v-if="groupJson.number > 5">
  11281. <span
  11282. :class="{
  11283. isChair:
  11284. groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][5],
  11286. updateChair:
  11287. courseDetail.userid == userid &&
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][5] &&
  11290. groupJson.islock == 2,
  11291. }"
  11292. ><span
  11293. class="updateChairBtn"
  11294. @click="
  11295. updateGroupChair(
  11296. groupStudent[toolindex][gindex] &&
  11297. groupStudent[toolindex][gindex][5]
  11298. )
  11299. "
  11300. >修改</span
  11301. ></span
  11302. ><span>{{
  11303. groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][5]
  11305. ? groupStudent[toolindex][gindex] &&
  11306. groupStudent[toolindex][gindex][5].name
  11307. : "空位置"
  11308. }}</span>
  11309. </div>
  11310. <div v-if="groupJson.number > 9">
  11311. <span
  11312. :class="{
  11313. isChair:
  11314. groupStudent[toolindex][gindex] &&
  11315. groupStudent[toolindex][gindex][9],
  11316. updateChair:
  11317. courseDetail.userid == userid &&
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][9] &&
  11320. groupJson.islock == 2,
  11321. }"
  11322. ><span
  11323. class="updateChairBtn"
  11324. @click="
  11325. updateGroupChair(
  11326. groupStudent[toolindex][gindex] &&
  11327. groupStudent[toolindex][gindex][9]
  11328. )
  11329. "
  11330. >修改</span
  11331. ></span
  11332. ><span>{{
  11333. groupStudent[toolindex][gindex] &&
  11334. groupStudent[toolindex][gindex][9]
  11335. ? groupStudent[toolindex][gindex] &&
  11336. groupStudent[toolindex][gindex][9].name
  11337. : "空位置"
  11338. }}</span>
  11339. </div>
  11340. </div>
  11341. </div>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. <span slot="footer" class="dialog-footer">
  11346. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11347. </span>
  11348. </el-dialog>
  11349. <el-dialog
  11350. title="分组设置"
  11351. :visible.sync="dialogVisibleGroup2"
  11352. :append-to-body="true"
  11353. width="650px"
  11354. :before-close="handleClose"
  11355. class="dialog_diy"
  11356. >
  11357. <div class="groupBox">
  11358. <div v-if="groupJson2.group" class="groupContent">
  11359. <div class="groupTitle">请设置小组数量及名称</div>
  11360. <div
  11361. v-for="(item, index) in groupJson2.group"
  11362. :key="index"
  11363. class="groupName"
  11364. >
  11365. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11366. <el-input
  11367. v-model="item.name"
  11368. placeholder="请输入名称..."
  11369. style="width: 250px"
  11370. ></el-input>
  11371. <!-- <div class="groupBtn">
  11372. <el-button type="primary" size="small" @click="addGroup(index)">
  11373. 添加</el-button>
  11374. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11375. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11376. </div> -->
  11377. </div>
  11378. </div>
  11379. <div class="groupContent">
  11380. <div class="groupTitle">请设置每组人数</div>
  11381. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11382. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11383. <el-input
  11384. v-model="groupJson.number"
  11385. style="width: 150px"
  11386. placeholder="请输入2-10的数字"
  11387. @change="numberPan"
  11388. ></el-input>
  11389. </div>
  11390. </div>
  11391. <span slot="footer" class="dialog-footer">
  11392. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11393. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11394. </span>
  11395. </el-dialog>
  11396. <el-dialog
  11397. title="作业提交"
  11398. :visible.sync="dialogVisibleGroupWork"
  11399. :append-to-body="true"
  11400. width="500px"
  11401. :before-close="handleClose"
  11402. class="dialog_change"
  11403. >
  11404. <div class="marginT">
  11405. <div>上传文件</div>
  11406. <div
  11407. class="chapter_add"
  11408. @click="addImg($event)"
  11409. v-if="studyJuri[0].cover.length == 0"
  11410. >
  11411. <div class="up_photo">
  11412. <img src="../assets/icon/uploadImg.png" alt />
  11413. </div>
  11414. <!-- <input
  11415. type="file"
  11416. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11417. style="display: none"
  11418. @change="beforeUpload1($event, 1)"
  11419. /> -->
  11420. <input
  11421. type="file"
  11422. accept="*"
  11423. style="display: none"
  11424. @change="beforeUpload1($event, 1)"
  11425. />
  11426. </div>
  11427. <!-- capture="camera" -->
  11428. <div
  11429. class="chapter_add"
  11430. style="
  11431. display: flex;
  11432. width: 100%;
  11433. flex-direction: row;
  11434. flex-wrap: wrap;
  11435. justify-content: flex-start;
  11436. padding: 15px 0;
  11437. "
  11438. v-if="studyJuri[0].cover.length > 0"
  11439. >
  11440. <div class="upCover">
  11441. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11442. <img :src="word" alt v-else-if="fileType == 1" />
  11443. <img :src="video" alt v-else-if="fileType == 2" />
  11444. <img :src="word2" alt v-else-if="fileType == 3" />
  11445. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11446. <div class="deleteWord" @click="clean(1)">
  11447. <img src="../assets/icon/deleteWorks.png" alt />
  11448. </div>
  11449. </div>
  11450. </div>
  11451. </div>
  11452. <div
  11453. class="upload_send"
  11454. @click="addCourseWorks2(taskCount)"
  11455. v-if="!proVisible"
  11456. >
  11457. 提交
  11458. </div>
  11459. </el-dialog>
  11460. <el-dialog
  11461. title="修改分组"
  11462. :visible.sync="dialogVisibleUpdateGroup"
  11463. :append-to-body="true"
  11464. width="350px"
  11465. :before-close="handleClose"
  11466. class="dialog_diy"
  11467. >
  11468. <div>
  11469. <h2>
  11470. {{ this.updateGroupUser.name }}
  11471. </h2>
  11472. <div style="color: rgb(171 171 171); margin-top: 10px">
  11473. 请选择要进入的分组
  11474. </div>
  11475. <el-radio-group v-model="checkChair">
  11476. <el-radio
  11477. style="display: block; margin-top: 20px"
  11478. v-for="(item, index) in updateGroupArray"
  11479. :label="item.label"
  11480. :key="index"
  11481. >{{ item.name }}</el-radio
  11482. >
  11483. </el-radio-group>
  11484. </div>
  11485. <span slot="footer" class="dialog-footer">
  11486. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11487. <el-button type="primary" @click="updateChair">确定</el-button>
  11488. </span>
  11489. </el-dialog>
  11490. <el-dialog
  11491. title="移除组员"
  11492. :visible.sync="dialogVisibleDeleteGroup"
  11493. :append-to-body="true"
  11494. width="350px"
  11495. :before-close="handleClose"
  11496. class="dialog_diy"
  11497. >
  11498. <div>
  11499. <h2>
  11500. {{ this.deleteGroupArray.name }}
  11501. </h2>
  11502. <div style="color: rgb(171 171 171); margin-top: 10px">
  11503. 请选择要删除的组员
  11504. </div>
  11505. <el-checkbox-group v-model="checkDeleteGroup">
  11506. <el-checkbox
  11507. style="display: flex; margin-top: 20px"
  11508. v-for="(item, index) in deleteGroupUser"
  11509. :label="item.userid"
  11510. :key="index"
  11511. >{{ item.name }}</el-checkbox
  11512. >
  11513. </el-checkbox-group>
  11514. </div>
  11515. <span slot="footer" class="dialog-footer">
  11516. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11517. <el-button type="primary" @click="deleteChair">确定</el-button>
  11518. </span>
  11519. </el-dialog>
  11520. <el-dialog
  11521. title="批量上传"
  11522. :visible.sync="dialogVisiblePl"
  11523. :append-to-body="true"
  11524. width="700px"
  11525. :before-close="handleClose"
  11526. class="dialog_change"
  11527. >
  11528. <div class="marginT">
  11529. <div class="plworkBox">
  11530. <div
  11531. class="chapter_add"
  11532. style="
  11533. display: flex;
  11534. width: 150px;
  11535. flex-direction: row;
  11536. flex-wrap: wrap;
  11537. justify-content: flex-start;
  11538. margin: 0 10px 10px 0;
  11539. "
  11540. v-for="(item, index) in plworkFile"
  11541. :key="index"
  11542. >
  11543. <div class="upCover2">
  11544. <img
  11545. :src="item.url"
  11546. alt
  11547. v-if="item.fileType == 1"
  11548. @click="previewImg(item.url)"
  11549. />
  11550. <img :src="word" alt v-else-if="item.fileType == 4" />
  11551. <img :src="video" alt v-else />
  11552. <!-- <span class="picName">{{ item.name }}</span> -->
  11553. <!-- <el-input
  11554. v-model="item.username"
  11555. placeholder="请输入学生名字"
  11556. style="margin-top: 10px"
  11557. ></el-input> -->
  11558. <div
  11559. class="pl_select_box"
  11560. @click="
  11561. getUpdateMore(true, checkUpload(), item.username, index)
  11562. "
  11563. >
  11564. {{ getSName(item.username) }}
  11565. </div>
  11566. <!-- <el-select
  11567. style="margin-top: 10px"
  11568. v-model="item.username"
  11569. filterable
  11570. allow-create
  11571. placeholder="请选择学生"
  11572. >
  11573. <el-option
  11574. v-for="item1 in checkUpload()"
  11575. :key="item1.userid"
  11576. :label="item1.name ? item1.name : item1.username"
  11577. :value="item1.userid"
  11578. >
  11579. </el-option>
  11580. </el-select> -->
  11581. <div class="deleteWord" @click="clean2(index)">
  11582. <img src="../assets/icon/deleteWorks.png" alt />
  11583. </div>
  11584. </div>
  11585. </div>
  11586. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11587. <div class="up_photo2">
  11588. <img src="../assets/icon/plwork.png" alt />
  11589. <span>点击上传文件</span>
  11590. </div>
  11591. <input
  11592. type="file"
  11593. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11594. multiple="multiple"
  11595. style="display: none"
  11596. @change="beforeUpload3($event, 6)"
  11597. />
  11598. </div>
  11599. </div>
  11600. </div>
  11601. <!-- capture="camera" -->
  11602. <div
  11603. class="upload_send"
  11604. @click="addCourseWorksPl(taskCount)"
  11605. v-if="!proVisible2"
  11606. >
  11607. 提交
  11608. </div>
  11609. </el-dialog>
  11610. <el-dialog
  11611. title="修改名称"
  11612. :visible.sync="dialogVisibleSname"
  11613. width="500px"
  11614. :before-close="handleClose"
  11615. class="dialog_diy"
  11616. center
  11617. >
  11618. <div
  11619. style="
  11620. text-align: center;
  11621. display: flex;
  11622. align-items: center;
  11623. justify-content: center;
  11624. "
  11625. >
  11626. <span class="tian1">名称</span>
  11627. <div
  11628. class="pl_select_box"
  11629. style="margin-left: 10px; width: 200px"
  11630. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11631. >
  11632. {{ getSName(worksSName) }}
  11633. </div>
  11634. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11635. placeholder="请选择学生">
  11636. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11637. :value="item.userid">
  11638. </el-option>
  11639. </el-select> -->
  11640. <!-- <el-input
  11641. v-model="worksSName"
  11642. style="width: 250px; margin: 15px 0px"
  11643. ></el-input> -->
  11644. </div>
  11645. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11646. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11647. <el-button type="primary" @click="updateName">确 定</el-button>
  11648. </span>
  11649. </el-dialog>
  11650. <el-dialog
  11651. title="英语写作"
  11652. :visible.sync="engDialogVisible"
  11653. :append-to-body="true"
  11654. width="800px"
  11655. :before-close="handleClose"
  11656. class="dialog_diy"
  11657. >
  11658. <onlineWrite
  11659. v-if="engDialogVisible"
  11660. :englishList="englishList"
  11661. :myAnswerList1="myAnswerList1"
  11662. :userid="userid"
  11663. ref="engJson"
  11664. ></onlineWrite>
  11665. <span slot="footer" class="dialog-footer">
  11666. <el-button @click="engDialogVisible = false">取 消</el-button>
  11667. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11668. </span>
  11669. </el-dialog>
  11670. <el-dialog
  11671. title="英语写作"
  11672. :visible.sync="engUpdateDialogVisible"
  11673. :append-to-body="true"
  11674. width="800px"
  11675. :before-close="handleClose"
  11676. class="dialog_diy fullStyle"
  11677. >
  11678. <div class="engUpBox">
  11679. <div class="engUpTop">
  11680. <div class="engTitle">
  11681. <div>作文题目:</div>
  11682. <div>{{ englishList1.engTitle }}</div>
  11683. </div>
  11684. <div class="engText">
  11685. <div>作文内容:</div>
  11686. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11687. </div>
  11688. </div>
  11689. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11690. <div class="oldBox">
  11691. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11692. <div class="oldText">
  11693. <div class="detailBox">
  11694. <div class="oldDetail">
  11695. <div>标题:</div>
  11696. <div>{{ oldEnglishJson.engTitle }} </div>
  11697. </div>
  11698. <div class="oldDetail1">
  11699. <div>正文:</div>
  11700. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11701. </div>
  11702. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11703. <div>图片:</div>
  11704. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11705. </div>
  11706. </div>
  11707. </div>
  11708. </div>
  11709. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11710. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11711. <div class="oldText">
  11712. <div class="detailBox" style="position: relative;">
  11713. <div class="oldDetail">
  11714. <div>标题:</div>
  11715. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11716. <div v-else v-html="newEnglishList.engTitle"></div>
  11717. </div>
  11718. <div class="oldDetail">
  11719. <div>正文:</div>
  11720. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11721. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11722. </div>
  11723. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11724. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11725. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11726. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11727. </div>
  11728. </div>
  11729. </div>
  11730. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11731. <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">
  11732. <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>
  11733. <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>
  11734. </div>
  11735. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11736. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11737. <div class="detailBox" style="position: relative;">
  11738. <div class="oldDetail">
  11739. <div>标题:</div>
  11740. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11741. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11742. </div>
  11743. <div class="oldDetail">
  11744. <div>正文:</div>
  11745. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11746. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11747. </div>
  11748. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11749. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11750. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11751. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11752. </div>
  11753. </div>
  11754. <div class="oldText" v-else-if="newEngIndex == -1">
  11755. <div class="detailBox" style="position: relative;">
  11756. <div class="oldDetail">
  11757. <div>标题:</div>
  11758. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11759. <div v-else v-html="newEnglishList.engTitle"></div>
  11760. </div>
  11761. <div class="oldDetail">
  11762. <div>正文:</div>
  11763. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11764. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11765. </div>
  11766. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11767. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11768. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11769. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11770. </div>
  11771. </div>
  11772. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11773. <div class="detailBox" style="position: relative;">
  11774. <div class="oldDetail">
  11775. <div>标题:</div>
  11776. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11777. <div v-else>
  11778. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11779. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11780. </div>
  11781. </div>
  11782. <div class="oldDetail">
  11783. <div>正文:</div>
  11784. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11785. <div v-else>
  11786. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11787. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11788. </div>
  11789. </div>
  11790. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11791. <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>
  11792. <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>
  11793. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11794. </div>
  11795. </div>
  11796. </div>
  11797. </div>
  11798. </div>
  11799. <span slot="footer" class="dialog-footer">
  11800. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11801. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11802. </span>
  11803. </el-dialog>
  11804. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11805. <interVideo
  11806. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11807. :videoJson="videoJson"
  11808. :userid="userid"
  11809. :id="id"
  11810. :courseType="courseType"
  11811. :taskCount="taskCount"
  11812. :toolindex="toolindex"
  11813. :videoType="videoType"
  11814. ></interVideo>
  11815. <UpdateMore
  11816. :dialogVisibleMember.sync="dialogVisibleMember"
  11817. :cList="uploadStudentJuri"
  11818. :userid="userid"
  11819. :searchTN="worksSName2"
  11820. @setPlname="setPlname"
  11821. ></UpdateMore>
  11822. <wordCloud
  11823. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11824. :data="wordCloudData"
  11825. ></wordCloud>
  11826. <el-dialog
  11827. title="挑人"
  11828. :visible.sync="dialogVisiblePickPeople"
  11829. width="650px"
  11830. :before-close="handleClose"
  11831. class="dialog_diy"
  11832. center
  11833. >
  11834. <div class="pick_box">
  11835. <div
  11836. class="noWorksName"
  11837. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11838. v-for="(item, index) in uploadStudentJuri"
  11839. :key="index"
  11840. @click="pickStudent(item)"
  11841. >
  11842. {{ item.name }}
  11843. </div>
  11844. </div>
  11845. </el-dialog>
  11846. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11847. :englishVoiceJson='englishVoiceJson'
  11848. :userid="userid"
  11849. :id="id"
  11850. :courseType="courseType"
  11851. :taskCount="taskCount"
  11852. :toolindex="toolindex"
  11853. @selectSWorks="selectSWorks"
  11854. @selectStudent="selectStudent"
  11855. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11856. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11857. :userid="userid"
  11858. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11859. :commentDetail="commentDetail"
  11860. :courseDetail="courseDetail"
  11861. :wScore="wScore"
  11862. :scoreDetail="scoreDetail"
  11863. @selectSWorks="selectSWorks"
  11864. @selectStudent="selectStudent"></checkEnglishVoice>
  11865. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh"/>
  11866. <choseWorksDetailDialog
  11867. ref="choseWorksDetailDialogRef"
  11868. :worksStudentData="this.worksStudent"
  11869. :noWorksSData="noWorksS"
  11870. :chapInfoListData="chapInfoList"
  11871. :courseType="courseType"
  11872. :taskCount="taskCount"
  11873. @deleteWorks="deleteWorks"
  11874. @openTools="openTools"
  11875. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11876. />
  11877. </div>
  11878. </template>
  11879. <script>
  11880. import "../common/aws-sdk-2.235.1.min.js";
  11881. // import pdf from "./components/pdf3";
  11882. import pdf from "./components/vpdf";
  11883. import AskStatic from "./components/askStatic";
  11884. import AskStatic2 from "./components/askStatic2";
  11885. import AnswerData2 from "./components/answerData2";
  11886. import AnswerData from "./components/answerData";
  11887. import EditorBar from "./tools/wangEnduit.vue";
  11888. import Table from "./tools/table.vue";
  11889. import Time from "./tools/time.vue";
  11890. import Mind from "./tools/jsmind.vue";
  11891. import Sunburst from "./tools/sunburst";
  11892. import SeeBoard from "./tools/seeBoard";
  11893. import * as imageConversion from "image-conversion";
  11894. import Audio from "./components/audio.vue";
  11895. import ImgDraw from "./tools/imgDraw/imgDraw";
  11896. import { Empty } from "element-ui";
  11897. import RecordRTC from "recordrtc";
  11898. import interVideo from "./interVideo/index.vue";
  11899. import UpdateMore from "./updateMore/updateMore.vue";
  11900. import wordCloud from "./wordCloud/index.vue";
  11901. import axios from "axios";
  11902. import JSZip from "jszip";
  11903. import FileSaver from "file-saver";
  11904. import onlineWrite from "./components/onlineWrite";
  11905. import englishEva from "./components/englishEva";
  11906. import * as Diff from 'diff'
  11907. import EnglishVoice from './EnglishVoice2/index.vue'
  11908. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11909. import correctText from './components/correctText.vue'
  11910. import scoreItem from './scoreList/scoreItem.vue'
  11911. import scoreZong from './scoreZong/index.vue'
  11912. import classRoomHelper from './classRoomHelper/index.vue'
  11913. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11914. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11915. import { v4 as uuidv4 } from "uuid";
  11916. const getFile = (url) => {
  11917. return new Promise((resolve, reject) => {
  11918. var credentials = {
  11919. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11920. secretAccessKey: "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",
  11921. }; //秘钥形式的登录上传
  11922. window.AWS.config.update(credentials);
  11923. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11924. let url2 = url;
  11925. let _url2 = "";
  11926. if (
  11927. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11928. ) {
  11929. _url2 = url2.split(
  11930. "https://view.officeapps.live.com/op/view.aspx?src="
  11931. )[1];
  11932. } else {
  11933. _url2 = url2;
  11934. }
  11935. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11936. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11937. var params = {
  11938. Bucket: "ccrb",
  11939. Key: name
  11940. };
  11941. s3.getObject(params, function (err, data) {
  11942. if (err) {
  11943. console.log(err, err.stack)
  11944. resolve({ data: 1 });
  11945. }else {
  11946. resolve({ data: data.Body });
  11947. console.log(data);
  11948. } // sxuccessful response
  11949. });
  11950. // axios({
  11951. // method: "get",
  11952. // url,
  11953. // responseType: "blob",
  11954. // })
  11955. // .then((data) => {
  11956. // resolve({ data: data.data });
  11957. // })
  11958. // .catch((error) => {
  11959. // resolve({ data: 1 });
  11960. // // reject(error.toString());
  11961. // });
  11962. });
  11963. };
  11964. export default {
  11965. components: {
  11966. EditorBar,
  11967. Time,
  11968. pdf,
  11969. AskStatic,
  11970. AskStatic2,
  11971. Mind,
  11972. Sunburst,
  11973. SeeBoard,
  11974. AnswerData2,
  11975. AnswerData,
  11976. Audio,
  11977. ImgDraw,
  11978. Table,
  11979. interVideo,
  11980. UpdateMore,
  11981. wordCloud,
  11982. onlineWrite,
  11983. englishEva,
  11984. EnglishVoice,
  11985. checkEnglishVoice,
  11986. correctText,
  11987. scoreItem,
  11988. classRoomHelper,
  11989. scoreZong,
  11990. statisticalAnalysis,
  11991. choseWorksDetailDialog
  11992. },
  11993. data() {
  11994. return {
  11995. bg: null,
  11996. drawShow: false,
  11997. dialogVisible: false,
  11998. dialogVisiblePl: false,
  11999. commentDialogVisible: false,
  12000. dialogVisibleMember: false,
  12001. dialogVisibleWordCloud: false,
  12002. videoVisible: false,
  12003. isStar: false,
  12004. studentEvalDialogVisible: false,
  12005. studentEvalDialogVisibleTeacher: false,
  12006. dialogVisibleSelect: false,
  12007. dialogVisibleSelectTeacher: false,
  12008. dialogVisibleScore: false,
  12009. dialogVisibleENScore: false,
  12010. dialogVisibleSentence: false,
  12011. dialogVisibleSentenceTeacher: false,
  12012. dialogVisibleSentence1: false,
  12013. dialogVisibleWorks: false,
  12014. dialogVisibleTable: false,
  12015. dialogVisibleTableTeacher: false,
  12016. dialogVisibleWord: false,
  12017. dialogVisibleWordTeacher: false,
  12018. dialogVisibleTable2: false,
  12019. dialogVisibleTable3: false,
  12020. dialogVisibleGroupWork: false,
  12021. dialogVisibleUpdateGroup: false,
  12022. dialogVisibleDeleteGroup: false,
  12023. dialogVisibleSname: false,
  12024. dialogVisibleVideo: false,
  12025. dialogVisiblePickPeople: false,
  12026. engDialogVisible: false,
  12027. engUpdateDialogVisible: false,
  12028. engEvaDialogVisible: false,
  12029. evaEngJson: {
  12030. teacherJson: {},
  12031. studentJson: {},
  12032. message: {},
  12033. },
  12034. isNoUserid:false,
  12035. engListLength:0,
  12036. engWid:"",
  12037. newEnglishList:{
  12038. engTitle:"",
  12039. engText:"",
  12040. },
  12041. newEnglishList1:[],
  12042. oldEnglishJson:{},
  12043. oldEnglishJson1:{},
  12044. englishList1:{},
  12045. englishList:{},
  12046. myAnswerList1:{},
  12047. topHeight:0,
  12048. newEngIndex:-1,
  12049. englishToolIndex:0,
  12050. worksSName: "",
  12051. classJuri: [],
  12052. uploadStudentJuri: [],
  12053. uploadCid: "",
  12054. snameWid: "",
  12055. sStudent: {},
  12056. sTool: "",
  12057. bzText: "",
  12058. commentDetail: [],
  12059. selectAnswer: [],
  12060. videoDetail: {},
  12061. selectJson: {},
  12062. eScore: { eBzText: "", eStar: [] },
  12063. id: this.$route.query.courseId,
  12064. userid: this.$route.query.userid,
  12065. classId: this.$route.query.cid,
  12066. // courseTypeLine: this.$route.query.type,
  12067. oid: this.$route.query.oid,
  12068. org: this.$route.query.org,
  12069. tType: this.$route.query.tType,
  12070. courseType: this.$route.query.type,
  12071. screenType: this.$route.query.screenType,
  12072. tcid2: this.$route.query.tcid,
  12073. tcid: "",
  12074. pptImgUrl: "",
  12075. pptImgUrl1: "",
  12076. commentText: "",
  12077. full: false,
  12078. sIsOpen: false,
  12079. IsLookOpen: false,
  12080. IsFollow: false,
  12081. pzDialog: false,
  12082. contentDialog: false,
  12083. mlDialog: false,
  12084. type: 1,
  12085. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12086. sentenceList1: [],
  12087. tableJson: [],
  12088. tableJsonO: [],
  12089. wordJson: [],
  12090. wordJsonO: [],
  12091. vedio: [],
  12092. text: [],
  12093. textList: [],
  12094. line: [],
  12095. lineList: [],
  12096. chapTools: [],
  12097. chapToolList: [],
  12098. file: [],
  12099. fileC: [],
  12100. vedioTime: [],
  12101. upToolImg: "",
  12102. preTime: 0,
  12103. rateList: {
  12104. ca: 0,
  12105. },
  12106. rateParams: [],
  12107. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12108. studyJuri: [
  12109. {
  12110. content: "",
  12111. cover: [],
  12112. upVedio: [],
  12113. upFile: [],
  12114. },
  12115. ],
  12116. isClose: 0,
  12117. plworkFile: [],
  12118. mr: require("../assets/vedioPic.png"),
  12119. word: require("../assets/icon/isWord.png"),
  12120. word2: require("../assets/icon/word2.png"),
  12121. video: require("../assets/icon/isVideo.png"),
  12122. noLikes: require("../assets/icon/comment/noLikes.png"),
  12123. likes: require("../assets/icon/comment/likes.png"),
  12124. scoreImg: require("../assets/score.png"),
  12125. courseDetail: {},
  12126. reply: "",
  12127. isSelect: false,
  12128. chapInfo: [],
  12129. chapInfoList: [],
  12130. taskCount: 0,
  12131. imgList: [],
  12132. noImgList: [],
  12133. pzList: [],
  12134. timeWorkList: [],
  12135. PlTextList: [
  12136. "Excellent!",
  12137. "nice!",
  12138. "很有创意!",
  12139. "还不错哦~",
  12140. "继续努力哦~",
  12141. ],
  12142. isClickNav: "",
  12143. navId: "",
  12144. playerOptions: {
  12145. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12146. autoplay: false, //如果true,浏览器准备好时开始回放。
  12147. muted: false, // 默认情况下将会消除任何音频。
  12148. loop: false, // 导致视频一结束就重新开始。
  12149. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12150. language: "zh-CN",
  12151. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12152. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12153. sources: [
  12154. {
  12155. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12156. src: "", //url地址require("../../assets/media/aaa.mp4")
  12157. },
  12158. ],
  12159. // poster: require("../../assets/tu31.png"), //你的封面地址
  12160. // poster: dataRes.imgUrl, //你的封面地址
  12161. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12162. controlBar: {
  12163. timeDivider: true, //当前时间和持续时间的分隔符
  12164. durationDisplay: true, //显示持续时间
  12165. remainingTimeDisplay: false, //是否显示剩余时间功能
  12166. fullscreenToggle: true, //全屏按钮
  12167. },
  12168. },
  12169. playerOptions1: {
  12170. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12171. autoplay: false, //如果true,浏览器准备好时开始回放。
  12172. muted: false, // 默认情况下将会消除任何音频。
  12173. loop: false, // 导致视频一结束就重新开始。
  12174. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12175. language: "zh-CN",
  12176. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12177. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12178. sources: [
  12179. {
  12180. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12181. src: "", //url地址require("../../assets/media/aaa.mp4")
  12182. },
  12183. ],
  12184. // poster: require("../../assets/tu31.png"), //你的封面地址
  12185. // poster: dataRes.imgUrl, //你的封面地址
  12186. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12187. controlBar: {
  12188. timeDivider: true, //当前时间和持续时间的分隔符
  12189. durationDisplay: true, //显示持续时间
  12190. remainingTimeDisplay: false, //是否显示剩余时间功能
  12191. fullscreenToggle: true, //全屏按钮
  12192. },
  12193. },
  12194. playerO: {},
  12195. noneBtnImg: false,
  12196. proVisible: false,
  12197. proVisible2: false,
  12198. progress: 0,
  12199. isFinishSize: 0,
  12200. isAllSize: 0,
  12201. questionAnswer: "",
  12202. answerQ: "", //问答标题
  12203. rateJson: [],
  12204. wbCount: 0,
  12205. wordCount: 0,
  12206. mindCount: 0,
  12207. askCount: 0,
  12208. noteCount: 0,
  12209. mindNetWorkCount: 0,
  12210. libraryCount: 0,
  12211. workCount: 0,
  12212. timeCount: 0,
  12213. answerCount: 0,
  12214. trainCount: 0,
  12215. evalCount: 0,
  12216. dialogImageUrl: "",
  12217. pictureDialog: false,
  12218. toolTypeList: [],
  12219. dialogVisible1: false,
  12220. dialogVisible2: false,
  12221. dialogVisible3: false,
  12222. dialogVisible6: false,
  12223. dialogVisible4: false,
  12224. isNoHomeWork: false,
  12225. dialogVisible5: false,
  12226. dialogVisible5Teacher: false,
  12227. dialogVisibleChoice: false,
  12228. dialogVisibleChoiceTeacher: false,
  12229. answerDialogVisible: false,
  12230. answerDialogVisibleTeacher: false,
  12231. juriVisible: false,
  12232. timeDialogVisible: false,
  12233. replyDialogVisible: false,
  12234. toolDialogVisible: false,
  12235. replyIndex: 0,
  12236. replyPid: "",
  12237. radio: [],
  12238. isAsk: false,
  12239. askJson: {
  12240. askCount: 1,
  12241. askTitle: "",
  12242. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12243. },
  12244. testJson: {},
  12245. videoType:0,
  12246. checkJson: [],
  12247. askList: [],
  12248. answerList: [],
  12249. navList: [],
  12250. addPzDialog: false,
  12251. pzConText: "",
  12252. worksStudent: [],
  12253. isCloseList: [],
  12254. workStudent: [],
  12255. groupStudent: [],
  12256. groupStudentUid: [],
  12257. noWorksS: [],
  12258. isWorksS: [],
  12259. noWorksStudent: [],
  12260. toolindex: 0,
  12261. toolDetailIndex: null,
  12262. groupIndex: 0,
  12263. workTypeB: false,
  12264. workTypeC: false,
  12265. isAnswer: false,
  12266. isHovered: false,
  12267. isHovered1: false,
  12268. isHovered2: false,
  12269. commentTagShow:0,
  12270. timer: null,
  12271. opertimer: null,
  12272. showType: 0,
  12273. fileType: 0,
  12274. showPDF: false,
  12275. noteName: "",
  12276. evaJuri: [],
  12277. evalua: "",
  12278. eTitle: "",
  12279. eName: "",
  12280. eJson: {},
  12281. fid: "", //一级
  12282. sid: "", //二级
  12283. tid: "", //二级
  12284. typeMode: 1,
  12285. eJSONNum: 0,
  12286. Etype: 1,
  12287. data: {
  12288. meta: {
  12289. name: "example",
  12290. author: "dd@163.com",
  12291. version: "0.2",
  12292. },
  12293. format: "node_array",
  12294. data: [{ id: "root", isroot: true, topic: "" }],
  12295. },
  12296. fullDialogVisible: false,
  12297. fulltype: "",
  12298. fullUrl: "",
  12299. commentIndexJson: {},
  12300. Stbodywidth: 0,
  12301. ispzType: 0,
  12302. pzType: 1,
  12303. wScore: 0,
  12304. scoreDetail: "",
  12305. videoStart: false,
  12306. recorder: null,
  12307. groupJson: {},
  12308. islock: false,
  12309. groupJson2: {},
  12310. dialogVisibleGroup: false,
  12311. dialogVisibleGroup2: false,
  12312. updateGroupArray: [],
  12313. updateGroupUser: {},
  12314. deleteGroupUser: [],
  12315. deleteGroupArray: {},
  12316. checkChair: "",
  12317. checkDeleteGroup: [],
  12318. inviteCode: "",
  12319. courseGroupStudent: [],
  12320. courseGroupStudentUid: [],
  12321. courseGroup: {},
  12322. isGroup: false,
  12323. // toolIndex: null,
  12324. tool: {},
  12325. isWorkTool: [
  12326. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12327. ], //, 40
  12328. videoJson: {},
  12329. toolType: 0,
  12330. checktoolArray: [],
  12331. vChapterData: [],
  12332. isUpdateToolDetail: false,
  12333. isUpdateToolDetail1: false,
  12334. updateToolDetailInner: "",
  12335. checkboxList: [],
  12336. plIndex: "",
  12337. worksSName2: "",
  12338. worksSid: "",
  12339. wordCloudData: [],
  12340. isPickStudent: [],
  12341. pzStype: 1,
  12342. myAnList: {},
  12343. userMes:{},
  12344. downLoading: false,
  12345. greyType: false,
  12346. correctWord: [],
  12347. isUpdateText: "",
  12348. EnglishVoiceDialog: false,
  12349. englishVoiceJson: {},
  12350. englishVoiceJsonWork:[],
  12351. scoreList:{
  12352. listdata:[],
  12353. isScoreList:[],
  12354. },
  12355. classRoomHelperWidth: '85px',
  12356. orgArray:[],
  12357. oidArray:[],
  12358. toolsList:{
  12359. 58: "模拟驾驶",
  12360. 59: "路径搜索",
  12361. 60: "深度学习",
  12362. 10: "倒计时",
  12363. 65: "挑人",
  12364. 7: "思维网格",
  12365. 1: "电子白板",
  12366. 52: "文档",
  12367. 3: "思维导图",
  12368. 48: "表格",
  12369. 49: "学生分组",
  12370. 4: "卷调查",
  12371. 45: "选择题",
  12372. 15: "问答",
  12373. 16: "作业提交",
  12374. 50: "批量上传",
  12375. 41: "选择匹配",
  12376. 47: "排序",
  12377. 40: "个人评价",
  12378. 18: "训练平台",
  12379. 21: "AIoT Blockly",
  12380. 23: "AI Python",
  12381. 24: "AI Blockly",
  12382. 32: "源码编辑",
  12383. 57: "CocoPi",
  12384. 63: "海龟编程",
  12385. 28: "翻译",
  12386. 31: "数字画板",
  12387. 39: "GeoGebra",
  12388. 66: "公式编辑",
  12389. 67: "分子结构",
  12390. 68: "时间轴",
  12391. 69: "英语写作",
  12392. 70: "英语口语",
  12393. 25: "目标管理",
  12394. 26: "课程设计",
  12395. 62: "交互视频",
  12396. 71: "AI智能体"
  12397. },
  12398. splitScreenData:{
  12399. isOpen:false,
  12400. userId:"",
  12401. uid:"",
  12402. myUid:"",
  12403. loading:false,
  12404. behavior:null,
  12405. }
  12406. };
  12407. },
  12408. methods: {
  12409. getAIJ(){
  12410. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12411. let oid = res.data[0];
  12412. let org = res.data[1];
  12413. let oidArray = [];
  12414. let orgArray = [];
  12415. oid.forEach(i=>oidArray.push(i.oid))
  12416. org.forEach(i=>orgArray.push(i.oid))
  12417. this.orgArray = orgArray;
  12418. this.oidArray = oidArray;
  12419. })
  12420. },
  12421. insertMemorandum(_html){//保存行为操作
  12422. //variable
  12423. //btn
  12424. let params = [{
  12425. uid:this.userid,
  12426. courseId:this.id+(this.tcid2?this.tcid2:''),
  12427. content:_html
  12428. }]
  12429. console.log("👇👇")
  12430. console.log(params)
  12431. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12432. if(res.data==1){
  12433. console.log('保存操作成功')
  12434. }else{
  12435. console.log('保存操作失败')
  12436. }
  12437. }).catch(e=>{
  12438. console.log('保存操作失败')
  12439. console.log(e)
  12440. })
  12441. },
  12442. gx(){
  12443. this.$forceUpdate();
  12444. },
  12445. isUpdateCorrect(t,p){
  12446. if(this.greyType == false){
  12447. this.isUpdateText = t;
  12448. this.greyType = true;
  12449. }else{
  12450. if(p == 1){
  12451. this.newEnglishList.engText = this.isUpdateText;
  12452. }else if(p == 2){
  12453. this.oldEnglishJson1.engText = this.isUpdateText;
  12454. }else if(p == 3){
  12455. this.newEnglishList.engText = this.isUpdateText;
  12456. }else{
  12457. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12458. }
  12459. this.greyType = false
  12460. }
  12461. },
  12462. aiCorrect(t,p){
  12463. let aiText = "";
  12464. const loading = this.$loading.service({
  12465. background: "rgba(255, 255, 255)",
  12466. target: document.querySelectorAll(".loadingText")[0],
  12467. });
  12468. let param = {
  12469. model: "gpt-3.5-turbo",
  12470. temperature: 0,
  12471. max_tokens: 2048,
  12472. top_p: 1,
  12473. frequency_penalty: 0,
  12474. presence_penalty: 0,
  12475. messages: [
  12476. {
  12477. role: "user",
  12478. content:
  12479.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12480. },
  12481. ],
  12482. uid: this.userid,
  12483. stream: false,
  12484. };
  12485. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12486. (res) => {
  12487. if (
  12488. res.data.FunctionResponse &&
  12489. res.data.FunctionResponse.result &&
  12490. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12491. ) {
  12492. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12493. return;
  12494. }
  12495. aiText =
  12496. res.data.FunctionResponse.choices[0].message.content;
  12497. aiText = aiText.replace(/%/g,"%25");
  12498. // let w = "";
  12499. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12500. // for(var k = 0;k<a.length;k++){
  12501. // //diffWordsWithSpace
  12502. // if(a.length > 1){
  12503. // if(a[k].added == true){
  12504. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12505. // }else if(a[k].removed == true){
  12506. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12507. // }else{
  12508. // w += '<span>' + a[k].value + '</span>';
  12509. // }
  12510. // }else{
  12511. // if(p == 1){
  12512. // w = this.newEnglishList.engText;
  12513. // }else if(p == 2){
  12514. // w = this.oldEnglishJson1.engText;
  12515. // }else if(p == 3){
  12516. // w = this.newEnglishList.engText;
  12517. // }else{
  12518. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12519. // }
  12520. // }
  12521. // }
  12522. if(p == 1){
  12523. this.newEnglishList.engText = aiText;
  12524. }else if(p == 2){
  12525. this.oldEnglishJson1.engText = aiText;
  12526. }else if(p == 3){
  12527. this.newEnglishList.engText = aiText;
  12528. }else{
  12529. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12530. }
  12531. loading.close();
  12532. },
  12533. (err) => {
  12534. console.log(err);
  12535. loading.close();
  12536. }
  12537. );
  12538. },
  12539. addToolChoose() {
  12540. if (!this.checktoolArray.length) {
  12541. this.$message.error("请选择要添加的任务");
  12542. return;
  12543. }
  12544. if (
  12545. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12546. this.taskCount
  12547. ].toolChoose[0].tool.length
  12548. ) {
  12549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12550. this.taskCount
  12551. ].toolChoose[0].tool = this.checktoolArray;
  12552. } else {
  12553. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12554. this.taskCount
  12555. ].toolChoose.push({
  12556. tool: this.checktoolArray,
  12557. toolDetail: "",
  12558. toolType: 0,
  12559. askCount: 1,
  12560. askTitle: "",
  12561. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12562. });
  12563. }
  12564. let params = [
  12565. {
  12566. cid: this.id,
  12567. chapters: JSON.stringify(this.chapInfoList),
  12568. uid: this.userid,
  12569. unitIndex: this.courseType,
  12570. },
  12571. ];
  12572. this.ajax
  12573. .post(this.$store.state.api + "updateWorkNew4", params)
  12574. .then((res) => {
  12575. this.$message({
  12576. message: "添加成功",
  12577. type: "success",
  12578. });
  12579. this.checktoolArray = [];
  12580. this.getCourseDetail(2);
  12581. this.checkBz(
  12582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12583. this.taskCount
  12584. ].toolChoose.length - 1
  12585. );
  12586. this.toolDialogVisible = false;
  12587. this.refreshCourse();
  12588. this.$forceUpdate();
  12589. })
  12590. .catch((err) => {
  12591. console.error(err);
  12592. });
  12593. },
  12594. checkBz(index) {
  12595. this.isUpdateToolDetail = false;
  12596. this.$forceUpdate();
  12597. setTimeout(() => {
  12598. document.scrollingElement.scrollTop =
  12599. document.querySelectorAll(".filebox")[index].offsetTop +
  12600. document.querySelector(".student_body").offsetTop;
  12601. }, 500);
  12602. },
  12603. updateToolDetail(i, type) {
  12604. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12605. this.toolDetailIndex = i
  12606. this.isUpdateToolDetail1 = true;
  12607. setTimeout(() => {
  12608. this.updateToolDetailInner = JSON.parse(
  12609. JSON.stringify(
  12610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12611. this.taskCount
  12612. ].toolChoose[i].toolDetail
  12613. )
  12614. );
  12615. document.querySelector(".checkTextArea").focus();
  12616. }, 0);
  12617. } else if((this.isUpdateToolDetail1 && type != 2)){
  12618. // this.toolDetailIndex = i;
  12619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12620. this.taskCount
  12621. ].toolChoose[i].toolDetail = JSON.parse(
  12622. JSON.stringify(this.updateToolDetailInner)
  12623. );
  12624. let params = [
  12625. {
  12626. cid: this.id,
  12627. chapters: JSON.stringify(this.chapInfoList),
  12628. uid: this.userid,
  12629. unitIndex: this.courseType,
  12630. },
  12631. ];
  12632. this.ajax
  12633. .post(this.$store.state.api + "updateWorkNew4", params)
  12634. .then((res) => {
  12635. this.isUpdateToolDetail1 = false;
  12636. this.$message({
  12637. message: "修改成功",
  12638. type: "success",
  12639. });
  12640. this.toolDetailIndex = null;
  12641. this.updateToolDetailInner = "";
  12642. this.getCourseDetail(2);
  12643. this.$forceUpdate();
  12644. })
  12645. .catch((err) => {
  12646. console.error(err);
  12647. });
  12648. } else if((this.isUpdateToolDetail1 && type == 2)){
  12649. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12650. this.taskCount
  12651. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12652. JSON.stringify(this.updateToolDetailInner)
  12653. );
  12654. let params = [
  12655. {
  12656. cid: this.id,
  12657. chapters: JSON.stringify(this.chapInfoList),
  12658. uid: this.userid,
  12659. unitIndex: this.courseType,
  12660. },
  12661. ];
  12662. this.ajax
  12663. .post(this.$store.state.api + "updateWorkNew4", params)
  12664. .then((res) => {
  12665. this.$message({
  12666. message: "修改成功",
  12667. type: "success",
  12668. });
  12669. this.toolDetailIndex = i;
  12670. this.isUpdateToolDetail1 = true;
  12671. setTimeout(() => {
  12672. this.updateToolDetailInner = JSON.parse(
  12673. JSON.stringify(
  12674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12675. this.taskCount
  12676. ].toolChoose[i].toolDetail
  12677. )
  12678. );
  12679. document.querySelector(".checkTextArea").focus();
  12680. }, 0);
  12681. this.getCourseDetail(2);
  12682. this.$forceUpdate();
  12683. })
  12684. .catch((err) => {
  12685. console.error(err);
  12686. });
  12687. }
  12688. },
  12689. jumpGj(i, j, k, l) {
  12690. for (var z = 0; z < this.navList.length; z++) {
  12691. for (var q = 0; q < this.navList[z].task.length; q++) {
  12692. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12693. this.navList[z].task[q].tool[w].isTool = false;
  12694. }
  12695. }
  12696. }
  12697. this.navList[i].task[j].tool[k].isTool =
  12698. !this.navList[i].task[j].tool[k].isTool;
  12699. var a = document.scrollingElement;
  12700. this.navId = ""
  12701. let target = document.querySelector(`#gj${k}`);
  12702. if (target) {
  12703. target.scrollIntoView(true);
  12704. setTimeout(() => {
  12705. a.scrollTop = a.scrollTop - 150;
  12706. }, 0);
  12707. }
  12708. let flag = this.courseType == i;
  12709. let flag2 = this.taskCount == j
  12710. if (l) {
  12711. this.courseType = i;
  12712. // this.navId = l;
  12713. this.taskCount = j;
  12714. this.selectPz();
  12715. this.getHomeWork();
  12716. this.getCourseDetail(2);
  12717. if(flag){
  12718. if(flag2){
  12719. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12720. }else{
  12721. 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>`)
  12722. }
  12723. }else{
  12724. 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>`)
  12725. }
  12726. }
  12727. // var b = this.$refs["bz" + k][0];
  12728. // a.scrollTop = b.offsetTop;
  12729. },
  12730. addTools2(i) {
  12731. if (i == 4) {
  12732. // this.openTools2(4);
  12733. this.$message.error("暂未开放");
  12734. return;
  12735. }
  12736. if (i == 45) {
  12737. // this.openTools2(45);
  12738. this.$message.error("暂未开放");
  12739. return;
  12740. }
  12741. if (i == 47) {
  12742. // this.openTools2(47);
  12743. this.$message.error("暂未开放");
  12744. return;
  12745. }
  12746. if (i == 49) {
  12747. // this.openTools2(49);
  12748. this.$message.error("暂未开放");
  12749. return;
  12750. }
  12751. if (i == 62) {
  12752. // this.openTools(itemTaskIndex, 62, toolIndex);
  12753. this.$message.error("暂未开放");
  12754. return;
  12755. }
  12756. if (i == 15) {
  12757. // this.openTools(itemTaskIndex, 15, toolIndex);
  12758. this.$message.error("暂未开放");
  12759. return;
  12760. }
  12761. if (i == 40) {
  12762. // this.openTools(itemTaskIndex, 40, toolIndex);
  12763. this.$message.error("暂未开放");
  12764. return;
  12765. }
  12766. if (i == 41) {
  12767. // this.openTools(itemTaskIndex, 41, toolIndex);
  12768. this.$message.error("暂未开放");
  12769. return;
  12770. }
  12771. if (i == 42) {
  12772. // this.openTools(itemTaskIndex, 42, toolIndex);
  12773. this.$message.error("暂未开放");
  12774. return;
  12775. }
  12776. if (this.checktoolArray.length > 0) {
  12777. if (this.checktoolArray.indexOf(i) != -1) {
  12778. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12779. } else {
  12780. this.checktoolArray = [];
  12781. this.checktoolArray.push(i);
  12782. }
  12783. } else {
  12784. this.checktoolArray.push(i);
  12785. }
  12786. this.$forceUpdate();
  12787. },
  12788. jump() {
  12789. window.parent.postMessage({ tools: "43" }, "*");
  12790. },
  12791. getUpdateMore(f, checkboxList, searchTN, index) {
  12792. this.dialogVisibleMember = f;
  12793. this.checkboxList = checkboxList;
  12794. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12795. this.plIndex = index;
  12796. },
  12797. setPlname(a) {
  12798. if (this.plworkFile.length) {
  12799. this.plworkFile[this.plIndex].username = a;
  12800. } else {
  12801. this.worksSName = a;
  12802. }
  12803. this.dialogVisibleMember = false;
  12804. },
  12805. previewImg(url,w=null) {
  12806. this.$hevueImgPreview(url);
  12807. if(w){
  12808. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12809. }
  12810. },
  12811. checkImg(list) {
  12812. if (!list.length) {
  12813. return;
  12814. }
  12815. this.$hevueImgPreview({
  12816. multiple: true, // 开启多图预览模式
  12817. imgList: list, // 需要预览的多图数组
  12818. });
  12819. },
  12820. change(val) {
  12821. console.log(val);
  12822. },
  12823. goTo(path) {
  12824. this.$router.push(path);
  12825. },
  12826. handlePictureCardPreview(url) {
  12827. this.dialogImageUrl = url;
  12828. this.pictureDialog = true;
  12829. },
  12830. clean(type) {
  12831. if (type == 1) {
  12832. this.studyJuri[0].cover.splice(0, 1);
  12833. } else if (type == 2) {
  12834. this.studyJuri[0].upVedio.splice(0, 1);
  12835. } else {
  12836. this.studyJuri[0].upFile.splice(0, 1);
  12837. }
  12838. },
  12839. clean2(index) {
  12840. this.plworkFile.splice(index, 1);
  12841. },
  12842. handleClose(done) {
  12843. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12844. this.videoDetail.sources[0].src = "";
  12845. }
  12846. this.commentIndexJson = {};
  12847. done();
  12848. },
  12849. fullTools() {
  12850. this.full = !this.full;
  12851. },
  12852. imgChange(file, fileList, type) {
  12853. if (type == 1) {
  12854. var _tmp = this.studyJuri[0].cover;
  12855. } else if (type == 2) {
  12856. var _tmp = this.studyJuri[0].upVedio;
  12857. } else {
  12858. var _tmp = this.studyJuri[0].upFile;
  12859. }
  12860. this.noneBtnImg = _tmp.length >= 1;
  12861. },
  12862. setContent(bool) {
  12863. this.contentDialog = bool;
  12864. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12865. document.querySelector(".workd_media").style.height = "650px";
  12866. } else if (document.querySelector(".workd_media")) {
  12867. document.querySelector(".workd_media").style.height = "auto";
  12868. }
  12869. },
  12870. setContent2(bool) {
  12871. this.mlDialog = bool;
  12872. if (
  12873. bool &&
  12874. this.contentDialog &&
  12875. document.querySelector(".workd_media")
  12876. ) {
  12877. document.querySelector(".workd_media").style.height = "650px";
  12878. } else if (document.querySelector(".workd_media")) {
  12879. document.querySelector(".workd_media").style.height = "auto";
  12880. }
  12881. this.$forceUpdate();
  12882. },
  12883. openToolAll() {
  12884. this.toolDialogVisible = true;
  12885. },
  12886. addImg(e) {
  12887. var el = e.currentTarget;
  12888. // this.$message.success('触发上传')
  12889. el.getElementsByTagName("input")[0].click();
  12890. e.target.value = "";
  12891. },
  12892. addSelectAnswer() {
  12893. let params = [
  12894. {
  12895. uid: this.userid,
  12896. cid: this.id,
  12897. stage: this.courseType,
  12898. task: this.taskCount,
  12899. tool: this.toolindex,
  12900. content: this.selectAnswer.answer,
  12901. type: 7,
  12902. },
  12903. ];
  12904. this.ajax
  12905. .post(this.$store.state.api + "addCourseWorks", params)
  12906. .then((res) => {
  12907. this.$message({
  12908. message: "提交成功",
  12909. type: "success",
  12910. });
  12911. this.dialogVisibleSelect = false;
  12912. // this.selectAnswer = {};
  12913. this.selectSWorks();
  12914. this.selectStudent();
  12915. })
  12916. .catch((err) => {
  12917. this.$message.error("提交失败");
  12918. console.error(err);
  12919. });
  12920. },
  12921. addSelectAnswerTeacher() {
  12922. let params = [
  12923. {
  12924. uid: this.sStudent.userid,
  12925. cid: this.id,
  12926. stage: this.courseType,
  12927. task: this.taskCount,
  12928. tool: this.toolindex,
  12929. content: this.selectAnswer.answer,
  12930. type: 7,
  12931. },
  12932. ];
  12933. this.ajax
  12934. .post(this.$store.state.api + "addCourseWorks", params)
  12935. .then((res) => {
  12936. this.$message({
  12937. message: "提交成功",
  12938. type: "success",
  12939. });
  12940. this.dialogVisibleSelectTeacher = false;
  12941. // this.selectAnswer = {};
  12942. this.selectSWorks();
  12943. this.selectStudent();
  12944. })
  12945. .catch((err) => {
  12946. this.$message.error("提交失败");
  12947. console.error(err);
  12948. });
  12949. },
  12950. addSenWorks() {
  12951. for (var i = 0; i < this.sentenceList.length; i++) {
  12952. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12953. if (
  12954. this.sentenceList[i].chooseSenList[j] == undefined ||
  12955. this.sentenceList[i].chooseSenList[j] == ""
  12956. ) {
  12957. this.$message.error("请将答案填写完整!");
  12958. return;
  12959. }
  12960. }
  12961. }
  12962. let params = [
  12963. {
  12964. uid: this.userid,
  12965. cid: this.id,
  12966. stage: this.courseType,
  12967. task: this.taskCount,
  12968. tool: this.toolindex,
  12969. content: JSON.stringify(this.sentenceList),
  12970. type: 9,
  12971. },
  12972. ];
  12973. this.ajax
  12974. .post(this.$store.state.api + "addCourseWorks", params)
  12975. .then((res) => {
  12976. this.$message({
  12977. message: "提交成功",
  12978. type: "success",
  12979. });
  12980. this.dialogVisibleSentence = false;
  12981. // this.selectAnswer = {};
  12982. this.selectSWorks();
  12983. this.selectStudent();
  12984. })
  12985. .catch((err) => {
  12986. this.$message.error("提交失败");
  12987. console.error(err);
  12988. });
  12989. },
  12990. addSenWorksTeacher() {
  12991. for (var i = 0; i < this.sentenceList.length; i++) {
  12992. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12993. if (
  12994. this.sentenceList[i].chooseSenList[j] == undefined ||
  12995. this.sentenceList[i].chooseSenList[j] == ""
  12996. ) {
  12997. this.$message.error("请将答案填写完整!");
  12998. return;
  12999. }
  13000. }
  13001. }
  13002. let params = [
  13003. {
  13004. uid: this.sStudent.userid,
  13005. cid: this.id,
  13006. stage: this.courseType,
  13007. task: this.taskCount,
  13008. tool: this.toolindex,
  13009. content: JSON.stringify(this.sentenceList),
  13010. type: 9,
  13011. },
  13012. ];
  13013. this.ajax
  13014. .post(this.$store.state.api + "addCourseWorks", params)
  13015. .then((res) => {
  13016. this.$message({
  13017. message: "提交成功",
  13018. type: "success",
  13019. });
  13020. this.dialogVisibleSentenceTeacher = false;
  13021. // this.selectAnswer = {};
  13022. this.selectSWorks();
  13023. this.selectStudent();
  13024. })
  13025. .catch((err) => {
  13026. this.$message.error("提交失败");
  13027. console.error(err);
  13028. });
  13029. },
  13030. returnTableText() {
  13031. this.$confirm("确定还原此模板吗?", "提示", {
  13032. confirmButtonText: "确定",
  13033. cancelButtonText: "取消",
  13034. type: "warning",
  13035. })
  13036. .then(() => {
  13037. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13038. })
  13039. .catch(() => {});
  13040. },
  13041. addTableWorks() {
  13042. let params = [
  13043. {
  13044. uid: this.userid,
  13045. cid: this.id,
  13046. stage: this.courseType,
  13047. task: this.taskCount,
  13048. tool: this.toolindex,
  13049. content: JSON.stringify(this.tableJson),
  13050. type: 10,
  13051. },
  13052. ];
  13053. this.ajax
  13054. .post(this.$store.state.api + "addCourseWorks", params)
  13055. .then((res) => {
  13056. this.$message({
  13057. message: "提交成功",
  13058. type: "success",
  13059. });
  13060. this.dialogVisibleTable = false;
  13061. // this.selectAnswer = {};
  13062. this.selectSWorks();
  13063. this.selectStudent();
  13064. })
  13065. .catch((err) => {
  13066. this.$message.error("提交失败");
  13067. console.error(err);
  13068. });
  13069. },
  13070. tableRowClassName({ row, rowIndex }) {
  13071. if ((rowIndex + 1) % 2 === 0) {
  13072. return "even_row";
  13073. } else {
  13074. return "";
  13075. }
  13076. },
  13077. addTableWorksTeacher() {
  13078. let params = [
  13079. {
  13080. uid: this.sStudent.userid,
  13081. cid: this.id,
  13082. stage: this.courseType,
  13083. task: this.taskCount,
  13084. tool: this.toolindex,
  13085. content: JSON.stringify(this.tableJson),
  13086. type: 10,
  13087. },
  13088. ];
  13089. this.ajax
  13090. .post(this.$store.state.api + "addCourseWorks", params)
  13091. .then((res) => {
  13092. this.$message({
  13093. message: "提交成功",
  13094. type: "success",
  13095. });
  13096. this.dialogVisibleTableTeacher = false;
  13097. // this.selectAnswer = {};
  13098. this.selectSWorks();
  13099. this.selectStudent();
  13100. })
  13101. .catch((err) => {
  13102. this.$message.error("提交失败");
  13103. console.error(err);
  13104. });
  13105. },
  13106. returnWordText() {
  13107. this.$confirm("确定还原此模板吗?", "提示", {
  13108. confirmButtonText: "确定",
  13109. cancelButtonText: "取消",
  13110. type: "warning",
  13111. })
  13112. .then(() => {
  13113. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13114. })
  13115. .catch(() => {});
  13116. },
  13117. addWordWorks() {
  13118. let params = [
  13119. {
  13120. uid: this.userid,
  13121. cid: this.id,
  13122. stage: this.courseType,
  13123. task: this.taskCount,
  13124. tool: this.toolindex,
  13125. content: JSON.stringify(this.wordJson),
  13126. type: 13,
  13127. atool: 52,
  13128. },
  13129. ];
  13130. this.ajax
  13131. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13132. .then((res) => {
  13133. this.$message({
  13134. message: "提交成功",
  13135. type: "success",
  13136. });
  13137. this.dialogVisibleWord = false;
  13138. // this.selectAnswer = {};
  13139. this.selectSWorks();
  13140. this.selectStudent();
  13141. })
  13142. .catch((err) => {
  13143. this.$message.error("提交失败");
  13144. console.error(err);
  13145. });
  13146. },
  13147. addWordWorksTeacher() {
  13148. let params = [
  13149. {
  13150. uid: this.sStudent.userid,
  13151. cid: this.id,
  13152. stage: this.courseType,
  13153. task: this.taskCount,
  13154. tool: this.toolindex,
  13155. content: JSON.stringify(this.wordJson),
  13156. type: 13,
  13157. atool: 52,
  13158. },
  13159. ];
  13160. this.ajax
  13161. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13162. .then((res) => {
  13163. this.$message({
  13164. message: "提交成功",
  13165. type: "success",
  13166. });
  13167. this.dialogVisibleWordTeacher = false;
  13168. // this.selectAnswer = {};
  13169. this.selectSWorks();
  13170. this.selectStudent();
  13171. })
  13172. .catch((err) => {
  13173. this.$message.error("提交失败");
  13174. console.error(err);
  13175. });
  13176. },
  13177. addCourseWorks(i) {
  13178. var typesql;
  13179. if (this.fileType === 0) {
  13180. typesql = 1;
  13181. } else if (this.fileType === 1) {
  13182. typesql = 4;
  13183. } else if (this.fileType === 2) {
  13184. typesql = 5;
  13185. } else if (this.fileType === 3) {
  13186. typesql = 12;
  13187. }
  13188. if (!this.studyJuri[0].cover[0].url) {
  13189. this.$message.error("请上传文件");
  13190. return;
  13191. }
  13192. let params = [
  13193. {
  13194. uid: this.userid,
  13195. cid: this.id,
  13196. stage: this.courseType,
  13197. task: i,
  13198. tool: this.toolindex,
  13199. content: this.studyJuri[0].cover[0].url,
  13200. type: typesql,
  13201. },
  13202. ];
  13203. this.ajax
  13204. .post(this.$store.state.api + "addCourseWorksR", params)
  13205. .then((res) => {
  13206. this.$message({
  13207. message: "提交成功",
  13208. type: "success",
  13209. });
  13210. this.studyJuri[0].cover = [];
  13211. this.dialogVisible = false;
  13212. this.getCourseDetail(2);
  13213. })
  13214. .catch((err) => {
  13215. this.$message.error("提交失败");
  13216. console.error(err);
  13217. });
  13218. },
  13219. addCourseWorksPl(i) {
  13220. let _files = this.plworkFile;
  13221. var c = 1;
  13222. for (var k = 0; k < _files.length; k++) {
  13223. if (!_files[k].username) {
  13224. c = 2;
  13225. }
  13226. }
  13227. if (c == 2) {
  13228. this.$message.error("请填写学生姓名");
  13229. return;
  13230. }
  13231. let params = [
  13232. {
  13233. ateacher: this.userid,
  13234. cid: this.id,
  13235. stage: this.courseType,
  13236. task: i,
  13237. tool: this.toolindex,
  13238. content: JSON.stringify(_files),
  13239. },
  13240. ];
  13241. this.ajax
  13242. .post(this.$store.state.api + "addCourseWorksPl", params)
  13243. .then((res) => {
  13244. this.$message({
  13245. message: "提交成功",
  13246. type: "success",
  13247. });
  13248. this.plworkFile = [];
  13249. this.dialogVisiblePl = false;
  13250. this.getCourseDetail(2);
  13251. })
  13252. .catch((err) => {
  13253. this.$message.error("提交失败");
  13254. console.error(err);
  13255. });
  13256. },
  13257. addCourseWorks2(i) {
  13258. var typesql;
  13259. if (this.fileType === 0) {
  13260. typesql = 0;
  13261. } else if (this.fileType === 1) {
  13262. typesql = 1;
  13263. } else if (this.fileType === 2) {
  13264. typesql = 3;
  13265. } else if (this.fileType === 3) {
  13266. typesql = 12;
  13267. }
  13268. if (!this.studyJuri[0].cover[0].url) {
  13269. this.$message.error("请上传文件");
  13270. return;
  13271. }
  13272. let params = [
  13273. {
  13274. uid: this.userid,
  13275. cid: this.id,
  13276. stage: this.courseType,
  13277. task: i,
  13278. tool: this.toolindex,
  13279. content: JSON.stringify({
  13280. type: typesql,
  13281. groupIndex: this.groupIndex,
  13282. url: this.studyJuri[0].cover[0].url,
  13283. }),
  13284. type: 11,
  13285. atool: 49,
  13286. text: "",
  13287. },
  13288. ];
  13289. this.ajax
  13290. .post(this.$store.state.api + "addCourseWorks5", params)
  13291. .then((res) => {
  13292. this.$message({
  13293. message: "提交成功",
  13294. type: "success",
  13295. });
  13296. this.studyJuri[0].cover = [];
  13297. this.dialogVisibleGroupWork = false;
  13298. this.getCourseDetail(2);
  13299. })
  13300. .catch((err) => {
  13301. this.$message.error("提交失败");
  13302. console.error(err);
  13303. });
  13304. },
  13305. addEnglishWork() {
  13306. this.myAnList = this.$refs['engJson'].myAnswerList;
  13307. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13308. this.$message.error("请输入作文标题和正文!");
  13309. return;
  13310. }
  13311. let params = [
  13312. {
  13313. uid: this.userid,
  13314. cid: this.id,
  13315. stage: this.courseType,
  13316. task: this.taskCount,
  13317. tool: this.englishToolIndex,
  13318. content: JSON.stringify(this.myAnList),
  13319. type: 16,
  13320. atool: 69,
  13321. text: "",
  13322. },
  13323. ];
  13324. this.ajax
  13325. .post(this.$store.state.api + "addCourseWorks5", params)
  13326. .then((res) => {
  13327. this.$message({
  13328. message: "提交成功",
  13329. type: "success",
  13330. });
  13331. this.myAnList = {};
  13332. this.englishList = {};
  13333. this.englishToolIndex = 0;
  13334. this.engDialogVisible = false;
  13335. this.selectSWorks();
  13336. this.selectStudent();
  13337. })
  13338. .catch((err) => {
  13339. this.$message.error("提交失败");
  13340. console.error(err);
  13341. });
  13342. },
  13343. addCourseWorksGong(i, data, tool) {
  13344. let params = [
  13345. {
  13346. uid: this.userid,
  13347. cid: this.id,
  13348. stage: this.courseType,
  13349. task: this.taskCount,
  13350. tool: i,
  13351. content: data,
  13352. type: 12,
  13353. atool: tool,
  13354. text: "",
  13355. },
  13356. ];
  13357. this.ajax
  13358. .post(this.$store.state.api + "addCourseWorks5", params)
  13359. .then((res) => {
  13360. this.$message({
  13361. message: "提交成功",
  13362. type: "success",
  13363. });
  13364. this.studyJuri[0].cover = [];
  13365. this.selectSWorks();
  13366. this.selectStudent();
  13367. })
  13368. .catch((err) => {
  13369. this.$message.error("提交失败");
  13370. console.error(err);
  13371. });
  13372. },
  13373. addCourseWorksGongTeacher(i, data, tool) {
  13374. let params = [
  13375. {
  13376. uid: this.sStudent.userid,
  13377. cid: this.id,
  13378. stage: this.courseType,
  13379. task: this.taskCount,
  13380. tool: i,
  13381. content: data,
  13382. type: 12,
  13383. atool: tool,
  13384. text: "",
  13385. },
  13386. ];
  13387. this.ajax
  13388. .post(this.$store.state.api + "addCourseWorks5", params)
  13389. .then((res) => {
  13390. this.$message({
  13391. message: "提交成功",
  13392. type: "success",
  13393. });
  13394. this.studyJuri[0].cover = [];
  13395. this.dialogVisibleWorks = false;
  13396. this.selectSWorks();
  13397. this.selectStudent();
  13398. })
  13399. .catch((err) => {
  13400. this.$message.error("提交失败");
  13401. console.error(err);
  13402. });
  13403. },
  13404. addCourseWorksGongPl(i, data, tool, type) {
  13405. let params = [
  13406. {
  13407. uid: this.sStudent.userid,
  13408. cid: this.id,
  13409. stage: this.courseType,
  13410. task: this.taskCount,
  13411. tool: i,
  13412. content: data,
  13413. type: type,
  13414. atool: tool,
  13415. text: "",
  13416. },
  13417. ];
  13418. this.ajax
  13419. .post(this.$store.state.api + "addCourseWorks5", params)
  13420. .then((res) => {
  13421. this.$message({
  13422. message: "提交成功",
  13423. type: "success",
  13424. });
  13425. this.studyJuri[0].cover = [];
  13426. this.dialogVisibleWorks = false;
  13427. this.selectSWorks();
  13428. this.selectStudent();
  13429. })
  13430. .catch((err) => {
  13431. this.$message.error("提交失败");
  13432. console.error(err);
  13433. });
  13434. },
  13435. addCourseWorksTeacher(i) {
  13436. var typesql;
  13437. if (this.sTool == 32) {
  13438. this.addCourseWorksGongTeacher(
  13439. this.toolindex,
  13440. this.studyJuri[0].cover[0].url,
  13441. this.sTool
  13442. );
  13443. return;
  13444. }
  13445. if (this.fileType === 0) {
  13446. typesql = 1;
  13447. } else if (this.fileType === 1) {
  13448. typesql = 4;
  13449. } else if (this.fileType === 2) {
  13450. typesql = 5;
  13451. } else if (this.fileType === 3) {
  13452. typesql = 12;
  13453. }
  13454. if (this.sTool == 50) {
  13455. this.addCourseWorksGongPl(
  13456. this.toolindex,
  13457. this.studyJuri[0].cover[0].url,
  13458. this.sTool,
  13459. typesql
  13460. );
  13461. return;
  13462. }
  13463. if (!this.studyJuri[0].cover[0].url) {
  13464. this.$message.error("请上传文件");
  13465. return;
  13466. }
  13467. let params = [
  13468. {
  13469. uid: this.sStudent.userid,
  13470. cid: this.id,
  13471. stage: this.courseType,
  13472. task: i,
  13473. tool: this.toolindex,
  13474. content: this.studyJuri[0].cover[0].url,
  13475. type: typesql,
  13476. ateacher: this.userid,
  13477. },
  13478. ];
  13479. this.ajax
  13480. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13481. .then((res) => {
  13482. this.$message({
  13483. message: "提交成功",
  13484. type: "success",
  13485. });
  13486. this.studyJuri[0].cover = [];
  13487. this.dialogVisibleWorks = false;
  13488. this.getCourseDetail(2);
  13489. })
  13490. .catch((err) => {
  13491. this.$message.error("提交失败");
  13492. console.error(err);
  13493. });
  13494. },
  13495. selectUploadStudent(type) {
  13496. const loading = this.$loading.service({
  13497. background: "rgba(255, 255, 255, 0.7)",
  13498. target: document.body,
  13499. });
  13500. let params = {
  13501. cid: this.uploadCid,
  13502. oid: this.oid,
  13503. cn: "",
  13504. };
  13505. this.ajax
  13506. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13507. .then((res) => {
  13508. loading.close();
  13509. var studentK = [];
  13510. if (this.isWorksS[this.toolindex].length > 0) {
  13511. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13512. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13513. }
  13514. studentK = studentK.join(",");
  13515. }
  13516. this.uploadStudentJuri = res.data[0].filter((el) => {
  13517. return studentK.indexOf(el.userid) == -1;
  13518. });
  13519. if (this.worksSName && this.worksSid) {
  13520. this.uploadStudentJuri.push({
  13521. userid: this.worksSid,
  13522. name: this.worksSName,
  13523. });
  13524. }
  13525. if (type == 1) {
  13526. this.plworkFile = [];
  13527. this.dialogVisibleSname = true;
  13528. } else if (type == 2) {
  13529. this.dialogVisiblePl = true;
  13530. }
  13531. })
  13532. .catch((err) => {
  13533. loading.close();
  13534. console.error(err);
  13535. });
  13536. },
  13537. selectPickStudent() {
  13538. const loading = this.$loading.service({
  13539. background: "rgba(255, 255, 255, 0.7)",
  13540. target: document.body,
  13541. });
  13542. let params = {
  13543. cid: this.uploadCid,
  13544. oid: this.oid,
  13545. cn: "",
  13546. };
  13547. this.ajax
  13548. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13549. .then((res) => {
  13550. loading.close();
  13551. this.uploadStudentJuri = res.data[0];
  13552. this.dialogVisiblePickPeople = true;
  13553. })
  13554. .catch((err) => {
  13555. loading.close();
  13556. console.error(err);
  13557. });
  13558. },
  13559. arrayToArray(arrayo, arrayt) {
  13560. let array1 = arrayo;
  13561. let array2 = arrayt;
  13562. let commonElements = [];
  13563. for (let i = 0; i < array1.length; i++) {
  13564. for (let j = 0; j < array2.length; j++) {
  13565. if (array1[i] === array2[j]) {
  13566. commonElements.push(array1[i]);
  13567. }
  13568. }
  13569. }
  13570. return commonElements;
  13571. },
  13572. selectWorksStudent() {
  13573. let params = {
  13574. oid: this.oid,
  13575. cid: this.courseDetail.juri,
  13576. };
  13577. this.ajax
  13578. .get(this.$store.state.api + "selectWorksStudent", params)
  13579. .then((res) => {
  13580. var a = res.data[0];
  13581. for (var i = 0; i < this.isWorksS.length; i++) {
  13582. this.noWorksS[i] = [];
  13583. var studentK = [];
  13584. if (this.isWorksS[i].length > 0) {
  13585. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13586. studentK.push(this.isWorksS[i][z].uid);
  13587. }
  13588. studentK = studentK.join(",");
  13589. for (var j = 0; j < a.length; j++) {
  13590. if (studentK.indexOf(a[j].userid) == -1) {
  13591. if (this.tcid) {
  13592. // a[j].classid.indexOf(this.tcid) != -1
  13593. if (
  13594. this.arrayToArray(
  13595. a[j].classid.split(","),
  13596. this.tcid.split(",")
  13597. ).length
  13598. ) {
  13599. this.noWorksS[i].push({
  13600. student: a[j].name,
  13601. userid: a[j].userid,
  13602. });
  13603. }
  13604. } else {
  13605. this.noWorksS[i].push({
  13606. student: a[j].name,
  13607. userid: a[j].userid,
  13608. });
  13609. }
  13610. }
  13611. }
  13612. } else {
  13613. for (var k = 0; k < a.length; k++) {
  13614. if (this.tcid) {
  13615. if (
  13616. this.arrayToArray(
  13617. a[k].classid.split(","),
  13618. this.tcid.split(",")
  13619. ).length
  13620. ) {
  13621. this.noWorksS[i].push({
  13622. student: a[k].name,
  13623. userid: a[k].userid,
  13624. });
  13625. }
  13626. } else {
  13627. this.noWorksS[i].push({
  13628. student: a[k].name,
  13629. userid: a[k].userid,
  13630. });
  13631. }
  13632. }
  13633. }
  13634. }
  13635. this.$forceUpdate();
  13636. if (
  13637. Object.keys(this.commentDetail).length &&
  13638. Object.keys(this.commentIndexJson).length &&
  13639. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13640. ) {
  13641. let a = 1;
  13642. let c = this.commentIndexJson;
  13643. if (
  13644. this.commentIndexJson.gindex ||
  13645. this.commentIndexJson.gindex === 0
  13646. ) {
  13647. for (
  13648. var i = 0;
  13649. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13650. i++
  13651. ) {
  13652. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13653. groupA: for (var k = 0; k < _el.length; k++) {
  13654. let el = _el[k];
  13655. if (el.wid == this.commentDetail.wid) {
  13656. a = 2;
  13657. this.commentOther(
  13658. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13659. this.commentIndexJson.toolIndex,
  13660. k,
  13661. this.commentIndexJson.gindex
  13662. );
  13663. break groupA;
  13664. }
  13665. }
  13666. }
  13667. if (a === 1) {
  13668. this.commentDetail = [];
  13669. this.commentIndexJson = {};
  13670. this.commentDialogVisible = false;
  13671. this.$message("此作业已被删除");
  13672. }
  13673. } else {
  13674. if (this.isGroup && this.commentIndexJson.gid) {
  13675. groupA: for (
  13676. var i = 0;
  13677. i < this.courseGroup.group.length;
  13678. i++
  13679. ) {
  13680. let _group = this.courseGroup.group[i];
  13681. if (_group.id == this.commentIndexJson.gid) {
  13682. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13683. for (var k = 0; k < _el2.length; k++) {
  13684. let el2 = _el2[k];
  13685. if (el2.wid == this.commentDetail.wid) {
  13686. a = 2;
  13687. this.commentOther(
  13688. _el2[k],
  13689. this.commentIndexJson.toolIndex,
  13690. k,
  13691. null,
  13692. this.commentIndexJson.gid
  13693. );
  13694. break groupA;
  13695. }
  13696. }
  13697. }
  13698. }
  13699. }
  13700. if (a == 1) {
  13701. for (
  13702. var i = 0;
  13703. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13704. i++
  13705. ) {
  13706. let el =
  13707. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13708. if (el.wid == this.commentDetail.wid) {
  13709. a = 2;
  13710. this.commentOther(
  13711. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13712. this.commentIndexJson.toolIndex,
  13713. i
  13714. );
  13715. break;
  13716. }
  13717. }
  13718. }
  13719. if (a === 1) {
  13720. this.commentDetail = [];
  13721. this.commentIndexJson = {};
  13722. this.commentDialogVisible = false;
  13723. this.$message("此作业已被删除");
  13724. }
  13725. }
  13726. }
  13727. })
  13728. .catch((err) => {
  13729. console.error(err);
  13730. });
  13731. },
  13732. selectStudent() {
  13733. //学生查看自己作业
  13734. let params = {
  13735. uid: this.userid,
  13736. cid: this.id,
  13737. s: this.courseType,
  13738. t: this.taskCount,
  13739. };
  13740. this.ajax
  13741. .get(this.$store.state.api + "selectStudentWorks", params)
  13742. .then((res) => {
  13743. var a =
  13744. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13745. this.taskCount
  13746. ].toolChoose;
  13747. var b = res.data[0];
  13748. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13749. var y = [
  13750. "AVI",
  13751. "NAVI",
  13752. "MPEG",
  13753. "ASF",
  13754. "MOV",
  13755. "WMV",
  13756. "3GP",
  13757. "RM",
  13758. "RMVB",
  13759. "FLV",
  13760. "F4V",
  13761. "H.264",
  13762. "H.265",
  13763. "REAL VIDEO",
  13764. "MKV",
  13765. "WebM",
  13766. "HDDVD",
  13767. "MP4",
  13768. "MPG",
  13769. "M4V",
  13770. "MGV",
  13771. "OGV",
  13772. "QTM",
  13773. "STR",
  13774. "AMC",
  13775. "DVX",
  13776. "EVO",
  13777. "DAT",
  13778. "OGG",
  13779. "OGM",
  13780. ];
  13781. for (var i = 0; i < a.length; i++) {
  13782. this.workStudent[i] = [];
  13783. for (var j = 0; j < b.length; j++) {
  13784. if (i == b[j].tool) {
  13785. if (
  13786. (b[j].type == 1 ||
  13787. b[j].type == 4 ||
  13788. b[j].type == 5 ||
  13789. b[j].type == 6 ||
  13790. b[j].type == 12 ||
  13791. b[j].type == 7) &&
  13792. a[i].tool[0] != 15 &&
  13793. a[i].tool[0] != 4 &&
  13794. a[i].tool[0] != 45 &&
  13795. a[i].tool[0] != 50 &&
  13796. a[i].tool[0] != 32 &&
  13797. a[i].tool[0] != 57 &&
  13798. a[i].tool[0] != 52 &&
  13799. a[i].tool[0] != 69
  13800. ) {
  13801. if (
  13802. c.indexOf(
  13803. b[j].content
  13804. .split(".")
  13805. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13806. ) != -1 &&
  13807. a[i].tool[0] == 16 &&
  13808. b[j].atool != 50
  13809. ) {
  13810. this.workStudent[i].push({
  13811. works: b[j].content,
  13812. sName: b[j].name,
  13813. score: b[j].score,
  13814. img: b[j].img,
  13815. type: 1,
  13816. time: b[j].time,
  13817. userid: b[j].userid,
  13818. wid: b[j].id,
  13819. });
  13820. } else if (
  13821. y.indexOf(
  13822. b[j].content
  13823. .split(".")
  13824. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13825. ) != -1 &&
  13826. a[i].tool[0] == 16 &&
  13827. b[j].atool != 50
  13828. ) {
  13829. this.workStudent[i].push({
  13830. userid: b[j].userid,
  13831. wid: b[j].id,
  13832. works: b[j].content,
  13833. sName: b[j].name,
  13834. score: b[j].score,
  13835. img: b[j].img,
  13836. type: 3,
  13837. time: b[j].time,
  13838. });
  13839. } else if (b[j].type == 6 && b[j].atool != 50) {
  13840. this.workStudent[i].push({
  13841. userid: b[j].userid,
  13842. wid: b[j].id,
  13843. works: b[j].content,
  13844. sName: b[j].name,
  13845. score: b[j].score,
  13846. img: b[j].img,
  13847. type: 4,
  13848. time: b[j].time,
  13849. });
  13850. } else if (b[j].type == 7 && b[j].atool != 50) {
  13851. this.workStudent[i].push({
  13852. userid: b[j].userid,
  13853. wid: b[j].id,
  13854. works: b[j].content,
  13855. sName: b[j].name,
  13856. score: b[j].score,
  13857. img: b[j].img,
  13858. type: 5,
  13859. time: b[j].time,
  13860. });
  13861. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13862. this.workStudent[i].push({
  13863. works: b[j].content,
  13864. sName: b[j].name,
  13865. score: b[j].score,
  13866. img: b[j].img,
  13867. type: 12,
  13868. time: b[j].time,
  13869. userid: b[j].userid,
  13870. wid: b[j].id,
  13871. });
  13872. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13873. this.workStudent[i].push({
  13874. works: b[j].content,
  13875. sName: b[j].name,
  13876. score: b[j].score,
  13877. img: b[j].img,
  13878. type: 0,
  13879. time: b[j].time,
  13880. userid: b[j].userid,
  13881. wid: b[j].id,
  13882. });
  13883. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13884. this.workStudent[i].push({
  13885. works: b[j].content,
  13886. sName: b[j].name,
  13887. score: b[j].score,
  13888. img: b[j].img,
  13889. type: 0,
  13890. time: b[j].time,
  13891. userid: b[j].userid,
  13892. wid: b[j].id,
  13893. });
  13894. }
  13895. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13896. this.workStudent[i].push({
  13897. works: b[j].content,
  13898. sName: b[j].name,
  13899. score: b[j].score,
  13900. img: b[j].img,
  13901. type: 2,
  13902. time: b[j].time,
  13903. userid: b[j].userid,
  13904. wid: b[j].id,
  13905. });
  13906. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13907. //问卷
  13908. this.workStudent[i].push({
  13909. works: b[j].content,
  13910. sName: b[j].name,
  13911. score: b[j].score,
  13912. img: b[j].img,
  13913. type: 2,
  13914. time: b[j].time,
  13915. userid: b[j].userid,
  13916. wid: b[j].id,
  13917. });
  13918. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13919. //选择题
  13920. this.workStudent[i].push({
  13921. works: b[j].content,
  13922. sName: b[j].name,
  13923. score: b[j].score,
  13924. img: b[j].img,
  13925. type: 8,
  13926. time: b[j].time,
  13927. userid: b[j].userid,
  13928. wid: b[j].id,
  13929. });
  13930. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13931. //选择题
  13932. this.workStudent[i].push({
  13933. works: b[j].content,
  13934. sName: b[j].name,
  13935. score: b[j].score,
  13936. img: b[j].img,
  13937. type: 9,
  13938. time: b[j].time,
  13939. userid: b[j].userid,
  13940. wid: b[j].id,
  13941. });
  13942. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13943. //选择题
  13944. this.workStudent[i].push({
  13945. works: b[j].content,
  13946. sName: b[j].name,
  13947. score: b[j].score,
  13948. img: b[j].img,
  13949. type: 10,
  13950. time: b[j].time,
  13951. userid: b[j].userid,
  13952. wid: b[j].id,
  13953. });
  13954. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13955. //选择题
  13956. this.workStudent[i].push({
  13957. works: b[j].content,
  13958. sName: b[j].name,
  13959. score: b[j].score,
  13960. img: b[j].img,
  13961. type: 13,
  13962. time: b[j].time,
  13963. userid: b[j].userid,
  13964. wid: b[j].id,
  13965. });
  13966. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13967. //选择题
  13968. this.workStudent[i].push({
  13969. works: b[j].content,
  13970. sName: b[j].name,
  13971. score: b[j].score,
  13972. img: b[j].img,
  13973. type: 12,
  13974. time: b[j].time,
  13975. userid: b[j].userid,
  13976. wid: b[j].id,
  13977. });
  13978. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13979. //选择题
  13980. this.workStudent[i].push({
  13981. works: b[j].content,
  13982. sName: b[j].name,
  13983. score: b[j].score,
  13984. img: b[j].img,
  13985. type: 12,
  13986. time: b[j].time,
  13987. userid: b[j].userid,
  13988. wid: b[j].id,
  13989. });
  13990. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13991. //选择题
  13992. this.workStudent[i].push({
  13993. works: b[j].content,
  13994. sName: b[j].name,
  13995. score: b[j].score,
  13996. img: b[j].img,
  13997. type: 15,
  13998. time: b[j].time,
  13999. userid: b[j].userid,
  14000. wid: b[j].id,
  14001. });
  14002. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14003. //英语写作
  14004. this.workStudent[i].push({
  14005. works: b[j].content,
  14006. sName: b[j].name,
  14007. score: b[j].score,
  14008. img: b[j].img,
  14009. type: 16,
  14010. time: b[j].time,
  14011. userid: b[j].userid,
  14012. wid: b[j].id,
  14013. aiCode: b[j].aiCode,
  14014. teacherCode: b[j].teacherCode
  14015. });
  14016. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14017. //英语口语
  14018. this.workStudent[i].push({
  14019. works: b[j].content,
  14020. sName: b[j].name,
  14021. score: b[j].score,
  14022. img: b[j].img,
  14023. type: 17,
  14024. time: b[j].time,
  14025. userid: b[j].userid,
  14026. wid: b[j].id,
  14027. });
  14028. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14029. //英语口语
  14030. this.workStudent[i].push({
  14031. works: b[j].content,
  14032. sName: b[j].name,
  14033. score: b[j].score,
  14034. img: b[j].img,
  14035. type: 14,
  14036. time: b[j].time,
  14037. userid: b[j].userid,
  14038. wid: b[j].id,
  14039. });
  14040. }
  14041. }
  14042. }
  14043. }
  14044. })
  14045. .catch((err) => {
  14046. console.error(err);
  14047. });
  14048. },
  14049. openVideo(w) {
  14050. this.videoDetail = {};
  14051. this.playerOptions1.sources[0].src = w.works;
  14052. this.videoDetail = this.playerOptions1;
  14053. this.videoVisible = true;
  14054. },
  14055. isLikes(wid, uid, t, c, isLikes,sName) {
  14056. if (isLikes == false) {
  14057. let params = [
  14058. {
  14059. wid: wid,
  14060. lid: uid,
  14061. t: t,
  14062. c: c,
  14063. },
  14064. ];
  14065. this.ajax
  14066. .post(this.$store.state.api + "insertComment", params)
  14067. .then((res) => {
  14068. this.$message({
  14069. message: "点赞成功",
  14070. type: "success",
  14071. });
  14072. this.selectSWorks();
  14073. this.selectStudent();
  14074. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14075. })
  14076. .catch((err) => {
  14077. this.$message.error("点赞失败");
  14078. console.error(err);
  14079. });
  14080. } else {
  14081. let params = {
  14082. wid: wid,
  14083. lid: uid,
  14084. type: t,
  14085. };
  14086. this.ajax
  14087. .get(this.$store.state.api + "deleteComment", params)
  14088. .then((res) => {
  14089. this.$message({
  14090. message: "取消点赞成功",
  14091. type: "success",
  14092. });
  14093. this.selectSWorks();
  14094. this.selectStudent();
  14095. })
  14096. .catch((err) => {
  14097. console.error(err);
  14098. });
  14099. }
  14100. },
  14101. deleteComment(wid) {
  14102. this.$confirm("确定删除此评论吗?", "提示", {
  14103. confirmButtonText: "确定",
  14104. cancelButtonText: "取消",
  14105. type: "warning",
  14106. })
  14107. .then(() => {
  14108. let params = {
  14109. id: wid,
  14110. };
  14111. this.ajax
  14112. .get(this.$store.state.api + "deleteComment2", params)
  14113. .then((res) => {
  14114. this.$message({
  14115. message: "删除评论成功",
  14116. type: "success",
  14117. });
  14118. this.selectSWorks();
  14119. this.selectStudent();
  14120. })
  14121. .catch((err) => {
  14122. console.error(err);
  14123. });
  14124. })
  14125. .catch(() => {});
  14126. },
  14127. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14128. this.commentIndexJson = {
  14129. toolIndex: toolIndex,
  14130. wIndex: wIndex,
  14131. gindex: gindex,
  14132. gid: gid,
  14133. };
  14134. this.commentDetail = [];
  14135. this.commentDialogVisible = true;
  14136. this.commentDetail = w;
  14137. if (w.works && w.type == 1) {
  14138. // this.pptImgUrl = "";
  14139. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14140. if (
  14141. a.indexOf(
  14142. w.works
  14143. .split(".")
  14144. [w.works.split(".").length - 1].toLocaleUpperCase()
  14145. ) != -1
  14146. ) {
  14147. let _uuurl = await this.checkLink(w.works);
  14148. this.pptImgUrl =
  14149. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14150. this.showPDF = false;
  14151. } else if (
  14152. w.works
  14153. .split(".")
  14154. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14155. ) {
  14156. this.pptImgUrl = w.works;
  14157. this.showPDF = true;
  14158. }
  14159. } else if (w.works && w.type == 3) {
  14160. this.videoDetail = {};
  14161. this.playerOptions1.sources[0].src = w.works;
  14162. this.videoDetail = this.playerOptions1;
  14163. // this.videoVisible = true;
  14164. } else if (w.works && w.type == 4) {
  14165. this.eScore = JSON.parse(w.works);
  14166. this.rateJson =
  14167. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14168. this.taskCount
  14169. ].toolChoose[toolIndex].rateJson;
  14170. } else if (w.works && w.type == 10) {
  14171. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14172. } else if (w.works && w.type == 13) {
  14173. this.wordJson =
  14174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14175. this.taskCount
  14176. ].toolChoose[toolIndex].wordJson;
  14177. }
  14178. },
  14179. async openScore(w, index) {
  14180. this.wScore = 0;
  14181. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14182. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14183. this.commentDetail = [];
  14184. if(w.type == 17){
  14185. this.dialogVisibleENScore = true;
  14186. }else{
  14187. this.dialogVisibleScore = true;
  14188. }
  14189. this.commentDetail = w;
  14190. if (w.works && w.type == 1) {
  14191. this.pptImgUrl = "";
  14192. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14193. if (
  14194. a.indexOf(
  14195. w.works
  14196. .split(".")
  14197. [w.works.split(".").length - 1].toLocaleUpperCase()
  14198. ) != -1
  14199. ) {
  14200. let _uuurl = await this.checkLink(w.works);
  14201. this.pptImgUrl =
  14202. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14203. this.showPDF = false;
  14204. } else if (
  14205. w.works
  14206. .split(".")
  14207. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14208. ) {
  14209. this.pptImgUrl = w.works;
  14210. this.showPDF = true;
  14211. }
  14212. } else if (w.works && w.type == 3) {
  14213. this.videoDetail = {};
  14214. this.playerOptions1.sources[0].src = w.works;
  14215. this.videoDetail = this.playerOptions1;
  14216. }else if(w.type == 17){
  14217. let englishVoiceJson = {}
  14218. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14219. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14220. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14221. .toolChoose[index].englishVoiceJson
  14222. : {};
  14223. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14224. }
  14225. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14226. },
  14227. addComment(wid, uid, t,detail) {
  14228. if (this.commentText == "") {
  14229. this.$message.error("请输入评论");
  14230. return;
  14231. }
  14232. let params2 = [
  14233. {
  14234. wid: wid,
  14235. lid: uid,
  14236. t: t,
  14237. },
  14238. ];
  14239. this.ajax
  14240. .post(this.$store.state.api + "getComment", params2)
  14241. .then((res) => {
  14242. if (res.data[0].length > 0) {
  14243. this.$message.error("一个作业只能评论一条");
  14244. } else {
  14245. let params = [
  14246. {
  14247. wid: wid,
  14248. lid: uid,
  14249. t: t,
  14250. c: this.commentText,
  14251. },
  14252. ];
  14253. this.ajax
  14254. .post(this.$store.state.api + "insertComment", params)
  14255. .then((res) => {
  14256. this.$message({
  14257. message: "评论成功",
  14258. type: "success",
  14259. });
  14260. this.commentText = "";
  14261. this.selectSWorks();
  14262. this.selectStudent();
  14263. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14264. })
  14265. .catch((err) => {
  14266. this.$message.error("评论失败");
  14267. console.error(err);
  14268. });
  14269. }
  14270. })
  14271. .catch((err) => {
  14272. // this.$message.error("评论失败");
  14273. console.error(err);
  14274. });
  14275. },
  14276. scoreWork(wid,sName) {
  14277. if (this.wScore == 0) {
  14278. this.$message.error("请评分");
  14279. return;
  14280. }
  14281. let params = [
  14282. {
  14283. wid: wid,
  14284. score: JSON.stringify({
  14285. wScore: this.wScore,
  14286. detail: this.scoreDetail,
  14287. }),
  14288. },
  14289. ];
  14290. this.ajax
  14291. .post(this.$store.state.api + "scoreWork", params)
  14292. .then((res) => {
  14293. this.$message({
  14294. message: "评分成功",
  14295. type: "success",
  14296. });
  14297. this.wScore = 0;
  14298. this.scoreDetail = "";
  14299. this.dialogVisibleScore = false;
  14300. this.selectSWorks();
  14301. this.selectStudent();
  14302. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14303. })
  14304. .catch((err) => {
  14305. this.$message.error("评分失败");
  14306. console.error(err);
  14307. });
  14308. },
  14309. openXz(w, i) {
  14310. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14311. .taskJson[this.taskCount].toolChoose[i].selectJson
  14312. ? JSON.parse(
  14313. JSON.stringify(
  14314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14315. this.taskCount
  14316. ].toolChoose[i].selectJson
  14317. )
  14318. )
  14319. : { url: "", select: [], answer: [] };
  14320. var a = w.works.split(",");
  14321. for (var k = 0; k < a.length; k++) {
  14322. a[k] = parseInt(a[k]);
  14323. }
  14324. this.selectAnswer = { answer: a, stu: w.sName };
  14325. this.isSelect = true;
  14326. this.dialogVisibleSelect = true;
  14327. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14328. },
  14329. openSen(w, i) {
  14330. console.log("openSen")
  14331. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14332. this.sentenceList1 = JSON.parse(w.works);
  14333. this.sentenceList1.stuName = w.sName;
  14334. this.dialogVisibleSentence1 = true;
  14335. },
  14336. openPj(w, toolindex) {
  14337. console.log("openPJ")
  14338. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14339. this.isStar = true;
  14340. this.eScore = JSON.parse(w);
  14341. this.rateJson =
  14342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14343. this.taskCount
  14344. ].toolChoose[toolindex].rateJson;
  14345. this.studentEvalDialogVisible = true;
  14346. },
  14347. openEnglishEva(id,i){
  14348. let params = {
  14349. wid: id
  14350. };
  14351. this.ajax
  14352. .get(this.$store.state.api + "selectEngWork", params)
  14353. .then((res) => {
  14354. this.evaEngJson.message = res.data[0][0];
  14355. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14356. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14357. .toolChoose[i].englishList;
  14358. this.engEvaDialogVisible = true;
  14359. })
  14360. .catch((err) => {
  14361. console.error(err);
  14362. });
  14363. },
  14364. deleteWorks(id) {
  14365. this.$confirm("确定删除此作业吗?", "提示", {
  14366. confirmButtonText: "确定",
  14367. cancelButtonText: "取消",
  14368. type: "warning",
  14369. })
  14370. .then(() => {
  14371. let params = [
  14372. {
  14373. id: id,
  14374. },
  14375. ];
  14376. this.ajax
  14377. .post(this.$store.state.api + "deleteCourseWork", params)
  14378. .then((res) => {
  14379. this.$message({
  14380. message: "删除成功",
  14381. type: "success",
  14382. });
  14383. this.selectStudent();
  14384. this.selectSWorks();
  14385. this.selectSLook();
  14386. })
  14387. .catch((err) => {
  14388. this.$message.error("网络异常");
  14389. console.error(err);
  14390. });
  14391. })
  14392. .catch(() => {});
  14393. },
  14394. selectSWorks(gindex) {
  14395. //教师查看全部作业
  14396. let params = {
  14397. cid: this.id,
  14398. s: this.courseType,
  14399. t: this.taskCount,
  14400. };
  14401. this.ajax
  14402. .get(this.$store.state.api + "selectSWorks", params)
  14403. .then((res) => {
  14404. var a =
  14405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14406. this.taskCount
  14407. ].toolChoose;
  14408. var b = res.data[0];
  14409. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14410. var y = [
  14411. "AVI",
  14412. "NAVI",
  14413. "MPEG",
  14414. "ASF",
  14415. "MOV",
  14416. "WMV",
  14417. "3GP",
  14418. "RM",
  14419. "RMVB",
  14420. "FLV",
  14421. "F4V",
  14422. "H.264",
  14423. "H.265",
  14424. "REAL VIDEO",
  14425. "MKV",
  14426. "WebM",
  14427. "HDDVD",
  14428. "MP4",
  14429. "MPG",
  14430. "M4V",
  14431. "MGV",
  14432. "OGV",
  14433. "QTM",
  14434. "STR",
  14435. "AMC",
  14436. "DVX",
  14437. "EVO",
  14438. "DAT",
  14439. "OGG",
  14440. "OGM",
  14441. ];
  14442. var d = res.data[1];
  14443. var e = res.data[2];
  14444. var f = res.data[3];
  14445. let _worksStudent = [];
  14446. var _worksStudent2 = [];
  14447. for (var i = 0; i < a.length; i++) {
  14448. _worksStudent[i] = [];
  14449. _worksStudent2[i] = [];
  14450. if (
  14451. !this.isCloseList[i] ||
  14452. this.isCloseList[i].isClose == undefined
  14453. ) {
  14454. this.isCloseList[i] = { isClose: 0 };
  14455. }
  14456. this.groupStudent[i] = [];
  14457. this.groupStudentUid[i] = [];
  14458. if (this.isGroup) {
  14459. for (
  14460. var groupI = 0;
  14461. groupI < this.courseGroup.group.length;
  14462. groupI++
  14463. ) {
  14464. this.courseGroup.group[groupI].works[i] = [];
  14465. }
  14466. }
  14467. this.isWorksS[i] = [];
  14468. this.checkJson[i] = [];
  14469. if (a[i].tool[0] == 49) {
  14470. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14471. this.groupStudent[i][gA] = [];
  14472. this.groupStudentUid[i][gA] = [];
  14473. _worksStudent[i][gA] = [];
  14474. _worksStudent2[i][gA] = [];
  14475. this.isCloseList[i][gA] = [];
  14476. // debugger
  14477. for (var g = 0; g < f.length; g++) {
  14478. if (
  14479. f[g].ttype == 2 &&
  14480. this.tcid &&
  14481. this.arrayToArray(
  14482. (f[g].classid ? f[g].classid.split(",") : []),
  14483. this.tcid.split(",")
  14484. ).length == 0
  14485. ) {
  14486. continue;
  14487. }
  14488. let _classId = this.arrayToArray(
  14489. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14490. this.classId ? this.classId.split(",") : []
  14491. )
  14492. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14493. (f[g].classid ? f[g].classid.split(",") : []),
  14494. this.tcid.split(",")
  14495. ).length !== 0 || this.arrayToArray(
  14496. (f[g].classid ? f[g].classid.split(",") : []),
  14497. _classId
  14498. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14499. this.groupStudent[i][gA].push(f[g]);
  14500. this.groupStudentUid[i][gA].push(f[g].userid);
  14501. }
  14502. }
  14503. }
  14504. this.$forceUpdate();
  14505. }
  14506. for (var j = 0; j < b.length; j++) {
  14507. if (
  14508. b[j].ttype == 2 &&
  14509. this.tcid &&
  14510. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14511. .length == 0
  14512. ) {
  14513. continue;
  14514. }
  14515. var likesCount = 0;
  14516. var commentCount = 0;
  14517. var isLikes = false;
  14518. var commentJson = [];
  14519. var likeJson = [];
  14520. var data = b[j];
  14521. if (i == b[j].tool) {
  14522. if (data.type == 2 && a[i].tool[0] == 4) {
  14523. // if(JSON.parse(data.content)[0].anwer){
  14524. var checkL =
  14525. JSON.parse(data.content)[0].anwer instanceof Array
  14526. ? JSON.parse(data.content)[0].anwer
  14527. : JSON.parse(data.content)[0].anwer.split(",");
  14528. for (var z = 0; z < checkL.length; z++) {
  14529. if (!this.checkJson[i][z]) {
  14530. this.checkJson[i].push({
  14531. checkCount: [],
  14532. checkPerson: [],
  14533. rightPerson: [],
  14534. });
  14535. }
  14536. if (!this.checkJson[i][z].checkCount.length) {
  14537. this.checkJson[i][z].checkCount = [];
  14538. let _askItemCount = JSON.parse(data.content)[0].askJson
  14539. .askJson[z].askItem;
  14540. for (var aic = 0; aic < _askItemCount; aic++) {
  14541. this.checkJson[i][z].checkCount.push(0);
  14542. }
  14543. }
  14544. if (checkL[z] instanceof Array) {
  14545. if (
  14546. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14547. checkL[z].sort().join(",")
  14548. ) {
  14549. this.checkJson[i][z].rightPerson.push(data.name);
  14550. }
  14551. for (var q = 0; q < checkL[z].length; q++) {
  14552. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14553. ? this.checkJson[i][z].checkPerson[
  14554. parseInt(checkL[z][q])
  14555. ].push(data.name)
  14556. : (this.checkJson[i][z].checkPerson[
  14557. parseInt(checkL[z][q])
  14558. ] = [data.name]);
  14559. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14560. ? this.checkJson[i][z].checkCount[
  14561. parseInt(checkL[z][q])
  14562. ]++
  14563. : (this.checkJson[i][z].checkCount[
  14564. parseInt(checkL[z][q])
  14565. ] = 1);
  14566. }
  14567. } else {
  14568. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14569. this.checkJson[i][z].rightPerson.push(data.name);
  14570. }
  14571. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14572. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14573. ? this.checkJson[i][z].checkPerson[
  14574. parseInt(checkL[z])
  14575. ].push(data.name)
  14576. : (this.checkJson[i][z].checkPerson[
  14577. parseInt(checkL[z])
  14578. ] = [data.name]);
  14579. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14580. ? this.checkJson[i][z].checkCount[
  14581. parseInt(checkL[z])
  14582. ]++
  14583. : (this.checkJson[i][z].checkCount[
  14584. parseInt(checkL[z])
  14585. ] = 1);
  14586. }
  14587. }
  14588. }
  14589. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14590. var checkL = JSON.parse(data.content)[0].anwer;
  14591. for (var z = 0; z < checkL.length; z++) {
  14592. if (!this.checkJson[i][z]) {
  14593. this.checkJson[i].push({
  14594. checkCount: [],
  14595. checkPerson: [],
  14596. rightPerson: [],
  14597. });
  14598. }
  14599. if (!this.checkJson[i][z].checkCount.length) {
  14600. this.checkJson[i][z].checkCount = [];
  14601. let _askItemCount = JSON.parse(data.content)[0].testJson
  14602. .testJson[z].testItem;
  14603. for (var aic = 0; aic < _askItemCount; aic++) {
  14604. this.checkJson[i][z].checkCount.push(0);
  14605. }
  14606. }
  14607. if (checkL[z] instanceof Array) {
  14608. if (
  14609. JSON.parse(data.content)[0]
  14610. .testJson.testJson[z].answer.sort()
  14611. .join(",") == checkL[z].sort().join(",")
  14612. ) {
  14613. this.checkJson[i][z].rightPerson.push(data.name);
  14614. }
  14615. for (var q = 0; q < checkL[z].length; q++) {
  14616. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14617. ? this.checkJson[i][z].checkPerson[
  14618. parseInt(checkL[z][q])
  14619. ].push(data.name)
  14620. : (this.checkJson[i][z].checkPerson[
  14621. parseInt(checkL[z][q])
  14622. ] = [data.name]);
  14623. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14624. ? this.checkJson[i][z].checkCount[
  14625. parseInt(checkL[z][q])
  14626. ]++
  14627. : (this.checkJson[i][z].checkCount[
  14628. parseInt(checkL[z][q])
  14629. ] = 1);
  14630. }
  14631. } else {
  14632. if (
  14633. JSON.parse(data.content)[0].testJson.testJson[z]
  14634. .answer == checkL[z]
  14635. ) {
  14636. this.checkJson[i][z].rightPerson.push(data.name);
  14637. }
  14638. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14639. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14640. ? this.checkJson[i][z].checkPerson[
  14641. parseInt(checkL[z])
  14642. ].push(data.name)
  14643. : (this.checkJson[i][z].checkPerson[
  14644. parseInt(checkL[z])
  14645. ] = [data.name]);
  14646. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14647. ? this.checkJson[i][z].checkCount[
  14648. parseInt(checkL[z])
  14649. ]++
  14650. : (this.checkJson[i][z].checkCount[
  14651. parseInt(checkL[z])
  14652. ] = 1);
  14653. }
  14654. }
  14655. }
  14656. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14657. var checkL = JSON.parse(data.content);
  14658. for (var z = 0; z < checkL.length; z++) {
  14659. if (!this.checkJson[i][z]) {
  14660. this.checkJson[i].push({
  14661. checkCount: [],
  14662. checkPerson: [],
  14663. rightPerson: [],
  14664. });
  14665. }
  14666. this.checkJson[i][z].checkPerson.push(data.name);
  14667. if (
  14668. checkL[z].chooseSenList.toString() ==
  14669. checkL[z].rightAnswer.toString()
  14670. ) {
  14671. this.checkJson[i][z].rightPerson.push(data.name);
  14672. }
  14673. }
  14674. }
  14675. for (var k = 0; k < d.length; k++) {
  14676. //点赞
  14677. if (d[k].workId == b[j].id) {
  14678. likesCount++;
  14679. likeJson.push(d[k])
  14680. if (d[k].likesId == this.userid) {
  14681. isLikes = true;
  14682. }
  14683. }
  14684. }
  14685. for (var l = 0; l < e.length; l++) {
  14686. //评论
  14687. if (e[l].workId == b[j].id) {
  14688. if (e[l].comment != "") {
  14689. commentCount++;
  14690. commentJson.push({
  14691. commentText: e[l].comment,
  14692. commentTime: e[l].commentTime,
  14693. commentPeople: e[l].commentPeople,
  14694. userid: e[l].userid,
  14695. wid: e[l].id,
  14696. });
  14697. }
  14698. }
  14699. }
  14700. if (
  14701. (b[j].type == 1 ||
  14702. b[j].type == 4 ||
  14703. b[j].type == 5 ||
  14704. b[j].type == 6 ||
  14705. b[j].type == 12 ||
  14706. b[j].type == 7) &&
  14707. a[i].tool[0] != 15 &&
  14708. a[i].tool[0] != 4 &&
  14709. a[i].tool[0] != 45 &&
  14710. a[i].tool[0] != 50 &&
  14711. a[i].tool[0] != 32 &&
  14712. a[i].tool[0] != 57 &&
  14713. a[i].tool[0] != 52
  14714. ) {
  14715. if (
  14716. c.indexOf(
  14717. b[j].content
  14718. .split(".")
  14719. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14720. ) != -1 &&
  14721. a[i].tool[0] == 16 &&
  14722. b[j].atool != 50
  14723. ) {
  14724. let _works = {
  14725. userid: b[j].userid,
  14726. ateacher: b[j].ateacher,
  14727. wid: b[j].id,
  14728. works: b[j].content,
  14729. sName: b[j].name,
  14730. type: 1,
  14731. ttype:b[j].ttype,
  14732. time: b[j].time,
  14733. score: b[j].score,
  14734. img: b[j].img,
  14735. likesCount: likesCount,
  14736. commentCount: commentCount,
  14737. isLikes: isLikes,
  14738. commentJson: commentJson,
  14739. likeJson:likeJson
  14740. };
  14741. if (this.isGroup) {
  14742. let isGw = 1;
  14743. for (
  14744. var groupI = 0;
  14745. groupI < this.courseGroup.group.length;
  14746. groupI++
  14747. ) {
  14748. let gid = this.courseGroup.group[groupI].id;
  14749. if (
  14750. this.courseGroupStudentUid[gid].indexOf(
  14751. b[j].userid
  14752. ) != -1
  14753. ) {
  14754. isGw = 2;
  14755. this.courseGroup.group[groupI].works[i].push(_works);
  14756. break;
  14757. }
  14758. }
  14759. if (isGw == 1) {
  14760. _worksStudent[i].push(_works);
  14761. }
  14762. } else {
  14763. _worksStudent[i].push(_works);
  14764. }
  14765. _worksStudent2[i].push(_works);
  14766. this.isWorksS[i].push({
  14767. uid: b[j].userid,
  14768. sName: b[j].name,
  14769. });
  14770. } else if (
  14771. y.indexOf(
  14772. b[j].content
  14773. .split(".")
  14774. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14775. ) != -1 &&
  14776. a[i].tool[0] == 16 &&
  14777. b[j].atool != 50
  14778. ) {
  14779. let _works = {
  14780. userid: b[j].userid,
  14781. ateacher: b[j].ateacher,
  14782. wid: b[j].id,
  14783. works: b[j].content,
  14784. sName: b[j].name,
  14785. type: 3,
  14786. ttype:b[j].ttype,
  14787. time: b[j].time,
  14788. score: b[j].score,
  14789. img: b[j].img,
  14790. likesCount: likesCount,
  14791. commentCount: commentCount,
  14792. isLikes: isLikes,
  14793. commentJson: commentJson,
  14794. likeJson:likeJson
  14795. };
  14796. if (this.isGroup) {
  14797. let isGw = 1;
  14798. for (
  14799. var groupI = 0;
  14800. groupI < this.courseGroup.group.length;
  14801. groupI++
  14802. ) {
  14803. let gid = this.courseGroup.group[groupI].id;
  14804. if (
  14805. this.courseGroupStudentUid[gid].indexOf(
  14806. b[j].userid
  14807. ) != -1
  14808. ) {
  14809. isGw = 2;
  14810. this.courseGroup.group[groupI].works[i].push(_works);
  14811. break;
  14812. }
  14813. }
  14814. if (isGw == 1) {
  14815. _worksStudent[i].push(_works);
  14816. }
  14817. } else {
  14818. _worksStudent[i].push(_works);
  14819. }
  14820. _worksStudent2[i].push(_works);
  14821. this.isWorksS[i].push({
  14822. uid: b[j].userid,
  14823. sName: b[j].name,
  14824. });
  14825. } else if (b[j].type == 6 && b[j].atool != 50) {
  14826. let _works = {
  14827. userid: b[j].userid,
  14828. ateacher: b[j].ateacher,
  14829. wid: b[j].id,
  14830. works: b[j].content,
  14831. sName: b[j].name,
  14832. type: 4,
  14833. ttype:b[j].ttype,
  14834. time: b[j].time,
  14835. score: b[j].score,
  14836. img: b[j].img,
  14837. likesCount: likesCount,
  14838. commentCount: commentCount,
  14839. isLikes: isLikes,
  14840. commentJson: commentJson,
  14841. likeJson:likeJson
  14842. };
  14843. _worksStudent[i].push(_works);
  14844. _worksStudent2[i].push(_works);
  14845. this.isWorksS[i].push({
  14846. uid: b[j].userid,
  14847. sName: b[j].name,
  14848. });
  14849. } else if (b[j].type == 7 && b[j].atool != 50) {
  14850. let _work = {
  14851. userid: b[j].userid,
  14852. ateacher: b[j].ateacher,
  14853. wid: b[j].id,
  14854. works: b[j].content,
  14855. sName: b[j].name,
  14856. type: 5,
  14857. ttype:b[j].ttype,
  14858. time: b[j].time,
  14859. score: b[j].score,
  14860. img: b[j].img,
  14861. likesCount: likesCount,
  14862. commentCount: commentCount,
  14863. isLikes: isLikes,
  14864. commentJson: commentJson,
  14865. likeJson:likeJson
  14866. };
  14867. _worksStudent[i].push(_work);
  14868. _worksStudent2[i].push(_work);
  14869. this.isWorksS[i].push({
  14870. uid: b[j].userid,
  14871. sName: b[j].name,
  14872. });
  14873. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14874. let _works = {
  14875. userid: b[j].userid,
  14876. ateacher: b[j].ateacher,
  14877. wid: b[j].id,
  14878. works: b[j].content,
  14879. sName: b[j].name,
  14880. type: 12,
  14881. ttype:b[j].ttype,
  14882. time: b[j].time,
  14883. score: b[j].score,
  14884. img: b[j].img,
  14885. likesCount: likesCount,
  14886. commentCount: commentCount,
  14887. isLikes: isLikes,
  14888. commentJson: commentJson,
  14889. likeJson:likeJson
  14890. };
  14891. if (this.isGroup) {
  14892. let isGw = 1;
  14893. for (
  14894. var groupI = 0;
  14895. groupI < this.courseGroup.group.length;
  14896. groupI++
  14897. ) {
  14898. let gid = this.courseGroup.group[groupI].id;
  14899. if (
  14900. this.courseGroupStudentUid[gid].indexOf(
  14901. b[j].userid
  14902. ) != -1
  14903. ) {
  14904. isGw = 2;
  14905. this.courseGroup.group[groupI].works[i].push(_works);
  14906. break;
  14907. }
  14908. }
  14909. if (isGw == 1) {
  14910. _worksStudent[i].push(_works);
  14911. }
  14912. } else {
  14913. _worksStudent[i].push(_works);
  14914. }
  14915. _worksStudent2[i].push(_works);
  14916. this.isWorksS[i].push({
  14917. uid: b[j].userid,
  14918. sName: b[j].name,
  14919. });
  14920. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14921. let _works = {
  14922. userid: b[j].userid,
  14923. ateacher: b[j].ateacher,
  14924. wid: b[j].id,
  14925. works: b[j].content,
  14926. sName: b[j].name,
  14927. type: 0,
  14928. ttype:b[j].ttype,
  14929. time: b[j].time,
  14930. score: b[j].score,
  14931. img: b[j].img,
  14932. likesCount: likesCount,
  14933. commentCount: commentCount,
  14934. isLikes: isLikes,
  14935. commentJson: commentJson,
  14936. likeJson:likeJson
  14937. };
  14938. if (this.isGroup) {
  14939. let isGw = 1;
  14940. for (
  14941. var groupI = 0;
  14942. groupI < this.courseGroup.group.length;
  14943. groupI++
  14944. ) {
  14945. let gid = this.courseGroup.group[groupI].id;
  14946. if (
  14947. this.courseGroupStudentUid[gid].indexOf(
  14948. b[j].userid
  14949. ) != -1
  14950. ) {
  14951. isGw = 2;
  14952. this.courseGroup.group[groupI].works[i].push(_works);
  14953. break;
  14954. }
  14955. }
  14956. if (isGw == 1) {
  14957. _worksStudent[i].push(_works);
  14958. }
  14959. } else {
  14960. _worksStudent[i].push(_works);
  14961. }
  14962. _worksStudent2[i].push(_works);
  14963. this.isWorksS[i].push({
  14964. uid: b[j].userid,
  14965. sName: b[j].name,
  14966. });
  14967. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14968. let _works = {
  14969. userid: b[j].userid,
  14970. ateacher: b[j].ateacher,
  14971. wid: b[j].id,
  14972. works: b[j].content,
  14973. sName: b[j].name,
  14974. type: 0,
  14975. ttype:b[j].ttype,
  14976. time: b[j].time,
  14977. score: b[j].score,
  14978. img: b[j].img,
  14979. likesCount: likesCount,
  14980. commentCount: commentCount,
  14981. isLikes: isLikes,
  14982. commentJson: commentJson,
  14983. likeJson:likeJson
  14984. };
  14985. if (this.isGroup) {
  14986. let isGw = 1;
  14987. for (
  14988. var groupI = 0;
  14989. groupI < this.courseGroup.group.length;
  14990. groupI++
  14991. ) {
  14992. let gid = this.courseGroup.group[groupI].id;
  14993. if (
  14994. this.courseGroupStudentUid[gid].indexOf(
  14995. b[j].userid
  14996. ) != -1
  14997. ) {
  14998. isGw = 2;
  14999. this.courseGroup.group[groupI].works[i].push(_works);
  15000. break;
  15001. }
  15002. }
  15003. if (isGw == 1) {
  15004. _worksStudent[i].push(_works);
  15005. }
  15006. } else {
  15007. _worksStudent[i].push(_works);
  15008. }
  15009. _worksStudent2[i].push(_works);
  15010. this.isWorksS[i].push({
  15011. uid: b[j].userid,
  15012. sName: b[j].name,
  15013. });
  15014. }
  15015. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15016. let _works = {
  15017. userid: b[j].userid,
  15018. ateacher: b[j].ateacher,
  15019. wid: b[j].id,
  15020. works: b[j].content,
  15021. sName: b[j].name,
  15022. type: 2,
  15023. ttype:b[j].ttype,
  15024. time: b[j].time,
  15025. score: b[j].score,
  15026. img: b[j].img,
  15027. likesCount: likesCount,
  15028. commentCount: commentCount,
  15029. isLikes: isLikes,
  15030. commentJson: commentJson,
  15031. likeJson:likeJson
  15032. };
  15033. if (this.isGroup) {
  15034. let isGw = 1;
  15035. for (
  15036. var groupI = 0;
  15037. groupI < this.courseGroup.group.length;
  15038. groupI++
  15039. ) {
  15040. let gid = this.courseGroup.group[groupI].id;
  15041. if (
  15042. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15043. -1
  15044. ) {
  15045. isGw = 2;
  15046. this.courseGroup.group[groupI].works[i].push(_works);
  15047. break;
  15048. }
  15049. }
  15050. if (isGw == 1) {
  15051. _worksStudent[i].push(_works);
  15052. }
  15053. } else {
  15054. _worksStudent[i].push(_works);
  15055. }
  15056. _worksStudent2[i].push(_works);
  15057. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15058. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15059. //问卷
  15060. let _work = {
  15061. userid: b[j].userid,
  15062. ateacher: b[j].ateacher,
  15063. wid: b[j].id,
  15064. works: b[j].content,
  15065. sName: b[j].name,
  15066. type: 2,
  15067. ttype:b[j].ttype,
  15068. time: b[j].time,
  15069. score: b[j].score,
  15070. img: b[j].img,
  15071. likesCount: likesCount,
  15072. commentCount: commentCount,
  15073. isLikes: isLikes,
  15074. commentJson: commentJson,
  15075. likeJson:likeJson
  15076. };
  15077. _worksStudent[i].push(_work);
  15078. _worksStudent2[i].push(_work);
  15079. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15080. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15081. //选择题
  15082. let _work = {
  15083. userid: b[j].userid,
  15084. ateacher: b[j].ateacher,
  15085. wid: b[j].id,
  15086. works: b[j].content,
  15087. sName: b[j].name,
  15088. type: 8,
  15089. ttype:b[j].ttype,
  15090. time: b[j].time,
  15091. score: b[j].score,
  15092. img: b[j].img,
  15093. likesCount: likesCount,
  15094. commentCount: commentCount,
  15095. isLikes: isLikes,
  15096. commentJson: commentJson,
  15097. likeJson:likeJson
  15098. };
  15099. _worksStudent[i].push(_work);
  15100. _worksStudent2[i].push(_work);
  15101. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15102. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15103. //选择题
  15104. let _work = {
  15105. userid: b[j].userid,
  15106. ateacher: b[j].ateacher,
  15107. wid: b[j].id,
  15108. works: b[j].content,
  15109. sName: b[j].name,
  15110. type: 9,
  15111. ttype:b[j].ttype,
  15112. time: b[j].time,
  15113. score: b[j].score,
  15114. img: b[j].img,
  15115. likesCount: likesCount,
  15116. commentCount: commentCount,
  15117. isLikes: isLikes,
  15118. commentJson: commentJson,
  15119. likeJson:likeJson
  15120. };
  15121. _worksStudent[i].push(_work);
  15122. _worksStudent2[i].push(_work);
  15123. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15124. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15125. //选择题
  15126. let _work = {
  15127. userid: b[j].userid,
  15128. ateacher: b[j].ateacher,
  15129. wid: b[j].id,
  15130. works: b[j].content,
  15131. sName: b[j].name,
  15132. type: 10,
  15133. ttype:b[j].ttype,
  15134. time: b[j].time,
  15135. score: b[j].score,
  15136. img: b[j].img,
  15137. likesCount: likesCount,
  15138. commentCount: commentCount,
  15139. isLikes: isLikes,
  15140. commentJson: commentJson,
  15141. likeJson:likeJson
  15142. };
  15143. _worksStudent[i].push(_work);
  15144. _worksStudent2[i].push(_work);
  15145. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15146. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15147. //选择题
  15148. let _work = {
  15149. userid: b[j].userid,
  15150. ateacher: b[j].ateacher,
  15151. wid: b[j].id,
  15152. works: b[j].content,
  15153. sName: b[j].name,
  15154. type: 13,
  15155. ttype:b[j].ttype,
  15156. time: b[j].time,
  15157. score: b[j].score,
  15158. img: b[j].img,
  15159. likesCount: likesCount,
  15160. commentCount: commentCount,
  15161. isLikes: isLikes,
  15162. commentJson: commentJson,
  15163. likeJson:likeJson
  15164. };
  15165. _worksStudent[i].push(_work);
  15166. _worksStudent2[i].push(_work);
  15167. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15168. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15169. //选择题
  15170. let _work = {
  15171. userid: b[j].userid,
  15172. ateacher: b[j].ateacher,
  15173. wid: b[j].id,
  15174. works: b[j].content,
  15175. sName: b[j].name,
  15176. type: 16,
  15177. ttype:b[j].ttype,
  15178. time: b[j].time,
  15179. score: b[j].score,
  15180. img: b[j].img,
  15181. likesCount: likesCount,
  15182. commentCount: commentCount,
  15183. isLikes: isLikes,
  15184. commentJson: commentJson,
  15185. aiCode: b[j].aiCode,
  15186. teacherCode: b[j].teacherCode,
  15187. likeJson:likeJson
  15188. };
  15189. _worksStudent[i].push(_work);
  15190. _worksStudent2[i].push(_work);
  15191. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15192. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15193. //英语口语
  15194. let _work = {
  15195. userid: b[j].userid,
  15196. ateacher: b[j].ateacher,
  15197. wid: b[j].id,
  15198. works: b[j].content,
  15199. sName: b[j].name,
  15200. type: 17,
  15201. ttype:b[j].ttype,
  15202. time: b[j].time,
  15203. score: b[j].score,
  15204. img: b[j].img,
  15205. likesCount: likesCount,
  15206. commentCount: commentCount,
  15207. isLikes: isLikes,
  15208. commentJson: commentJson,
  15209. likeJson:likeJson
  15210. };
  15211. _worksStudent[i].push(_work);
  15212. _worksStudent2[i].push(_work);
  15213. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15214. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15215. //交互视频
  15216. let _work = {
  15217. userid: b[j].userid,
  15218. ateacher: b[j].ateacher,
  15219. wid: b[j].id,
  15220. works: b[j].content,
  15221. sName: b[j].name,
  15222. type: 14,
  15223. ttype:b[j].ttype,
  15224. time: b[j].time,
  15225. score: b[j].score,
  15226. img: b[j].img,
  15227. likesCount: likesCount,
  15228. commentCount: commentCount,
  15229. isLikes: isLikes,
  15230. commentJson: commentJson,
  15231. likeJson:likeJson
  15232. };
  15233. _worksStudent[i].push(_work);
  15234. _worksStudent2[i].push(_work);
  15235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15236. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15237. let _gindex = JSON.parse(b[j].content);
  15238. if (
  15239. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15240. b[j].userid
  15241. ) != -1
  15242. ) {
  15243. let _work = {
  15244. userid: b[j].userid,
  15245. ateacher: b[j].ateacher,
  15246. wid: b[j].id,
  15247. works: _gindex.url,
  15248. sName: b[j].name,
  15249. type: _gindex.type,
  15250. ttype:b[j].ttype,
  15251. time: b[j].time,
  15252. score: b[j].score,
  15253. img: b[j].img,
  15254. likesCount: likesCount,
  15255. commentCount: commentCount,
  15256. isLikes: isLikes,
  15257. commentJson: commentJson,
  15258. likeJson:likeJson
  15259. };
  15260. _worksStudent[i][_gindex.groupIndex].push(_work);
  15261. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15262. }
  15263. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15264. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15265. let _work = {
  15266. userid: b[j].userid,
  15267. ateacher: b[j].ateacher,
  15268. wid: b[j].id,
  15269. works: b[j].content,
  15270. sName: b[j].name ? b[j].name : b[j].userid,
  15271. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15272. ttype:b[j].ttype,
  15273. time: b[j].time,
  15274. score: b[j].score,
  15275. img: b[j].img,
  15276. likesCount: likesCount,
  15277. commentCount: commentCount,
  15278. isLikes: isLikes,
  15279. commentJson: commentJson,
  15280. likeJson:likeJson
  15281. };
  15282. _worksStudent[i].push(_work);
  15283. _worksStudent2[i].push(_work);
  15284. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15285. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15286. let _work = {
  15287. userid: b[j].userid,
  15288. ateacher: b[j].ateacher,
  15289. wid: b[j].id,
  15290. works: b[j].content,
  15291. sName: b[j].name ? b[j].name : b[j].userid,
  15292. type: 12,
  15293. ttype:b[j].ttype,
  15294. time: b[j].time,
  15295. score: b[j].score,
  15296. img: b[j].img,
  15297. likesCount: likesCount,
  15298. commentCount: commentCount,
  15299. isLikes: isLikes,
  15300. commentJson: commentJson,
  15301. likeJson:likeJson
  15302. };
  15303. _worksStudent[i].push(_work);
  15304. _worksStudent2[i].push(_work);
  15305. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15306. } else if (
  15307. a[i].tool[0] == 57 &&
  15308. b[j].atool == 57 &&
  15309. b[j].type == 12
  15310. ) {
  15311. let _work = {
  15312. userid: b[j].userid,
  15313. ateacher: b[j].ateacher,
  15314. wid: b[j].id,
  15315. works: b[j].content,
  15316. sName: b[j].name ? b[j].name : b[j].userid,
  15317. type: 12,
  15318. ttype:b[j].ttype,
  15319. time: b[j].time,
  15320. score: b[j].score,
  15321. img: b[j].img,
  15322. likesCount: likesCount,
  15323. commentCount: commentCount,
  15324. isLikes: isLikes,
  15325. commentJson: commentJson,
  15326. likeJson:likeJson
  15327. };
  15328. _worksStudent[i].push(_work);
  15329. _worksStudent2[i].push(_work);
  15330. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15331. } else if (
  15332. a[i].tool[0] == 57 &&
  15333. b[j].atool == 57 &&
  15334. b[j].type == 15
  15335. ) {
  15336. let _work = {
  15337. userid: b[j].userid,
  15338. ateacher: b[j].ateacher,
  15339. wid: b[j].id,
  15340. works: b[j].content,
  15341. sName: b[j].name ? b[j].name : b[j].userid,
  15342. type: 15,
  15343. ttype:b[j].ttype,
  15344. time: b[j].time,
  15345. score: b[j].score,
  15346. img: b[j].img,
  15347. likesCount: likesCount,
  15348. commentCount: commentCount,
  15349. isLikes: isLikes,
  15350. commentJson: commentJson,
  15351. likeJson:likeJson
  15352. };
  15353. _worksStudent[i].push(_work);
  15354. _worksStudent2[i].push(_work);
  15355. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15356. }
  15357. }
  15358. }
  15359. if (_worksStudent[i] && _worksStudent[i].length) {
  15360. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15361. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15362. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15363. var scoreA = parseFloat(jscoreA);
  15364. var scoreB = parseFloat(jscoreB);
  15365. if (scoreA == scoreB) {
  15366. return b.likesCount - a.likesCount;
  15367. }
  15368. return scoreB - scoreA;
  15369. });
  15370. if (this.isGroup) {
  15371. for (
  15372. var groupI = 0;
  15373. groupI < this.courseGroup.group.length;
  15374. groupI++
  15375. ) {
  15376. this.courseGroup.group[groupI].works[i] =
  15377. this.courseGroup.group[groupI].works[i].sort(function (
  15378. a,
  15379. b
  15380. ) {
  15381. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15382. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15383. var scoreA = parseFloat(jscoreA);
  15384. var scoreB = parseFloat(jscoreB);
  15385. if (scoreA == scoreB) {
  15386. return b.likesCount - a.likesCount;
  15387. }
  15388. return scoreB - scoreA;
  15389. });
  15390. }
  15391. }
  15392. }
  15393. }
  15394. this.timeWorkList = _worksStudent2;
  15395. for (var i = 0; i < a.length; i++) {
  15396. for (var j = 0; j < b.length; j++) {
  15397. var data = b[j];
  15398. if (i == b[j].tool) {
  15399. if (data.type == 2 || data.type == 8) {
  15400. for (var z = 0; z < this.checkJson[i].length; z++) {
  15401. this.checkJson[i][z].checkPerent = [];
  15402. this.checkJson[i][z].right = Math.round(
  15403. (this.checkJson[i][z].rightPerson.length /
  15404. parseInt(_worksStudent[i].length)) *
  15405. 100
  15406. );
  15407. let aaaa = this.checkJson[i][z];
  15408. for (
  15409. var k = 0;
  15410. k < this.checkJson[i][z].checkCount.length;
  15411. k++
  15412. ) {
  15413. this.checkJson[i][z].checkPerent.push(
  15414. Math.round(
  15415. (this.checkJson[i][z].checkCount[k] /
  15416. parseInt(_worksStudent[i].length)) *
  15417. 100
  15418. )
  15419. );
  15420. }
  15421. }
  15422. } else if (data.type == 9) {
  15423. for (var z = 0; z < this.checkJson[i].length; z++) {
  15424. this.checkJson[i][z].checkPerent = [];
  15425. this.checkJson[i][z].right = Math.round(
  15426. (this.checkJson[i][z].rightPerson.length /
  15427. this.checkJson[i][z].checkPerson.length) *
  15428. 100
  15429. );
  15430. }
  15431. }
  15432. }
  15433. }
  15434. }
  15435. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15436. this.joinGroup(gindex);
  15437. }
  15438. this.worksStudent = _worksStudent;
  15439. this.selectWorksStudent();
  15440. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15441. this.$nextTick(()=>{
  15442. setTimeout(()=>{
  15443. setTimeout(()=>{
  15444. this.panToolHeight('tool-'+ci);
  15445. }, 500)
  15446. }, 0)
  15447. })
  15448. }
  15449. })
  15450. .catch((err) => {
  15451. console.error(err);
  15452. });
  15453. },
  15454. pngToWhiteBg(file) {
  15455. const _file = file;
  15456. let read = new FileReader();
  15457. read.readAsDataURL(file); // 文件转base64
  15458. return new Promise((resolve, reject) => {
  15459. read.onload = (e) => {
  15460. let img = new Image();
  15461. img.src = e.target.result;
  15462. img.onload = async () => {
  15463. // 生成canvas
  15464. let canvas = document.createElement("canvas");
  15465. let context = canvas.getContext("2d");
  15466. // 绘制图片到canvas上
  15467. canvas.width = img.width;
  15468. canvas.height = img.height;
  15469. // 在canvas绘制前填充白色背景
  15470. context.fillStyle = "#fff";
  15471. context.fillRect(0, 0, canvas.width, canvas.height);
  15472. context.drawImage(img, 0, 0);
  15473. let base64 = canvas.toDataURL(file["type"], 1);
  15474. let newFile = this.dataUrlToFile(base64, _file);
  15475. resolve(newFile);
  15476. };
  15477. };
  15478. });
  15479. },
  15480. dataUrlToFile(dataurl, file) {
  15481. let arr = dataurl.split(","),
  15482. mime = arr[0].match(/:(.*?);/)[1],
  15483. bstr = atob(arr[1]),
  15484. n = bstr.length,
  15485. u8arr = new Uint8Array(n);
  15486. while (n--) {
  15487. u8arr[n] = bstr.charCodeAt(n);
  15488. }
  15489. // return new Blob([u8arr], { type: mime });
  15490. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15491. type: mime,
  15492. });
  15493. },
  15494. async beforeUpload1(event, type, i) {
  15495. // this.$message.success('进入上传')
  15496. var file = "";
  15497. if (type == 5) {
  15498. file = event;
  15499. } else {
  15500. file = event.target.files[0];
  15501. }
  15502. var credentials = {
  15503. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15504. secretAccessKey: "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",
  15505. }; //秘钥形式的登录上传
  15506. window.AWS.config.update(credentials);
  15507. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15508. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15509. var _this = this;
  15510. _this.progress = 0;
  15511. _this.proVisible = true;
  15512. _this.isFinishSize = 0;
  15513. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15514. var b = [
  15515. "DOC",
  15516. "DOCX",
  15517. "DOCM",
  15518. "DOTM",
  15519. "DOTX",
  15520. "PPTX",
  15521. "PPSX",
  15522. "PPT",
  15523. "PPS",
  15524. "PPTM",
  15525. "POTM",
  15526. "PPAM",
  15527. "POTX",
  15528. "PPSM",
  15529. ];
  15530. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15531. var photoA = [
  15532. "BMP",
  15533. "GIF",
  15534. "PNG",
  15535. "JPEG",
  15536. "JPEG",
  15537. "JPG",
  15538. "TIF",
  15539. "PCX",
  15540. "TGA",
  15541. "EXIF",
  15542. "FPX",
  15543. "SVG",
  15544. "APNG",
  15545. ];
  15546. // if (
  15547. // b.indexOf(
  15548. // file.name
  15549. // .split(".")
  15550. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15551. // ) != -1
  15552. // ) {
  15553. // if (file.size / 1024 / 1024 > 10) {
  15554. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15555. // return;
  15556. // }
  15557. // } else if (
  15558. // excelA.indexOf(
  15559. // file.name
  15560. // .split(".")
  15561. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15562. // ) != "-1"
  15563. // ) {
  15564. // if (file.size / 1024 / 1024 > 5) {
  15565. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15566. // return;
  15567. // }
  15568. // }
  15569. if (
  15570. photoA.indexOf(
  15571. file.name
  15572. .split(".")
  15573. [file.name.split(".").length - 1].toLocaleUpperCase()
  15574. ) != -1 &&
  15575. type != 4
  15576. ) {
  15577. // const blob = await imageConversion.compress(file, 0.8)
  15578. file = await this.pngToWhiteBg(file);
  15579. const blob = await imageConversion.compressAccurately(file, 256);
  15580. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15581. file = new File([blob], file.name, { type: file.type });
  15582. }
  15583. if (file) {
  15584. var params = {
  15585. Key:
  15586. file.name.split(".")[0] +
  15587. new Date().getTime() +
  15588. "." +
  15589. file.name.split(".")[file.name.split(".").length - 1],
  15590. ContentType: file.type,
  15591. Body: file,
  15592. "Access-Control-Allow-Credentials": "*",
  15593. ACL: "public-read",
  15594. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15595. var options = {
  15596. // partSize: 2048 * 1024 * 1024,
  15597. partSize: 1024 * 1024 * 1024,
  15598. queueSize: 2,
  15599. leavePartsOnError: true,
  15600. };
  15601. bucket
  15602. .upload(params, options)
  15603. .on("httpUploadProgress", function (evt) {
  15604. //这里可以写进度条
  15605. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15606. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15607. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15608. })
  15609. .send(function (err, data) {
  15610. _this.progress = 100;
  15611. _this.isFinishSize = _this.isAllSize;
  15612. setTimeout(() => {
  15613. _this.proVisible = false;
  15614. }, 1000);
  15615. if (err) {
  15616. var a = _this.$refs.upload1.uploadFiles;
  15617. a.splice(a.length - 1, a.length);
  15618. _this.$message.error("上传失败");
  15619. } else {
  15620. // _this.$message.success('上传成功')
  15621. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15622. var c = [
  15623. "AVI",
  15624. "NAVI",
  15625. "MPEG",
  15626. "ASF",
  15627. "MOV",
  15628. "WMV",
  15629. "3GP",
  15630. "RM",
  15631. "RMVB",
  15632. "FLV",
  15633. "F4V",
  15634. "H.264",
  15635. "H.265",
  15636. "REAL VIDEO",
  15637. "MKV",
  15638. "WebM",
  15639. "HDDVD",
  15640. "MP4",
  15641. "MPG",
  15642. "M4V",
  15643. "MGV",
  15644. "OGV",
  15645. "QTM",
  15646. "STR",
  15647. "AMC",
  15648. "DVX",
  15649. "EVO",
  15650. "DAT",
  15651. "OGG",
  15652. "OGM",
  15653. ];
  15654. if (type == 1) {
  15655. _this.studyJuri[0].cover.push({
  15656. name: file.name,
  15657. url: data.Location,
  15658. uid: file.uid,
  15659. });
  15660. if (
  15661. c.indexOf(
  15662. _this.studyJuri[0].cover[0].url
  15663. .split(".")
  15664. [
  15665. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15666. ].toLocaleUpperCase()
  15667. ) != -1
  15668. ) {
  15669. _this.fileType = 2;
  15670. } else if (
  15671. b.indexOf(
  15672. _this.studyJuri[0].cover[0].url
  15673. .split(".")
  15674. [
  15675. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15676. ].toLocaleUpperCase()
  15677. ) != -1
  15678. ) {
  15679. _this.fileType = 1;
  15680. } else if (
  15681. photoA.indexOf(
  15682. _this.studyJuri[0].cover[0].url
  15683. .split(".")
  15684. [
  15685. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15686. ].toLocaleUpperCase()
  15687. ) != -1
  15688. ) {
  15689. _this.fileType = 0;
  15690. } else {
  15691. _this.fileType = 3;
  15692. }
  15693. _this.imgChange(null, null, type);
  15694. } else if (type == 2) {
  15695. _this.upToolImg = data.Location;
  15696. _this.imgChange(null, null, type);
  15697. _this.addCourseWorks(i);
  15698. } else if (type == 4) {
  15699. _this.addPz("3", data.Location);
  15700. } else if (type == 5) {
  15701. _this.addImgDrawImG(data.Location);
  15702. } else if (type == 6) {
  15703. var _ftype = 1;
  15704. if (
  15705. c.indexOf(
  15706. data.Location.split(".")[
  15707. data.Location.split(".").length - 1
  15708. ].toLocaleUpperCase()
  15709. ) != -1
  15710. ) {
  15711. _ftype = 5;
  15712. } else if (
  15713. b.indexOf(
  15714. data.Location.split(".")[
  15715. data.Location.split(".").length - 1
  15716. ].toLocaleUpperCase()
  15717. ) != -1
  15718. ) {
  15719. _ftype = 4;
  15720. } else {
  15721. _ftype = 1;
  15722. }
  15723. _this.plworkFile.push({
  15724. name: file.name,
  15725. url: data.Location,
  15726. uid: file.uid,
  15727. fileType: _ftype,
  15728. username:
  15729. _this.plworkFile.length > 10
  15730. ? _this.plworkFile.length + 1
  15731. : "0" + (_this.plworkFile.length + 1),
  15732. });
  15733. } else if (type == 7) {
  15734. _this.addCourseWorksGong(i, data.Location, 32);
  15735. } else if (type == 8) {
  15736. _this.addCourseWorksGong(i, data.Location, 57);
  15737. }
  15738. _this.imgChange(null, null, type);
  15739. console.log(data.Location);
  15740. // _this.$message.success('上传成功'+data.Location)
  15741. }
  15742. });
  15743. }
  15744. },
  15745. async beforeUpload3(event, type, i) {
  15746. // this.$message.success('进入上传')
  15747. let file = "";
  15748. let cfindex2 = 0;
  15749. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15750. file = event.target.files[cfindex];
  15751. var credentials = {
  15752. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15753. secretAccessKey: "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",
  15754. }; //秘钥形式的登录上传
  15755. window.AWS.config.update(credentials);
  15756. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15757. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15758. var _this = this;
  15759. // _this.progress = 0;
  15760. _this.proVisible2 = true;
  15761. var b = [
  15762. "DOC",
  15763. "DOCX",
  15764. "DOCM",
  15765. "DOTM",
  15766. "DOTX",
  15767. "PPTX",
  15768. "PPSX",
  15769. "PPT",
  15770. "PPS",
  15771. "PPTM",
  15772. "POTM",
  15773. "PPAM",
  15774. "POTX",
  15775. "PPSM",
  15776. ];
  15777. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15778. var photoA = [
  15779. "BMP",
  15780. "GIF",
  15781. "PNG",
  15782. "JPEG",
  15783. "JPG",
  15784. "TIF",
  15785. "PCX",
  15786. "TGA",
  15787. "EXIF",
  15788. "FPX",
  15789. "SVG",
  15790. "APNG",
  15791. ];
  15792. if (
  15793. photoA.indexOf(
  15794. file.name
  15795. .split(".")
  15796. [file.name.split(".").length - 1].toLocaleUpperCase()
  15797. ) != -1 &&
  15798. type != 4
  15799. ) {
  15800. // const blob = await imageConversion.compress(file, 0.8)
  15801. file = await this.pngToWhiteBg(file);
  15802. const blob = await imageConversion.compressAccurately(file, 256);
  15803. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15804. file = new File([blob], file.name, { type: file.type });
  15805. }
  15806. if (file) {
  15807. var params = {
  15808. Key:
  15809. file.name.split(".")[0] +
  15810. new Date().getTime() +
  15811. "." +
  15812. file.name.split(".")[file.name.split(".").length - 1],
  15813. ContentType: file.type,
  15814. Body: file,
  15815. "Access-Control-Allow-Credentials": "*",
  15816. ACL: "public-read",
  15817. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15818. var options = {
  15819. // partSize: 2048 * 1024 * 1024,
  15820. partSize: 1024 * 1024 * 1024,
  15821. queueSize: 2,
  15822. leavePartsOnError: true,
  15823. };
  15824. bucket
  15825. .upload(params, options)
  15826. .on("httpUploadProgress", function (evt) {
  15827. //这里可以写进度条
  15828. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15829. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15830. })
  15831. .send(function (err, data) {
  15832. // _this.progress = 100;
  15833. cfindex2++;
  15834. setTimeout(() => {
  15835. if (
  15836. cfindex2 == event.target.files.length - 1 ||
  15837. cfindex2 > event.target.files.length - 1
  15838. ) {
  15839. _this.proVisible2 = false;
  15840. }
  15841. }, 1000);
  15842. if (err) {
  15843. var a = _this.$refs.upload1.uploadFiles;
  15844. a.splice(a.length - 1, a.length);
  15845. _this.$message.error("上传失败");
  15846. } else {
  15847. // _this.$message.success('上传成功')
  15848. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15849. var c = [
  15850. "AVI",
  15851. "NAVI",
  15852. "MPEG",
  15853. "ASF",
  15854. "MOV",
  15855. "WMV",
  15856. "3GP",
  15857. "RM",
  15858. "RMVB",
  15859. "FLV",
  15860. "F4V",
  15861. "H.264",
  15862. "H.265",
  15863. "REAL VIDEO",
  15864. "MKV",
  15865. "WebM",
  15866. "HDDVD",
  15867. "MP4",
  15868. "MPG",
  15869. "M4V",
  15870. "MGV",
  15871. "OGV",
  15872. "QTM",
  15873. "STR",
  15874. "AMC",
  15875. "DVX",
  15876. "EVO",
  15877. "DAT",
  15878. "OGG",
  15879. "OGM",
  15880. ];
  15881. if (type == 1) {
  15882. _this.studyJuri[0].cover.push({
  15883. name: file.name,
  15884. url: data.Location,
  15885. uid: file.uid,
  15886. });
  15887. if (
  15888. c.indexOf(
  15889. _this.studyJuri[0].cover[0].url
  15890. .split(".")
  15891. [
  15892. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15893. ].toLocaleUpperCase()
  15894. ) != -1
  15895. ) {
  15896. _this.fileType = 2;
  15897. } else if (
  15898. b.indexOf(
  15899. _this.studyJuri[0].cover[0].url
  15900. .split(".")
  15901. [
  15902. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15903. ].toLocaleUpperCase()
  15904. ) != -1
  15905. ) {
  15906. _this.fileType = 1;
  15907. } else {
  15908. _this.fileType = 0;
  15909. }
  15910. _this.imgChange(null, null, type);
  15911. } else if (type == 2) {
  15912. _this.upToolImg = data.Location;
  15913. _this.imgChange(null, null, type);
  15914. _this.addCourseWorks(i);
  15915. } else if (type == 4) {
  15916. _this.addPz("3", data.Location);
  15917. } else if (type == 5) {
  15918. _this.addImgDrawImG(data.Location);
  15919. } else if (type == 6) {
  15920. var _ftype = 1;
  15921. if (
  15922. c.indexOf(
  15923. data.Location.split(".")[
  15924. data.Location.split(".").length - 1
  15925. ].toLocaleUpperCase()
  15926. ) != -1
  15927. ) {
  15928. _ftype = 5;
  15929. } else if (
  15930. b.indexOf(
  15931. data.Location.split(".")[
  15932. data.Location.split(".").length - 1
  15933. ].toLocaleUpperCase()
  15934. ) != -1
  15935. ) {
  15936. _ftype = 4;
  15937. } else {
  15938. _ftype = 1;
  15939. }
  15940. _this.plworkFile.push({
  15941. name: file.name,
  15942. url: data.Location,
  15943. uid: file.uid,
  15944. fileType: _ftype,
  15945. username:
  15946. _this.plworkFile.length + 1 > 9
  15947. ? _this.plworkFile.length + 1
  15948. : "0" + (_this.plworkFile.length + 1),
  15949. });
  15950. }
  15951. _this.imgChange(null, null, type);
  15952. console.log(data.Location);
  15953. // _this.$message.success('上传成功'+data.Location)
  15954. }
  15955. });
  15956. }
  15957. }
  15958. },
  15959. beforeUpload2(event, type) {
  15960. var file = event.target.files[0];
  15961. var credentials = {
  15962. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15963. secretAccessKey: "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",
  15964. }; //秘钥形式的登录上传
  15965. window.AWS.config.update(credentials);
  15966. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15967. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15968. var _this = this;
  15969. _this.progress = 0;
  15970. _this.proVisible = true;
  15971. if (file) {
  15972. var params = {
  15973. Key:
  15974. file.name.split(".")[0] +
  15975. new Date().getTime() +
  15976. "." +
  15977. file.name.split(".")[file.name.split(".").length - 1],
  15978. ContentType: file.type,
  15979. Body: file,
  15980. "Access-Control-Allow-Credentials": "*",
  15981. ACL: "public-read",
  15982. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15983. var options = {
  15984. partSize: 2048 * 1024 * 1024,
  15985. queueSize: 2,
  15986. leavePartsOnError: true,
  15987. };
  15988. bucket
  15989. .upload(params, options)
  15990. .on("httpUploadProgress", function (evt) {
  15991. //这里可以写进度条
  15992. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15993. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15994. })
  15995. .send(function (err, data) {
  15996. _this.progress = 100;
  15997. setTimeout(() => {
  15998. _this.proVisible = false;
  15999. }, 1000);
  16000. if (err) {
  16001. var a = _this.$refs.upload1.uploadFiles;
  16002. a.splice(a.length - 1, a.length);
  16003. _this.$message.error("上传失败");
  16004. } else {
  16005. if (type == 2) {
  16006. _this.studyJuri[0].upVedio.push({
  16007. name: file.name,
  16008. url: data.Location,
  16009. uid: file.uid,
  16010. });
  16011. _this.imgChange(null, null, type);
  16012. } else if (type == 3) {
  16013. _this.studyJuri[0].upFile.push({
  16014. name: file.name,
  16015. url: data.Location,
  16016. uid: file.uid,
  16017. });
  16018. _this.imgChange(null, null, type);
  16019. }
  16020. console.log(data.Location);
  16021. }
  16022. });
  16023. }
  16024. },
  16025. allScrell() {
  16026. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16027. },
  16028. nextOrpreSteps(t) {
  16029. if (this.IsFollow && this.tType == 2) {
  16030. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16031. return;
  16032. }
  16033. var b = this.chapInfoList.length - 1;
  16034. if (t == 0) {
  16035. if (this.courseType == 0) {
  16036. if (this.taskCount == 0) {
  16037. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16038. if (this.IsLookOpen) {
  16039. if (
  16040. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16041. ) {
  16042. if (
  16043. this.courseDetail.userid != this.userid &&
  16044. (!this.courseDetail.course_teacher ||
  16045. (this.courseDetail.course_teacher &&
  16046. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16047. ) {
  16048. this.$message.error("任务未解锁");
  16049. } else {
  16050. this.$message.error("上一任务未解锁");
  16051. }
  16052. return;
  16053. }
  16054. }
  16055. this.navList[this.courseType].isOpen = false;
  16056. this.courseType = b;
  16057. this.taskCount =
  16058. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16059. .length - 1;
  16060. this.navList[this.courseType].isOpen = true;
  16061. } else {
  16062. this.taskCount--;
  16063. }
  16064. } else {
  16065. if (this.taskCount == 0) {
  16066. this.navList[this.courseType].isOpen = false;
  16067. this.courseType--;
  16068. this.taskCount =
  16069. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16070. .length - 1;
  16071. this.navList[this.courseType].isOpen = true;
  16072. } else {
  16073. this.taskCount--;
  16074. }
  16075. }
  16076. } else {
  16077. if (this.courseType == b) {
  16078. if (
  16079. this.taskCount ==
  16080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16081. 1
  16082. ) {
  16083. this.navList[this.courseType].isOpen = false;
  16084. this.courseType = 0;
  16085. this.taskCount = 0;
  16086. this.navList[this.courseType].isOpen = true;
  16087. } else {
  16088. var bbb = parseInt(this.taskCount) + 1;
  16089. if (
  16090. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16091. .isLook &&
  16092. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16093. (this.courseDetail.course_teacher &&
  16094. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16095. this.IsLookOpen
  16096. ) {
  16097. this.$message.error("任务未解锁");
  16098. return;
  16099. }
  16100. this.taskCount++;
  16101. if (this.IsLookOpen) {
  16102. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16103. this.taskCount
  16104. ].isLook = true;
  16105. this.addCourseState(3);
  16106. }
  16107. }
  16108. } else {
  16109. if (
  16110. this.taskCount ==
  16111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16112. 1
  16113. ) {
  16114. var bbb = parseInt(this.courseType) + 1;
  16115. if (
  16116. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16117. this.courseDetail.userid != this.userid &&
  16118. (!this.courseDetail.course_teacher ||
  16119. (this.courseDetail.course_teacher &&
  16120. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16121. this.IsLookOpen
  16122. ) {
  16123. this.$message.error("任务未解锁");
  16124. return;
  16125. }
  16126. this.navList[this.courseType].isOpen = false;
  16127. this.courseType++;
  16128. this.taskCount = 0;
  16129. this.navList[this.courseType].isOpen = true;
  16130. } else {
  16131. var bbb = parseInt(this.taskCount) + 1;
  16132. if (
  16133. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16134. .isLook &&
  16135. this.courseDetail.userid != this.userid &&
  16136. (!this.courseDetail.course_teacher ||
  16137. (this.courseDetail.course_teacher &&
  16138. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16139. this.IsLookOpen
  16140. ) {
  16141. this.$message.error("任务未解锁");
  16142. return;
  16143. }
  16144. this.taskCount++;
  16145. }
  16146. if (this.IsLookOpen) {
  16147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16148. this.taskCount
  16149. ].isLook = true;
  16150. this.addCourseState(3);
  16151. }
  16152. }
  16153. // if (
  16154. // this.taskCount ==
  16155. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16156. // ) {
  16157. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16158. // } else {
  16159. // this.taskCount++;
  16160. // }
  16161. }
  16162. document.scrollingElement.scrollTop = 0;
  16163. this.showType = 7;
  16164. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16165. // if (this.vedio[this.taskCount].length > 0) {
  16166. // var a =
  16167. // document.getElementsByClassName("box_course")[this.taskCount]
  16168. // .offsetHeight;
  16169. // document.getElementsByClassName("vedioList")[
  16170. // this.taskCount
  16171. // ].style.height = a + "px";
  16172. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16173. // a - 40 + "px";
  16174. // }
  16175. this.isNoHomeWork = false;
  16176. (this.studyJuri = [
  16177. {
  16178. content: "",
  16179. cover: [],
  16180. upVedio: [],
  16181. upFile: [],
  16182. },
  16183. ]),
  16184. (this.radio = []);
  16185. this.isClickNav = "";
  16186. this.selectPz();
  16187. this.getHomeWork();
  16188. this.getCourseDetail(2);
  16189. this.$forceUpdate();
  16190. },
  16191. openTask(s, n, i,ctype) {
  16192. console.log(s, n, i,ctype)
  16193. if (this.IsFollow && this.tType == 2) {
  16194. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16195. return;
  16196. }
  16197. if (this.IsLookOpen) {
  16198. if (
  16199. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16200. this.courseDetail.userid != this.userid &&
  16201. (!this.courseDetail.course_teacher ||
  16202. (this.courseDetail.course_teacher &&
  16203. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16204. ) {
  16205. this.$message.error("任务未解锁");
  16206. return;
  16207. }
  16208. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16209. if (
  16210. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16211. .isLook
  16212. ) {
  16213. this.$message.error("上一任务未解锁");
  16214. return;
  16215. }
  16216. } else if (s > this.courseType) {
  16217. if (n > 0) {
  16218. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16219. this.$message.error("上一任务未解锁");
  16220. return;
  16221. }
  16222. } else {
  16223. if (
  16224. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16225. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16226. ].isLook
  16227. ) {
  16228. this.$message.error("上一任务未解锁");
  16229. return;
  16230. }
  16231. }
  16232. }
  16233. }
  16234. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16235. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16236. return;
  16237. }
  16238. let flag = this.courseType==s;
  16239. this.courseType = s;
  16240. this.navId = i;
  16241. this.taskCount = n;
  16242. if(ctype == 2){
  16243. this.navList[s].task[n].isOpen = true
  16244. }else{
  16245. this.navList[this.courseType].task[this.taskCount].isOpen =
  16246. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16247. }
  16248. if (this.IsLookOpen) {
  16249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16250. this.taskCount
  16251. ].isLook = true;
  16252. this.addCourseState(3);
  16253. }
  16254. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16255. this.isCloseList[ci].isClose = 0;
  16256. this.isCloseList[ci].isCloseBoolean = false;
  16257. this.$nextTick(()=>{
  16258. setTimeout(()=>{
  16259. setTimeout(()=>{
  16260. this.panToolHeight('tool-'+ci);
  16261. }, 0)
  16262. }, 0)
  16263. })
  16264. }
  16265. this.showType = 0;
  16266. this.isNoHomeWork = false;
  16267. (this.studyJuri = [
  16268. {
  16269. content: "",
  16270. cover: [],
  16271. upVedio: [],
  16272. upFile: [],
  16273. },
  16274. ]),
  16275. (this.radio = []);
  16276. document.scrollingElement.scrollTop = 0;
  16277. // setTimeout(() => {
  16278. // let a = document.getElementById(i);
  16279. // if (a.offsetTop - 110 == 0) {
  16280. // window.scrollTo(0, 0);
  16281. // } else {
  16282. // window.scrollTo(0, a.offsetTop);
  16283. // }
  16284. // }, 0);
  16285. for (var z = 0; z < this.navList.length; z++) {
  16286. for (var q = 0; q < this.navList[z].task.length; q++) {
  16287. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16288. this.navList[z].task[q].tool[w].isTool = false;
  16289. }
  16290. }
  16291. }
  16292. this.selectPz();
  16293. this.getHomeWork();
  16294. this.getCourseDetail(2);
  16295. if(flag){
  16296. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16297. }else{
  16298. 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>`)
  16299. }
  16300. },
  16301. get(i) {
  16302. if (this.IsFollow && this.tType == 2) {
  16303. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16304. return;
  16305. }
  16306. // for(var k=0;k<this.navList.length;k++){
  16307. // this.navList[k].isOpen = false;
  16308. // }
  16309. // this.navList[i].isOpen = true;
  16310. let a = this.navList[i].isOpen
  16311. this.navList[i].isOpen = !this.navList[i].isOpen;
  16312. this.$forceUpdate()
  16313. if (this.navList[i].isOpen) {
  16314. this.openTask(i, 0, (i + "-0"),2);
  16315. }
  16316. },
  16317. addQuestion() {
  16318. this.answerList.push({
  16319. answerTitle: this.answerQ,
  16320. answer: this.questionAnswer,
  16321. });
  16322. let params = [
  16323. {
  16324. uid: this.userid,
  16325. cid: this.id,
  16326. stage: this.courseType,
  16327. task: this.taskCount,
  16328. tool: this.toolindex,
  16329. content: JSON.stringify(this.answerList),
  16330. type: 3,
  16331. },
  16332. ];
  16333. this.ajax
  16334. .post(this.$store.state.api + "addCourseWorks", params)
  16335. .then((res) => {
  16336. this.$message({
  16337. message: "提交成功",
  16338. type: "success",
  16339. });
  16340. this.answerList = [];
  16341. this.answerDialogVisible = false;
  16342. this.selectStudent();
  16343. this.selectSWorks();
  16344. this.selectSLook();
  16345. })
  16346. .catch((err) => {
  16347. this.$message.error("提交失败");
  16348. console.error(err);
  16349. });
  16350. },
  16351. addQuestionTeacher() {
  16352. this.answerList.push({
  16353. answerTitle: this.answerQ,
  16354. answer: this.questionAnswer,
  16355. });
  16356. let params = [
  16357. {
  16358. uid: this.sStudent.userid,
  16359. cid: this.id,
  16360. stage: this.courseType,
  16361. task: this.taskCount,
  16362. tool: this.toolindex,
  16363. content: JSON.stringify(this.answerList),
  16364. type: 3,
  16365. ateacher: this.userid,
  16366. },
  16367. ];
  16368. this.ajax
  16369. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16370. .then((res) => {
  16371. this.$message({
  16372. message: "提交成功",
  16373. type: "success",
  16374. });
  16375. this.answerList = [];
  16376. this.questionAnswer = "";
  16377. this.answerDialogVisibleTeacher = false;
  16378. this.selectStudent();
  16379. this.selectSWorks();
  16380. this.selectSLook();
  16381. })
  16382. .catch((err) => {
  16383. this.$message.error("提交失败");
  16384. console.error(err);
  16385. });
  16386. },
  16387. refreshCourse() {
  16388. // window.location.reload();
  16389. this.navList = [];
  16390. this.getCourseDetail(1);
  16391. },
  16392. getCourseDetail(type, gindex) {
  16393. let loading;
  16394. if (type != 2) {
  16395. loading = this.$loading.service({
  16396. background: "rgba(255, 255, 255, 0.7)",
  16397. target: document.querySelector(".student_table"),
  16398. });
  16399. }
  16400. this.downLoading = false
  16401. // this.navList[0].isOpen = false;
  16402. // this.navList[this.courseType].isOpen = true;
  16403. // this.courseType = this.courseTypeLine;
  16404. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16405. let params = {
  16406. courseId: this.id,
  16407. };
  16408. this.ajax
  16409. .get(this.$store.state.api + "selectCourseDetail3", params)
  16410. .then((res) => {
  16411. if (type != 2) {
  16412. loading.close();
  16413. if (
  16414. this.courseType >
  16415. JSON.parse(res.data[0][0].chapters).length - 1
  16416. ) {
  16417. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16418. }
  16419. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16420. .chapterInfo[0].taskJson;
  16421. var b = [
  16422. "AVI",
  16423. "NAVI",
  16424. "MPEG",
  16425. "ASF",
  16426. "MOV",
  16427. "WMV",
  16428. "3GP",
  16429. "RM",
  16430. "RMVB",
  16431. "FLV",
  16432. "F4V",
  16433. "H.264",
  16434. "H.265",
  16435. "REAL VIDEO",
  16436. "MKV",
  16437. "WebM",
  16438. "HDDVD",
  16439. "MP4",
  16440. "MPG",
  16441. "M4V",
  16442. "MGV",
  16443. "OGV",
  16444. "QTM",
  16445. "STR",
  16446. "AMC",
  16447. "DVX",
  16448. "EVO",
  16449. "DAT",
  16450. "OGG",
  16451. "OGM",
  16452. "MP3",
  16453. ];
  16454. let _chapterData = [];
  16455. for (var i = 0; i < a.length; i++) {
  16456. var c = a[i].chapterData;
  16457. this.vedio[i] = [];
  16458. this.textList[i] = [];
  16459. this.lineList[i] = [];
  16460. this.chapToolList[i] = [];
  16461. this.file[i] = [];
  16462. this.fileC[i] = [];
  16463. _chapterData[i] = c.filter((el) => {
  16464. return el.type != 12;
  16465. });
  16466. this.fileC[i] = c.filter((el) => {
  16467. return el.type == 12;
  16468. });
  16469. // else if (c[j].type == 12) {
  16470. // this.fileC[i].push(c[j]);
  16471. // }
  16472. for (var j = 0; j < c.length; j++) {
  16473. if (c[j].type == 7) {
  16474. this.chapToolList[i].push(c[j]);
  16475. } else if (c[j].type == 8 || c[j].type == 14) {
  16476. this.lineList[i].push(c[j]);
  16477. } else if (c[j].type == 6) {
  16478. this.textList[i].push(c[j]);
  16479. } else {
  16480. if (
  16481. b.indexOf(
  16482. c[j].url
  16483. .split(".")
  16484. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16485. ) != -1
  16486. ) {
  16487. this.vedio[i].push(c[j]);
  16488. } else {
  16489. this.file[i].push(c[j]);
  16490. }
  16491. }
  16492. }
  16493. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16494. d.sources[0].src =
  16495. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16496. this.playerO[i] = d;
  16497. }
  16498. this.courseDetail = res.data[0][0];
  16499. this.tcid = this.arrayToArray(
  16500. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16501. this.tcid2 ? this.tcid2.split(",") : []
  16502. ).join(",");
  16503. this.evalua = res.data[0][0].evaId;
  16504. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16505. this.courseType
  16506. ];
  16507. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16508. if (this.tcid && res.data[1].length) {
  16509. let _inviteA = [];
  16510. for (var ik = 0; ik < res.data[1].length; ik++) {
  16511. _inviteA.push({
  16512. cid: res.data[1][ik].classid,
  16513. ic: res.data[1][ik].code,
  16514. });
  16515. }
  16516. for (var ik = 0; ik < _inviteA.length; ik++) {
  16517. if (
  16518. this.arrayToArray(
  16519. _inviteA[ik].cid.split(","),
  16520. this.tcid.split(",")
  16521. ).length
  16522. ) {
  16523. this.inviteCode = _inviteA[ik].ic;
  16524. break;
  16525. }
  16526. }
  16527. }
  16528. for (var l = 0; l < this.chapInfoList.length; l++) {
  16529. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16530. for (var m = 0; m < w.length; m++) {
  16531. w[m].id = l + "-" + m;
  16532. }
  16533. }
  16534. if (
  16535. _chapterData[this.taskCount].length &&
  16536. _chapterData[this.taskCount][0].type == 2
  16537. ) {
  16538. this.showType = 0;
  16539. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16540. } else {
  16541. if (_chapterData[this.taskCount].length > 0) {
  16542. let _url = _chapterData[this.taskCount][0].url;
  16543. if (
  16544. _chapterData[this.taskCount][0].type == 8 ||
  16545. _chapterData[this.taskCount][0].type == 14
  16546. ) {
  16547. this.showType = 2;
  16548. if (
  16549. _url.indexOf("https://") == -1 &&
  16550. _url.indexOf("http://") == -1
  16551. ) {
  16552. _url = "https://" + _url;
  16553. }
  16554. this.pptImgUrl1 = _url;
  16555. } else if (_chapterData[this.taskCount][0].type == 3) {
  16556. if (
  16557. _url
  16558. .split(".")
  16559. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16560. ) {
  16561. this.showType = 3;
  16562. this.pptImgUrl1 = _url;
  16563. } else if (
  16564. this.isAssetTypeAnImage(
  16565. _url
  16566. .split(".")
  16567. [_url.split(".").length - 1].toLocaleLowerCase()
  16568. )
  16569. ) {
  16570. this.showType = 4;
  16571. this.pptImgUrl1 = _url;
  16572. } else {
  16573. this.showType = 2;
  16574. this.pptImgUrl1 =
  16575. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16576. encodeURIComponent(_url);
  16577. }
  16578. } else if (_chapterData[this.taskCount][0].type == 13) {
  16579. this.showType = 4;
  16580. this.pptImgUrl1 = _url;
  16581. } else if (_chapterData[this.taskCount][0].type == 6) {
  16582. this.showType = 1;
  16583. this.text = this.textList[this.taskCount][0];
  16584. }
  16585. }
  16586. }
  16587. this.isClickNav = 0;
  16588. if (
  16589. !_chapterData[this.taskCount].length ||
  16590. _chapterData[this.taskCount][0].type == 12
  16591. ) {
  16592. this.isClickNav = "";
  16593. this.showType = "";
  16594. }
  16595. this.vChapterData = _chapterData;
  16596. } else {
  16597. this.showType = 0;
  16598. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16599. .chapterInfo[0].taskJson;
  16600. var b = [
  16601. "AVI",
  16602. "NAVI",
  16603. "MPEG",
  16604. "ASF",
  16605. "MOV",
  16606. "WMV",
  16607. "3GP",
  16608. "RM",
  16609. "RMVB",
  16610. "FLV",
  16611. "F4V",
  16612. "H.264",
  16613. "H.265",
  16614. "REAL VIDEO",
  16615. "MKV",
  16616. "WebM",
  16617. "HDDVD",
  16618. "MP4",
  16619. "MPG",
  16620. "M4V",
  16621. "MGV",
  16622. "OGV",
  16623. "QTM",
  16624. "STR",
  16625. "AMC",
  16626. "DVX",
  16627. "EVO",
  16628. "DAT",
  16629. "OGG",
  16630. "OGM",
  16631. "MP3",
  16632. ];
  16633. let _chapterData = [];
  16634. for (var i = 0; i < a.length; i++) {
  16635. var c = a[i].chapterData;
  16636. this.vedio[i] = [];
  16637. this.textList[i] = [];
  16638. this.lineList[i] = [];
  16639. this.chapToolList[i] = [];
  16640. this.file[i] = [];
  16641. this.fileC[i] = [];
  16642. _chapterData[i] = c.filter((el) => {
  16643. return el.type != 12;
  16644. });
  16645. this.fileC[i] = c.filter((el) => {
  16646. return el.type == 12;
  16647. });
  16648. for (var j = 0; j < c.length; j++) {
  16649. if (c[j].type == 7) {
  16650. this.chapToolList[i].push(c[j]);
  16651. } else if (c[j].type == 8 || c[j].type == 14) {
  16652. this.lineList[i].push(c[j]);
  16653. } else if (c[j].type == 6) {
  16654. this.textList[i].push(c[j]);
  16655. } else {
  16656. if (
  16657. b.indexOf(
  16658. c[j].url
  16659. .split(".")
  16660. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16661. ) != -1
  16662. ) {
  16663. this.vedio[i].push(c[j]);
  16664. } else {
  16665. this.file[i].push(c[j]);
  16666. }
  16667. }
  16668. }
  16669. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16670. d.sources[0].src =
  16671. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16672. this.playerO[i] = d;
  16673. }
  16674. if (
  16675. _chapterData[this.taskCount].length &&
  16676. _chapterData[this.taskCount][0].type == 2
  16677. ) {
  16678. this.showType = 0;
  16679. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16680. } else {
  16681. if (_chapterData[this.taskCount].length > 0) {
  16682. let _url = _chapterData[this.taskCount][0].url;
  16683. if (
  16684. _chapterData[this.taskCount][0].type == 8 ||
  16685. _chapterData[this.taskCount][0].type == 14
  16686. ) {
  16687. this.showType = 2;
  16688. if (
  16689. _url.indexOf("https://") == -1 &&
  16690. _url.indexOf("http://") == -1
  16691. ) {
  16692. _url = "https://" + _url;
  16693. }
  16694. this.pptImgUrl1 = _url;
  16695. } else if (_chapterData[this.taskCount][0].type == 3) {
  16696. if (
  16697. _url
  16698. .split(".")
  16699. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16700. ) {
  16701. this.showType = 3;
  16702. this.pptImgUrl1 = _url;
  16703. } else if (
  16704. this.isAssetTypeAnImage(
  16705. _url
  16706. .split(".")
  16707. [_url.split(".").length - 1].toLocaleLowerCase()
  16708. )
  16709. ) {
  16710. this.showType = 4;
  16711. this.pptImgUrl1 = _url;
  16712. } else {
  16713. this.showType = 2;
  16714. this.pptImgUrl1 =
  16715. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16716. encodeURIComponent(_url);
  16717. }
  16718. } else if (_chapterData[this.taskCount][0].type == 13) {
  16719. this.showType = 4;
  16720. this.pptImgUrl1 = _url;
  16721. } else if (_chapterData[this.taskCount][0].type == 6) {
  16722. this.showType = 1;
  16723. this.text = this.textList[this.taskCount][0];
  16724. }
  16725. }
  16726. }
  16727. this.isClickNav = 0;
  16728. if (
  16729. !_chapterData[this.taskCount].length ||
  16730. _chapterData[this.taskCount][0].type == 12
  16731. ) {
  16732. this.isClickNav = "";
  16733. this.showType = "";
  16734. }
  16735. this.vChapterData = _chapterData;
  16736. this.$forceUpdate();
  16737. }
  16738. // else {
  16739. // this.courseDetail = res.data[0][0];
  16740. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16741. // }
  16742. let _this = this;
  16743. if (_this.timer) {
  16744. clearInterval(_this.timer);
  16745. _this.timer = null;
  16746. }
  16747. if (_this.tcid) {
  16748. _this.getCourseGroup(gindex);
  16749. } else {
  16750. _this.selectSWorks(gindex);
  16751. }
  16752. _this.selectStudent();
  16753. _this.selectSLook();
  16754. _this.getPick();
  16755. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16756. _this.setCTask();
  16757. }
  16758. if (_this.dialogVisibleGroup) {
  16759. _this.groupJson =
  16760. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16761. _this.taskCount
  16762. ].toolChoose[_this.toolindex].groupJson;
  16763. }
  16764. _this.$nextTick(() => {
  16765. setTimeout(() => {
  16766. _this.checkEva();
  16767. }, 1000);
  16768. });
  16769. _this.timer = setInterval(function () {
  16770. // _this.getCourseDetail(2);
  16771. if (_this.tcid) {
  16772. _this.getCourseGroup(gindex);
  16773. } else {
  16774. _this.selectSWorks(gindex);
  16775. }
  16776. _this.selectStudent();
  16777. _this.selectSLook();
  16778. _this.getPick();
  16779. _this.getSplitScreenData();
  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. if (_this.tType == 4 || _this.ispzType == 4) {
  16790. _this.selectPz();
  16791. }
  16792. }, 5000);
  16793. _this.$nextTick(function () {
  16794. setTimeout(() => {
  16795. // var a =
  16796. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16797. // document.getElementsByClassName("vedioList")[0].style.height =
  16798. // a + "px";
  16799. // document.getElementsByClassName("navBox")[0].style.height =
  16800. // a - 40 + "px";
  16801. // if (_this.vedio[_this.taskCount].length > 0) {
  16802. // _this.vedioTime = [];
  16803. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16804. // _this.vedioTime[i] = document.getElementsByClassName(
  16805. // "vjs-duration-display"
  16806. // )[i].textContent;
  16807. // }
  16808. // }
  16809. }, 1000);
  16810. });
  16811. })
  16812. .catch((err) => {
  16813. loading.close();
  16814. console.error(err);
  16815. });
  16816. },
  16817. getCourseGroup(gindex) {
  16818. let params = {
  16819. cid: this.id,
  16820. classid: this.tcid ? this.tcid : "1",
  16821. };
  16822. this.ajax
  16823. .get(this.$store.state.api + "getCourseGroup", params)
  16824. .then((res) => {
  16825. if (res.data && res.data[0].length) {
  16826. if (!this.isGroup) {
  16827. let courseGroup = JSON.parse(res.data[0][0].group);
  16828. courseGroup.group = courseGroup.group.filter((el) => {
  16829. el.works = [];
  16830. return el;
  16831. });
  16832. if (courseGroup.isopen == 2) {
  16833. this.isGroup = false;
  16834. this.selectSWorks(gindex);
  16835. return;
  16836. }
  16837. this.courseGroup = courseGroup;
  16838. let groupPerson = res.data[1];
  16839. let group = JSON.parse(res.data[0][0].group).group;
  16840. let courseGroupStudent = {};
  16841. let courseGroupStudentUid = {};
  16842. for (var i = 0; i < group.length; i++) {
  16843. courseGroupStudent[group[i].id] = [];
  16844. courseGroupStudentUid[group[i].id] = [];
  16845. for (var j = 0; j < groupPerson.length; j++) {
  16846. if (groupPerson[j].groupCid == group[i].id) {
  16847. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16848. courseGroupStudentUid[group[i].id].push(
  16849. groupPerson[j].userid
  16850. );
  16851. }
  16852. }
  16853. }
  16854. this.courseGroupStudent = courseGroupStudent;
  16855. this.courseGroupStudentUid = courseGroupStudentUid;
  16856. }
  16857. if (this.courseGroup.isopen == 2) {
  16858. this.isGroup = false;
  16859. } else {
  16860. this.isGroup = true;
  16861. }
  16862. this.selectSWorks(gindex);
  16863. } else {
  16864. this.selectSWorks(gindex);
  16865. this.isGroup = false;
  16866. }
  16867. })
  16868. .catch((err) => {
  16869. // this.$message.error("网络不佳");
  16870. console.error(err);
  16871. });
  16872. },
  16873. setOperationTime() {
  16874. let _this = this;
  16875. if (_this.opertimer) {
  16876. clearInterval(_this.opertimer);
  16877. _this.opertimer = null;
  16878. }
  16879. _this.opertimer = setInterval(() => {
  16880. _this.setoTime("600");
  16881. }, 600000);
  16882. },
  16883. setoTime(time) {
  16884. let params = [
  16885. {
  16886. uid: this.userid,
  16887. cid: this.id,
  16888. type: "2",
  16889. time: time,
  16890. },
  16891. ];
  16892. this.ajax
  16893. .post(this.$store.state.api + "addOperationTimeT2", params)
  16894. .then((res) => {})
  16895. .catch((err) => {
  16896. console.error(err);
  16897. });
  16898. },
  16899. addPz(type, content) {
  16900. if (type == "1" && this.pzConText == "") {
  16901. this.$message.error("评论不能为空!");
  16902. return;
  16903. }
  16904. let params = [
  16905. {
  16906. cid: this.id,
  16907. uid: this.userid,
  16908. s: this.courseType,
  16909. t: this.taskCount,
  16910. c: type == "1" ? this.pzConText : content,
  16911. type: type,
  16912. },
  16913. ];
  16914. this.ajax
  16915. .post(this.$store.state.api + "addPz2", params)
  16916. .then((res) => {
  16917. this.$message({
  16918. message: "添加成功",
  16919. type: "success",
  16920. });
  16921. this.pzConText = "";
  16922. this.addPzDialog = false;
  16923. this.selectPz();
  16924. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16925. })
  16926. .catch((err) => {
  16927. this.$message.error("添加失败");
  16928. console.error(err);
  16929. });
  16930. },
  16931. setReplyIndex(id, i) {
  16932. this.replyIndex = i;
  16933. this.replyPid = id;
  16934. this.replyDialogVisible = true;
  16935. },
  16936. addHf() {
  16937. if (this.reply == "") {
  16938. this.$message.error("回复不能为空!");
  16939. return;
  16940. }
  16941. let params = [
  16942. {
  16943. cid: this.id,
  16944. uid: this.userid,
  16945. s: this.courseType,
  16946. t: this.taskCount,
  16947. type: "1",
  16948. ct: 2,
  16949. pid: this.replyPid,
  16950. c: this.reply,
  16951. },
  16952. ];
  16953. this.ajax
  16954. .post(this.$store.state.api + "addHf", params)
  16955. .then((res) => {
  16956. this.reply = "";
  16957. this.$message({
  16958. message: "回复成功",
  16959. type: "success",
  16960. });
  16961. this.replyDialogVisible = false;
  16962. this.selectPz();
  16963. })
  16964. .catch((err) => {
  16965. this.$message.error("回复失败");
  16966. console.error(err);
  16967. });
  16968. },
  16969. deletePz(id) {
  16970. this.$confirm("确定删除此评论吗?", "提示", {
  16971. confirmButtonText: "确定",
  16972. cancelButtonText: "取消",
  16973. type: "warning",
  16974. })
  16975. .then(() => {
  16976. let params = [
  16977. {
  16978. id: id,
  16979. },
  16980. ];
  16981. this.ajax
  16982. .post(this.$store.state.api + "deletePz", params)
  16983. .then((res) => {
  16984. this.$message({
  16985. message: "删除成功",
  16986. type: "success",
  16987. });
  16988. this.selectPz();
  16989. })
  16990. .catch((err) => {
  16991. this.$message.error("网络异常");
  16992. console.error(err);
  16993. });
  16994. })
  16995. .catch(() => {});
  16996. },
  16997. deleteReply(id) {
  16998. this.$confirm("确定删除此回复吗?", "提示", {
  16999. confirmButtonText: "确定",
  17000. cancelButtonText: "取消",
  17001. type: "warning",
  17002. })
  17003. .then(() => {
  17004. let params = [
  17005. {
  17006. id: id,
  17007. },
  17008. ];
  17009. this.ajax
  17010. .post(this.$store.state.api + "deleteReply", params)
  17011. .then((res) => {
  17012. this.$message({
  17013. message: "删除成功",
  17014. type: "success",
  17015. });
  17016. this.selectPz();
  17017. })
  17018. .catch((err) => {
  17019. this.$message.error("网络异常");
  17020. console.error(err);
  17021. });
  17022. })
  17023. .catch(() => {});
  17024. },
  17025. setPz() {
  17026. if (this.ispzType == 4) {
  17027. this.ispzType = 0;
  17028. this.pzDialog = false;
  17029. return;
  17030. }
  17031. this.ispzType = 4;
  17032. this.pzDialog = true;
  17033. this.selectPz();
  17034. },
  17035. selectPz() {
  17036. let params = {
  17037. cid: this.id,
  17038. s: this.courseType,
  17039. t: this.taskCount,
  17040. type: this.pzStype,
  17041. uid: this.userid,
  17042. };
  17043. this.ajax
  17044. .get(this.$store.state.api + "selectPzListType", params)
  17045. .then((res) => {
  17046. this.pzList = res.data[0];
  17047. var a = res.data[1];
  17048. for (var i = 0; i < a.length; i++) {
  17049. for (var j = 0; j < this.pzList.length; j++) {
  17050. if (!this.pzList[j].hfList) {
  17051. this.pzList[j].hfList = [];
  17052. }
  17053. if (a[i].pid == this.pzList[j].id) {
  17054. this.pzList[j].hfList.push(a[i]);
  17055. }
  17056. }
  17057. }
  17058. })
  17059. .catch((err) => {
  17060. console.error(err);
  17061. });
  17062. },
  17063. // selectHf() {
  17064. // let params = {
  17065. // cid: this.id,
  17066. // s: this.courseType,
  17067. // t: this.taskCount,
  17068. // };
  17069. // this.ajax
  17070. // .get(this.$store.state.api + "selectHfList", params)
  17071. // .then((res) => {
  17072. // var a = res.data[0];
  17073. // for (var i = 0; i < a.length; i++) {
  17074. // for (var j = 0; j < this.pzList.length; j++) {
  17075. // if (!this.pzList[i].hfList) {
  17076. // this.pzList[i].hfList = [];
  17077. // }
  17078. // if (a[i].pid == this.pzList[j].id) {
  17079. // this.pzList[i].hfList.push(a[i]);
  17080. // }
  17081. // }
  17082. // }
  17083. // })
  17084. // .catch((err) => {
  17085. // console.error(err);
  17086. // });
  17087. // },
  17088. updateSLook() {
  17089. let params = {
  17090. sopen: this.sIsOpen == false ? 1 : 2,
  17091. cid: this.id,
  17092. };
  17093. this.ajax
  17094. .get(this.$store.state.api + "updateCourseSLook", params)
  17095. .then((res) => {
  17096. if (this.sIsOpen == true) {
  17097. this.$message({
  17098. message: "权限设置成功",
  17099. type: "success",
  17100. });
  17101. } else {
  17102. this.$message({
  17103. message: "权限关闭成功",
  17104. type: "success",
  17105. });
  17106. }
  17107. })
  17108. .catch((err) => {
  17109. console.error(err);
  17110. });
  17111. },
  17112. updateFollow() {
  17113. let params = [
  17114. {
  17115. sopen: this.IsFollow == false ? 1 : 2,
  17116. cid: this.id,
  17117. },
  17118. ];
  17119. this.ajax
  17120. .post(this.$store.state.api + "updateCourseFollow", params)
  17121. .then((res) => {
  17122. if (this.IsFollow == true) {
  17123. this.$message({
  17124. message: "开启成功",
  17125. type: "success",
  17126. });
  17127. } else {
  17128. this.$message({
  17129. message: "关闭成功",
  17130. type: "success",
  17131. });
  17132. }
  17133. this.setCTask();
  17134. })
  17135. .catch((err) => {
  17136. console.error(err);
  17137. });
  17138. },
  17139. setCTask() {
  17140. let params = [
  17141. {
  17142. sopen: this.courseType + "-" + this.taskCount,
  17143. cid: this.id,
  17144. },
  17145. ];
  17146. this.ajax
  17147. .post(this.$store.state.api + "updateCourseFollowC", params)
  17148. .then((res) => {})
  17149. .catch((err) => {
  17150. console.error(err);
  17151. });
  17152. },
  17153. updateLookOpen() {
  17154. let params = [
  17155. {
  17156. sopen: this.IsLookOpen == false ? 1 : 2,
  17157. cid: this.id,
  17158. },
  17159. ];
  17160. this.ajax
  17161. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17162. .then((res) => {
  17163. if (this.IsLookOpen == true) {
  17164. // if (this.courseType != 0 && this.taskCount != 0) {
  17165. // this.openTask(0, 0, "0-0");
  17166. // }
  17167. this.$message({
  17168. message: "权限设置成功",
  17169. type: "success",
  17170. });
  17171. } else {
  17172. this.$message({
  17173. message: "权限关闭成功",
  17174. type: "success",
  17175. });
  17176. }
  17177. this.getCourseState(2);
  17178. })
  17179. .catch((err) => {
  17180. console.error(err);
  17181. });
  17182. },
  17183. selectSLook() {
  17184. let params = {
  17185. cid: this.id,
  17186. };
  17187. this.ajax
  17188. .get(this.$store.state.api + "selectCourseSLook", params)
  17189. .then((res) => {
  17190. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17191. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17192. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17193. if (!this.IsLookOpen) {
  17194. this.setNavList();
  17195. } else {
  17196. this.getCourseState(1);
  17197. }
  17198. if ((this.IsFollow && this.tType == 2) || this.splitScreenData.isOpen) {
  17199. this.setContent2(false);
  17200. let _followC = res.data[0][0].followC.split("-");
  17201. if (
  17202. this.courseType != _followC[0] ||
  17203. this.taskCount != _followC[1]
  17204. ) {
  17205. this.navList[this.courseType].isOpen = false;
  17206. this.courseType = _followC[0];
  17207. this.navList[this.courseType].isOpen = true;
  17208. this.taskCount = parseInt(_followC[1]);
  17209. this.navId = res.data[0][0].followC;
  17210. document.scrollingElement.scrollTop = 0;
  17211. this.getCourseDetail(2);
  17212. }
  17213. }
  17214. })
  17215. .catch((err) => {
  17216. console.error(err);
  17217. });
  17218. },
  17219. setNavList() {
  17220. if (this.navList.length == 0) {
  17221. this.navList = [];
  17222. var copyList = [];
  17223. for (var l = 0; l < this.chapInfoList.length; l++) {
  17224. var q = this.chapInfoList[l].dyName;
  17225. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17226. var e;
  17227. copyList.push({
  17228. dyName: q,
  17229. isOpen: l === 0 ? true : false,
  17230. task: [],
  17231. });
  17232. for (var r = 0; r < w.length; r++) {
  17233. e = w[r].task;
  17234. if (this.chapInfoList[l].easy == 1) {
  17235. copyList[l].task.push({
  17236. taskName: q,
  17237. id: l + "-" + r,
  17238. isLook: w[r].isLook,
  17239. isOpen: r === 0 ? true : false,
  17240. tool: [],
  17241. });
  17242. } else {
  17243. copyList[l].task.push({
  17244. taskName: e,
  17245. id: l + "-" + r,
  17246. isLook: w[r].isLook,
  17247. isOpen: r === 0 ? true : false,
  17248. tool: [],
  17249. });
  17250. }
  17251. var t = w[r].toolChoose;
  17252. for (var k = 0; k < t.length; k++) {
  17253. var tool = t[k].tool[0];
  17254. copyList[l].task[r].tool.push({
  17255. tool: tool,
  17256. isTool: false,
  17257. });
  17258. }
  17259. // this.navId = this.navId ? this.navId : l + "-" + r;
  17260. // this.navId = l + "-" + r;
  17261. }
  17262. }
  17263. this.navList = copyList;
  17264. this.navList[0].isOpen = false;
  17265. this.navList[this.courseType].isOpen = true;
  17266. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17267. } else {
  17268. this.setNavList2();
  17269. }
  17270. },
  17271. setNavList2() {
  17272. for (var l = 0; l < this.chapInfoList.length; l++) {
  17273. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17274. for (var r = 0; r < w.length; r++) {
  17275. this.navList[l].task[r].isLook = w[r].isLook;
  17276. }
  17277. }
  17278. if (
  17279. this.IsLookOpen &&
  17280. !this.navList[this.courseType].task[this.taskCount].isLook
  17281. ) {
  17282. this.openTask(0, 0, "0-0");
  17283. }
  17284. this.$forceUpdate();
  17285. },
  17286. getCourseState(type) {
  17287. let params = {
  17288. cid: this.id,
  17289. };
  17290. this.ajax
  17291. .get(this.$store.state.api + "getCourseState", params)
  17292. .then((res) => {
  17293. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17294. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17295. this.setNavList();
  17296. this.$forceUpdate();
  17297. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17298. this.addCourseState(2);
  17299. } else {
  17300. this.addCourseState(1);
  17301. }
  17302. })
  17303. .catch((err) => {
  17304. console.error(err);
  17305. });
  17306. },
  17307. addCourseState(type) {
  17308. let _state = this.chapInfoList;
  17309. // this.courseType this.taskCount
  17310. if (type == 1 || type == 2) {
  17311. for (var i = 0; i < _state.length; i++) {
  17312. let el = _state[i].chapterInfo[0].taskJson;
  17313. for (var j = 0; j < el.length; j++) {
  17314. // if (i == 0 && j == 0) {
  17315. // el[j].isLook = true;
  17316. // } else {
  17317. // el[j].isLook = false;
  17318. // }
  17319. if (
  17320. this.courseType > i ||
  17321. (this.courseType == i && this.taskCount + 1 > j)
  17322. ) {
  17323. el[j].isLook = true;
  17324. } else {
  17325. el[j].isLook = false;
  17326. }
  17327. }
  17328. }
  17329. }
  17330. let params = [
  17331. {
  17332. cid: this.id,
  17333. state: JSON.stringify(_state),
  17334. },
  17335. ];
  17336. this.ajax
  17337. .post(
  17338. this.$store.state.api +
  17339. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17340. params
  17341. )
  17342. .then((res) => {
  17343. if (this.IsLookOpen) {
  17344. this.setNavList();
  17345. }
  17346. if (type == 3 && type == 2) {
  17347. this.getCourseState(1);
  17348. }
  17349. })
  17350. .catch((err) => {
  17351. console.error(err);
  17352. });
  17353. },
  17354. getHomeWork() {
  17355. let params = {
  17356. cid: this.id,
  17357. stage: this.courseType,
  17358. task: this.taskCount,
  17359. uid: this.userid,
  17360. };
  17361. this.ajax
  17362. .get(this.$store.state.api + "selectWork", params)
  17363. .then((res) => {
  17364. if (res.data[0].length > 0) {
  17365. this.studyJuri = JSON.parse(res.data[0][0].content);
  17366. this.isNoHomeWork = true;
  17367. }
  17368. })
  17369. .catch((err) => {
  17370. console.error(err);
  17371. });
  17372. },
  17373. isAssetTypeAnImage(ext) {
  17374. return (
  17375. [
  17376. "png",
  17377. "jpg",
  17378. "jpeg",
  17379. "bmp",
  17380. "gif",
  17381. "webp",
  17382. "psd",
  17383. "svg",
  17384. "tiff",
  17385. ].indexOf(ext) !== -1
  17386. );
  17387. },
  17388. switchVideo(media) {
  17389. this.playerO = {};
  17390. this.playerOptions.poster = "";
  17391. this.playerOptions.sources[0].src = media;
  17392. this.playerO = this.playerOptions;
  17393. },
  17394. onPlayerPlay() {},
  17395. onPlayerTimeupdate(player) {
  17396. let gklog = player.cache_.currentTime; //当前播放的秒数
  17397. let a = player.cache_.duration; //视频的总时长
  17398. let gklog2 = parseInt(gklog);
  17399. // if(gklog2 == '3'){
  17400. // player.pause()
  17401. // setTimeout(()=>{
  17402. // player.currentTime(gklog2+1)
  17403. // player.play()
  17404. // },1000)
  17405. // }
  17406. console.log(" onPlayerTimeupdate!", gklog);
  17407. console.log(" onPlayerTimeupdate!", gklog2);
  17408. },
  17409. lookVedio(u, i) {
  17410. this.isClickNav = "";
  17411. // this.playerOptions.sources[0].src = u;
  17412. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17413. d.sources[0].src = u;
  17414. this.playerO[this.taskCount] = d;
  17415. this.showType = 0;
  17416. // this.isClickNav = "video" + i;
  17417. this.isClickNav = i;
  17418. this.$forceUpdate();
  17419. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17420. },
  17421. lookText(i, t) {
  17422. this.isClickNav = "";
  17423. // this.text = this.textList[i][t];
  17424. this.text = this.vChapterData[i][t];
  17425. // this.dialogVisible1 = true;
  17426. this.showType = 1;
  17427. // this.isClickNav = "text" + t;
  17428. this.isClickNav = t;
  17429. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17430. },
  17431. lookTools(i, t) {
  17432. this.chapTools = this.chapToolList[i][t];
  17433. this.dialogVisible2 = true;
  17434. },
  17435. async openFile(f,w) {
  17436. this.pptImgUrl = "";
  17437. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17438. if (
  17439. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17440. -1
  17441. ) {
  17442. let _uuurl = await this.checkLink(f);
  17443. this.pptImgUrl =
  17444. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17445. this.showPDF = false;
  17446. this.dialogVisible3 = true;
  17447. } else if (
  17448. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17449. ) {
  17450. this.pptImgUrl = f;
  17451. this.showPDF = true;
  17452. this.dialogVisible3 = true;
  17453. }
  17454. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17455. },
  17456. openTable(f) {
  17457. this.tableJson = JSON.parse(f.works);
  17458. this.dialogVisibleTable2 = true;
  17459. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17460. },
  17461. openWord(f) {
  17462. this.tableJson = JSON.parse(f.works);
  17463. this.dialogVisibleTable3 = true;
  17464. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17465. },
  17466. doUrl(url, i) {
  17467. this.isClickNav = "";
  17468. this.pptImgUrl1 = "";
  17469. this.showType = 2;
  17470. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17471. url = "https://" + url;
  17472. }
  17473. this.pptImgUrl1 = "";
  17474. setTimeout(() => {
  17475. this.pptImgUrl1 = url;
  17476. }, 500);
  17477. // this.isClickNav = "line" + i;
  17478. this.isClickNav = i;
  17479. this.$forceUpdate();
  17480. },
  17481. checkPhoto(f, i) {
  17482. this.showType = 4;
  17483. this.pptImgUrl1 = f.url;
  17484. this.isClickNav = i;
  17485. this.$forceUpdate();
  17486. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17487. },
  17488. async downFile(f, i) {
  17489. this.isClickNav = "";
  17490. this.pptImgUrl1 = "";
  17491. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17492. if (
  17493. a.indexOf(
  17494. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17495. ) != -1
  17496. ) {
  17497. let _uuurl = await this.checkLink(f.url);
  17498. this.pptImgUrl1 =
  17499. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17500. // this.dialogVisible3 = true;
  17501. this.showType = 2;
  17502. } else if (
  17503. this.isAssetTypeAnImage(
  17504. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17505. )
  17506. ) {
  17507. this.showType = 4;
  17508. this.pptImgUrl1 = f.url;
  17509. } else if (
  17510. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17511. "PDF"
  17512. ) {
  17513. this.pptImgUrl1 = f.url;
  17514. // this.dialogVisible3 = true;
  17515. this.showType = 3;
  17516. } else {
  17517. window.open(this.file[i].url);
  17518. }
  17519. // this.isClickNav = "word" + i;
  17520. this.isClickNav = i;
  17521. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17522. },
  17523. downFileList(i) {
  17524. window.open(this.noImgList[i].url);
  17525. },
  17526. openAddWork() {
  17527. this.dialogVisible = true;
  17528. },
  17529. addBzWorks() {
  17530. let params = [
  17531. {
  17532. uid: this.userid,
  17533. cid: this.id,
  17534. stage: this.courseType,
  17535. task: this.taskCount,
  17536. tool: this.toolindex,
  17537. content: JSON.stringify(this.eScore),
  17538. type: 6,
  17539. },
  17540. ];
  17541. this.ajax
  17542. .post(this.$store.state.api + "addCourseWorks", params)
  17543. .then((res) => {
  17544. this.$message({
  17545. message: "提交成功",
  17546. type: "success",
  17547. });
  17548. this.eScore = { eBzText: "", eStar: [] };
  17549. this.studentEvalDialogVisible = false;
  17550. this.selectSWorks();
  17551. })
  17552. .catch((err) => {
  17553. this.$message.error("提交失败");
  17554. console.error(err);
  17555. });
  17556. },
  17557. addBzWorksTeacher() {
  17558. let params = [
  17559. {
  17560. uid: this.sStudent.userid,
  17561. cid: this.id,
  17562. stage: this.courseType,
  17563. task: this.taskCount,
  17564. tool: this.toolindex,
  17565. content: JSON.stringify(this.eScore),
  17566. type: 6,
  17567. },
  17568. ];
  17569. this.ajax
  17570. .post(this.$store.state.api + "addCourseWorks", params)
  17571. .then((res) => {
  17572. this.$message({
  17573. message: "提交成功",
  17574. type: "success",
  17575. });
  17576. this.eScore = { eBzText: "", eStar: [] };
  17577. this.studentEvalDialogVisibleTeacher = false;
  17578. this.selectSWorks();
  17579. })
  17580. .catch((err) => {
  17581. this.$message.error("提交失败");
  17582. console.error(err);
  17583. });
  17584. },
  17585. addStudentAsk() {
  17586. if (!this.radio.length) {
  17587. this.$message.error("请选择选项");
  17588. return;
  17589. }
  17590. for (var i = 0; i < this.askJson.askCount; i++) {
  17591. if (
  17592. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17593. (this.radio[i] !== 0 && !this.radio[i])
  17594. ) {
  17595. this.$message.error("请选择选项");
  17596. return;
  17597. }
  17598. }
  17599. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17600. let params = [
  17601. {
  17602. uid: this.userid,
  17603. cid: this.id,
  17604. stage: this.courseType,
  17605. task: this.taskCount,
  17606. tool: this.toolindex,
  17607. content: JSON.stringify(this.askList),
  17608. type: 2,
  17609. },
  17610. ];
  17611. this.ajax
  17612. .post(this.$store.state.api + "addCourseWorks", params)
  17613. .then((res) => {
  17614. this.$message({
  17615. message: "提交成功",
  17616. type: "success",
  17617. });
  17618. this.askList = [];
  17619. this.dialogVisible5 = false;
  17620. this.selectStudent();
  17621. this.selectSWorks();
  17622. this.selectSLook();
  17623. })
  17624. .catch((err) => {
  17625. this.$message.error("提交失败");
  17626. console.error(err);
  17627. });
  17628. },
  17629. addStudentAskTeacher() {
  17630. if (!this.radio.length) {
  17631. this.$message.error("请选择选项");
  17632. return;
  17633. }
  17634. for (var i = 0; i < this.askJson.askCount; i++) {
  17635. if (
  17636. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17637. (this.radio[i] !== 0 && !this.radio[i])
  17638. ) {
  17639. this.$message.error("请选择选项");
  17640. return;
  17641. }
  17642. }
  17643. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17644. let params = [
  17645. {
  17646. uid: this.sStudent.userid,
  17647. cid: this.id,
  17648. stage: this.courseType,
  17649. task: this.taskCount,
  17650. tool: this.toolindex,
  17651. content: JSON.stringify(this.askList),
  17652. type: 2,
  17653. },
  17654. ];
  17655. this.ajax
  17656. .post(this.$store.state.api + "addCourseWorks", params)
  17657. .then((res) => {
  17658. this.$message({
  17659. message: "提交成功",
  17660. type: "success",
  17661. });
  17662. this.askList = [];
  17663. this.dialogVisible5Teacher = false;
  17664. this.selectStudent();
  17665. this.selectSWorks();
  17666. this.selectSLook();
  17667. })
  17668. .catch((err) => {
  17669. this.$message.error("提交失败");
  17670. console.error(err);
  17671. });
  17672. },
  17673. addStudentTest() {
  17674. if (!this.radio.length) {
  17675. this.$message.error("请选择选项");
  17676. return;
  17677. }
  17678. for (var i = 0; i < this.testJson.testCount; i++) {
  17679. if (
  17680. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17681. (this.radio[i] !== 0 && !this.radio[i])
  17682. ) {
  17683. this.$message.error("请选择选项");
  17684. return;
  17685. }
  17686. }
  17687. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17688. let params = [
  17689. {
  17690. uid: this.userid,
  17691. cid: this.id,
  17692. stage: this.courseType,
  17693. task: this.taskCount,
  17694. tool: this.toolindex,
  17695. content: JSON.stringify(this.askList),
  17696. type: 8,
  17697. },
  17698. ];
  17699. this.ajax
  17700. .post(this.$store.state.api + "addCourseWorks", params)
  17701. .then((res) => {
  17702. this.$message({
  17703. message: "提交成功",
  17704. type: "success",
  17705. });
  17706. this.askList = [];
  17707. this.dialogVisibleChoice = false;
  17708. this.selectStudent();
  17709. this.selectSWorks();
  17710. this.selectSLook();
  17711. })
  17712. .catch((err) => {
  17713. this.$message.error("提交失败");
  17714. console.error(err);
  17715. });
  17716. },
  17717. addStudentTestTeacher() {
  17718. if (!this.radio.length) {
  17719. this.$message.error("请选择选项");
  17720. return;
  17721. }
  17722. for (var i = 0; i < this.testJson.testCount; i++) {
  17723. if (
  17724. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17725. (this.radio[i] !== 0 && !this.radio[i])
  17726. ) {
  17727. this.$message.error("请选择选项");
  17728. return;
  17729. }
  17730. }
  17731. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17732. let params = [
  17733. {
  17734. uid: this.sStudent.userid,
  17735. cid: this.id,
  17736. stage: this.courseType,
  17737. task: this.taskCount,
  17738. tool: this.toolindex,
  17739. content: JSON.stringify(this.askList),
  17740. type: 8,
  17741. },
  17742. ];
  17743. this.ajax
  17744. .post(this.$store.state.api + "addCourseWorks", params)
  17745. .then((res) => {
  17746. this.$message({
  17747. message: "提交成功",
  17748. type: "success",
  17749. });
  17750. this.askList = [];
  17751. this.dialogVisibleChoiceTeacher = false;
  17752. this.selectStudent();
  17753. this.selectSWorks();
  17754. this.selectSLook();
  17755. })
  17756. .catch((err) => {
  17757. this.$message.error("提交失败");
  17758. console.error(err);
  17759. });
  17760. },
  17761. addWork() {
  17762. if (this.studyJuri[0].content == "") {
  17763. this.$message.error("请将信息填写完整");
  17764. return;
  17765. } else if (this.studyJuri[0].cover.length == 0) {
  17766. this.$message.error("请将信息填写完整");
  17767. return;
  17768. } else if (this.studyJuri[0].upVedio.length == 0) {
  17769. this.$message.error("请将信息填写完整");
  17770. return;
  17771. }
  17772. if (this.isNoHomeWork) {
  17773. this.$confirm(
  17774. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17775. "提示",
  17776. {
  17777. confirmButtonText: "确定",
  17778. cancelButtonText: "取消",
  17779. type: "warning",
  17780. }
  17781. )
  17782. .then(() => {
  17783. let params = [
  17784. {
  17785. uid: this.userid,
  17786. cid: this.id,
  17787. stage: this.courseType,
  17788. task: this.taskCount,
  17789. content: JSON.stringify(this.studyJuri),
  17790. },
  17791. ];
  17792. this.ajax
  17793. .post(this.$store.state.api + "addWorks", params)
  17794. .then((res) => {
  17795. this.$message({
  17796. message: "提交成功",
  17797. type: "success",
  17798. });
  17799. this.isNoHomeWork = true;
  17800. this.dialogVisible = false;
  17801. })
  17802. .catch((err) => {
  17803. this.$message.error("提交失败");
  17804. console.error(err);
  17805. });
  17806. })
  17807. .catch(() => {});
  17808. } else {
  17809. let params = [
  17810. {
  17811. uid: this.userid,
  17812. cid: this.id,
  17813. stage: this.courseType,
  17814. task: this.taskCount,
  17815. content: JSON.stringify(this.studyJuri),
  17816. },
  17817. ];
  17818. this.ajax
  17819. .post(this.$store.state.api + "addWorks", params)
  17820. .then((res) => {
  17821. this.$message({
  17822. message: "提交成功",
  17823. type: "success",
  17824. });
  17825. this.isNoHomeWork = true;
  17826. this.dialogVisible = false;
  17827. })
  17828. .catch((err) => {
  17829. this.$message.error("提交失败");
  17830. console.error(err);
  17831. });
  17832. }
  17833. },
  17834. selectCount() {
  17835. let params = {
  17836. cid: this.id,
  17837. chid: this.courseType,
  17838. uid: this.userid,
  17839. };
  17840. this.ajax
  17841. .get(this.$store.state.api + "selectToolsCount", params)
  17842. .then((res) => {
  17843. for (var i = 0; i < res.data[0].length; i++) {
  17844. if (res.data[0][i].tools == 1) {
  17845. this.wbCount = res.data[0][i].count;
  17846. } else if (res.data[0][i].tools == 2) {
  17847. this.wordCount = res.data[0][i].count;
  17848. } else if (res.data[0][i].tools == 3) {
  17849. this.mindCount = res.data[0][i].count;
  17850. } else if (res.data[0][i].tools == 4) {
  17851. this.askCount = res.data[0][i].count;
  17852. } else if (res.data[0][i].tools == 6) {
  17853. this.noteCount = res.data[0][i].count;
  17854. } else if (res.data[0][i].tools == 7) {
  17855. this.mindNetWorkCount = res.data[0][i].count;
  17856. } else if (res.data[0][i].tools == 8) {
  17857. this.libraryCount = res.data[0][i].count;
  17858. } else if (res.data[0][i].tools == 16) {
  17859. this.workCount = res.data[0][i].count;
  17860. } else if (res.data[0][i].tools == 10) {
  17861. this.timeCount = res.data[0][i].count;
  17862. } else if (res.data[0][i].tools == 15) {
  17863. this.answerCount = res.data[0][i].count;
  17864. } else if (res.data[0][i].tools == 18) {
  17865. this.trainCount = res.data[0][i].count;
  17866. }
  17867. }
  17868. })
  17869. .catch((err) => {
  17870. console.error(err);
  17871. });
  17872. },
  17873. openTools(t, i, index, c, sName,id) {
  17874. var z = JSON.parse(c);
  17875. this.noteName = sName;
  17876. if (t == 4) {
  17877. this.radio = [];
  17878. this.isAnswer = false;
  17879. let b = z[0].anwer;
  17880. this.radio = b;
  17881. this.askJson = z[0].askJson;
  17882. this.isAnswer = true;
  17883. this.dialogVisible5 = true;
  17884. } else if (t == 45) {
  17885. this.radio = [];
  17886. this.isAnswer = false;
  17887. let b = z[0].anwer;
  17888. this.radio = b;
  17889. this.testJson = z[0].testJson;
  17890. this.isAnswer = true;
  17891. this.dialogVisibleChoice = true;
  17892. }else if(t == 69){
  17893. this.oldEnglishJson1 = {}
  17894. this.oldEnglishJson = {}
  17895. this.englishList1 = {}
  17896. this.newEngIndex = -1;
  17897. this.isNoUserid = false;
  17898. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17899. .toolChoose[i].englishList;
  17900. this.oldEnglishJson = z;
  17901. this.engWid = id;
  17902. this.newEnglishList = { engTitle:"",engText:"" }
  17903. this.newEnglishList1 = []
  17904. this.selectEngC(id,z);
  17905. }else if(t == 62){
  17906. this.videoType = 1;
  17907. this.videoJson = {};
  17908. this.videoJson = JSON.parse(c);
  17909. // this.videoJson =
  17910. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17911. // index
  17912. // ].toolChoose[i].videoJson;
  17913. this.dialogVisibleVideo = true;
  17914. //this.dialog
  17915. }
  17916. // else if (t == 15) {
  17917. // this.answerQ = "";
  17918. // this.questionAnswer = "";
  17919. // this.answerQ = z[0].answerTitle;
  17920. // this.questionAnswer = z[0].answer;
  17921. // this.answerDialogVisible = true;
  17922. // }
  17923. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17924. },
  17925. fastText(p, t) {
  17926. if (t == 1) {
  17927. this.commentText += p;
  17928. } else {
  17929. this.eScore.eBzText += p;
  17930. }
  17931. },
  17932. addTools(t, i, index) {
  17933. var a = 0;
  17934. // this.taskCount = index;
  17935. this.toolindex = i;
  17936. if (t == 1) {
  17937. if (this.wbCount > 0) {
  17938. this.updateCount(this.wbCount, t);
  17939. } else {
  17940. this.wbCount++;
  17941. a = this.wbCount;
  17942. this.toolsCount(a, t);
  17943. }
  17944. window.parent.postMessage(
  17945. {
  17946. tools: "1",
  17947. cid: this.id,
  17948. stage: this.courseType,
  17949. task: this.taskCount,
  17950. tool: i,
  17951. },
  17952. "*"
  17953. );
  17954. } else if (t == 2) {
  17955. if (this.wordCount > 0) {
  17956. this.updateCount(this.wordCount, t);
  17957. } else {
  17958. this.wordCount++;
  17959. a = this.wordCount;
  17960. this.toolsCount(a, t);
  17961. }
  17962. window.parent.postMessage({ tools: "2" }, "*");
  17963. } else if (t == 3) {
  17964. if (this.mindCount > 0) {
  17965. this.updateCount(this.mindCount, t);
  17966. } else {
  17967. this.mindCount++;
  17968. a = this.mindCount;
  17969. this.toolsCount(a, t);
  17970. }
  17971. window.parent.postMessage(
  17972. {
  17973. tools: "3",
  17974. cid: this.id,
  17975. stage: this.courseType,
  17976. task: this.taskCount,
  17977. tool: i,
  17978. },
  17979. "*"
  17980. );
  17981. } else if (t == 4) {
  17982. this.radio = [];
  17983. this.noteName = "";
  17984. this.isAnswer = false;
  17985. if (this.askCount > 0) {
  17986. this.updateCount(this.askCount, t);
  17987. } else {
  17988. this.askCount++;
  17989. a = this.askCount;
  17990. this.toolsCount(a, t);
  17991. }
  17992. if (!this.dialogVisible2) {
  17993. this.askJson.askJson =
  17994. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17995. index
  17996. ].toolChoose[i].askJson;
  17997. this.askJson.askTitle =
  17998. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17999. index
  18000. ].toolChoose[i].askTitle;
  18001. this.askJson.askCount =
  18002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18003. index
  18004. ].toolChoose[i].askCount;
  18005. } else {
  18006. this.askJson.askJson = this.chapTools.askJson.askJson;
  18007. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18008. this.askJson.askCount = this.chapTools.askJson.askCount;
  18009. }
  18010. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18011. if (this.askJson.askJson[k].type == "2") {
  18012. this.radio.push([]);
  18013. } else {
  18014. this.radio.push("");
  18015. }
  18016. }
  18017. this.dialogVisible5 = true;
  18018. // window.parent.postMessage({ tools: "4" }, "*");
  18019. } else if (t == 45) {
  18020. this.noteName = "";
  18021. this.radio = [];
  18022. this.isAnswer = false;
  18023. if (this.askCount > 0) {
  18024. this.updateCount(this.askCount, t);
  18025. } else {
  18026. this.askCount++;
  18027. a = this.askCount;
  18028. this.toolsCount(a, t);
  18029. }
  18030. this.testJson =
  18031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18032. index
  18033. ].toolChoose[i].testJson;
  18034. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18035. if (this.testJson.testJson[k].type == "2") {
  18036. this.radio.push([]);
  18037. } else {
  18038. this.radio.push("");
  18039. }
  18040. }
  18041. this.dialogVisibleChoice = true;
  18042. // window.parent.postMessage({ tools: "4" }, "*");
  18043. } else if (t == 5) {
  18044. if (this.scoreCount > 0) {
  18045. this.updateCount(this.scoreCount, t);
  18046. } else {
  18047. this.scoreCount++;
  18048. a = this.scoreCount;
  18049. this.toolsCount(a, t);
  18050. }
  18051. this.dialogVisible4 = true;
  18052. // window.parent.postMessage({ tools: "5" }, "*");
  18053. } else if (t == 6) {
  18054. if (this.noteCount > 0) {
  18055. this.updateCount(this.noteCount, t);
  18056. } else {
  18057. this.noteCount++;
  18058. a = this.noteCount;
  18059. this.toolsCount(a, t);
  18060. }
  18061. window.parent.postMessage(
  18062. {
  18063. tools: "6",
  18064. cid: this.id,
  18065. stage: this.courseType,
  18066. task: this.taskCount,
  18067. tool: i,
  18068. },
  18069. "*"
  18070. );
  18071. } else if (t == 7) {
  18072. if (this.mindNetWorkCount > 0) {
  18073. this.updateCount(this.mindNetWorkCount, t);
  18074. } else {
  18075. this.mindNetWorkCount++;
  18076. a = this.mindNetWorkCount;
  18077. this.toolsCount(a, t);
  18078. }
  18079. window.parent.postMessage(
  18080. {
  18081. tools: "7",
  18082. cid: this.id,
  18083. stage: this.courseType,
  18084. task: this.taskCount,
  18085. tool: i,
  18086. },
  18087. "*"
  18088. );
  18089. } else if (t == 16) {
  18090. if (this.workCount > 0) {
  18091. this.updateCount(this.workCount, t);
  18092. } else {
  18093. this.workCount++;
  18094. a = this.workCount;
  18095. this.toolsCount(a, t);
  18096. }
  18097. this.dialogVisible = true;
  18098. } else if (t == 50) {
  18099. if (this.tType == 2) {
  18100. this.$message.error("不支持学生使用");
  18101. return;
  18102. }
  18103. this.plworkFile = [];
  18104. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18105. if (!this.uploadCid) {
  18106. this.$message.error(
  18107. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18108. );
  18109. return;
  18110. }
  18111. // this.uploadCid =
  18112. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18113. // index
  18114. // ].toolChoose[i].uploadJson[0];
  18115. this.selectUploadStudent(2);
  18116. } else if (t == 8) {
  18117. if (this.libraryCount > 0) {
  18118. this.updateCount(this.libraryCount, t);
  18119. } else {
  18120. this.libraryCount++;
  18121. a = this.libraryCount;
  18122. this.toolsCount(a, t);
  18123. }
  18124. window.parent.postMessage({ tools: "8" }, "*");
  18125. } else if (t == 17) {
  18126. if (this.libraryCount > 0) {
  18127. this.updateCount(this.libraryCount, t);
  18128. } else {
  18129. this.libraryCount++;
  18130. a = this.libraryCount;
  18131. this.toolsCount(a, t);
  18132. }
  18133. window.parent.postMessage({ tools: "17" }, "*");
  18134. } else if (t == 18) {
  18135. if (this.trainCount > 0) {
  18136. this.updateCount(this.trainCount, t);
  18137. } else {
  18138. this.trainCount++;
  18139. a = this.trainCount;
  18140. this.toolsCount(a, t);
  18141. }
  18142. window.parent.postMessage({ tools: "18" }, "*");
  18143. } else if (t == 10) {
  18144. if (this.timeCount > 0) {
  18145. this.updateCount(this.timeCount, t);
  18146. } else {
  18147. this.timeCount++;
  18148. a = this.timeCount;
  18149. this.toolsCount(a, t);
  18150. }
  18151. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18152. .taskJson[index].toolChoose[i].preTime
  18153. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18154. .toolChoose[i].preTime
  18155. : "";
  18156. this.timeDialogVisible = true;
  18157. } else if (t == 15) {
  18158. this.answerQ = "";
  18159. this.questionAnswer = "";
  18160. if (this.answerCount > 0) {
  18161. this.updateCount(this.answerCount, t);
  18162. } else {
  18163. this.answerCount++;
  18164. a = this.answerCount;
  18165. this.toolsCount(a, t);
  18166. }
  18167. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18168. .taskJson[index].toolChoose[i].answerQ
  18169. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18170. .toolChoose[i].answerQ
  18171. : "";
  18172. this.answerDialogVisible = true;
  18173. } else if (t == 21) {
  18174. window.parent.postMessage({ tools: "21" }, "*");
  18175. } else if (t == 22) {
  18176. window.parent.postMessage({ tools: "22" }, "*");
  18177. } else if (t == 23) {
  18178. window.parent.postMessage({ tools: "23" }, "*");
  18179. } else if (t == 24) {
  18180. window.parent.postMessage({ tools: "24" }, "*");
  18181. } else if (t == 25) {
  18182. window.parent.postMessage({ tools: "25" }, "*");
  18183. } else if (t == 31) {
  18184. window.parent.postMessage({ tools: "31" }, "*");
  18185. } else if (t == 28) {
  18186. window.parent.postMessage({ tools: "28" }, "*");
  18187. } else if (t == 37) {
  18188. window.parent.postMessage({ tools: "37" }, "*");
  18189. } else if (t == 38) {
  18190. window.parent.postMessage({ tools: "38" }, "*");
  18191. } else if (t == 39) {
  18192. window.parent.postMessage({ tools: "39" }, "*");
  18193. } else if (t == 32) {
  18194. window.parent.postMessage({ tools: "32" }, "*");
  18195. } else if (t == 66) {
  18196. window.parent.postMessage({ tools: "66" }, "*");
  18197. } else if (t == 67) {
  18198. window.parent.postMessage({ tools: "67" }, "*");
  18199. } else if (t == 68) {
  18200. window.parent.postMessage({ tools: "68" }, "*");
  18201. } else if (t == 57) {
  18202. // window.parent.postMessage({ tools: "57" }, "*");
  18203. window.parent.postMessage(
  18204. {
  18205. tools: "57u",
  18206. cid: this.id,
  18207. stage: this.courseType,
  18208. task: this.taskCount,
  18209. tool: i,
  18210. },
  18211. "*"
  18212. );
  18213. } else if (t == 58) {
  18214. window.parent.postMessage({ tools: "58" }, "*");
  18215. } else if (t == 59) {
  18216. window.parent.postMessage({ tools: "59" }, "*");
  18217. } else if (t == 60) {
  18218. window.parent.postMessage({ tools: "60" }, "*");
  18219. } else if (t == 61) {
  18220. window.parent.postMessage({ tools: "61" }, "*");
  18221. } else if (t == 63) {
  18222. window.parent.postMessage({ tools: "63" }, "*");
  18223. } else if (t == 71) {
  18224. window.parent.postMessage({ tools: "71" }, "*");
  18225. } else if (t == 69) {
  18226. if (this.worksStudent[i].length) {
  18227. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18228. if (this.userid == this.worksStudent[i][k].userid) {
  18229. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18230. break;
  18231. } else {
  18232. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18233. }
  18234. }
  18235. } else {
  18236. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18237. }
  18238. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18239. .taskJson[index].toolChoose[i].englishList
  18240. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18241. .toolChoose[i].englishList
  18242. : {};
  18243. this.englishToolIndex = i;
  18244. this.myAnList = this.myAnswerList1;
  18245. this.engDialogVisible = true;
  18246. } else if (t == 70) {
  18247. if (this.worksStudent[i].length) {
  18248. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18249. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18250. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18251. break;
  18252. } else {
  18253. this.englishVoiceJsonWork = [];
  18254. }
  18255. }
  18256. } else {
  18257. this.englishVoiceJsonWork = [];
  18258. }
  18259. let englishVoiceJson = {}
  18260. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18261. .taskJson[index].toolChoose[i].englishVoiceJson
  18262. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18263. .toolChoose[i].englishVoiceJson
  18264. : {};
  18265. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18266. this.EnglishVoiceDialog = true;
  18267. } else if (t == 65) {
  18268. if (this.tType == 2) {
  18269. this.$message.error("不支持学生使用");
  18270. return;
  18271. }
  18272. this.uploadCid = this.tcid;
  18273. if (!this.uploadCid) {
  18274. this.$message.error(
  18275. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18276. );
  18277. return;
  18278. }
  18279. this.selectPickStudent();
  18280. } else if (t == 26) {
  18281. window.parent.postMessage(
  18282. {
  18283. tools: "26",
  18284. cid: this.id,
  18285. stage: this.courseType,
  18286. task: this.taskCount,
  18287. tool: i,
  18288. },
  18289. "*"
  18290. );
  18291. } else if (t == 40) {
  18292. if (this.evalCount > 0) {
  18293. this.updateCount(this.evalCount, t);
  18294. } else {
  18295. this.evalCount++;
  18296. a = this.evalCount;
  18297. this.toolsCount(a, t);
  18298. }
  18299. this.eScore = { eBzText: "", eStar: [] };
  18300. if (this.worksStudent[i].length) {
  18301. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18302. if (this.userid == this.worksStudent[i][k].userid) {
  18303. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18304. this.rateJson =
  18305. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18306. index
  18307. ].toolChoose[i].rateJson;
  18308. break;
  18309. } else {
  18310. this.rateJson =
  18311. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18312. index
  18313. ].toolChoose[i].rateJson;
  18314. }
  18315. }
  18316. } else {
  18317. this.rateJson =
  18318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18319. index
  18320. ].toolChoose[i].rateJson;
  18321. }
  18322. this.isStar = false;
  18323. this.studentEvalDialogVisible = true;
  18324. } else if (t == 41) {
  18325. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18326. .taskJson[index].toolChoose[i].selectJson
  18327. ? JSON.parse(
  18328. JSON.stringify(
  18329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18330. index
  18331. ].toolChoose[i].selectJson
  18332. )
  18333. )
  18334. : { url: "", select: [], answer: [] };
  18335. if (this.worksStudent[i].length) {
  18336. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18337. if (this.userid == this.worksStudent[i][k].userid) {
  18338. var a = this.worksStudent[i][k].works.split(",");
  18339. for (var ki = 0; ki < a.length; ki++) {
  18340. a[ki] = parseInt(a[ki]);
  18341. }
  18342. this.selectAnswer = {
  18343. answer: a,
  18344. stu: this.worksStudent[i][k].sName,
  18345. };
  18346. break;
  18347. } else {
  18348. this.selectAnswer = { answer: [], stu: "" };
  18349. }
  18350. }
  18351. } else {
  18352. this.selectAnswer = { answer: [], stu: "" };
  18353. }
  18354. this.isSelect = false;
  18355. this.dialogVisibleSelect = true;
  18356. } else if (t == 44) {
  18357. window.parent.postMessage({ tools: "44" }, "*");
  18358. } else if (t == 47) {
  18359. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18360. .taskJson[index].toolChoose[i].sentenceList
  18361. ? JSON.parse(
  18362. JSON.stringify(
  18363. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18364. index
  18365. ].toolChoose[i].sentenceList
  18366. )
  18367. )
  18368. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18369. for (var q = 0; q < this.sentenceList.length; q++) {
  18370. this.sentenceList[q].chooseSenList = [];
  18371. this.sentenceList[q].addChangeSen = [];
  18372. this.sentenceList[q].addChangeSen = JSON.parse(
  18373. JSON.stringify(this.sentenceList[q].addSentence)
  18374. );
  18375. this.sentenceList[q].chooseSenList.length =
  18376. this.sentenceList[q].rightAnswer.length;
  18377. }
  18378. this.dialogVisibleSentence = true;
  18379. } else if (t == 48) {
  18380. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18381. .taskJson[index].toolChoose[i].tableJson
  18382. ? JSON.parse(
  18383. JSON.stringify(
  18384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18385. index
  18386. ].toolChoose[i].tableJson
  18387. )
  18388. )
  18389. : { text: "" };
  18390. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18391. if (this.worksStudent[i].length) {
  18392. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18393. if (this.userid == this.worksStudent[i][k].userid) {
  18394. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18395. break;
  18396. }
  18397. }
  18398. }
  18399. this.dialogVisibleTable = true;
  18400. } else if (t == 52) {
  18401. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18402. .taskJson[index].toolChoose[i].wordJson
  18403. ? JSON.parse(
  18404. JSON.stringify(
  18405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18406. index
  18407. ].toolChoose[i].wordJson
  18408. )
  18409. )
  18410. : { text: "" };
  18411. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18412. if (this.worksStudent[i].length) {
  18413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18414. if (this.userid == this.worksStudent[i][k].userid) {
  18415. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18416. break;
  18417. }
  18418. }
  18419. }
  18420. this.dialogVisibleWord = true;
  18421. } else if (t == 49) {
  18422. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18423. return
  18424. }
  18425. this.groupJson =
  18426. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18427. index
  18428. ].toolChoose[i].groupJson;
  18429. this.islock = this.groupJson.islock == 1 ? true : false;
  18430. this.dialogVisibleGroup = true;
  18431. } else if (t == 62) {
  18432. this.videoType = 0;
  18433. this.videoJson = {};
  18434. this.videoJson =
  18435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18436. index
  18437. ].toolChoose[i].videoJson;
  18438. this.dialogVisibleVideo = true;
  18439. }
  18440. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18441. },
  18442. teacherWorkSubmit(t, i, index, s) {
  18443. this.sStudent = s;
  18444. this.toolindex = i;
  18445. this.sTool = t;
  18446. if (this.tType !== "1" && this.tType !== "4") {
  18447. return;
  18448. }
  18449. if (t == 16 || t == 32 || t == 50) {
  18450. this.dialogVisibleWorks = true;
  18451. } else if (t == 15) {
  18452. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18453. .taskJson[index].toolChoose[i].answerQ
  18454. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18455. .toolChoose[i].answerQ
  18456. : "";
  18457. this.questionAnswer = "";
  18458. this.answerDialogVisibleTeacher = true; //问答
  18459. } else if (t == 52) {
  18460. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18461. .taskJson[index].toolChoose[i].wordJson
  18462. ? JSON.parse(
  18463. JSON.stringify(
  18464. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18465. index
  18466. ].toolChoose[i].wordJson
  18467. )
  18468. )
  18469. : { text: "" };
  18470. if (this.worksStudent[i].length) {
  18471. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18472. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18473. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18474. break;
  18475. }
  18476. }
  18477. }
  18478. this.dialogVisibleWordTeacher = true; //文档
  18479. } else if (t == 4) {
  18480. this.radio = [];
  18481. this.noteName = "";
  18482. this.isAnswer = false;
  18483. if (this.askCount > 0) {
  18484. this.updateCount(this.askCount, t);
  18485. } else {
  18486. this.askCount++;
  18487. a = this.askCount;
  18488. this.toolsCount(a, t);
  18489. }
  18490. if (!this.dialogVisible2) {
  18491. this.askJson.askJson =
  18492. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18493. index
  18494. ].toolChoose[i].askJson;
  18495. this.askJson.askTitle =
  18496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18497. index
  18498. ].toolChoose[i].askTitle;
  18499. this.askJson.askCount =
  18500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18501. index
  18502. ].toolChoose[i].askCount;
  18503. } else {
  18504. this.askJson.askJson = this.chapTools.askJson.askJson;
  18505. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18506. this.askJson.askCount = this.chapTools.askJson.askCount;
  18507. }
  18508. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18509. if (this.askJson.askJson[k].type == "2") {
  18510. this.radio.push([]);
  18511. } else {
  18512. this.radio.push("");
  18513. }
  18514. }
  18515. this.dialogVisible5Teacher = true;
  18516. } else if (t == 45) {
  18517. this.noteName = "";
  18518. this.radio = [];
  18519. this.isAnswer = false;
  18520. if (this.askCount > 0) {
  18521. this.updateCount(this.askCount, t);
  18522. } else {
  18523. this.askCount++;
  18524. a = this.askCount;
  18525. this.toolsCount(a, t);
  18526. }
  18527. this.testJson =
  18528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18529. index
  18530. ].toolChoose[i].testJson;
  18531. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18532. if (this.testJson.testJson[k].type == "2") {
  18533. this.radio.push([]);
  18534. } else {
  18535. this.radio.push("");
  18536. }
  18537. }
  18538. this.dialogVisibleChoiceTeacher = true;
  18539. } else if (t == 41) {
  18540. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18541. .taskJson[index].toolChoose[i].selectJson
  18542. ? JSON.parse(
  18543. JSON.stringify(
  18544. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18545. index
  18546. ].toolChoose[i].selectJson
  18547. )
  18548. )
  18549. : { url: "", select: [], answer: [] };
  18550. if (this.worksStudent[i].length) {
  18551. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18552. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18553. var a = this.worksStudent[i][k].works.split(",");
  18554. for (var ki = 0; ki < a.length; ki++) {
  18555. a[ki] = parseInt(a[ki]);
  18556. }
  18557. this.selectAnswer = {
  18558. answer: a,
  18559. stu: this.worksStudent[i][k].sName,
  18560. };
  18561. break;
  18562. } else {
  18563. this.selectAnswer = { answer: [], stu: "" };
  18564. }
  18565. }
  18566. } else {
  18567. this.selectAnswer = { answer: [], stu: "" };
  18568. }
  18569. this.isSelect = false;
  18570. this.dialogVisibleSelectTeacher = true;
  18571. } else if (t == 47) {
  18572. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18573. .taskJson[index].toolChoose[i].sentenceList
  18574. ? JSON.parse(
  18575. JSON.stringify(
  18576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18577. index
  18578. ].toolChoose[i].sentenceList
  18579. )
  18580. )
  18581. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18582. for (var q = 0; q < this.sentenceList.length; q++) {
  18583. this.sentenceList[q].chooseSenList = [];
  18584. this.sentenceList[q].addChangeSen = [];
  18585. this.sentenceList[q].addChangeSen = JSON.parse(
  18586. JSON.stringify(this.sentenceList[q].addSentence)
  18587. );
  18588. this.sentenceList[q].chooseSenList.length =
  18589. this.sentenceList[q].rightAnswer.length;
  18590. }
  18591. this.dialogVisibleSentenceTeacher = true;
  18592. } else if (t == 48) {
  18593. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18594. .taskJson[index].toolChoose[i].tableJson
  18595. ? JSON.parse(
  18596. JSON.stringify(
  18597. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18598. index
  18599. ].toolChoose[i].tableJson
  18600. )
  18601. )
  18602. : { text: "" };
  18603. if (this.worksStudent[i].length) {
  18604. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18605. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18606. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18607. break;
  18608. }
  18609. }
  18610. }
  18611. this.dialogVisibleTableTeacher = true;
  18612. } else if (t == 40) {
  18613. if (this.evalCount > 0) {
  18614. this.updateCount(this.evalCount, t);
  18615. } else {
  18616. this.evalCount++;
  18617. a = this.evalCount;
  18618. this.toolsCount(a, t);
  18619. }
  18620. this.eScore = { eBzText: "", eStar: [] };
  18621. if (this.worksStudent[i].length) {
  18622. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18623. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18624. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18625. this.rateJson =
  18626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18627. index
  18628. ].toolChoose[i].rateJson;
  18629. break;
  18630. } else {
  18631. this.rateJson =
  18632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18633. index
  18634. ].toolChoose[i].rateJson;
  18635. }
  18636. }
  18637. } else {
  18638. this.rateJson =
  18639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18640. index
  18641. ].toolChoose[i].rateJson;
  18642. }
  18643. this.isStar = false;
  18644. this.studentEvalDialogVisibleTeacher = true;
  18645. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18646. window.parent.postMessage(
  18647. {
  18648. tools: t + "teacher",
  18649. cid: this.id,
  18650. stage: this.courseType,
  18651. task: this.taskCount,
  18652. tool: i,
  18653. student: this.sStudent,
  18654. },
  18655. "*"
  18656. );
  18657. }
  18658. },
  18659. openCocoPi(tool, i, uid, uname) {
  18660. let student = {
  18661. userid: uid,
  18662. student: uname,
  18663. };
  18664. if (tool == 57) {
  18665. window.parent.postMessage(
  18666. {
  18667. tools: tool + "teacher",
  18668. cid: this.id,
  18669. stage: this.courseType,
  18670. task: this.taskCount,
  18671. tool: i,
  18672. student: student,
  18673. },
  18674. "*"
  18675. );
  18676. }
  18677. },
  18678. setRightAnswer(s, i, j) {
  18679. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18680. if (
  18681. this.sentenceList[i].chooseSenList[q] == undefined ||
  18682. this.sentenceList[i].chooseSenList[q] == ""
  18683. ) {
  18684. this.sentenceList[i].chooseSenList[q] = s;
  18685. this.sentenceList[i].addChangeSen[j] = "";
  18686. break;
  18687. }
  18688. }
  18689. this.$forceUpdate();
  18690. },
  18691. returnCard(r, i, j) {
  18692. var a = this.sentenceList[i].addSentence.indexOf(r);
  18693. this.sentenceList[i].chooseSenList[j] = "";
  18694. this.sentenceList[i].addChangeSen[a] = r;
  18695. this.$forceUpdate();
  18696. },
  18697. // addSentenceTool() {
  18698. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18699. // this.taskCount
  18700. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18701. // this.sentenceList = [
  18702. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18703. // ];
  18704. // this.dialogVisibleSentence = false;
  18705. // },
  18706. toolsCount(a, t) {
  18707. let params = {
  18708. cid: this.id,
  18709. chid: this.courseType,
  18710. uid: this.userid,
  18711. tid: t,
  18712. count: a,
  18713. };
  18714. this.ajax
  18715. .get(this.$store.state.api + "insertToolsCount", params)
  18716. .then((res) => {
  18717. this.selectCount();
  18718. })
  18719. .catch((err) => {
  18720. console.error(err);
  18721. });
  18722. },
  18723. updateCount(c, t) {
  18724. c++;
  18725. let params = {
  18726. cid: this.id,
  18727. chid: this.courseType,
  18728. uid: this.userid,
  18729. tid: t,
  18730. count: c,
  18731. };
  18732. this.ajax
  18733. .get(this.$store.state.api + "updateToolsCount", params)
  18734. .then((res) => {
  18735. this.selectCount();
  18736. })
  18737. .catch((err) => {
  18738. console.error(err);
  18739. });
  18740. },
  18741. checkEva() {
  18742. if (this.evalua != "") {
  18743. for (var i = 0; i < this.evaJuri.length; i++) {
  18744. if (this.evalua == this.evaJuri[i].id) {
  18745. this.eTitle = this.evaJuri[i].title;
  18746. this.eJson = JSON.parse(this.evaJuri[i].content);
  18747. }
  18748. }
  18749. this.$forceUpdate();
  18750. setTimeout(() => {
  18751. this.setMindData();
  18752. }, 0);
  18753. }
  18754. },
  18755. selectEva() {
  18756. let params = {
  18757. oid: this.oid,
  18758. };
  18759. this.ajax
  18760. .get(this.$store.state.api + "selectAllEvaluation", params)
  18761. .then((res) => {
  18762. this.evaJuri = res.data[0];
  18763. })
  18764. .catch((err) => {
  18765. console.error(err);
  18766. });
  18767. },
  18768. setMindData() {
  18769. this.data.data = [];
  18770. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18771. let _eJson = Object.keys(this.eJson);
  18772. let _e = this.eJson;
  18773. for (let i = 0; i < _eJson.length; i++) {
  18774. let element = _e[_eJson[i]];
  18775. this.data.data.push({
  18776. id: element.id,
  18777. parentid: "root",
  18778. topic: element.name,
  18779. });
  18780. let _eJsonc = Object.keys(element.child);
  18781. let _e2 = element.child;
  18782. for (let j = 0; j < _eJsonc.length; j++) {
  18783. let _ec = _e2[_eJsonc[j]];
  18784. this.data.data.push({
  18785. id: _ec.id,
  18786. parentid: element.id,
  18787. topic: _ec.name,
  18788. });
  18789. let _eJsonz = Object.keys(_ec.child);
  18790. let _e3 = _ec.child;
  18791. for (let z = 0; z < _eJsonz.length; z++) {
  18792. let _ez = _e3[_eJsonz[z]];
  18793. this.data.data.push({
  18794. id: _ez.id,
  18795. parentid: _ec.id,
  18796. topic: _ez.name,
  18797. });
  18798. }
  18799. }
  18800. }
  18801. this.$forceUpdate();
  18802. },
  18803. checkFileFull(type, url) {
  18804. this.fullDialogVisible = true;
  18805. this.fulltype = type;
  18806. this.fullUrl = url;
  18807. },
  18808. async checkFileFull1(t, f) {
  18809. this.fullDialogVisible = true;
  18810. if (t == 6) {
  18811. this.fulltype = 1;
  18812. this.fullUrl = JSON.parse(JSON.stringify(f));
  18813. } else if (t == 8) {
  18814. this.fulltype = 2;
  18815. this.fullUrl = f.url;
  18816. } else if (
  18817. t == 3 &&
  18818. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18819. "PDF"
  18820. ) {
  18821. this.fulltype = 3;
  18822. this.fullUrl = f.url;
  18823. } else if (t == 3) {
  18824. this.fulltype = 2;
  18825. let _uuurl = await this.checkLink(f.url);
  18826. this.fullUrl =
  18827. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18828. }
  18829. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18830. },
  18831. openSname(n, id, i, uid) {
  18832. this.snameWid = id;
  18833. this.worksSName = n;
  18834. this.worksSid = uid == n ? "" : uid;
  18835. this.toolindex = i;
  18836. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18837. if (!this.uploadCid) {
  18838. this.$message.error(
  18839. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18840. );
  18841. return;
  18842. }
  18843. this.selectUploadStudent(1);
  18844. },
  18845. updateName() {
  18846. let params = {
  18847. n: this.worksSName,
  18848. cid: this.snameWid,
  18849. };
  18850. this.ajax
  18851. .get(this.$store.state.api + "updateCourseWorksName", params)
  18852. .then((res) => {
  18853. this.$message({
  18854. message: "修改成功",
  18855. type: "success",
  18856. });
  18857. this.dialogVisibleSname = false;
  18858. this.getCourseDetail(2);
  18859. this.snameWid = "";
  18860. this.worksSName = "";
  18861. })
  18862. .catch((err) => {
  18863. console.error(err);
  18864. });
  18865. },
  18866. downloadFile2(f) {
  18867. // const loading = this.$loading.service({
  18868. // background: "rgba(255, 255, 255, 0.7)",
  18869. // target: document.body,
  18870. // text: "文件加载中...",
  18871. // });
  18872. // let url2 = f.url;
  18873. // let _url2 = "";
  18874. // if (
  18875. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18876. // ) {
  18877. // _url2 = url2.split(
  18878. // "https://view.officeapps.live.com/op/view.aspx?src="
  18879. // )[1];
  18880. // } else {
  18881. // _url2 = url2;
  18882. // }
  18883. // let params = {
  18884. // url: _url2,
  18885. // name: f.name,
  18886. // };
  18887. // this.ajax
  18888. // .get(this.$store.state.api + "download", params)
  18889. // .then((res) => {
  18890. // loading.close();
  18891. // let content = res.data.data.data;
  18892. // let ab = new ArrayBuffer(content.length);
  18893. // let view = new Uint8Array(ab);
  18894. // for (var i = 0; i < content.length; ++i) {
  18895. // view[i] = content[i];
  18896. // }
  18897. // let elink = document.createElement("a");
  18898. // elink.download = f.name;
  18899. // elink.style.display = "none";
  18900. // let blob = new Blob([ab], {
  18901. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18902. // });
  18903. // elink.href = URL.createObjectURL(blob);
  18904. // document.body.appendChild(elink);
  18905. // elink.click();
  18906. // document.body.removeChild(elink);
  18907. // })
  18908. // .catch((err) => {
  18909. // loading.close();
  18910. // console.error(err);
  18911. // });
  18912. var credentials = {
  18913. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18914. secretAccessKey: "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",
  18915. }; //秘钥形式的登录上传
  18916. window.AWS.config.update(credentials);
  18917. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18918. let url2 = f.url;
  18919. let _url2 = "";
  18920. if (
  18921. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18922. ) {
  18923. _url2 = url2.split(
  18924. "https://view.officeapps.live.com/op/view.aspx?src="
  18925. )[1];
  18926. } else {
  18927. _url2 = url2;
  18928. }
  18929. let _this = this;
  18930. _this.downLoading = true
  18931. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18932. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18933. var params = {
  18934. Bucket: "ccrb",
  18935. Key: name
  18936. };
  18937. s3.getObject(params, function (err, data) {
  18938. _this.downLoading = false
  18939. if (err) console.log(err, err.stack); // an error occurred
  18940. else {
  18941. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18942. let a = document.createElement("a");
  18943. a.name = f.name;
  18944. a.href = url;
  18945. a.download = f.name;
  18946. a.click();
  18947. console.log(data);
  18948. } // sxuccessful response
  18949. });
  18950. return;
  18951. let url = f.url;
  18952. let _url = "";
  18953. if (
  18954. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18955. ) {
  18956. _url = url.split(
  18957. "https://view.officeapps.live.com/op/view.aspx?src="
  18958. )[1];
  18959. } else {
  18960. _url = url;
  18961. }
  18962. _this.downLoading = true
  18963. let x = new XMLHttpRequest();
  18964. x.open("GET", _url, true);
  18965. x.responseType = "blob";
  18966. x.onload = function () {
  18967. _this.downLoading = false
  18968. let url = window.URL.createObjectURL(new Blob([x.response]));
  18969. let a = document.createElement("a");
  18970. a.name = f.name;
  18971. a.href = url;
  18972. a.download = f.name;
  18973. a.click();
  18974. };
  18975. x.send();
  18976. },
  18977. downloadFile(url) {
  18978. // this.$message.info("查看作业-下载文件")
  18979. var credentials = {
  18980. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18981. secretAccessKey: "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",
  18982. }; //秘钥形式的登录上传
  18983. window.AWS.config.update(credentials);
  18984. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18985. let url2 = url;
  18986. let _url2 = "";
  18987. if (
  18988. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18989. ) {
  18990. _url2 = url2.split(
  18991. "https://view.officeapps.live.com/op/view.aspx?src="
  18992. )[1];
  18993. } else {
  18994. _url2 = url2;
  18995. }
  18996. const loading2 = this.$loading.service({
  18997. background: "rgba(255, 255, 255, 0.7)",
  18998. target: document.body,
  18999. text: "文件加载中...",
  19000. });
  19001. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19002. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19003. var params = {
  19004. Bucket: "ccrb",
  19005. Key: name
  19006. };
  19007. s3.getObject(params, function (err, data) {
  19008. loading2.close();
  19009. if (err) console.log(err, err.stack); // an error occurred
  19010. else {
  19011. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19012. let a = document.createElement("a");
  19013. a.name = name;
  19014. a.href = url;
  19015. a.download = name;
  19016. a.click();
  19017. console.log(data);
  19018. } // sxuccessful response
  19019. });
  19020. return;
  19021. let _this = this;
  19022. let _url = "";
  19023. if (
  19024. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19025. ) {
  19026. _url = url.split(
  19027. "https://view.officeapps.live.com/op/view.aspx?src="
  19028. )[1];
  19029. } else {
  19030. _url = url;
  19031. }
  19032. const x = new XMLHttpRequest();
  19033. x.open("GET", _url, true);
  19034. x.responseType = "blob";
  19035. // this.downLoading = true
  19036. const loading = _this.$loading.service({
  19037. background: "rgba(255, 255, 255, 0.7)",
  19038. target: document.body,
  19039. text: "文件加载中...",
  19040. });
  19041. // _this.$message.success("文件下载中...");
  19042. x.onload = function (e) {
  19043. loading.close();
  19044. let content = x.response;
  19045. let elink = document.createElement("a");
  19046. elink.download = decodeURI(
  19047. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19048. );
  19049. elink.style.display = "none";
  19050. let blob = new Blob([content]);
  19051. elink.href = URL.createObjectURL(blob);
  19052. document.body.appendChild(elink);
  19053. elink.click();
  19054. document.body.removeChild(elink);
  19055. };
  19056. x.send();
  19057. },
  19058. openLine(url) {
  19059. window.open(url);
  19060. },
  19061. resize() {
  19062. if (document.getElementsByClassName("box_course").length) {
  19063. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19064. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19065. if (this.showType == 2 || this.showType == 3) {
  19066. document.getElementsByClassName("navBox")[0].style.height =
  19067. a - 40 + 0+ "px";
  19068. } else {
  19069. document.getElementsByClassName("navBox")[0].style.height =
  19070. a - 40 + "px";
  19071. }
  19072. }
  19073. this.Stbodywidth =
  19074. document.getElementsByClassName("student_body").length &&
  19075. document.getElementsByClassName("student_body")[0].offsetWidth;
  19076. },
  19077. closeDraw() {
  19078. this.bg = null;
  19079. this.drawShow = false;
  19080. },
  19081. showPicturePaint(url) {
  19082. let params = {
  19083. img: url,
  19084. };
  19085. this.ajax
  19086. .get(this.$store.state.api + "imgToBase64", params)
  19087. .then((res) => {
  19088. this.drawShow = true;
  19089. this.bg = res.data[0].img;
  19090. })
  19091. .catch((err) => {
  19092. console.error(err);
  19093. });
  19094. },
  19095. addImgDraw(base64) {
  19096. let file = { name: "批注图.png" };
  19097. let img = this.dataUrlToFile(base64, file);
  19098. this.beforeUpload1(img, 5);
  19099. },
  19100. addImgDrawImG(url) {
  19101. // console.log(url);
  19102. let params = [
  19103. {
  19104. wid: this.commentDetail.wid,
  19105. img: url,
  19106. },
  19107. ];
  19108. this.ajax
  19109. .post(this.$store.state.api + "updateCourseWorks", params)
  19110. .then((res) => {
  19111. this.$message({
  19112. message: "提交成功",
  19113. type: "success",
  19114. });
  19115. this.drawShow = false;
  19116. this.bg = "";
  19117. this.selectSWorks();
  19118. this.selectStudent();
  19119. })
  19120. .catch((err) => {
  19121. this.$message.error("提交失败");
  19122. console.error(err);
  19123. });
  19124. },
  19125. deletePicturePaint() {
  19126. this.$confirm("确定删除此批注吗?", "提示", {
  19127. confirmButtonText: "确定",
  19128. cancelButtonText: "取消",
  19129. type: "warning",
  19130. })
  19131. .then(() => {
  19132. let params = [
  19133. {
  19134. wid: this.commentDetail.wid,
  19135. img: "",
  19136. },
  19137. ];
  19138. this.ajax
  19139. .post(this.$store.state.api + "updateCourseWorks", params)
  19140. .then((res) => {
  19141. this.$message({
  19142. message: "删除成功",
  19143. type: "success",
  19144. });
  19145. this.selectSWorks();
  19146. this.selectStudent();
  19147. })
  19148. .catch((err) => {
  19149. this.$message.error("删除失败");
  19150. console.error(err);
  19151. });
  19152. })
  19153. .catch(() => {});
  19154. },
  19155. getAudioVideo(constraintsData) {
  19156. if (navigator.mediaDevices === undefined) {
  19157. navigator.mediaDevices = {};
  19158. }
  19159. if (navigator.mediaDevices.getUserMedia === undefined) {
  19160. navigator.mediaDevices.getUserMedia = function (constraints) {
  19161. // 首先,如果有getUserMedia的话,就获得它
  19162. var getUserMedia =
  19163. navigator.getUserMedia ||
  19164. navigator.webkitGetUserMedia ||
  19165. navigator.mozGetUserMedia ||
  19166. navigator.msGetUserMedia;
  19167. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19168. if (!getUserMedia) {
  19169. return Promise.reject({ code: 404 });
  19170. }
  19171. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19172. return new Promise(function (resolve, reject) {
  19173. getUserMedia.call(navigator, constraints, resolve, reject);
  19174. });
  19175. };
  19176. }
  19177. return navigator.mediaDevices.getUserMedia(constraintsData);
  19178. },
  19179. /**
  19180. * 开始录制
  19181. */
  19182. startRecording(callback) {
  19183. let _function = (screenStream) => {
  19184. this.addStreamStopListener(screenStream, () => {
  19185. console.log("流停止监听");
  19186. this.stopRecording();
  19187. this.$emit("streamStop", {});
  19188. // this.stopRecording();
  19189. });
  19190. var options = {
  19191. type: "video",
  19192. mimeType: "video/webm",
  19193. disableLogs: false,
  19194. getNativeBlob: false, // enable it for longer recordings
  19195. ignoreMutedMedia: false,
  19196. };
  19197. // this.video.srcObject = screenStream;
  19198. this.recorder = RecordRTC(screenStream, options);
  19199. this.recorder.startRecording();
  19200. this.recorder.screen = screenStream;
  19201. this.videoStart = true;
  19202. // callback(true);
  19203. };
  19204. this.getAudioVideo({ audio: true })
  19205. .then((res) => {
  19206. this.captureScreen(_function, true);
  19207. console.log("已点击允许,开启成功");
  19208. })
  19209. .catch((err) => {
  19210. // console.log('浏览器不支持,请更换浏览器')
  19211. // } else {
  19212. this.captureScreen(_function, false);
  19213. console.log("请检查是否存在麦克风");
  19214. });
  19215. },
  19216. /**
  19217. * 停止录制
  19218. */
  19219. stopRecording(callback) {
  19220. this.recorder.stopRecording(() => {
  19221. // this.video.src = this.video.srcObject = null;
  19222. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19223. const url = URL.createObjectURL(this.recorder.getBlob());
  19224. const a = document.createElement("a"); //this.fileName+
  19225. let videoFile = new File(
  19226. [this.recorder.getBlob()],
  19227. this.courseDetail.title + "录屏.mp4",
  19228. {
  19229. type: "video/mp4",
  19230. }
  19231. );
  19232. let downloadUrl = URL.createObjectURL(videoFile);
  19233. if(this.$refs.classRoomHelperRef){
  19234. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19235. }
  19236. document.body.appendChild(a);
  19237. a.style.display = "none";
  19238. a.href = url;
  19239. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19240. a.click();
  19241. this.recorder.screen.stop();
  19242. this.recorder.destroy();
  19243. this.recorder = null;
  19244. this.videoStart = false;
  19245. // callback(false);
  19246. });
  19247. },
  19248. //初始化
  19249. captureScreen(callback, type) {
  19250. if (navigator.getDisplayMedia) {
  19251. //录制结束,文件下载
  19252. navigator
  19253. .getDisplayMedia({
  19254. video: true,
  19255. })
  19256. .then((screenStream) => {
  19257. if (type) {
  19258. navigator.mediaDevices
  19259. .getUserMedia({ audio: true })
  19260. .then((mic) => {
  19261. screenStream.addTrack(mic.getTracks()[0]);
  19262. callback(screenStream);
  19263. });
  19264. } else {
  19265. callback(screenStream);
  19266. }
  19267. })
  19268. .catch(function (error) {
  19269. console.log("error", error);
  19270. });
  19271. } else if (navigator.mediaDevices.getDisplayMedia) {
  19272. navigator.mediaDevices
  19273. .getDisplayMedia({
  19274. video: true,
  19275. })
  19276. .then((screenStream) => {
  19277. if (type) {
  19278. navigator.mediaDevices
  19279. .getUserMedia({ audio: true })
  19280. .then((mic) => {
  19281. screenStream.addTrack(mic.getTracks()[0]);
  19282. callback(screenStream);
  19283. });
  19284. } else {
  19285. callback(screenStream);
  19286. }
  19287. })
  19288. .catch(function (error) {
  19289. console.log("error", error);
  19290. });
  19291. } else {
  19292. var error = "getDisplayMedia API are not supported in this browser.";
  19293. console.log("error", error);
  19294. alert(error);
  19295. }
  19296. },
  19297. //流监听
  19298. addStreamStopListener(stream, callback) {
  19299. stream.addEventListener(
  19300. "ended",
  19301. function () {
  19302. callback();
  19303. callback = function () {};
  19304. },
  19305. false
  19306. );
  19307. stream.addEventListener(
  19308. "inactive",
  19309. function () {
  19310. callback();
  19311. callback = function () {};
  19312. },
  19313. false
  19314. );
  19315. stream.getTracks().forEach(function (track) {
  19316. track.addEventListener(
  19317. "ended",
  19318. function () {
  19319. callback();
  19320. callback = function () {};
  19321. },
  19322. false
  19323. );
  19324. track.addEventListener(
  19325. "inactive",
  19326. function () {
  19327. callback();
  19328. callback = function () {};
  19329. },
  19330. false
  19331. );
  19332. });
  19333. },
  19334. updateGroup() {
  19335. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19336. this.dialogVisibleGroup2 = true;
  19337. },
  19338. numberPan() {
  19339. if (
  19340. /[^\d]/.test(this.groupJson.number) ||
  19341. this.groupJson.number < 2 ||
  19342. this.groupJson.number > 10
  19343. ) {
  19344. this.$message.error("请输入2-10的数字");
  19345. this.groupJson.number = "";
  19346. }
  19347. },
  19348. updateGroupJson() {
  19349. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19350. if (
  19351. this.groupStudentUid[this.toolindex][i].length >
  19352. this.groupJson2.number
  19353. ) {
  19354. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19355. return;
  19356. }
  19357. }
  19358. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19359. this.islock = this.groupJson.islock == 1 ? true : false;
  19360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19361. this.taskCount
  19362. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19363. let params = [
  19364. {
  19365. cid: this.id,
  19366. chapters: JSON.stringify(this.chapInfoList),
  19367. uid: this.userid,
  19368. unitIndex: this.courseType,
  19369. },
  19370. ];
  19371. this.ajax
  19372. .post(this.$store.state.api + "updateWorkNew4", params)
  19373. .then((res) => {
  19374. this.$message.success("设置成功");
  19375. this.getCourseDetail(2);
  19376. this.dialogVisibleGroup2 = false;
  19377. this.groupJson2 = {};
  19378. this.$forceUpdate();
  19379. })
  19380. .catch((err) => {
  19381. this.$message.error("网络不佳");
  19382. console.error(err);
  19383. });
  19384. },
  19385. lockChair() {
  19386. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19387. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19388. this.updateGroupJson();
  19389. },
  19390. selectGroup(index) {
  19391. this.getCourseDetail(2, index);
  19392. },
  19393. joinGroup(index) {
  19394. if (this.groupJson.islock == 2) {
  19395. this.$message.error("位置已被锁定,无法加入");
  19396. return;
  19397. }
  19398. if (
  19399. this.groupStudent[this.toolindex][index].length >
  19400. this.groupJson.number ||
  19401. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19402. ) {
  19403. this.$message.error("位置已满,无法加入");
  19404. return;
  19405. }
  19406. let params = [
  19407. {
  19408. cid: this.id,
  19409. stage: this.courseType,
  19410. task: this.taskCount,
  19411. tool: this.toolindex,
  19412. g: index,
  19413. uid: this.userid,
  19414. },
  19415. ];
  19416. this.ajax
  19417. .post(this.$store.state.api + "joinGroup", params)
  19418. .then((res) => {
  19419. this.$message.success("加入成功");
  19420. this.getCourseDetail(2);
  19421. })
  19422. .catch((err) => {
  19423. this.$message.error("网络不佳");
  19424. console.error(err);
  19425. });
  19426. },
  19427. exitGroup(id) {
  19428. if (this.groupJson.islock == 2) {
  19429. this.$message.error("位置已被锁定,无法退出");
  19430. return;
  19431. }
  19432. let params = [
  19433. {
  19434. gid: id,
  19435. },
  19436. ];
  19437. this.ajax
  19438. .post(this.$store.state.api + "exitGroup", params)
  19439. .then((res) => {
  19440. this.$message.success("退出成功");
  19441. this.getCourseDetail(2);
  19442. })
  19443. .catch((err) => {
  19444. this.$message.error("网络不佳");
  19445. console.error(err);
  19446. });
  19447. },
  19448. groupUpload(index, task, gindex) {
  19449. this.taskCount = task;
  19450. this.toolindex = index;
  19451. this.groupIndex = gindex;
  19452. this.dialogVisibleGroupWork = true;
  19453. },
  19454. updateGroupChair(user) {
  19455. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19456. el.label = index;
  19457. return index != user.group;
  19458. });
  19459. this.updateGroupUser = user;
  19460. this.dialogVisibleUpdateGroup = true;
  19461. },
  19462. updateChair() {
  19463. if (
  19464. this.groupStudent[this.toolindex][this.checkChair].length >
  19465. this.groupJson.number ||
  19466. this.groupStudent[this.toolindex][this.checkChair].length ==
  19467. this.groupJson.number
  19468. ) {
  19469. this.$message.error("位置已满,无法加入");
  19470. return;
  19471. }
  19472. let params = [
  19473. {
  19474. cid: this.id,
  19475. stage: this.courseType,
  19476. task: this.taskCount,
  19477. tool: this.toolindex,
  19478. g: this.checkChair,
  19479. uid: this.updateGroupUser.userid,
  19480. },
  19481. ];
  19482. this.ajax
  19483. .post(this.$store.state.api + "joinGroup", params)
  19484. .then((res) => {
  19485. this.$message.success("修改成功");
  19486. this.updateGroupUser = {};
  19487. this.checkChair = "";
  19488. this.updateGroupArray = {};
  19489. this.dialogVisibleUpdateGroup = false;
  19490. this.getCourseDetail(2);
  19491. })
  19492. .catch((err) => {
  19493. this.$message.error("网络不佳");
  19494. console.error(err);
  19495. });
  19496. },
  19497. deleteGroupChair(gindex) {
  19498. this.checkDeleteGroup = [];
  19499. this.deleteGroupUser = JSON.parse(
  19500. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19501. );
  19502. this.deleteGroupArray = this.groupJson.group[gindex];
  19503. this.groupIndex = gindex;
  19504. this.dialogVisibleDeleteGroup = true;
  19505. },
  19506. async deleteChair() {
  19507. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19508. const gid =
  19509. this.groupStudent[this.toolindex][this.groupIndex][
  19510. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19511. this.checkDeleteGroup[i]
  19512. )
  19513. ];
  19514. let params = [
  19515. {
  19516. gid: gid.id,
  19517. },
  19518. ];
  19519. var a = await this.deleteChairA(params);
  19520. if (i == this.checkDeleteGroup.length - 1) {
  19521. this.$message.success("退出成功");
  19522. this.dialogVisibleDeleteGroup = false;
  19523. this.deleteGroupUser = [];
  19524. this.deleteGroupArray = {};
  19525. this.groupIndex = "";
  19526. this.checkDeleteGroup = [];
  19527. this.getCourseDetail(2);
  19528. }
  19529. }
  19530. },
  19531. deleteChairA(params) {
  19532. return new Promise((resolve, reject) => {
  19533. this.ajax
  19534. .post(this.$store.state.api + "exitGroup", params)
  19535. .then((res) => {
  19536. resolve(1);
  19537. })
  19538. .catch((err) => {
  19539. this.$message.error("网络不佳");
  19540. console.error(err);
  19541. });
  19542. });
  19543. },
  19544. contract(i) {
  19545. if (this.isCloseList[i].isClose == 0) {
  19546. this.isCloseList[i].isClose = 1;
  19547. } else {
  19548. this.isCloseList[i].isClose = 0;
  19549. }
  19550. this.$forceUpdate();
  19551. },
  19552. openWordCloud(toolindex) {
  19553. let array = [];
  19554. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19555. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19556. array.push({ name: works });
  19557. }
  19558. if (this.isGroup) {
  19559. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19560. let works = this.courseGroup.group[i].works[toolindex];
  19561. for (var j = 0; j < works.length; j++) {
  19562. let answer = JSON.parse(works[j].works)[0].answer;
  19563. array.push({ name: answer });
  19564. }
  19565. }
  19566. }
  19567. this.wordCloudData = array;
  19568. this.dialogVisibleWordCloud = true;
  19569. },
  19570. uploadWorks(i) {
  19571. this.$confirm("确定导出作业吗?", "提示", {
  19572. confirmButtonText: "确定",
  19573. cancelButtonText: "取消",
  19574. type: "warning",
  19575. })
  19576. .then(() => {
  19577. const loading = this.$loading.service({
  19578. background: "rgba(255, 255, 255, 0.7)",
  19579. target: document.body,
  19580. text: "文件加载中...",
  19581. });
  19582. const _worksStudent = this.worksStudent;
  19583. let url = [];
  19584. var counts = {};
  19585. for (var l = 0; l < _worksStudent[i].length; l++) {
  19586. var item = _worksStudent[i][l];
  19587. var name = item.sName;
  19588. if (!counts.hasOwnProperty(name)) {
  19589. counts[name] = 0;
  19590. } else {
  19591. counts[name]++;
  19592. }
  19593. if (counts[name] > 0) {
  19594. item.sName += " (" + counts[name] + ")";
  19595. }
  19596. }
  19597. for (var l = 0; l < _worksStudent[i].length; l++) {
  19598. var item = _worksStudent[i][l];
  19599. if (
  19600. item.works.indexOf(
  19601. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19602. ) !== -1 &&
  19603. item.works.indexOf("img") === -1
  19604. ) {
  19605. url.push({ name: item.sName, url: item.works });
  19606. }
  19607. }
  19608. // var toolList = [
  19609. // { name: "电子白板", tool: 1 },
  19610. // { name: "思维导图", tool: 3 },
  19611. // { name: "协同文档", tool: 6 },
  19612. // { name: "思维网格", tool: 7 },
  19613. // { name: "素材库", tool: 8 },
  19614. // { name: "学习资料", tool: 17 },
  19615. // { name: "便签", tool: 2 },
  19616. // { name: "问卷调查", tool: 4 },
  19617. // { name: "选择题", tool: 45 },
  19618. // { name: "倒计时", tool: 10 },
  19619. // { name: "问答", tool: 15 },
  19620. // { name: "课程设计", tool: 26 },
  19621. // { name: "训练服务器", tool: 18 },
  19622. // { name: "作业提交", tool: 16 },
  19623. // { name: "批量上传", tool: 50 },
  19624. // { name: "AIoT Blockly", tool: 21 },
  19625. // { name: "AI Python", tool: 23 },
  19626. // { name: "AI Blockly", tool: 24 },
  19627. // { name: "目标管理", tool: 25 },
  19628. // { name: "数学画板", tool: 31 },
  19629. // { name: "翻译", tool: 28 },
  19630. // { name: "魔盒识字", tool: 37 },
  19631. // { name: "数学画板", tool: 31 },
  19632. // { name: "24点", tool: 38 },
  19633. // { name: "GeoGebra", tool: 39 },
  19634. // { name: "源码编辑", tool: 32 },
  19635. // { name: "个人评价", tool: 40 },
  19636. // { name: "选择匹配", tool: 41 },
  19637. // { name: "汉字宫", tool: 44 },
  19638. // { name: "排序", tool: 47 },
  19639. // { name: "表格", tool: 48 },
  19640. // { name: "文档", tool: 52 },
  19641. // { name: "学生分组", tool: 49 },
  19642. // { name: "CocoPi", tool: 57 },
  19643. // { name: "模拟驾驶", tool: 58 },
  19644. // { name: "路径搜索", tool: 59 },
  19645. // { name: "深度学习", tool: 60 },
  19646. // { name: "全历史", tool: 61 },
  19647. // { name: "交互视频", tool: 62 },
  19648. // { name: "海龟编程", tool: 63 },
  19649. // { name: "挑人", tool: 65 },
  19650. // { name: "公式编辑", tool: 66 },
  19651. // { name: "分子结构", tool: 67 },
  19652. // { name: "时间轴", tool: 68 },
  19653. // ];
  19654. // var toolName = "";
  19655. // for(var w = 0;w<toolList.length;w++){
  19656. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19657. // toolName = toolList[w].name;
  19658. // }
  19659. // }
  19660. console.log(url);
  19661. this.downLoadAll(url, loading);
  19662. })
  19663. .catch(() => {});
  19664. },
  19665. downLoadAll(url, loading) {
  19666. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19667. const zip = new JSZip();
  19668. const cache = {};
  19669. const promises = [];
  19670. data.forEach((item) => {
  19671. const promise = getFile(item.url).then((data) => {
  19672. if (data.data != 1) {
  19673. // 下载文件, 并存成ArrayBuffer对象
  19674. const file_name =
  19675. item.name +
  19676. "." +
  19677. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19678. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19679. cache[file_name] = data.data;
  19680. }
  19681. });
  19682. promises.push(promise);
  19683. });
  19684. Promise.all(promises).then(() => {
  19685. zip.generateAsync({ type: "blob" }).then((content) => {
  19686. // 生成二进制流
  19687. FileSaver.saveAs(
  19688. content,
  19689. this.courseDetail.title + "-" + "作业提交工具.zip"
  19690. ); // 利用file-saver保存文件 自定义文件名
  19691. setTimeout(() => {
  19692. loading.close();
  19693. }, 2000);
  19694. });
  19695. });
  19696. },
  19697. pickStudent(stu) {
  19698. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19699. return;
  19700. }
  19701. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19702. confirmButtonText: "确定",
  19703. cancelButtonText: "取消",
  19704. type: "warning",
  19705. })
  19706. .then(() => {
  19707. let params = [
  19708. {
  19709. uid: stu.userid,
  19710. cid: this.id,
  19711. stage: this.courseType,
  19712. task: this.taskCount,
  19713. tool: this.toolindex,
  19714. },
  19715. ];
  19716. this.ajax
  19717. .post(this.$store.state.api + "updateCoursePick", params)
  19718. .then((res) => {
  19719. this.$message.success("操作成功");
  19720. this.getPick();
  19721. })
  19722. .catch((err) => {
  19723. this.$message.error("网络不佳");
  19724. console.error(err);
  19725. });
  19726. })
  19727. .catch(() => {});
  19728. },
  19729. selectUser(){
  19730. let params = {
  19731. userid: this.userid,
  19732. };
  19733. this.ajax
  19734. .get(this.$store.state.api + "selectUser", params)
  19735. .then((res) => {
  19736. this.userMes = res.data[0];
  19737. })
  19738. .catch((err) => {
  19739. console.error(err);
  19740. });
  19741. },
  19742. setEngText(i){
  19743. this.newEngIndex = i;
  19744. this.$forceUpdate();
  19745. },
  19746. addCorrect(){
  19747. this.$confirm("你确定提交批改嘛?", "提示", {
  19748. confirmButtonText: "确定",
  19749. showCancelButton: false,
  19750. closeOnClickModal: false,
  19751. type: "warning",
  19752. })
  19753. .then(() => {
  19754. let params = {
  19755. cid: this.id,
  19756. s: parseInt(this.courseType),
  19757. t: this.taskCount,
  19758. tool: this.toolindex,
  19759. wid: this.engWid,
  19760. c: this.userid,
  19761. 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) : "",
  19762. };
  19763. this.ajax
  19764. .get(this.$store.state.api + "addEngC", params)
  19765. .then((res) => {
  19766. this.$message.success("提交成功");
  19767. this.engUpdateDialogVisible = false;
  19768. })
  19769. .catch((err) => {
  19770. console.error(err);
  19771. });
  19772. })
  19773. .catch(() => {});
  19774. },
  19775. selectEngC(id,z){
  19776. let params = {
  19777. workid: id,
  19778. };
  19779. this.ajax
  19780. .get(this.$store.state.api + "selectEngC", params)
  19781. .then((res) => {
  19782. if(res.data[0].length == 0){
  19783. this.newEnglishList.engTitle = z.engTitle;
  19784. this.newEnglishList.engText = z.engText;
  19785. }else{
  19786. var a = res.data[0];
  19787. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19788. if(this.userMes[0].type == 2){
  19789. var snum = 0;
  19790. for(var i = 0;i<a.length;i++){
  19791. if(this.userMes[0].userid == a[i].correct){
  19792. this.newEnglishList = JSON.parse(a[i].cWork);
  19793. snum = 1;
  19794. }
  19795. }
  19796. if(snum == 0){
  19797. this.newEnglishList = { engTitle:"",engText:"" };
  19798. this.newEnglishList.engTitle = z.engTitle;
  19799. this.newEnglishList.engText = z.engText;
  19800. }
  19801. }else if(this.userMes[0].type == 1){
  19802. var num = 0;
  19803. for(var w= 0;w<a.length;w++){
  19804. if(this.userMes[0].userid == a[w].correct){
  19805. num = 1;
  19806. }
  19807. }
  19808. if(num == 0){
  19809. this.isNoUserid = true;
  19810. var c = JSON.parse(JSON.stringify(z));
  19811. this.oldEnglishJson1 = c;
  19812. }else{
  19813. this.isNoUserid = false;
  19814. }
  19815. var b = a.sort((item, index) => {
  19816. console.log(item)
  19817. if (item.correct === this.userMes[0].userid) {
  19818. return -1; // 将a移到前面
  19819. } else if (index.correct === this.userMes[0].userid) {
  19820. return 1; // 将b移到前面
  19821. } else {
  19822. return 0; // 保持默认顺序
  19823. }
  19824. });
  19825. for(var p = 0;p<b.length;p++){
  19826. for(var y = 0;y<ppp.length;y++){
  19827. if(b[p].id == ppp[y].id){
  19828. b[p].cWork = JSON.parse(ppp[y].cWork);
  19829. break
  19830. }
  19831. }
  19832. }
  19833. this.newEnglishList1 = b;
  19834. }
  19835. }
  19836. this.greyType = false;
  19837. setTimeout(() => {
  19838. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19839. if(this.newEnglishList1.length > 0){
  19840. if(this.isNoUserid == true){
  19841. this.engListLength = this.newEnglishList1.length + 1;
  19842. this.newEngIndex = -1;
  19843. }else{
  19844. this.engListLength = this.newEnglishList1.length;
  19845. this.newEngIndex = 0;
  19846. }
  19847. }
  19848. if(this.userMes[0].type == 2){
  19849. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19850. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19851. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19852. }else if(this.newEngIndex == -1){
  19853. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19854. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19855. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19856. }
  19857. }, 500);
  19858. this.engUpdateDialogVisible = true;
  19859. this.$forceUpdate();
  19860. })
  19861. .catch((err) => {
  19862. console.error(err);
  19863. });
  19864. },
  19865. getPick() {
  19866. let params = {
  19867. cid: this.id,
  19868. };
  19869. this.ajax
  19870. .get(this.$store.state.api + "getPick", params)
  19871. .then((res) => {
  19872. let array = [];
  19873. for (var i = 0; i < res.data[0].length; i++) {
  19874. array.push(res.data[0][i].userid);
  19875. }
  19876. this.isPickStudent = array;
  19877. if (array.indexOf(this.userid) !== -1) {
  19878. this.$confirm("你被老师选到啦!", "提示", {
  19879. confirmButtonText: "确定",
  19880. showCancelButton: false,
  19881. closeOnClickModal: false,
  19882. type: "warning",
  19883. })
  19884. .then(() => {
  19885. let pa = [
  19886. {
  19887. uid: this.userid,
  19888. cid: this.id,
  19889. },
  19890. ];
  19891. this.ajax
  19892. .post(this.$store.state.api + "deletePick", pa)
  19893. .then((res) => {
  19894. this.getPick();
  19895. })
  19896. .catch((err) => {
  19897. this.$message.error("网络不佳");
  19898. console.error(err);
  19899. });
  19900. })
  19901. .catch(() => {});
  19902. }
  19903. })
  19904. .catch((err) => {
  19905. this.$message.error("网络不佳");
  19906. console.error(err);
  19907. });
  19908. },
  19909. foldEva() {
  19910. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19911. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19912. } else {
  19913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19914. setTimeout(() => {
  19915. this.checkEva();
  19916. setTimeout(() => {
  19917. this.checkEva();
  19918. }, 500);
  19919. }, 0);
  19920. }
  19921. this.$forceUpdate();
  19922. },
  19923. panToolHeight(tool) {
  19924. var _tool = document.querySelectorAll('#'+tool)[0]
  19925. var _toolA = _tool ? _tool.offsetHeight : 0
  19926. var _toolC = 0
  19927. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19928. let boolean2 = (_toolA > _toolC) ? true : false
  19929. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19930. this.$forceUpdate();
  19931. },
  19932. async checkLink(url) {
  19933. console.log(url)
  19934. let _url = url
  19935. try {
  19936. const response = await fetch(url);
  19937. if(!response.ok){
  19938. _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]))
  19939. }
  19940. console.log(response.ok)
  19941. } catch (error) {
  19942. console.error('Error checking link:', error);
  19943. // console.log(false)
  19944. _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]))
  19945. }
  19946. // console.log(_url)
  19947. return _url
  19948. },
  19949. getScoreList(){
  19950. let params = {
  19951. cid: this.id,
  19952. };
  19953. this.ajax
  19954. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19955. .then((res) => {
  19956. let result = res.data;
  19957. this.scoreList.datalist = result[0];
  19958. this.scoreList.isScoreList = result[1];
  19959. })
  19960. .catch((err) => {
  19961. console.error(err);
  19962. });
  19963. },
  19964. setClassRoomHelperWidth(width){
  19965. this.classRoomHelperWidth = width
  19966. },
  19967. openStatisticalAnalysis(tooC,toolIndex,taskCount){
  19968. this.$refs.statisticalAnalysisRef.open({worksStudent:this.worksStudent[toolIndex],tType:this.tType,toolIndex:toolIndex})
  19969. },
  19970. openChoseWorksDetailDialog(tooC, toolIndex, taskCount) {
  19971. this.$refs.choseWorksDetailDialogRef.open({
  19972. tType: this.tType,
  19973. toolIndex: toolIndex
  19974. });
  19975. this.changeSplitScreenBehavior({
  19976. code: 1,
  19977. form: {
  19978. toolIndex: toolIndex,
  19979. courseType: this.courseType,
  19980. taskCount: this.taskCount,
  19981. type: 0
  19982. }
  19983. });
  19984. },
  19985. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  19986. this.$refs.statisticalAnalysisRef.open({
  19987. worksStudent: this.worksStudent[toolIndex],
  19988. tType: this.tType,
  19989. toolIndex: toolIndex
  19990. });
  19991. },
  19992. statisticalAnalysisRefresh(toolIndex) {
  19993. this.$refs.statisticalAnalysisRef.refreshData({
  19994. worksStudent: this.worksStudent[toolIndex],
  19995. tType: this.tType,
  19996. toolIndex: toolIndex
  19997. });
  19998. },
  19999. async splitScreenBehavior(type = 0) {
  20000. // return;
  20001. if (this.splitScreenData.loading)
  20002. return this.$message.info("操作过快,请稍等");
  20003. if (type == 0) {
  20004. //关闭分屏
  20005. this.splitScreenData.isOpen = false;
  20006. // this.splitScreenData.userId = "";
  20007. // this.splitScreenData.uid = "";
  20008. this.splitScreenData.behavior = null;
  20009. await this.updateSplitScreenData(1);
  20010. this.$message.success("已关闭分屏模式");
  20011. this.studentFreePreview(false);
  20012. this.OpenJobPreview(false);
  20013. this.followingMode(false);
  20014. } else if (type == 1) {
  20015. //开启分屏
  20016. this.splitScreenData.isOpen = true;
  20017. this.splitScreenData.userId = this.userid;
  20018. this.splitScreenData.uid = this.splitScreenData.myUid;
  20019. this.splitScreenData.behavior = null;
  20020. let status = await this.updateSplitScreenData(0);
  20021. if (status == 1) {
  20022. this.$message.success("已开启分屏");
  20023. this.studentFreePreview(true);
  20024. this.OpenJobPreview(true);
  20025. this.followingMode(true);
  20026. } else {
  20027. this.splitScreenData.isOpen = false;
  20028. this.splitScreenData.userId = "";
  20029. this.splitScreenData.uid = "";
  20030. this.splitScreenData.behavior = null;
  20031. this.$message.success("分屏开启失败");
  20032. }
  20033. }
  20034. },
  20035. getSplitScreenData() {
  20036. // return;
  20037. if (this.tType != 1) return;
  20038. let params = {
  20039. cid: this.id
  20040. };
  20041. this.ajax
  20042. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20043. .then(async res => {
  20044. let data = res.data[0][0]["splitScreenData"];
  20045. console.log("获取了分屏数:", data);
  20046. if (data) {
  20047. data = JSON.parse(data);
  20048. if (
  20049. !this.splitScreenData.isOpen &&
  20050. data.isOpen &&
  20051. this.splitScreenData.myUid == data.uid
  20052. ) {
  20053. this.splitScreenData.isOpen = false;
  20054. this.splitScreenData.userId = "";
  20055. this.splitScreenData.uid = "";
  20056. this.splitScreenData.behavior = null;
  20057. await this.updateSplitScreenData(1);
  20058. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20059. this.splitScreenData.isOpen = true;
  20060. this.splitScreenData.uid = data.uid;
  20061. this.splitScreenData.userId = data.userId;
  20062. this.splitScreenData.behavior = data.behavior;
  20063. this.$message.success("分屏模式已开启");
  20064. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20065. this.splitScreenData.isOpen = false;
  20066. this.splitScreenData.userId = "";
  20067. this.splitScreenData.uid = "";
  20068. this.splitScreenData.behavior = null;
  20069. this.$message.error("已结束分屏模式");
  20070. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20071. this.splitScreenData.isOpen = true;
  20072. this.splitScreenData.uid = data.uid;
  20073. this.splitScreenData.userId = data.userId;
  20074. this.splitScreenData.behavior = data.behavior;
  20075. }
  20076. this.doSplitScreenBehavior();
  20077. } else {
  20078. if (this.splitScreenData.isOpen) {
  20079. this.splitScreenData.isOpen = false;
  20080. this.splitScreenData.userId = "";
  20081. this.splitScreenData.uid = "";
  20082. this.splitScreenData.behavior = null;
  20083. this.$message.error("已结束分屏模式");
  20084. }
  20085. }
  20086. })
  20087. .catch(e => {
  20088. console.log("获取分屏数出错:", e);
  20089. });
  20090. },
  20091. doSplitScreenBehavior() {
  20092. if (
  20093. this.splitScreenData.isOpen &&
  20094. this.splitScreenData.uid != this.splitScreenData.myUid
  20095. ) {
  20096. let behavior = this.splitScreenData.behavior;
  20097. if (behavior) {
  20098. if (behavior.code === 99) {
  20099. //初始化
  20100. this.fullDialogVisible = false;
  20101. if(this.$refs.choseWorksDetailDialogRef.show){
  20102. this.$refs.choseWorksDetailDialogRef.close();
  20103. }
  20104. } else if (behavior.code === 0) {
  20105. //开启内容列表弹窗
  20106. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20107. } else if (behavior.code === 1) {
  20108. //关于选择题的作业详细的操作
  20109. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20110. this.courseType = behavior.form.courseType;
  20111. this.taskCount = behavior.form.taskCount;
  20112. this.$nextTick(() => {
  20113. if (this.$refs.choseWorksDetailDialogRef.show) {
  20114. //已经打开了
  20115. this.$refs.choseWorksDetailDialogRef.splitScreenFn({type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20116. } else {
  20117. this.$refs.choseWorksDetailDialogRef.open({toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20118. }
  20119. });
  20120. }
  20121. } else {
  20122. }
  20123. }
  20124. },
  20125. updateSplitScreenData(empty = 0) {
  20126. // return
  20127. return new Promise(resolve => {
  20128. if(this.userid!==this.courseDetail.userid)return;
  20129. if (
  20130. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20131. this.splitScreenData.userId == this.userid
  20132. ) {
  20133. this.splitScreenData.loading = true;
  20134. let params = [
  20135. {
  20136. cid: this.id,
  20137. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20138. }
  20139. ];
  20140. this.ajax
  20141. .post(
  20142. this.$store.state.api + "update_courseSplitScreenData",
  20143. params
  20144. )
  20145. .then(res => {
  20146. this.splitScreenData.loading = false;
  20147. if (res.data == 1) {
  20148. resolve(1);
  20149. console.log("修改分屏数据成功");
  20150. }
  20151. })
  20152. .catch(e => {
  20153. this.splitScreenData.loading = false;
  20154. console.log("修改分屏数据失败", e);
  20155. resoleve(0);
  20156. });
  20157. } else if (empty == 2 && this.tType == 1) {
  20158. let params = [
  20159. {
  20160. cid: this.id,
  20161. nData: ""
  20162. }
  20163. ];
  20164. return this.ajax
  20165. .post(
  20166. this.$store.state.api + "update_courseSplitScreenData",
  20167. params
  20168. )
  20169. .then(_ => resolve(1))
  20170. .catch(_ => resolve(0));
  20171. } else {
  20172. return resolve(0);
  20173. }
  20174. });
  20175. },
  20176. changeSplitScreenBehavior(newValue) {
  20177. if (
  20178. this.splitScreenData.isOpen &&
  20179. this.splitScreenData.uid == this.splitScreenData.myUid
  20180. ) {
  20181. this.splitScreenData.behavior = newValue;
  20182. this.updateSplitScreenData(0);
  20183. }
  20184. },
  20185. studentFreePreview(flag) {
  20186. this.IsLookOpen = flag;
  20187. this.updateLookOpen();
  20188. },
  20189. OpenJobPreview(flag) {
  20190. this.sIsOpen = flag;
  20191. this.updateSLook();
  20192. },
  20193. followingMode(flag) {
  20194. this.IsFollow = flag;
  20195. this.updateFollow();
  20196. }
  20197. },
  20198. directives: {
  20199. // 使用局部注册指令的方式
  20200. resize: {
  20201. // 指令的名称
  20202. bind(el, binding) {
  20203. // el为绑定的元素,binding为绑定给指令的对象
  20204. let width = "",
  20205. height = "";
  20206. function isReize() {
  20207. const style = document.defaultView.getComputedStyle(el);
  20208. if (width !== style.width || height !== style.height) {
  20209. binding.value(); // 关键
  20210. }
  20211. width = style.width;
  20212. height = style.height;
  20213. }
  20214. el.__vueSetInterval__ = setInterval(isReize, 300);
  20215. },
  20216. unbind(el) {
  20217. clearInterval(el.__vueSetInterval__);
  20218. },
  20219. },
  20220. autoHeight: {
  20221. update(el, binding) {
  20222. const { value } = binding
  20223. if (value && typeof value === 'number') {
  20224. el.style.height = `${value}px`
  20225. } else {
  20226. el.style.height = 'auto'
  20227. }
  20228. },
  20229. componentUpdated(el) {
  20230. el.style.height = `${el.scrollHeight}px`
  20231. },
  20232. },
  20233. },
  20234. beforeDestroy() {
  20235. window.onresize = null;
  20236. clearInterval(this.timer);
  20237. this.timer = null;
  20238. clearInterval(this.opertimer);
  20239. this.opertimer = null;
  20240. this.updateSplitScreenData(1);
  20241. },
  20242. computed: {
  20243. contentConvent() {
  20244. return function (c) {
  20245. return c
  20246. ? c
  20247. .replaceAll(/\r\n/g, "<br/>")
  20248. .replaceAll(/\n/g, "<br/>")
  20249. .replaceAll(/\s/g, " &nbsp")
  20250. : "";
  20251. };
  20252. },
  20253. commentRight(){
  20254. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20255. return "35px";
  20256. }
  20257. return `calc(${this.classRoomHelperWidth} + 5px)`
  20258. // if(this.$refs["classRoomHelperRef"].type==0){
  20259. // return "100px";
  20260. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20261. // return "502px"
  20262. // }else{
  20263. // return "0px"
  20264. // }
  20265. },
  20266. checkUpload() {
  20267. return function () {
  20268. var studentK = [];
  20269. if (this.plworkFile.length > 0) {
  20270. for (var z = 0; z < this.plworkFile.length; z++) {
  20271. studentK.push(this.plworkFile[z].username);
  20272. }
  20273. studentK = studentK.join(",");
  20274. }
  20275. var a = this.uploadStudentJuri.filter((el) => {
  20276. return studentK.indexOf(el.userid) == -1;
  20277. });
  20278. return a;
  20279. };
  20280. },
  20281. getSName() {
  20282. return function (name) {
  20283. var check = name;
  20284. this.uploadStudentJuri.forEach((el) => {
  20285. if (el.userid == check) {
  20286. check = el.name ? el.name : el.username;
  20287. }
  20288. });
  20289. return check;
  20290. };
  20291. },
  20292. getImgList() {
  20293. return function (val) {
  20294. let srcList = []; // 定义一个数组用来接收后面的img地址
  20295. val.replace(
  20296. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20297. function (match, capture) {
  20298. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20299. srcList.push(capture);
  20300. }
  20301. );
  20302. return srcList;
  20303. };
  20304. },
  20305. retrnToolHeight(){
  20306. return function (tool) {
  20307. var _tool = document.querySelectorAll('#'+tool)[0]
  20308. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20309. };
  20310. },
  20311. Correct() {
  20312. return function (c) {
  20313. let w = "";
  20314. let a = this.correctWord;
  20315. for(var k = 0;k<a.length;k++){
  20316. //diffWordsWithSpace
  20317. if(a.length > 1){
  20318. if(a[k].added == true){
  20319. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20320. }else if(a[k].removed == true){
  20321. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20322. }else{
  20323. w += '<span>' + a[k].value + '</span>';
  20324. }
  20325. }else{
  20326. w = c
  20327. }
  20328. //diffChars方法
  20329. // if(a.length > 1){
  20330. // if(w == ""){
  20331. // if(a[k].added == true){
  20332. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20333. // }else if(a[k].removed == true){
  20334. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20335. // }
  20336. // }else{
  20337. // if(k == a.length - 1){
  20338. // if(a[k].added == true){
  20339. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20340. // }else if(a[k].removed == true){
  20341. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20342. // }
  20343. // }else{
  20344. // if(a[k].added == true){
  20345. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20346. // }else if(a[k].removed == true){
  20347. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20348. // }
  20349. // }
  20350. // }
  20351. // }else{
  20352. // w = c
  20353. // }
  20354. }
  20355. c = w;
  20356. return c;
  20357. };
  20358. },
  20359. },
  20360. mounted() {
  20361. document.body.addEventListener("click", (e) => {
  20362. if (this.isUpdateToolDetail1) {
  20363. this.updateToolDetail(this.toolDetailIndex);
  20364. }
  20365. });
  20366. if (this.screenType == 2) {
  20367. window.parent.postMessage({ allScreen: 4 }, "*");
  20368. } else if (this.screenType == 3) {
  20369. window.parent.postMessage({ allScreen: 5 }, "*");
  20370. } else if (this.screenType == 1) {
  20371. window.parent.postMessage({ allScreen: 6 }, "*");
  20372. }
  20373. this.setOperationTime();
  20374. this.selectEva();
  20375. this.getCourseDetail();
  20376. this.selectCount();
  20377. this.getHomeWork();
  20378. this.selectUser();
  20379. this.getAIJ();
  20380. this.updateSplitScreenData(2);
  20381. this.splitScreenData.myUid = uuidv4();
  20382. this.contentDialog = true;
  20383. this.setContent2(true);
  20384. if (this.tType == 4) {
  20385. this.pzDialog = true;
  20386. this.selectPz();
  20387. }
  20388. // 获取评分列表
  20389. this.getScoreList()
  20390. document.scrollingElement.scrollTop = 0;
  20391. window.addEventListener("resize", () => {
  20392. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20393. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20394. if (this.showType == 2 || this.showType == 3) {
  20395. document.getElementsByClassName("navBox")[0].style.height =
  20396. a - 40 + 0+ "px";
  20397. } else {
  20398. document.getElementsByClassName("navBox")[0].style.height =
  20399. a - 40 + "px";
  20400. }
  20401. });
  20402. let _this = this;
  20403. setTimeout(() => {
  20404. // _this.vedioTime = [];
  20405. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20406. // _this.vedioTime[i] = document.getElementsByClassName(
  20407. // "vjs-duration-display"
  20408. // )[i].textContent;
  20409. // }
  20410. }, 1000);
  20411. },
  20412. };
  20413. </script>
  20414. <style scoped>
  20415. @media screen and (max-width: 1280px) {
  20416. /* .courseIndex > div:first-child(2) {
  20417. width: 15% !important;
  20418. } */
  20419. /* .navText {
  20420. width: 120px !important;
  20421. } */
  20422. .evaCss {
  20423. flex-direction: column !important;
  20424. align-items: center !important;
  20425. }
  20426. .elist_input {
  20427. width: 90% !important;
  20428. }
  20429. .dialog_diy1 >>> .el-dialog {
  20430. width: 100% !important;
  20431. }
  20432. .rightWidthCss {
  20433. width: 100% !important;
  20434. }
  20435. .dialog_diy3 >>> .el-dialog {
  20436. width: 100% !important;
  20437. }
  20438. .addToolCss {
  20439. right: 0 !important;
  20440. width: 100% !important;
  20441. min-width: unset !important;
  20442. }
  20443. }
  20444. .evaCssMax {
  20445. flex-direction: column !important;
  20446. align-items: center !important;
  20447. }
  20448. .dialog_diy >>> .el-dialog {
  20449. margin-top: 10vh !important;
  20450. }
  20451. .body_student {
  20452. width: 77%;
  20453. height: 100%;
  20454. position: absolute;
  20455. left: 22%;
  20456. top: 0;
  20457. }
  20458. .student_head {
  20459. width: 100%;
  20460. margin: 20px auto 0;
  20461. padding-bottom: 20px;
  20462. display: flex;
  20463. flex-direction: column;
  20464. flex-wrap: nowrap;
  20465. align-items: flex-start;
  20466. justify-content: flex-start;
  20467. }
  20468. .pb_left {
  20469. width: 20%;
  20470. margin-right: 10px;
  20471. background: rgb(255, 255, 255);
  20472. position: fixed;
  20473. height: calc(100% - 40px);
  20474. border-radius: 20px;
  20475. padding-bottom: 15px;
  20476. box-sizing: border-box;
  20477. }
  20478. .wheel > img,
  20479. .project > img,
  20480. .star > img,
  20481. .evaluate > img,
  20482. .up_photo > img,
  20483. .chapter_add > img,
  20484. .deleteWord > img,
  20485. .question > img,
  20486. .homework > img {
  20487. width: 100%;
  20488. height: 100%;
  20489. }
  20490. .upCover > img {
  20491. width: 131px;
  20492. height: 69px;
  20493. object-fit: cover;
  20494. }
  20495. .upCover {
  20496. width: calc(100% / 3.5);
  20497. position: relative;
  20498. margin: 0 15px 10px 0;
  20499. display: flex;
  20500. flex-direction: column;
  20501. flex-wrap: nowrap;
  20502. justify-content: center;
  20503. align-content: center;
  20504. align-items: center;
  20505. height: fit-content;
  20506. }
  20507. .upCover2 {
  20508. width: 100%;
  20509. position: relative;
  20510. margin: 0 15px 10px 0;
  20511. display: flex;
  20512. flex-direction: column;
  20513. flex-wrap: nowrap;
  20514. justify-content: center;
  20515. align-content: center;
  20516. align-items: center;
  20517. }
  20518. .upCover2 > img {
  20519. width: 100%;
  20520. height: 90px;
  20521. object-fit: contain;
  20522. }
  20523. .chapter_add {
  20524. width: 120px;
  20525. position: relative;
  20526. text-align: center;
  20527. }
  20528. .isAddThings {
  20529. margin-top: 20px;
  20530. position: relative;
  20531. text-align: center;
  20532. background: #f7f8fa;
  20533. height: 90px;
  20534. width: 90px;
  20535. display: flex;
  20536. flex-direction: column;
  20537. justify-content: center;
  20538. }
  20539. .deleteWord {
  20540. width: 22px;
  20541. height: 22px;
  20542. position: absolute;
  20543. right: -5px;
  20544. top: -5px;
  20545. cursor: pointer;
  20546. }
  20547. .box_course {
  20548. /* width: 60%; */
  20549. width: calc(100% - 300px);
  20550. }
  20551. .wheel {
  20552. width: 100%;
  20553. /* height: 100%; */
  20554. height: 650px;
  20555. }
  20556. .right_box {
  20557. display: flex;
  20558. flex-direction: column;
  20559. margin-left: 30px;
  20560. justify-content: space-around;
  20561. }
  20562. .right_box_title {
  20563. font-size: 23px;
  20564. }
  20565. .people {
  20566. display: flex;
  20567. }
  20568. .student_body {
  20569. width: 100%;
  20570. margin: 0 auto;
  20571. margin-top: 10px;
  20572. padding: 0 0 20px;
  20573. }
  20574. .study_top {
  20575. margin-top: 100px;
  20576. width: 100%;
  20577. height: auto;
  20578. padding-bottom: 20px;
  20579. }
  20580. .study_top .checkbox {
  20581. display: flex;
  20582. align-items: center;
  20583. padding: 15px 0 15px 30px;
  20584. flex: 0 0 auto;
  20585. font-weight: bold;
  20586. border-bottom: 1px solid #eee;
  20587. }
  20588. .study_top .check {
  20589. padding-bottom: 5px;
  20590. text-align: center;
  20591. cursor: pointer;
  20592. height: 30px;
  20593. box-sizing: border-box;
  20594. display: flex;
  20595. }
  20596. .study_top .checked {
  20597. border-bottom: 4px solid #3fc6a0;
  20598. padding-bottom: 5px;
  20599. color: #3fc6a0;
  20600. display: flex;
  20601. height: 35px;
  20602. }
  20603. .study_top .checked > div,
  20604. .study_top .check > div {
  20605. margin-right: 5px;
  20606. }
  20607. .videoTop {
  20608. display: flex;
  20609. flex-direction: row;
  20610. justify-content: space-between;
  20611. background: #fff;
  20612. align-items: center;
  20613. width: 95%;
  20614. padding: 20px;
  20615. }
  20616. .filebox {
  20617. display: flex;
  20618. flex-wrap: wrap;
  20619. flex-direction: column;
  20620. padding: 0 0 5px;
  20621. position: relative;
  20622. }
  20623. .filebox:before {
  20624. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20625. position: absolute;
  20626. top: 20px;
  20627. left: 13px;
  20628. border-left: 2px dotted #cad1dc;
  20629. height: calc(100% - 15px);
  20630. }
  20631. .toolHeng2 > div:last-child::before {
  20632. height: calc(100% - 43px);
  20633. }
  20634. .filebox .tooldetail {
  20635. width: calc(100%);
  20636. margin: 0px 12px;
  20637. padding: 12px;
  20638. line-height: 30px;
  20639. word-break: break-word;
  20640. background: #ffffff;
  20641. border-radius: 8px 8px 8px 8px;
  20642. opacity: 1;
  20643. border: 1px solid #cad1dc;
  20644. overflow:hidden;
  20645. box-sizing:border-box;
  20646. }
  20647. .file {
  20648. display: flex;
  20649. flex-direction: column;
  20650. align-items: center;
  20651. justify-content: center;
  20652. cursor: pointer;
  20653. width: 200px;
  20654. }
  20655. .file div {
  20656. margin-top: 10px;
  20657. width: 150px;
  20658. text-align: center;
  20659. overflow: hidden;
  20660. white-space: nowrap;
  20661. text-overflow: ellipsis;
  20662. }
  20663. .media {
  20664. display: flex;
  20665. flex-direction: column;
  20666. align-items: center;
  20667. justify-content: center;
  20668. margin: 0 20px 20px 0;
  20669. cursor: pointer;
  20670. margin: 12px 0 5px 15px;
  20671. overflow: hidden;
  20672. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20673. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20674. box-sizing: border-box;
  20675. }
  20676. .media img {
  20677. height: 90px;
  20678. width: 160px;
  20679. object-fit: cover;
  20680. }
  20681. .media .title {
  20682. padding: 5px;
  20683. text-align: left;
  20684. width: 100%;
  20685. box-sizing: border-box;
  20686. }
  20687. .media .btn {
  20688. width: 100%;
  20689. height: 35px;
  20690. line-height: 35px;
  20691. color: #fff;
  20692. background: #606060;
  20693. text-align: center;
  20694. overflow: hidden;
  20695. white-space: nowrap;
  20696. text-overflow: ellipsis;
  20697. }
  20698. .detail_content_top {
  20699. width: 100%;
  20700. padding: 25px 0 25px 0;
  20701. }
  20702. .detail_title {
  20703. text-align: center;
  20704. font-size: 24px;
  20705. }
  20706. .detail_time {
  20707. font-size: 13px;
  20708. padding: 15px 0 0 40px;
  20709. }
  20710. .detail_content {
  20711. line-height: 2pc;
  20712. width: 90%;
  20713. margin: 0 auto;
  20714. padding-top: 30px;
  20715. text-indent: 30px;
  20716. overflow: auto;
  20717. height: 200px;
  20718. }
  20719. .score_box >>> .el-rate {
  20720. margin-left: 10px;
  20721. }
  20722. .dialog_change >>> .el-dialog {
  20723. border-radius: 5px;
  20724. }
  20725. .dialog_change >>> .el-dialog__header {
  20726. background: #f2f2f2;
  20727. text-align: center;
  20728. }
  20729. .dialog_change >>> .el-dialog__title {
  20730. line-height: 5px;
  20731. }
  20732. .dialog_change >>> .el-dialog__body {
  20733. background: #fff;
  20734. padding: 10px 20px;
  20735. }
  20736. .score_box {
  20737. display: flex;
  20738. align-items: center;
  20739. margin-bottom: 18px;
  20740. margin-top: 20px;
  20741. }
  20742. .up_photo {
  20743. width: 120px;
  20744. cursor: pointer;
  20745. margin-top: 10px;
  20746. }
  20747. .up_photo2 {
  20748. width: 180px;
  20749. box-sizing: border-box;
  20750. min-width: 180px;
  20751. height: 180px;
  20752. max-height: 180px;
  20753. min-height: 180px;
  20754. cursor: pointer;
  20755. display: flex;
  20756. flex-direction: column;
  20757. align-items: center;
  20758. justify-content: center;
  20759. background: rgb(242, 246, 255);
  20760. /* padding: 25px; */
  20761. margin-bottom: 10px;
  20762. }
  20763. .up_photo2 img {
  20764. width: 50%;
  20765. height: auto;
  20766. }
  20767. .up_photo2 span {
  20768. color: #898989;
  20769. }
  20770. .plworkBox {
  20771. display: flex;
  20772. align-items: center;
  20773. margin-top: 10px;
  20774. flex-wrap: wrap;
  20775. }
  20776. .upload_send {
  20777. margin: 30px auto 30px;
  20778. width: 60%;
  20779. background: #3681fc;
  20780. text-align: center;
  20781. height: 35px;
  20782. line-height: 35px;
  20783. color: #fff;
  20784. border-radius: 5px;
  20785. cursor: pointer;
  20786. }
  20787. .marginT {
  20788. margin-top: 20px;
  20789. }
  20790. .cd_content_steps {
  20791. display: flex;
  20792. width: 90%;
  20793. justify-content: space-around;
  20794. border-top: 1px solid #eeeeee;
  20795. }
  20796. .cd_steps_box {
  20797. display: flex;
  20798. justify-content: center;
  20799. align-items: center;
  20800. flex-direction: column;
  20801. cursor: pointer;
  20802. }
  20803. .first {
  20804. display: flex;
  20805. align-items: center;
  20806. margin: 15px 0 20px 0;
  20807. font-size: 20px;
  20808. }
  20809. .first > div:nth-child(2) {
  20810. font-size: 16px !important;
  20811. padding-left: 10px;
  20812. line-height: 26px;
  20813. box-sizing: border-box;
  20814. }
  20815. .blue_box_one {
  20816. text-align: center;
  20817. color: #fff;
  20818. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20819. border-radius: 7px;
  20820. margin: 10px;
  20821. cursor: pointer;
  20822. width: 95%;
  20823. height: 45px;
  20824. display: flex;
  20825. flex-direction: row;
  20826. justify-content: flex-start;
  20827. align-items: center;
  20828. }
  20829. .blue_box_one > div:nth-child(1) {
  20830. line-height: 30px;
  20831. margin: 0 5px 0 10px;
  20832. width: 30%;
  20833. min-width: 70px;
  20834. border-radius: 4px;
  20835. }
  20836. .blue_box_one > div:nth-child(2) {
  20837. white-space: nowrap;
  20838. text-overflow: ellipsis;
  20839. overflow: hidden;
  20840. word-break: break-all;
  20841. width: 70%;
  20842. text-align: left;
  20843. margin-right: 10px;
  20844. max-width: calc(100% - 85px);
  20845. }
  20846. .blue_box_one > div:nth-child(2):hover {
  20847. overflow: hidden;
  20848. text-overflow: ellipsis;
  20849. white-space: nowrap;
  20850. cursor: pointer;
  20851. }
  20852. .upFile {
  20853. margin: 0 auto;
  20854. width: 120px;
  20855. background: #3681fc;
  20856. color: #fff;
  20857. height: 30px;
  20858. text-align: center;
  20859. line-height: 30px;
  20860. border-radius: 5px;
  20861. font-size: 14px;
  20862. cursor: pointer;
  20863. }
  20864. .courseTitle {
  20865. width: 85%;
  20866. margin: 10px auto 26px auto;
  20867. display: flex;
  20868. flex-direction: row;
  20869. align-items: center;
  20870. justify-content: space-between;
  20871. text-align: center;
  20872. }
  20873. .courseTitle .ctitle {
  20874. font-size: 20px;
  20875. font-weight: bold;
  20876. color: #0e1e33;
  20877. white-space: nowrap;
  20878. overflow: hidden;
  20879. text-overflow: ellipsis;
  20880. }
  20881. .inviteBox {
  20882. font-size: 14px;
  20883. /* margin-top: 5px; */
  20884. color: #00000099;
  20885. text-align: center;
  20886. }
  20887. .courseTitle >>> .el-tooltip {
  20888. width: 100%;
  20889. white-space: nowrap;
  20890. overflow: hidden;
  20891. text-overflow: ellipsis;
  20892. word-break: break-word;
  20893. }
  20894. .ml {
  20895. margin-left: 20px;
  20896. color: #5b7dba;
  20897. border-left: 3px solid #5b7dba;
  20898. padding-left: 5px;
  20899. font-weight: bold;
  20900. }
  20901. .return {
  20902. width: 2rem;
  20903. height: 2rem;
  20904. cursor: pointer;
  20905. }
  20906. .return > img {
  20907. width: 100%;
  20908. height: 100%;
  20909. }
  20910. .returnBtn {
  20911. width: 86px;
  20912. height: 36px;
  20913. background: #3681fc;
  20914. border-radius: 4px;
  20915. color: #fff;
  20916. text-align: center;
  20917. line-height: 36px;
  20918. margin-right: 20px;
  20919. cursor: pointer;
  20920. font-size: 14px;
  20921. font-weight: 400;
  20922. display: flex;
  20923. flex-direction: row;
  20924. flex-wrap: nowrap;
  20925. align-items: center;
  20926. justify-content: center;
  20927. }
  20928. .reBtnIcon,
  20929. .commentIcon,
  20930. .vedioIcon,
  20931. .vedioIcon1 {
  20932. /* width: 36px; */
  20933. height: 36px;
  20934. border-radius: 4px;
  20935. position: relative;
  20936. /* background: #e0eafb; */
  20937. background: #0061ff;
  20938. cursor: pointer;
  20939. margin-right: 12px;
  20940. display: flex;
  20941. align-items: center;
  20942. padding: 0 10px;
  20943. box-sizing: border-box;
  20944. font-size: 14px;
  20945. color: #fff;
  20946. }
  20947. .reBtnIcon::before,
  20948. .commentIcon::before,
  20949. .vedioIcon::before,
  20950. .vedioIcon1::before {
  20951. content: "";
  20952. display: block;
  20953. background-size: 100% 100%;
  20954. background-repeat: no-repeat;
  20955. width: 20px;
  20956. height: 20px;
  20957. margin-right: 5px;
  20958. /* position: absolute; */
  20959. /* top: 8px;
  20960. left: 8px; */
  20961. }
  20962. .vedioIcon1 {
  20963. background: #f63564;
  20964. }
  20965. .reBtnIcon::before {
  20966. background-image: url("../assets/icon/newIcons/refresh.png");
  20967. }
  20968. .commentIcon::before {
  20969. background-image: url("../assets/icon/newIcons/comment.png");
  20970. }
  20971. .vedioIcon::before {
  20972. background-image: url("../assets/icon/newIcons/transcribe.png");
  20973. }
  20974. .vedioIcon1::before {
  20975. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20976. background-image: url("../assets/icon/newIcons/transcribe.png");
  20977. }
  20978. .tool {
  20979. display: flex;
  20980. flex-direction: column;
  20981. flex-wrap: nowrap;
  20982. width: 13%;
  20983. margin: 0 30px;
  20984. align-items: center;
  20985. position: relative;
  20986. padding: 10px 25px;
  20987. cursor: pointer;
  20988. }
  20989. .whiteBIcon {
  20990. width: 150px;
  20991. }
  20992. .whiteBIcon > img {
  20993. width: 100%;
  20994. height: 100%;
  20995. }
  20996. .mask {
  20997. background-color: rgba(0, 0, 0, 0);
  20998. position: fixed;
  20999. top: 0;
  21000. left: 0;
  21001. width: 100%;
  21002. height: 100%;
  21003. z-index: 20000;
  21004. display: flex;
  21005. align-items: center;
  21006. justify-content: center;
  21007. }
  21008. .progressBox {
  21009. width: 500px;
  21010. height: 180px;
  21011. background: #fff;
  21012. border-radius: 10px;
  21013. box-shadow: 0 0 6px 1px #bfbfbf;
  21014. display: flex;
  21015. align-items: center;
  21016. justify-content: center;
  21017. flex-direction: column;
  21018. position: relative;
  21019. color: #6c6c6c;
  21020. }
  21021. .progressBox >>> .el-progress-bar__outer {
  21022. background-color: #d1dfff !important;
  21023. }
  21024. .progressBox .lbox {
  21025. height: 50px;
  21026. font-size: 19px;
  21027. display: flex;
  21028. align-items: center;
  21029. color: #747474;
  21030. }
  21031. .progressBox .lbox img {
  21032. width: 40px;
  21033. margin-right: 20px;
  21034. }
  21035. .closeCss {
  21036. position: absolute;
  21037. top: 8px;
  21038. right: 8px;
  21039. cursor: pointer;
  21040. width: 20px;
  21041. height: 20px;
  21042. }
  21043. .closeCss > img {
  21044. width: 100%;
  21045. height: 100%;
  21046. }
  21047. .uploadVedio {
  21048. display: flex;
  21049. flex-direction: column;
  21050. flex-wrap: nowrap;
  21051. justify-content: center;
  21052. align-items: center;
  21053. margin: 0 15px 10px 0;
  21054. }
  21055. .uploadVedio > img {
  21056. width: 30px;
  21057. height: 30px;
  21058. }
  21059. .uploadVedio > span {
  21060. white-space: nowrap;
  21061. overflow: hidden;
  21062. text-overflow: ellipsis;
  21063. width: 75px;
  21064. margin-top: 7px;
  21065. }
  21066. .picName {
  21067. white-space: nowrap;
  21068. overflow: hidden;
  21069. text-overflow: ellipsis;
  21070. width: 75px;
  21071. margin-top: 7px;
  21072. }
  21073. .new_top {
  21074. display: flex;
  21075. background: #fff;
  21076. flex-direction: row;
  21077. justify-content: flex-start;
  21078. align-items: center;
  21079. height: 60px;
  21080. position: fixed;
  21081. top: 20px;
  21082. left: 22%;
  21083. width: 77%;
  21084. z-index: 999;
  21085. border-radius: 12px 12px 0 0;
  21086. border-bottom: 1px solid #cad1dc;
  21087. padding: 10px 0;
  21088. }
  21089. .new_topFixed {
  21090. width: 100%;
  21091. height: 40px;
  21092. position: fixed;
  21093. top: 0px;
  21094. display: block;
  21095. background: #f2f2f2;
  21096. z-index: 998;
  21097. }
  21098. .before {
  21099. position: absolute;
  21100. background: #c3dad4;
  21101. width: 6px;
  21102. height: 100%;
  21103. }
  21104. .courseIndex {
  21105. display: flex;
  21106. flex-direction: row;
  21107. align-items: center;
  21108. width: calc(100% - 745px);
  21109. }
  21110. .courseIndex > div:nth-child(1) {
  21111. margin: 0 0 0 10px;
  21112. font-size: 20px;
  21113. min-width: 100px;
  21114. font-weight: bold;
  21115. border-left: 4px solid #3363b9;
  21116. height: 32px;
  21117. text-align: center;
  21118. line-height: 35px;
  21119. }
  21120. .courseIndex > div:nth-child(2) {
  21121. font-size: 20px;
  21122. /* width: 300px; */
  21123. max-width: calc(100% - 105px);
  21124. white-space: nowrap;
  21125. overflow: hidden;
  21126. text-overflow: ellipsis;
  21127. }
  21128. .courseIndex > div:nth-child(3) {
  21129. border-bottom: 1px solid #d7d7d7;
  21130. padding-bottom: 5px;
  21131. background: #3681fc;
  21132. width: 55px;
  21133. min-width: 55px;
  21134. border-radius: 5px;
  21135. color: #fff;
  21136. text-align: center;
  21137. height: 20px;
  21138. line-height: 26px;
  21139. font-size: 14px;
  21140. margin: 0 0 0 10px;
  21141. }
  21142. .course_text {
  21143. padding: 20px 0 0 15px;
  21144. text-indent: 30px;
  21145. width: 80%;
  21146. min-height: 20px;
  21147. }
  21148. .vedioList {
  21149. background: #f2f2f2;
  21150. border: 1px solid #ececec;
  21151. /* width: 38.8%; */
  21152. /* width: 300px; */
  21153. width: 100%;
  21154. height: 445px;
  21155. border-radius: 10px;
  21156. overflow: hidden;
  21157. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21158. }
  21159. .vedioNav {
  21160. margin: 10px 0 0 15px;
  21161. border-bottom: 1px solid #d7d7d7;
  21162. padding-bottom: 5px;
  21163. background: #3681fc;
  21164. width: 55px;
  21165. min-width: 55px;
  21166. border-radius: 5px;
  21167. color: #fff;
  21168. text-align: center;
  21169. height: 20px;
  21170. line-height: 26px;
  21171. font-size: 14px;
  21172. }
  21173. .queTop {
  21174. display: flex;
  21175. padding: 20px 0 20px 30px;
  21176. width: 100%;
  21177. flex-direction: row;
  21178. justify-content: flex-start;
  21179. align-items: center;
  21180. box-sizing: border-box;
  21181. }
  21182. .queTopTitle {
  21183. display: flex;
  21184. flex-direction: row;
  21185. flex-wrap: nowrap;
  21186. align-items: center;
  21187. font-weight: bold;
  21188. font-size: 20px;
  21189. color: rgb(14, 30, 51);
  21190. }
  21191. .queTopTitle::before {
  21192. content: "";
  21193. width: 2px;
  21194. height: 22px;
  21195. background: #3681fc;
  21196. border-radius: 3px;
  21197. display: block;
  21198. margin: 2px 6px 0 0;
  21199. }
  21200. .queTopRight {
  21201. display: flex;
  21202. flex-direction: row;
  21203. flex-wrap: nowrap;
  21204. align-items: center;
  21205. }
  21206. .queTopClose {
  21207. margin-right: 20px;
  21208. cursor: pointer;
  21209. position: relative;
  21210. display: flex;
  21211. }
  21212. .closeImg,
  21213. .openImg {
  21214. width: 25px;
  21215. height: 25px;
  21216. position: absolute;
  21217. left: -20px;
  21218. top: -1px;
  21219. }
  21220. .closeImg > img,
  21221. .openImg > img {
  21222. width: 100%;
  21223. height: 100%;
  21224. }
  21225. .question {
  21226. width: 40px;
  21227. margin-right: 10px;
  21228. margin-top: 7px;
  21229. }
  21230. .queTitle {
  21231. margin-left: 5px;
  21232. font-size: 25px;
  21233. display: flex;
  21234. align-items: center;
  21235. }
  21236. .addEditor {
  21237. width: 100px;
  21238. height: 30px;
  21239. background: #42cda6;
  21240. color: #fff;
  21241. border-radius: 5px;
  21242. text-align: center;
  21243. line-height: 30px;
  21244. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21245. cursor: pointer;
  21246. }
  21247. /* .vedioName {
  21248. cursor: pointer;
  21249. margin: 0px 0px 10px 5px;
  21250. white-space: nowrap;
  21251. overflow: hidden;
  21252. text-overflow: ellipsis;
  21253. width: 100%;
  21254. } */
  21255. .vedioTime {
  21256. width: 35px;
  21257. position: absolute;
  21258. color: #fff;
  21259. bottom: 0px;
  21260. right: 0px;
  21261. text-align: center;
  21262. background: #46411f;
  21263. height: 20px;
  21264. font-size: 14px;
  21265. line-height: 20px;
  21266. }
  21267. .homework {
  21268. width: 200px;
  21269. display: flex;
  21270. flex-direction: column;
  21271. flex-wrap: nowrap;
  21272. align-items: center;
  21273. cursor: pointer;
  21274. }
  21275. .homebox {
  21276. display: flex;
  21277. flex-wrap: wrap;
  21278. flex-direction: row;
  21279. justify-content: flex-start;
  21280. align-items: center;
  21281. padding: 15px 0;
  21282. }
  21283. .isChooseActive {
  21284. color: #3681fc !important;
  21285. font-weight: bold !important;
  21286. }
  21287. .chooseWho {
  21288. display: flex;
  21289. width: 100%;
  21290. flex-direction: row;
  21291. flex-wrap: nowrap;
  21292. justify-content: flex-start;
  21293. padding-bottom: 10px;
  21294. }
  21295. .chooseWho > div {
  21296. cursor: pointer;
  21297. padding-bottom: 10px;
  21298. margin: 0 30px 0 0;
  21299. font-weight: 400;
  21300. color: #0e1e33;
  21301. }
  21302. .addPoint > div > img {
  21303. cursor: pointer;
  21304. width: 85px;
  21305. border-radius: 15px;
  21306. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21307. }
  21308. .addPoint > div {
  21309. display: flex;
  21310. flex-direction: column;
  21311. flex-wrap: nowrap;
  21312. align-items: center;
  21313. }
  21314. .isBorder > div {
  21315. margin: 0 0 10px 0;
  21316. align-items: flex-start !important;
  21317. }
  21318. .noiframeBox {
  21319. display: flex;
  21320. flex-wrap: wrap;
  21321. }
  21322. .iframeBox iframe {
  21323. width: 100%;
  21324. height: 800px;
  21325. border: none;
  21326. margin-bottom: 20px;
  21327. border: 1px solid #ccc;
  21328. }
  21329. .upload_toolBtn {
  21330. background: #3681fc;
  21331. color: #fff;
  21332. width: 110px;
  21333. text-align: center;
  21334. height: 35px;
  21335. line-height: 35px;
  21336. font-size: 14px;
  21337. border-radius: 5px;
  21338. cursor: pointer;
  21339. position: absolute;
  21340. right: 10px;
  21341. bottom: 0;
  21342. }
  21343. .binfo_input,
  21344. .pj {
  21345. font: inherit;
  21346. color: currentColor;
  21347. width: 100%;
  21348. margin: 0;
  21349. padding: 15px 14px;
  21350. display: block;
  21351. min-width: 0;
  21352. outline: none;
  21353. box-sizing: content-box;
  21354. background: none;
  21355. -webkit-tap-highlight-color: transparent;
  21356. border: 1px solid rgba(0, 0, 0, 0.23);
  21357. border-radius: 4px;
  21358. box-sizing: border-box;
  21359. resize: none;
  21360. }
  21361. .binfo_input:focus-visible {
  21362. border: 1px solid rgba(61, 103, 188);
  21363. }
  21364. .dialog_diy >>> .el-dialog__header,
  21365. .dialog_diy1 >>> .el-dialog__header {
  21366. background: #454545 !important;
  21367. padding: 15px 20px;
  21368. }
  21369. .dialog_diy >>> .el-dialog__title,
  21370. .dialog_diy1 >>> .el-dialog__title {
  21371. color: #fff;
  21372. }
  21373. .dialog_diy >>> .el-dialog__headerbtn,
  21374. .dialog_diy1 >>> .el-dialog__headerbtn {
  21375. top: 19px;
  21376. }
  21377. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21378. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21379. color: #fff;
  21380. }
  21381. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21382. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21383. color: #fff;
  21384. }
  21385. .dialog_diy1 >>> .el-dialog__body {
  21386. padding: 0;
  21387. }
  21388. .dialog_diy >>> .el-dialog__body,
  21389. .dialog_diy >>> .el-dialog__footer,
  21390. .dialog_diy1 >>> .el-dialog__footer {
  21391. background: #fafafa;
  21392. }
  21393. .a_addBox {
  21394. padding: 0 0 0 15px;
  21395. }
  21396. .a_add_box {
  21397. padding: 10px;
  21398. background: #fff;
  21399. margin-bottom: 10px;
  21400. border-radius: 5px;
  21401. box-shadow: 0 0 5px 0 #d5d5d5;
  21402. }
  21403. .a_add_head {
  21404. display: flex;
  21405. align-items: flex-start;
  21406. /* justify-content: space-between; */
  21407. flex-direction: column;
  21408. /* flex-direction: row; */
  21409. margin: 10px 0 20px 0;
  21410. font-size: 18px;
  21411. width: 100%;
  21412. }
  21413. .askIndex {
  21414. background: #3681fc;
  21415. border-radius: 50%;
  21416. color: #fff;
  21417. width: 25px;
  21418. height: 25px;
  21419. min-width: 25px;
  21420. min-height: 25px;
  21421. text-align: center;
  21422. line-height: 25px;
  21423. margin-right: 5px;
  21424. }
  21425. .a_add_head .a_add_head_input {
  21426. width: 300px;
  21427. }
  21428. .a_add_head .a_add_head_div {
  21429. display: flex;
  21430. align-items: center;
  21431. justify-content: space-between;
  21432. }
  21433. .a_add_body {
  21434. display: flex;
  21435. align-items: center;
  21436. }
  21437. .a_add_input {
  21438. display: flex;
  21439. align-items: center;
  21440. flex-wrap: wrap;
  21441. width: 100%;
  21442. }
  21443. .a_add_input >>> .el-radio-group,
  21444. .a_add_input >>> .el-checkbox-group {
  21445. width: 100%;
  21446. }
  21447. .a_add_input >>> .el-radio,
  21448. .a_add_input >>> .el-checkbox {
  21449. display: flex;
  21450. flex-direction: row;
  21451. flex-wrap: nowrap;
  21452. align-items: center;
  21453. padding: 15px 0;
  21454. }
  21455. .a_add_input >>> .el-radio:not(:last-child),
  21456. .a_add_input >>> .el-checkbox:not(:last-child) {
  21457. width: 100%;
  21458. border-bottom: 1px solid #efefef;
  21459. }
  21460. .redioStyle >>> .el-radio__label {
  21461. font-size: 18px;
  21462. }
  21463. .redioStyle >>> .el-radio__label > span,
  21464. .redioStyle >>> .el-checkbox__label > span {
  21465. word-break: break-all;
  21466. white-space: normal;
  21467. }
  21468. .redioStyle >>> .el-checkbox__label {
  21469. font-size: 18px;
  21470. }
  21471. .toolHeng2 {
  21472. width: 100%;
  21473. padding-left: 15px;
  21474. box-sizing: border-box;
  21475. }
  21476. .workNav {
  21477. font-size: 20px;
  21478. font-weight: bold;
  21479. color: #0e1e33;
  21480. display: flex;
  21481. flex-direction: row;
  21482. flex-wrap: nowrap;
  21483. align-items: center;
  21484. padding: 15px 0 15px 0;
  21485. }
  21486. .workNav::before {
  21487. content: "";
  21488. width: 2px;
  21489. height: 22px;
  21490. background: #3681fc;
  21491. border-radius: 3px;
  21492. display: block;
  21493. margin: 2px 6px 0 0;
  21494. }
  21495. .toolHeng {
  21496. display: flex;
  21497. flex-direction: row;
  21498. flex-wrap: wrap;
  21499. justify-content: flex-start;
  21500. align-items: center;
  21501. width: 100%;
  21502. }
  21503. .toolHeng > div {
  21504. padding-left: 20px;
  21505. }
  21506. .isWidth {
  21507. width: 20%;
  21508. }
  21509. .textTitle {
  21510. display: flex;
  21511. flex-direction: row;
  21512. flex-wrap: nowrap;
  21513. align-items: center;
  21514. width: 95%;
  21515. }
  21516. .textTitle >>> .el-form-item__label {
  21517. font-size: 22px;
  21518. color: #918f8f;
  21519. width: 100px;
  21520. }
  21521. .textTitle >>> .el-form-item__content {
  21522. width: calc(100% - 100px);
  21523. }
  21524. .textCss >>> .el-dialog {
  21525. width: 800px !important;
  21526. height: 400px;
  21527. background: #fafafa;
  21528. }
  21529. .textCss >>> .el-dialog__body {
  21530. margin: 55px 8% 0 8%;
  21531. padding: 0 !important;
  21532. }
  21533. .textCss >>> .el-dialog__footer {
  21534. padding-top: 38px;
  21535. }
  21536. .toolsCss >>> .el-dialog__body {
  21537. padding: 20px;
  21538. }
  21539. .lineCss >>> .el-dialog__body {
  21540. display: flex;
  21541. flex-direction: row;
  21542. align-items: center;
  21543. justify-content: center;
  21544. }
  21545. .newNav {
  21546. display: flex;
  21547. flex-direction: row;
  21548. align-items: baseline;
  21549. justify-content: flex-start;
  21550. }
  21551. .navListItem {
  21552. width: calc(100% - 20px);
  21553. height: 50px;
  21554. margin: 0px auto 10px;
  21555. display: flex;
  21556. flex-direction: row;
  21557. flex-wrap: nowrap;
  21558. align-items: center;
  21559. justify-content: space-between;
  21560. background: #f0f4fa;
  21561. border-radius: 6px 6px 6px 6px;
  21562. }
  21563. .navText {
  21564. cursor: pointer;
  21565. white-space: nowrap;
  21566. overflow: hidden;
  21567. text-overflow: ellipsis;
  21568. width: 220px;
  21569. padding: 0 10px;
  21570. font-weight: 400;
  21571. color: #0e1e33;
  21572. }
  21573. .downIcon {
  21574. width: 20px;
  21575. min-width: 20px;
  21576. height: 20px;
  21577. margin-right: 15px;
  21578. cursor: pointer;
  21579. }
  21580. .downIcon > img {
  21581. width: 100%;
  21582. height: 100%;
  21583. }
  21584. .noVedio {
  21585. display: flex;
  21586. flex-direction: row;
  21587. justify-content: center;
  21588. align-content: center;
  21589. }
  21590. .noNavText {
  21591. cursor: pointer;
  21592. margin: 0px 0px 10px 5px;
  21593. width: 112px;
  21594. }
  21595. .listNoVedio {
  21596. margin: 0 0 0 30px;
  21597. width: 97%;
  21598. }
  21599. .video-player >>> .video-js {
  21600. height: 100%;
  21601. }
  21602. .hangVedioList {
  21603. width: 90% !important;
  21604. height: 150px !important;
  21605. margin: 20px 0 0 30px;
  21606. }
  21607. .hangVedio {
  21608. width: 100%;
  21609. height: 170px !important;
  21610. align-items: flex-start !important;
  21611. }
  21612. .hangHand {
  21613. height: 150px !important;
  21614. }
  21615. .twoChild {
  21616. width: 95%;
  21617. margin: 10px;
  21618. border-radius: 5px;
  21619. background: #f2f2f2;
  21620. display: flex;
  21621. flex-direction: column;
  21622. flex-wrap: nowrap;
  21623. justify-content: flex-start;
  21624. align-items: flex-start;
  21625. transition: all 0.5s;
  21626. overflow: hidden;
  21627. height: 0;
  21628. background: #e7f3ff;
  21629. }
  21630. .twoChild > div:nth-child(1) {
  21631. margin-top: 5px;
  21632. }
  21633. .navChild {
  21634. width: 100%;
  21635. cursor: pointer;
  21636. margin-bottom: 10px;
  21637. position: relative;
  21638. }
  21639. .navChild img {
  21640. position: absolute;
  21641. right: 11px;
  21642. width: 15px;
  21643. top: 50%;
  21644. transform: translateY(-50%);
  21645. }
  21646. .navActive,
  21647. .toolActive {
  21648. height: auto !important;
  21649. overflow: auto !important;
  21650. /* padding-bottom: 16px; */
  21651. }
  21652. .toolActive {
  21653. padding: 0;
  21654. }
  21655. .navTask {
  21656. display: flex;
  21657. flex-direction: row;
  21658. flex-wrap: nowrap;
  21659. align-items: center;
  21660. align-content: flex-start;
  21661. height: 40px;
  21662. justify-content: flex-start;
  21663. padding: 0 10px;
  21664. width: 100%;
  21665. box-sizing: border-box;
  21666. }
  21667. .navTaskname {
  21668. white-space: nowrap;
  21669. text-overflow: ellipsis;
  21670. overflow: hidden;
  21671. word-break: break-all;
  21672. padding-left: 5px;
  21673. }
  21674. .openTaskActive {
  21675. /* background-color: #e0eafb !important;
  21676. color: #0061ff; */
  21677. color:#fff;
  21678. background: rgb(55, 129, 252) !important;
  21679. }
  21680. .iframeName {
  21681. margin: 5px 0;
  21682. border-left: 4px solid #41c4a4;
  21683. padding-left: 4px;
  21684. }
  21685. .toolTitle {
  21686. margin: 0px 0px 20px;
  21687. font-size: 20px;
  21688. font-weight: 500;
  21689. border-left: 4px solid #41c4a4;
  21690. padding-left: 4px;
  21691. }
  21692. .cru_selectBox {
  21693. overflow: auto;
  21694. width: 95%;
  21695. margin: 17px auto 0;
  21696. height: calc(100% - 40px - 21px - 20px - 17px);
  21697. background: #fff;
  21698. border-radius: 8px;
  21699. }
  21700. .cru_selectBox::-webkit-scrollbar,
  21701. .study_top::-webkit-scrollbar,
  21702. .textContent::-webkit-scrollbar {
  21703. /*滚动条整体样式*/
  21704. width: 6px;
  21705. /*高宽分别对应横竖滚动条的尺寸*/
  21706. height: 6px;
  21707. }
  21708. /*定义滚动条轨道 内阴影+圆角*/
  21709. .cru_selectBox::-webkit-scrollbar-track,
  21710. .study_top::-webkit-scrollbar-track,
  21711. .textContent::-webkit-scrollbar {
  21712. border-radius: 10px;
  21713. background-color: #b8bdc9;
  21714. }
  21715. /*定义滑块 内阴影+圆角*/
  21716. .cru_selectBox::-webkit-scrollbar-thumb,
  21717. .study_top::-webkit-scrollbar-thumb,
  21718. .textContent::-webkit-scrollbar-thumb {
  21719. border-radius: 10px;
  21720. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21721. background-color: #2c5ab3;
  21722. }
  21723. .vedioBox {
  21724. border-radius: 0 0 20px 20px;
  21725. background: #fff;
  21726. overflow: auto;
  21727. }
  21728. .taskBox {
  21729. width: 98%;
  21730. background: #f0f4fa;
  21731. margin: 10px auto;
  21732. padding: 0 10px;
  21733. border-radius: 4px;
  21734. box-sizing: border-box;
  21735. }
  21736. .vedioTaskBox {
  21737. width: 100%;
  21738. display: flex;
  21739. flex-direction: row;
  21740. flex-wrap: nowrap;
  21741. align-items: flex-start;
  21742. position: relative;
  21743. }
  21744. .toolBox {
  21745. margin: 15px 0 0 25px;
  21746. display: flex;
  21747. position: relative;
  21748. padding: 18px 20px;
  21749. border-top-left-radius: 5px;
  21750. border-top-right-radius: 5px;
  21751. width: 90%;
  21752. }
  21753. .btnAll {
  21754. position: absolute;
  21755. right: 0;
  21756. display: flex;
  21757. flex-direction: row;
  21758. flex-wrap: nowrap;
  21759. align-items: center;
  21760. }
  21761. .btnLeft,
  21762. .btnRight {
  21763. display: flex;
  21764. flex-direction: row;
  21765. flex-wrap: nowrap;
  21766. align-items: center;
  21767. padding: 5px 0;
  21768. }
  21769. .btnLeft {
  21770. border-right: 1px solid #cad1dc;
  21771. }
  21772. .btnLeft > .custom-tooltip {
  21773. background: #3681fc;
  21774. color: #fff;
  21775. }
  21776. .last:hover {
  21777. background: #3383fa !important;
  21778. color: #fff;
  21779. border: 1px solid #3383fa !important;
  21780. }
  21781. .last,
  21782. .returnBtn1 {
  21783. width: 90px;
  21784. height: 36px;
  21785. background: #ffffff;
  21786. border-radius: 4px;
  21787. border: 1px solid #0061ff;
  21788. color: #0061ff;
  21789. cursor: pointer;
  21790. display: flex;
  21791. flex-direction: row;
  21792. flex-wrap: nowrap;
  21793. align-items: center;
  21794. justify-content: center;
  21795. margin-left: 12px;
  21796. }
  21797. .returnBtn1 {
  21798. background: #f0f4fa;
  21799. border-radius: 4px;
  21800. border: 1px solid #cad1dc;
  21801. margin: 0 12px;
  21802. }
  21803. .lastImg {
  21804. min-width: 15px;
  21805. width: 15px;
  21806. height: 15px;
  21807. display: flex;
  21808. }
  21809. .lastText {
  21810. padding: 0 5px 0 5px;
  21811. box-sizing: border-box;
  21812. font-size: 14px;
  21813. }
  21814. .lastImg > img {
  21815. width: 100%;
  21816. height: 100%;
  21817. }
  21818. /* .vedioTimeBox {
  21819. display: flex;
  21820. flex-direction: row;
  21821. align-items: center;
  21822. flex-wrap: nowrap;
  21823. position: relative;
  21824. } */
  21825. .navBox {
  21826. background: #fff;
  21827. height: calc(100% - 40px);
  21828. overflow-y: auto;
  21829. overflow-x: hidden;
  21830. }
  21831. .worksBox {
  21832. margin: 0 0 10px 25px;
  21833. border-bottom: 1px solid #eeeeee;
  21834. padding: 18px 20px;
  21835. border-radius: 4px;
  21836. width: 90%;
  21837. }
  21838. .worksBTitle {
  21839. font-size: 20px;
  21840. padding-bottom: 15px;
  21841. border-bottom: 1px solid #eeeeee;
  21842. display: flex;
  21843. align-items: center;
  21844. }
  21845. .greenBox {
  21846. width: 5px;
  21847. height: 30px;
  21848. background: #63b6fa;
  21849. margin-right: 5px;
  21850. }
  21851. .worksDetailBox {
  21852. display: flex;
  21853. width: 100%;
  21854. flex-direction: row;
  21855. flex-wrap: wrap;
  21856. align-items: flex-end;
  21857. justify-content: flex-start;
  21858. padding: 15px 5px;
  21859. box-sizing: border-box;
  21860. }
  21861. .works {
  21862. display: flex;
  21863. flex-direction: column;
  21864. flex-wrap: nowrap;
  21865. align-items: flex-start;
  21866. justify-content: flex-start;
  21867. align-content: center;
  21868. max-width: 240px;
  21869. width: calc(100% / 3 - 10px);
  21870. height: auto;
  21871. margin-right: 10px;
  21872. margin-bottom: 10px;
  21873. overflow: hidden;
  21874. height: 140px;
  21875. box-shadow: 0 0 6px 1px #dfdada;
  21876. border-radius: 15px;
  21877. }
  21878. .workImg {
  21879. width: 100%;
  21880. /* height: calc(100% - 40px); */
  21881. height: 105px;
  21882. position: relative;
  21883. }
  21884. .workImg > img {
  21885. width: 100%;
  21886. height: 100%;
  21887. object-fit: contain;
  21888. cursor: pointer;
  21889. }
  21890. .worksName {
  21891. height: 40px;
  21892. line-height: 40px;
  21893. display: flex;
  21894. width: 100%;
  21895. flex-direction: row;
  21896. flex-wrap: nowrap;
  21897. justify-content: space-between;
  21898. align-items: center;
  21899. margin: 0 0 0 10px;
  21900. }
  21901. .worksName > div:nth-child(1) {
  21902. width: 110px;
  21903. white-space: nowrap;
  21904. overflow: hidden;
  21905. text-overflow: ellipsis;
  21906. }
  21907. .worksName > div:nth-child(2) {
  21908. color: #b7b4b5;
  21909. }
  21910. .noWorksS {
  21911. padding: 15px 0;
  21912. display: flex;
  21913. flex-direction: row;
  21914. flex-wrap: wrap;
  21915. align-items: center;
  21916. justify-content: flex-start;
  21917. }
  21918. .noWorksName,
  21919. .isWorksName,
  21920. .isWorksName2 {
  21921. background: #ddebf8;
  21922. color: #000;
  21923. width: 90px;
  21924. height: 25px;
  21925. text-align: center;
  21926. line-height: 25px;
  21927. border-radius: 4px;
  21928. margin: 10px 15px 10px 0;
  21929. white-space: nowrap;
  21930. overflow: hidden;
  21931. padding: 5px;
  21932. text-overflow: ellipsis;
  21933. cursor: pointer;
  21934. border: 1px solid #ddebf8;
  21935. }
  21936. .noWorksName {
  21937. background: #fff;
  21938. color: #0061ff;
  21939. border: 1px solid #0061ff;
  21940. }
  21941. .noWorksName > span{
  21942. max-width: 100%;
  21943. display: block;
  21944. overflow: hidden;
  21945. text-overflow: ellipsis;
  21946. white-space: nowrap;
  21947. }
  21948. .isWorksName2 {
  21949. width: 100px;
  21950. height: 40px;
  21951. line-height: 40px;
  21952. position: relative;
  21953. background: #dae6f9;
  21954. }
  21955. .isWorksName {
  21956. background: #e7ebf1 !important;
  21957. width: 100px;
  21958. height: 40px;
  21959. line-height: 40px;
  21960. position: relative;
  21961. color: #acb4bf;
  21962. border: 1px solid #cad1dc !important;
  21963. }
  21964. .isSelectName,
  21965. .noWorksName:hover {
  21966. background: #3383fa !important;
  21967. color: #fff !important;
  21968. border: 1px solid #3383fa !important;
  21969. }
  21970. .title {
  21971. background: #1e5cc9;
  21972. /* width: 98%; */
  21973. height: 45px;
  21974. color: #fff;
  21975. line-height: 45px;
  21976. padding-left: 20px;
  21977. box-sizing: border-box;
  21978. }
  21979. .textBox {
  21980. font-size: 20px;
  21981. width: 90%;
  21982. display: flex;
  21983. flex-direction: column;
  21984. align-items: center;
  21985. margin: 20px auto 0;
  21986. max-height: calc(100% - 75px);
  21987. overflow: auto;
  21988. }
  21989. .textContent {
  21990. font-size: 18px;
  21991. width: 95%;
  21992. max-width: 95%;
  21993. }
  21994. .answerBg {
  21995. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21996. background-size: 100% 100%;
  21997. width: 100%;
  21998. height: 100%;
  21999. color: #fff;
  22000. text-align: center;
  22001. display: flex;
  22002. flex-direction: column;
  22003. flex-wrap: nowrap;
  22004. align-items: center;
  22005. position: relative;
  22006. justify-content: center;
  22007. }
  22008. .answerBg > div:nth-child(1) {
  22009. /* font-size: 22px;
  22010. padding: 25px 0 10px; */
  22011. }
  22012. .answerContent {
  22013. width: 215px;
  22014. max-height: 60px;
  22015. word-break: break-all;
  22016. text-align: center;
  22017. /* white-space: nowrap; */
  22018. overflow: hidden;
  22019. text-overflow: ellipsis;
  22020. /* padding: 23px 0 0; */
  22021. -webkit-line-clamp: 3;
  22022. -webkit-box-orient: vertical;
  22023. display: -webkit-box;
  22024. font-size: 15px;
  22025. cursor: pointer;
  22026. }
  22027. .elist_input_box {
  22028. display: flex;
  22029. align-items: flex-start;
  22030. flex-wrap: nowrap;
  22031. padding: 10px 0 15px 30px;
  22032. flex-direction: column;
  22033. }
  22034. .elist_input {
  22035. /* width: 40%; */
  22036. width: 45%;
  22037. margin: 20px;
  22038. }
  22039. .elist_input .elist_input_box input {
  22040. font: inherit;
  22041. color: currentColor;
  22042. width: 200px;
  22043. padding: 8px 14px;
  22044. display: block;
  22045. min-width: 0;
  22046. outline: none;
  22047. border: 1px solid rgba(0, 0, 0, 0.23);
  22048. border-radius: 4px;
  22049. box-sizing: border-box;
  22050. background: #fff;
  22051. margin: 0 20px 0 0;
  22052. }
  22053. .elist_input .elist_input_box span {
  22054. height: 36px;
  22055. line-height: 36px;
  22056. color: rgb(82, 82, 82);
  22057. }
  22058. .elist_input .elist_input_box .remove {
  22059. height: 20px;
  22060. width: 20px;
  22061. background-size: 100% 100%;
  22062. background-position: unset;
  22063. margin-left: 5px;
  22064. }
  22065. .elist_input_box >>> .el-rate {
  22066. display: flex;
  22067. height: 36px;
  22068. align-items: center;
  22069. }
  22070. .elist_input_box .elist_inptu_text {
  22071. min-height: 50px;
  22072. /* width: 500px;
  22073. max-height: 150px; */
  22074. width: 100%;
  22075. line-height: 50px;
  22076. color: rgb(82, 82, 82);
  22077. overflow: auto;
  22078. text-indent: 5px;
  22079. background: #f7f6f9;
  22080. border-radius: 10px;
  22081. }
  22082. .elist_input_box .elist_inptu_text input {
  22083. width: 500px;
  22084. }
  22085. .elist_input_box >>> .el-rate__icon {
  22086. font-size: 24px;
  22087. }
  22088. .isClick {
  22089. background: #4d9def;
  22090. }
  22091. .bzBox {
  22092. display: flex;
  22093. flex-direction: row;
  22094. align-items: center;
  22095. }
  22096. .bzBox .yCss {
  22097. width: 7px;
  22098. height: 7px;
  22099. background: #fff;
  22100. margin: 0 16px 0 6px;
  22101. border-radius: 50%;
  22102. border: 5px solid #3681fc;
  22103. z-index: 99;
  22104. }
  22105. .bzBox > div:nth-child(2) {
  22106. font-size: 18px;
  22107. font-weight: bold;
  22108. color: #0e1e33;
  22109. }
  22110. .navTitile {
  22111. padding: 0 0px 0 15px;
  22112. font-size: 16px;
  22113. font-weight: bold;
  22114. color: #0e1e33;
  22115. height: 40px;
  22116. line-height: 40px;
  22117. }
  22118. .isTypeOne {
  22119. width: 240px;
  22120. height: 170px;
  22121. /* border: 1px solid #f8f8f8; */
  22122. border-radius: 10px;
  22123. box-shadow: 0 0 6px 1px #dfdada;
  22124. }
  22125. .e_add_top {
  22126. display: flex;
  22127. justify-content: space-between;
  22128. padding: 10px 20px;
  22129. border-radius: 3px;
  22130. background: #fff;
  22131. }
  22132. .e_add_title2 {
  22133. display: flex;
  22134. align-items: center;
  22135. }
  22136. .e_add_title2 span {
  22137. width: 40px;
  22138. }
  22139. .e_add_title {
  22140. display: flex;
  22141. align-items: center;
  22142. color: #b8b8b8;
  22143. font-size: 18px;
  22144. position: relative;
  22145. height: 40px;
  22146. width: 100%;
  22147. }
  22148. .e_add_title span {
  22149. margin-right: 10px;
  22150. }
  22151. .e_add_title .el_input {
  22152. width: 300px;
  22153. }
  22154. .e_add_title >>> .el-input__inner {
  22155. width: 400px;
  22156. }
  22157. .e_add_btn {
  22158. }
  22159. .e_add_content {
  22160. display: flex;
  22161. width: 100%;
  22162. max-width: 650px;
  22163. height: 550px;
  22164. }
  22165. .e_add_list {
  22166. background: #fff;
  22167. height: 500px;
  22168. width: 210px;
  22169. position: relative;
  22170. margin: 15px 5px 0 0;
  22171. flex-shrink: 0;
  22172. display: flex;
  22173. flex-direction: column;
  22174. }
  22175. .e_add_list_title {
  22176. font-size: 20px;
  22177. width: 100%;
  22178. box-sizing: border-box;
  22179. padding: 15px 40px;
  22180. text-align: center;
  22181. border-bottom: 1px solid #eaeaea;
  22182. position: relative;
  22183. display: flex;
  22184. align-items: center;
  22185. justify-content: center;
  22186. height: 57px;
  22187. background: #f6f6f6;
  22188. }
  22189. .e_add_list_title span {
  22190. overflow: hidden;
  22191. white-space: nowrap;
  22192. text-overflow: ellipsis;
  22193. }
  22194. .e_add_list_title img {
  22195. position: absolute;
  22196. right: 15px;
  22197. width: 25px;
  22198. cursor: pointer;
  22199. top: 50%;
  22200. transform: translateY(-50%);
  22201. }
  22202. .e_add_list_body {
  22203. height: calc(100% - 187px);
  22204. overflow: auto;
  22205. }
  22206. .e_add_list_child {
  22207. width: 100%;
  22208. display: flex;
  22209. align-items: center;
  22210. justify-content: center;
  22211. position: relative;
  22212. box-sizing: border-box;
  22213. padding: 15px 40px;
  22214. text-align: center;
  22215. }
  22216. .e_add_list_child span {
  22217. overflow: hidden;
  22218. white-space: nowrap;
  22219. text-overflow: ellipsis;
  22220. cursor: pointer;
  22221. }
  22222. .e_add_list_child img {
  22223. position: absolute;
  22224. right: 10px;
  22225. width: 21px;
  22226. cursor: pointer;
  22227. top: 50%;
  22228. transform: translateY(-50%);
  22229. }
  22230. .e_add_list_child + .e_add_list_child {
  22231. border-top: 1px solid #eaeaea;
  22232. }
  22233. .e_add_list_child .active {
  22234. color: #409eff;
  22235. }
  22236. .e_add_list_btn {
  22237. position: absolute;
  22238. bottom: 0;
  22239. height: 50px;
  22240. background: rgb(120, 120, 254);
  22241. width: 100%;
  22242. color: #fff;
  22243. font-size: 16px;
  22244. text-align: center;
  22245. line-height: 50px;
  22246. cursor: pointer;
  22247. }
  22248. .e_add_list_detail {
  22249. position: absolute;
  22250. bottom: 0;
  22251. height: 130px;
  22252. background: rgb(120, 120, 254);
  22253. width: 100%;
  22254. color: #fff;
  22255. font-size: 16px;
  22256. display: flex;
  22257. align-items: center;
  22258. justify-content: center;
  22259. }
  22260. .e_add_list_detail textarea {
  22261. height: 90%;
  22262. width: 95%;
  22263. border: none;
  22264. resize: none;
  22265. outline: none;
  22266. padding: 5px;
  22267. box-sizing: border-box;
  22268. }
  22269. .e_add_list_pbox {
  22270. width: 100%;
  22271. max-width: 650px;
  22272. /* height: 600px; */
  22273. }
  22274. .e_add_list_pbox_title {
  22275. height: 50px;
  22276. background: #fff;
  22277. display: flex;
  22278. align-items: center;
  22279. width: 100%;
  22280. box-sizing: border-box;
  22281. padding: 0 20px;
  22282. }
  22283. .type_title {
  22284. font-size: 18px;
  22285. font-weight: 700;
  22286. }
  22287. .type_content {
  22288. font-size: 16px;
  22289. /* margin-left: 30px; */
  22290. }
  22291. .type_content span + span {
  22292. margin-left: 20px;
  22293. }
  22294. .type_content span {
  22295. cursor: pointer;
  22296. padding-bottom: 5px;
  22297. box-sizing: border-box;
  22298. }
  22299. .type_content .active {
  22300. color: #409eff;
  22301. border-bottom: 2px solid #409eff;
  22302. }
  22303. .e_add_list_pbox_content {
  22304. height: calc(100% - 50px);
  22305. display: flex;
  22306. align-items: center;
  22307. width: 100%;
  22308. background: #fff;
  22309. }
  22310. .evaCss {
  22311. display: flex;
  22312. flex-direction: row;
  22313. flex-wrap: nowrap;
  22314. align-items: flex-start;
  22315. padding: 0 0 20px;
  22316. }
  22317. .cru_line {
  22318. position: absolute;
  22319. bottom: 0px;
  22320. transition: all 0.5s;
  22321. left: 0px;
  22322. width: 125px;
  22323. margin-left: -25px;
  22324. }
  22325. .isNoMessage {
  22326. width: 20%;
  22327. margin: 25% auto 0;
  22328. }
  22329. .isNoMessage > img {
  22330. width: 100%;
  22331. height: 100%;
  22332. }
  22333. .fullStyle >>> .el-dialog__body {
  22334. height: 100% !important;
  22335. }
  22336. .fullStyle >>> .el-dialog,
  22337. .fullStyle {
  22338. width: 100% !important;
  22339. max-width: 100% !important;
  22340. height: 100% !important;
  22341. margin: 0 !important;
  22342. }
  22343. .full_diy >>> .el-dialog {
  22344. margin: 0 !important;
  22345. height: 100%;
  22346. padding: 4px;
  22347. }
  22348. .full_diy >>> .el-dialog__body {
  22349. height: calc(100% - 100px);
  22350. }
  22351. .full_diy2 >>> .el-dialog__body {
  22352. height: calc(100% - 50px);
  22353. padding: 0;
  22354. }
  22355. .switchCss {
  22356. /* width: 100%; */
  22357. display: flex;
  22358. flex-direction: row;
  22359. flex-wrap: nowrap;
  22360. align-items: center;
  22361. /* justify-content: center; */
  22362. }
  22363. .isClickNav {
  22364. /* color: #499eef; */
  22365. color: #000;
  22366. }
  22367. .commentImg {
  22368. width: 25px;
  22369. height: 25px;
  22370. cursor: pointer;
  22371. }
  22372. .commentImg > img {
  22373. width: 100%;
  22374. height: 100%;
  22375. }
  22376. .comment {
  22377. background: #f9f9f9;
  22378. border-radius: 0 0 4px 4px;
  22379. display: flex;
  22380. flex-direction: row;
  22381. flex-wrap: nowrap;
  22382. align-items: center;
  22383. justify-content: flex-end;
  22384. height: 35px;
  22385. }
  22386. .commentList {
  22387. display: flex;
  22388. flex-direction: row;
  22389. flex-wrap: nowrap;
  22390. align-items: center;
  22391. justify-content: center;
  22392. align-content: center;
  22393. /* margin-left: 15px; */
  22394. /* margin-left: 8px; */
  22395. }
  22396. .scoreImg {
  22397. width: 17px;
  22398. height: 17px;
  22399. }
  22400. .studentDetail {
  22401. display: flex;
  22402. flex-direction: row;
  22403. flex-wrap: nowrap;
  22404. /* align-items: center; */
  22405. align-items: flex-start;
  22406. }
  22407. .tx {
  22408. width: 50px;
  22409. }
  22410. .tx > img {
  22411. width: 100%;
  22412. height: 100%;
  22413. }
  22414. .nameAndTime {
  22415. display: flex;
  22416. flex-direction: column;
  22417. flex-wrap: nowrap;
  22418. align-items: flex-start;
  22419. margin-left: 10px;
  22420. }
  22421. .worksAnswer {
  22422. color: #4078dd;
  22423. margin: 10px 0;
  22424. font-size: 16px;
  22425. position: relative;
  22426. }
  22427. .worksAnswer > img {
  22428. width: 500px;
  22429. height: 300px;
  22430. object-fit: contain;
  22431. margin: 0 auto;
  22432. display: block;
  22433. }
  22434. .commentTop {
  22435. border-bottom: 1px solid #eaeaea;
  22436. padding-bottom: 10px;
  22437. }
  22438. .commentBox {
  22439. padding-top: 15px;
  22440. }
  22441. .pl {
  22442. font-size: 18px;
  22443. }
  22444. .plPerson {
  22445. width: 100%;
  22446. }
  22447. .plName {
  22448. display: flex;
  22449. flex-direction: row;
  22450. flex-wrap: nowrap;
  22451. align-items: baseline;
  22452. color: #78787a;
  22453. width: 100%;
  22454. }
  22455. .deleteComment {
  22456. cursor: pointer;
  22457. margin-left: auto;
  22458. color: #237ade;
  22459. }
  22460. .plContent {
  22461. margin-top: 5px;
  22462. }
  22463. .evalCss {
  22464. background: #fff;
  22465. font-size: 18px;
  22466. }
  22467. .nav {
  22468. color: #9d9d9d;
  22469. padding: 5px 0 15px 20px;
  22470. }
  22471. .middleBox {
  22472. padding: 5px 0 15px 20px;
  22473. }
  22474. .pfBox {
  22475. padding-bottom: 30px;
  22476. }
  22477. .nameAndrate {
  22478. display: flex;
  22479. flex-direction: row;
  22480. flex-wrap: nowrap;
  22481. align-items: center;
  22482. padding-bottom: 10px;
  22483. height: 30px;
  22484. line-height: 30px;
  22485. }
  22486. .nameAndrate > div {
  22487. margin-left: 10px;
  22488. color: #000;
  22489. height: 30px;
  22490. }
  22491. .nameAndrate >>> .el-rate__icon {
  22492. font-size: 28px !important;
  22493. }
  22494. .pfBox > div:nth-child(2) {
  22495. background: #f7f6f9;
  22496. width: 400px;
  22497. min-height: 45px;
  22498. border-radius: 10px;
  22499. font-size: 16px;
  22500. display: flex;
  22501. flex-wrap: wrap;
  22502. align-items: center;
  22503. padding: 10px 20px;
  22504. box-sizing: border-box;
  22505. color: #000;
  22506. }
  22507. .bz {
  22508. display: flex;
  22509. flex-direction: row;
  22510. flex-wrap: nowrap;
  22511. align-items: flex-start;
  22512. }
  22513. .bz > div {
  22514. padding: 0 10px;
  22515. }
  22516. .select_box2_title {
  22517. background: #fff;
  22518. border-radius: 5px;
  22519. padding: 15px 10px;
  22520. box-sizing: border-box;
  22521. margin-bottom: 10px;
  22522. display: flex;
  22523. flex-direction: row;
  22524. flex-wrap: nowrap;
  22525. align-items: center;
  22526. }
  22527. .select_box2_title > div:nth-child(2) {
  22528. margin-left: 10px;
  22529. color: #c4c4c4;
  22530. }
  22531. .select_box2_box {
  22532. display: flex;
  22533. height: 500px;
  22534. }
  22535. .select_box2_img {
  22536. width: calc(100% - 310px);
  22537. height: 100%;
  22538. overflow: auto;
  22539. background: #fff;
  22540. border-radius: 5px;
  22541. }
  22542. .select_box2_img img {
  22543. width: 100%;
  22544. }
  22545. .select_box2_answer {
  22546. background: #fff;
  22547. margin-left: 10px;
  22548. border-radius: 5px;
  22549. width: 300px;
  22550. overflow: auto;
  22551. height: 90%;
  22552. display: flex;
  22553. flex-direction: column;
  22554. align-items: flex-start;
  22555. padding-top: 10px;
  22556. box-sizing: border-box;
  22557. position: relative;
  22558. }
  22559. .select_answer_title {
  22560. padding: 0 0 15px 20px;
  22561. color: #c4c4c4;
  22562. }
  22563. .select_box2_answer_box {
  22564. margin: 0 0 10px 20px;
  22565. width: 85%;
  22566. display: flex;
  22567. flex-direction: row;
  22568. flex-wrap: nowrap;
  22569. align-items: center;
  22570. }
  22571. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22572. color: #000;
  22573. }
  22574. .upAnswerCss {
  22575. position: absolute;
  22576. bottom: 15px;
  22577. right: 15px;
  22578. }
  22579. .upAnswerCss >>> .el-button {
  22580. width: 95px;
  22581. height: 35px;
  22582. line-height: 35px;
  22583. padding: 0;
  22584. }
  22585. .rightWidthCss {
  22586. width: 60%;
  22587. display: flex;
  22588. flex-direction: row;
  22589. align-items: flex-start;
  22590. }
  22591. .rightAnswer {
  22592. display: flex;
  22593. flex-direction: row;
  22594. flex-wrap: nowrap;
  22595. align-items: center;
  22596. color: red;
  22597. margin-bottom: 31px;
  22598. }
  22599. .rightAnswerCss {
  22600. display: flex;
  22601. flex-direction: column;
  22602. flex-wrap: nowrap;
  22603. padding-top: 60px;
  22604. }
  22605. .blueCss {
  22606. color: #767de1;
  22607. margin-left: 10px;
  22608. }
  22609. .redCss {
  22610. color: red;
  22611. }
  22612. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22613. color: rgb(0 123 255) !important;
  22614. }
  22615. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22616. color: rgb(0 123 255) !important;
  22617. }
  22618. .zuoyeYulan {
  22619. padding-top: 0;
  22620. font-size: 18px;
  22621. display: flex;
  22622. align-items: flex-end;
  22623. }
  22624. .buttonA {
  22625. margin-left: 10px;
  22626. padding: 0;
  22627. }
  22628. .displayBox {
  22629. margin-bottom: 10px;
  22630. display: block;
  22631. border-bottom: 3px solid #eee;
  22632. display: flex;
  22633. align-items: center;
  22634. }
  22635. .easy_comment {
  22636. width: calc(100% - 90px);
  22637. margin-left: 10px;
  22638. display: flex;
  22639. flex-wrap: wrap;
  22640. }
  22641. .easy_comment > div {
  22642. border: 1px solid #4a4a4a;
  22643. color: #666;
  22644. border-radius: 15px;
  22645. padding: 5px 10px;
  22646. font-size: 16px;
  22647. margin-bottom: 10px;
  22648. margin-right: 5px;
  22649. cursor: pointer;
  22650. }
  22651. .easy_comment div:hover {
  22652. border: 1px solid #f7ba2a;
  22653. color: #c69217;
  22654. }
  22655. .xuan_right_box {
  22656. padding: 10px 0;
  22657. background: #f0f4fa;
  22658. margin: 0 15px 0 25px;
  22659. border-bottom-left-radius: 5px;
  22660. border-bottom-right-radius: 5px;
  22661. width: 91.5%;
  22662. }
  22663. .tool_right_box {
  22664. display: flex;
  22665. align-items: center;
  22666. }
  22667. .tool_right_box + .tool_right_box {
  22668. margin-top: 10px;
  22669. }
  22670. .right_box_xuan {
  22671. border-radius: 5px;
  22672. padding: 5px;
  22673. margin-left: 10px;
  22674. min-width: 85px;
  22675. background: #fff;
  22676. color: #0061ff;
  22677. border: 1px solid #0061ff;
  22678. font-size: 14px;
  22679. }
  22680. .pButton:hover {
  22681. opacity: 1 !important;
  22682. }
  22683. .pButton {
  22684. position: fixed;
  22685. text-align: center;
  22686. cursor: pointer;
  22687. z-index: 999;
  22688. right: 20px;
  22689. top: 110px;
  22690. width: 50px;
  22691. height: 50px;
  22692. display: flex;
  22693. align-items: center;
  22694. justify-content: center;
  22695. border-radius: 5px;
  22696. }
  22697. .pzClass {
  22698. width: calc(100% - 340px);
  22699. }
  22700. .newDialogCss {
  22701. /* position: fixed;
  22702. right: 5%;
  22703. top: 50%;
  22704. width: 340px;
  22705. transform: translateY(-50%);
  22706. height: 60%;
  22707. box-shadow: 0px 0 8px 0px #555555;
  22708. border-radius: 15px;
  22709. z-index: 999; */
  22710. position: fixed;
  22711. right: 20px;
  22712. top: 101px;
  22713. width: 330px;
  22714. height: calc(100% - 80px);
  22715. z-index: 999;
  22716. background: #fff;
  22717. border-top-right-radius: 0px;
  22718. border-bottom-right-radius: 0px;
  22719. overflow: hidden;
  22720. }
  22721. .newDialogCss>.scoreList{
  22722. width:100%;
  22723. height:100%;
  22724. box-sizing:border-box;
  22725. padding:10px 15px;
  22726. overflow:auto;
  22727. padding-bottom:80px;
  22728. }
  22729. .pzTop {
  22730. color: #fff;
  22731. background: #000;
  22732. display: flex;
  22733. flex-direction: row;
  22734. flex-wrap: nowrap;
  22735. align-items: center;
  22736. justify-content: space-between;
  22737. height: 40px;
  22738. border-radius: 15px 15px 0 0;
  22739. user-select: none;
  22740. }
  22741. .pzTop2 .checkbox {
  22742. display: flex;
  22743. align-items: center;
  22744. padding: 5px 10px;
  22745. flex: 0 0 auto;
  22746. font-weight: bold;
  22747. border-bottom: 1px solid #eee;
  22748. justify-content: space-between;
  22749. }
  22750. .checkbox>.cb-tabList{
  22751. display:flex;
  22752. align-items:center;
  22753. }
  22754. .cb-tabList>div{
  22755. margin-right:20px;
  22756. font-weight:400;
  22757. cursor:pointer;
  22758. }
  22759. .cb-tabList>.cb-tabItem{
  22760. color:#1684FC;
  22761. position:relative;
  22762. }
  22763. .cb-tabItem::after{
  22764. content:"";
  22765. width:100%;
  22766. height:2px;
  22767. background:#1684FC;
  22768. position:absolute;
  22769. bottom:-5px;
  22770. left:0
  22771. }
  22772. .pzTop2 .check {
  22773. text-align: center;
  22774. cursor: pointer;
  22775. box-sizing: border-box;
  22776. display: flex;
  22777. }
  22778. .pzTop2 img {
  22779. width: 25px;
  22780. cursor: pointer;
  22781. }
  22782. .pzTop > div:nth-child(1) {
  22783. padding-left: 10px;
  22784. }
  22785. .pzTop > div:nth-child(2) {
  22786. width: 15px;
  22787. height: 15px;
  22788. padding-right: 10px;
  22789. cursor: pointer;
  22790. }
  22791. .pzTop > div:nth-child(2) > img {
  22792. width: 100%;
  22793. height: 100%;
  22794. }
  22795. .pzBox,
  22796. .noPzBox {
  22797. height: calc(100% - 60px);
  22798. /* background: #ededed; */
  22799. background: #fff;
  22800. /* border-radius: 0 0 15px 15px; */
  22801. }
  22802. .noPzBox {
  22803. display: flex;
  22804. flex-direction: column;
  22805. flex-wrap: nowrap;
  22806. justify-content: center;
  22807. align-items: center;
  22808. }
  22809. .pzList {
  22810. background: #f7f7f7;
  22811. width: 90%;
  22812. margin: 0 auto 15px;
  22813. border-radius: 5px;
  22814. }
  22815. .pzNavTop {
  22816. display: flex;
  22817. flex-direction: row;
  22818. flex-wrap: nowrap;
  22819. padding: 10px 10px 0 10px;
  22820. align-items: center;
  22821. }
  22822. .pzDelete {
  22823. cursor: pointer;
  22824. margin-left: auto;
  22825. font-size: 14px;
  22826. color: #afafaf;
  22827. }
  22828. .pzNavTop > div:nth-child(1) {
  22829. background: #3760af;
  22830. width: 35px;
  22831. height: 35px;
  22832. color: #fff;
  22833. text-align: center;
  22834. line-height: 35px;
  22835. border-radius: 50%;
  22836. font-size: 14px;
  22837. }
  22838. .pzNavTop > div:nth-child(2) {
  22839. font-size: 18px;
  22840. color: #959595;
  22841. margin-left: 5px;
  22842. }
  22843. .pzContent {
  22844. padding: 10px;
  22845. word-break: break-word;
  22846. }
  22847. .pzContent audio {
  22848. width: 100%;
  22849. }
  22850. .pzContent audio::-webkit-media-controls-panel {
  22851. background: #fff;
  22852. }
  22853. .pzContent >>> img {
  22854. max-width: 100%;
  22855. }
  22856. .pzListBox {
  22857. padding-top: 15px;
  22858. height: calc(100% - 110px);
  22859. overflow: auto;
  22860. }
  22861. .addPzButton {
  22862. position: relative;
  22863. margin-top: 3px;
  22864. width: 100%;
  22865. }
  22866. .addPzButton .img1 {
  22867. position: absolute;
  22868. top: 50%;
  22869. right: 25px;
  22870. transform: translateY(-50%);
  22871. height: 100%;
  22872. display: flex;
  22873. align-items: center;
  22874. }
  22875. .addPzButton .img1 div {
  22876. display: flex;
  22877. }
  22878. .addPzButton .img1 div img {
  22879. width: 28px;
  22880. margin-left: 10px;
  22881. cursor: pointer;
  22882. }
  22883. .addPzButton .img1 div span {
  22884. font-size: 14px;
  22885. margin: 4px 0 0 3px;
  22886. color: #afafaf;
  22887. }
  22888. .addPz {
  22889. background: #4b79ce;
  22890. width: 100px;
  22891. color: #fff;
  22892. font-size: 12px;
  22893. height: 30px;
  22894. margin: 0 auto;
  22895. text-align: center;
  22896. line-height: 30px;
  22897. border-radius: 10px;
  22898. cursor: pointer;
  22899. }
  22900. .addDialogCss {
  22901. position: fixed;
  22902. width: 600px;
  22903. height: 70%;
  22904. min-height: 450px;
  22905. box-shadow: 0px 0 8px 0px #555555;
  22906. border-radius: 15px;
  22907. z-index: 999;
  22908. left: 50%;
  22909. top: 50%;
  22910. margin: -18% 0 0 -300px;
  22911. }
  22912. .teacherPz {
  22913. display: flex;
  22914. flex-direction: row;
  22915. align-items: center;
  22916. flex-wrap: nowrap;
  22917. }
  22918. .teacherPzImg {
  22919. width: 30px;
  22920. height: 30px;
  22921. }
  22922. .teacherPzImg > img {
  22923. width: 100%;
  22924. height: 100%;
  22925. }
  22926. .addPzBox {
  22927. height: calc(100% - 40px);
  22928. background: #ededed;
  22929. border-bottom-left-radius: 15px;
  22930. border-bottom-right-radius: 15px;
  22931. }
  22932. .pzAudioClass {
  22933. margin: 15px 14px;
  22934. background: #fff;
  22935. height: 100%;
  22936. display: flex;
  22937. justify-content: center;
  22938. align-items: center;
  22939. }
  22940. .pzConText {
  22941. width: 95%;
  22942. height: 100%;
  22943. margin: 10px auto 0;
  22944. border: none;
  22945. background: #fff;
  22946. border-radius: 0px;
  22947. }
  22948. .pzConText >>> .text {
  22949. height: calc(100% - 82px);
  22950. }
  22951. .addTextCss {
  22952. background: #4b79ce;
  22953. width: 80px;
  22954. height: 30px;
  22955. text-align: center;
  22956. color: #fff;
  22957. line-height: 30px;
  22958. border-radius: 10px;
  22959. margin: 10px auto 0;
  22960. cursor: pointer;
  22961. }
  22962. .pzConText:focus-visible {
  22963. border: none !important;
  22964. }
  22965. .maxWidth {
  22966. width: 1000px;
  22967. }
  22968. .noPz {
  22969. width: 150px;
  22970. margin: 0 auto 20%;
  22971. }
  22972. .noPz > img {
  22973. width: 100%;
  22974. height: 100%;
  22975. }
  22976. .timeAndReply {
  22977. display: flex;
  22978. flex-direction: row;
  22979. flex-wrap: nowrap;
  22980. justify-content: space-between;
  22981. align-items: center;
  22982. font-size: 14px;
  22983. box-sizing: border-box;
  22984. padding: 0 10px 10px 0px;
  22985. }
  22986. .timeAndReply .time {
  22987. color: #bfbfbf;
  22988. padding: 0 0 0 10px;
  22989. box-sizing: border-box;
  22990. }
  22991. .timeAndReply > div:last-child {
  22992. cursor: pointer;
  22993. color: #777;
  22994. }
  22995. /* table 样式 */
  22996. .cont >>> table {
  22997. border-top: 1px solid #ccc;
  22998. border-left: 1px solid #ccc;
  22999. }
  23000. .cont >>> table td,
  23001. .cont >>> table th {
  23002. border-bottom: 1px solid #ccc;
  23003. border-right: 1px solid #ccc;
  23004. /* padding: 20px 5px; */
  23005. padding: 5px 10px;
  23006. max-width: 0px;
  23007. height: 30px;
  23008. vertical-align: baseline;
  23009. box-sizing: border-box;
  23010. }
  23011. .cont >>> table th {
  23012. border-bottom: 2px solid #ccc;
  23013. text-align: center;
  23014. }
  23015. /* blockquote 样式 */
  23016. .cont >>> blockquote {
  23017. display: block;
  23018. border-left: 8px solid #d0e5f2;
  23019. padding: 5px 10px;
  23020. margin: 10px 0;
  23021. line-height: 1.4;
  23022. font-size: 100%;
  23023. background-color: #f1f1f1;
  23024. }
  23025. /* code 样式 */
  23026. .cont >>> code {
  23027. display: inline-block;
  23028. /* *display: inline; */
  23029. zoom: 1;
  23030. background-color: #f1f1f1;
  23031. border-radius: 3px;
  23032. padding: 3px 5px;
  23033. margin: 0 3px;
  23034. }
  23035. .cont >>> pre code {
  23036. display: block;
  23037. }
  23038. /* ul ol 样式 */
  23039. .cont >>> ul,
  23040. ol {
  23041. margin: 10px 0 10px 20px;
  23042. }
  23043. .addPzCheck {
  23044. display: flex;
  23045. flex-direction: row;
  23046. flex-wrap: nowrap;
  23047. padding: 10px 15px 0;
  23048. }
  23049. .addPzCheck span {
  23050. cursor: pointer;
  23051. padding-bottom: 5px;
  23052. font-weight: bold;
  23053. }
  23054. .addPzCheck span + span {
  23055. margin-left: 10px;
  23056. }
  23057. .addPzCheck .isChooseActive {
  23058. color: #3e88f4;
  23059. border-bottom: 2px solid #2f80f3;
  23060. }
  23061. /* code 样式 */
  23062. .cont {
  23063. /* -webkit-user-modify: read-write; */
  23064. overflow-wrap: break-word;
  23065. -webkit-line-break: after-white-space;
  23066. word-break: break-word;
  23067. white-space: pre-line;
  23068. }
  23069. .scoreBox,
  23070. .scoreDetailBox {
  23071. display: flex;
  23072. align-items: center;
  23073. justify-content: flex-start;
  23074. margin-top: 20px;
  23075. font-size: 18px;
  23076. width: 100%;
  23077. }
  23078. .scoreBox .t,
  23079. .scoreDetailBox .t {
  23080. margin-right: 10px;
  23081. width: 100px;
  23082. text-align: right;
  23083. }
  23084. .scoreDetailBox {
  23085. align-items: flex-start;
  23086. }
  23087. .scoreDetailBox >>> .el-textarea {
  23088. width: calc(100% - 200px);
  23089. }
  23090. .scoreBox >>> .el-input {
  23091. width: 130px;
  23092. font-size: 38px;
  23093. }
  23094. .scoreBox >>> .el-input__inner {
  23095. height: 60px;
  23096. }
  23097. .answerScore {
  23098. position: absolute;
  23099. top: 10px;
  23100. right: 10px;
  23101. background: #0000008f;
  23102. border-radius: 5px;
  23103. padding: 3px 5px;
  23104. font-size: 14px;
  23105. color: #fff;
  23106. cursor: pointer;
  23107. }
  23108. .open_box .switch_box {
  23109. width: 100%;
  23110. margin: 0 auto;
  23111. display: flex;
  23112. justify-content: space-between;
  23113. }
  23114. .open_box .switch_box + .switch_box {
  23115. margin-top: 10px;
  23116. }
  23117. .deleteImg,.deleteImg1 {
  23118. width: 25px !important;
  23119. height: 25px !important;
  23120. cursor: pointer;
  23121. position: absolute;
  23122. top: 10px;
  23123. right: 10px;
  23124. }
  23125. .deleteImg2 {
  23126. width: 23px !important;
  23127. height: 23px !important;
  23128. top: 5px;
  23129. right: 5px;
  23130. }
  23131. .deleteImg1{
  23132. width: 23px !important;
  23133. height: 23px !important;
  23134. top: 5px !important;
  23135. right: 30px !important;
  23136. }
  23137. .rightW {
  23138. right: 40px;
  23139. }
  23140. .drawPBox {
  23141. display: flex;
  23142. flex-direction: column;
  23143. position: relative;
  23144. }
  23145. .drawPBox span {
  23146. font-size: 18px;
  23147. color: #606266;
  23148. padding-bottom: 10px;
  23149. margin: 10px 0;
  23150. border-bottom: 1px solid #eaeaea;
  23151. }
  23152. .drawPBox img {
  23153. width: 500px;
  23154. height: 300px;
  23155. object-fit: contain;
  23156. cursor: pointer;
  23157. margin: 0 auto;
  23158. }
  23159. .sentenBox {
  23160. background: #fff;
  23161. height: 450px;
  23162. overflow: auto;
  23163. background-image: url("../assets/icon/conSentences/stuBg.png");
  23164. background-position: 102%;
  23165. background-repeat: no-repeat;
  23166. background-size: 60%;
  23167. }
  23168. .addSen {
  23169. background: #409efe;
  23170. width: 90px;
  23171. color: #fff;
  23172. height: 35px;
  23173. text-align: center;
  23174. line-height: 35px;
  23175. border-radius: 5px;
  23176. float: right;
  23177. margin: 10px 20px 0 0;
  23178. cursor: pointer;
  23179. }
  23180. .sentenTop {
  23181. display: flex;
  23182. flex-direction: row;
  23183. flex-wrap: nowrap;
  23184. align-items: center;
  23185. padding: 55px 0 0 20px;
  23186. box-sizing: border-box;
  23187. }
  23188. .sentenTop > div:nth-child(2) {
  23189. width: 300px;
  23190. margin: 0 15px;
  23191. }
  23192. .sentenTop > div:nth-child(3) {
  23193. background: #409efe;
  23194. color: #fff;
  23195. width: 65px;
  23196. height: 35px;
  23197. text-align: center;
  23198. line-height: 35px;
  23199. border-radius: 5px;
  23200. cursor: pointer;
  23201. }
  23202. .cardList,
  23203. .cardList1 {
  23204. padding: 10px 0 10px 0;
  23205. display: flex;
  23206. flex-direction: row;
  23207. flex-wrap: wrap;
  23208. align-items: center;
  23209. box-sizing: border-box;
  23210. border-bottom: 1px solid #f4f4f4;
  23211. width: 98%;
  23212. margin: 0 auto;
  23213. min-width: 60%;
  23214. max-width: 85%;
  23215. }
  23216. .cardList1 {
  23217. padding: 10px 0 10px 10px !important;
  23218. margin: 0 !important;
  23219. }
  23220. .cardBox {
  23221. display: flex;
  23222. flex-direction: row;
  23223. flex-wrap: wrap;
  23224. align-items: center;
  23225. align-content: center;
  23226. }
  23227. .cardBox > div {
  23228. margin-bottom: 10px;
  23229. }
  23230. .isCard,
  23231. .isChooseCard,
  23232. .noCard,
  23233. .isCard1 {
  23234. min-width: 130px;
  23235. width: auto;
  23236. height: 60px;
  23237. text-align: center;
  23238. line-height: 60px;
  23239. font-size: 20px;
  23240. cursor: pointer;
  23241. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23242. background-size: cover;
  23243. transition: all 2s;
  23244. margin-right: 20px;
  23245. background-size: 100% 100%;
  23246. padding: 0 20px;
  23247. box-sizing: border-box;
  23248. }
  23249. .isCard > div,
  23250. .noCard > div,
  23251. .isCard1 > div {
  23252. white-space: nowrap;
  23253. overflow: hidden;
  23254. text-overflow: ellipsis;
  23255. width: 100%;
  23256. margin: 0 auto;
  23257. }
  23258. .noCard {
  23259. background-image: none;
  23260. }
  23261. .isCard1 {
  23262. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23263. }
  23264. .isChooseCard {
  23265. background-image: none;
  23266. border: 1px dashed #b9b9b9;
  23267. border-radius: 10px;
  23268. }
  23269. .card {
  23270. width: 130px;
  23271. height: 60px;
  23272. }
  23273. .card > img {
  23274. width: 100%;
  23275. height: 100%;
  23276. }
  23277. .rightCardBox {
  23278. margin: 10px 0 0 10px;
  23279. }
  23280. .rightCardBox > div:nth-child(1) {
  23281. margin-bottom: 10px;
  23282. }
  23283. .cardCss {
  23284. display: flex;
  23285. flex-direction: column;
  23286. flex-wrap: nowrap;
  23287. align-items: center;
  23288. border-bottom: 3px solid #b4c3d3;
  23289. padding: 0 0 5px 0;
  23290. margin-right: 10px;
  23291. }
  23292. .cardCss > div:nth-child(2) {
  23293. background: #5b7b9d;
  23294. color: #fff;
  23295. width: 20px;
  23296. height: 20px;
  23297. border-radius: 50%;
  23298. text-align: center;
  23299. line-height: 20px;
  23300. }
  23301. .isWrong {
  23302. display: flex;
  23303. flex-direction: row;
  23304. flex-wrap: nowrap;
  23305. align-content: center;
  23306. align-items: center;
  23307. }
  23308. .answerRight {
  23309. width: 25%;
  23310. }
  23311. .isTj {
  23312. display: flex;
  23313. flex-direction: row;
  23314. flex-wrap: nowrap;
  23315. align-items: center;
  23316. }
  23317. .isTj > div:nth-child(2) {
  23318. color: #727070;
  23319. margin-left: 10px;
  23320. }
  23321. .isTjImg {
  23322. width: 30px;
  23323. height: 30px;
  23324. }
  23325. .isTjImg > img {
  23326. width: 100%;
  23327. height: 100%;
  23328. }
  23329. .cardAnswerBox {
  23330. font-size: 18px;
  23331. width: 97%;
  23332. border: 5px;
  23333. padding: 0;
  23334. border-radius: 5px;
  23335. margin: 10px auto;
  23336. word-break: break-word;
  23337. }
  23338. .w_name {
  23339. margin-bottom: 10px;
  23340. }
  23341. .w_name span {
  23342. font-size: 16px;
  23343. }
  23344. .w_teachert {
  23345. width: 50px !important;
  23346. position: absolute;
  23347. height: auto !important;
  23348. z-index: 10;
  23349. right: 25px;
  23350. top: -25px;
  23351. }
  23352. .group_workBox {
  23353. }
  23354. .group_workBox + .group_workBox {
  23355. margin-top: 20px;
  23356. }
  23357. .group_box {
  23358. padding-bottom: 20px;
  23359. border-bottom: 2px solid #f0f0f0;
  23360. margin-top: 10px;
  23361. }
  23362. .group_title {
  23363. display: flex;
  23364. align-items: center;
  23365. justify-content: space-between;
  23366. width: 95%;
  23367. }
  23368. .group_name {
  23369. background-image: url(../assets/icon/groupN.png);
  23370. width: 220px;
  23371. background-size: 100% 100%;
  23372. height: 67px;
  23373. padding: 0 20px 0 43px;
  23374. box-sizing: border-box;
  23375. line-height: 63px;
  23376. color: #fff;
  23377. overflow: hidden;
  23378. white-space: nowrap;
  23379. text-overflow: ellipsis;
  23380. }
  23381. .group_work {
  23382. width: 100%;
  23383. padding: 0 10px;
  23384. box-sizing: border-box;
  23385. display: flex;
  23386. flex-wrap: wrap;
  23387. }
  23388. .g_d_box {
  23389. display: flex;
  23390. flex-flow: wrap;
  23391. justify-content: space-around;
  23392. }
  23393. .g_d_box .isChair {
  23394. background-image: url(../assets/avatar.png) !important;
  23395. }
  23396. .g_d_group {
  23397. width: 500px;
  23398. margin-bottom: 80px;
  23399. }
  23400. .g_d_group_chair {
  23401. display: flex;
  23402. align-items: center;
  23403. justify-content: center;
  23404. }
  23405. .g_d_group_chair > div + div {
  23406. margin-left: 30px;
  23407. }
  23408. .g_d_group_chair > div,
  23409. .g_d_group_chair2 > div {
  23410. display: flex;
  23411. flex-direction: column;
  23412. align-items: center;
  23413. }
  23414. .g_d_group_chair > div > span:nth-child(1),
  23415. .g_d_group_chair2 > div > span:nth-child(1) {
  23416. background-image: url(../assets/icon/chair.png);
  23417. width: 50px;
  23418. height: 50px;
  23419. display: block;
  23420. background-size: 100% 100%;
  23421. }
  23422. .g_d_group_tableBox {
  23423. display: flex;
  23424. align-items: center;
  23425. justify-content: center;
  23426. }
  23427. .g_d_group_chair2 {
  23428. display: flex;
  23429. flex-direction: column;
  23430. align-items: center;
  23431. justify-content: center;
  23432. }
  23433. .g_d_group_chair2 > div + div {
  23434. margin-top: 10px;
  23435. }
  23436. .g_d_group_table {
  23437. background-image: url(../assets/icon/groupBg.png);
  23438. width: 354px;
  23439. height: 196px;
  23440. background-size: 100% 100%;
  23441. display: flex;
  23442. align-items: center;
  23443. justify-content: center;
  23444. flex-direction: column;
  23445. color: #fff;
  23446. }
  23447. .g_d_group_table > div:nth-child(1) {
  23448. font-size: 24px;
  23449. margin-bottom: 5px;
  23450. }
  23451. .g_d_group_table > div:nth-child(2) div {
  23452. cursor: pointer;
  23453. background: #2e77bf;
  23454. padding: 4px 10px;
  23455. border-radius: 5px;
  23456. }
  23457. .groupBox {
  23458. }
  23459. .groupContent + .groupContent {
  23460. margin-top: 30px;
  23461. }
  23462. .groupTitle {
  23463. font-size: 24px;
  23464. color: rgb(80, 80, 80);
  23465. margin-bottom: 20px;
  23466. }
  23467. .groupName {
  23468. display: flex;
  23469. align-items: center;
  23470. }
  23471. .groupn {
  23472. font-size: 15px;
  23473. margin-right: 10px;
  23474. }
  23475. .groupName + .groupName {
  23476. margin-top: 15px;
  23477. }
  23478. .groupBtn {
  23479. margin-left: 10px;
  23480. }
  23481. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23482. text-align: left;
  23483. }
  23484. .g_d_btnBox {
  23485. display: flex;
  23486. justify-content: flex-end;
  23487. align-items: center;
  23488. margin-bottom: 20px;
  23489. }
  23490. .updateChair {
  23491. position: relative;
  23492. }
  23493. .updateChairBtn {
  23494. position: absolute;
  23495. width: 50px;
  23496. height: 50px;
  23497. overflow: hidden;
  23498. /* display: flex; */
  23499. align-items: center;
  23500. justify-content: center;
  23501. background: #00000087;
  23502. color: #fff;
  23503. border-radius: 50px;
  23504. display: none;
  23505. cursor: pointer;
  23506. }
  23507. .updateChair:hover .updateChairBtn {
  23508. display: flex;
  23509. }
  23510. .group_staic_box {
  23511. display: flex;
  23512. padding: 30px 40px 10px;
  23513. flex-wrap: wrap;
  23514. }
  23515. .group_staic {
  23516. /* width: 50%; */
  23517. margin-bottom: 20px;
  23518. display: flex;
  23519. align-items: center;
  23520. }
  23521. .group_staic span:nth-child(1) {
  23522. width: 150px;
  23523. text-align: right;
  23524. margin-right: 15px;
  23525. }
  23526. .group_staic span:nth-child(2) {
  23527. background: rgb(0 123 255);
  23528. color: #fff;
  23529. border-radius: 5px;
  23530. padding: 5px;
  23531. }
  23532. .codeFileBox {
  23533. height: 300px;
  23534. background: #fff;
  23535. display: flex;
  23536. align-items: center;
  23537. justify-content: center;
  23538. }
  23539. .codeFileBox img {
  23540. width: 200px;
  23541. margin: 0;
  23542. height: auto;
  23543. }
  23544. .codeFileBox div {
  23545. background: rgb(80, 142, 226);
  23546. color: #fff;
  23547. padding: 10px 20px;
  23548. border-radius: 25px;
  23549. cursor: pointer;
  23550. margin-left: 15px;
  23551. }
  23552. .radioBox {
  23553. display: flex;
  23554. flex-direction: column;
  23555. flex-wrap: nowrap;
  23556. align-items: flex-start;
  23557. }
  23558. .radioBox > div {
  23559. margin: 10px 0 0 10px;
  23560. }
  23561. /* .radioBox >>> .el-radio__input,
  23562. .radioBox >>> .el-checkbox__inner {
  23563. margin-left: 10px;
  23564. } */
  23565. .radioBox >>> .el-radio__label,
  23566. .radioBox >>> .el-checkbox__label {
  23567. display: flex;
  23568. align-items: center;
  23569. width: 100%;
  23570. }
  23571. .radioBox >>> .el-radio__label > span {
  23572. width: 100%;
  23573. display: -webkit-box;
  23574. overflow: hidden;
  23575. white-space: normal !important;
  23576. text-overflow: ellipsis;
  23577. word-wrap: break-word;
  23578. }
  23579. .inImg {
  23580. width: 100px;
  23581. cursor: pointer;
  23582. }
  23583. .inImg > img {
  23584. width: 100%;
  23585. height: 100%;
  23586. object-fit: cover;
  23587. }
  23588. .timuImgBox {
  23589. margin: 10px 0;
  23590. display: flex;
  23591. flex-direction: column;
  23592. flex-wrap: wrap;
  23593. align-items: flex-start;
  23594. }
  23595. .timuImg {
  23596. width: 150px;
  23597. margin: 5px 0;
  23598. cursor: pointer;
  23599. }
  23600. .timuImg > img {
  23601. width: 100%;
  23602. height: 100%;
  23603. object-fit: cover;
  23604. }
  23605. .worksTop {
  23606. display: flex;
  23607. flex-direction: row;
  23608. align-items: flex-end;
  23609. }
  23610. .worksTitle{
  23611. display: flex;
  23612. flex-direction: row;
  23613. flex-wrap: nowrap;
  23614. align-items: center;
  23615. }
  23616. .worksTitle::before,.worksTop::before{
  23617. content: '';
  23618. display: block;
  23619. width: 3px;
  23620. height: 20px;
  23621. background: #0061FF;
  23622. border-radius: 3px;
  23623. margin: 0 5px 0 0;
  23624. }
  23625. .corOpen {
  23626. margin: 0 0 0 10px;
  23627. font-size: 14px;
  23628. cursor: pointer;
  23629. color: #505050;
  23630. }
  23631. .corOpen:hover {
  23632. color: #499eef;
  23633. }
  23634. .navCorOpenBox {
  23635. display: flex;
  23636. flex-direction: row;
  23637. align-items: center;
  23638. justify-content: space-between;
  23639. height: 55px;
  23640. background: #ffffff;
  23641. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23642. border-radius: 8px 8px 0px 0px;
  23643. z-index: 9;
  23644. position: relative;
  23645. }
  23646. .navCorOpen {
  23647. padding-right: 15px;
  23648. cursor: pointer;
  23649. width: 45px;
  23650. display: flex;
  23651. }
  23652. .navCorOpen > img {
  23653. width: 100%;
  23654. height: 100%;
  23655. }
  23656. .mlImg {
  23657. width: 40px !important;
  23658. min-width: 40px;
  23659. cursor: pointer;
  23660. transform: rotate(180deg);
  23661. }
  23662. .mlImg > img {
  23663. width: 100%;
  23664. height: 100%;
  23665. }
  23666. .navLeftCss {
  23667. width: 100% !important;
  23668. left: 0 !important;
  23669. }
  23670. .isContentCss {
  23671. width: 100% !important;
  23672. }
  23673. .isAllWidth {
  23674. width: 100% !important;
  23675. }
  23676. .group_switch {
  23677. margin-right: 10px;
  23678. height: 30px;
  23679. display: flex;
  23680. align-items: center;
  23681. }
  23682. .group_switch > span {
  23683. margin-right: 5px;
  23684. }
  23685. .fileC_box {
  23686. padding-top: 15px;
  23687. }
  23688. .fileC_box > .fileC_title {
  23689. padding: 10px 5px 14px 10px;
  23690. border-top: 1px solid #cad1dc;
  23691. font-size: 14px;
  23692. font-weight: 400;
  23693. color: #cad1dc;
  23694. width: calc(100% - 20px);
  23695. margin: 0 auto;
  23696. box-sizing: border-box;
  23697. }
  23698. .pl_select_box {
  23699. height: 40px;
  23700. line-height: 40px;
  23701. width: 100%;
  23702. cursor: pointer;
  23703. padding: 0 20px;
  23704. box-sizing: border-box;
  23705. border-radius: 5px;
  23706. border: 1px solid #d6d6d6;
  23707. white-space: nowrap;
  23708. overflow: hidden;
  23709. text-overflow: ellipsis;
  23710. background: #fff;
  23711. text-align: left;
  23712. }
  23713. .newButton {
  23714. width: 102px;
  23715. height: 36px;
  23716. background: #e7ebf1;
  23717. border-radius: 4px;
  23718. color: #0e1e33;
  23719. font-weight: 400;
  23720. font-size: 14px;
  23721. border: none;
  23722. float: right;
  23723. margin-left: 10px;
  23724. }
  23725. .el-table >>> .even_row {
  23726. background-color: #f0f4fa;
  23727. }
  23728. .stageBoxCss,
  23729. .stageBoxIsCss {
  23730. display: flex;
  23731. flex-direction: row;
  23732. flex-wrap: nowrap;
  23733. align-items: center;
  23734. height: 50px;
  23735. border-bottom: 1px solid #e2f5fc;
  23736. cursor: pointer;
  23737. width: 100%;
  23738. }
  23739. .stageBoxIsCss {
  23740. background: #0061ff;
  23741. color: #fff;
  23742. border-radius: 8px;
  23743. }
  23744. .stageItemTitle {
  23745. display: flex;
  23746. flex-direction: row;
  23747. flex-wrap: nowrap;
  23748. align-items: center;
  23749. margin-left: 15px;
  23750. width: calc(100% - 50px);
  23751. }
  23752. .stageNav{
  23753. /* font-weight: bold; */
  23754. }
  23755. .stageItemTitle > div:first-child {
  23756. min-width: 55px;
  23757. }
  23758. .stageItemTitle > div:last-child {
  23759. max-width: 242px;
  23760. white-space: nowrap;
  23761. overflow: hidden;
  23762. text-overflow: ellipsis;
  23763. word-break: break-word;
  23764. width: calc(100% - 55px);
  23765. }
  23766. .closeTri,
  23767. .closeTri1 {
  23768. min-width: 15px;
  23769. width: 15px;
  23770. height: 15px;
  23771. transition: all .5s;
  23772. }
  23773. .closeTri1 {
  23774. padding-left: 10px;
  23775. cursor: pointer;
  23776. }
  23777. .closeTri > img,
  23778. .closeTri1 > img {
  23779. width: 100%;
  23780. height: 100%;
  23781. /* transition: all .5s; */
  23782. }
  23783. .noToolBlue {
  23784. min-width: 10px;
  23785. width: 10px;
  23786. height: 10px;
  23787. background: #0061ff;
  23788. border-radius: 50%;
  23789. margin-left: 13px;
  23790. }
  23791. .stageChild,
  23792. .toolChild {
  23793. height: 0;
  23794. overflow: hidden;
  23795. transition: all 0.5s;
  23796. }
  23797. .toolChild {
  23798. /* margin: 0 0 0 17px;
  23799. padding: 0 0 0 20px;
  23800. border-left: 1px solid #d7d7d7; */
  23801. }
  23802. .toolChild > div + div{
  23803. margin-top:5px;
  23804. }
  23805. .gjCss {
  23806. display: flex;
  23807. flex-direction: row;
  23808. flex-wrap: nowrap;
  23809. align-items: center;
  23810. padding: 10px 0 10px 40px;
  23811. box-sizing: border-box;
  23812. font-size: 14px;
  23813. cursor: pointer;
  23814. border-radius:5px;
  23815. }
  23816. .toolChild > div {
  23817. position: relative;
  23818. width:100%;
  23819. }
  23820. .toolChild > div::before {
  23821. /* content: "";
  23822. width: 15px;
  23823. height: 1px;
  23824. background: #cad1dc;
  23825. position: absolute;
  23826. top: 24px;
  23827. left: -20px;
  23828. display: block; */
  23829. }
  23830. .isGjCss {
  23831. /* color: #0061ff; */
  23832. color:#fff;
  23833. background: rgb(55, 129, 252);
  23834. /* background-color: #e0eafb !important;
  23835. color: #0061ff !important; */
  23836. }
  23837. .navItem {
  23838. background: #ffffff;
  23839. border-radius: 4px;
  23840. width: 100%;
  23841. margin: 10px auto;
  23842. position: relative;
  23843. height: 40px;
  23844. display: flex;
  23845. flex-direction: row;
  23846. flex-wrap: nowrap;
  23847. align-items: center;
  23848. }
  23849. .navItemList {
  23850. display: flex;
  23851. flex-direction: row;
  23852. flex-wrap: nowrap;
  23853. align-items: center;
  23854. padding: 0 13px;
  23855. cursor: pointer;
  23856. width: calc(100% - 60px);
  23857. height: 100%;
  23858. }
  23859. .navItemList > div:first-child {
  23860. min-width: 60px;
  23861. }
  23862. .navItemList > div:last-child {
  23863. width: calc(100% - 80px);
  23864. white-space: nowrap;
  23865. overflow: hidden;
  23866. text-overflow: ellipsis;
  23867. word-break: break-word;
  23868. }
  23869. /* .isItemList > div {
  23870. color: #fff !important;
  23871. } */
  23872. .tool_work_box {
  23873. width: 100%;
  23874. padding: 0 37px 0;
  23875. box-sizing: border-box;
  23876. }
  23877. .tool_box {
  23878. width: 100%;
  23879. padding: 0 0 0 20px;
  23880. }
  23881. .tool_type_box {
  23882. display: flex;
  23883. flex-direction: row;
  23884. align-items: baseline;
  23885. flex-wrap: nowrap;
  23886. justify-content: flex-start;
  23887. position: relative;
  23888. }
  23889. .toolSort {
  23890. display: flex;
  23891. flex-direction: row;
  23892. flex-wrap: wrap;
  23893. justify-content: flex-start;
  23894. align-items: flex-start;
  23895. padding: 0 0 15px 0;
  23896. }
  23897. .toolSort > div {
  23898. margin: 0 10px 0 0;
  23899. width: 135px;
  23900. box-sizing: border-box;
  23901. border: 2px solid transparent;
  23902. }
  23903. .tools {
  23904. width: 100%;
  23905. display: flex;
  23906. flex-direction: column;
  23907. flex-wrap: nowrap;
  23908. align-items: flex-start;
  23909. }
  23910. .whiteBIcon {
  23911. width: fit-content;
  23912. cursor: pointer;
  23913. display: flex;
  23914. flex-direction: column;
  23915. flex-wrap: nowrap;
  23916. align-items: center;
  23917. font-size: 14px;
  23918. }
  23919. .tool:hover {
  23920. border: 2px solid #a5c7ff;
  23921. border-radius: 5px;
  23922. }
  23923. .whiteBIcon > img {
  23924. width: 65px;
  23925. height: 100%;
  23926. }
  23927. .whiteBIcon > img {
  23928. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23929. border-radius: 15px;
  23930. }
  23931. .check {
  23932. /* width: 20px;
  23933. height: 20px; */
  23934. cursor: pointer;
  23935. margin: 10px 0;
  23936. position: absolute;
  23937. right: 2px;
  23938. top: -5px;
  23939. }
  23940. .noChoose,
  23941. .isChoose {
  23942. width: 15px;
  23943. height: 15px;
  23944. border-radius: 50%;
  23945. border: 1px solid #adadad;
  23946. }
  23947. .isChoose {
  23948. border: 4px solid #0363ff !important;
  23949. width: 10px;
  23950. height: 10px;
  23951. }
  23952. .isToolChoose {
  23953. border: 2px solid #5394ff !important;
  23954. border-radius: 5px;
  23955. box-shadow: 0 0 6px 0px #5394ff;
  23956. }
  23957. .checkDiv {
  23958. display: flex;
  23959. align-items: center;
  23960. }
  23961. .checkDiv span {
  23962. margin-left: 5px;
  23963. color: #858585;
  23964. }
  23965. .check img {
  23966. width: 20px;
  23967. height: 20px;
  23968. }
  23969. .lockTaskIcon {
  23970. width: 20px;
  23971. height: 20px;
  23972. position: absolute;
  23973. right: 10px;
  23974. top: 5px;
  23975. }
  23976. .lockTaskIcon > img {
  23977. width: 100%;
  23978. height: 100%;
  23979. }
  23980. .pick_box {
  23981. display: flex;
  23982. align-items: flex-start;
  23983. flex-wrap: wrap;
  23984. }
  23985. .selectBox {
  23986. width: 110px;
  23987. margin-left: 10px;
  23988. margin: 0 10px 0 auto;
  23989. }
  23990. .selectBox >>> .el-input__inner {
  23991. height: 30px;
  23992. line-height: 30px;
  23993. }
  23994. .selectBox >>> .el-input__icon {
  23995. line-height: 30px;
  23996. }
  23997. .sentenceTitle {
  23998. display: flex;
  23999. flex-direction: row;
  24000. flex-wrap: nowrap;
  24001. align-items: center;
  24002. }
  24003. .sentenceTitle::before {
  24004. content: attr(index);
  24005. background: #3681fc;
  24006. border-radius: 50%;
  24007. color: #fff;
  24008. width: 25px;
  24009. height: 25px;
  24010. min-width: 25px;
  24011. min-height: 25px;
  24012. text-align: center;
  24013. line-height: 25px;
  24014. margin-right: 5px;
  24015. }
  24016. .hfBox {
  24017. padding: 10px;
  24018. box-sizing: border-box;
  24019. }
  24020. .whoReplyWho {
  24021. display: flex;
  24022. flex-direction: row;
  24023. flex-wrap: nowrap;
  24024. align-items: baseline;
  24025. justify-content: flex-start;
  24026. }
  24027. .hfBottom {
  24028. display: flex;
  24029. flex-direction: row;
  24030. flex-wrap: nowrap;
  24031. align-items: center;
  24032. justify-content: space-between;
  24033. font-size: 14px;
  24034. }
  24035. .deleteHfItem {
  24036. cursor: pointer;
  24037. width: 20px;
  24038. height: 20px;
  24039. }
  24040. .deleteHfItem > img {
  24041. width: 100%;
  24042. height: 100%;
  24043. }
  24044. .whoReplyWho > .hfImg {
  24045. width: 12px;
  24046. height: 12px;
  24047. margin: 0 5px;
  24048. }
  24049. .whoReplyWho > .hfImg > img {
  24050. width: 100%;
  24051. height: 100%;
  24052. }
  24053. .hfContent {
  24054. padding-top: 10px;
  24055. box-sizing: border-box;
  24056. display: -webkit-box;
  24057. overflow: hidden;
  24058. white-space: normal !important;
  24059. text-overflow: ellipsis;
  24060. word-wrap: break-word;
  24061. -webkit-box-orient: vertical;
  24062. }
  24063. .hfTime {
  24064. text-align: left;
  24065. box-sizing: border-box;
  24066. padding: 10px 0 10px 0px;
  24067. color: #bfbfbf;
  24068. font-size: 14px;
  24069. }
  24070. .btnAllNT {
  24071. position: fixed;
  24072. bottom: 100px;
  24073. right: 40px;
  24074. z-index: 999;
  24075. display: flex;
  24076. flex-direction: row;
  24077. }
  24078. .btnAllNT > img {
  24079. cursor: pointer;
  24080. width: 80px;
  24081. }
  24082. .toolMask {
  24083. position: fixed;
  24084. width: 100%;
  24085. height: 100%;
  24086. background: #3f3c3c;
  24087. opacity: 0.5;
  24088. top: 0;
  24089. left: 0;
  24090. z-index: 999;
  24091. }
  24092. .addToolCss {
  24093. position: fixed;
  24094. z-index: 999;
  24095. background: #fff;
  24096. right: 5%;
  24097. bottom: 18%;
  24098. min-width: 1035px;
  24099. min-height: 300px;
  24100. border-radius: 10px;
  24101. box-shadow: 0 0 8px 1px #b2b2b2;
  24102. }
  24103. .toolTop {
  24104. display: flex;
  24105. flex-direction: row;
  24106. flex-wrap: nowrap;
  24107. justify-content: space-between;
  24108. align-items: center;
  24109. padding: 20px;
  24110. }
  24111. .toolTop > div:nth-child(2) {
  24112. width: 15px;
  24113. height: 15px;
  24114. padding-right: 10px;
  24115. cursor: pointer;
  24116. }
  24117. .toolTop > div:nth-child(2) > img {
  24118. width: 100%;
  24119. height: 100%;
  24120. }
  24121. .fullStyle>>>.el-dialog__body {
  24122. height: calc(100% - 125px) !important;
  24123. box-sizing: border-box;
  24124. padding: 30px 0 !important;
  24125. background: #fff !important;
  24126. }
  24127. .fullStyle>>>.el-dialog {
  24128. width: 100% !important;
  24129. max-width: 100% !important;
  24130. height: 100% !important;
  24131. margin: 0 !important;
  24132. }
  24133. .fullStyle {
  24134. width: 100% !important;
  24135. max-width: 100% !important;
  24136. height: 100% !important;
  24137. margin: 0 auto !important;
  24138. }
  24139. .fullStyle>>>.el-dialog__footer{
  24140. background: #fff !important;
  24141. }
  24142. .engUpBox {
  24143. width: 100%;
  24144. height: 100%;
  24145. }
  24146. .engTitle,
  24147. .engText {
  24148. display: flex;
  24149. flex-direction: row;
  24150. flex-wrap: nowrap;
  24151. align-items: flex-start;
  24152. padding: 0 20px 20px 20px;
  24153. box-sizing: border-box;
  24154. }
  24155. .engTitle > .div:first-child,
  24156. .engText > div:first-child {
  24157. min-width: 75px;
  24158. }
  24159. .correctBox{
  24160. width: 100%;
  24161. display: flex;
  24162. flex-direction: row;
  24163. flex-wrap: nowrap;
  24164. align-items: flex-start;
  24165. }
  24166. .oldBox{
  24167. width: 50%;
  24168. height: 100%;
  24169. display: flex;
  24170. flex-direction: column;
  24171. flex-wrap: nowrap;
  24172. align-items: center;
  24173. border-top: 1px solid #d9d9d9;
  24174. border-left: 1px solid #d9d9d9;
  24175. border-right: 1px solid #d9d9d9;
  24176. }
  24177. .oldBox>div:first-child{
  24178. width: 100%;
  24179. text-align: center;
  24180. background: #d9d9d9;
  24181. height: 35px;
  24182. line-height: 35px;
  24183. font-weight: bold;
  24184. }
  24185. .oldText{
  24186. width: 100%;
  24187. height: calc(100% - 35px);
  24188. overflow: auto;
  24189. margin: 10px 0;
  24190. display: flex;
  24191. flex-direction: column;
  24192. flex-wrap: nowrap;
  24193. align-content: center;
  24194. align-items: center;
  24195. }
  24196. .detailBox{
  24197. width: 50%;
  24198. padding: 10px;
  24199. background: #f6f6f6;
  24200. border-radius: 5px;
  24201. }
  24202. .oldDetail,.oldDetail1{
  24203. padding-bottom: 30px;
  24204. }
  24205. .oldImg{
  24206. width:30px;
  24207. height: 30px;
  24208. }
  24209. .oldImg>img{
  24210. width: 100%;
  24211. height: 100%;
  24212. }
  24213. .allName{
  24214. min-width: 200px;
  24215. white-space: nowrap;
  24216. overflow: hidden;
  24217. text-overflow: ellipsis;
  24218. word-break: break-word;
  24219. cursor: pointer;
  24220. text-align: center;
  24221. border: 1px solid #bcc2cc;
  24222. box-sizing: border-box;
  24223. }
  24224. .engUpTop{
  24225. max-height: 300px;
  24226. overflow: auto;
  24227. }
  24228. .isUpdateToolDetailClass{
  24229. padding: 0 !important;
  24230. }
  24231. .isUpdateToolDetailClass textarea{
  24232. padding:12px;
  24233. font-size: 16px;
  24234. min-height:100%;
  24235. width: 100%;
  24236. box-sizing:border-box;
  24237. outline: none;
  24238. border:none;
  24239. line-height: 30px;
  24240. resize: none;
  24241. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24242. color: #838383;
  24243. }
  24244. .show_taskD {
  24245. min-width: fit-content;
  24246. margin-left: 10px;
  24247. display: flex;
  24248. align-items: center;
  24249. font-size: 14px;
  24250. cursor: pointer;
  24251. color: #717c8d;
  24252. }
  24253. .show_taskD > img {
  24254. width: 15px;
  24255. margin-right: 5px;
  24256. transition: 0.2s all;
  24257. transform: rotate(-90deg);
  24258. }
  24259. .show_taskD.show > img {
  24260. transform: rotate(0deg);
  24261. }
  24262. .correctCss{
  24263. position: absolute;
  24264. bottom: -70px;
  24265. background: #409eff;
  24266. color: #fff;
  24267. }
  24268. </style>